xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Solution: How to filter/clip SVG elements in a certain region in drawing and get resultant SVG-XML (Can you do better?)
Date Fri, 04 Apr 2008 11:45:54 GMT
Hi Rob,

Rob Davis-5 <tech@robertjdavis.co.uk> wrote on 04/03/2008 06:36:05 AM:

> My requirement is to take an SVG drawing and generate just the SVG of 
the
> elements that exist within a certain region (as defined by a Shape, or a
> Shape derived from a SVG element within the document).

   If you are happy to deal with bounding boxes the SVG standard
provides: SVGSVGElement.getIntersectionList(SVGRect rect, SVGElement 
refElem);

  This will return a NodeList that has all of the elements that
intersect the SVGRect and are before refElem (if not null) in 
drawing (~document) order.


Mime
View raw message