Page 1 of 1

Number of Colors in Chart

Posted: Thu May 20, 2010 1:53 am
by 10548297
I am developing an application where endusers can create their own charts. They have control over colors and if gradients are used. The charts are then exported to either jpeg or gif for use on websites. Is there a way to determine how many colors are contained within a chart? if I know there is less than 256 the export format would be gif, but more than 256 then I could use jpeg.

Thanks.

Re: Number of Colors in Chart

Posted: Fri May 21, 2010 7:34 am
by yeray
Hi mSchenkel,

I'm afraid TeeChart hasn't functions to do this so you should do it manually. But you shouldn't find troubles finding examples in the net:
http://www.efg2.com/Lab/Library/Delphi/ ... Colors.TXT

Re: Number of Colors in Chart

Posted: Mon May 24, 2010 12:36 am
by 10548297
Thank you very much. I will give this a try.