Login  Register

Indexed PNG

Posted by chrtom on Mar 01, 2013; 11:30am
URL: https://forum.jogamp.org/Indexed-PNG-tp4028430.html

I've extended the code of PNGImage.java to support indexed PNG files. I
needed this to be able to load map tiles from OpenStreetMap.

I've revised the constructor of PNGImage to take the necessary steps to
resolve the palette data with the helper methods of pngj.

Maybe you are interested in integrating this feature in future version
of JOGL. A patch is attached.

PNGImage.patch (9K) Download Attachment