IRasterLayer pRLyr = axSceneControl1.Scene.get_Layer(0) as IRasterLayer; IActiveView pActiveView = axSceneControl1.Scene as IActiveView; if (pActiveView == null) return;
ILayerExtensions pLayerExts = pRLyr as ILayerExtensions; for (int i = 0; i < pLayerExts.ExtensionCount; i++) { if (pLayerExts.get_Extension(i) is I3DProperties) { I3DProperties p3DProps = pLayerExts.get_Extension(i) as I3DProperties; if (p3DProps != null) { p3DProps.MaxTextureMemory = 268435456; p3DProps.Apply3DProperties(pRLyr); pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, pRLyr, pActiveView.Extent); } } }
转自http://www.cnblogs.com/upDOoGIS/archive/2009/07/31/1535837.html
转载于:https://www.cnblogs.com/ITGIS/articles/1627315.html