>>>>> "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]