ICanvasRenderingContext2DCreateLinearGradient Method
Creates a linear gradient along the line given by the coordinates represented by the parameters.

Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.3
Syntax
ICanvasGradient CreateLinearGradient(
	double x0,
	double y0,
	double x1,
	double y1
)

Parameters

x0
Type: SystemDouble
The x axis of the coordinate of the start point.
y0
Type: SystemDouble
The y axis of the coordinate of the start point.
x1
Type: SystemDouble
The x axis of the coordinate of the end point.
y1
Type: SystemDouble
The y axis of the coordinate of the end point.

Return Value

Type: ICanvasGradient
The linear CanvasGradient.
See Also