pub(crate) fn screenshot_pixels(
pixels: &[u8],
width: i32,
height: i32,
) -> Result<ScreenshotBuffer, String>Expand description
Copy exactly one complete frame into a caller’s buffer, excluding any scratch-buffer capacity from an older size.