Hi,
say I put a JSVGScrollPane in a JFrame and load a SVG image via the
canvas.setURI(...), then the image is
automatically resized to fit the Scrollpane size.

Question:
* if i resize the JFrame, the canvas is automatically resized to the new
dimensions, but the rendered image is not (of course, it's on a scroll
pane). How do i get the size of the rendered image?


One more thing. If I dont use a scrollpane and put JSVGCanvas directly on a
panel, on panel resize the canvas and the displayed image are automatically
resized preserving the aspect ration. In the svg file no
preserve-aspectratio attributs are set.
Question:
* is there a way such that the rendered image perfectly fits the canvas size
(not preserving tha aspect ratio)?

Any help would be appriceated.
Andrej
-- 
View this message in context: 
http://www.nabble.com/Rendered-image-vs.-canvas-size-tp14951481p14951481.html
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to