PathGetPoints Method

Gets the points of the figures in this Path instance.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public IList<PointF[]> GetPoints()

Return Value

IListPointF
The points of the figures in this Path instance.

Remarks

The returned list contains the points of the figures in the order they were added to the Path instance. Every figure is represented by an array of flattened points that can be interpreted as a series of connected lines.

If a figure is closed and has at least 3 points, then it is ensured that the last point of the figure is the same as the first point.

This method can be used to provide a bridge between the Path class and other graphics libraries or APIs.

  Tip

To obtain figures as they were added to the Path without flattening, you can also use the Figures property.

See Also