Hi to all !
I'm new to this mailing-list and glad now to work
with Batik!
I have very simple SVG files (only simple
graphics) to manage on an AWT panel (the panel already exists so i couldn't use
the canvas provided by Batik). I have created a SVGObject class which
create a SVGDocument with a SVG file byte stream. After, i have to create
graphical function to translate, rotate, skew, ... these SVG.
I use the following code in my SVGObject.paint()
method :
GVTBuilder gtv = new GVTBuilder();
GraphicsNode gn = gtv.build(myBridgeContext, mySVGDocument); Graphics2D g2d = (Graphics2D)g.create(extent.x,extent.y,extent.x+extent.width,extent.y+extent.height); gn.paint(g2d); My question is :
- how could i apply some transformations to
mySVGDocument before creating the updated graphics node to paint ?
I had a look to the SVGTransformList DOM interface
but i could not find any method to get this object from my
SVGDocument.
I you have an idea, or an example, it would be
great !
Thank you all
Sylvain Caillet
PS : SVG example:
<svg width="600" height="600" scale1000="0.1"
id="main" originx="300" originy="300">
<rect x="0" width="600" y="0"
height="600"
style="stroke:rgb(255,255,255);fill:rgb(255,0,0);"/>
<line y2="600" x1="0" style="stroke: rgb(255, 255, 255); " x2="600" y1="0"/> <line y2="600" x1="600" style="stroke: rgb(255, 255, 255); " x2="0" y1="0"/> </svg>
|
- Re: How to apply more than 1 tranform to a SVGDocument Sylvain Caillet
- Re: How to apply more than 1 tranform to a SVGDocume... Andres Toussaint
- Re: How to apply more than 1 tranform to a SVGDocume... Tonny Kohar
- Re: How to apply more than 1 tranform to a SVGDo... Sylvain Caillet
- Re: How to apply more than 1 tranform to a S... Thomas DeWeese