Type Alias PixelData
type PixelData = {
components: number;
height: number;
pixels: Uint8ClampedArray | Uint8Array;
width: number;
}
components: number;
height: number;
pixels: Uint8ClampedArray | Uint8Array;
width: number;
}
Index
Properties
Properties
components
components: number
Number of components per pixel (3 if image is RGB, 4 if image is RGBA)
height
height: number
Height of the image in number of pixels
pixels
pixels: Uint8ClampedArray | Uint8Array
The array of pixels as RGBRGB or RGBARGBA in a row-major order
width
width: number
Width of the image in number of pixels
Informations about an image