Number of Colors in Chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mSchenkel
Newbie
Newbie
Posts: 8
Joined: Fri Feb 08, 2008 12:00 am

Number of Colors in Chart

Post by mSchenkel » Thu May 20, 2010 1:53 am

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.

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

Re: Number of Colors in Chart

Post by Yeray » Fri May 21, 2010 7:34 am

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
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

mSchenkel
Newbie
Newbie
Posts: 8
Joined: Fri Feb 08, 2008 12:00 am

Re: Number of Colors in Chart

Post by mSchenkel » Mon May 24, 2010 12:36 am

Thank you very much. I will give this a try.

Post Reply