| 摘要: |
| 直线绘制是光栅图形学中一个最为基本的任务,加速传统直线绘制算法有着重要的实际意义.提出了一种新的直线绘制算法.与传统的直线绘制算法不同的是,该算法将直线直接表达成一串由0或1组成的位移码,并给出一个直线位移码的快速计算公式;在此基础上,通过对直线位移码周期性的分析,提出了一种新的自适应多步绘制算法.实验和理论分析表明,该算法能够大大减少生成直线的计算量,提高直线的绘制速度. |
| 关键词: 图形系统 扫描转换 位移码 绘制 自适应算法 |
| DOI: |
| 分类号: |
| 基金项目:国家自然科学基金资助项目(69823003) |
|
| An Adaptive Multi-Pixel Line Drawing Algorithm Based on Displacement Code |
|
MIAO Lan-fang,LIU Xin-guo,PENG Qun-sheng,BAO Hu-jun
|
| Abstract: |
| Line drawing is a fundamental task for raster graphics. Any acceleration of the traditional line drawing process is of great significance. In this paper, a new line drawing algorithm is presented. The algorithm differs from the traditional line drawing algorithm in that a line is directly represented as a series of displacement codes consisting of 0 s and 1 s, which can be easily determined from a formula. Based upon periodic characteristics of the codes, a new adaptive multi-pixel line drawing algorithm is put forward.Both exerimental results and analysis show this algorithm greatly reduces the computation of line drawing and accelrates the line drawing process. |
| Key words: graphics system scan conversion displacement code rendering adaptive algorithm |