Spiro Posted February 10, 2003 Posted February 10, 2003 Hi, I trying to move sprite around background. Sprite background is white while background picture is colored. How can i tell to ddraw which color should be transparent? Quote
*Gurus* divil Posted February 10, 2003 *Gurus* Posted February 10, 2003 You need to create a ColorKey object, set both its color value properties to white, and apply it to your sprite surface using its SetColorKey method. Then you specify the KeySource flag when you blit the surface. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.