>>>>> "PC" == Philippe Converset <[EMAIL PROTECTED]> writes:
PC> The basic idea is to read an SVG file, retrieve a specific paint PC> element (through a known id), transform it to a java.awt.Paint PC> object and apply it to a pure java Shape. The BridgeContext is PC> needed to convert the SVG paint element to the pure Java paint PC> object via the batik.bridge.PaintServer.convertFillPaint() method. I don't know what sort of paints you are looking for, but the gradients are fairly easy to construct independent of GVT. Patterns are a bit harder :) >> Then, the good news for today is that all members of the JSVGCanvas >> and its superclasses are protected so, right now, it's easy to >> subclass the JSVGCanvas to get access to its BridgeContext and add >> the getBridgeContext method you need. PC> I saw that. I'm currently using JSVGCanvas because it's really PC> convenient but as the SVG file I use is not meant to be rendered PC> (it is just kindof a description file), I'll try to use something PC> else more straightforward. If this is the only way to get a PC> bridgeContext, I'm ok to subclass the JSVGCanvas for now. Take a look at ...batik.apps.slideshow.Main it reads and parses SVG w/o the canvas and as a bonus you get direct access to the BridgeContex. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]