A utility class that provides methods for retrieving the image data.
Inheritance Hierarchy
Members
No filters for this type
Static Methods
Fetches the image data from the given url. Bitmap images can be added to a VSDX package
through ForeignShapes. SVG images can be added through the SvgSupport.applySvg
method.
Fetches the image data from the given url. Bitmap images can be added to a VSDX package through ForeignShapes. SVG images can be added through the SvgSupport.applySvg method.
static
Parameters
- imageUrl: string
May either be a regular URL, an object URL or a data URI.
Return Value
- Promise<{data:string, format:string}>
- A promise with an object containing the image data as binary string and the image format.