No mysteries. The line width remains until changed. Note that the viewer may
not show the true line width in an attempt to optimize the display speed.
Only printing will show it.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Jim Haggerty" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 20:52
Subject: [iText-questions] Width of rectangle lines


> Having a problem generating a rectangle with line widths greater than 1.
>
> cb is of Class PdfContentByte:
>
> cb.setLineWidth(3f);
> cb.moveTo(x,y);
> cb.lineTo(x,y + whatever);
> cb.stroke();
>
> Gives a nice juicy line.
>
> however:
>
> cb.setLineWidth(2f);
> cb.rectangle(x, y, w, h);
>
> produces the correct size, but the line thickness is still 1, or 4.5
> depending on when 4.5 was last used as a line width.  Can someone
> explain
> the mystery to me?  How do I get an absolute position rectangle with a
> certain border thickness without resorting to four separate
> moveTo/lineTo/stroke combos, or is it even possible?
>
> Thanks,
> Jim
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> PC Mods, Computing goodies, cases & more
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to