Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Screenshot Region of Screen #6

Closed
mdacach opened this issue Jul 6, 2022 · 3 comments
Closed

Feature Request: Screenshot Region of Screen #6

mdacach opened this issue Jul 6, 2022 · 3 comments

Comments

@mdacach
Copy link
Contributor

mdacach commented Jul 6, 2022

First of all, thank you very much for your work!
I would like to request a specific feature, which I've found missing both in this crate and in many similar ones:

  • Screenshotting only a region of the screen

Similar to what PyAutoGUI does with its region optional argument

@nashaofu
Copy link
Owner

nashaofu commented Jul 7, 2022

Whether this method can meet your needs?
Screen::capture_area(&self, x: i32, y: i32, width: u32, height: u32) -> Option<Image>

@mdacach
Copy link
Contributor Author

mdacach commented Jul 10, 2022

Sorry for the delay! Yes, it is perfect!

@nashaofu
Copy link
Owner

nashaofu commented Jul 17, 2022

supported: https://github.com/nashaofu/screenshots-rs/tree/55cc50204252b9c9ebd758b85f4dc9df7682c4c7#screen-screen-capturer. The coordinates are relative to the current screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants