[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

how to set image from double values of pixels

jimgardener

2/17/2008 3:09:00 PM

hi
i am using PIL to get and set image data.Using image.getdata() i can
get a tuple of ints for each pixel. also i can use im.putdata(data)
to set pixels .

suppose i am given a double value as a pixel value (say 7245654.32456
which i may get from some image processing calc..) and thus i have an
array of doubles to represent the image.can i use im.putdata() to set
the pixel values without loss of information?

can someone help?