# PNG Decoder

**URL:** <https://forum.kirupa.com/t/png-decoder/243731>\
**Category:** open source\
**Created:** [November 9, 2007, 11:16pm UTC](https://forum.kirupa.com/t/png-decoder/243731 "2007-11-09T23:16:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerion](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jerion](https://forum.kirupa.com/u/jerion)\
**Post date:** [November 9, 2007, 11:16pm UTC](https://forum.kirupa.com/t/png-decoder/243731/1 "2007-11-09T23:16:01Z")

</div>

Hello everybody, this is my first post here, but I have been looking these forums for a while.

Here is my first attempt at decoding images. This is a small class that can decode bytearrays from png images and transfrom that bytearray to a bitmapdata. It is very limited right now, it can only decode truecolour with alpha png images with no interlacing, no filter, and bit depth of 8.

The reason I did this was to avoid using the Loader.loadBytes() method, since I needed a faster way to load lots of small png images at the same time that are read by Flash as raw bytes.

If you have any suggestions, please let me know.
