ImageData
The ImageData interface represents the underlying pixel data of an area of a Canvas widget.
It is returned by Canvas.createImageData() or Canvas.getImageData(), and can be written back to the canvas using Canvas.putImageData().
Properties
| Property | Type | Description |
|---|---|---|
data | Uint8ClampedArray | A one-dimensional array of pixel values in RGBA order, with integers 0–255. Read-only. |
height | Number | The actual height of the ImageData in pixels. Read-only. |
width | Number | The actual width of the ImageData in pixels. Read-only. |