TeeCanvas3d + Antialias drawing LineSeries dualcolor
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi,
I don't think that you have compiled your version with global project define: TEEANTIALIAS (because in picture you have two pixels width horizontal line).
So your version uses actually GDI+ library to draw that antialias version.
When TeeChart sources are compiled with TEEANTIALIAS define it still draws non horizontal lines in wrong color.
Janne
I don't think that you have compiled your version with global project define: TEEANTIALIAS (because in picture you have two pixels width horizontal line).
So your version uses actually GDI+ library to draw that antialias version.
When TeeChart sources are compiled with TEEANTIALIAS define it still draws non horizontal lines in wrong color.
Janne
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi Janne,
We're studying the problem and we'll be back here asap.
We're studying the problem and we'll be back here asap.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hello Janne,
I'll send a beta version of the TeeChart sources to the mail account you have registered in this forum so you can test this.
Now, adding the TEEANTIALIAS define, we get this: Note the color isn't perfect. This is because our AntiAlias is doing a blending with the background and it gives blue-greyed line.
I'll send a beta version of the TeeChart sources to the mail account you have registered in this forum so you can test this.
Now, adding the TEEANTIALIAS define, we get this: Note the color isn't perfect. This is because our AntiAlias is doing a blending with the background and it gives blue-greyed line.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi,
it is better now, but when data is dense and lines overlaps each other it still looks bad.
Can it be fixed like it was in older versions.
Dense data Data that does not overlap lines is better (actually this kind of data/drawing GDI+ is good) Thanks,
Janne
it is better now, but when data is dense and lines overlaps each other it still looks bad.
Can it be fixed like it was in older versions.
Dense data Data that does not overlap lines is better (actually this kind of data/drawing GDI+ is good) Thanks,
Janne
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi Janne,
It doesn't look so bad for me only changing the color and the number of values.
Isn't this what you get with the example some posts above and the following changes?
On the other hand, having so many overlapping points makes the chart difficult to read. You may be interested on setting the TFastLineSeries DrawAllPoints property to false or reducing the number of points with the TDownSamplingFunction.
It doesn't look so bad for me only changing the color and the number of values.
Isn't this what you get with the example some posts above and the following changes?
Code: Select all
with Chart1.AddSeries(TFastLineSeries) as TFastLineSeries do
begin
Color:=clRed;
//AddArray([10,10,12,1,15,13,13]);
FillSampleValues(100000);
BeforeDrawValues:=SeriesBeforeDrawValues;
AfterDrawValues:=SeriesAfterDrawValues;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi,
it looks same as your sample.
I am drawing process data values and user can choose freely resolution, so it can contain a lot of values (and I don't want to reduce visible points programmatically, eq. DrawAllPoints:=false; if user have choosen to see accurate data).
Why is it not possible to get old Antialias drawing back, this does not look good (I'm using now GDI drawing with these new versions but old Antialias was much nicer looking).
This is not acceptable Thanks,
Janne
it looks same as your sample.
I am drawing process data values and user can choose freely resolution, so it can contain a lot of values (and I don't want to reduce visible points programmatically, eq. DrawAllPoints:=false; if user have choosen to see accurate data).
Why is it not possible to get old Antialias drawing back, this does not look good (I'm using now GDI drawing with these new versions but old Antialias was much nicer looking).
This is not acceptable Thanks,
Janne
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi,
any news on this issue?
Janne
any news on this issue?
Janne
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi Janne,
I'm sorry for the late reply here. We're studying what changed and what's the best way to go we can suggest you.
I'm sorry for the late reply here. We're studying what changed and what's the best way to go we can suggest you.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi Janne,
Since the fix is simple and you are a source code customer, we can tell you the changes to apply. At TeeAntiAlias.pas you'll find the BlendColor (in your case it may be BlendColor1):
At the beginning of this function you'll find this:
Modify the above for this:
We've just corrected it.Yeray wrote:I'm sorry for the late reply here. We're studying what changed and what's the best way to go we can suggest you.
Since the fix is simple and you are a source code customer, we can tell you the changes to apply. At TeeAntiAlias.pas you'll find the BlendColor (in your case it may be BlendColor1):
Code: Select all
procedure TAntiAliasCanvas.BlendColor(const AX,AY:Integer; const Dist:Single);
Code: Select all
if IFilter.RGBA then
{$R-}
with IFilter.LinesRGBA[AY,AX] do
{$IFDEF WASRANGE}
{$R+}
{$ENDIF}
begin
// BGR
Red:=Round(Dist*(Red-r)) + r;
Green:=Round(Dist*(Green-g))+ g;
Blue:=Round(Dist*(Blue-b)) + b;
end
Code: Select all
if IFilter.RGBA then
{$R-}
with IFilter.LinesRGBA[AY,AX] do
{$IFDEF WASRANGE}
{$R+}
{$ENDIF}
begin
// BGR
Red:=Round(Dist*(Red-b)) + b;
Green:=Round(Dist*(Green-g))+ g;
Blue:=Round(Dist*(Blue-r)) + r;
end
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: TeeCanvas3d + Antialias drawing LineSeries dualcolor
Hi,
great, now it works fine, thanks!
Janne
great, now it works fine, thanks!
Janne