Hi
I am having some problems with determine the size of a SVG image via the graphichsnode. My SVG img. looks as following:
<---- code ----->
<svg
version="1.0"
width="50"
height="50"
xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol id="motor">
<g transform="scale(0.5)">
<rect x="0" y="30" width="100" height="40" fill="black"/>
<circle
cx="50"
cy="50"
r="40"
stroke="black"
fill="white"
stroke-width="1"
/>
<text x="29" y="70"
font-family="Verdana"
font-size="50px" font-weight="bold" fill="black" >
M
</text>
</g>
</symbol>
</defs>
<use x="0" y="0" xlink:href="#motor" />
</svg>
<---- code ----->When i load the document into gvt and asks for the size on the root node (getBounds) i get following:
x=0;
y = 4.75; Width = 50; (Correct)
Height = 40.5
I had expected that the height and width would be the same?
Its very important for me to know the exact dimensions of the overall SVG icon. I tried with viewport and to set the transform on different locations.
I checked out the sources 11/11/04 I am only using the GVT to paint into a JPanel or sometimes a BufferedImage.
If anyone have any hints i would appreciate it.
Thanks a lot in advance
Carsten
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
