Re: [OpenJDK 2D-Dev] Displacement by one pixel if using setStroke

2009-10-07 Thread Roman Kennke
Hi Christoph, I have filed bug #6889147, it should appear shortly on bugs.sun.com. This seems to be another problem in the Pisces renderer. It seems to be valid both for OpenJDK6 and 7. I try to have a look as soon as I find time. Thanks, Roman Am Dienstag, den 06.10.2009, 12:31 +0200 schrieb

Re: [OpenJDK 2D-Dev] Displacement by one pixel if using setStroke

2009-10-06 Thread Roman Kennke
Hi Christoph, > When using setStroke, the pixel is displaced by one position > I guess that it is a numeric rounding error in 2d. Do you see that problem in OpenJDK6 or7 or both? I will file a bug report ASAP and work on fixing the problem. Thanks, Roman

[OpenJDK 2D-Dev] Displacement by one pixel if using setStroke

2009-10-06 Thread Dr. Christoph Gille
When using setStroke, the pixel is displaced by one position I guess that it is a numeric rounding error in 2d. The following program demonstrates the error and shows my workaround: g.translate(0.001,0.001); import java.awt.*; import javax.swing.*; /** You should see a dashed black-red rect