imageElementFromUrl Function
Create an html Image element from a URL.
imageElementFromUrl(url: string, skipCrossOriginCheck: boolean = false): Promise<HTMLImageElement>
@returns A Promise resolving to an HTMLImageElement when the image data has been loaded from the URL.
@see tryImageElementFromUrl.
Returns - Promise<HTMLImageElement>
A Promise resolving to an HTMLImageElement when the image data has been loaded from the URL.
Defined in
Last Updated: 15 March, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.