This document is archived and information here might be outdated.  Recommended version.


IMapDescription2.TransparentColor Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDescription2 Interface > IMapDescription2.TransparentColor Property
ArcGIS Developer Help

IMapDescription2.TransparentColor Property

The color that is transparent (100 %).

[Visual Basic .NET]
Public Property TransparentColor As IColor
[C#]
public IColor TransparentColor {get; set;}
[C++]
HRESULT get_TransparentColor(
  IColor** Color
);
[C++]
HRESULT put_TransparentColor(
  IColor* Color
);
[C++]
Parameters
Color [out, retval]

Color is a parameter of type IColor** Color [in]
Color is a parameter of type IColor*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Setting a transparent color is valid only for image formats that support transparency. These include: png, png24 and gif.

A transparent color can also be set in ImageDisplay2. The color set for ImageDisplay2 takes precedence over the transparent color set in the MapDescription. In such cases this property will be ignored.

See Also

IMapDescription2 Interface