GetBitmap: IGxBitmap;
The GetBitmap method returns the graphic view of a chart.
To execute this example, there should be a form for a button with the name Button1 and the UiErAnalyzer and ImageBox components with the names UiErAnalyzer1 and ImageBox1 respectively.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Chart: IChart;
Exp: IChartExporter;
Begin
Chart := UiErAnalyzer1.ErAnalyzer.Chart.Chart;
Exp := New ChartExporter.Create;
Exp.Chart := Chart;
ImageBox1.Image := Exp.GetBitmap;
End Sub Button1OnClick;
Clicking the button uploads a graphic presentation of a chart, used in the express report loaded to the UiErAnalyzer1 component, to the ImageBox1 component.
See also: