BrushExtensionMethods

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

Properties

ChequerTexture

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

Methods

ChequerBrush

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

ChequerBrush

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

ChequerBrush

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

ChequerTextureCustom

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