Fill path with stripes?


#1

OK, novice graphics question for all of you…

I’d like to fill a path with diagonal stripes. Nothing fancy, just diagonal lines at an interval.

What’s the best way to accomplish this? The Brush class header says it can do patterns, but I don’t see any calls to define a pattern. I certainly don’t want to draw the stripes one by one, because the paths might be irregular, and I don’t want to draw outside the path bounds.

Any hints?


#2

Draw your lines on a tiny 16x16 Image, then make a ImageBrush out of the Image.


#3

thanks! I’ll give that a try.