[Image-SIG] composition !

Aureli Soria Frisch Aureli.Soria_Frisch@ipk.fhg.de
Thu, 26 Apr 2001 12:17:31 +0200


Hello,

>using PIL, you can simply paste the strips into the resulting
>big image.  See the "cutting, pasting, and merging" section
>in the PIL tutorial:
>http://www.pythonware.com/library/pil/handbook/intro01.htm
>

Now thinking about paste method , maybe someone could answer an e-mail I
sent some days ago:


>I am using the MacPython 2.0 and the PIL included by default there.
>When doing:
>
>>>> a=Image.new('L',(128,128))
>>>> a.paste(128,(0,0,9,9))
>>>> a.save('prova.tif')
>
>A black 128x128 image appears, while up to the documentation an 8x8 box of
>grayvalue 128 should appear at the top left corner (I think).
>
>What am I doing wrong?
>
>
>Thanks in advance,
>
>Aureli
>
>PS: paste() of another image (8x8 icon) is working properly

Regards


#################################
Aureli Soria Frisch
Fraunhofer IPK
Dept. Pattern Recognition

post: Pascalstr. 8-9, 10587 Berlin, Germany
e-mail:aureli@ipk.fhg.de
fon: +49 30 39 00 61 50
fax: +49 30 39 17 517
#################################