MDM Zinc Classes


27
Oct 06

Hexa class – format correct hexa string

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:

Actionscript:
  1. getString( _bmp.getPixel(0,0).toString( 16 ), 6 );

Continue reading →


27
Oct 06

Exporting BitmapData in hexa for file saving using swf2exe soft ( like mdm Zinc )

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.
Continue reading →


9
Aug 06

MDM Zinc – FTP Manager

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 ;) ).
Continue reading →


10
Jul 06

MDM Zinc – Class FileSystemManager

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

Continue reading →


3
Jul 06

MDM Zinc – Class DateManager for ftp and filesystem

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)
Continue reading →