Fills an ellipse.
Name | Description | |
---|---|---|
FillEllipse(Brush, Rectangle) |
Fills an ellipse. |
|
FillEllipse(Brush, RectangleF) |
Fills an ellipse. |
|
FillEllipse(Brush, Int32, Int32, Int32, Int32) |
Fills an ellipse. |
|
FillEllipse(Brush, Single, Single, Single, Single) |
Fills an 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.