Class Paint
Base type for normalized paint definitions that can be used by any renderer. Glyph sources must pre-apply all relevant transforms and resolve any palette or format-specific constructs before creating a paint instance.
public abstract class Paint
- Inheritance
-
Paint
- Derived
- Inherited Members
Properties
CompositeMode
Gets the composite mode to use when applying this paint over existing content.
public CompositeMode CompositeMode { get; init; }
Property Value
Opacity
Gets the per-layer opacity multiplier in the range [0, 1]. Renderers should multiply this value into the alpha channel of the final brush.
public float Opacity { get; init; }
Property Value
Transform
Gets the transform from the paint's own coordinate space to the space the glyph is rendered in. Gradient geometry is defined in the paint's space, so a renderer maps each sample through the inverse of this transform before evaluating the gradient.
public Matrix3x2 Transform { get; init; }