ImageDrawStyle: ChartImageDrawStyle;
The ImageDrawStyle property determines an image position in the area to be filled.
This example assumes that there is the Chart object of the IChart type. The fill type must be determined as Picture.
Sub Image;
Var
Chart: IChart;
d : IGxImage;
Begin
Chart.ChartArea.BackgroundInfo.Type := ChartBackGroundType.Picture;
d := New GxImage.CreateFromFile("c:\1.jpg");
Chart.ChartArea.BackgroundInfo.Image := d;
Chart.ChartArea.BackgroundInfo.ImageDrawStyle := 6 As ChartImageDrawStyle;
End Sub Image;
After executing the example the image is stretched to cover the whole chart area.
See also: