QImage: padding after call to convertToFormat()
General and Desktop
2
Posts
1
Posters
2.8k
Views
1
Watching
-
I'm using QImage::convertToFormat() to convert images to grayscale and it looks like the internal data is padded on a multiple of 4 pixels.
Is there any way to guaranty that QImage::bits() point to contiguous memory? -
Hum. This comment "The scanline data is aligned on a 32-bit boundary." would fit nicely under the QImage::bits() section of the manual!