Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

autopy bitmap.capture_screen(..) #32

Closed
lecheel opened this issue Feb 13, 2012 · 9 comments
Closed

autopy bitmap.capture_screen(..) #32

lecheel opened this issue Feb 13, 2012 · 9 comments
Labels

Comments

@lecheel
Copy link

lecheel commented Feb 13, 2012

bitmap.capture_screen capture on OSX 10.7 cause black screen

@Taik
Copy link

Taik commented Mar 27, 2012

I can confirm this on windows if a bound rect is passed to capture_screen(). It seems like the offset is messed up.

@roddds
Copy link

roddds commented Apr 7, 2012

This happens in windows as well. The offset seems to run up to up-left instead of right-down.

@lonli078
Copy link

Windows
autopy.bitmap.capture_screen(((10,10),(500,500)))
work incorrect, I must get screen with coordinates from 10,10 to 510, 510
but get image with coordinates from -10,-10 to 490, 490

at linux working correctly

how can fix it?

@octalmage
Copy link

I'm having this issue also. The fix in 2db41f9 didn't work for me. 💥

@octalmage
Copy link

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?

@octalmage
Copy link

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.

@octalmage
Copy link

And here's my fix:

octalmage@50900ff

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!

@octalmage
Copy link

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!

@msanders
Copy link
Collaborator

msanders commented May 2, 2018

This should be fixed now in the latest version of AutoPy.

@msanders msanders closed this as completed May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants