a problem of drawing line [message #173768] |
Mon, 28 March 2005 08:38 |
Eclipse User |
|
|
|
Originally posted by: tranfy.hotmail.com
Hi, all
I draw a line in paintFigure() of my figure that inherited from Figure,
shown as followed:
Rectangle bounds = getBounds().getCopy();
graphics.drawLine(bounds.getTopLeft(),bounds.getBottomRight( ));
I wonder why the line is not straight ,but is curvaceous. It is only
straight when i draw that vertically or horizonally.
Why is the line not straight?
Thanks !
|
|
|
|
Re: a problem of drawing line [message #174080 is a reply to message #174065] |
Tue, 29 March 2005 01:38 |
Eclipse User |
|
|
|
Originally posted by: tranfy.hotmail.com
I am using GEF 3.0.1 , SWT 3.0.1 and win2000 platform. I found that in
gef flow example , the line is not straight when drawing is not horizonal
or vertical.
|
|
|
|
|
|
Re: a problem of drawing line [message #174216 is a reply to message #174170] |
Tue, 29 March 2005 15:38 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
This is a multi-part message in MIME format.
------=_NextPart_000_0078_01C5344B.69F8C5F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
lol
<gresh@us.ibm.com> wrote in message =
news:d2bng5$e93$1@news.eclipse.org...
Are you referring to the "staircase" effect in the lower picture? That =
is aliasing, due to the finite pixels of the display.
------=_NextPart_000_0078_01C5344B.69F8C5F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2604" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>lol</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><<A href=3D"mailto:gresh@us.ibm.com">gresh@us.ibm.com</A>> =
wrote in=20
message <A=20
=
href=3D"news:d2bng5$e93$1@news.eclipse.org">news:d2bng5$e93$1@news.eclips=
e.org</A>...</DIV><BR><FONT=20
face=3Dsans-serif size=3D2>Are you referring to the "staircase" effect =
in the=20
lower picture? That is aliasing, due to the finite pixels of the =
display.=20
</FONT></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0078_01C5344B.69F8C5F0--
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04523 seconds