Hi Sudhakar,

Sudhakar S <[EMAIL PROTECTED]> wrote on 08/02/2006 02:02:30 AM:

> > Are you drawing anything to the SVGGraphics2D? 

> After drawing the in Graphics2D using paint menthod, 

    What are you drawing in the Graphics2D?  Are you calling the
batik.gvt.GraphicsNode.paint method?  Or are you calling the
JSVGCanvas.paint method?   The Canvas only ever draws a bitmap (so
all the graphics2D will store is a bitmap).
You need to pass the SVGGraphics2D to the paint method on the root
of the GVT tree.

> i can able to save the
> whole document. But it is looking like raster format, so i couldn't zoom 
in
> to larger size. if i zoom in the exported svg file, there is no scalable
> vector quality. 

    There are some features that can't be easily detected through
the SVGGraphics2D interface (like filters, patterns) and as a result they
are embedded in raster format.  You may be using one or more of those 
features.

> Is there any way to store only images(.svg) in raster format and other
> elements like line, rectangle, text and etc in scalable format?

    This is possible, but Batik doesn't have any readily available
tools to do this.  It sounds like you may have to write 
code to flatten your document yourself.


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

Reply via email to