ArcGIS Explorer Component Help |
ImageOverlay Constructor (String, Bitmap) |
ImageOverlay Class Example See Also |
Initializes a new instance of the ImageOverlay class.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public ImageOverlay( string name, Bitmap bitmap ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ name As String, _ bitmap As Bitmap _ ) |
Parameters
- name
- Type: System..::.String
The name of the image overlay.
- bitmap
- Type: System.Drawing..::.Bitmap
The Bitmap 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 myMap = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map; Bitmap bmp = new Bitmap("C:\\Images\\Logo.bmp"); ImageOverlay imgOverlay = new ImageOverlay("Logo", bmp); //Add the new image overlay to the Map myMap.ChildItems.Add(imgOverlay); //Set the display position and transparency imgOverlay.DisplayPosition = DisplayPosition.TopLeft; imgOverlay.Transparency = 40;
CopyVB.NET
Dim myMap As Map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map Dim bmp As Bitmap = New Bitmap("C:\Images\Logo.bmp") Dim imgOverlay As ImageOverlay = New ImageOverlay("Logo", bmp) 'Add the new image overlay to the Map myMap.ChildItems.Add(imgOverlay) 'Set the display position and transparency imgOverlay.DisplayPosition = DisplayPosition.TopLeft imgOverlay.Transparency = 40