Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

farhanx

DDRAW Transparency in 16 bit mode

This topic is 5322 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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);

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!