Skip to content

loadImage

loadImage(url, options?): Promise<HTMLImageElement>

Defined in: src/util/misc/objectEnlive.ts:29

Loads image element from given url and resolve it, or catch.

string

URL representing an image

LoadImageOptions = {}

image loading options

Promise<HTMLImageElement>

the loaded image.