BrushExtensionMethods

public static class BrushExtensionMethods
Provides extension and utility methods for Eto brushes.

Properties

ChequerTexture

#
public static Bitmap ChequerTexture { get; }
Gets the white/grey chequered background texture used to show transparency. This texture is cached and should never be disposed by the caller.
Texture.

Methods

ChequerBrush

#
public static TextureBrush ChequerBrush()
Create a new chequer texture brush.
New brush.

ChequerBrush

#
public static TextureBrush ChequerBrush(IMatrix transform)
Create a new chequer texture brush.
transform (IMatrix)Texture transform.
New brush.

ChequerBrush

#
public static TextureBrush ChequerBrush(PointF offset)
Create a new chequer texture brush.
offset (PointF)Texture origin offset.
New brush.

ChequerTextureCustom

#
public static Bitmap ChequerTextureCustom(int size, Color colour0, Color colour1)
Create a new custom chequer texture. This texture isn't cached and must be disposed by the caller.
size (int)Size of a single square. The texture will be twice as big.
colour0 (Color)Colour of odd squares.
colour1 (Color)Colour of even squares.
Bitmap.