Hi Dan,

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

    This is standard behavior in 2D and AWT ( and anything else in Java
Graphics as far as I know. )  It's called "the way it is."  ;-)  Take a look
at the Graphics and Graphics2D API documentation.  The behavior of outlines,
fills and lines can be surprising.  Also look at Graphics.drawline() and
note "Draws a line, using the current color, BETWEEN the points (x1, y1) and
(x2, y2) in this graphics context's coordinate system."  This behavior
should be the same on all platforms.


                                                            Joe Sam


Joe Sam Shirah
Autumn Software
What you don't know DOES hurt you...and your business
___________________________________________

-----Original Message-----
From: Dan Blanks <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, December 10, 1999 12:54 AM
Subject: [JAVA2D] Line2D question


>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