Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How can I convert 32 bit images to show on device with 16 bit display ?
QtWS25 Last Chance

How can I convert 32 bit images to show on device with 16 bit display ?

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.8k Views
  • 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.
  • A Offline
    A Offline
    aabc
    wrote on last edited by
    #1

    How can I convert 32 bit images to show on device with 16 bit display ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      moritzg
      wrote on last edited by
      #2

      @ QImage img16bit = img32bit->convertToFormat ( QImage::Format_RGB16 ) @

      :)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aabc
        wrote on last edited by
        #3

        If my image has alpha channel (.png) how can I keep it ?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          moritzg
          wrote on last edited by
          #4

          I think QImage::Format_ARGB4444_Premultiplied may be the format you are looking for. You can check out the other image formats "here":http://qt-project.org/doc/qt-4.8/qimage.html#Format-enum

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aabc
            wrote on last edited by
            #5

            Did you try it on a 16 bit display ?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              moritzg
              wrote on last edited by
              #6

              No. I do not have a 16-bit display readily available, I'm just going by the information in the documentation and from my own experience converting between image formats. Do you not have a display to try it out on?

              1 Reply Last reply
              0
              • A Offline
                A Offline
                aabc
                wrote on last edited by
                #7

                Did anyone used it on 16 bit display ?

                1 Reply Last reply
                0

                • Login

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