Graphics.DrawPath Method (Pen, GraphicsPath)
Draws a GraphicsPath.
Assembly: System.Drawing (in System.Drawing.dll)
The current transformation in the graphic context is applied to the GraphicsPath before it is drawn.
Creates a graphics path object and adds an ellipse to it.
Creates a black pen.
Draws the graphics path to the screen.
Public Sub DrawPathEllipse(ByVal e As PaintEventArgs) ' Create graphics path object and add ellipse. Dim graphPath As New GraphicsPath graphPath.AddEllipse(0, 0, 200, 100) ' Create pen. Dim blackPen As New Pen(Color.Black, 3) ' Draw graphics path to screen. e.Graphics.DrawPath(blackPen, graphPath) End Sub
Available since 1.1