I'm trying to draw lines on top of an image and find a peculiar
problem.  The starting point of the line draws where I expect it
to be, but the endpoint always seems to be one pixel short.  For
example, the lines generated by line1 and line2:

Line2D line1 = new Line2D.Float(0.0, 10.0, 0.0, 20.0);
Line2D line2 = new Line2D.Float(0.0, 20.0, 0.0, 10.0);

should be the same, I would think, but the endpoint in each
case is one pixel short of the destination.  It may seem picky,
but for my program the gap between the endpoint and the
destination shows up on the screen.

So, is this a bug or a feature?  Or am I missing something critical?

BTW, this is running on Windows NT, JDK 1.2.2.

Dan

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to