ImageData
Generated from idl/canvas.webidl when the site was built at 7aa23e2.
ImageData is an interface in idl/canvas.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.
NisoValue: ImageData has no state in the core, so it crosses the C API as a struct. Its constructors are the glue’s: it makes the array.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| 2D canvas | Widely available | Partial 77% 1209 of 1553 subtests pass | 5 |
Members
Section titled “Members”constructor
Section titled “constructor”[NisoGlue] constructor(any a, any b, optional any c, optional any d);readonly attribute unsigned long width;height
Section titled “height”readonly attribute unsigned long height;readonly attribute Uint8ClampedArray data;Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
colorSpace(2D canvas)worker_support(2D canvas)