Lists the images available for points and shapes in the chart. ImageList is a list of bitmaps that can be displayed for any point in the chart. A point ( RSCharts.TRS2DImageChartValue item) is associated with an image from this image list by its ImageIndex property. This image will only appear for the point if the ImageIndex is valid for the list and the
PointsInfo.Style is ssImage
Namespace: RSCharts
Delphi
|
published
property ImageList: TImageList read FImageList write SetImageList;
|
Property Value
Type: TImageList
The following code sets up a TRSPointChart to display images as the points and creates a couple of points:
Delphi
|
var
Value: TRS2DImageChartValue; // note, this type should be the same that the chart uses (e.g., TRS2DChartValue, TRSArrowChartValue, etc)
begin
RSPointChart1.ImageList := ImageList1;
RSPointChart1.PointsInfo.Height := ImageList1.Height;
RSPointChart1.PointsInfo.Width := ImageList1.Width;
RSPointChart1.PointsInfo.Style := ssImage;
RSPointChart1.PointsInfo.DefaultStyle := ssRectangle;
// Add first point
Value := RSPointChart1.Values.Add;
Value.Color := clRed;
Value.X := 10.0;
Value.Y := 15.0;
Value.ImageIndex := 0;
// Add second point
Value := RSPointChart1.Values.Add;
Value.Color := clBlue;
Value.X := -40.0;
Value.Y := 25.0;
Value.ImageIndex := 1;
end;
|