📜  在 python 库中绘制图片 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:35.176000             🧑  作者: Mango

代码示例1
draw.ellipse((100, 100, 150, 200), fill=(255, 0, 0), outline=(0, 0, 0))
draw.rectangle((200, 100, 300, 200), fill=(0, 192, 192), outline=(255, 255, 255))
draw.line((350, 200, 450, 100), fill=(255, 255, 0), width=10)

im.save('data/dst/pillow_imagedraw.jpg', quality=95)