GraphicsPath [modified]
-
Suppose I have GraphicsPath object named gp. Please, tell me how to draw these 2 shapes (I tried but it is wird :sigh: ): home.icslab.agh.edu.pl/~martinez/f1.jpg[^] home.icslab.agh.edu.pl/~martinez/f2.jpg[^] thank you very much in advance
-
Suppose I have GraphicsPath object named gp. Please, tell me how to draw these 2 shapes (I tried but it is wird :sigh: ): home.icslab.agh.edu.pl/~martinez/f1.jpg[^] home.icslab.agh.edu.pl/~martinez/f2.jpg[^] thank you very much in advance
The first one can be achieved with
GraphicsPath.AddArc()
, followed byGraphicsPath.AddLine()
to add the lower horizontal line. When you callFillPath()
on your givenGraphics
object, the path will be closed automatically. The second one is very similar, you'll add anArc
, aLine
, and anotherArc
. You might have to setGraphicsPath.FillMode
toFillMode.Winding
in the second case or you'll get unexpected results.Regards, mav -- Black holes are the places where god divided by 0...