Page 1 of 1

How to show images from imagelist in TPointSeries

Posted: Wed Mar 19, 2008 11:01 am
by 10547065
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?

Posted: Wed Mar 19, 2008 11:55 am
by narcis
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.

Posted: Thu Mar 20, 2008 10:48 am
by 10547065
... 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.