image-js
Version:
Image processing and manipulation in JavaScript
8 lines • 332 B
TypeScript
import type { Image } from '../Image.js';
/**
* Read an image from an HTML image source.
* @param img - Image source such as an <img> or <svg> element.
* @returns The read image.
*/
export declare function readImg(img: Extract<CanvasImageSource, Record<'width' | 'height', number>>): Image;
//# sourceMappingURL=readImg.d.ts.map