Debian Codegraph @

examples/get_image.rs

raw
1 use arboard::Clipboard;
2
3 fn main() {
4 let mut ctx = Clipboard::new().unwrap();
5
6 let img = ctx.get_image().unwrap();
7
8 println!("Image data is:\n{:?}", img.bytes);
9 }