Class Polygon
A shape made up of a single closed path made up of one of more ILineSegments
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public class Polygon : Path, ISimplePath, IPath
Constructors
| Edit this page View SourcePolygon(ILineSegment)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(ILineSegment segment)
Parameters
Type | Name | Description |
---|---|---|
ILineSegment | segment | The segment. |
Polygon(params ILineSegment[])
Initializes a new instance of the Polygon class.
Declaration
public Polygon(params ILineSegment[] segments)
Parameters
Type | Name | Description |
---|---|---|
ILineSegment[] | segments | The segments. |
Polygon(PointF[])
Initializes a new instance of the Polygon class.
Declaration
public Polygon(PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
PointF[] | points | The collection of points; processed as a series of linear line segments. |
Polygon(IEnumerable<ILineSegment>)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<ILineSegment> segments)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ILineSegment> | segments | The segments. |
Properties
| Edit this page View SourceIsClosed
Gets a value indicating whether this instance is a closed path.
Declaration
public override bool IsClosed { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourceTransform(Matrix3x2)
Transforms the path using the specified matrix.
Declaration
public override IPath Transform(Matrix3x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
Matrix3x2 | matrix | The matrix. |
Returns
Type | Description |
---|---|
IPath | A new path with the matrix applied to it. |