PathAddEllipse(Single, Single, Single, Single) Method

Adds an ellipse to this Path.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public Path AddEllipse(
	float x,
	float y,
	float width,
	float height
)

Parameters

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

Return Value

Path
This Path instance.

Remarks

The ellipse is added as a new closed figure.

The coordinates of the specified bounding rectangle are not validated here, but in the moment of drawing the coordinates of the possibly transformed path points must fall into the bounds of an int value; otherwise, an OverflowException will be thrown.

See Also