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

Syntax

imagedata.data

Example

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

Specification

Specification Status Comment
HTML Living Standard
The definition of 'ImageData.data' 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,