Initializes a new instance of the ImageOverlay class.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public ImageOverlay(
	string name,
	string path
)
Visual Basic (Declaration)
Public Sub New ( _
	name As String, _
	path As String _
)

Parameters

name
Type: System..::.String

The name of the image overlay.
path
Type: System..::.String

The path to the .PNG file displayed for the image overlay.

Remarks

You may have any number of image overlays in your map. An ImageOverlay is a MapItem and displays in front of any layers, notes and the basemap.

Examples

The code below illustrates how to use this method create a new Image Overlay.
CopyC#
Map map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map;

ImageOverlay imgOverlay = new ImageOverlay("Logo", "C:\\Images\\Logo.png");

//Add the new image overlay to the Map
map.ChildItems.Add(imgOverlay);

//Set the display position and transparency
imgOverlay.DisplayPosition = DisplayPosition.TopLeft;
imgOverlay.Transparency = 40;
CopyVB.NET
Dim map As Map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map

Dim imgOverlay As ImageOverlay = New ImageOverlay("Logo", "C:\Images\Logo.png")

'Add the new image overlay to the Map
map.ChildItems.Add(imgOverlay)

'Set the display position and transparency
imgOverlay.DisplayPosition = DisplayPosition.TopLeft
imgOverlay.Transparency = 40

See Also