Hi,
Can anyone explain me what was the advantages in batik1.5.I am new to SVG world.Can anyone please help me.Here in our porject we are using batik 1.1.But the file to parse and renderer it talking more Can anyone advice me how to renderer the svg file.
thanks,
Vijay


Thomas.DeWeese@Kodak.com

02/02/2005 08:24 PM
Please respond to
batik-users@xml.apache.org

To
batik-users@xml.apache.org
cc
Subject
Re: Retrieving the image height.





Litton, Tom - CEPM wrote:

> What is the most efficient way of retrieving the image height from the
> DOM object?

   SVG is a scalable format so you need to define 'height'?
If your content is 'well behaved' you should be able to just
ask for the width/height attributes on the root element.

   The transcoder allows one to override these with hints
which you could also query.

> I've implemented my own transcoder which delegates to one of several
> other transcoders.  However, before the delegation takes place I need to
> do some calculations based on  the height of the image.
>
> Currently i'm calling transcode(document, s, transcoderoutput) on the
> super class (SVGAbstractTranscoder), but that seems like a very
> inefficient thing to do just to get the height.

    Well this depends, most of the transcoders need to do that
before they can output the image.  So what might be best would
be to subclass the transcoders you are delegating to so you can
insert your computations between when they call the parent
transcode method and when they actually create their output.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org