*ImageDraw.Draw.rectangle : - v1.1.7*
It is stated in the docs that the second coordinates pair of the box
argument defines a point just *outside* the rectangle, but defines in fact
a point located *inside* the rectangle
*ex :*
>>> im = Image.new('1', (10,10), 0)
>>> draw = ImageDraw.Draw(im)
>>> # according to doc, the following rectangle size is (4,4)
>>> draw.rectangle((0,0,4,4), fill=0xff)
>>> # to check, pixel (4,4) should be black, as outside the drawn rectangle
>>> im.getpixel((4,4))
255
>>> # Problem ! ;)
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig