发明名称 STRAIGHT LINE DRAWING METHOD
摘要 PURPOSE:To efficiently draw even a straight line, whose inclination is about 45 deg., with a low frequency in calculation by using 45 deg. segments to draw the straight line. CONSTITUTION:Conditions related to the straight line to be drawn, namely, the start point coordinate, the limit point of drawing, and the inclination of the straight line are inputted to a straight line drawing part 2. The part 2 obtains two kinds of segment length as the reference and displays the first 45 deg. segment having the start point coordinate as the start point on a bit map display device 1. The start point of the segment to be next drawn is obtained, and the error extent between the drawn segment and a virtual straight line and the variation of the error extent of two kinds of segment length are obtained. When it is judged thereafter that the start point of drawing of the next segment does not exceed the limit point and the initial value of the error extent is smaller than 0, another 45 deg. segment is drawn from the start point of drawing, and the next start point of drawing is obtained and the error extent is updated by the variation of the pertinent segment length. Drawing is repeated in this manner till it is judged that the start point of drawing of the next segment exceeds the limit point of drawing.
申请公布号 JPH04322325(A) 申请公布日期 1992.11.12
申请号 JP19910092077 申请日期 1991.04.23
申请人 TOSHIBA CORP 发明人 SHIMAKURA TATSURO
分类号 G06F3/153;G06T11/20 主分类号 G06F3/153
代理机构 代理人
主权项
地址