PIL - transparent ImageDraw.text()

aljosa aljosa.mohorovic at gmail.com
Wed Jul 19 11:43:40 EDT 2006


is it possible to create transparent text (~50% transparency) on image?
i'm using the following code to draw text on image:

>>>
font = ImageFont.truetype(str(self.font_family)+".ttf", self.font_size)
draw = ImageDraw.Draw(img)
draw.text((10, 10), self.text, font=font,fill=(255,255,255))
<<<

url with example would be nice 8-)

Aljosa Mohorovic




More information about the Python-list mailing list