Antialiasing makes no sense in pdfs. It's the viewer responsability to antialiase the drawing. If you want antialiasing you'll have to create a bitmap image by writing to a BufferedImage.
Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bruce M. Thompson > Sent: Monday, May 24, 2004 9:49 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] antialias rendering > > Anyone know why the following code snippet doesn't produce an > antialiased circle? > > PdfContentByte cb = writer.getDirectContent(); > PdfTemplate tp = cb.createTemplate(w,h); > Graphics2D g2 = tp.createGraphics(w, h, mapper); > > g2.setRenderingHint(java.awt.RenderingHints.KEY_ANTIALIASING, > java.awt.RenderingHints.VALUE_ANTIALIAS_ON); > > g2.draw(new java.awt.geom.Arc2D.Double(100, 100, 50, 50, 0, > 360, java.awt.geom.Arc2D.PIE)); > g2.dispose(); > cb.addTemplate(tp, x, y); > > Thanks, > Bruce Thompson > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... > Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
