Hey Thomas
This was an important issue to my understanding. I will try it out asap. A lot of thanks and have a nice weekend.
Regards
Carsten
Thomas DeWeese wrote:
Hi Carsten,
See below.
Carsten L. Birn wrote:
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"> <---- 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.
This _is_ the exact size of the graphical _content_. Your content appears to have some "whitespace" around it on the top and bottom so it doesn't fill the requested W/H on the SVG element.
If you want to know the width and height on the SVG element then you should ask the SVG element for it's width/height attributes. You can also ask the BridgeContext for the DocumentSize() (which should be the same thing).
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
