imageElementFromUrl Function

Create an html Image element from a URL.

imageElementFromUrl(url: string): Promise<HTMLImageElement>

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

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

Defined in

Last Updated: 08 January, 2020