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

Fix screen capture on Mac. #188

Closed
octalmage opened this issue May 10, 2016 · 3 comments
Closed

Fix screen capture on Mac. #188

octalmage opened this issue May 10, 2016 · 3 comments
Assignees
Milestone

Comments

@octalmage
Copy link
Owner

There something wrong with screen.capture on Mac for larger screens, the image comes out distorted. I'm looking into it now.

@DKfraDK
Copy link

DKfraDK commented Jul 23, 2016

Any news on this fix? :)
I'm using robotjs to create an Ambilight clone, however when using the following code, I don't seem to grab the correct pixels
var img = robot.screen.capture(width-zoneSize, zoneSize, zoneSize, height-zoneSize);
height = screen height (1440)
width = screen width (2560)
zoneSize = 100

Am I correct in assuming that even though I don't grab from y=0, I should still iterate from 0 when running through the pixels with img.colorAt(x,y)?

@octalmage
Copy link
Owner Author

You should try the code found here: #191

It will work much better, but the captured image is twice as large. So you'll need to take that into consideration. You can use bitmap.save to see what I mean.

@ghost ghost removed the in progress label Oct 16, 2016
@octalmage octalmage modified the milestones: v0.5, v0.4.5 Oct 16, 2016
@ibrahimyaacob92
Copy link

im still facing this issue

image

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

Successfully merging a pull request may close this issue.

3 participants