-
Notifications
You must be signed in to change notification settings - Fork 112
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
Support for top/left positions for capture #65
Comments
Please elaborate what you mean by that and why and when it would be useful. |
Most API's (such as a lot of functionality in Electron) use the start point as the top-left corner. This is the "top" and "left" position. I believe it would be useful for this library. |
This is not entirely correct. Electron might return top-left, but the standard on macOS is bottom-left (except for some Quartz APIs like |
But yes, we could add this as an optional flag. Maybe called We just need to invert the vertical coordinate: https://stackoverflow.com/questions/852875/how-do-i-convert-cocoa-co-ords-from-top-left-origin-to-bottom-left-origin |
@IssueHunt has funded $80.00 to this issue.
|
See #66 for the previous effort. |
HI! Sorry, I've been busy for ages and haven't really had a chance to check GitHub. I updated my repository so it works! @sindresorhus |
Top/left support would be extremely useful in some situations.
The text was updated successfully, but these errors were encountered: