Interface: ISkiaCanvas
Table of contents
Methods
Methods
toBuffer
▸ toBuffer(format
, config
): Promise
<any
>
Parameters
Name | Type |
---|---|
format | IExportFileType |
config | ISkiaCanvasExportConfig |
Returns
Promise
<any
>
Defined in
leafer/packages/interface/src/canvas/ISkiaCanvas.ts:7
toBufferSync
▸ toBufferSync(format
, config
): any
Parameters
Name | Type |
---|---|
format | IExportFileType |
config | ISkiaCanvasExportConfig |
Returns
any
Defined in
leafer/packages/interface/src/canvas/ISkiaCanvas.ts:8
toDataURL
▸ toDataURL(format
, config
): Promise
<string
>
Parameters
Name | Type |
---|---|
format | IExportImageType |
config | ISkiaCanvasExportConfig |
Returns
Promise
<string
>
Defined in
leafer/packages/interface/src/canvas/ISkiaCanvas.ts:9
toDataURLSync
▸ toDataURLSync(format
, config
): string
Parameters
Name | Type |
---|---|
format | IExportImageType |
config | ISkiaCanvasExportConfig |
Returns
string
Defined in
leafer/packages/interface/src/canvas/ISkiaCanvas.ts:10
saveAs
▸ saveAs(filename
, config
): Promise
<void
>
Parameters
Name | Type |
---|---|
filename | string |
config | ISkiaCanvasExportConfig |
Returns
Promise
<void
>
Defined in
leafer/packages/interface/src/canvas/ISkiaCanvas.ts:11
saveAsSync
▸ saveAsSync(filename
, config
): void
Parameters
Name | Type |
---|---|
filename | string |
config | ISkiaCanvasExportConfig |
Returns
void