Archive for category MDM Zinc Classes
Hexa class – format correct hexa string
Posted by zeflasher in AS 2.0 Classes, MDM Zinc Classes, Ressources on October 27, 2006
This class will help you to get correct hexa string to save in a file. eg, 10 in decimal is "A" in hexadecimal, but when creating an hexa string to save it in a file you need to give the byte like "0A".
Then you have word ( 2 bytes ) and DWord ( 4 bytes ). Lets say you want to save in hexa a width of your bitmap, saying 678. 678 in hexa is 2A6 and must be saved in a DWord ( 4 bytes ). The thing is that Words and DWords are read from right to left, but the bytes still from left to right. So you should have this to be correct: A6 02 00 00.
Anyway you don't need to know all of this. With the class to get your hexa string just do Hexa.DWord( "2A6" ) and you'll get the "A6020000" in result. Check the function in the class.
The getString will let you choose the length of the string, eg if you need to retreive the hexa for a pixel do like:
-
getString( _bmp.getPixel(0,0).toString( 16 ), 6 );
Exporting BitmapData in hexa for file saving using swf2exe soft ( like mdm Zinc )
Posted by zeflasher in AS 2.0 Classes, MDM Zinc Classes, Ressources on October 27, 2006
This class will help you to have a string in hexadecimal format to save it in a file. It creates the header of the file, the header of the bitmap and the data. This class require the Hexa class. Be sure you have it when compiling.
This class do its job, but I have to admit as soon as you are processing big bitmap, it's slow... very slow. This is due because of the string operation I'm doing to format it to a conform Hexa string.
So check it and give feedbacks if you find any way to improve it or if you have any request.
Read the rest of this entry »
MDM Zinc – FTP Manager
Posted by zeflasher in MDM Zinc Classes, Ressources on August 9, 2006
Hello.
This is a class I've done long time ago. I'm quite sure it will be helpfull to some people (at least one, the one who sent me an email asking for this class
).
Read the rest of this entry »
MDM Zinc – Class FileSystemManager
Posted by zeflasher in MDM Zinc Classes, Ressources on July 10, 2006
Hello...
Still my old stuff that I re-publishing.
This class will let you scan your hd.
You have optional parameters:
- forceRoot : String, force the root of the scan ( eg : C:\data\image\ ) so then eg the folder "C:\data\image\test" will be listed as "\test"
- exceptions : Array, a list of folder you don't wanna scan. Just give push the names in this array
MDM Zinc – Class DateManager for ftp and filesystem
Posted by zeflasher in MDM Zinc Classes, Ressources on July 3, 2006
Ok, here is a class to be able to get the same date format for your files on your system and on the ftp (not the case for now)
Read the rest of this entry »