For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface ImageData
interface ImageData {
colorSpace: PredefinedColorSpace;
data: ImageDataArray;
height: number;
width: number;
}
colorSpace: PredefinedColorSpace;
data: ImageDataArray;
height: number;
width: number;
}
Properties
ReadonlycolorSpace
The read-only ImageData.colorSpace property is a string indicating the color space of the image data.
Readonlydata
The readonly ImageData.data property returns a Uint8ClampedArray or Float16Array that contains the ImageData object's pixel data. Data is stored as a one-dimensional array in the RGBA order.
Readonlyheight
height: number
The readonly ImageData.height property returns the number of rows in the ImageData object.
Readonlywidth
width: number
The readonly ImageData.width property returns the number of pixels per row in the ImageData object.
The
ImageDatainterface represents the underlying pixel data of an area of aMDN Reference