DrawEllipse

Graphics.DrawEllipse method (1 of 2)

Draws an ellipse defined by a bounding RectangleF.

public void DrawEllipse(Pen pen, RectangleF rect)
Parameter Type Description
pen Pen Pen that determines the color, width, and style of the ellipse.
rect RectangleF RectangleF structure that defines the boundaries of the ellipse.

See Also


Graphics.DrawEllipse method (2 of 2)

Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.

public void DrawEllipse(Pen pen, float x, float y, float width, float height)
Parameter Type Description
pen Pen Pen that determines the color, width, and style of the ellipse.
x Single The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
y Single The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
width Single Width of the bounding rectangle that defines the ellipse.
height Single Height of the bounding rectangle that defines the ellipse.

See Also