Graphics.FillEllipse Method (Brush, Single, Single, Single, Single)
Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
Assembly: System.Drawing (in System.Drawing.dll)
Public Sub FillEllipse ( brush As Brush, x As Single, y As Single, width As Single, height As Single )
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
Width of the bounding rectangle that defines the ellipse.
Height of the bounding rectangle that defines the ellipse.
This method fills the interior of an ellipse with a Brush. The ellipse is defined by the bounding rectangle represented by the x, y, width, and height parameters.
Creates a solid red brush.
Creates the location and size of a rectangle that bounds an ellipse.
Fills the ellipse on the screen.
Public Sub FillEllipseFloat(ByVal e As PaintEventArgs) ' Create solid brush. Dim redBrush As New SolidBrush(Color.Red) ' Create location and size of ellipse. Dim x As Single = 0.0F Dim y As Single = 0.0F Dim width As Single = 200.0F Dim height As Single = 100.0F ' Fill ellipse on screen. e.Graphics.FillEllipse(redBrush, x, y, width, height) End Sub
Available since 1.1