PIL - setting the width of lines in ImageDraw

Larry Bates lbates at swamisoft.com
Mon Sep 13 17:52:36 EDT 2004


There's nothing wrong with "slanted" rectangles.
In PIL you just define upper left and lower right
coordinates of the rectangle in pixels.  That's
what a thick line would do anyway.

Larry Bates
Syscon, Inc.

"Erik Heneryd" <erik at heneryd.com> wrote in message
news:mailman.3265.1095107443.5135.python-list at python.org...
> Larry Bates wrote:
> > When you want lines wider than 1px you are actually
> > drawing rectangles with fillcolor set to the line
> > color.  There is a drawrectangle method.
>
> Ever tried to draw a /slanted/ line?
>
>
> Erik





More information about the Python-list mailing list