TChart doesn't clip line series if TAntiAliasTool is active

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jarek
Newbie
Newbie
Posts: 5
Joined: Tue Sep 21, 2010 12:00 am
Contact:

TChart doesn't clip line series if TAntiAliasTool is active

Post by Jarek » Thu Mar 10, 2011 11:56 am

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
Attachments
TestChartAA.zip
Test project
(89.92 KiB) Downloaded 483 times
Screenshot.png
Screenshot
Screenshot.png (66.26 KiB) Viewed 7845 times

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Thu Mar 10, 2011 2:54 pm

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Jarek
Newbie
Newbie
Posts: 5
Joined: Tue Sep 21, 2010 12:00 am
Contact:

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

Post by Jarek » Fri Mar 11, 2011 1:31 pm

Hello,

Thank you for your help. Now it works.

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

Regards,

Jarek

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

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

Post by Narcís » Fri Mar 11, 2011 3:01 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Jarek
Newbie
Newbie
Posts: 5
Joined: Tue Sep 21, 2010 12:00 am
Contact:

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

Post by Jarek » Mon Apr 18, 2011 11:12 am

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
Attachments
TeeChartAA-2011.03.png
TeeChartAA-2011.03.png (50.73 KiB) Viewed 7781 times

MagFly
Newbie
Newbie
Posts: 9
Joined: Fri Dec 17, 2010 12:00 am

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

Post by MagFly » Tue Apr 19, 2011 8:06 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

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

Post by Sandra » Tue Apr 19, 2011 8:12 am

Hello Jarek,

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

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply