kpgraci
Active member
I'm doing this:
gp = New GraphicsPath
gp.AddArc(New Rectangle(0, 15, 100, 100), 180, 90)
gp.AddArc(New Rectangle(50, 15, 150, 100), 180, 90)
outlineColor = Color.Gray
g.DrawPath(New Pen(outlineColor, 1), gp)
gp.Dispose()
But the two arcs are connected with a line. My goal is to draw then fill an enclosed polygon composed of arcs and lines.
Is there a way to 'lift' the pen between unconnected portions of the path, or do I have to trace out the path in order so that all sub-paths drawn are connected as they should be? (hope that makes sense)
thx
gp = New GraphicsPath
gp.AddArc(New Rectangle(0, 15, 100, 100), 180, 90)
gp.AddArc(New Rectangle(50, 15, 150, 100), 180, 90)
outlineColor = Color.Gray
g.DrawPath(New Pen(outlineColor, 1), gp)
gp.Dispose()
But the two arcs are connected with a line. My goal is to draw then fill an enclosed polygon composed of arcs and lines.
Is there a way to 'lift' the pen between unconnected portions of the path, or do I have to trace out the path in order so that all sub-paths drawn are connected as they should be? (hope that makes sense)
thx