Image.saveImage Method

Definition

Overloads

saveImage(String)

Saves the image to the specified file name.

saveImage(String, ImageSaveType)

saveImage(String)

Saves the image to the specified file name.

public:
 virtual int saveImage(System::String ^ text1);
public virtual int saveImage (string text1);
abstract member saveImage : string -> int
override this.saveImage : string -> int
Public Overridable Function saveImage (text1 As String) As Integer

Parameters

text1
String

Returns

0 if the method was successful.

Remarks

The possible values for the Type parameter are those available in the ImageSaveType system enum. For example, you could save test.bmp as a .jpg file.

0 Use_Extension
1 BMP
2 GIF
3 JPG
4 PNG
5 TIFF
6 BMP_UNCOMP
7 TIF_UNCOMP

The following example captures part of the screen to a file, and then loads that image.

Image img = new Image(); 
img.captureScreen(0, 0, 100, 100); 
img.saveImage(@'C:\test.bmp'); 
img.loadFile(@'C:\test.bmp');

Applies to

saveImage(String, ImageSaveType)

public:
 virtual int saveImage(System::String ^ _fileName, Dynamics::AX::Application::ImageSaveType _Type);
public virtual int saveImage (string _fileName, Dynamics.AX.Application.ImageSaveType _Type);
abstract member saveImage : string * Dynamics.AX.Application.ImageSaveType -> int
override this.saveImage : string * Dynamics.AX.Application.ImageSaveType -> int
Public Overridable Function saveImage (_fileName As String, _Type As ImageSaveType) As Integer

Parameters

_fileName
String

An ImageSaveType that enables you to specify that the file should be saved as a different format from that specified by the file extension; optional.

_Type
ImageSaveType

An ImageSaveType that enables you to specify that the file should be saved as a different format from that specified by the file extension; optional.

Returns

Applies to