Edit

SKPathBuilder.AddPoly Method

Definition

Overloads

Name Description
AddPoly(SKPoint[], Boolean)

Appends a polygon contour defined by the specified points.

AddPoly(ReadOnlySpan<SKPoint>, Boolean)

Appends a polygon contour defined by the specified span of points.

AddPoly(SKPoint[], Boolean)

Appends a polygon contour defined by the specified points.

public void AddPoly(SkiaSharp.SKPoint[] points, bool close = true);

Parameters

points
SKPoint[]

An array of points defining the polygon vertices.

close
Boolean

true to close the polygon by adding a line back to the first point; otherwise, false.

Applies to

AddPoly(ReadOnlySpan<SKPoint>, Boolean)

Appends a polygon contour defined by the specified span of points.

public void AddPoly(ReadOnlySpan<SkiaSharp.SKPoint> points, bool close = true);

Parameters

points
ReadOnlySpan<SKPoint>

A read-only span of points defining the polygon vertices.

close
Boolean

true to close the polygon by adding a line back to the first point; otherwise, false.

Applies to