"elis aeris" <[EMAIL PROTECTED]> wrote `
>  oh yeah,  he said getdata()  but i don't know where it comes from

He told you it was a method of the image...

Another version of what you are doing uses a list comprehension
which might be slightly faster:

pixels = [image.getpixel((x,y)) for x in range(1024) for y in 
range(768)]

But your example didn't show you doing anything with the pixels you
retrieve, so just putting them in a list might not help!

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to