Hi Seth,
I would do exactly what you intend: manipulate directly an SVGDocument.
I did some tests few months ago, and if I remember correctly, loading the document was the most time consuming part. I didn't try to use gvt so I don't know if it would be more efficient. My guess is that it wouldn't change much.
I can be wrong but in any case working directly on the SVGDocument is good enough for me. If there is a faster method however, I am always willing to learn.
Oscar
Seth Tager <[EMAIL PROTECTED]> wrote:
I would do exactly what you intend: manipulate directly an SVGDocument.
I did some tests few months ago, and if I remember correctly, loading the document was the most time consuming part. I didn't try to use gvt so I don't know if it would be more efficient. My guess is that it wouldn't change much.
I can be wrong but in any case working directly on the SVGDocument is good enough for me. If there is a faster method however, I am always willing to learn.
Oscar
Seth Tager <[EMAIL PROTECTED]> wrote:
Hello,
I'd like to generate multiple images based on the same svg doc. Each
image will be slightly different (i.e. use different colors, replace
text, etc). I plan to use a SAXSVGDocumentFactory to generate an
SVGDocument and then manipulate the nodes/elements directly before
generating a jpg using ImageTranscoder.
Can anyone tell me whether this is a reasonable strategy or whether
I'd be better off manipulating gvt instead of the svg dom? Speed and
memory are concerns, which is why I'm not considering the option of
generating svg xml and then processing that. For smaller images I'm
estimating (based upon no evidence) that the parsing will consume a
noticeable amount of time and memory, but since I'm unfamiliar with
the code I realize my estimation may be way off. I'd like to avoid
burning development time on obviously wrong solutions.
Seth
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
