Home > @gglib/utils > getImageData

getImageData() function

Extracts image data from an HTMLImageElement

Signature:

export declare function getImageData(image: HTMLImageElement, width?: number, height?: number): number[];

Parameters

Parameter Type Description
image HTMLImageElement
width number
height number

Returns:

number[]