Loads an image from a file and adds it as a new image layer.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public int LayersCreateFromFile(
	string filename
)
Public Function LayersCreateFromFile ( _
	filename As String _
) As Integer
public:
int LayersCreateFromFile(
	String^ filename
)

Parameters

filename
String
If filename is '' then an open dialog is displayed to allow the user to browse for an image to load for the layer.

Return Value

Returns the index of the new layer, or -1 in case of error.

See Also