ImageData interface represents the underlying pixel data of an area of a
It is created using the
ImageData() constructor or creator methods on the
CanvasRenderingContext2D object associated with a canvas:
getImageData(). It can also be used to set a part of the canvas by using
Note: This feature is available in Web Workers
ImageDataobject from a given
Uint8ClampedArrayand the size of the image it contains. If no array is given, it creates an image of a transparent black rectangle. Note that this is the most common way to create such an object in workers as
createImageData()is not available there.
Uint8ClampedArrayrepresenting a one-dimensional array containing the data in the RGBA order, with integer values between
255(inclusive). The order goes by rows from the top-left pixel to the bottom-right.
A string indicating the color space of the image data.
unsigned longrepresenting the actual height, in pixels, of the
unsigned longrepresenting the actual width, in pixels, of the
|HTML Standard |
BCD tables only load in the browser