SFML.Graphics.Image.CreateMaskFromColor C# (CSharp) Method

CreateMaskFromColor() public method

Create a transparency mask from a specified colorkey
public CreateMaskFromColor ( System.Color color ) : void
color System.Color Color to become transparent
return void
        public void CreateMaskFromColor(Color color)
        {
            CreateMaskFromColor(color, 0);
        }

Same methods

Image::CreateMaskFromColor ( System.Color color, byte alpha ) : void

Usage Example

Example #1
0
 public static Texture removeMask(Image image)
 {
     image.CreateMaskFromColor(MASK_COLOUR, 0);
     return new Texture(image, new IntRect(0, 0, (int)(image.Size.X), (int)(image.Size.Y)));
 }
All Usage Examples Of SFML.Graphics.Image::CreateMaskFromColor