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


IMapServerLayer.TransparentColor Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServerLayer.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 formats that support transparency.  These include: png, png24 and gif. When adding a MapServerLayer to ArcMap the TransparentColor value is equal to the value of the BackgroundColor. Therefore, the background is transparent by default.

See Also

IMapServerLayer Interface