LoadMultiImageFile

This method loads an image from a multi-image file.

The parameter StartIndex specifies the index of the image in the file.

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

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

Syntax

LoadMultiImageFile (Filename As String, StartIndex As Long, Mode As
				CROImgIOMode)
Parameter Description

Filename

Specifies the file name to load as image.

StartIndex

Specifies the index of the image within the multiimage file which should be loaded.

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 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.