ESRI.ArcGIS.ADF.IMS
TransparentColor Property
See Also 
ESRI.ArcGIS.ADF.IMS.Carto Namespace > DataFrame Class : TransparentColor Property




Gets the color that will be rendered as transparent.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property TransparentColor As Color
Visual Basic (Usage)Copy Code
Dim instance As DataFrame
Dim value As Color
 
value = instance.TransparentColor
C# 
public Color TransparentColor {get;}

Remarks

Allows data frames to have a transparency for a designated color, so that if an image is placed below the output image, the image below will be visible at the pixels with the transparent color.

If the output format of the map is GIF or PNG, then this color will be set as the transparent color in the output image. Any pixels with this color will be transparent. Most commonly this is used to make the background of the map transparent. This allows images to be stacked, with images below the top visible through where only the background occurs.

To set the background to be transparent, the TransparentColor and BackColor must be the same color. Use the ArcMap program to set these colors, since these properties are read-only for the map service.

See Also

© 2010 All Rights Reserved.