ArcGIS Explorer Component Help |
ImageOverlay..::.Transparency Property |
ImageOverlay Class Example See Also |
Gets or sets the transparency of the image overlay, from 0 to 100.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public int Transparency { get; set; } |
Visual Basic (Declaration) |
---|
Public Property Transparency As Integer |
Field Value
An integer that represents the transparency.Remarks
The Transparency property enables you to set the image overlay to be transparent.
The valid values range from 0 to 100 where 0 is completely opaque and 100 is completely transparent.
Examples
The code below illustrates how to use this method to set the image overlay transparency.
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