Offscreen Type
Constructors
| Constructor |
Description
|
Full Usage:
Offscreen(?useSharedTexture, ?sharedTexturePixelFormat)
Parameters:
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
|
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. |
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. |
fable-electron-docs-api