Skip to main content

Class: CanvasKitHelpers

Constructors

new CanvasKitHelpers()

new CanvasKitHelpers(): CanvasKitHelpers

Returns

CanvasKitHelpers

Methods

Dispose()

static Dispose(objects): void

Frees up resources that were allocated by CanvasKit.

Parameters

objects: (undefined | null | Image | Font | Paint | ParagraphBuilder | Paragraph | Typeface | TypefaceFontProvider | FontMgr | Path)[]

Returns

void

Remarks

This frees objects created in WebAssembly by canvaskit-wasm. JavaScript garbage collection won't free these wasm objects.

Defined in

CanvasKitHelpers.ts:25


makePaint()

static makePaint(canvasKit, color, style, isAntialiased): Paint

Parameters

canvasKit: CanvasKit

color: RgbaColor

style: EmbindEnumEntity

isAntialiased: boolean

Returns

Paint

Defined in

CanvasKitHelpers.ts:43