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
| Improve this Doc 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(ILineSegment[])
Initializes a new instance of the Polygon class.
Declaration
public Polygon(params ILineSegment[] segments)
Parameters
| Type | Name | Description |
|---|---|---|
| ILineSegment[] | segments | The 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
| Improve this Doc View SourceIsClosed
Gets a value indicating whether this instance is a closed path.
Declaration
public override bool IsClosed { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Overrides
Methods
| Improve this Doc 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. |