DDRAW Transparency in 16 bit mode

Started by
0 comments, last by farhanx 20 years, 2 months ago
on 16 bit rgb mode how can i make bitmap transparent ?? suppose i want to disable the white colour then what should i use ?? here is my code but it isnt working lpBmp=Bitmapimage; DDCOLORKEY key; key.dwColorSpaceLowValue=0;//RGB16BIT(255,255,255); key.dwColorSpaceHighValue=255;//RGB16BIT(255,255,255); lpDDSPrimary->SetColorKey(DDCKEY_SRCBLT,&key); lpDDSPrimary->BltFast(x,y,lpBmp,0,FALSE);
Things has been changed but the just the way it is....
Advertisement
You need to set both the low and the high value to the color you want to be transparent. The code you have commented out on those lines should be put back in.

This topic is closed to new replies.

Advertisement