ICanvasRenderingContext2DCreateImageData Method (IImageData)
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(
	IImageData imagedata
)

Parameters

imagedata
Type: Aspose.Html.Dom.CanvasIImageData
An existing ImageData object from which to copy the width and height. The image itself is not copied.

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