Skip to content

Interface: ISkiaCanvas

Table of contents

Methods

Methods

toBuffer

toBuffer(format, config): Promise<any>

Parameters

NameType
formatIExportFileType
configISkiaCanvasExportConfig

Returns

Promise<any>

Defined in

leafer/packages/interface/src/canvas/ISkiaCanvas.ts:7


toBufferSync

toBufferSync(format, config): any

Parameters

NameType
formatIExportFileType
configISkiaCanvasExportConfig

Returns

any

Defined in

leafer/packages/interface/src/canvas/ISkiaCanvas.ts:8


toDataURL

toDataURL(format, config): Promise<string>

Parameters

NameType
formatIExportImageType
configISkiaCanvasExportConfig

Returns

Promise<string>

Defined in

leafer/packages/interface/src/canvas/ISkiaCanvas.ts:9


toDataURLSync

toDataURLSync(format, config): string

Parameters

NameType
formatIExportImageType
configISkiaCanvasExportConfig

Returns

string

Defined in

leafer/packages/interface/src/canvas/ISkiaCanvas.ts:10


saveAs

saveAs(filename, config): Promise<void>

Parameters

NameType
filenamestring
configISkiaCanvasExportConfig

Returns

Promise<void>

Defined in

leafer/packages/interface/src/canvas/ISkiaCanvas.ts:11


saveAsSync

saveAsSync(filename, config): void

Parameters

NameType
filenamestring
configISkiaCanvasExportConfig

Returns

void

Defined in

leafer/packages/interface/src/canvas/ISkiaCanvas.ts:12

Released under the MIT License.