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


ILayerEffects Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

ILayerEffects Interface

Provides access to members that control layer effects.

Product Availability

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

Members

Description
Read/write property Brightness Layer brightness in percent (-100 - 100).
Read/write property Contrast Layer contrast in percent (-100 - 100).
Read-only property SupportsBrightnessChange Indicates if the layer supports brightness changes.
Read-only property SupportsContrastChange Indicates if the layer supports contrast changes.
Read/write property SupportsInteractive Indicates if the layer supports interactive effects changes.
Read-only property SupportsTransparency Indicates if the layer supports transparency.
Read/write property Transparency Layer transparency in percent (0-100).

CoClasses that implement ILayerEffects

CoClasses and Classes Description
BasemapLayer Layer containing a Basemap.
CadAnnotationLayer An Esri Cad annotation layer.
CadastralFabricLayer Cadastral Fabric Layer Object.
CadastralFabricSubLayer Cadastral Fabric Feature Layer Object.
CadFeatureLayer Esri CAD Feature Layer class.
CadLayer Esri CAD Layer class.
CoverageAnnotationLayer An Esri coverage annotation layer.
DimensionLayer A collection of properties for a dimension layer.
FDOGraphicsLayer A collection of properties for an annotation layer (feature data object graphics layer).
FeatureLayer A collection of features and their visual representation.
FeatureLayerDrawingDescription Feature layer drawing description.
GdbRasterCatalogLayer Geodabase RasterCatalog source and display options.
GeoVideoLayer (esriGlobeCore) The georeferenced video layer.
GlobeGraphicsLayer (esriGlobeCore) The Globe Graphics Layer.
GlobeLayer (esriGlobeCore) The cache-only globe layer.
GlobeServerLayer (esriGlobeCore) Provides programmatic access to a globe server layer.
GraphicsLayer3D (esri3DAnalyst) A 3D Graphics Layer.
GroupLayer A collection of layers that behaves like a single layer.
HorizontalBarLegendItem Horizontal bar legend item.
HorizontalLegendItem Horizontal legend item.
ImageServerLayer Image server layer source and display options.
IMSMapLayer A container for the display and manipulation of IMS layers.
KmlLayer (esriGlobeCore) Esri KML Layer class.
LasDatasetLayer The Terrain Layer class.
MapServerLayer Provides programmatic access to a map server layer.
MapServerRESTLayer Provides programmatic access to a a layer based on MapServer using REST access.
MapServerRESTSubLayer Provides programmatic access to a MapServer SubLayer.
MosaicLayer The layer implementation of the Mosaic Dataset.
NestedLegendItem Nested legend item.
NetworkLayer Esri Network Layer CoClass.
RasterBasemapLayer Basemap Layer containing a Raster.
RasterCatalogLayer Raster catalog source and display options.
RasterLayer Raster layer source and display options.
RasterLayerDrawingDescription Raster layer drawing description.
TemporalFeatureLayer (esriTrackingAnalyst) Defines the coclass IDL parameters and attributes of the TemporalFeatureLayer COM object.
TerrainLayer The Terrain Layer class.
TinLayer The TIN Layer class.
TopologyLayer A collection of properties for a topology layer.
VerticalLegendItem Vertical legend item.
WCSLayer WCS layer source and display options.
WMSMapLayer A container for the display and manipulation of WMS layers.
WMTSLayer Provides programmatic access to WMTS layer.

Remarks

Use this interface to changes brightness, contrast, and transparency for a layer. The controls on the Effects toolbar in ArcMap utilize this interface. Not all layers support all layer effects. For example, FeatureLayer objects only support transparency, while RasterLayer objects support all effects. Before you attempt to change a layer effect, you should check to see if the layer supports the effect. Use SupportsBrightnessChange, SupportsContrastChange, and SupportsTransparency for this.

The display settings on your computer must be set to True Color for layer effects to work correctly.

.NET Samples

Layer effects animation in ArcMap (Code Files: AnimationTypeLayerEffects MapLayerEffectsKeyframe)