Ben Ward wrote:

Hi,
I want to generate with batik 1.5, something like this :
<rect fill="silver" height="8" stroke="black" width="50" x="736" y="289" />

Hi Ben, Short answer is you can't generate exactly this, you can generate the equivalent of this.

svgGraph2d.setColor(Color.silver); svgGraph2d.fill( new Rectangle ( ... ) )

Result : silver rectangle with no border

I use

svgGraph2d.setColor(Color.black); svgGraph2d. drawRect ( ... )

Result : white rectangle with black border
Actually it is a transparent rectangle with black border.


How can i generate a silver rectangle with black border

Using the Java2D API you can only generate a silver rectangle and then a black rectangle border. The result will be indistinguishable on the screen, but it will still be 'ugly' SVG.


tanks


ben


Post your free ad now! *Yahoo! Canada Personals* <http://ca.personals.yahoo.com/>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to