Direct_Draw

Started by
0 comments, last by GameDev.net 24 years, 4 months ago
I need to use direct draw in order to blit a sprite to the screen. If the sprite has a white background like in MS Paint how can I use Direct Draw to blit it to the screen so the white background is transparent and the bacground of the form shows through?
thanx
Advertisement
Simply define a Source-ColorKey in your DDBLTFX-Struct and use the DDBLT(FAST)_SRCCOLORKEY-Flag.

That's it.

Bye

This topic is closed to new replies.

Advertisement