ICanvasRenderingContext2DGetImageData Method
Returns an ImageData object representing the underlying pixel data for the area of the canvas denoted by the rectangle which starts at (sx, sy) and has an sw width and sh height. This method is not affected by the canvas transformation matrix.

Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntax
IImageData GetImageData(
	double sx,
	double sy,
	double sw,
	double sh
)

Parameters

sx
Type: SystemDouble
The x coordinate of the upper left corner of the rectangle from which the ImageData will be extracted.
sy
Type: SystemDouble
The y coordinate of the upper left corner of the rectangle from which the ImageData will be extracted.
sw
Type: SystemDouble
The width of the rectangle from which the ImageData will be extracted.
sh
Type: SystemDouble
The height of the rectangle from which the ImageData will be extracted.

Return Value

Type: IImageData
An ImageData object containing the image data for the given rectangle of the canvas.
See Also