Transparent

EK1

Freshman
Joined
Aug 20, 2003
Messages
28
I am trying to set my back buffer fill to transparent

surfaceSecondary.ColorFill(Color.Transparent)


I receive an error, "This control does not support transparent backgrounds".

If I wanted to do this with a control I could do

Control.SetStyle(ControlStyles.SupportsTransparentBackColor, True)


Is there a way to do this with surfaces?
 
Surfaces(DirectDraw) were designed to be used exclusively using Device Colors(Video Card Color Information) and interoperate with GDI not GDI+. DirectDraw has never supported transparent colors because it wasn't designed to. If you want to make a certain color(Black through to white but not"transparent") transparent you would use a ColorKey then specify the appropriate color key flag when blting
 
Back
Top