首页 > 其他 > 详细

Engine中如何实现先居中显示要素再闪烁

时间:2016-02-23 13:03:46      阅读:135      评论:0      收藏:0      [点我收藏+]

【解决办法】:
需要在要素居中显示之后、闪烁之前执行IScreenDisplay.UpdateWindow强制全刷,如:

//居中显示要素
IActiveView actView = axMapControl1.ActiveView; 
IEnvelope envelpe = actView.Extent; 
envelpe.CenterAt(pt); 
actView.Extent = envelpe; 
actView.Refresh(); 

//加入强制刷新,保证刷完后再执行其他语句 
actView.ScreenDisplay.UpdateWindow(); 

//调用闪烁代码
IRgbColor rgbColor = new RgbColorClass(); 
rgbColor.RGB = 255; 
FlashGeometry(pt, rgbColor, actView.ScreenDisplay, 500); 

Engine中如何实现先居中显示要素再闪烁

原文:http://www.cnblogs.com/gisoracle/p/5209307.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!