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

Take a screenshot of certain portion of the screen #102

Open
Optimusprimeagario opened this issue Nov 11, 2018 · 6 comments
Open

Take a screenshot of certain portion of the screen #102

Optimusprimeagario opened this issue Nov 11, 2018 · 6 comments

Comments

@Optimusprimeagario
Copy link

Hi, I trying to take only certain portion of my screen. To reduce the size of the file, and the content within the reason is that i will be sending this picture to google vision api, which will process it and send back the info i need without having it be distracted with other windows, and other contents in the picture.

@bencevans
Copy link
Owner

This is possible on some platforms although no friendly api available through this module currently a pull-request implementing it would be very welcome!

e.g. win32 function ...

private Image CaptureWindow(IntPtr handle)

@mattb290
Copy link

mattb290 commented Jan 6, 2019

+1 for this, I imagine it would increase performance as well?

@ggrg
Copy link

ggrg commented May 25, 2019

+1 from me as well. I can see it's available for darwin because there is an option -R<x,y,w,h> capture screen rect. Also, another performance gain would be the possibility to return the buffer (via stdout), instead of writing to disk (presumably followed by subsequent read), but this is probably another issue. Thank you!

@kkm
Copy link

kkm commented Nov 25, 2019

+1

@Nisgrak
Copy link

Nisgrak commented Jan 13, 2021

Any updates on this?

@ufukomer
Copy link

any other library for this purpose?

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

No branches or pull requests

7 participants