I need to get the color of some pixels on the screen or from the active window, and I need to do so quickly. I\'ve tried using win32gui and ctypes/
This is better than using getpixel all the time and works faster.
getpixel
import ImageGrab px = ImageGrab.grab().load() for y in range(0, 100, 10): for x in range(0, 100, 10): color = px[x, y]
Reference: Image.load