Lines in Figure objects are not straight lines but having jerks [message #649255] |
Tue, 18 January 2011 12:10 |
Deepak Singla Messages: 27 Registered: December 2009 |
Junior Member |
|
|
Hi All,
I am trying to create the a figure having diamond shape. but when I try to create the figure with the help of draw2d, the figure is created but lines (diagonal ) lines are not exact straight lines. it has lot of jerks (zig zag style). but if draw a staright line, it coming gud.
can you please help me what to use so that I can get staright line while creating the figure like diamond etc having diagonal lines.
Any help would be appericiated.
Thanks,
Deepak Singla
[Updated on: Tue, 18 January 2011 12:12] Report message to a moderator
|
|
|
Re: Lines in Figure objects are not straight lines having jerks [message #650856 is a reply to message #649255] |
Wed, 26 January 2011 21:55 |
Eclipse User |
|
|
|
Originally posted by: tmicko.gmail.com
try to turn on antialiasing on graphics object, with which you are
drawing diamond figure.
see Graphics.setAntialias(SWT.ON);
Dňa 18. 1. 2011 13:10, Deepak Singla wrote / napísal(a):
> Hi All,
>
> I am trying to create the a figure having diamond shape. but when I try
> to create the figure with the help of draw2d, the figure is created but
> lines (diagonal ) lines are not exact straight lines. it has lot of
> jerk. but if draw a staright line, it coming gud.
>
> can you please help me what to use so that i can get staright line while
> creating the figure like diamond etc having diagonal lines.
>
> Any help would be appericiated.
>
> Thanks,
> Deepak Singla
|
|
|
Powered by
FUDForum. Page generated in 0.03115 seconds