Howto create lines like this in GDI+?

liunx

Guest
Howwould I go about to create a shape like the folowing?

<!-- m --><a class="postlink" href="http://xs26.xs.to/pics/05176/shield.gif">http://xs26.xs.to/pics/05176/shield.gif</a><!-- m -->

I use the Graphics class but I can't seem to get the result I want. DrawBeziers isn't quite right and niether is DrawCurves.

I suppose Beziers would work fine if I somehow could get it to make sharp corners...

Any ideas?DrawBeziers should work. How "non-sharp" are your corners getting? The shape you showed would take 4 segments to draw. Are you trying to use less?

The array of points would be like this: start, control1, control2, end1,
control3, control4, end2, control5, control6, end3, control7, control8, start (because the line is closed).
 
Top