IDrawingFactory.CreateLinearGradientBrush
Contents
[
Hide
]CreateLinearGradientBrush(RectangleF, IInterpolationColor[])
Creates a linear gradient brush with the specified parameters.
public ILinearGradientBrush CreateLinearGradientBrush(RectangleF rect, IInterpolationColor[] colors)
Parameter | Type | Description |
---|---|---|
rect | RectangleF | The rectangle defining the gradient bounds. |
colors | IInterpolationColor[] | The interpolation colors for the gradient. See IInterpolationColor . |
Return Value
The created ILinearGradientBrush
.
See Also
- interface ILinearGradientBrush
- interface IInterpolationColor
- interface IDrawingFactory
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
CreateLinearGradientBrush(RectangleF, float, bool, IInterpolationColor[], SpreadMode)
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 angle is affected by transformation matrix associated with the brush. |
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