Modify PNG ByteArray Resolution Byte/Word in AS3

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.


Beceriler: ActionScript, Görüntüleme

Daha fazlasını gör: as3 modify png file, as3 png bytearray, as3 bytearray png, job png, as3 or, as3 0, resolution, encode to word, byte, encode job, job encode, actionscript word, as3 encode, typing job image file word, resolution code, word vba save picture png, file bytearray as3, vba resolution png, resolution file, file resolution

İşveren Hakkında:
( 2 değerlendirme ) Saint Cloud, United States

Proje NO: #4968248



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

%selectedBids___i_period_sub_7% gün içinde 43%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(0 Değerlendirme)

Bu iş için 5 freelancer ortalamada $60 teklif veriyor


lets do it....

in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(67 Değerlendirme)

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(9 Değerlendirme)

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

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

Hi, I'm actionscript developer. I can help you.

in %bids___i_period_sub_35% gün içinde111%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)