GetBitmap: IGxBitmap;
The GetBitmap method returns graphic view of a chart.
Executing the example requires 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 loads a graphic view of the chart, used in the express report loaded to the UiErAnalyzer1 component, to the ImageBox1 component.
See also: