AntiAlias issue
AntiAlias issue
Hello,
I am using TeeChart 2011.03.30407 and I wish someone to inform me if the following bug is fixed in the latest release.
1. Add a TChart into a form
2. Double click and from the editor add a TLineSeries
3. Go to Tools->Other and add the Anti-Alias tool
4. The line should now miss several segments
Thank you all for your time
Regards
I am using TeeChart 2011.03.30407 and I wish someone to inform me if the following bug is fixed in the latest release.
1. Add a TChart into a form
2. Double click and from the editor add a TLineSeries
3. Go to Tools->Other and add the Anti-Alias tool
4. The line should now miss several segments
Thank you all for your time
Regards
Re: AntiAlias issue
Hi Johnnix,
Was this identified in the past? If so, do you know the ticket we assigned to it or the forum thread where we discussed it? I'm not able to find it.
In case it wasn't discussed in the past, I should be missing some relevant step because I can't reproduce it either with v2011.03 nor with the actual v2012.05. So, could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Was this identified in the past? If so, do you know the ticket we assigned to it or the forum thread where we discussed it? I'm not able to find it.
In case it wasn't discussed in the past, I should be missing some relevant step because I can't reproduce it either with v2011.03 nor with the actual v2012.05. So, could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: AntiAlias issue
Hello,
Please find a sample app that is not working with my version of TChart.
Regards
Please find a sample app that is not working with my version of TChart.
Regards
- Attachments
-
- test.zip
- (2.7 KiB) Downloaded 872 times
Re: AntiAlias issue
Hi Johnnix,
That's what I get with it. I'm not sure to see any "missing segment":
That's what I get with it. I'm not sure to see any "missing segment":
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: AntiAlias issue
Hello Yeray,
I am using Teechart 2011.04.41118 for C++ builder and I come across the same issue described in this post.
With the AntiAlias tool on a graph, all non horizontal lines are invisible.
Example with antialias tool :
And without this tool :
Is it a way to correct this problem ? Do I follow the suggestion you gave in this thread http://www.teechart.net/support/viewtop ... =antialias ?
Thanks in advance and best regards.
Marco
I am using Teechart 2011.04.41118 for C++ builder and I come across the same issue described in this post.
With the AntiAlias tool on a graph, all non horizontal lines are invisible.
Example with antialias tool :
And without this tool :
Is it a way to correct this problem ? Do I follow the suggestion you gave in this thread http://www.teechart.net/support/viewtop ... =antialias ?
Thanks in advance and best regards.
Marco
Re: AntiAlias issue
Hi Marco,
I've been able to reproduce the problem with the v2011.04 and the code below:
However, I can't reproduce it any more with the actual version.
Also, if I use GDIPlus instead of the TAntiAliasTool as you pointed, it seems to work fine in v2011.04.
I've been able to reproduce the problem with the v2011.04 and the code below:
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;
with Chart1.AddSeries(TLineSeries) do
begin
Pen.Width:=2;
Add(0);
Add(100);
Add(100);
Add(0);
end;
Chart1.Axes.Left.SetMinMax(0, 120);
Chart1.Axes.Bottom.SetMinMax(0.25, 2.5);
end;
Also, if I use GDIPlus instead of the TAntiAliasTool as you pointed, it seems to work fine in v2011.04.
Code: Select all
//Chart1.Tools.Add(TAntiAliasTool);
Chart1.Canvas:=TGDIPlusCanvas.Create;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: AntiAlias issue
Hello Yeray,
Is this code also usable with C++ builder ? :
I can't use this "TGDIPlusCanvas" type.
I add but TGDIPlusCanvas is unknown.
Thanks
Is this code also usable with C++ builder ? :
Code: Select all
Chart1.Canvas:=TGDIPlusCanvas.Create;
I add
Code: Select all
#pragma link "TeeGDIPlus"
Thanks
Re: AntiAlias issue
Hi Marco,
Right, that's Delphi code. It shouldn't be difficult to translate Delphi code but if you have problems with it, please tell us what exact IDE are you using and we'll try to check it in a very same environment than yours.
Right, that's Delphi code. It shouldn't be difficult to translate Delphi code but if you have problems with it, please tell us what exact IDE are you using and we'll try to check it in a very same environment than yours.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: AntiAlias issue
Hi Yeray,
I would like to use this code with Borland C++ Builder XE, with teechart v2011.04.
Thanks in advance
I would like to use this code with Borland C++ Builder XE, with teechart v2011.04.
Thanks in advance
Re: AntiAlias issue
Hi Marco,
the following code works fine for me here in XE both with TeeChart v2011.04 and the actual v2012.07:
I just had to add the TeeGDIPlus header in the .h:
the following code works fine for me here in XE both with TeeChart v2011.04 and the actual v2012.07:
Code: Select all
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Chart1->View3D=false;
Chart1->Legend->Visible=false;
Chart1->Canvas=new TGDIPlusCanvas();
TLineSeries *line1 = new TLineSeries(this);
Chart1->AddSeries(line1);
line1->Pen->Width=2;
line1->Add(0);
line1->Add(100);
line1->Add(100);
line1->Add(0);
Chart1->Axes->Left->SetMinMax(0, 120);
Chart1->Axes->Bottom->SetMinMax(0.25, 2.5);
}
Code: Select all
#include "Chart.hpp"
#include "TeEngine.hpp"
#include "TeeProcs.hpp"
#include "Series.hpp"
#include "TeeGDIPlus.hpp"
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: AntiAlias issue
It works for me. Thank you !
The final rendering is different that with antialias tool but not so bad.
The final rendering is different that with antialias tool but not so bad.
Re: AntiAlias issue
Hi Chacal,
If you prefer the TAntialiasTool, the only way I see for you is to update to the current version.
If you prefer the TAntialiasTool, the only way I see for you is to update to the current version.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |