Files
ladybird/Libraries/LibWeb/HTML/ImageData.idl
Shannon Booth 566746c276 LibWeb: Split PredefinedColorSpace into its own IDL file
This matches the structure of the HTML spec where this is split out.
2026-05-09 10:49:49 +02:00

16 lines
617 B
Plaintext

// https://html.spec.whatwg.org/multipage/canvas.html#imagedata
dictionary ImageDataSettings {
PredefinedColorSpace colorSpace;
};
[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;
};