user184092
user184092

Reputation:

Python Image Library ellipse with wide outline

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.

Upvotes: 2

Views: 889

Answers (1)

Alex Martelli
Alex Martelli

Reputation: 881555

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

Upvotes: 1

Related Questions