Class LinearLineSegment
Represents a series of control points that will be joined by straight lines
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public sealed class LinearLineSegment : ILineSegment
Constructors
| Improve this Doc View SourceLinearLineSegment(PointF, PointF)
Initializes a new instance of the LinearLineSegment class.
Declaration
public LinearLineSegment(PointF start, PointF end)
Parameters
| Type | Name | Description |
|---|---|---|
| PointF | start | The start. |
| PointF | end | The end. |
LinearLineSegment(PointF, PointF, PointF[])
Initializes a new instance of the LinearLineSegment class.
Declaration
public LinearLineSegment(PointF point1, PointF point2, params PointF[] additionalPoints)
Parameters
| Type | Name | Description |
|---|---|---|
| PointF | point1 | The point1. |
| PointF | point2 | The point2. |
| PointF[] | additionalPoints | Additional points |
LinearLineSegment(PointF[])
Initializes a new instance of the LinearLineSegment class.
Declaration
public LinearLineSegment(PointF[] points)
Parameters
| Type | Name | Description |
|---|---|---|
| PointF[] | points | The points. |
Properties
| Improve this Doc View SourceEndPoint
Gets the end point.
Declaration
public PointF EndPoint { get; }
Property Value
| Type | Description |
|---|---|
| PointF | The end point. |
Methods
| Improve this Doc View SourceFlatten()
Converts the ILineSegment into a simple linear path..
Declaration
public ReadOnlyMemory<PointF> Flatten()
Returns
| Type | Description |
|---|---|
| ReadOnlyMemory<PointF> | Returns the current ILineSegment as simple linear path. |
Transform(Matrix3x2)
Transforms the current LineSegment using specified matrix.
Declaration
public LinearLineSegment Transform(Matrix3x2 matrix)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3x2 | matrix | The matrix. |
Returns
| Type | Description |
|---|---|
| LinearLineSegment | A line segment with the matrix applied to it. |
Explicit Interface Implementations
| Improve this Doc View SourceILineSegment.Transform(Matrix3x2)
Transforms the current LineSegment using specified matrix.
Declaration
ILineSegment ILineSegment.Transform(Matrix3x2 matrix)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3x2 | matrix | The matrix. |
Returns
| Type | Description |
|---|---|
| ILineSegment | A line segment with the matrix applied to it. |