ICanvasRenderingContext2DCreateImageData Method (Double, Double)
Creates a new, blank ImageData object with the specified dimensions. All of the pixels in the new object are transparent black.

Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.3
Syntax
IImageData CreateImageData(
	double sw,
	double sh
)

Parameters

sw
Type: SystemDouble
The width to give the new ImageData object.
sh
Type: SystemDouble
The height to give the new ImageData object.

Return Value

Type: IImageData
A new ImageData object with the specified width and height. The new object is filled with transparent black pixels.
See Also