FastLine and anti alias

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

FastLine and anti alias

Post by JohnS » Thu Aug 29, 2013 6:21 am

Dear all,

Some years ago we used TChart Pro in combination with Delphi 2006 (VCL).
Even though TChart has bugs here and there we decided to go for it again,
as the Steema support team helped us out of the most critical issues.

Now we are using TChart .net version TeeChartNET2013_4.1.2013.07300 with Visual Studio 2012 and C#.
More questions will be posted the next couple of days, and here comes the first:

Drawing curves with FastLine and a LinePen.Width of 2 pixel it appears that some kind of anti alias
is used to draw the line.
On the enclosed screen dump this effect can be seen (magnified).
How can this be turned off, so the line will simply go up and down pixel-wise?

Thanks in advance!
Attachments
Anti alias.jpg
Anti alias.jpg (48.63 KiB) Viewed 3486 times

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: FastLine and anti alias

Post by JohnS » Thu Aug 29, 2013 7:09 am

I found the answer myself in the meanwhile :-)

tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;

Post Reply