You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Vincent Hardy <vi...@sun.com> on 2002/06/10 16:59:05 UTC

Re: DOM to SvgGraphics2D

Michael,

To draw on your image, you'll have to play with SVGGraphics2D's 
setTopLevelGroup method after
you have loaded you Document object. This will require that you 
get all the content of you SVG document, put it into a <g> and 
set that as the root for the SVGGraphics2D. Then, you'll be able
to draw on top of your image.

I do not think you can easily clip the original SVG image using
SVGGraphics2D as it is offering the 2D API calls (and no more)
and that does not let you clip SVG images. However, you can 
do that through direct DOM manipulation...

Good luck!
Vincent.

Hadrbolec Michael wrote:
> 
> hello everybody
> is it possible to get an SVG file into the SvgGraphics2D in order to get the
> benefit of clipping and drawing on it?
> 
> :-) michael
> 
> Michael Hadrbolec
> 
> Umweltbundesamt GmbH.
> Abteilung IT/Edv
> 
> Tel. ++43 (0) 1 31304 5326
> Fax ++43 (0) 1 31304 5301
> Email  hadrbolec@ubavie.gv.at
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

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