Posted By

Heol on 06/23/11


Tagged

BitmapByteArray


Versions (?)

BitmapData to ByteArray


 / Published in: ActionScript 3
 

URL: http://blog.yoz.sk/2009/10/bitmap-bitmapdata-bytearray/

  1. import mx.graphics.codec.JPEGEncoder;
  2. import flash.utils.ByteArray;
  3. var encoder:JPEGEncoder = new JPEGEncoder(90);
  4. var byteArray:ByteArray = encoder.encode(bitmapData));
  5. // result: byteArray

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Heol on June 23, 2011

JPEG Encoder : http://blog.yoz.sk/2009/10/actionscript-3-encoding-jpeg/

You need to login to post a comment.