<br><br>I am capturing a screen shot, but then the image was already <br><br><br>image, how do I .load it ?<br><br>it's not image.load()<br><br><br><br><br>import time<br>import ImageGrab # Part of PIL<br>from ctypes import *
<br><br>class RECT(Structure):<br> _fields_ = [<br> ('left', c_ulong),<br> ('top', c_ulong),<br> ('right', c_ulong),<br> ('bottom', c_ulong)<br> ]<br><br><br>GetForegroundWindow =
windll.user32.GetForegroundWindow<br>GetWindowRect = windll.user32.GetWindowRect<br><br><br>rect = RECT()<br>foreground_window = GetForegroundWindow()<br>GetWindowRect(foreground_window, byref(rect))<br>image = ImageGrab.grab
((rect.left, rect.top, rect.right, rect.bottom))<br><br><br><br>print time.time()<br><br>pix = image.load()<br>print pix[x, y]<br><br>x = 0<br>y = 0<br>for x in xrange(1,1024,1):<br> for y in xrange(1,768,1):<br> print pix[10,10]
<br>