Table of Contents

Enum GradientUnits

Namespace
SixLabors.Fonts.Rendering
Assembly
SixLabors.Fonts.dll

Coordinate system to interpret gradient geometry.

public enum GradientUnits

Fields

ObjectBoundingBox = 0

Coordinates are normalized to the painted geometry's bounds ([0, 1] in X and Y). The renderer will map these to the actual path bounds at paint time.

UserSpaceOnUse = 1

Coordinates are absolute in the same space as the already-transformed geometry. Interpreters must pre-apply any gradient transforms before creating the paint.