[Image-SIG] PIL ImageDraw.line(width)

nop head nop.head at googlemail.com
Thu Apr 24 00:24:36 CEST 2008

 I am trying to draw thick lines with PIL 1.1.6  ImageDraw.draw.line()
using the width parameter. If I draw a square with width=3 then each
side has a different width: right to left is width 2, bottom to top
width 3, left to right width 4 and top to bottom width 5. Is the
function broken or am I missing the point?

I am considering a workaround by computing the gradient and adjusting
the width accordingly. Is this the correct approach? Has anybody coded
this already?

Regards, Chris

More information about the Image-SIG mailing list