Hi all,
I'd like to load a bitmap file into a QImage but I'd like to have it in RGB24 format(in order to acces with bits() a buffer 0xRRGGBB), reading the documentation this format is not allowed, is there a way to do so?
thanks in advance
Hi all,
I'd like to load a bitmap file into a QImage but I'd like to have it in RGB24 format(in order to acces with bits() a buffer 0xRRGGBB), reading the documentation this format is not allowed, is there a way to do so?
thanks in advance
You'll probably have to use 32 bits, I'm not sure which byte is the alpha-channel but a quick test with an image of known values (ie. all red) should let you know. You can also useto get the values of a specific pixelQt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks