Variable: ImageData
ts
ImageData: {
(width, height): ImageData;
(data, width, height?): ImageData;
prototype: ImageData;
};Defined in: types/desktop-engine.d.ts:4929
Pixel data (API 5): new ImageData(width, height) is transparent black; new ImageData(data, width, height?) is around a Uint8ClampedArray of width * height * 4 bytes, which is its data. A size of 0 throws an IndexSizeError
Type Declaration
Call Signature
ts
new ImageData(width, height): ImageData;Parameters
| Parameter | Type |
|---|---|
width | number |
height | number |
Returns
Call Signature
ts
new ImageData(
data,
width,
height?
): ImageData;Parameters
| Parameter | Type |
|---|---|
data | Uint8ClampedArray |
width | number |
height? | number |
Returns
| Name | Type | Defined in |
|---|---|---|
prototype | ImageData | types/desktop-engine.d.ts:4930 |
