-
Notifications
You must be signed in to change notification settings - Fork 162
autopy bitmap.capture_screen(..) #32
Comments
I can confirm this on windows if a bound rect is passed to capture_screen(). It seems like the offset is messed up. |
This happens in windows as well. The offset seems to run up to up-left instead of right-down. |
Windows at linux working correctly how can fix it? |
I'm having this issue also. The fix in 2db41f9 didn't work for me. 💥 |
I'm on OSX 10.10 BTW. I'm going to have to get this working for my project, does anyone know where/why this happens? |
Alright I found the issue and I've almost got it fixed, I'll create a pull request when it's finished! Note: This is caused by deprecated functions, CGDisplayBitsPerPixel and CGLSetFullScreen. |
And here's my fix: This does not have backwards compatibility (I don't need it for my application), and currently only supports capturing the full screen. If you specify a rect it comes out like this: It's probably due to some of the left over conversions, I'll check it out later! |
This seems to have something to do with the width. With full width you can change the height all you want and the snapshot comes out fine. And you can remove around 100 pixel from the width and it will still work, but anything more causes it to glitch out like above. Getting close! |
This should be fixed now in the latest version of AutoPy. |
bitmap.capture_screen capture on OSX 10.7 cause black screen
The text was updated successfully, but these errors were encountered: