Hi VYang, vyang <[EMAIL PROTECTED]> wrote on 07/05/2007 11:52:38 AM:
> I have an image that is linked inside an circle in the canvas. So then I go > and change the image, the link path is still the same(no svg element has > been modified). Now I want the canvas to reflect this change. Is there a > way I can refresh/force refresh the canvas(already dynamic) without having > to re-set the canvas document. First call 'dispose' on the DocumentLoader associated with your BridgeContext. The add and reinsert the image element. This will cause Batik to refetch the SVG document. If the referenced image is raster then instead of 'dispose' on the DocumentLoader you need to call batik.ext.awt.image.spi.ImageTagRegistery.flushCache() There is a static method to get the global Raster Image cache on that class. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
