Interface ILineSegment
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Represents a simple path segment
public interface ILineSegment
Properties
Bounds
Gets the bounds of the linearized segment output.
RectangleF Bounds { get; }
Property Value
EndPoint
Gets the end point.
PointF EndPoint { get; }
Property Value
- PointF
The end point.
StartPoint
Gets the start point.
PointF StartPoint { get; }
Property Value
Methods
CopyTo(Span<PointF>, bool, Vector2)
Writes the segment's linearized points to destination, baked at the supplied
device-space scale.
void CopyTo(Span<PointF> destination, bool skipFirstPoint, Vector2 scale)
Parameters
destinationSpan<PointF>The destination point span.
skipFirstPointboolWhether to skip the first emitted point.
scaleVector2The X/Y scale at which curves are flattened. Pass One for local-space output.
LinearVertexCount(Vector2)
Returns the number of linear vertices emitted by this segment when flattened under the supplied
device-space scale.
int LinearVertexCount(Vector2 scale)
Parameters
Returns
- int
The number of linear vertices this segment emits.
Transform(Matrix4x4)
Transforms the current LineSegment using specified matrix.
ILineSegment Transform(Matrix4x4 matrix)
Parameters
matrixMatrix4x4The matrix.
Returns
- ILineSegment
A line segment with the matrix applied to it.