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.CanvasAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
SyntaxIImageData GetImageData(
double sx,
double sy,
double sw,
double sh
)
Function GetImageData (
sx As Double,
sy As Double,
sw As Double,
sh As Double
) As IImageData
IImageData^ GetImageData(
double sx,
double sy,
double sw,
double sh
)
abstract GetImageData :
sx : float *
sy : float *
sw : float *
sh : float -> IImageData
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:
IImageDataAn ImageData object containing the image data for the given rectangle of the canvas.
See Also