Table of Contents

Struct ClipBounds

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Represents a rectangular clipping region as axis-aligned bounds in the design space of the glyph source together with the transform that maps that space to the rendering surface.

public readonly struct ClipBounds
Inherited Members

Remarks

A renderer clips against Bounds in design space first, then applies Transform to the result. The bounds are never pre-transformed: a transformed region loses its axis-aligned rectangle and with it the ability to intersect exactly in design space.

Constructors

ClipBounds(FontRectangle, Matrix3x2)

Initializes a new instance of the ClipBounds struct.

public ClipBounds(FontRectangle bounds, Matrix3x2 transform)

Parameters

bounds FontRectangle

The axis-aligned bounds of the clipping region in design space.

transform Matrix3x2

The transform from the design space of bounds to the rendering surface.

Properties

Bounds

Gets the axis-aligned bounds of the clipping region in design space.

public FontRectangle Bounds { get; }

Property Value

FontRectangle

Transform

Gets the transform from the design space of Bounds to the rendering surface.

public Matrix3x2 Transform { get; }

Property Value

Matrix3x2