HatchStyle Enum

The tiles of 8 by 8 pixels a hatch PatternBrush repeats: lines, or a fraction of the pixels.

public enum HatchStyle

Remarks

The pixel (x, y) of the tile, from its top-left corner, has the foreground color where the style says so, and the background color elsewhere. The percentages light the pixels of lowest rank in the ordered dither matrix of 8 by 8 (Bayer): round(64 p / 100) pixels for p percent, spread evenly over the tile, each one also lit by every higher percentage.

Fields

NameValueDescription
Horizontal0A horizontal line: the pixels of the row 0.
Vertical1A vertical line: the pixels of the column 0.
Cross2A horizontal line and a vertical line: the pixels of the row 0 and of the column 0.
ForwardDiagonal3A line from the top-left corner to the bottom-right corner: the pixels where x = y.
BackwardDiagonal4A line from the top-right corner to the bottom-left corner: the pixels where x + y = 7.
DiagonalCross5Both diagonals: the pixels of HatchStyle.ForwardDiagonal and of HatchStyle.BackwardDiagonal.
Percent1066 pixels of the 64 (9.4%).
Percent20713 pixels of the 64 (20.3%).
Percent30819 pixels of the 64 (29.7%).
Percent40926 pixels of the 64 (40.6%).
Percent501032 pixels of the 64, a checkerboard (50%).
Percent601138 pixels of the 64 (59.4%).
Percent701245 pixels of the 64 (70.3%).
Percent801351 pixels of the 64 (79.7%).
Percent901458 pixels of the 64 (90.6%).