Hi Harvey,

"Harvey Rayner" <[EMAIL PROTECTED]> wrote on 03/19/2007 10:55:38 AM:

> i have svg files that users can modify using a javascript interface.
> 
> i want to send these modified svg files to the rasterizer.  what 
> would be the best way to do this?

   Construct a batik.transcoder.TranscoderInput from the
modified document (requires a little bit of Java programming),
then pass that to the JPEG/PNGTranscoder class (Assuming
the modifications are done with the JSVGCanvas).

   You could also use batik.dom.util.DOMUtilities to write
the document to disk and then run the rasterizer on that,
but that would be noticably slower.

   If your changes are done in something other than Batik
then you will have to figure out how to write the modified
document out (ASV had a method called printNode).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to