If you get scale(0,0) or a singular matrix it is because there is a call to Graphics2D with these parameters (e.g., a g2d.scale(0,0) and a g2d.transform(tfx) where txf is singular).
Given that you see the difference between doing the export prior to rendering on screen or after rendering on screen, I suspect that you are using a component whose size is (0,0) when you try to do the SVG export which would yield to the zero conditions you see. I suggest setting the size of your component prior to painting it into the SVGGraphics2D.
Vincent.
Nelson Louren�o wrote:
Hi,
i'm using SVGGraphics2D to make my SVG from Java2D,
but i have some problems when use it in background, like in server.
If i see first and then generet the SVG is ok,
if i d'ont see the java2D the SVG code heve some problems,
the first is whit scale and non-zero parameters(the is "scale(0,0)"), after correct this error have more.
The next error is Bad (singular) matrix.
The difference of files size is 15K, the SVG have 214k.
TIA
Nelson
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
