Crates.io | libharuhishot |
lib.rs | libharuhishot |
version | 0.4.0 |
source | src |
created_at | 2023-06-29 08:58:22.225876 |
updated_at | 2024-10-04 16:54:06.267142 |
description | impl screencopy for wayland |
homepage | https://github.com/Decodetalkers/haruhishot |
repository | |
max_upload_size | |
id | 903086 |
size | 36,736 |
libharuhishot, it is used for wlr-screencopy, split it because I want to help with wayshot, but I also learn a lot. I like my program very much, because it makes me feel alive. Wayshot is a good program, please help them.
The lib is simple enough to use, you can take the haruhishot for example, simple useage is like
use libharuhishot::HaruhiShotState;
fn main() {
let mut state = HaruhiShotState::init().unwrap();
let buffer = state.capture_out_frame(
&state.display[0].clone,
state.display_logic_size[0],
state.display_transform[id],
None
).unwrap();
}
Then you will get a [FrameInfo], There is a mmap , you can get data there