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
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