xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ananth balasubramanyam <abala...@cs.odu.edu>
Subject Re: exception caused by a linear gradient
Date Thu, 24 Jun 2004 14:25:08 GMT
thank you all for your valuable feedback on this issue.

Ananth
> Hi Ananth,
>
>     The problem does have to do with the really small numbers.
> A division by this small number results in a number that
> unexpectedly overflows a 32bit int.  A fix for this should be
> committed sometime later today (along with a few other things).
>
> Cameron McCormack wrote:
>
>> Hi Ananth.
>>
>> ananth balasubramanyam:
>>
>>>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
>>
>>
>> Yes I think it is something to do with the very small numbers.  I
>> tried replacing your transform with
>>
>>   matrix(0 1 -1 0 3.3082 -3.309)
>>
>> and I didn't get the exception any more.  I had a quick look through
>> the function where it's crashing but I'm not really familiar enough
>> with the gradient code to know where the small numbers would be
>> causing the problem.
>>
>> Cameron
>>
>
>
> --------------------------------------------------------------------- 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