[Image-SIG] PIL IMAGES

israel diaz isdito at hotmail.com
Fri Nov 19 02:21:27 CET 2004


Hello I am writing this pyhton script

import Image,ImageFont,ImageDraw
ruta="C:/temp_mesh/"
nameF="ARIALNB.TTF"
nameI="mia.tif"
size_i=(256,512)
im=Image.new("RGBA",size_i)
fm=ImageFont.truetype ( ruta+nameF, 40 )
draw=ImageDraw.Draw(im)
print draw.textsize("hola mundo"),im.getbands()
for x in range(0,10):
    draw.text((20,x*51.2),"hola mundo",font=fm, fill="white")
im2=im.convert('L')
im.putalpha(im2)
im.save(ruta+nameI)

But I have a question how I can aligned to the other side in the right of the image

thanks for all and sorry for my bad engish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20041119/1a036bfe/attachment.html


More information about the Image-SIG mailing list