screenshot-rs
Get a bitmap image of any display in Rust. This crate is hosted on crates.io.
Note: This crate is a fork of alexchandel/screenshot-rs.
Contributions welcome!
Examples
use get_screenshot;
Development
- screenshot-rs has its own systems bindings. It should migrate to servo/rust-core-graphics and retep998/winapi-rs. I want to use klutzy/rust-windows, but it doesn't have the right bindings.
Known Issues
get_screenshotleaks memory on certain error conditions, by returning before releasing OS handles. PR's welcome.- The BMP Image in the example is rotated +90 degrees because I don't adjust for BMP idiosyncrasy.
- The PNG Image in the example has its R & B channels exchanged because
PistonDevelopers/imagedoesn't support ARGB pixels.