xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hardy <vincent.ha...@sun.com>
Subject Re: fill property
Date Fri, 21 Sep 2001 08:29:14 GMT
Silvana,

You can, but indirectly, through a <pattern>. Something like:

<defs>
	<pattern id="myPattern" x="0" y="0" width="300" height="300">
		<image xlink:href="myImage.png" width="300" height="300" />
	</pattern>
</defs>

        <circle r="300" cx="150" cy="150" fill="url(#myPattern)" />

You can look into the samples/tests/ directory where there are 
several pattern examples.

Good luck with your project!
Vincent.

slorentz@e-sim.co.il wrote:
> 
> Hi,
> 
> Can anyone tell me whether I can specify an image file as the fill property of a
> stylable SVG element?
> If the answer is yes, can you please give me an example of how to do this.
> 
> Thank you,
> Silvana
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org



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


Mime
View raw message