C#+ArcEngine:设置矢量图层的透明度

代码如下:

        //获取第一个图层

            ILayer pLayer = this.axMapControl1.get_Layer(0);    

            if (pLayer is IFeatureLayer)//如果第一个图层时矢量图层

            {               

                ILayerEffects pLayerEffects = pLayer as ILayerEffects;

                pLayerEffects.Transparency = 65;//设置ILayerEffects接口的Transparency属性使该矢量图层的透明度属性为65.

            }  



你可能感兴趣的:(C#,layer)