开发者

Python Image Library ellipse with wide outline

开发者 https://www.devze.com 2022-12-08 04:50 出处:网络
When creatin开发者_高级运维g 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

When creatin开发者_高级运维g 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.


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消