Here is a function that retrieves the size of an image directly into the file. We just have to pass the file and its type parameter and return the size of the image as « Rectangle ». //—————————————————————————————————— // AS3/AIR Extract Image size on file // V 1.0 //—————————————————————————————————— public function GetImageSize(ImageFile : File, Type : String) [...]
Here is a function wich check if a file is an image or not. The file type is determined following the signing of the header. //—————————————————————————————————— // AS3/AIR Image detection with unknow file type extention. // V 1.0 //—————————————————————————————————— public function GetImageFileType(TestFile : File) : String { var extention : String = ""; var Bytes [...]
Continue reading about AS3 – Image detection with unknow file type extention. »
Some time ago, I began to do an advanced image editor to organize and eliminate all duplicate images that might exist from my hard drive. The result is that AIR application with comparing and grouping similar image algorithm, for freeing the place that I miss so much. This application has a lot of options, which [...]
Continue reading about WhatYouTake : Similarity Image Reconition AIR Application »
Here is one of the first applications that we had done in Flex – AIR, in order to test its possibilities. WhatYouSee is a Wysiwyg editor (What You See Is What You Get!) to generate a PDF file. This application also have an image editor. This application uses largely an excellent AS3 class developed by [...]
Here is one of the first applications that we made in Flex – AIR, in order to test its possibilities. MagicToolbox, is a management interface for plugins, specifically it use AS3 « IModuleInterface » for module communication. Some screenshots: It would take too long to explain the principle in detail, however small diagram below gives you an [...]
Continue reading about MagicToolbox, AIR-AS3 plugins manager. »
Some time ago, I began to develop an http server providing catch graphic web page. Not having had the benefit of these programs, I decided to post on this blog, hoping that this work will help you. This is a first draft functional, but nevertheless deserves to be better, so if you have any updates, [...]
Continue reading about Windows Server for graphic web page capture. »
There are some time ago, we have developed an AS3-AIR class, for reading and writing Windows bitmap file. MswBMPCodec.as Class file content : package msw.asBitmap { import flash.display.BitmapData; import flash.filesystem.File; import flash.filesystem.FileMode; import flash.filesystem.FileStream; import flash.utils.ByteArray; import flash.utils.Endian; public class MswBMPCodec { private const MASK : int = 0xFF; public var FileData : Object; //**************************************************** [...]
There are some time ago we have developed a AS3-AIR class for the ZIP format. Class MswUnZip.as file content : // ****************************************************************** package msw.asUnzip { import flash.events.Event; import flash.events.EventDispatcher; import flash.events.ProgressEvent; import flash.filesystem.*; import flash.utils.ByteArray; import flash.utils.CompressionAlgorithm; import flash.utils.Endian; import flash.utils.setInterval; import flash.utils.clearInterval; // ********************************************** // ZIP Header // ********************************************** // file header signature (4 [...]
Who has never been confronted with the html indentation ? you either! but when it comes to finding the end of a tag « div » in a complex architecture, it can become more than a rough spot. That’s why I made a small AIR application that can compensate for this. A screenshot of the application: You [...]
Continue reading about « Indentateur » for html files (and others !) »