UNPKG

canvas-image-utils

Version:
10 lines (9 loc) 363 B
import type { Options } from '../index'; /** * Get an array of pixels with colors from an image * * @param {string} imgSrc The source of the image * @param {Options} options Options for the conversion * @returns {ImageData} Image data after resizing and crop. */ export declare function imageToRawData(imgSrc: string, options: Options): Promise<ImageData>;