CaptureFrameAsync(CancellationToken) Method

Definition

Assembly Broadside.Viewer.Maui.dll

Captures the next frame the canvas draws (read back from the GPU surface when hardware accelerated) as PNG bytes.

public Task<byte[]> CaptureFrameAsync(CancellationToken cancellationToken = default(CancellationToken))

Parameters

cancellationToken
CancellationToken

Cancels the wait.

Returns

Task<Byte[]>
The PNG file's bytes, at the canvas's pixel size.