|Portability||non-portable (GHC only)|
A simple, pure Haskell PNG loader. Currently supports 24bit RGB(A) images with no interlacing. Also lacks support for color indexed (paletted) images.
The image is stored in a StorableArray for compatibility with OpenGL (the array supports getting Ptr Word8 to the image data using withStorableArray function).
Load a PNG file, Left value contains a description of a problem as a String, if any
Get image data as C-compatible StorableArray