3

Given a ByteArray containing JPG or PNG data, is there a way to retrieve synchronically a corresponding BitmapData in Adobe AIR?

Mat
  • 4,281
  • 9
  • 44
  • 66

1 Answers1

3

JPEGDecoder

PNGDecoder

Otherwise, use loadBytes. I'd say use loadBytes, since it won't halt your thread.

ansiart
  • 2,563
  • 2
  • 23
  • 41