This project has moved and is read-only. For the latest updates, please go here.

hatched regions with SharpMap

Topics: SharpMap Project
Mar 10, 2008 at 10: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 11, 2008 at 12:09 AM
Edited Mar 11, 2008 at 12:21 AM
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 6:33 AM
...or use a TextureBrush with a bitmap that is repeatable/tileable in all directions.
Mar 11, 2008 at 10:58 AM
good call odegaard - I had completely forgotten about that!