You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Philippe Converset <pc...@Qarbon.com> on 2002/03/07 18:16:48 UTC

How to apply a Batik fill element to a Java shape?

Hi,

I'd like to use Batik to read a svg file from which a specific fill element 
is extracted. This fill element is to be applied on a pure Java shape which 
is not part of the SVG file.
The idea is to apply an SVG fill element (gradient, pattern or simple 
color) to a Java shape.

So this is a two part question:
- how to retrieve a paint element from a SVG tree if its id is known 
("myPaint" for example)?
- how to apply a Batik paint element to a Java shape?

Any idea or is it too much a hack?

Philippe


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