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

Reply via email to