SKPathBuilder.AddPoly Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.