⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

QImage : convert 8-bit image to 4-bit image

  • 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

  • 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.

  • Thanks for your response. :)

Log in to reply