Table of Contents

Struct LinearGeometryInfo

Namespace
SixLabors.ImageSharp.Drawing
Assembly
SixLabors.ImageSharp.Drawing.dll

Describes geometry-wide metadata for a LinearGeometry instance.

public readonly struct LinearGeometryInfo
Inherited Members

Remarks

This metadata is computed eagerly during lowering so backends do not need to enumerate the geometry again to discover basic information such as total segment count or bounds.

Properties

Bounds

Gets the bounds of all points stored in the containing LinearGeometry.

public required RectangleF Bounds { get; init; }

Property Value

RectangleF

ContourCount

Gets the total number of contours in the containing LinearGeometry.

public required int ContourCount { get; init; }

Property Value

int

NonHorizontalSegmentCountPixelBoundary

Gets the number of derived segments that remain non-horizontal when sampled on pixel boundaries.

public required int NonHorizontalSegmentCountPixelBoundary { get; init; }

Property Value

int

Remarks

A segment contributes to this count when its start and end sample into different rows under pixel-boundary sampling.

NonHorizontalSegmentCountPixelCenter

Gets the number of derived segments that remain non-horizontal when sampled at pixel centers.

public required int NonHorizontalSegmentCountPixelCenter { get; init; }

Property Value

int

Remarks

A segment contributes to this count when its start and end sample into different rows after the half-pixel center-sampling offset is applied.

PointCount

Gets the total number of stored points across all contours.

public required int PointCount { get; init; }

Property Value

int

SegmentCount

Gets the total number of derived linear segments across all contours.

public required int SegmentCount { get; init; }

Property Value

int