Classes
ImageData
Implements
Constructors
new ImageData()
new ImageData(sw, sh, settings?): ImageData
Parameters
| Parameter | Type |
|---|---|
sw | number |
sh | number |
settings? | ImageDataSettings |
Returns
new ImageData()
new ImageData(data, sw, sh?, settings?): ImageData
Parameters
| Parameter | Type |
|---|---|
data | Uint8ClampedArray |
sw | number |
sh? | number |
settings? | ImageDataSettings |
Returns
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
colorSpace | readonly | PredefinedColorSpace | MDN Reference |
data | readonly | Uint8ClampedArray | Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. MDN Reference |
height | readonly | number | Returns the actual dimensions of the data in the ImageData object, in pixels. MDN Reference |
width | readonly | number | Returns the actual dimensions of the data in the ImageData object, in pixels. MDN Reference |