pub type VecCapturer = Capturer<Vec<u8>>;Expand description
Capture screen to a Vec<u8>.
§Examples
use rusty_duplication::{Scanner, VecCapturer};
let monitor = Scanner::new().unwrap().next().unwrap();
let mut capturer: VecCapturer = monitor.try_into().unwrap();Aliased Type§
pub struct VecCapturer {
pub pointer_shape_buffer: Vec<u8>,
pub buffer: Vec<u8>,
pub timeout_ms: u32,
/* private fields */
}Fields§
§pointer_shape_buffer: Vec<u8>§buffer: Vec<u8>The buffer to store the captured frame. The data is stored in BGRA32 format.
timeout_ms: u32Timeout in milliseconds for the next frame. By default it is 300ms.