QImage : convert 8-bit image to 4-bit image
-
wrote on 31 Aug 2019, 07:43 last edited by
Hi, I would like to convert 8-bit images to 4-bit images to be exploited on older systems that are limited to 16 colors per palette like the Sega Genesis.
Would you have a method or idea to convert images to 4-bit with QImage?
thanks in advance
-
wrote on 31 Aug 2019, 16:37 last edited by
A quick scan of the QImage reference shows that for color indexed images 8 bit is the smallest depth supported. If you want to do 4 bit then you will have to read the pixel data from the 8 bit image and use means external to Qt to downsample it.
-
wrote on 1 Sept 2019, 11:13 last edited by
Thanks for your response. :)
1/3