Hi, I'm quite new to Batik, I've also tried to find an answer on the web, but didn't find anything helpful. Didn't find any search functionality on the mail archive either.
I'm using the JSVGCanvas , very nice, but I need to scale the displayed SVG image to fit the window size of the canvas. So no scrolling, rotation or panning needed. This should work for any SVG (with or w/o a ViewBox) - changing the svg file itself it not an option. The aspect ratio should always be unchanged. Nice, would be to have an option to either scale down only or to allow scale up and down. Because I didn't found any 'scale-to-fit' hints, I was thinking if it would be better to use the BufferedImageTranscoder and convert the svg to an image. The transcoder has the scale-to-fit build in (very nice - works with any SVG, keeps the aspect ratio), but then I got problems loading some svg's. I'm not sure how to get javascript, onLoad, references to elements, and security under control. Having animation with the Canvas solution would also be a nice to have. So I think I'm looking for something like an Action AutoFit for the canvas, and this action automatically triggered (at the right time?). Please help .... Greetings Heinz --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
