SaveFile

This method saves an image with the specified name and file type.

If a file with the specified name already exists, the existing file is replaced. To create and save multi-image files, use the method AppendToMultiImageFile.

The asynchronous saving of files with Mode = CROImgIOAsync is currently not implemented.

Syntax

SaveFile (Filename As String, FileType As CROImgFileTypes, Mode As CROImgIOMode)
Parameter Description

Filename

Specifies the file name for saving the image.

FileType

Specify the image file format.

Possible values

See CROImgFileTypes

The default value is CROcTIF_G4.

Mode

Specifies the I/O mode for loading the file.

With CROImgIOSync, the method waits until loading of the image has finished.

With CROImgIOAsync, the method returns immediately and the image loads in the background.

Use the SaveCompleted method to wait for the load process to complete. As long as the save process runs in the background, the image object is locked against any read access or modification.

The default value is CROImgIOSync.