答:创建 draw = ImageDraw.Draw(im),调用 draw.text((x, y), value, font=font, fill=color)。需要对齐时传合适的 anchor,并用相同字体和布局参数先测量。
题干与完整题解免费阅读第 1 / 1 页
本页 1 道,共 1 道浏览其他领域
答:创建 draw = ImageDraw.Draw(im),调用 draw.text((x, y), value, font=font, fill=color)。需要对齐时传合适的 anchor,并用相同字体和布局参数先测量。