ICanvasRenderingContext2DClearRect Method
Sets all pixels in the rectangle defined by starting point (x, y) and size (width, height) to transparent black, erasing any previously drawn content.

Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.3
Syntax
void ClearRect(
	double x,
	double y,
	double w,
	double h
)

Parameters

x
Type: SystemDouble
The x axis of the coordinate for the rectangle starting point.
y
Type: SystemDouble
The y axis of the coordinate for the rectangle starting point.
w
Type: SystemDouble
The rectangle's width.
h
Type: SystemDouble
The rectangle's height.
See Also