QImage: padding after call to convertToFormat()



  • 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!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.