xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas E Deweese <thomas.dewe...@kodak.com>
Subject Clipping an SVG file / guessing elements bounding boxes
Date Thu, 24 Jan 2002 13:59:00 GMT
>>>>> "N" == Nicolas  <nico@altiva.fr> writes:

N> Greetings, I'm quite new to SVG, have been playing around with
N> Batik libs. I need to clip an SVG document, at the SVG level,
N> i.e. remove elements not crossing a given view point, and remove
N> them from the SVG. For that matter, I would need to be able to
N> compute the bounding box of elements.  From the way SVG works, this
N> can't be computed directly, since elements can be transformed, etc.

N> Anyone got an idea how to proceed? Could I use the rendering engine
N> to make the calculation, then copy back the bounding box to the

   You can walk the GVT tree which has bounding box information and
transform information.  Most SVG things map 1:1 to nodes in the GVT
tree but obviously things can get more complicated when you consider
filtering, or patterns.

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

View raw message