Skip to main content

screen_capture

Function screen_capture 

Source
pub fn screen_capture(out: &mut [u8]) -> Result<usize, i32>
Expand description

Captures the primary display as RGBA8 after permission dialogs (OS may prompt separately).

Returns Ok(bytes_written) or an error code: -1 denied, -2 no display, -3 capture failed, -4 buffer error.