Fast get pixel in OS X + Python

661 views Asked by At

I want to get the rgb value of an arbitrary pixel on the screen. Preferably without having to load a full gui toolkit like qt or gtk. Taking a screenshot works, but it's an expensive operation and I'd like to run this thing in real-time, so I would have to take multiple screenshots per second. On Windows I can do windll.gdi32.GetPixel(dc,x,y). Any Mac equivalent?

0

There are 0 answers