Struct ClipBounds
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
boundsFontRectangleThe axis-aligned bounds of the clipping region in design space.
transformMatrix3x2The transform from the design space of
boundsto the rendering surface.
Properties
Bounds
Gets the axis-aligned bounds of the clipping region in design space.
public FontRectangle Bounds { get; }
Property Value
Transform
Gets the transform from the design space of Bounds to the rendering surface.
public Matrix3x2 Transform { get; }