Graphics.DrawEllipse Method (Pen, Int32, Int32, Int32, Int32)

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

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void DrawEllipse(
	Pen pen,
	int x,
	int y,
	int width,
	int height
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

A Pen that determines the color, width, and style of the ellipse.
x

Type: System.Int32

The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
y

Type: System.Int32

The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
width

Type: System.Int32

The width of the bounding rectangle that defines the ellipse.
height

Type: System.Int32

The height of the bounding rectangle that defines the ellipse.

Remarks

Ellipse is defined by its tightest bounding rectangle.

To fill an ellipse, use FillEllipse(Brush, Int32, Int32, Int32, Int32) method.

See Also

Reference