From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/api/imagedata/data/index.html | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 files/fr/web/api/imagedata/data/index.html (limited to 'files/fr/web/api/imagedata/data') diff --git a/files/fr/web/api/imagedata/data/index.html b/files/fr/web/api/imagedata/data/index.html new file mode 100644 index 0000000000..93e6bb21c5 --- /dev/null +++ b/files/fr/web/api/imagedata/data/index.html @@ -0,0 +1,51 @@ +--- +title: ImageData.data +slug: Web/API/ImageData/data +translation_of: Web/API/ImageData/data +--- +

{{APIRef("Canvas API")}}

+ +

La propriété en lecteur seul ImageData.data retourne un {{jsxref("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].

+ +

Syntax

+ +
imagedata.data
+
+ +

Exemple

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

Specification

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'scripting.html#dom-imagedata-data', 'ImageData.data')}}{{Spec2('HTML WHATWG')}} 
+ +

Browser compatibility

+ + + +

{{Compat("api.ImageData.data")}}

+ +

See also

+ + + +
 
-- cgit v1.2.3-54-g00ecf