Edit

SKPath.AddPoly Method

Definition

Overloads

Name Description
AddPoly(SKPoint[], Boolean)
Obsolete.

Adds a new contour made of just lines.

AddPoly(ReadOnlySpan<SKPoint>, Boolean)
Obsolete.

Adds a polygon contour to the path.

AddPoly(SKPoint[], Boolean)

Caution

Use SKPathBuilder instead.

Adds a new contour made of just lines.

[System.Obsolete("Use SKPathBuilder instead.")]
public void AddPoly(SkiaSharp.SKPoint[] points, bool close = true);

Parameters

points
SKPoint[]

The points that make up the polygon.

close
Boolean

true to close the path; otherwise, false.

Attributes

Applies to

AddPoly(ReadOnlySpan<SKPoint>, Boolean)

Caution

Use SKPathBuilder instead.

Adds a polygon contour to the path.

[System.Obsolete("Use SKPathBuilder instead.")]
public void AddPoly(ReadOnlySpan<SkiaSharp.SKPoint> points, bool close = true);

Parameters

points
ReadOnlySpan<SKPoint>

The points defining the polygon vertices.

close
Boolean

If true, closes the polygon by connecting the last point to the first.

Attributes

Applies to