Skip to content

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.

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
constructor
[NisoGlue] constructor(any a, any b, optional any c, optional any d);
attribute
readonly attribute unsigned long width;
attribute
readonly attribute unsigned long height;
attribute
readonly attribute Uint8ClampedArray data;

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)