ImageData

ImageData

The ImageData interface represents the underlying pixel data of an area of a Canvas widget. It is returned by the methods Canvas.createImageData() or Canvas.getImageData(). It can also be used to set a part of the canvas by using Canvas.putImageData().

Members

(readonly) data :Uint8ClampedArray

Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (inclusive).

Type:
  • Uint8ClampedArray

(readonly) height :Number

Is an unsigned long representing the actual height, in pixels, of the ImageData.

Type:
  • Number

(readonly) width :Number

Is an unsigned long representing the actual width, in pixels, of the ImageData.

Type:
  • Number