How to get each pixel value from a picture file!

Fredrik Lundh fredrik at pythonware.com
Tue Oct 24 05:06:55 EDT 2006


Dennis Lee Bieber wrote:

>> 2) i think putpixel((44, 55), (0, 0, 0)) and putpixel((44,55),0) is
>> same.
>
> It shouldn't be... The former is three separate data values, the
> latter is one.

the "putpixel" API is polymorphic; you can use either tuples or integers
for RGB pixels (the latter should have the form 0xAARRGGBB).

</F> 






More information about the Python-list mailing list