简体   繁体   中英

Flex PNG/JPG decoder

Now, I run the following code in Flash to get the raw binary data of one PNG file.

var fr:FileReference = new FileReference; fr.browse(); fr.load(...);

After loading complete, I think I can access the PNG file binary data from fr.data, now, I want to display this PNG picture in my application, could you please tell me, is there anything like that can decode the PNG format binary data into a Bitmap?

Thanks!

If you want to display it you should be able to use Loader.loadBytes() .

Loader is a DisplayObject, so you can add it to the display list and it will show the image.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM