Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
None
-
None
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.