xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LP <java.j...@gmail.com>
Subject Re: Convert SVG to Java-Shapes?
Date Mon, 11 Oct 2010 19:13:44 GMT
Oh my...thanks but I am a total Batik Beginner. Most of what you wrote
I cannot understand or even find.

I managed to read in a SVG file so I am basically starting with a
SVGDocument object.

2010/10/11 jonathan wood <jonathanshawwood@gmail.com>:
>
> 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
>>
>
>

---------------------------------------------------------------------
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