PIL ImageDraw line not long enough

Fredrik Lundh fredrik at pythonware.com
Fri Mar 31 01:19:22 EST 2006


Bob Greschke wrote:

> I have to extend the vertical line to y+8, instead of y+7 to get the line
> segment to be drawn long enough.  This is on Linux, Solaris, 2.x versions of
> Python, 1.1.5 version of PIL, and on Windows with the latest of everything.
> Am I missing a setting somewhere?

I recently got another bug reported that talked about the same thing, so
it's probably a bug in 1.1.5 that nobody has noticed before.

(as nikie mentions, the low-level line segment drawer avoids drawing over-
lapping points, but the "line" wrapper should add the last pixel)

</F>






More information about the Python-list mailing list