The CanvasPixelArray object that contains the image data.
- HTML Canvas 2D Context, Section 13
An image is organized by pixels with four values per pixel: red, green, blue, and alpha. To access a specific pixel, use the formula
((canvas.width * y)+ x) *4, where x and y are the row and offset in the image.
For a demo that uses the data property, see Sampling image colors with Canvas.
Build date: 11/17/2013