[OpenJDK 2D-Dev] Question about Bug ID: 6729351
Clemens Eisserer
linuxhippy at gmail.com
Tue Nov 18 15:51:35 UTC 2008
Hi,
Some months ago I filed a bug that filling small RoundRectangle2Ds
sometimes does not give round corners:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6729351
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:
http://picasaweb.google.com/linuxhippy/RoundRect#5270025203431615762
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:
http://picasaweb.google.com/linuxhippy/RoundRect#5270025209337038738
I suppose that shouldn't happen?
lg Clenebs
More information about the 2d-dev
mailing list