Из документации вынес следующее:
from PIL import Image, ImageDraw
img = Image.new('RGB', (20, 20), '#ffffff')
text = '...'
draw = ImageDraw.Draw(img)
draw.text(xy, text, fill, font, anchor)
Помогите, пожалуйста.
from PIL import Image, ImageDraw
img = Image.new('RGB', (20, 20), '#ffffff')
text = '...'
draw = ImageDraw.Draw(img)
draw.text(xy, text, fill, font, anchor)
text
draw.text(position, string, options)
Draws the string at the given position. The position gives the upper left corner of the text.
The font option is used to specify which font to use. It should be an instance of the ImageFont class, typically loaded from file using the load method in the ImageFont module.
The fill option gives the colour to use for the text.