JDK-6540251 : RoundRectangle is not symmetric without antialiasing
Type:Bug
Component:client-libs
Sub-Component:2d
Affected Version:7
Priority:P4
Status:Open
Resolution:Unresolved
OS:windows_xp
CPU:x86
Submitted:2007-03-29
Updated:2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
RoundRectangle2D is not filled properly. See attached test:
Both left corners looks good, but both right corners are differ.
Comments
EVALUATION
This bug is only reproducible on windows platform where we are using GDI for filling shapes. Unfortunately, GDI operates with integer coordinates and also not so accurate as our software loops so we end up with such kind of problems. The problem can be solved (at least for some extent) by more sophisticated rounding of the control points than we currently have.