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