hi all, I have the following lines of code which causes an exception when i try to transcode or view it in batik-squiggle :
<linearGradient id="XMLID_1_" gradientUnits="userSpaceOnUse" x1="3.3086" y1="-134.0859" x2="328.1484" y2="-134.0859" gradientTransform="matrix(-4.371139e-008 1 -1 -4.371139e-008 3.3082 -3.309)"> <stop offset="0" style="stop-color:#FFFFFF"/> <stop offset="0.9944" style="stop-color:#7ECDC8"/> <a:midPointStop offset="0" style="stop-color:#FFFFFF"/> <a:midPointStop offset="0.5" style="stop-color:#FFFFFF"/> <a:midPointStop offset="0.9944" style="stop-color:#7ECDC8"/> </linearGradient> <path fill="url(#XMLID_1_)" d="M3.308,324.84V0H271.48v324.84H3.308z"/> java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.batik.ext.awt.LinearGradientPaintContext.fillHardNoCycle(Unknown Source) at org.apache.batik.ext.awt.LinearGradientPaintContext.fillRaster(Unknown Source) at org.apache.batik.ext.awt.MultipleGradientPaintContext.getRaster(Unknown Source) I was able to pin point the exact attribute that causes the problem which is the gradientTransform="matrix(-4.371139e-008 1 -1 -4.371139e-008 3.3082 -3.309)"> i changed it to gradientTransform="matrix(1 0 0 1 30 30)"> and it worked fine. Could somebody please explain the effect of this change. I read about the linear gradient and its attributes at www.w3c.org, but i still am not able to figure why this would cause a problem thanks, Ananth --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]