[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: [OpenJDK 2D-Dev] Graphics2D.drawLine() seems to ignore	BasicStroke.getEndCap()
From:       Julien Gouesse <gouessej () yahoo ! fr>
Date:       2014-07-25 8:21:08
Message-ID: 1406276468.1175.YahooMailNeo () web28803 ! mail ! ir2 ! yahoo ! com
[Download RAW message or body]

Hi

Actually, the problem comes from the drawing of the first point rather than the end \
cap. Best regards.



Le Jeudi 17 juillet 2014 23h31, Julien Gouesse <gouessej@yahoo.fr> a écrit :
 


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.


[Attachment #3 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif;font-size:12pt"><div><span>Hi</span></div><div style="color: rgb(0, 0, 0); \
font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida \
Grande,sans-serif; background-color: transparent; font-style: \
normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; \
background-color: transparent; font-style: normal;"><span>Actually, the problem comes \
from the drawing of the first point rather than the end cap. Best \
regards.</span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: \
block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div \
style="font-family: HelveticaNeue, Helvetica  Neue, Helvetica, Arial, Lucida Grande, \
sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> Le Jeudi \
17 juillet 2014 23h31, Julien Gouesse &lt;gouessej@yahoo.fr&gt; a écrit :<br> </font> \
</div>  <br><br> <div class="y_msg_container"><div id="yiv4124685485"><div><div \
style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, \
sans-serif;font-size:12pt;"><div>Hello</div><div><br></div><div style="color:rgb(0, \
0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, \
Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">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).</div><div style="color:rgb(0, 0, \
0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue,  Helvetica, Arial, \
Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, \
sans-serif;background-color:transparent;font-style:normal;">Please find enclosed my \
small test (50 lines of code) and an image showing the extra pixels on the diagonal \
cross.</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif;background-color:transparent;font-style:normal;"><br></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, \
sans-serif;background-color:transparent;font-style:normal;">I tried to disable the \
Java2D pipeline based on XRender and the anti-aliasing (by using the rendering hint) \
but it didn't help.</div><div style="color:rgb(0, 0,  \
0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida \
Grande, sans-serif;background-color:transparent;font-style:normal;"><br></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, \
sans-serif;background-color:transparent;font-style:normal;">Let me know whether I \
should fill a bug report.</div><div style="color:rgb(0, 0, \
0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida \
Grande, sans-serif;background-color:transparent;font-style:normal;"><br></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, \
sans-serif;background-color:transparent;font-style:normal;">Best \
regards.</div></div></div></div><br><br></div>  </div> </div>  </div> \
</div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic