[Solved]Is there a way to make sure the QImage load the image without alpha channel?
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"
I don't think you can load it like that but you can do it in two step:
Load the original image
Hope it helps
Thanks, I know I can do that, but it would be a waste to transform the image after loading.