System.Drawing.Graphics.DrawEllipse Method

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

Syntax

public void DrawEllipse (Pen pen, float x, float y, float width, float height)

Parameters

pen
System.Drawing.Pen that determines the color, width, and style of the ellipse.
x
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
y
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
width
Width of the bounding rectangle that defines the ellipse.
height
Height of the bounding rectangle that defines the ellipse.

Remarks

This method draws an ellipse that is defined by the bounding rectangle described by the x, y, width, and height parameters.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0