为mapcontrol中的图层设置透明度

时间:2022-12-10 08:07:08
1 ILayer pLayer = axMapControl1.get_Layer(0);
2 ILayerEffects pLayerEffects = (ILayerEffects)pLayer;
3 pLayerEffects.Transparency = (short)0;
4 
5 axMapControl1.ActiveView.Refresh();

pLayerEffects.Transparency值为0时,图层不透明;
pLayerEffects.Transparency值为100时,图层完全透明。

http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=28026&extra=page%3D6