ILinearGradientBrush class
ILinearGradientBrush class
Defines an interface for a brush with a linear gradient.
The ILinearGradientBrush type exposes the following members:
Properties
| Property | Description |
|---|---|
| rect | Gets or sets the rectangular region that defines the starting and ending points of the gradient. |
| angle | Gets or sets the angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line. |
| interpolation_colors | Get the interpolation colors that defines a multicolor linear gradient. |
| transformation_matrix | Get the transform. The transform defines a local geometric transform for this brush. |
| spread_mode | Gets or sets the SpreadMode mode. SpreadMode mode specifies how a texture or gradient is tiled when it is smaller than the area being filled. |
| type | Get type of brush; See BrushType. |
| supports_shader | Checks if the brush supports a shader. |
Methods
| Method | Description |
|---|---|
| convert_to_texture_brush | Converts the linear gradient brush to a texture brush. See ITextureBrush. |
| clone | Creates a deep copy of the linear gradient brush. See ILinearGradientBrush. |
| to_native | Converts the brush to a native representation. |
See Also
- module
aspose.svg.drawing - class
BrushType - class
IGradientBrush - class
ILinearGradientBrush - class
ITextureBrush