Interface

ImageData

ImageData

The underlying pixel data of an area of a element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().

View Source js/lib.dom.d.ts, line 4660

Members

Uint8ClampedArray

# data

Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.

View Source js/lib.dom.d.ts, line 4663

number

# height

Returns the actual dimensions of the data in the ImageData object, in pixels.

View Source js/lib.dom.d.ts, line 4668

number

# width

Returns the actual dimensions of the data in the ImageData object, in pixels.

View Source js/lib.dom.d.ts, line 4673