Transparent Color

Froggy

New member
Joined
Jun 25, 2003
Messages
1
Location
Holy Land :)
I was wondering...
How can i set a specific color as the trasnparent color, using the ColorKey struct in surfaces

I know that by default its black
and ive tried to put all kinds of values there but it seems like its black or nothing :(

help me plz
((Using DX9 with C#))
 
C#:
ColorKey MyColKey;
MyColKey.ColorSpaceHighValue=Color.Orange.ToArgb;
MyColKey.ColorSpaceLowValue=Color.Orange.ToArgb;

MySurface.SetColorKey(ColorKeyFlags.SourceDraw, MyColKey);
 
Back
Top