This project has moved. For the latest updates, please go here.

hatched regions with SharpMap

Topics: SharpMap Project
Mar 10, 2008 at 9:05 PM
Can someone help me add hatching to a region using SharpMap? It would be great to be able to alter the angle/width/etc. for another layer of thematic mapping.
Is this possible?

Mar 10, 2008 at 11:09 PM
Edited Mar 10, 2008 at 11:21 PM
You can set the Fill property of the layers Style (an instance of SharpMap.Styles.VectorStyle) to a HatchBrush - see are limited to the styles defined in the HatchStyle enumeration though. HTH js
Mar 11, 2008 at 5:33 AM
...or use a TextureBrush with a bitmap that is repeatable/tileable in all directions.
Mar 11, 2008 at 9:58 AM
good call odegaard - I had completely forgotten about that!