[OpenJDK 2D-Dev] Question about Bug ID: 6729351

Clemens Eisserer linuxhippy at gmail.com
Tue Nov 18 15:51:35 UTC 2008


Some months ago I filed a bug that filling small RoundRectangle2Ds
sometimes does not give round corners:

For example:
> RoundRectangle2D.Float rect = new RoundRectangle2D.Float(10, 10, 20, 20, 5, 5);
> g2d.fill(rect);

Gives: http://picasaweb.google.com/linuxhippy/RoundRect#5270021310445748898

The evaluation said:
> The behaviour of fill operation was changed within the fix of
> 4151279 to match draw operation with the same shape.
However fill and draw do not match in that case either:

So although I think the evaluation is correct, I am just curious whats
the cause of such degenerated RoundRectangles?
If I set STROKE_PURE the fill is fine, but draw looks "ugly" ;)

Another strange behaviour I saw is that RoundRects are drawn
differently, when an argb-color is used:
I suppose that shouldn't happen?

lg Clenebs

More information about the 2d-dev mailing list