Status: New
Owner: ----
New issue 188 by berthold...@bdaum.de: wrong line width when drawing
general shapes under SWT
http://code.google.com/p/piccolo2d/issues/detail?id=188
What steps will reproduce the problem?
1.Define a PSWTPath with a polyline
2.Enlarge the scaling by a large scaling factor
3.
The line becomes too fat when the drawing is enlarged. Setting the
linewidth to the SWT graphic context in SWTGraphics2D before drawing fixes
the problem (bd3):
public void drawPath(final Path p) {
gc.setLineWidth((int) (lineWidth + 0.5)); // bd3
gc.setTransform(swtTransform);
gc.drawPath(p);
gc.setTransform(null);
}
What version of the product are you using?
1.3
--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en