Click here to Skip to main content
15,885,716 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a GIS application in C# .net 4.5. I need to create custom hatches to fill various shapes like polygons, circles, etc. Please help.
Posted

1 solution

You could use TextureBrush instead of HatchBrush.

If you look at HatchBrush.cs[^] source, you can see, that it is based on GDI+ (native) hatch styles, so you have little chance to add new one that way.
 
Share this answer
 
Comments
kalyan chattopadhyay 20-Mar-13 8:10am    
Thanks. But I think TextureBrush will work only with Bitmaps. But I need to fill with vector so that in any zoom level it does not get distorted.
Zoltán Zörgő 20-Mar-13 8:14am    
In wpf you can use vector brushes, like here: http://www.codeproject.com/Articles/45584/Vector-Brush-Library

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900