基金项目
?/p>
石化、轨道交通行业分布式综合监控系统?/p>
SCADA
)研发及应用示范
?/p>
资助
一种基于自定义剪切区集合的
MFC
程序
GDI
绘图优化方法
罗幸明,徐伟?/p>
浙江中控技术股份有限公司,浙江杭州?/p>
310053
?/p>
要:
传统
MFC
程序
GDI
绘图仅考虑屏幕刷新闪烁的优化,而对于绘图内容本身的优化
考虑有限。常规应用下?/p>
GDI
绘图本身确实不会成为程序的性能瓶颈,但在高分辨率、复?/p>
画面的绘制显示时,这个问题就不得不考虑了。通常我们会使用系统剪切区进行优化控制?/p>
但是实际应用发现当分辨率或者画面复杂度大于一定程度后?/p>
该优化的性能提升有限?/p>
鉴于
此,本文提出了一种简单可行的基于自定义剪切区集合判断?/p>
MFC
程序
GDI
绘图优化方法?/p>
可以有效解决高分辨率、复杂画面的
GDI
绘图性能问题?/p>
关键词:
自定义剪切区
?/p>
MFC
?/p>
GDI
、绘?/p>
One Optimizing Design Based On Custom Clipping Region
Sets Of MFC Programs Drawing With GDI
Luo Xingming
?/p>
Xu Weiqiang
Zhejiang SUPCON Co.,Ltd, Hangzhou, Zhejiang, 310053
Abstract
?/p>
When drawing with GDI of traditional MFC programs,the most considering things is the
screen flashing problems but not drawing itself.Normally drawing performance will not be the
choke point,but it really will be when screen resolution is high enough or graphics is complex
enough.It is usual to resolve this problem by using system clipping region,but after some industial
practice we found that the benefits from this optimizing is limited.Based on this situation,this
paper presents a simple effective and practical optimizing design based on custom clipping region
sets which can effectivly improve drawing performance of complex graphics in industrial field.
Keyword
?/p>
Custom Clipping Region Sets, MFC, GDI, Drawing