How to show images from imagelist in TPointSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
PascalKlaus
Newbie
Newbie
Posts: 7
Joined: Thu Oct 18, 2007 12:00 am

How to show images from imagelist in TPointSeries

Post by PascalKlaus » Wed Mar 19, 2008 11:01 am

I have some types of points to show in a TPointSeries on a time axes. Is there a way to show the points instead of rectangle or diamond (always the same for every point) with a different small image from a imagelist for everey type?

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

Post by Narcís » Wed Mar 19, 2008 11:55 am

Hi PascalKlaus,

Yes, you can use TImagePointSeries for that. You'll find an example at All Features\Welcome!\Chart Styles\Other\Image Point in the new features demo, available at TeeChart's program group.
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

PascalKlaus
Newbie
Newbie
Posts: 7
Joined: Thu Oct 18, 2007 12:00 am

Post by PascalKlaus » Thu Mar 20, 2008 10:48 am

... and with the series event GetImage I can show different images:

Code: Select all

procedure TForm1.Series1GetImage(Sender: TCustomImagePointSeries;
  ValueIndex: Integer; Picture: TPicture);
begin
  ImageList1.GetBitmap(ValueIndex,Picture.Bitmap)
end;
Thats it! Thank you.

Post Reply