SKPath.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) |
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