Fills the interior of a GraphicsPath.
Assembly: System.Drawing (in System.Drawing.dll)
A GraphicsPath consists of a series of line and curve segments. If the path represented by the path parameter is not closed, an additional segment is added from the last point to the first point to close the path.
Creates a solid red brush.
Creates a graphics path object.
Adds an ellipse to the graphics path.
Fills the path on the screen.
Public Sub FillPathEllipse(ByVal e As PaintEventArgs) ' Create solid brush. Dim redBrush As New SolidBrush(Color.Red) ' Create graphics path object and add ellipse. Dim graphPath As New GraphicsPath graphPath.AddEllipse(0, 0, 200, 100) ' Fill graphics path to screen. e.Graphics.FillPath(redBrush, graphPath) End Sub