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.
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?
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With