摘要 |
PROBLEM TO BE SOLVED: To provide a segment drawing device capable of making a drawn segment constant in line width.SOLUTION: A segment drawing device (10) includes: an inclination calculation part (22) which calculates an inclination of long sides of a parallelogram such that short sides having a length which is a positive integral multiple of the pitch between the centers of pixels are parallel with an "x" axis or a "y" axis; a vertex selection part (23) which selects one end of each long side constituting the same short side of the parallelogram; a segment calculation part (24) which calculates a segment of an axis, parallel with the short side, of a straight line having the inclination calculated by the inclination calculation part (22) and passing the one end selected by the vertex selection part (23); and a drawing part (30) which draws a drawing region, based upon a width in a short-side direction between two drawing straight lines represented with the calculated inclination and the calculated segment, along the short side. |