[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
linuxhippy at gmail.com
Tue Sep 27 13:33:49 UTC 2016
> I guess you can use "getDeterminant()==0" to determine if this transform has
> no inverse?
Initially I had the same idea, but looking at the implementation of
invert(), I found several different conditions leading to an
NoninvertibleTransformException. So I decided to keep the call to
invert(), as the code-path shouldn't be performance critical anyway.
Best regards, Clemens
More information about the 2d-dev