Re: Able to disable JOGL's PNG decoder?

Posted by Sven Gothel on
URL: https://forum.jogamp.org/Able-to-disable-JOGL-s-PNG-decoder-tp4027701p4027740.html

On 01/08/2013 03:21 PM, Hernan [via jogamp] wrote:
> "It appears that the alpha channel is rendered instead of the indexed color
> channel."
>
> There is no "alpha channel" in a PNG indexed image. What happens here is that
> the palette is being ignored by JOGL,

Yes, have to add code to 'explode' it to RGBA.

> and the pixels values (indexes into the
> palette) are interpreted as grayscale values - or, equivalently, a grayscale
> palette is being assumed. The current result (snapshot in the issue
> attachment) can be reproduced by this PNGJ-only code:

Thank you!

~Sven




signature.asc (909 bytes) Download Attachment