Thanks for the suggesion thomas. Let me put my problem more clear.
I need to give an image for icons(componets).User will drag and drop the components into the panel. He may resize the icons. If i put .gif as image of an icon when user resizes it he will lose the resolution. To avaoid that i was planing to user SVG i dont want to use JSVGCanvas. I tried with class SVGRasterizer(Which will give me a bufferedImage) but still i could not get the resolution SVG. If i can access the rendered image from JSVGCanvas or JSVComponent or JGVTComponent. When ever user resizes icon. I will pass the svg document with new size to above mentioned(JSVGCanvas)one and get the rendered one from it. In this approch i will be having one control class for that if i pass the svgdocument and size it will give me Rendered image out of it. I want to know how to do? Any one of you people can help me. It would be great help for me. Thanks in advance Bala -----Original Message----- From: Thomas E Deweese [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 6:13 PM To: Batik Users Subject: Getting rendered image from JSVGCanvas "BK" == K, Balamurugan (CORP, GEITC) <[EMAIL PROTECTED]> writes: BK> I am new to Batik. I need help from u guys. I have a BK> requirement. I have to show vector graphics to get high BK> resolution. I need to create icons which will have images. When i BK> resize that icon i will lose the resolution if the image is gif or BK> any raster based. JSVGCanvas is the best one for that but for each BK> icon i can't use JSVGCanvas. It is very slow. What i am thinking BK> to solve this problem is, i will use svg. For that i need to know BK> how to acces the rendered image object from JSVGCanvas. If i know BK> how to do that each time when i resize i will get the new rendered BK> image from JSVGCanvas in that way i wont lose the resolution. I BK> think this will be more useful for different projects as well. It BK> will be greatful if any one show me the right direction. I don't think I fully understand what you are asking for. But it sounds like you want to put SVG icons over a very high resolution image. If your High resolution image is done using RenderableImage (say from JAI). You should be able to fairly easily construct a single SVG document that has that image in the background (by extending the image tag: see extending Batik on our web site). And then has a bunch of use's or what ever to place the icons over the image. This would have JSVGCanvas display everything (instead of a JSVG canvas per icon). Alternatively, You can build the GVT tree (either use the JSVGCanvas since it has a really simple interface or look at the Slideshow application: ...batik.apps.slideshow) and ask the GVT tree (batik.gvt.GraphicsNode) for it's RenderableImage (getGraphicsNodeRable, this returns a Filter but that just extends java.awt.image.renderable.RenderableImage with a few extra methods). You can then call createRendering with an appropriate RenderContext to get proper renderings. BK> Thanks in advance Bala Hope the above is helpful. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]