PDA

View Full Version : Bitmap transparency



James Lovejoy
11-12-2011, 03:20 PM
Hi,

My textures are loaded in as bitmaps. How can I make it so all the black in the texture is transparent?

Thanks,

James

BionicBytes
11-13-2011, 09:48 AM
You will have to convert the image data from 24-bit to 32-bit.
Whilst you read each scan line of the bitmap image detect when you have a black pixel and set the alpha to some value, eg 0 and 255 for all other values.