PathAddPolygon(IEnumerablePointF) Method

Adds a polygon to this Path.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
C#
public Path AddPolygon(
	IEnumerable<PointF> points
)

Parameters

points  IEnumerablePointF
The points of the polygon to add to this Path.

Return Value

Path
This Path instance.

Remarks

The points specify the vertices of the polygon.

This method always adds a new closed figure to this Path.

The points 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.

Exceptions

See Also