How to get each pixel value from a picture file!
fredrik at pythonware.com
Tue Oct 24 07:57:43 CEST 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.
More information about the Python-list