Search code examples
.netbrushdrawing2dhatchstyle

Is there a graphical overview of the HatchStyle enumeration?


A hatch pattern is made from two colors: one defined by the BackgroundColor, which fills the background and one for the lines that form the pattern over the background defined by the ForegroundColor property. The HatchStyle property defines what type of pattern the brush has and can be any value from the HatchStyle enumeration. There are more than fifty elements in the HatchStyle enumeration.

The following illustration shows an ellipse filled with a horizontal hatch pattern.

image

Just like for the colors defined in the Color class, I'd like to have a graphical list of all styles defined in HatchStyle, but found none in the MSDN. Do you know of such a overview?


Solution

  • Google does find a lot of info:

    http://www.drewnoakes.com/snippets/GdiColorChart/

    http://www.pardesiservices.com/softomatix/reflectionhatch.asp

    http://www.codeproject.com/KB/combobox/HatchStyleComboBox.aspx

    Have your pick :)