Skip to content

Interface: ImageBitmap ​

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

A bitmap ready to draw, made by createImageBitmap (API 5). WebGL uploads it as it is: UNPACK_FLIP_Y_WEBGL and UNPACK_PREMULTIPLY_ALPHA_WEBGL don't apply to it, its imageOrientation and premultiplyAlpha did, as on the web

Properties ​

height ​

ts
readonly height: number;

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


width ​

ts
readonly width: number;

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

0 once closed

Methods ​

close() ​

ts
close(): void;

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

Releases its pixels; it can't be drawn anymore

Returns ​

void

The SDK is released under the Apache License 2.0