Hi Vijay,
Vijay Kumar V wrote:
I just want to create two images from SVG content.
One image with normal size and the other one in a thumbnail size. Is there any such method in batik which i could use to achieve the above??
Sure, if you can get any BufferedImage from the SVG (there are lots of examples out there, take a look at the batik.transcoder.SVGAbstractTranscoder) you just need to change the user->device space (viewBox) transform. There are a number of utility methods in the batik.bridge.ViewBox class, such as "ViewBox.getPreserveAspectRatioTransform(root, width, height)"
The viewing transform can then be set on the CanvasGraphicsNode which is usually the first child of the RootGraphicsNode.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]