MakeColorKeyTexture() public method

Creates an 1bit alpha channel of the texture based on a color
public MakeColorKeyTexture ( Texture texture, Color color ) : void
texture Texture Input texture that will be modified
color Color Color
return void
Example #1
0
 public void MakeColorKey(VideoDriver drv, Position2D colorKeyPixelPos)
 {
     drv.MakeColorKeyTexture(this, colorKeyPixelPos);
 }
Example #2
0
 public void MakeColorKey(VideoDriver drv, Color color)
 {
     drv.MakeColorKeyTexture(this, color);
 }
Example #3
0
 public void MakeColorKey(VideoDriver drv)
 {
     drv.MakeColorKeyTexture(this, new Position2D(0, 0));
 }