[OpenJDK 2D-Dev] Request for Review: JDK-8162591 All existing gradient paint implementations have issues with coordinates/sizes larger than Short.MAX_VALUE (exactly) on any Linux systems

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Sep 27 10:37:22 UTC 2016

On 26.09.16 22:50, Clemens Eisserer wrote:
> I was not 100% sure myself. As the Paint classes are stateless, there
> is some overhead involved in checking the transformation in
> isPaintValid (allocation of an additional AffineTransformation by
> calling MultipleGradientPaint.getTransform() + additional call to
> invert() as there is no isInvertible() method).

I guess you can use "getDeterminant()==0" to determine if this 
transform has no inverse?

Best regards, Sergey.

More information about the 2d-dev mailing list