[reportlab-users] Reduce thickness of the rectangle
ramas at live.co.uk
Wed May 28 11:43:47 EDT 2014
It worked great! Thanks for the time and reply.
> Date: Wed, 28 May 2014 13:42:01 +0100
> From: robin at reportlab.com
> To: reportlab-users at lists2.reportlab.com
> Subject: Re: [reportlab-users] Reduce thickness of the rectangle
> On 28/05/2014 13:26, Ramas Sami wrote:
> > Hi all,
> > Is it possible to reduce the thickness of rectangle border?
> > rect(x, y, width, height, stroke=1, fill=0)draws a rectangle with lower left corner at (x,y) and width and height as given.
> > Please help me to fix it, if there are any other ways to achieve it.
> > Thanks
> > Best Regards--Ramas
> you need to set the linewidth on your canvas.
> canv.rect(x, y, width, height, stroke=1, fill=0)
> so the canvas only has one lineWidth / strokeColor which is why we have to save
> and restore the state etc etc
> Robin Becker
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the reportlab-users