LinearGradientPaint Class
A linear gradient, between two points in the coordinates of the shape it paints.
public sealed class LinearGradientPaint : ScenePaint- Inheritance
ScenePaintLinearGradientPaint
Constructors
| Name | Description |
|---|---|
| LinearGradientPaint(double, double, double, double, IEnumerable<SceneGradientStop>) | Initializes a new instance of the LinearGradientPaint class. |
LinearGradientPaint(double, double, double, double, IEnumerable<SceneGradientStop>)
LinearGradientPaint.csInitializes a new instance of the LinearGradientPaint class.
public LinearGradientPaint(double x1, double y1, double x2, double y2, IEnumerable<SceneGradientStop> stops)Parameters
x1double- The x coordinate of the start of the gradient.
y1double- The y coordinate of the start of the gradient.
x2double- The x coordinate of the end of the gradient.
y2double- The y coordinate of the end of the gradient.
stopsIEnumerable<SceneGradientStop>- The color stops, by increasing offset.
Properties
| Name | Description |
|---|---|
| Stops | Gets the color stops. |
| X1 | Gets the x coordinate of the start of the gradient. |
| X2 | Gets the x coordinate of the end of the gradient. |
| Y1 | Gets the y coordinate of the start of the gradient. |
| Y2 | Gets the y coordinate of the end of the gradient. |