Definition
HTML Standard defines ImageData
[Exposed=(Window,Worker),
Serializable]
interface ImageData {
constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
readonly attribute unsigned long width;
readonly attribute unsigned long height;
readonly attribute Uint8ClampedArray data;
readonly attribute PredefinedColorSpace colorSpace;
};
Methods and attributes that return objects implementing ImageData
Referring IDL interfaces/dictionaries
Referring specifications
- WebGL Specification refers to
ImageData
- WebGPU refers to
ImageData