HatchBrush Class

Represents a brush which fills the shape with a predefined pattern.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public sealed class HatchBrush : Brush, IDisposable

Remarks

Hatch brush is defined with three parameters:

  1. Hatch style or pattern (HatchStyle)
  2. Foreground color, i.e. a pattern color (ForegroundColor)
  3. Background color (BackgroundColor)

Besides of this, you can disable a background with TransparentBackground property. In this case only pattern will be drawing with foreground on the underlying image.

You can convert this brush instance into its analogue from System.Drawing namespace using method ToGdiPlusBrush(), or an appropriate cast operator.

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Drawing.Brush
L Aurigma.GraphicsMill.Drawing.HatchBrush

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference