----------------------------------------
> Date: Thu, 17 Dec 2009 19:55:37 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: [iText-questions] URGENT: 
> com.lowagie.text.pdf.PdfGraphics2D.fillArc() takes more time to execute
>
> mihir brahmbhatt wrote:
>> The fillArc() method overridden for PDFGraphics2D takes average 215
>> milliseconds to execute for my chart data. In against to this, while
>> using *sun.java2d.SunGraphics2D *for drawing chart, the fillArc() method
>> is executed within 15 milliseconds for the same chart data.
>
> You're comparing apples with oranges.
>
> PdfGraphics2D translates the method fillArc() to the corresponding PDF
> syntax. When you use Graphics2D to fill an arc on screen, for instance
> on an AWT component, no PDF translation is involved.

So what exactly does it put into the pdf file? Something similar to SVG arc 
description?
You would think this would be fast but if is written in java could get slow I 
guess.
Do you want a bunch of pixels or a description as the result that gets put into 
your file?




>
> If speed is an issue, draw the arc using the methods in PdfContentByte
> and stay away from PdfGraphics2D.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions: 
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
                                          
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to