PIL QUESTION

israel diaz isdito at hotmail.com
Sat Nov 20 18:27:49 EST 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/python-list/attachments/20041121/b54de7d2/attachment.html>


More information about the Python-list mailing list