Fills the inside of an ellipse. The ellipse size and position is specified using a bounding rectangle.
Syntax

[C#]

void FillEllipse(Brush brush, double x, double y, double width, double height);
void FillEllipse(Brush brush, RectangleF rect);

[Visual Basic]

Sub FillEllipse(brush As Brush, x As Double, y As Double, width As Double, height As Double)
Sub FillEllipse(brush As Brush, rect As RectangleF)
Params
Name Description
brush The brush to use for the fill.
x The left coordinate of the bounding rectangle.
y The top coordinate of the bounding rectangle.
width The width of the bounding rectangle.
height The height of the bounding rectangle.
rect The bounding rectangle for the ellipse.
Notes

None.

Example

Here we paint and draw a red oval.

[C#]

using (Bitmap bm = new Bitmap(500, 500)) {
  using (Graphics gr = Graphics.FromImage(bm))
    gr.FillEllipse(Brushes.Red, new RectangleF(50, 50, 400, 400));
  bm.Save(Server.MapPath("IG8_Graphics_FillEllipse.png"));
}



IG8_Graphics_FillEllipse.png