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")
[...]
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",