SceneGradientPaint Class

public abstract class SceneGradientPaint : ScenePaint
Inheritance
ScenePaint SceneGradientPaint

Properties

NameDescription
SpreadGets how the gradient paints beyond its ends. The default is SceneGradientSpread.Pad.
StopsGets the color stops, by increasing offset.
TransformGets the transform from the coordinates of the gradient to the coordinates of the shape it paints, as the gradientTransform of SVG, or null for none: it skews, rotates or stretches a gradient, such as a radial gradient into an ellipse.

Gets how the gradient paints beyond its ends. The default is SceneGradientSpread.Pad.

public SceneGradientSpread Spread { get; init; }

Property value

SceneGradientSpread

Gets the color stops, by increasing offset.

public IReadOnlyList<SceneGradientStop> Stops { get; }

Gets the transform from the coordinates of the gradient to the coordinates of the shape it paints, as the gradientTransform of SVG, or null for none: it skews, rotates or stretches a gradient, such as a radial gradient into an ellipse.

public SceneTransform? Transform { get; init; }

Property value

SceneTransform?