ReadonlydataRepresents a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (inclusive).
ReadonlyheightAn unsigned long representing the actual height, in pixels.
ReadonlywidthAn unsigned long representing the actual width, in pixels.
The
ImageDatainterface represents the underlying pixel data of an area of a Canvas. It is created using Canvas.createImageData method.