Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81747

A way to get pixel data out of QImage without padding

    XMLWordPrintable

Details

    Description

      bits() returns pixel data with padding. To get only the pixel data, one have to make a copy and jump past those padding bytes.

      There could be a function in QImage to do this and to return it in a QByteArray or to copy it to a passed buffer.

      Although I am not sure how pixel sizes less than byte should be handled with something like this.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes