getImageBlob
getImageBlob(
canvas
,page
,shapes
,options
):Promise
<Blob
|null
>
Get the blob image data of the given shapes.
Parameters
• canvas: Canvas
The editor’s canvas
• page: Page
The page to draw.
• shapes: Shape
[]
The shapes to draw in the page. If empty, render all shapes in the page.
• options: Partial
<ExportImageOptions
>
The options for drawing.
Returns
Promise
<Blob
| null
>
The blob image data of the shapes.