Skip to content

TheHellBox/x11-screenshot-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x11-screenshot-rs

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/

Example

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();
}

About

Screenshot library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages