SaveImageToFile(FileName: String; Width: Double; Height: Double; Dpi: Double);
SaveImageToFile(FileName: String; Width: Double; Height: Double; Dpi: Double);
FileName. File name, extension and path.
Width. Width of the bubble chart image in pixels.
Height. Height of the bubble chart image in pixels.
Dpi. Image resolution, pixels per inch.
The SaveImageToFile method saves a bubble chart image to a file.
The format, to which the method saves an image, depends on the file extension. Specify .JPG, .BMP, .PNG, or .GIF as the format.
Executing the example requires an express report with the EXPRESS_REPORT identifier. The express report is set up to ensure bubble chart displaying and operation.
Sub UserProc;
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
Bubble: IBubbleChart;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
Bubble.TimeLine.CurrentStep := 3;
Bubble.SaveImageToFile("c:\Matrix_Step3.jpg", 800, 600, 96);
End Sub UserProc;
After executing the example the bubble chart image created at a specified time point is saved to a file.
Executing the example requires an express report with the EXPRESS_REPORT identifier. The express report is set up to ensure bubble chart displaying and operation. The specified procedure is an entry point for a .NET assembly.
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
Bubble: IBubbleChart;
Begin
MB := Params.Metabase;
Eax := MB.ItemById["EXPRESS_REPORT"].Bind() As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
Bubble.TimeLine.CurrentStep := 3;
Bubble.SaveImageToFile("c:\Matrix_Step3.jpg", 800, 600, 96);
End Sub;
After executing the example the bubble chart image created at a specified time point is saved to a file.
See also: