ArcGIS Engine9.2 栅格图层的透明度设置

代码如下:

定义ILayerEffects 类型变量,然后获得图层,然后设置,更新,完成图层的透明度设置。

                    ILayerEffects pLayerEffects;
                    pLayerEffects = (ILayerEffects)_frmMain.pCurrentMap.Map.get_Layer(0);

                    if (pLayerEffects.SupportsTransparency == true)
                    {
                        pLayerEffects.Transparency = 35;
                    }
                    _frmMain.pCurrentMap.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, null);

原文地址:https://www.cnblogs.com/yuxuetaoxp/p/1716864.html