摘要
提出了一种基于像素行的直线生成算法,该算法不像传统的算法那样对每个像素点进行偏差计算,一次只能生成一个像素点,而是根据直线起点和终点的坐标信息,确定每一行需要填充的像素点的个数,然后以行为单位进行填充.该算法一次可获得一行像素的个数并输出,加快了直线的生成速度,同时算法简练,执行效率高.
This paper propose a line pixel-based straight line generation algorithm,which unlike traditional algorithms,as for each pixel point deviation calculation can only generate one pixel each time,but according to straight line's start and end coordinates information to determine the pixels number of each line,and then fills it.The algorithm obtain pixel points of one line each time,which can quicken the speed of line's generating,meanwhile the algorithm is simple and has a high executing efficiency.
出处
《河南科技学院学报》
2010年第4期84-88,共5页
Journal of Henan Institute of Science and Technology(Natural Science Edition)