Use grx.fill() or grx.fillStroke(). Graphic() is obsolete, use the PdfContentByte returned from Pdfwriter.getDirectContent().
Best Regards, Paulo Soares > -----Original Message----- > From: Ashishb [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 9:18 > To: Itext List > Subject: [iText-questions] Opaque color for graphics object > > Hi, > > How can I set the background of a graphics object to opaque. > > I am drawing a circle by the following method and this is ok. > > Graphic grx = new Graphic(); > grx.setColorStroke(markColor); > grx.setLineWidth(2); > grx.circle(absoluteCenterX, absoluteCenterY, radius); > grx.setRGBColorFillF(255f, 255f, 255f); > grx.stroke(); > cb.add(grx); > > > but am not able to set the background to opaque. > > Please help. > > - Ashish > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > 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 Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
