[reportlab-users] Line color in canvas

Tim Roberts timr at probo.com
Mon Aug 29 14:32:04 EDT 2011


Asif Jamadar wrote:

>

> How can I change the color of line. Here is my code

>

>

>

> canvas.setFillColor(blue)

>

>

>

> canvas.line(50, 770, 580, 770)

>

>

>

> Any suggestion?

>


Lines are drawn in the stroke color. Use canvas.setStrokeColor.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20110829/3fa9b981/attachment.htm>


More information about the reportlab-users mailing list