tryImageElementFromUrl Function
Try to create an html Image element from a URL.
tryImageElementFromUrl(url: string, skipCrossOriginCheck: booleanfalse): Promise<HTMLImageElement | undefined>
@returns A Promise resolving to an HTMLImageElement when the image data has been loaded from the URL, or to undefined
if an exception occurred.
@see imageElementFromUrl
Returns - Promise<HTMLImageElement | undefined>
A Promise resolving to an HTMLImageElement when the image data has been loaded from the URL, or to undefined
if an exception occurred.
Defined in
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.