SceneGradientPaint Class
A gradient: LinearGradientPaint or RadialGradientPaint.
public abstract class SceneGradientPaint : ScenePaint- Inheritance
ScenePaintSceneGradientPaint
Properties
| Name | Description |
|---|---|
| Spread | Gets how the gradient paints beyond its ends. The default is SceneGradientSpread.Pad. |
| Stops | Gets the color stops, by increasing offset. |
| Transform | 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. |
Spread
SceneGradientPaint.csGets how the gradient paints beyond its ends. The default is SceneGradientSpread.Pad.
public SceneGradientSpread Spread { get; init; }Property value
Gets the color stops, by increasing offset.
public IReadOnlyList<SceneGradientStop> Stops { get; }Property value
Transform
SceneGradientPaint.csGets 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; }