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

Read more with image

Read more with opencv

Re-exports

pub use d3d::*;
pub use capture::*;

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>.