Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QImage : convert 8-bit image to 4-bit image
Forum Update on Tuesday, May 27th 2025

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 488 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thesupershinobi
    wrote on 31 Aug 2019, 07:43 last edited by
    #1

    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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kent-Dorfman
      wrote on 31 Aug 2019, 16:37 last edited by
      #2

      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.

      1 Reply Last reply
      2
      • T Offline
        T Offline
        thesupershinobi
        wrote on 1 Sept 2019, 11:13 last edited by
        #3

        Thanks for your response. :)

        1 Reply Last reply
        0

        1/3

        31 Aug 2019, 07:43

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved