Title: [iText-questions] round corners
(First of all use fill(), stroke() or fillStroke(), only one not both.)
Use a PdfPTable placed after the rectangle.




From: [EMAIL PROTECTED] on behalf of arne anka
Sent: Mon 29-Nov-04 20:49
To: [EMAIL PROTECTED]
Subject: [iText-questions] round corners


Hi

I am trying to create a rectangle with rounded corners
with a table within.

This code does it :
                pdfContentByte.setColorFill(Color.lightGray);
pdfContentByte.roundRectangle(x, y ,w, h, 7);          
pdfContentByte.fill();
pdfContentByte.stroke();

I can see the text in the table if I skip the fill
part. How do I avoid making fill act as an eraser (or
if it just hide stuff). 

I have tried using the Graphics2d class but I dont now
how to get the stuff rendered since I cant find any
samples (so I dont really know if thats the way of
doing it).

Regards
Bj�rn



               
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to