摘要 |
PURPOSE:To make a judgement in the unit of one dot unnecessary and to draw a straight line at high speed even by a low-cost device by executing drawing by decomposing the straight line into vectors in a horizontal or vertical or 45 deg. direction. CONSTITUTION:An input means 100 inputs a start point and an end point or the difference from the start point and the end point. Here, when the start point is an origin (0, 0) and the end point is (m, n), a judging means 110 compares 2n and (m), it is judged that the straight line is decomposed into the horizontal direction at the time of 2n<(m), the straight line is decomposed into the 45 deg. direction at the time of 2n>(m) and the result is outputted. A decomposing means (horizontal or vertical) 120 and a decomposing means (45 deg.) 130 decompose respectively the straight line into vectors in the horizontal or vertical or 45 deg. direction by using a calculating expression to obtain the length of the vector derived from a quantizing rule in accordance with the judging result of the means 110 and obtain the lengths. A straight-line drawing means 140 draws a drawing dot string in accordance with the output of the respective decomposing means. |