Fastest Way To Loop Through Every Pixel

Terry Reedy tjreedy at udel.edu
Fri Jul 28 14:43:19 EDT 2006


"Chaos" <psnim2000 at gmail.com> wrote in message 
news:1154053723.899787.72980 at i3g2000cwc.googlegroups.com...
>> > As my first attempt to loop through every pixel of an image, I used
>> >
>> >         for thisY in range(0, thisHeight):
>> >             for thisX in range(0, thisWidth):
>> >                   #Actions here for Pixel thisX, thisY

Besides other suggestions, you might also take a look at Pygame which both 
wraps a C graphics library and has an interface to numeric.







More information about the Python-list mailing list