imageElementFromUrl Function

Create an html Image element from a URL.

imageElementFromUrl(url: string): Promise<HTMLImageElement>

see tryImageElementFromUrl.

Parameter Type Description
url string The URL pointing to the image data.

Returns - Promise<HTMLImageElement>

A Promise resolving to an HTMLImageElement when the image data has been loaded from the URL.

Defined in

Last Updated: 11 June, 2024