Page 1 of 1

TChart doesn't clip line series if TAntiAliasTool is active

Posted: Thu Mar 10, 2011 11:56 am
by 16557284
Hi,

After upgrading from TeeChart 7 to TeeChart 2010 I tried to use tool TAntiAliasTool. Unfortunately TChart doesn't clip line series if TAntiAliasTool is active. Is it a bug or some TChart properties should be set to enable clipping?

Regards,

Jarek

Re: TChart doesn't clip line series if TAntiAliasTool is active

Posted: Thu Mar 10, 2011 2:54 pm
by yeray
Hi Jarek,

This is a known problem already in the defect list to be fixed in future releases (TV52015427).
However, with GDI+ clips the points correctly in the chart rect.

Code: Select all

uses Series, TeeAntiAlias, TeeGDIPlus;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;

  //Chart1.Tools.Add(TAntiAliasTool); 
  Chart1.Canvas:=TGDIPlusCanvas.Create;

  Chart1.AddSeries(TFastLineSeries).FillSampleValues;

  Chart1.ClipPoints:=true;
end;

Re: TChart doesn't clip line series if TAntiAliasTool is active

Posted: Fri Mar 11, 2011 1:31 pm
by 16557284
Hello,

Thank you for your help. Now it works.

Where can I find defect list to be fixed in future releases?

Regards,

Jarek

Re: TChart doesn't clip line series if TAntiAliasTool is active

Posted: Fri Mar 11, 2011 3:01 pm
by narcis
Hi Jarek,

The list is not public but you can subscribe to: this forum, our RSS news feed, Steema Software's twitter or facebook acounts for new release announcements and what's implemented on them.

Re: TChart doesn't clip line series if TAntiAliasTool is active

Posted: Mon Apr 18, 2011 11:12 am
by 16557284
I've installed TeeChart 2011.03 and tested bugfix:

16) [TV52015427]
TAntiAliasTool not clipping series points correclty. Fixed.

As you can see in an attached screenshot, almost all lines connecting points aren't drawn at all. Line connecting two clipped points is not clipped.

Jarek

Re: TChart doesn't clip line series if TAntiAliasTool is active

Posted: Tue Apr 19, 2011 8:06 am
by 16558153
With the latest release, TeeChart v2011.03.30407, I also get this error on line series when the pen width is 2 pixels.
If I change to 1 or 3 pixels for the lines pen, it renders ok.

It worked in the release 2010.02.20202.

Re: TChart doesn't clip line series if TAntiAliasTool is active

Posted: Tue Apr 19, 2011 8:12 am
by 10050769
Hello Jarek,

You are right. I inform you we are working with this bug to fix the problem as soon as possible.

Thanks,