PDA

View Full Version : Is there a way to make sure the QImage load the image without alpha channel?



stereoMatching
15th September 2013, 20:17
Assume there are a bunch of images come with alpha channel(rgba)
when I load them by QImage, the QImage would load the value of alpha channel too.
How could I order the QImage ditch the alpha channel when loading?

Precisely, I want it to load the image as format “QImage::Format_RGB888”

anda_skoa
15th September 2013, 22:16
I don't think you can do that at load, but you can try loading and then convertToFormat()

Cheers,
_