This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.DrawEllipse Method

Draws an ellipse.

Overload List

Name Description
Public method DrawEllipse(Pen, Rectangle)

Draws an ellipse.

Public method DrawEllipse(Pen, RectangleF)

Draws an ellipse.

Public method DrawEllipse(Pen, Int32, Int32, Int32, Int32)

Draws an ellipse.

Public method DrawEllipse(Pen, Single, Single, Single, Single)

Draws an ellipse.


Ellipse is defined by its tightest bounding rectangle. If you have an ellipse defined with central point and two radiuses, you can convert these parameters to rectangle in the following way:

// Let's assume we have centerX, centerY - coordinates of the ellipse center, 
// horizontalRadius and verticalRadius - radiuses of the ellipse.
// We are calculating rectX, rectY, rectWidth, and rectHeight which specify 
// bounding rectangle for ellipse.

rectX = centerX - horizontalRadius;
rectY = centerY - verticalRadius;
rectWidth = horizontalRadius * 2;
rectHeight = verticalRadius * 2;

All the coordinates are measured in units specified with Unit property.

See Also