Results 1 - 5 of 5

ImageData

The ImageData interface represents the underlying pixel data of an area of a <canvas> 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().
API Canvas ImageData Images

ImageData.width

The readonly ImageData.width property returns the number of pixels per row in the image data object.
API Canvas ImageData Property Reference

ImageData.data

The readonly ImageData.data property returns a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included).
API Canvas ImageData Property Reference Référence

ImageData.height

The readonly ImageData.height property returns the number of rows in the image data object.
API Canvas ImageData Property Reference Référence