cafeeee wrote:
I failed to specify the color of the text while drawing a text into an
image:

import Image, ImageDraw, ImageColor, ImageFont
image = Image.open("a.gif")
draw = ImageDraw.Draw(image)
font = ImageFont.truetype("arial.ttf", 15)
color = "blue"
draw.text((10, 10), "HELLO", fill=color, font=font)

>>> color = 0,0,0
>>> draw.text((10, 10), "HELLO", fill=color)


Here you can find all the PIL doc:
http://www.pythonware.com/library/pil/handbook/imagedraw.htm
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to