Fills an ellipse.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub FillEllipse ( _ brush As Brush, _ x As Single, _ y As Single, _ width As Single, _ height As Single _ )
Type: Aurigma.GraphicsMill.Drawing.Brush
Brush object which is used to fill an ellipse.Type: System.Single
X-coordinate of the top left corner of the bounding rectangle for the ellipse.Type: System.Single
Y-coordinate of the top left corner of the bounding rectangle for the ellipse.Type: System.Single
Width of the bounding rectangle for the ellipse.Type: System.Single
Height of the bounding rectangle for the ellipse.// 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, Single, Single, Single, Single) method.