Viewing entries posted in April 2012

Bitmap to ByteArray

Posted by Alexis on 23 April 2012 | 0 Comments

Tags:

I found this nifty method for saving out bitmap data from flash. It works a lot faster than using PNGEncoder and JPEGEncoder, this is obvious because no image encoding takes place, just the extraction of bytes. The down side is the filesize is a lot bigger being an uncompressed format uncompress. After testing it out I actually went back to PNGEncoder, becuase the application I'm building requires a lot of images. The disk space and load time trumps write speed.

0 comments | Read the full post