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

Reply via email to