Engine中如何实现先居中显示要素再闪烁
2016-02-23 11:25
309 查看
【解决办法】:
需要在要素居中显示之后、闪烁之前执行IScreenDisplay.UpdateWindow强制全刷,如:
需要在要素居中显示之后、闪烁之前执行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);
相关文章推荐
- Service全面总结
- H5项目常见问题及注意事项
- linux下GTK编程:显示CPU使用率,内存使用率,网速。
- 将m个相同的苹果放进n个相同的盘子中,盘子允许空,有多少种方法
- 通过URL schemes在当前应用打开另一个应用
- iptables规则的查看、添加、删除和修改
- db2表压缩分析
- ReactJS可复用组件
- 好久没来饿了今天发帖发现csdn改进了
- 注册域名的时候一定要注意的事项
- 使用 Sconfig.cmd 配置服务器核心服务器
- Android&java的成长之路之七(2048小游戏③)
- 客户端防重放设计
- mysql 的 find_in_set函数使用方法
- 跟老男孩儿学习LINUX运维
- meanshift算法
- NS2在eclipse下的部署以及调试
- 网站优化 14条--雅虎十四条优化原则
- jdk 重装出现问题
- TCP/IP的三次握手与四次挥手详解