represents an ImageData with optional color space information

interface SimpleImageData {
    height: number;
    width: number;
    data: Uint8Array | Uint8ClampedArray;
    colorSpace?: PredefinedColorSpace;
}

Hierarchy

  • Omit<ImageData, "colorSpace" | "data">
    • SimpleImageData

Properties

height: number

Returns the actual dimensions of the data in the ImageData object, in pixels.

MDN Reference

width: number

Returns the actual dimensions of the data in the ImageData object, in pixels.

MDN Reference

data: Uint8Array | Uint8ClampedArray
colorSpace?: PredefinedColorSpace