Problems with TSurfaceSeries and GetColor

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TU-ITR
Newbie
Newbie
Posts: 1
Joined: Tue Jun 21, 2005 4:00 am
Contact:

Problems with TSurfaceSeries and GetColor

Post by TU-ITR » Thu Nov 23, 2006 8:58 pm

Hi!

I have a problem with "wrong/bad" colors in tSurfaceSeries.

I Use tSurfaceSeries.getColor to get a Color for each point of the graph.

The procedure is very simple:

Code: Select all

procedure TFGraph3D.Series1GetColor(Sender: TChartSeries;   ValueIndex: Integer; var Color: TColor);
begin
  color:=UseColorFkt(cMin,cMax,Series1.YValue[ValueIndex]);
end;
(UseColorFkt just returns a value/color in dependency of the input-value)

Lets start with 1st picture:
Image

As you see the left and right sides (100% identical data) have not the
same colors! I think thats the problem of GetColor and using just 1 point
(Series1.YValue[ValueIndex]) in that function. But how to make it look okay?


2nd problem:
Image

Here you see that hard changes in color.
What is wanted here is a smooth color that just depends of the height!


Of course i could "solve" that problems by inserting many pseudo-points -
but that costs memory and MUCH time when rendering. So just Adding
new points is not a real solution.

Better ideas?
(Idea ???: A perfect solution could ask me for every pixel for its color)

Thanks,
Steffen Strueber

PS: TeeChart Pro 7.06

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

Post by Narcís » Fri Nov 24, 2006 8:35 am

Hi Steffen,

Could you please send us a simple example we can run "as-is" to reproduce those issues here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.

BTW: Also notice that TeeChart Pro v7.07 is available at the client area as well.
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

Post Reply