Interface ImageData

The ImageData interface represents the underlying pixel data of an area of a Canvas. It is created using Canvas.createImageData method.

interface ImageData {
    data: number[];
    height: number;
    width: number;
}

Properties

Properties

data: number[]

Represents a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (inclusive).

height: number

An unsigned long representing the actual height, in pixels.

width: number

An unsigned long representing the actual width, in pixels.

Generated using TypeDoc