Initializes a new RasterLayer object and connects the layer to a raster file.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public static RasterLayer OpenRasterFile(
	string path
)
Visual Basic (Declaration)
Public Shared Function OpenRasterFile ( _
	path As String _
) As RasterLayer

Parameters

path
Type: System..::.String

The path to an image file.

Return Value

A RasterLayer object connected to the specified image file.

Remarks

Use this method to both instantiate a RasterLayer and connect the layer to an image file. In contrast to the Connect method, an exception will be thrown if the specified path is incorrect.

See Also