arcengine之基本操作

拉框放大:

            axmap1.MousePointer = esriControlsMousePointer.esriPointerZoomIn;
            IEnvelope IEnvTrc;
            IEnvTrc = axmap1.TrackRectangle();
            axmap1.Extent = IEnvTrc;    


平移:

            axmap1.MousePointer = esriControlsMousePointer.esriPointerPageZoomOut;
            axmap1.Pan();

点击放大(缩小可以更改参数)

            IEnvelope pEnvelope;
            pEnvelope = axmap1.Extent;
            pEnvelope.Expand(0.5, 0.5, true);
            axmap1.Extent = pEnvelope;
            axmap1.Refresh();

 

 

posted @ 2012-05-15 15:19  叫我小艺  阅读(295)  评论(0编辑  收藏  举报
给我发邮件(wanganb@126.com)