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

2010-07-15 Thread Denis Lila
t;>>>>> didn't > >>>>>>>> implement it because I thought the point was to get rid of > the > >>>>>>> sampling > >>>>>>>> at this stage. However, if performance is the issue, then I > >>>> guess > >>

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

2010-07-13 Thread Jim Graham
uick way of computing, for each scan line, all its intersections with however many Bezier curves are being drawn. I haven't given much thought to how this could be done, as I am not very familiar with Bezier curves, but it doesn't seem easy enough to justify fixing such a small

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

2010-07-13 Thread Jim Graham
how it does this). In order to implement Bezier curves in Renderer, we would have to have a quick way of computing, for each scan line, all its intersections with however many Bezier curves are being drawn. I haven't given much thought to how this could be done, as I am not very famil

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

2010-07-13 Thread Jim Graham
es in Renderer, we would have to have a quick way of computing, for each scan line, all its intersections with however many Bezier curves are being drawn. I haven't given much thought to how this could be done, as I am not very familiar with Bezier curves, but it doesn't seem ea

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

2010-07-13 Thread Jim Graham
however many Bezier curves are being drawn. I haven't given much thought to how this could be done, as I am not very familiar with Bezier curves, but it doesn't seem easy enough to justify fixing such a small bug. - Original Message - From: "Jim Graham" To

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

2010-07-12 Thread Denis Lila
ions > >>>>> than the round-cap code since it would have to be written for > >>>>> arbitrary > >>>>> beziers whereas if you know it is a quarter circle then it is > >>> easier > >>>>> to > >>>>> know how far to su

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

2010-07-12 Thread Denis Lila
> >>>>>> bezier. > >>>>>> > >>>>>> So, perhaps it would be worth having it check the type of the > >>>> output > >>>>>> and > >>>>>> do either a bezier or a bunch of lines depending on if i

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

2010-07-09 Thread Jim Graham
, for each scan line, all its intersections with however many Bezier curves are being drawn. I haven't given much thought to how this could be done, as I am not very familiar with Bezier curves, but it doesn't seem easy enough to justify fixing such a small bug. - Original Message

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

2010-07-09 Thread Jim Graham
familiar with Bezier curves, but it doesn't seem easy enough to justify fixing such a small bug. - Original Message - From: "Jim Graham" To: "Denis Lila" Cc: 2d-dev@openjdk.java.net Sent: Wednesday, June 9, 2010 7:42:33 PM GMT -05:00 US/Canada Eastern Subj

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

2010-07-09 Thread Jim Graham
one, as I am not very familiar with Bezier curves, but it doesn't seem easy enough to justify fixing such a small bug. ----- Original Message - From: "Jim Graham" To: "Denis Lila" Cc: 2d-dev@openjdk.java.net Sent: Wednesday, June 9, 2010 7:42:33 PM GMT -05:00 US

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

2010-07-09 Thread Denis Lila
;> 1. As an implementation of BasicStroke's createStrokedShape > > method. > > >> This > > >>> uses a Path2D object as output. > > >>> 2. As a way of feeding a PathConsumer2D without calling > > >> createStrokedShape > >

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

2010-07-07 Thread Jim Graham
how this could be done, as I am not very familiar with Bezier curves, but it doesn't seem easy enough to justify fixing such a small bug. - Original Message ----- From: "Jim Graham" To: "Denis Lila" Cc: 2d-dev@openjdk.java.net Sent: Wednesday, June 9, 2010 7:42:

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

2010-07-07 Thread Jim Graham
with however many Bezier curves are being drawn. I haven't given much thought to how this could be done, as I am not very familiar with Bezier curves, but it doesn't seem easy enough to justify fixing such a small bug. ----- Original Message - From: "Jim Graham" To:

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

2010-07-02 Thread Denis Lila
> >> Renderer. > >>> 1 and 2 aren't problems, because the underlying output objects > >> support > >>> Bezier curves. 3, however, doesn't, and it seems like implementing > a > >>> curveTo method for Renderer would be very difficult bec

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

2010-06-22 Thread Denis Lila
ses a PathConsumer2D > > >> output. > > >>> 3. As a way of feeding lines to a Renderer object, which > > generates > > >> alpha > > >>> tiles used for anti-aliasing that are fed to a cache and > > extracted > > >> as needed > &g

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

2010-06-22 Thread Denis Lila
gt;> curveTo method for Renderer would be very difficult because the > way > >> it > >>> generates alpha tiles is by scanning the drawn edges with > >> horizontal > >>> scan lines, and for each scan line finding the x-intersections of > >>

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

2010-06-21 Thread Jim Graham
Lila" Cc: 2d-dev@openjdk.java.net Sent: Wednesday, June 9, 2010 7:42:33 PM GMT -05:00 US/Canada Eastern Subject: Re: [OpenJDK 2D-Dev] Fix for drawing round endcaps on scaled lines. I don't understand - why do we generate sample points based on the size of the cap? Why not generate

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

2010-06-21 Thread Denis Lila
f computing, for each scan line, all its intersections > with > > however many Bezier curves are being drawn. > > > > I haven't given much thought to how this could be done, as I am not > very > > familiar with Bezier curves, but it doesn't seem easy enough to

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

2010-06-18 Thread Jim Graham
" Cc: 2d-dev@openjdk.java.net Sent: Wednesday, June 9, 2010 7:42:33 PM GMT -05:00 US/Canada Eastern Subject: Re: [OpenJDK 2D-Dev] Fix for drawing round endcaps on scaled lines. I don't understand - why do we generate sample points based on the size of the cap

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

2010-06-17 Thread Denis Lila
dev@openjdk.java.net Sent: Wednesday, June 9, 2010 7:42:33 PM GMT -05:00 US/Canada Eastern Subject: Re: [OpenJDK 2D-Dev] Fix for drawing round endcaps on scaled lines. I don't understand - why do we generate sample points based on the size of the cap? Why not gene

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

2010-06-09 Thread Jim Graham
I don't understand - why do we generate sample points based on the size of the cap? Why not generate a pair of bezier quarter-circles and let the rasterizer deal with sampling? ...jim Denis Lila wrote: Hello. I think I have a fix for this bug: http://icedtea.classpat

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

2010-06-09 Thread Denis Lila
Hello. I think I have a fix for this bug: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=506 Basically, the problem is that if there is a magnifying affine transformation set on the graphics object and one tries to draw a line with small thickness and round end caps, the end caps appear