[OpenJDK 2D-Dev] Antialiased horizontal or vertical lines.

2010-06-18 Thread Denis Lila
Hello. I noticed that anti aliased horizontal and vertical lines are not drawn properly. I've described the results (with pictures) here: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=509 In the patch, I try shifting line coordinates by half a pixel as soon as they're passed into

Re: [OpenJDK 2D-Dev] [OpenJDK Rasterizer] Antialiased horizontal or vertical lines.

2010-06-18 Thread Jim Graham
The Ductus pipeline will do the same thing with STROKE_PURE. It sounds like maybe the Pisces pipeline doesn't support STROKE_NORMALIZE yet? ...jim Denis Lila wrote: Hello. I noticed that anti aliased horizontal and vertical lines are not drawn properly. I've

Re: [OpenJDK 2D-Dev] Fix for uniformly scaled dashed lines.

2010-06-18 Thread Jim Graham
Hi Denis, Here are my thoughts on it: - Lines are affinely transformed into lines. The slope may be different before and after the transform, but both have a single slope. - The ratio of a line length to its transformed line length is a scale factor that depends solely on the angle of the

Re: [OpenJDK 2D-Dev] Fix for drawing round endcaps on scaled lines.

2010-06-18 Thread Jim Graham
Sigh - that makes sense. One issue is that the resulting paths it generates are much more verbose than they need to be. This would generally mean that it takes far more storage than it would otherwise need - and it means that if the result needs to be transformed then it would take many more