跳转到内容

captureTargetPixels

此内容尚不支持你的语言。

captureTargetPixels(module, target, width, height): Promise<FramePixels | null>

Defined in: sdk/src/render/framePixels.ts:84

What a render target holds, read from the engine once the GPU has drawn it (rows bottom-up, as a frame).

The draw happened before this is called; nothing here waits for it on the page’s thread. Null when the build cannot capture a target, the target is gone, or the readback never lands.

ESEngineModule

number

number

number

Promise<FramePixels | null>