|ImageData loader with 1bpp images [message #1834012]
||Fri, 30 October 2020 08:03
| Marco Maccaferri
Registered: July 2009
I'm currently updating an SWT stand-alone application with the libraries from 2020-06 release (4.16) and seems that the ImageData loader doesn't load 1bpp (one bit per pixel) images as paletted images anymore, and seems that all images are loaded as 32-bit images.
With the previous version from release 4.6 the image were loaded as 8-bit per pixel paletted.
Is that right ?
I managed to get the paletted imagedata back with getPixel / setPixel, but I'm wondering if there is a flag or some setting to have the previous behaviour.
I'm using Linux (Ubuntu 20.10, 64 bit), the image is described as "PNG image data, 256 x 128, 1-bit colormap, non-interlaced".
Powered by FUDForum
. Page generated in 0.01529 seconds