Expand description
dxcapture
dxcapture
is a library for capturing a Direct3D 11 device on Windows.
Examples
let device = dxcapture::Device::default();
let capture = dxcapture::Capture::new(&device).unwrap();
let raw = loop {
match capture.get_raw_frame() {
Ok(raw) => break raw,
Err(e) => {
if e == dxcapture::CaptureError::NoTexture {
// async, so sometimes it's not there.
continue;
}
panic!("{}", e);
}
}
};
// taked primary monitor.
// hoge raw
Re-exports
Modules
Structs
Display informations.
Window informations.
Functions
Get all displays and returns them as a Vec<DisplayInfo
>.
Finds all visible windows and returns them as a Vec<WindowInfo
>.