You have chosen to sponsor your bid up to a maximum amount of .
I need to modify the RESOLUTION value of a ByteArray that has been encoded by the PNGEncoder.encode
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);
fileBitmapData.copyPixels(designBitMapData, new Rectangle(0, 0, designW, designH), new Point(0, 0));
var pngEncoder:PNGEncoder = new PNGEncoder();
var pngByteArray:ByteArray = pngEncoder.encode(fileBitmapData);
If you know actionscript and the structure of a PNG file, this should be a 10 minute job for you :D
Additional Project Description:
09/29/2013 at 6:26 AKDT
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.