Skip to content

Interface: CanvasContextOptions ​

Defined in: types/desktop-engine.d.ts:909

Optional options for getContext

Properties ​

alpha? ​

ts
optional alpha?: boolean;

Defined in: types/desktop-engine.d.ts:914

Whether the canvas has an alpha channel, true by default (as on the web); full-screen wallpapers pass false, an opaque layer composites with less power


antialias? ​

ts
optional antialias?: boolean;

Defined in: types/desktop-engine.d.ts:911

Whether to enable multisample antialiasing (up to 4x)

The SDK is released under the Apache License 2.0