[OpenJDK 2D-Dev] Graphics2D.drawLine() seems to ignore BasicStroke.getEndCap()
Julien Gouesse
gouessej at yahoo.fr
Thu Jul 17 21:26:54 UTC 2014
Hello
I try to draw a diagonal cross and I get a different result with the same code under Microsoft Windows with Oracle Java 1.7 update 60 (expected result) and under Mageia Linux 4 with OpenJDK 1.7 update 60 (wrong result).
Please find enclosed my small test (50 lines of code) and an image showing the extra pixels on the diagonal cross.
I tried to disable the Java2D pipeline based on XRender and the anti-aliasing (by using the rendering hint) but it didn't help.
Let me know whether I should fill a bug report.
Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20140717/1b30be87/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.png
Type: image/png
Size: 225 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20140717/1b30be87/bug.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.java
Type: text/x-java
Size: 1274 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20140717/1b30be87/Test.java>
More information about the 2d-dev
mailing list