[OpenJDK 2D-Dev] Fixes for two bugs in stroker
dlila at redhat.com
Wed Sep 22 06:30:16 PDT 2010
I'm sorry it took me so long to get to this.
The first patch looks good.
The second one breaks miter joins for counter clockwise paths. For
example, if the path is p.moveTo(0, 0);p.lineTo(0, 100);p.lineTo(100,100);
p.lineTo(100,0);p.closePath(); the miter join on the close won't be
drawn properly and new artifacts will be introduced on round joins (bevel
joins will simply not be drawn).
PS. I don't think that this (bug 6850438) is a bug. The specification
is a bit loose on the behaviour of BasicStroke.createStrokedShape. As
long as the created shape is filled properly, the behaviour is correct.
It would probably be a good idea to reclassify this as a RFE.
Anyway, the last thing I've been working on fixes this:
----- "Omair Majid" <omajid at redhat.com> wrote:
> A while ago I filed
> which contain fixes for two bugs in lines drawn by the Stroker. Will
> someone be kind enough to review these patches? The bug reports
> patches and images showing the differences in output.
More information about the 2d-dev