You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by th...@kodak.com on 2007/06/02 13:42:46 UTC

Re: How to use Filters?

Hi Guillaume,

"Guillaume Rosauro" <g....@gmail.com> wrote on 05/23/2007 08:54:06 AM:

> I am quite lost with Batik and specially with filters. 
> I try to add a filter after a drawImage but I do not think that's 
> the right way to achieve this. What should I do ?

   Unfortunately it is difficult to mix SVGGraphics2D drawing 
with manual manipulation of the DOM (like adding a filter). 
The best you can do is call 'svgGraphics.getRoot()' and 
walk the returned DOM tree to find the 'last' graphic element 
(in your case an svg:image element).  Once you have that you 
can add your 'filter' attribute.



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org