[BUG - minor][1.1.7] ImageDraw.Draw.rectangle - box argument

Nicolas DAVID <[email protected]> Tue, 16 Oct 2012 12:10:45 +0200
Newsgroups gmane.comp.python.image
Message-ID <CALA6xHWUgEU4e4MaFcjcCjFfEpuhCa_Y1h7+bToeL-k6JsS=UQ@mail.gmail.com>
*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