## IDrawingFactory.CreateLinearGradientBrush method

Creates a linear gradient brush with the specified parameters.

```csharp
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`](../../iinterpolationcolor/). |

### Return Value

The created [`ILinearGradientBrush`](../../ilineargradientbrush/).

### See Also

* interface [ILinearGradientBrush](../../ilineargradientbrush/)
* interface [IInterpolationColor](../../iinterpolationcolor/)
* interface [IDrawingFactory](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
