represents an ImageData with optional color space information.

interface SimpleImageData {
    height: number;
    width: number;
    data: Uint8Array<ArrayBufferLike> | Uint8ClampedArray<ArrayBufferLike>;
    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<ArrayBufferLike> | Uint8ClampedArray<ArrayBufferLike>
colorSpace?: PredefinedColorSpace