A captured frame, read back from the canvas swapchain.
data is tightly-packed RGBA8 (4 bytes/pixel), row-major, top row first — the same
layout ImageData expects, so it can be handed straight to a 2D canvas:
Alpha is forced to 255 (fully opaque): the swapchain is presented opaque, so its alpha
channel is not meaningful for a saved image. Colours are the final, presented 8-bit
values (BGRA swizzled to RGBA when the preferred canvas format is BGRA).
A captured frame, read back from the canvas swapchain.
datais tightly-packed RGBA8 (4 bytes/pixel), row-major, top row first — the same layoutImageDataexpects, so it can be handed straight to a 2D canvas:Alpha is forced to 255 (fully opaque): the swapchain is presented opaque, so its alpha channel is not meaningful for a saved image. Colours are the final, presented 8-bit values (BGRA swizzled to RGBA when the preferred canvas format is BGRA).