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-tp4027701p4027742.html
On 01/08/2013 03:50 PM, hernan [via jogamp] wrote:
> Sven Gothel wrote
> Yes, have to add code to 'explode' it to RGBA.
>
> In case this helps, the logic (included transparency handling, which might
> come in the TRNS chunk, outside the palette) is implemented in
> ImageLineHelper.palette2rgb, see SampleConvPalToTrueColor
> <
https://code.google.com/p/pngj/source/browse/pnjg/src/ar/com/hjg/pngj/test/SampleConvPalToTrueColor.java>.
> The method returns a RGB or RGBA depending on wheter transparency is present,
That information is very helpful, thank you very much HernĂ¡n!
> perhaps I should add a flag argument to force RGBA mode...
Not required by us, i.e. we serve it in either RGB or RGBA format
w/o modifications.
~Sven