要素缩放闪烁功能

 public static void ZoomAndFlash(IMapControl3 mapctrl, IFeature feat)
        {

            MapHelper.ZoomToFeature(mapctrl.ActiveView, feat);

            IGeometry shape = mapctrl.ActiveView.Extent;
            (shape as ITransform2D).Scale((shape as IArea).Centroid, 1.5, 1.5);

            mapctrl.ActiveView.Extent = shape.Envelope;

            mapctrl.ActiveView.ScreenDisplay.UpdateWindow();
            MapHelper.FlashGeometry(mapctrl, feat.ShapeCopy);

        }

  

posted on 2016-05-02 01:32  janehlp  阅读(230)  评论(0编辑  收藏  举报