代码如下:

定义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);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2021-12-25
  • 2021-04-04
  • 2021-08-13
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-07-20
  • 2021-07-11
  • 2022-12-23
相关资源
相似解决方案