create_linear_gradient_brush method
create_linear_gradient_brush
Creates a linear gradient brush with the specified parameters.
Returns
The created ILinearGradientBrush
.
def create_linear_gradient_brush(self, rect, angle, is_scaled, colors, spread_mode):
...
Parameter | Type | Description |
---|---|---|
rect | aspose.pydrawing.RectangleF | The rectangle defining the gradient bounds. |
angle | float | The angle of the gradient. |
is_scaled | bool | Determines whether the gradient is scaled with the rectangle. |
colors | list | The interpolation colors for the gradient. See IInterpolationColor . |
spread_mode | SpreadMode | The spread mode for the gradient. See SpreadMode . |
See Also
- module
aspose.svg.drawing
- class
IDrawingFactory
- class
IInterpolationColor
- class
ILinearGradientBrush
- class
SpreadMode