// JP opened flex table

Click to See Complete Forum and Search --> : Transparency in DirectX 9


Yeghia
November 19th, 2003, 12:58 AM
Hello, I'm new to DirectX9
I have a problem,

I'm trying to animate a globe in DirectX9 application. I have several frames of globe in Windows BMP format. That part of bitmap which should transparent has this 0x00FcFcFC color. How can I transparently blit at least one of this frames on my back buffer which already contains another bitmap.

Thanks

galathaea
November 19th, 2003, 08:51 AM
The capability of transparency in blitting with DirectDraw is accomplished through the use of color keys. You use a DDCOLORKEY value in the IDirectDrawSurface method SetColorKey and then during blitting, you pass the DDBLT_KEYSRC flag, which only draws the pixels not matching the key.

Yeghia
November 19th, 2003, 01:54 PM
Thank you for your reply.
Can I use DirectDraw and Direct3D simultaneously to render in the same window?

//JP added flex table