xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathan wood <jonathanshaww...@gmail.com>
Subject Re: Convert SVG to Java-Shapes?
Date Mon, 11 Oct 2010 18:33:50 GMT
BridgeContext ctx = (you can get it from the UpdateManager, etc);
GraphicsNode gn = ctx.getGraphicsNode(Dom node I an interested in);

The nodes you are interested will return a ShapeNode....

Shape shape = ((ShapeNode)gn).getShape();




On Mon, Oct 11, 2010 at 12:48 PM, LP <java.jago@gmail.com> wrote:

> Hi,
> when Batik reads in a SVG document and renders it on JSVGCanvas or
> into an image via ImageTranscoder, it probably draws and fills
> java.awt.Shape Objects most of the time.
>
> These Shape objects exist somewhere in this drawing code and I would
> like to get them and use them for further operations.
>
> Is there any way to get those Shapes?
>
> Thanks,
> jago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>

Mime
View raw message