Library for making screenshots.
I wrote this 3 years ago, when I was only starting with rust, so the code quality can be quite poor.
Docs: https://docs.rs/x11-screenshot/
extern crate x11_screenshot;
fn main() {
let screen = x11_screenshot::Screen::open().expect("Failed to open screen");
let frame = screen.capture().expect("Failed to take screenshot");
// Save image
// For documentation on the image crate, see http://www.piston.rs/image/image/index.html
frame.save("example_screenshot.png").unwrap();
}