Graphics.DrawEllipse

DrawEllipse(Pen, RectangleF)

Draws an ellipse defined by a bounding RectangleF.

public void DrawEllipse(Pen pen, RectangleF rect)
ParameterTypeDescription
penPenPen that determines the color, width, and style of the ellipse.
rectRectangleFRectangleF structure that defines the boundaries of the ellipse.

See Also


DrawEllipse(Pen, float, float, float, float)

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)
ParameterTypeDescription
penPenPen that determines the color, width, and style of the ellipse.
xSingleThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
ySingleThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
widthSingleWidth of the bounding rectangle that defines the ellipse.
heightSingleHeight of the bounding rectangle that defines the ellipse.

See Also