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

GdiGraphics.FillEllipse Method (Brush, RectangleF)

Fills an ellipse.

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

Syntax

Visual Basic
Public Sub FillEllipse ( _
	brush As Brush, _
	rect As RectangleF _
)
C#
public void FillEllipse(
	Brush brush,
	RectangleF rect
)

Parameters

brush

Type: Aurigma.GraphicsMill.Drawing.Brush

Brush object which is used to fill an ellipse.
rect

Type: System.Drawing.RectangleF

The bounding rectangle for the ellipse.

Remarks

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:
C#

// 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.

To outline an ellipse, use DrawEllipse(Pen, RectangleF) method.

See Also

Reference