How to get each pixel value from a picture file!

Fredrik Lundh fredrik at pythonware.com
Tue Oct 24 01:57:43 EDT 2006


Steve Holden wrote:

>> 3)         pix = im.load()
>>             print pix[44,55]
>>             pix[44, 55] = value
>>  my python cannt identify "[x,y]" ??
>>
> 
> Now what makes you think that an image can be addressed that way? I'd be 
> quite surprised if yo got anything other than a TypeError doing that.

PIL 1.1.6 (still in beta) supports special pixel access objects. 
earlier versions don't.

</F>




More information about the Python-list mailing list