IDrawingFactory.CreateLinearGradientBrush
IDrawingFactory.CreateLinearGradientBrush method
Creates a linear gradient brush with the specified parameters.
public ILinearGradientBrush CreateLinearGradientBrush(RectangleF rect, float angle, bool isScaled,
IInterpolationColor[] colors, SpreadMode spreadMode)
Parameter | Type | Description |
---|---|---|
rect | RectangleF | The rectangle defining the gradient bounds. |
angle | Single | The angle of the gradient. |
isScaled | Boolean | Determines whether the gradient is scaled with the rectangle. |
colors | IInterpolationColor[] | The interpolation colors for the gradient. See IInterpolationColor . |
spreadMode | SpreadMode | The spread mode for the gradient. See SpreadMode . |
Return Value
The created ILinearGradientBrush
.
See Also
- interface ILinearGradientBrush
- interface IInterpolationColor
- enum SpreadMode
- interface IDrawingFactory
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG