ICanvas.GetImageData

ICanvas.GetImageData method

Gets the image data of the specified rectangular area.

public Tuple<int, int, Uint8ClampedArray> GetImageData(float x, float y, float width, float height)
ParameterTypeDescription
xSingleThe x-coordinate of the top-left corner of the area.
ySingleThe y-coordinate of the top-left corner of the area.
widthSingleThe width of the area.
heightSingleThe height of the area.

Return Value

A tuple containing the width, height, and image data of the specified area. See Uint8ClampedArray.

See Also