Encapsulates a brush with a linear gradient. This data object stores linear gradient parameters for SkiaSharp rendering.
LinearGradientBrush
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | Creates a linear gradient brush from a rectangle, two colors, and a gradient mode. |
| SetBlendTriangularShape | 1 | Sets the blend factors and positions to create a triangular falloff from center to edges. |
| SetSigmaBellShape | 1 | Creates a linear gradient brush from rectangle and the sigma bell gradient profile. |
| ToString | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| LinearColors | 1 | Gets or sets the starting and ending colors of the gradient. |
| Rectangle | 1 | Gets or sets the bounding rectangle of the gradient. |
| Angle | 1 | Gets or sets the angle orientation of the gradient, in degrees. |
| GammaCorrection | 1 | Gets or sets a value indicating whether gamma correction is enabled for this brush. |
| WrapMode | 1 | Gets or sets the wrap mode for this LinearGradientBrush. |
| Blend | 1 | Gets or sets a Blend that specifies positions and factors for custom falloff. |
| InterpolationColors | 1 | Gets or sets a ColorBlend that defines a multicolor linear gradient. |
| Transform | 1 | Gets or sets a copy of the Matrix that defines a local geometric transform. |
04 Members
RectangleF, Color, Color, Single)Creates a linear gradient brush from a rectangle and two colors.
| Name | Type | Description |
|---|---|---|
rect | RectangleF | The bounding rectangle for the gradient. |
color1 | Color | The starting color of the gradient. |
color2 | Color | The ending color of the gradient. |
angle | Single | The angle of the gradient line, in degrees, from horizontal. |
Creates a linear gradient brush from a rectangle, two colors, and a gradient mode.
Single, Single)Sets the blend factors and positions to create a triangular falloff from center to edges.
Single, Single)Creates a linear gradient brush from rectangle and the sigma bell gradient profile.
Gets or sets the starting and ending colors of the gradient.
Gets or sets the bounding rectangle of the gradient.
Gets or sets the angle orientation of the gradient, in degrees.
Gets or sets a value indicating whether gamma correction is enabled for this brush.
Gets or sets the wrap mode for this LinearGradientBrush.
Gets or sets a Blend that specifies positions and factors for custom falloff.
Gets or sets a ColorBlend that defines a multicolor linear gradient.
Gets or sets a copy of the Matrix that defines a local geometric transform.