home | snippets | GDI+ .NET Color & HatchStyle Chart
Thanks to Softomatix for their CodeProject article which gives code to generate a chart showing all the predefined colours available in GDI+ as part of the .NET framework. I'm providing the chart here for personal convenience. Perhaps others will find it of use too, as the article doesn't provide a means to download or view the result directly (you have to compile and run the code). This version is provided as a PNG file, rather than the default JPG provided in the article.
I've created an image that shows the effect of GDI+ HatchStyle enumeration value. Each tile consists of a solid rectangle surrounded by an outline of 1 and 2 pixels in thickness. As you can see, many of the HatchStyle values are not well behaved when drawing lines. The C# control is available for download.