Hi, 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.