[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] transform seems to work also on linewidth? (on linux)
|
Hello,
I played around with the transform functionallity of swt.
I used the following matrix:
1(m11) 0(m12) 20(dx)
0(m21) -(1/500)(m22) 250/500(dy)
So the x values are scaled in pixel and the y-Values are scaled by
y[Pixel]= y[value]/(-500)+250/500
This works quite fine, but when I set the linewidth using
gc.setLineWidth(1) it seems, that this value is also transformed. When I
draw a vertiacal line it is fine and when I draw a horizontal line it
can almost not seen.
When I set gc.setLineWidth(500), the width of a horizontal line is
exactly 1 pixel, but the width of the vertical line is 500 pixel.
I am using linux (ubuntu 7.04, Festy Fawn) Eclipse 3.2.1 and GTK. Is it
on Windows different?
Does anybody have experience or an idea?
Regards
Gerhard