scrap
Scrap records your screen! At least it does if you're on Windows, macOS, or Linux.
Usage
[dependencies]
scrap = "0.2.1"
Its API is as simple as it gets!
struct Display; struct Frame; struct Capturer;
impl Capturer {
pub fn new(display: Display) -> io::Result<Capturer>;
pub fn frame<'a>(&'a mut self) -> io::Result<Frame<'a>>;
pub fn width(&self) -> usize;
pub fn height(&self) -> usize;
pub fn format(&self) -> PixelFormat; }
impl Display {
pub fn primary() -> io::Result<Display>;
pub fn all() -> io::Result<Vec<Display>>;
pub fn width(&self) -> usize;
pub fn height(&self) -> usize;
}
Contributing
Please contribute! See the issue tracker for stuff that needs doing.