ImageData.data
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
La propriété en lecteur seul ImageData.data
retourne un Uint8ClampedArray
. Il représente un tableau unidirectionnel contenant les données sous forme d'entiers inclus entre 0 et 255 dans l'ordre RGBA comme ceci : [r1,g1,b1,a1,…,rn;gn;bn;an]
.
Syntaxe
js
imagedata.data;
Exemple
js
var imagedata = new ImageData(100, 100);
imagedata.data; // Uint8ClampedArray[40000]
Spécifications
Specification |
---|
HTML # dom-imagedata-data-dev |
Compatibilité des navigateurs
Report problems with this compatibility data on GitHubdesktop | mobile | server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.