Struct LinearContour
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Describes a single contour within a LinearGeometry.
public readonly struct LinearContour
- Inherited Members
Remarks
A contour identifies a contiguous point run in Points and the corresponding range in the derived segment stream exposed by GetSegments().
Properties
IsClosed
Gets a value indicating whether the contour is closed.
public required bool IsClosed { get; init; }
Property Value
Remarks
When true, the final derived segment for the contour joins the last stored point back to the first stored point. Closed contours do not duplicate the first point at the end of their stored point run.
PointCount
Gets the number of stored points belonging to this contour.
public required int PointCount { get; init; }
Property Value
PointStart
Gets the zero-based index of the first point belonging to this contour in Points.
public required int PointStart { get; init; }
Property Value
SegmentCount
Gets the number of derived segments belonging to this contour.
public required int SegmentCount { get; init; }
Property Value
SegmentStart
Gets the zero-based index of the first derived segment belonging to this contour.
public required int SegmentStart { get; init; }