Header menu logo fable-electron-docs-api

Offscreen Type

Constructors

Constructor Description

Offscreen(?useSharedTexture, ?sharedTexturePixelFormat)

Full Usage: Offscreen(?useSharedTexture, ?sharedTexturePixelFormat)

Parameters:
    ?useSharedTexture : bool - Whether to use GPU shared texture for accelerated paint event. Defaults to false. See the offscreen rendering tutorial for more details.
    ?sharedTexturePixelFormat : SharedTexturePixelFormat - The requested output format of the shared texture. Defaults to argb. The name is originated from Chromium media::VideoPixelFormat enum suffix and only subset of them are supported. The actual output pixel format and color space of the texture should refer to OffscreenSharedTexture object in the paint event.

Returns: Offscreen
?useSharedTexture : bool

Whether to use GPU shared texture for accelerated paint event. Defaults to false. See the offscreen rendering tutorial for more details.

?sharedTexturePixelFormat : SharedTexturePixelFormat

The requested output format of the shared texture. Defaults to argb. The name is originated from Chromium media::VideoPixelFormat enum suffix and only subset of them are supported. The actual output pixel format and color space of the texture should refer to OffscreenSharedTexture object in the paint event.

Returns: Offscreen

Instance members

Instance member Description

this.sharedTexturePixelFormat

Full Usage: this.sharedTexturePixelFormat

The requested output format of the shared texture. Defaults to argb. The name is originated from Chromium media::VideoPixelFormat enum suffix and only subset of them are supported. The actual output pixel format and color space of the texture should refer to OffscreenSharedTexture object in the paint event.

this.useSharedTexture

Full Usage: this.useSharedTexture

Whether to use GPU shared texture for accelerated paint event. Defaults to false. See the offscreen rendering tutorial for more details.

Type something to start searching.