Convert 32Bit Bitmap into 24Bit Bitmap HELP!!!!
-
i dont find any article on this topic on the whole net, and the MSDN library! so i tryed it myself with GetBitmapBits, and SetBitmapBits. i copyed every BYTE from the 32bit bitmap into the 24bit bitmap, except every 4th. BYTE value, which is supposed to be the alpha value. so, now i should have a 24 bit bitmap, isnt it? but it does not work really.... pleas help me, is there no easy approach? thanx a lot andreas
-
i dont find any article on this topic on the whole net, and the MSDN library! so i tryed it myself with GetBitmapBits, and SetBitmapBits. i copyed every BYTE from the 32bit bitmap into the 24bit bitmap, except every 4th. BYTE value, which is supposed to be the alpha value. so, now i should have a 24 bit bitmap, isnt it? but it does not work really.... pleas help me, is there no easy approach? thanx a lot andreas
first of all u have to modify the bitmap's header! I'm not sure about what byte is the alpha one, but i think it was the first one! Don't try it, just do it! ;-)