LoadFile

This method loads an image in synchronous mode.

If the specified file is a multi-image file, the method loads the first image of the file.

The method triggers the ContentChanged event, which causes a SCBCroViewer control to repaint the image.

Note: The asynchronous loading of files with
Mode = CROImgIOAsync
is currently not implemented.

Syntax

LoadFile (Filename As String, Mode As CROImgIOMode)
Parameter Description

Filename

Specifies the filename to load as image.

Mode

Specifies the I/O mode for loading the file.

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

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

The default value is CROImgIOSync.