Friday, June 25, 2010

Creating gif/bmp snapshots with actionscript

Question :
As of now, I am creating JPEG image from bitmapdata as in the attached code.
I can use PNGEncoder for creating png images as well.
How do I create .bmp or .gif files?

Answer :
there are encoders available for those formats as well:

gif - http://code.google.com/p/as3gif/
bmp - http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/images/BMPEncoder.as

No comments:

Blog Archive