首页 | 本学科首页   官方微博 | 高级检索  
     

一种Windows下实时高效图形绘制算法
引用本文:张志民,欧建平,皇甫堪.一种Windows下实时高效图形绘制算法[J].现代电子技术,2010,33(16):43-46.
作者姓名:张志民  欧建平  皇甫堪
作者单位:国防科学技术大学电子科学与工程学院,湖南,长沙,410073
摘    要:针对实时系统中对图形绘制速度的特殊要求,提出一种应用于Windows环境下应用程序客户区中的高效图形绘制算法,给出实现图形水平平移、竖直平移、自由平移、水平缩放、竖直缩放、自由缩放的关键技术。该算法基于无效矩形确定图形中需要绘制的数据和坐标轴范围,可避免大量不必要的重绘工作,实现图形高效、快速绘制,保证操作的实时性。利用内存DC绘图可避免图形闪烁,增强图形显示效果。与Matlab中绘图函数进行性能比较,证明了提出的图形绘制算法是有效的。

关 键 词:图形绘制  无效矩形  图形闪烁  Matlab

Real-time and Efficient Graphics-drawing Algorithm under Windows Condition
ZHANG Zhi-min,OU Jian-ping,HUANG Fu-kan.Real-time and Efficient Graphics-drawing Algorithm under Windows Condition[J].Modern Electronic Technique,2010,33(16):43-46.
Authors:ZHANG Zhi-min  OU Jian-ping  HUANG Fu-kan
Affiliation:(College of Electronic Science and Engineering,National University of Defense Technology,Changsha 410073,China)
Abstract:An efficient graphics-drawing algorithm applied to the client area of Windows system is proposed to meet the requirement of real-time systems.The key technologies which can realize the patterns' horizontal displacement,vertical translation,unconstrained translation,image horizontal scaling,image vertical scaling and image unconstrained scaling are presented.The data and axis scale which need to be drawed in graphics are determined with the algorithm by utilizing the invalid rectangle to avoid lots of unnecessary redrawing and realize efficient and fast graphics-drawing.With the memory DC,graphics flicker is avoided,as a result,the vividness of graphics is enhanced.In comparison with the plot function in Matlab,simulation results show that the algorithm proposed in this paper is efficient.
Keywords:Matlab
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号