I need to modify the RESOLUTION value of a ByteArray that has been encoded by the [url removed, login to view]
I believe the value can be set in regards pixels per inch or pixels per cm.
My current code, which works, but defines the resolution with a default value of 72 DPI (By the PNGEncoder) is :
var fileBitmapData:BitmapData = new BitmapData (designW, designH, true, 0x00FFFFFF);
[url removed, login to view](designBitMapData, new Rectangle(0, 0, designW, designH), new Point(0, 0));
var pngEncoder:PNGEncoder = new PNGEncoder();
var pngByteArray:ByteArray = [url removed, login to view](fileBitmapData);
If you know actionscript and the structure of a PNG file, this should be a 10 minute job for you :D
Some 'bidders' have asked why I need this ...
The image that I save will be imported in to a professional printing application that automatically defines the size of the printed image by dividing the pixel size by the resolution parameter in the file. Hence, I need to set this parameter.
I have also realized that it would be beneficial to be able to retrieve the resolution value when opening a PNG file. If you can offer bi-directional support of resolution definition then please bid.
As Encodion mentioned you need to specify what exactly you need the resolution change for so you need a bit more detail in your description. In any case, Bitmaps/BitmapData is my bread-and-butter so if you want some Daha Fazla
Bu iş için 5 freelancer ortalamada $60 teklif veriyor
Hi, I am a veteran Flash/ActionScript developer with over 7 years of experience. I have worked for companies like Intel and Zynga games and carry a lot of application/game/web and plugin development skills on me. Daha Fazla
the 72DPI is a reference resolution. it has no effect whatsoever on the quality of a raster image witch is primarily defined by the total number of pixels. [points/inch] becomes relevant only in printing when you give Daha Fazla
Hi, I'm actionscript developer. I can help you.