Python Image Library ellipse with wide outline

2019-07-13 16:20发布

When creating an ellipse with PIL, is it possible to have a thicker/wider outline? Currently, I'm trying to do canvas.ellipse(box, outline=colour, fill=None), but would like to be able to give the outline parameter a width.

1条回答
来,给爷笑一个
2楼-- · 2019-07-13 17:02

You could use the aggdraw advanced-graphics add-on module to PIL -- with it, the method to draw an ellipse, like others, takes a pen object which you can make with your favorite width (as well as color and opacity).

查看更多
登录 后发表回答