计算机工程与应用 ›› 2015, Vol. 51 ›› Issue (2): 171-176.

• 图形图像处理 • 上一篇    下一篇

曲线的像素级双步绘制算法

叶庆国,刘勇奎   

  1. 大连民族学院 计算机科学与工程学院,辽宁 大连 116600
  • 出版日期:2015-01-15 发布日期:2015-01-12

Double-step pixel-level algorithm for rendering curves

YE Qingguo, LIU Yongkui   

  1. School of Computer Science and Engineering, Dalian Nationalities University, Dalian, Liaoning 116600, China
  • Online:2015-01-15 Published:2015-01-12

摘要: 现有的绘制曲线的算法都是单步的。提出了一个双步绘制曲线的通用算法,算法的每一步可以绘制两个像素点。以三次Bezier曲线的绘制为例给出了具体实现过程。给出了算法的伪代码过程。给出了算法的计算量比较结果。结果表明提出的双步算法与单步算法相比,计算量有了较大幅度的减少。

关键词: 像素, 曲线, 区域, 递推, 双步

Abstract: The existing curve-drawing algorithms are single step. A double-step commonly used algorithm for drawing curves is presented in this paper. In each step of the algorithm two pixels are drawn. As an example, the realization process for cubic Bezier curve is given. A pseudo code of the algrithm is given. The results of the calculation comparison between the algrithms are given. The results show that the calculation of the proposed double-step algorithm is much less than that of the single-step algorithm.

Key words: pixels, curve, region, recursive, double-step