Re: [Image-SIG] CAPTCHA antibot

2005-05-09 Thread Douglas Bagnall
Lorenzo Bolognini wrote: > from PIL import Image, ImageDraw, ImageFont > im = Image.new("RGB", (150,70), "#fff") > draw = ImageDraw.Draw(im, "RGB") > font = ImageFont.truetype("trebuc.ttf", 30) > draw.text((20,20), "Hello World!", fill="#ff", font=font) > im.save("C:\\pippo.png", "PNG") [...]

[Image-SIG] CAPTCHA antibot

2005-05-09 Thread Lorenzo Bolognini
Hi all, first post here ;) i'm trying to do this: from PIL import Image, ImageDraw, ImageFont im = Image.new("RGB", (150,70), "#fff") draw = ImageDraw.Draw(im, "RGB") font = ImageFont.truetype("trebuc.ttf", 30) draw.text((20,20), "Hello World!", fill="#ff", font=font) im.save("C:\\pippo.png",