[Image-SIG] Inconsistent line widths using ImageDraw.line()

Bock, Oliver BGI SYD Oliver.Bock at barclaysglobal.com
Mon Nov 19 00:53:49 CET 2007


When I use line()'s newish 'width' parameter, the observed line width
seems to depend on the angle of the line.  If you run this script:

import Image, ImageDraw
im = Image.new("RGB", (100,100), "white")
draw = ImageDraw.Draw(im)
draw.line((0,0,100,100), width=3, fill="black")
draw.line((0,100,100,0), width=3, fill="black")
del draw
im.show()

then (on Windows XP, using PIL 1.1.6 with Python 2.4) the second line
(from bottom left to top right) is noticeably thinner than the first.
Can anyone suggest a fix?


   Oliver 
 
-- 
 
This message and any attachments are confidential, proprietary, and may be privileged.  If this message was misdirected, Barclays Global Investors (BGI) does not waive any confidentiality or privilege.  If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone.  Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized.  The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BGI, unless the author is authorized by BGI to express such views or opinions on its behalf.  All email sent to or from this address is subject to electronic storage and review by BGI.  Although BGI operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.


More information about the Image-SIG mailing list