PathAddEllipse(RectangleF) Method

Adds an ellipse to this Path.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
C#
public Path AddEllipse(
	RectangleF bounds
)

Parameters

bounds  RectangleF
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