IBubbleChart.SaveImageToFile

Fore Syntax

SaveImageToFile(FileName: String; Width: Double; Height: Double; Dpi: Double);

Fore.NET Syntax

SaveImageToFile(FileName: String; Width: Double; Height: Double; Dpi: Double);

Parameters

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.

Description

The SaveImageToFile method saves a bubble chart image to a file.

Comments

The format to which the method saves an image, depends on the file extension. Specify .JPG, .BMP, .PNG, or .GIF as the format.

Fore Example

Executing this example requires an express report with the EXPRESS_REPORT identifier. The express report is configured 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"80060096);
End Sub UserProc;

After executing the example the bubble chart image created at a specified time point is saved to a file.

Fore.NET Example

Executing this example requires an express report with the EXPRESS_REPORT identifier. The express report is configured to ensure bubble chart displaying and operation. This 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"80060096);
End Sub;

After executing the example the bubble chart image created at a specified time point is saved to a file.

See also:

IBubbleChart