docs.rs failed to build win-screenshot-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
win-screenshot-4.0.14
win-screenshot
Take a screenshot from specified window or whole display on windows platform
Example
fn main() {
// capture whole display
capture_display().unwrap().save("screenshot.jpg").unwrap();
// capture window by known id
capture_window(67136).unwrap().save("screenshot.jpg").unwrap();
// capture window by Name
let window_name = "WindowName";
match find_window(window_name) {
Ok(hwnd) => capture_window(hwnd)
.unwrap().save("screenshot.jpg").unwrap(),
Err(_) => panic!("window {} not found!", window_name)
}
}