PeachDrawing.Core

PeachDrawing.Core

HatchBrush Class

A paint of evenly spaced lines in one colour over a background colour, like the hatching on a map.

public sealed class HatchBrush : PeachDrawing.Core.Brush

Inheritance System.Object → Brush → HatchBrush

Constructors  
HatchBrush(HatchStyle, PaintColor, PaintColor, double, double) Creates a hatch.
Properties  
Background The colour between the lines.
Foreground The colour of the lines.
LineWidth The thickness of a line, in user units.
Spacing The distance between neighbouring lines, in user units, measured across a horizontal or vertical line (for a diagonal, along a horizontal).
Style The pattern of lines.
Methods  
ToTileBrush(Canvas) Draws one cell of this hatch onto a tile of canvas and returns the brush that repeats it. A canvas that does not know how to paint a hatch directly calls this and paints the result.