Login  Register

Re: PNGPixelRect can only handle Lum/RGB/RGBA [1/3/4 bpp] images for now

Posted by gouessej on Nov 15, 2017; 1:37pm
URL: https://forum.jogamp.org/PNGPixelRect-can-only-handle-Lum-RGB-RGBA-1-3-4-bpp-images-for-now-tp4038318p4038319.html

Hi

You could modify the buffered image so that it uses a supported pixel format. Which kind of PNG do you use? "BytesPerPixel 8" is weird.

Edit.: You're probably using grayscale or truecolor PNGs with 2 bytes per sample. You can simply drop the least significant byte so that it uses 1 byte per sample, i.e 4 bytes per pixel which is supported by JOGL.
Julien Gouesse | Personal blog | Website