Posted by qu0ll
on January 19, 2009 at 3:02 AM PST
Using Java 6 Update 11 (and probably earlier versions as well), I am finding that when rendering a shape and setting the clip region to that same shape, parts of the shape may "disappear" when certain scaling affine transforms are applied. For example, if I render a simple Rectangle2D.Float with the clip region set to that rectangle and then apply a series of scaling affine transforms where the aspect ratio is maintained, for some of those transforms one of the lines that make up the rectangle disappears, especially at smaller scale levels. It is not as simple as generalising that it only happens at smaller scale levels because it can appear, then disappear and then reappear as it is scaled down through a series of transforms.
Is this the expected behaviour? If so, why? Is there any way around this?
And loving it,
-Qu0ll (Rare, not extinct)
[Replace the "SixFour" with numbers to email me]