GxImage: SaveImage

SaveImage

This method saves the image to a file.



 Public Function SaveImage(
	  ByVal filename As String,
	  ByVal filetype As enumFileFormat ) As Long

Parameters

filename
The name of image file to save. In the safe mode the filename has to be the name of a new file.
filetype
The file type.

Return Values

On error false (0) is returned and the error code/string in the GX system is set appropriately.

Languages

[Visual Basic] Public Function SaveImage(ByVal filename As String, ByVal filetype As enumFileFormat) As Long

[Delphi] function SaveImage(const filename : WideString; filetype : TOleEnum) : Integer;

[C++] long SaveImage(LPCTSTR filename, enumFileFormat filetype);

Remarks

See Also

Class GxImage Overview GxImage Properties GxImage Methods Saturation SaveQuality