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 tran
Caron, Michael R wrote:
Thanks for all the help so far in using Batik.
No problem,
I have a question regarding the use of Affine Transforms in the
gvtBuildCompleted callback. I defined the method to be as follows:
GraphicsNode g = e.getGVTRoot();
AffineTransform tx = g.getTransform();
Thomas DeWeese wrote:
Hi James,
You will need to build the GVT tree (which is what the
JSVGCanvas calls do except you aren't waiting for the build
events, you are also not making the canvas ALWAYS_DYNAMIC
so for a simple document it won't link the DOM to graphics).
The code to build the graphics tr
Hi James,
You will need to build the GVT tree (which is what the
JSVGCanvas calls do except you aren't waiting for the build
events, you are also not making the canvas ALWAYS_DYNAMIC
so for a simple document it won't link the DOM to graphics).
The code to build the graphics tree for the DOM e
Thomas DeWeese wrote:
Hi James,
To get back to your original question if all you want is the
bounding box of elements in the DOM, you can do this right with
the SVG DOM (svgelem.getBBox()). The only advantage of this is
that you can using getElementById to avoid the need to walk the
whole tree.
Title: Retrieving the image height.
Hello all,
What is the most efficient way of retrieving the image height from the DOM object?
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 calculati
Hi James,
To get back to your original question if all you want is the
bounding box of elements in the DOM, you can do this right with
the SVG DOM (svgelem.getBBox()). The only advantage of this is
that you can using getElementById to avoid the need to walk the
whole tree. Also using the SVG D