ImageData()
Creates an ImageData
object from a given Uint8ClampedArray
or Float16Array
and 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.
ImageData.data
Read only
A Uint8ClampedArray
or Float16Array
representing a one-dimensional array containing the data in the RGBA order. The order goes by rows from the top-left pixel to the bottom-right.
ImageData.colorSpace
Read only
A string indicating the color space of the image data.
ImageData.height
Read only
An unsigned long
representing the actual height, in pixels, of the ImageData
.
ImageData.width
Read only
An unsigned long
representing the actual width, in pixels, of the ImageData
.
ImageData.pixelFormat
Read only Experimental
A string indicating the format to use for the ImageData
.
Loadingâ¦
See alsoCanvasRenderingContext2D
<canvas>
element and its associated interface, HTMLCanvasElement
.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.5