The readonly property returns a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included).



var imagedata = new ImageData(100, 100);; // Uint8ClampedArray[40000]


Specification Status Comment
HTML Living Standard
The definition of '' in that specification.
Living Standard  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes1214993.1
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? Yes Yes14 Yes Yes Yes

See also


Document Tags and Contributors

Contributors to this page: fscholz, libbymc, 0xABCDEF
Last updated by: fscholz,