JP2003076995A - Thick line/thick broken line plotting method and device - Google Patents

Thick line/thick broken line plotting method and device

Info

Publication number
JP2003076995A
JP2003076995A JP2001262546A JP2001262546A JP2003076995A JP 2003076995 A JP2003076995 A JP 2003076995A JP 2001262546 A JP2001262546 A JP 2001262546A JP 2001262546 A JP2001262546 A JP 2001262546A JP 2003076995 A JP2003076995 A JP 2003076995A
Authority
JP
Japan
Prior art keywords
line
thick
straight
broken
broken line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2001262546A
Other languages
Japanese (ja)
Inventor
Atsushi Yamada
淳 山田
Hiroshi Nakayama
寛 中山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2001262546A priority Critical patent/JP2003076995A/en
Publication of JP2003076995A publication Critical patent/JP2003076995A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To plot a thick line and a thick broken line in a natural shape in a small circuit scale and in a short processing time regarding a thick line/thick broken line plotting method used in the case of plotting the thick line and the thick broken line on a plotting surface of an image plotter or a frame buffer. SOLUTION: Following plotting of a first straight line or a straight broken line, second and succeeding straight lines or straight broken lines are successively adjacently plotted. In this case, a perpendicular line PE for which a start point P1 of the first straight line L1 is the base of the perpendicular line is calculated, the perpendicular line PE and coordinates of the start point of an n-th (n is an integer of >=1) straight line are used and the start points of (n+1)-th and succeeding straight lines or straight broken lines are calculated so as to perpendicularly plot end parts of the thick lines or the end parts of respective line segments of the thick broken lines.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像描画装置の描
画面あるいはフレームバッファに2画素以上の幅を持つ
直線(以下、太線という)及び2画素以上の幅を持つ直
線の破線(以下、太線破線という)を描画する場合に使
用する太線/太線破線描画方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a straight line having a width of 2 pixels or more (hereinafter referred to as a thick line) and a broken line of a straight line having a width of 2 pixels or more (hereinafter referred to as a thick line) on a drawing surface of an image drawing device or a frame buffer. The present invention relates to a thick line / thick line broken line drawing method and apparatus used when drawing a broken line).

【0002】[0002]

【従来の技術】従来、太線を描画する方法として、たと
えば、図20A及び図20Bに示すように、太線の傾き
に関わらず、太線の端部が描画面上で垂直あるいは水平
方向になるように描画する方法が知られている。
2. Description of the Related Art Conventionally, as a method for drawing a thick line, for example, as shown in FIGS. 20A and 20B, regardless of the inclination of the thick line, the ends of the thick line are arranged vertically or horizontally on the drawing surface. A method of drawing is known.

【0003】また、太線破線を描画する方法として、図
20C及び図20Dに示すように、太線破線を構成する
各線分が描画面上で垂直あるいは水平方向になるように
描画する方法が知られている。
As a method of drawing a thick broken line, there is known a method of drawing so that each line segment forming the thick broken line is vertical or horizontal on the drawing surface, as shown in FIGS. 20C and 20D. There is.

【0004】[0004]

【発明が解決しようとする課題】このような従来の太線
/太線破線描画方法は、1画素幅の直線又は直線破線を
垂直方向あるいは水平方向に移動させるだけで太線又は
太線破線を描画することができるので、処理時間が短く
て済むという利点があるが、太線又は太線破線の形状が
不自然な形状になってしまうという問題点を有してい
た。
In such a conventional thick line / thick line broken line drawing method, it is possible to draw a thick line or a thick broken line only by moving a straight line or a straight broken line of one pixel width in the vertical or horizontal direction. Therefore, there is an advantage that the processing time is short, but there is a problem that the shape of the thick line or the thick broken line becomes an unnatural shape.

【0005】また、特に、傾きを45°とする太線を描
画する方法として、傾きを45°とする1画素幅の直線
をこの直線に対して垂直方向に移動させて、傾きを45
°とする太線を描画する方法があり、この太線描画方法
によれば、短い処理時間で端部を直角とする太線を描画
することができるが、図21に示すように、太線内に描
画されない画素が発生してしまうという問題点があっ
た。傾きを45°とする太線破線を描画する場合にも、
同様に描画すると、各線分内に描画されない画素が発生
してしまうという問題点があった。
Further, in particular, as a method of drawing a thick line having an inclination of 45 °, a straight line having a one-pixel width having an inclination of 45 ° is moved in a direction perpendicular to the straight line to obtain an inclination of 45 °.
There is a method of drawing a thick line with a value of 0. According to this thick line drawing method, a thick line having a right angle end can be drawn in a short processing time, but as shown in FIG. 21, it is not drawn within the thick line. There is a problem that pixels are generated. Even when drawing a thick broken line with an inclination of 45 °,
When drawing in the same manner, there is a problem that some pixels are not drawn in each line segment.

【0006】そこで、太線の端部又は太線の破線の断面
を自然な形状とする方法として、三角形や四角形などの
基本図形を組み合わせて使用する方法が考えられるが、
このようにすると、計算量が大幅に増加し、多大な処理
時間が必要となってしまうという問題点があった。
Therefore, a method of combining basic figures such as triangles and squares can be considered as a method of making the cross section of the end of the thick line or the broken line of the thick line a natural shape.
This causes a problem that the amount of calculation is significantly increased and a great amount of processing time is required.

【0007】本発明は、かかる点に鑑み、自然な形状の
太線及び太線破線の描画を小さな回路規模かつ短い処理
時間で行うことができるようにした太線/太線破線描画
方法及び装置を提供することを目的とする。
In view of the above point, the present invention provides a thick line / thick line dashed line drawing method and apparatus capable of performing drawing of a naturally shaped thick line and thick line broken line with a small circuit scale and a short processing time. With the goal.

【0008】[0008]

【課題を解決するための手段】本発明の太線/太線破線
描画方法は、1本目の直線又は直線破線の描画に続いて
2本目以降の直線又は直線破線を順に隣接して描画する
ことにより太線又は太線破線を描画する太線/太線破線
描画方法であって、太線の端部又は太線破線の各線分の
端部が直角に描画されるように、2本目以降の直線又は
直線破線の始点を計算する工程を有するというものであ
る。
The method of drawing a thick line / thick line broken line according to the present invention is to draw a thick line by drawing a straight line or a straight line broken line first and a second straight line or a straight line broken line next to each other. Or it is a thick line / thick line dashed line drawing method that draws a thick broken line, and calculates the start point of the second or subsequent straight line or straight broken line so that the end of the thick line or the end of each line segment of the thick broken line is drawn at a right angle. It has a process to do.

【0009】本発明の太線/太線破線描画方法によれ
ば、2本目以降の直線又は直線破線の始点の変更処理を
行うだけで、太線の端部又は太線破線の各線分の端部を
直角に描画することができる。
According to the thick line / thick line broken line drawing method of the present invention, only the change processing of the starting point of the second straight line or straight line or broken line is performed to make the end of the thick line or the end of each line segment of the thick broken line into a right angle. Can be drawn.

【0010】本発明の太線/太線破線描画装置は、1本
目の直線又は直線破線の描画に続いて2本目以降の直線
又は直線破線を順に隣接して描画することにより太線又
は太線破線を描画する太線/太線破線描画装置であっ
て、太線の端部又は太線破線の各線分の端部が直角に描
画されるように、2本目以降の直線又は直線破線の始点
を計算する手段を備えているというものである。
The thick line / thick line broken line drawing apparatus of the present invention draws a thick line or a thick line broken line by drawing the first straight line or the straight line broken line and subsequently drawing the second straight line or straight lines or straight line broken lines in order. A thick line / thick line broken line drawing device, which is provided with means for calculating the starting point of the second straight line or straight lines or straight line broken lines so that the end of the thick line or the end of each line segment of the thick broken line is drawn at a right angle. That is.

【0011】本発明の太線/太線破線描画装置によれ
ば、2本目以降の直線又は直線破線の始点の変更処理を
行うだけで、太線の端部又は太線破線の各線分の端部を
直角に描画することができる。
According to the thick line / thick line broken line drawing apparatus of the present invention, only by changing the starting point of the second straight line or straight line or straight line broken line, the end of the thick line or the end of each line segment of the thick broken line is made into a right angle. Can be drawn.

【0012】[0012]

【発明の実施の形態】以下、図1〜図19を参照して、
本発明の太線/太線破線描画方法の第1実施形態及び第
2実施形態並びに本発明の太線/太線破線描画装置の一
実施形態について説明する。
DETAILED DESCRIPTION OF THE INVENTION Referring to FIGS.
The first and second embodiments of the thick line / thick line broken line drawing method of the present invention and one embodiment of the thick line / thick line broken line drawing apparatus of the present invention will be described.

【0013】(本発明の太線/太線破線描画方法の第1
実施形態)図1〜図13は本発明の太線/太線破線描画
方法の第1実施形態を説明するための図であり、本発明
の太線/太線破線描画方法の第1実施形態は、画素の
X、Y座標を正の整数とする描画面にY主軸の太線又は
太線破線を描画するというものである。Y主軸の太線又
は太線破線とは、その傾きをΔX/ΔYとするとき、Δ
X/ΔY≦1を満足するものをいう。
(First method of drawing thick line / thick line broken line of the present invention
(Embodiment) FIGS. 1 to 13 are diagrams for explaining a first embodiment of a thick line / thick line broken line drawing method of the present invention. The first embodiment of the thick line / thick line broken line drawing method of the present invention is A thick line or a bold broken line of the Y main axis is drawn on the drawing surface having the X and Y coordinates as positive integers. A thick line or a bold broken line of the Y main axis means Δ when the inclination is ΔX / ΔY.
It means one that satisfies X / ΔY ≦ 1.

【0014】本発明の太線/太線破線描画方法の第1実
施形態においては、太線を描画する場合、太線を描画す
るための1本目の直線の始点、終点の座標及び幅が与え
られることを前提としており、たとえば、図1に示すよ
うに、1本目の直線L1として、始点をP1(X1、Y
1)、終点をQ1(X2、Y2)とする直線が指定され
た場合には、まず、1本目の直線L1のY軸を基準とす
る傾きdx=(X2−X1)/(Y2−Y1)を算出す
る。
In the first embodiment of the thick line / thick line broken line drawing method of the present invention, when drawing a thick line, it is premised that the coordinates and width of the start point and end point of the first straight line for drawing the thick line are given. For example, as shown in FIG. 1, a first straight line L1 is used, and the starting point is P1 (X1, Y
1) When a straight line whose end point is Q1 (X2, Y2) is designated, first, the slope of the first straight line L1 with respect to the Y axis dx = (X2-X1) / (Y2-Y1) To calculate.

【0015】次に、1本目の直線L1の始点P1、終点
Q1及び傾きdxから直線線形補間を行い、図2に示す
ように、1本目の直線L1を描画するための描画点D1
1、D12、D13、…を求め、これらを描画する。ま
た、1本目の直線L1の始点P1を垂線の足とする1本
目の直線L1に垂直な仮想的な垂線PEを求める。
Then, linear linear interpolation is performed from the starting point P1, the ending point Q1 and the slope dx of the first straight line L1, and as shown in FIG. 2, a drawing point D1 for drawing the first straight line L1.
1, D12, D13, ... Are obtained and these are drawn. Further, an imaginary perpendicular PE that is perpendicular to the first straight line L1 having the starting point P1 of the first straight line L1 as the leg of the perpendicular is obtained.

【0016】図3は指定された太線を描画するに必要な
2本目以降の直線L2、L3、…の始点P2、P3、…
を求める手順を示すフローチャートであり、この例で
は、まず、(X1、Y1)、(dx、1、0)を記憶す
る(ステップS1)。
FIG. 3 shows the starting points P2, P3, ... Of the second and subsequent straight lines L2, L3, ... Necessary for drawing the designated thick line.
It is a flowchart showing a procedure for obtaining, in this example, first, (X1, Y1), (dx, 1, 0) are stored (step S1).

【0017】次に、VX=X1+1、VY=Y1−dx
とし(ステップS2、図4)、更に、Y座標の整数部を
int(Y)で表すものとし、int(VY)とint(Y1−
1)とを比較する(ステップS3)。
Next, VX = X1 + 1, VY = Y1-dx
(Step S2, FIG. 4), and further, the integer part of the Y coordinate is
Let int (Y) represent int (VY) and int (Y1-
1) is compared (step S3).

【0018】そして、int(VY)< int(Y1−1)
ならば、2本目の直線L2の始点P2の座標を(X1+
1、Y1)とし、X1=X1+1、Y1=Y1、VX=
VX+1、VY=VY−dxとする(ステップS4)。
Then, int (VY) <int (Y1-1)
If so, the coordinates of the starting point P2 of the second straight line L2 are (X1 +
1, Y1), and X1 = X1 + 1, Y1 = Y1, VX =
VX + 1 and VY = VY-dx are set (step S4).

【0019】これに対して、int(VY)≧ int(Y1
−1)ならば、2本目の直線L2の始点P2の座標を
(X1+1−dx、Y1−1)とし、X1=X1+1−
dx、Y1=Y1−1、VX=VX、VY=VYとする
(ステップS5)。
On the other hand, int (VY) ≧ int (Y1
−1), the coordinates of the starting point P2 of the second straight line L2 is (X1 + 1−dx, Y1-1), and X1 = X1 + 1−
dx, Y1 = Y1-1, VX = VX, VY = VY are set (step S5).

【0020】本例の場合には、図4に示すように、int
(VY)< int(Y1−1)であるから、2本目の直線
L2の始点P2の座標を(X1+1、Y1)とし、2本
目の直線L2の始点P2(X1+1、Y1)、傾きdx
及び長さから直線線形補間を行い、図5に示すように、
2本目の直線L2を描画するための描画点D21、D2
2、D23、…を求め、これらを描画する。また、図6
に示すように、X1=X1+1、Y1=Y1、VX=V
X+1、VY=VY−dxとする(ステップS4)。
In the case of this example, as shown in FIG.
Since (VY) <int (Y1-1), the coordinates of the starting point P2 of the second straight line L2 are (X1 + 1, Y1), and the starting point P2 (X1 + 1, Y1) of the second straight line L2, the slope dx
And linear linear interpolation from the length, and as shown in FIG.
Drawing points D21 and D2 for drawing the second straight line L2
2, D23, ... Are obtained and these are drawn. In addition, FIG.
, X1 = X1 + 1, Y1 = Y1, VX = V
X + 1 and VY = VY-dx are set (step S4).

【0021】次に、同様にして、int(VY)とint(Y
1−1)とを比較して(ステップS3)、int(VY)
< int(Y1−1)ならば、3本目の直線L3の始点P
3の座標を(X1+1、Y1)とし、X1=X1+1、
Y1=Y1、VX=VX+1、VY=VY−dxとする
(ステップS4)。
Next, similarly, int (VY) and int (Y
1-1) is compared (step S3), int (VY)
<Int (Y1-1), the start point P of the third straight line L3
The coordinate of 3 is (X1 + 1, Y1), and X1 = X1 + 1,
Y1 = Y1, VX = VX + 1, and VY = VY-dx are set (step S4).

【0022】これに対して、int(VY)≧ int(Y1
−1)ならば、3本目の直線L3の始点P3の座標を
(X1+1−dx、Y1−1)とし、X1=X1+1−
dx、Y1=Y1−1、VX=VX、VY=VYとする
(ステップS5)。
On the other hand, int (VY) ≧ int (Y1
−1), the coordinates of the starting point P3 of the third straight line L3 is (X1 + 1−dx, Y1-1), and X1 = X1 + 1−
dx, Y1 = Y1-1, VX = VX, VY = VY are set (step S5).

【0023】本例の場合には、図6に示すように、int
(VY)< int(Y1−1)であるから、3本目の直線
L3の始点P3の座標を(X1+1、Y1)とし、3本
目の直線L3の始点P3(X1+1、Y1)、傾きdx
及び長さから直線線形補間を行い、図7に示すように、
3本目の直線L3を描画するための描画点D31、D3
2、D33、…を求め、これらを描画する。また、図8
に示すように、X1=X1+1、Y1=Y1、VX=V
X+1、VY=VY−dxとする(ステップS4)。
In the case of this example, as shown in FIG.
Since (VY) <int (Y1-1), the coordinates of the starting point P3 of the third straight line L3 is set to (X1 + 1, Y1), and the starting point P3 (X1 + 1, Y1) of the third straight line L3, the slope dx
And linear linear interpolation from the length, and as shown in FIG.
Drawing points D31 and D3 for drawing the third straight line L3
2, D33, ... Are obtained and these are drawn. Also, FIG.
, X1 = X1 + 1, Y1 = Y1, VX = V
X + 1 and VY = VY-dx are set (step S4).

【0024】次に、同様にして、int(VY)とint(Y
1−1)とを比較して(ステップS3)、int(VY)
< int(Y1−1)ならば、4本目の直線L4の始点P
4の座標を(X1+1、Y1)とし、X1=X1+1、
Y1=Y1、VX=VX+1、VY=VY−dxとする
(ステップS4)。
Next, similarly, int (VY) and int (Y
1-1) is compared (step S3), int (VY)
<Int (Y1-1), the start point P of the fourth straight line L4
The coordinates of 4 are (X1 + 1, Y1), and X1 = X1 + 1,
Y1 = Y1, VX = VX + 1, and VY = VY-dx are set (step S4).

【0025】これに対して、int(VY)≧ int(Y1
−1)ならば、4本目の直線L4の始点P4の座標を
(X1+1−dx、Y1−1)とし、X1=X1+1−
dx、Y1=Y1−1、VX=VX、VY=VYとする
(ステップS5)。
On the other hand, int (VY) ≧ int (Y1
−1), the coordinates of the start point P4 of the fourth straight line L4 is (X1 + 1−dx, Y1-1), and X1 = X1 + 1−
dx, Y1 = Y1-1, VX = VX, VY = VY are set (step S5).

【0026】本例の場合には、図8に示すように、int
(VY)≧ int(Y1−1)であるから、4本目の直線
L4の始点P4の座標を(X1+1−dx、Y1−1)
とし、4本目の直線L4の始点P4(X1+1−dx、
Y1−1)、傾きdx及び長さから直線線形補間を行
い、図9に示すように、4本目の直線L4を描画するた
めの描画点D41、D42、D43、D44、…を求
め、これらを描画する。また、X1=X1+1−dx、
Y1=Y1−1、VX=VX、VY=VYとする(ステ
ップS5)。以下、同様の動作を繰り返すことにより、
太線を描画する。
In the case of this example, as shown in FIG.
Since (VY) ≧ int (Y1-1), the coordinates of the starting point P4 of the fourth straight line L4 is (X1 + 1-dx, Y1-1).
And the start point P4 (X1 + 1-dx, of the fourth straight line L4,
Y1-1), the slope dx and the length are subjected to linear linear interpolation to obtain drawing points D41, D42, D43, D44, ... For drawing the fourth straight line L4, as shown in FIG. draw. Also, X1 = X1 + 1-dx,
Y1 = Y1-1, VX = VX, and VY = VY are set (step S5). After that, by repeating the same operation,
Draw a thick line.

【0027】すなわち、本発明の太線/太線破線描画方
法の第1実施形態においては、太線を描画する場合、n
本目の直線Lnの始点を(Xn、Yn)とすると、n本目
の直線Lnの描画が終了し、n+1本目の直線Ln+1の始
点を決定する際、n+1本目の直線Ln+1の始点の候補
は、図10に示すように、座標(Xn+1、Yn)と座標
(Xn+1−dx、Yn-1)の2点となる。
That is, in the first embodiment of the thick line / thick line broken line drawing method of the present invention, when a thick line is drawn, n
When the starting point of the straight line L n is (X n , Y n ), the drawing of the n-th straight line L n is completed, and when the starting point of the n + 1-th straight line L n + 1 is determined, the n + 1-th straight line L n is determined. n + 1 of the start point of the candidate, as shown in FIG. 10, the two points of coordinates (X n + 1, Y n) and coordinates (X n + 1 -dx, Y n-1).

【0028】そこで、垂線PEのX座標がXn+1の場合
のY座標をVYとし、int(VY)とint(Yn-1)との
比較を行い、たとえば、図11に示すように、int(V
Y)<int(Yn-1)ならば、n+1本目の直線Ln+1
始点を(Xn+1、Yn)とし、図12に示すように、int
(VY)≧ int(Yn-1)ならば、n+1本目の直線L
n+ 1の始点を(Xn+1−dx、Yn-1)とするとしてい
る。
Therefore, the X coordinate of the perpendicular PE is X.n + 1in the case of
Let the Y coordinate of VY be VY, and int (VY) and int (Yn-1) With
For example, as shown in FIG. 11, int (V
Y) <int (Yn-1), The n + 1th straight line Ln + 1of
Start with (Xn + 1, Yn), And as shown in FIG. 12, int
(VY) ≧ int (Yn-1), The n + 1th straight line L
n + 1The start point of (Xn + 1-Dx, Yn-1)
It

【0029】この結果、図13Aに示すように、Y主軸
の太線をその端部が直角となるように(端辺が幅方向を
向くように)描画することができる。なお、Y主軸の太
線破線を描画する場合には、Y主軸の太線を描画する場
合と同様に、Y主軸の太線を描画するための描画点を求
め、この描画点からY主軸の太線の端辺と同様の傾きで
破線とするための描画点の除去を行うことにより、図1
3Bに示すように、Y主軸の太線破線をその各線分の端
部が直角となるように(断面が幅方向を向くように)描
画することができる。
As a result, as shown in FIG. 13A, it is possible to draw the thick line of the Y main axis so that its ends are at right angles (end sides are oriented in the width direction). In the case of drawing a thick broken line of the Y main axis, as in the case of drawing a thick line of the Y main axis, a drawing point for drawing the thick line of the Y main axis is obtained, and from this drawing point, the end of the thick line of the Y main axis is drawn. By removing the drawing point to make a broken line with the same inclination as the side,
As shown in FIG. 3B, it is possible to draw the thick broken line of the Y main axis so that the ends of the respective line segments are at right angles (the cross section faces the width direction).

【0030】このように、本発明の太線/太線破線描画
方法の第1実施形態によれば、Y主軸の太線又は太線破
線を描画する場合、2本目以降の直線又は直線破線の始
点の変更処理を行うだけで、太線の端部又は太線破線の
各線分の端部を直角に描画することができるので、自然
な形状のY主軸の太線又は太線破線の描画を小さな回路
規模かつ短い処理時間で行うことができる。
As described above, according to the first embodiment of the thick line / thick line broken line drawing method of the present invention, when a thick line or a thick line broken line of the Y main axis is drawn, a process of changing the starting point of the second straight line or straight line or straight line broken line is performed. You can draw the end of the thick line or the end of each line of the thick broken line at a right angle only by performing the drawing. Therefore, it is possible to draw the thick line or the thick broken line of the Y spindle of a natural shape with a small circuit scale and a short processing time. It can be carried out.

【0031】(本発明の太線/太線破線描画方法の第2
実施形態)図14〜図17は本発明の太線/太線破線描
画方法の第2実施形態を説明するための図であり、本発
明の太線/太線破線描画方法の第2実施形態は画素の
X、Y座標を正の整数とする描画面にX主軸の太線又は
太線破線を描画するというものである。X主軸の太線又
は太線破線とは、その傾きをΔY/ΔXとするとき、Δ
Y/ΔX≦1以下を満足するものをいう。したがって、
ΔY/ΔX=1の場合には、X主軸の太線又は太線破線
でもあるし、Y主軸の太線又は太線破線でもある。
(Second line of thick line / thick line broken line drawing method of the present invention
(Embodiment) FIGS. 14 to 17 are views for explaining the second embodiment of the thick line / thick line broken line drawing method of the present invention, and the second embodiment of the thick line / thick line broken line drawing method of the present invention is the pixel X , The Y coordinate is a positive integer, and a thick line or a bold broken line of the X main axis is drawn on the drawing surface. A thick line or a bold broken line of the X main axis means Δ when the inclination is ΔY / ΔX.
It means one that satisfies Y / ΔX ≦ 1 or less. Therefore,
In the case of ΔY / ΔX = 1, it is also a thick line or a thick broken line of the X main axis, or a thick line or a thick broken line of the Y main axis.

【0032】本発明の太線/太線破線描画方法の第2実
施形態においても、第1実施形態と同様に、太線を描画
する場合、太線を描画するための1本目の直線の始点、
終点の座標及び幅が与えられることを前提としており、
たとえば、図14に示すように、1本目の直線L1とし
て、始点をP1(X1、Y1)、終点をQ1(X2、Y
2)とする直線が指定された場合には、まず、1本目の
直線L1のX軸を基準とする傾きdy=(Y2−Y1)
/(X2−X1)を算出する。
Also in the second embodiment of the thick line / thick line broken line drawing method of the present invention, as in the first embodiment, when a thick line is drawn, the start point of the first straight line for drawing the thick line,
Assuming that the coordinates and width of the end point are given,
For example, as shown in FIG. 14, as the first straight line L1, the start point is P1 (X1, Y1) and the end point is Q1 (X2, Y).
When the straight line defined as 2) is specified, first, the slope of the first straight line L1 with respect to the X axis is dy = (Y2-Y1).
/ (X2-X1) is calculated.

【0033】次に、図15に示すように、1本目の直線
L1の始点P1、終点Q1及び傾きdyから直線線形補
間を行い、1本目の直線L1を描画するための描画点D
11、D12、D13、…を求め、これらを描画する。
また、1本目の直線L1の始点P1を始点とする1本目
の直線L1に垂直な垂線PEを求める。
Next, as shown in FIG. 15, a drawing point D for drawing the first straight line L1 by performing linear linear interpolation from the start point P1, the end point Q1 and the slope dy of the first straight line L1.
11, D12, D13, ... Are obtained and these are drawn.
Further, a perpendicular line PE that is perpendicular to the first straight line L1 having the starting point P1 of the first straight line L1 as the starting point is obtained.

【0034】図16は指定された太線を描画するに必要
な2本目以降の直線L2、L3、…の始点P2、P3、
…を求める手順を示すフローチャートであり、図3に示
すフローチャートのX、Yを入れ替えたものである。す
なわち、本発明の太線/太線破線描画方法の第2実施形
態では、まず、(X1、Y1)、(dy、1、0)を記
憶する(ステップT1)。
FIG. 16 shows the starting points P2, P3, of the second and subsequent straight lines L2, L3, ... Required for drawing the designated thick line.
It is a flowchart which shows the procedure which calculates | requires ..., and is what replaced X and Y of the flowchart shown in FIG. That is, in the second embodiment of the thick line / thick broken line drawing method of the present invention, first, (X1, Y1) and (dy1, 0) are stored (step T1).

【0035】以下、図16に示すフローチャートに従っ
て2本目以降の直線L2、L3、…の始点P2、P3、
…を決定して、本発明の太線描画方法の第1実施形態と
同様の手法で描画することにより、図17Aに示すよう
に、X主軸の太線をその端部が直角となるように描画す
ることができる。
The starting points P2, P3 of the second and subsequent straight lines L2, L3, ... According to the flowchart shown in FIG.
.. is determined and is drawn by the same method as in the first embodiment of the thick line drawing method of the present invention, so that the thick line of the X main axis is drawn so that its ends are at right angles, as shown in FIG. 17A. be able to.

【0036】なお、X主軸の太線破線を描画する場合に
は、X主軸の太線を描画する場合と同様に、X主軸の太
線を描画するための描画点を求め、この描画点からX主
軸の太線の端部と同様の傾きで破線とするための描画点
の除去を行うことにより、図17Bに示すように、Y主
軸の太線破線をその各線分の端部が直角となるように描
画することができる。
When a thick broken line of the X main axis is drawn, a drawing point for drawing the thick line of the X main axis is obtained, and the drawing point of the X main axis is drawn from this drawing point as in the case of drawing the thick line of the X main axis. By removing the drawing points for making a broken line with the same inclination as the end of the thick line, as shown in FIG. 17B, the thick broken line of the Y spindle is drawn so that the end of each line segment becomes a right angle. be able to.

【0037】このように、本発明の太線/太線破線描画
方法の第2実施形態によれば、X主軸の太線又は太線破
線を描画する場合、2本目以降の直線又は直線破線の始
点の変更処理を行うだけで、太線の端部又は太線破線の
各線分の端部を直角に描画することができるので、自然
な形状のX主軸の太線又は太線破線の描画を小さな回路
規模かつ短い処理時間で行うことができる。
As described above, according to the second embodiment of the thick line / thick line broken line drawing method of the present invention, when a thick line or a thick line broken line of the X-spindle is drawn, a process for changing the starting point of the second straight line or straight line or straight line broken line is performed. You can draw the end of the thick line or the end of each line of the broken line at a right angle by simply performing the drawing. Therefore, you can draw the thick line or the broken line of the X-spindle in a natural shape with a small circuit scale and a short processing time. It can be carried out.

【0038】(本発明の太線/太線破線描画装置の一実
施形態)図18は本発明の太線/太線破線描画装置の一
実施形態の要部を示すブロック回路図であり、本発明の
太線/太線破線描画方法の第1実施形態及び第2実施形
態を実施することができるようにしたものである。
(Embodiment of thick line / thick line broken line drawing apparatus of the present invention) FIG. 18 is a block circuit diagram showing a main part of one embodiment of thick line / thick line broken line drawing apparatus of the present invention. This is to enable implementation of the first and second embodiments of the method of drawing a thick broken line.

【0039】本発明の太線/太線破線描画装置の一実施
形態では、太線を描画する場合、太線描画情報が与えら
れるが、太線描画情報は、図19に示すように、太線1
0の始点側の端辺11の中心点PAの座標(XA、Y
A)と、太線10の終点側の端辺12の中心点QBの座
標(XB、YB)と、太線10の幅Wが与えられる。太
線破線を描画する場合においても、太線描画情報と同様
の太線破線描画情報が与えられる。
In one embodiment of the thick line / thick line broken line drawing apparatus of the present invention, when the thick line is drawn, the thick line drawing information is given. However, as shown in FIG.
The coordinates (XA, Y
A), the coordinates (XB, YB) of the center point QB of the end side 12 on the end point side of the thick line 10, and the width W of the thick line 10 are given. Even when a thick broken line is drawn, thick broken line drawing information similar to the thick line drawing information is given.

【0040】図18中、13は太線又は太線破線が描画
されるフレームバッファ、14はフレームバッファ13
に太線又は太線破線を描画するための画素描画手段、1
5は与えられる太線描画情報又は太線破線描画情報に含
まれる座標(XA、YA)と座標(XB、YB)から太
線又は太線破線の傾きを算出する傾き算出手段、16は
座標(XA、YA)と座標(XB、YB)から1本目の
直線L1の始点P1の座標(X1、Y1)及び終点Q1
の座標(X2、Y2)を算出する座標算出手段である。
In FIG. 18, 13 is a frame buffer in which a thick line or a bold broken line is drawn, and 14 is a frame buffer 13.
Pixel drawing means for drawing a thick line or a thick broken line on
Reference numeral 5 is an inclination calculating means for calculating the inclination of the thick line or the thick broken line from the coordinates (XA, YA) and the coordinates (XB, YB) included in the given thick line drawing information or the thick broken line drawing information, and 16 is the coordinate (XA, YA). From the coordinates (XB, YB), the coordinates (X1, Y1) of the start point P1 of the first straight line L1 and the end point Q1
It is a coordinate calculation means for calculating the coordinates (X2, Y2).

【0041】17は太線又は太線破線の幅(W)情報か
ら幅方向の描画を制御する幅方向制御手段、18は太線
又は太線破線の座標(XA、YA)と座標(XB、Y
B)から得られる太線又は太線破線の長さ情報から長さ
方向の描画を制御する長さ方向制御手段である。
Reference numeral 17 is a width direction control means for controlling drawing in the width direction based on the width (W) information of a thick line or a thick broken line, and 18 is coordinates (XA, YA) and coordinates (XB, Y) of the thick line or the thick broken line.
It is a length direction control means for controlling the drawing in the length direction from the length information of the thick line or the thick broken line obtained from B).

【0042】19は描画に使用する直線の始点座標を記
憶させるための始点記憶手段、20は1本目の直線の始
点を垂線の足とする1本目の直線に垂直な仮想的な垂線
を計算する垂線計算手段、21は始点記憶手段19に記
憶されている始点座標と垂線計算手段20により計算さ
れた垂線を使用して直線の始点を計算する始点計算手
段、22は始点計算手段21により計算された始点を入
力して長さ方向制御手段18の制御により直線線形補間
を行い描画点(フレームバッファ13内の画素のアドレ
ス)を求める直線線形補間手段である。
Reference numeral 19 is a starting point storage means for storing the starting point coordinates of a straight line used for drawing, and 20 is a virtual perpendicular line perpendicular to the first straight line with the starting point of the first straight line as the foot of the perpendicular line. Perpendicular line calculating means, 21 is a starting point calculating means for calculating the starting point of a straight line using the starting point coordinates stored in the starting point storing means 19 and the perpendicular line calculated by the perpendicular line calculating means 20, and 22 is calculated by the starting point calculating means 21. It is a linear linear interpolating means for obtaining a drawing point (pixel address in the frame buffer 13) by inputting the starting point and performing linear linear interpolation under the control of the length direction control means 18.

【0043】23〜25は太線破線を描画する場合に使
用するものであり、23はレジスタを使用して破線パタ
ーンを記憶する破線パターンメモリ、24は直線線形補
間手段22が出力する描画点が直線上で何番目の位置の
描画点であるかを長さ方向制御手段18から取得するパ
ターン線形補間手段である。
Reference numerals 23 to 25 are used to draw a bold broken line, 23 is a broken line pattern memory for storing a broken line pattern using a register, and 24 is a drawing point output by the linear linear interpolation means 22 is a straight line. It is a pattern linear interpolation means for acquiring from the length direction control means 18 what position the drawing point is located above.

【0044】25はパターン線形補間手段24が出力す
る描画点の位置情報を入力して、直線線形補間手段22
が出力する描画点を描画すべきか否かを破線パターンメ
モリ23が記憶する破線パターンを参照して決定し、描
画すべきでない場合には、画素描画手段14にその描画
点を出力させないように制御するパターン参照手段であ
る。
A line linear interpolation unit 22 receives the position information of the drawing point output from the pattern linear interpolation unit 24.
Determines whether or not to draw the drawing point to be output, by referring to the broken line pattern stored in the broken line pattern memory 23, and when drawing should not be performed, the pixel drawing means 14 is controlled not to output the drawing point. Pattern reference means.

【0045】本発明の太線/太線破線描画装置の一実施
形態においては、太線を描画する場合、太線描画情報と
して、たとえば、図19に示すように、太線10の始点
側の端辺11の中心点PAの座標(XA、YA)と、太
線10の終点側の端辺12の中心点QBの座標(XB、
YB)と、太線10の幅Wが与えられる。
In one embodiment of the thick line / thick broken line drawing apparatus of the present invention, when a thick line is drawn, as the thick line drawing information, for example, as shown in FIG. The coordinates (XA, YA) of the point PA and the coordinates (XB, XB, of the center point QB of the end side 12 on the end point side of the thick line 10).
YB) and the width W of the thick line 10 is given.

【0046】すると、傾き算出手段15は座標(XA、
YA)と座標(XB、YB)から太線10の傾きを算出
し、これを垂線計算手段20及び直線線形補間手段22
に与える。また、座標算出手段16は座標(XA、Y
A)と座標(XB、YB)から太線10を描画するため
の1本目の直線L1の始点P1の座標(X1、Y1)及
び終点Q1の座標(X2、Y2)を算出し、これを始点
記憶手段19及び垂線計算手段20に与える。
Then, the inclination calculating means 15 causes the coordinates (XA,
The inclination of the thick line 10 is calculated from (YA) and the coordinates (XB, YB), and this is calculated as the perpendicular line calculation means 20 and the linear linear interpolation means 22.
Give to. Further, the coordinate calculation means 16 uses the coordinates (XA, Y
The coordinates (X1, Y1) of the starting point P1 and the coordinates (X2, Y2) of the ending point Q1 of the first straight line L1 for drawing the thick line 10 from A) and the coordinates (XB, YB) are calculated, and the starting point is stored. It is given to the means 19 and the perpendicular calculation means 20.

【0047】次に、始点計算手段21は始点記憶手段1
9が記憶する1本目の直線L1の始点P1の座標(X
1、Y1)を直線線形補間手段22に与え、直線線形補
間手段22は長さ方向制御手段18の制御により直線線
形補間を行い1本目の直線L1の描画点D11、D1
2、D13、…を求め、画素描画手段14は、これらを
フレームバッファ13に描画する(図2参照)。
Next, the starting point calculating means 21 is the starting point storing means 1
9 stores the coordinates of the starting point P1 of the first straight line L1 (X
1, Y1) to the linear linear interpolation means 22, and the linear linear interpolation means 22 performs linear linear interpolation under the control of the length direction control means 18 to draw points D11 and D1 of the first straight line L1.
2, D13, ... Are obtained, and the pixel drawing means 14 draws these in the frame buffer 13 (see FIG. 2).

【0048】次に、垂線計算手段20は1本目の直線L
1の始点を垂線の足とする1本目の直線L1に垂直な仮
想的な垂線PEを計算し(図2参照)、これを始点計算
手段21に与え、始点計算手段21は始点記憶手段19
に記憶されている1本目の直線L1の始点P1の座標
(X1、X1)と垂線計算手段20により計算された垂
線PEとを使用して2本目の直線L2の始点P2の座標
を計算する(図4参照)。
Next, the perpendicular line calculating means 20 determines the first straight line L.
A virtual perpendicular PE that is perpendicular to the first straight line L1 having the starting point of 1 as the foot of the perpendicular is calculated (see FIG. 2), and this is given to the starting point calculating means 21, and the starting point calculating means 21 causes the starting point storing means 19 to operate.
Using the coordinates (X1, X1) of the starting point P1 of the first straight line L1 and the perpendicular PE calculated by the perpendicular calculating means 20, the coordinates of the starting point P2 of the second straight line L2 stored in ( (See FIG. 4).

【0049】次に、始点記憶手段19は記憶内容を始点
計算手段21が計算した2本目の直線L2の始点P2の
座標に更新し、直線線形補間手段20は始点計算手段2
1が計算した2本目の直線L2の始点P2の座標を入力
して長さ方向制御手段18の制御により直線線形補間を
行い2本目の直線L2の描画点D21、D22、D2
3、…を求め、画素描画手段14は、これらをフレーム
バッファ13に描画する(図5参照)。
Next, the starting point storing means 19 updates the stored contents to the coordinates of the starting point P2 of the second straight line L2 calculated by the starting point calculating means 21, and the linear linear interpolating means 20 updates the starting point calculating means 2
The coordinates of the starting point P2 of the second straight line L2 calculated by 1 are input, linear linear interpolation is performed under the control of the length direction control means 18, and drawing points D21, D22, D2 of the second straight line L2 are performed.
3, the pixel drawing means 14 draws these in the frame buffer 13 (see FIG. 5).

【0050】次に、始点計算手段21は始点記憶手段1
9に記憶されている2本目の直線L2の始点P2の座標
と垂線計算手段20により計算された垂線PEとを使用
して3本目の直線L3の始点P3の座標を計算する(図
6参照)。
Next, the starting point calculation means 21 is the starting point storage means 1
Using the coordinates of the starting point P2 of the second straight line L2 stored in 9 and the perpendicular PE calculated by the perpendicular calculating means 20, the coordinates of the starting point P3 of the third straight line L3 are calculated (see FIG. 6). .

【0051】次に、始点記憶手段19は記憶内容を始点
計算手段21が計算した3本目の直線L3の始点P3の
座標に更新し、直線線形補間手段22は始点計算手段2
1が計算した3本目の直線L3の始点P3の座標を入力
して長さ方向制御手段18の制御により直線線形補間を
行い、3本目の直線L3の描画点D31、D32、D3
3、…を求め、画素描画手段14は、これらをフレーム
バッファ13に描画する(図7参照)。
Next, the starting point storage means 19 updates the stored contents to the coordinates of the starting point P3 of the third straight line L3 calculated by the starting point calculation means 21, and the linear linear interpolation means 22 updates the starting point calculation means 2.
The coordinates of the starting point P3 of the third straight line L3 calculated by 1 are input and linear linear interpolation is performed under the control of the length direction control means 18, and the drawing points D31, D32, D3 of the third straight line L3 are performed.
3, the pixel drawing means 14 draws these in the frame buffer 13 (see FIG. 7).

【0052】次に、始点計算手段21は始点記憶手段1
9に記憶されている3本目の直線L3の始点P3の座標
と垂線計算手段20により計算された垂線PEとを使用
して4本目の直線L4の始点P4を計算する(図8参
照)。
Next, the starting point calculating means 21 is the starting point storing means 1
The start point P4 of the fourth straight line L4 is calculated using the coordinates of the start point P3 of the third straight line L3 stored in 9 and the perpendicular PE calculated by the perpendicular calculating means 20 (see FIG. 8).

【0053】次に、始点記憶手段19は記憶内容を始点
計算手段21が計算した4本目の直線L4の始点P4の
座標に更新し、直線線形補間手段22は始点計算手段2
1が計算した4本目の直線L4の始点P4の座標を入力
して長さ方向制御手段18の制御により直線線形補間を
行い、4本目の直線L4の描画点D41、D42、D4
3、…を求め、画素描画手段14は、これらをフレーム
バッファ13に描画する(図9参照)。以下、同様の動
作が繰り返されて太線が描画される(図13A参照)。
Next, the starting point storage means 19 updates the stored contents to the coordinates of the starting point P4 of the fourth straight line L4 calculated by the starting point calculation means 21, and the linear linear interpolation means 22 updates the starting point calculation means 2
The coordinates of the starting point P4 of the fourth straight line L4 calculated by 1 are input, and linear linear interpolation is performed under the control of the length direction control means 18 to draw points D41, D42, D4 of the fourth straight line L4.
3, the pixel drawing means 14 draws these in the frame buffer 13 (see FIG. 9). Thereafter, the same operation is repeated to draw a thick line (see FIG. 13A).

【0054】また、フレームバッファ13に太線破線を
描画する場合には、パターン線形補間手段24は直線線
形補間手段22が出力する描画点が直線上で何番目の位
置の描画点であるかを長さ方向制御手段18から取得
し、パターン参照手段25はパターン線形補間手段24
が出力する描画点の位置情報を入力して、直線線形補間
手段22が出力する描画点を描画すべきか否かを破線パ
ターンメモリ23が記憶する破線パターンを参照して決
定し、描画すべきでない場合には、画素描画手段14に
その描画点を出力させないように制御し、太線破線を描
画させる(図13B参照)。
When drawing a thick broken line in the frame buffer 13, the pattern linear interpolation means 24 determines the drawing position of the drawing point output by the linear linear interpolation means 22 on the straight line. The pattern linear interpolation means 24
Input the position information of the drawing point output from the linear linear interpolation means 22 to determine whether or not to draw the drawing point output by the linear linear interpolation means 22 with reference to the broken line pattern stored in the broken line pattern memory 23, and not draw. In this case, the pixel drawing means 14 is controlled not to output the drawing point, and the thick broken line is drawn (see FIG. 13B).

【0055】以上のように、本発明の太線/太線破線描
画装置の一実施形態によれば、太線又は太線破線を描画
する場合、2本目以降の直線又は直線破線の始点の変更
処理を行うだけで、太線の端部又は太線破線の各線分の
端部を直角に描画することができるので、自然な形状の
太線又は太線破線の描画を小さな回路規模かつ短い処理
時間で行うことができる。
As described above, according to the embodiment of the thick line / thick line broken line drawing apparatus of the present invention, when the thick line or the thick line broken line is drawn, only the second straight line or the starting point of the straight line broken line is changed. Since the end of the thick line or the end of each line segment of the thick broken line can be drawn at a right angle, it is possible to draw the natural thick line or the thick broken line with a small circuit scale and a short processing time.

【0056】[0056]

【発明の効果】以上のように、本発明によれば、2本目
以降の直線又は直線破線の始点の変更処理を行うだけ
で、太線の端部又は太線破線の各線分の端部を直角に描
画することができるので、自然な形状の太線又は太線破
線の描画を小さな回路規模かつ短い処理時間で行うこと
ができる。
As described above, according to the present invention, it is possible to make the ends of thick lines or the ends of line segments of thick broken lines into right angles only by changing the starting points of the second straight line and straight broken lines. Since it can be drawn, it is possible to draw a thick line or a thick broken line having a natural shape with a small circuit scale and a short processing time.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 1 is a diagram for explaining a first embodiment of a thick line / thick line broken line drawing method of the present invention.

【図2】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 2 is a diagram for explaining the first embodiment of the thick line / thick line broken line drawing method of the present invention.

【図3】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 3 is a diagram for explaining a first embodiment of a thick line / thick line broken line drawing method of the present invention.

【図4】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 4 is a diagram for explaining a first embodiment of a thick line / thick line broken line drawing method of the present invention.

【図5】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 5 is a diagram for explaining a first embodiment of a thick line / thick line broken line drawing method of the present invention.

【図6】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 6 is a diagram for explaining a first embodiment of a thick line / thick line broken line drawing method of the present invention.

【図7】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 7 is a diagram for explaining a first embodiment of a thick line / thick line broken line drawing method of the present invention.

【図8】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 8 is a diagram for explaining a first embodiment of a thick line / thick line broken line drawing method of the present invention.

【図9】本発明の太線/太線破線描画方法の第1実施形
態を説明するための図である。
FIG. 9 is a diagram for explaining the first embodiment of the thick line / thick line broken line drawing method of the present invention.

【図10】本発明の太線/太線破線描画方法の第1実施
形態を説明するための図である。
FIG. 10 is a diagram for explaining the first embodiment of the thick line / thick line broken line drawing method of the present invention.

【図11】本発明の太線/太線破線描画方法の第1実施
形態を説明するための図である。
FIG. 11 is a diagram for explaining the first embodiment of the thick line / thick line broken line drawing method of the present invention.

【図12】本発明の太線/太線破線描画方法の第1実施
形態を説明するための図である。
FIG. 12 is a diagram for explaining the first embodiment of the thick line / thick line broken line drawing method of the present invention.

【図13】本発明の太線/太線破線描画方法の第1実施
形態を説明するための図である。
FIG. 13 is a diagram for explaining the first embodiment of the thick line / thick line broken line drawing method of the present invention.

【図14】本発明の太線/太線破線描画方法の第2実施
形態を説明するための図である。
FIG. 14 is a diagram for explaining a second embodiment of a thick line / thick line broken line drawing method of the present invention.

【図15】本発明の太線/太線破線描画方法の第2実施
形態を説明するための図である。
FIG. 15 is a diagram for explaining a second embodiment of a thick line / thick line broken line drawing method of the present invention.

【図16】本発明の太線/太線破線描画方法の第2実施
形態を説明するための図である。
FIG. 16 is a diagram for explaining a second embodiment of a thick line / thick line broken line drawing method of the present invention.

【図17】本発明の太線/太線破線描画方法の第2実施
形態を説明するための図である。
FIG. 17 is a diagram for explaining a second embodiment of a thick line / thick line broken line drawing method of the present invention.

【図18】本発明の太線/太線破線描画装置の一実施形
態の要部を示すブロック回路図である。
FIG. 18 is a block circuit diagram showing a main part of an embodiment of a thick line / thick line broken line drawing apparatus of the present invention.

【図19】本発明の太線/太線破線描画装置の一実施形
態を説明するための図である。
FIG. 19 is a diagram for explaining an embodiment of a thick line / thick line broken line drawing apparatus of the present invention.

【図20】従来の太線/太線破線描画方法が有する問題
点を説明するための図である。
FIG. 20 is a diagram for explaining a problem that a conventional thick line / thick broken line drawing method has.

【図21】従来の太線/太線破線描画方法が有する問題
点を説明するための図である。
FIG. 21 is a diagram for explaining a problem that a conventional thick line / thick line broken line drawing method has.

【符号の説明】[Explanation of symbols]

10…太線 11、12…太線の端辺 13…フレームバッファ 14…画素描画手段 15…傾き算出手段 16…座標算出手段 17…幅方向制御手段 18…長さ方向制御手段 19…始点記憶手段 20…垂線計算手段 21…始点計算手段 22…直線線形補間手段 23…破線パターンメモリ 24…パターン線形補間手段 25…パターン参照手段 10 ... Thick line 11, 12 ... Edges of thick line 13 ... Frame buffer 14 ... Pixel drawing means 15 ... Inclination calculation means 16 ... Coordinate calculation means 17 ... Width direction control means 18 ... Length direction control means 19 ... Starting point storage means 20 ... Perpendicular calculation means 21 ... Starting point calculation means 22 ... Linear linear interpolation means 23 ... Broken line pattern memory 24 ... Pattern linear interpolation means 25. Pattern reference means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】1本目の直線又は直線破線の描画に続いて
2本目以降の直線又は直線破線を順に隣接して描画する
ことにより太線又は太線破線を描画する太線/太線破線
描画方法であって、 前記太線の端部又は前記太線破線の各線分の端部が直角
に描画されるように、2本目以降の直線又は直線破線の
始点を計算する工程を有することを特徴とする太線/太
線破線描画方法。
1. A thick line / thick line broken line drawing method for drawing a thick line or a thick broken line by drawing a first straight line or a straight broken line and subsequently drawing a second straight line or a straight broken line in order. , A thick line / thick line broken line having a step of calculating the starting point of the second straight line or straight lines or straight line broken lines so that the end of the thick line or the end of each line segment of the thick broken line is drawn at a right angle How to draw.
【請求項2】1本目の直線又は直線破線の描画に続いて
2本目以降の直線又は直線破線を順に隣接して描画する
ことにより太線又は太線破線を描画する太線/太線破線
描画装置であって、 前記太線の端部又は前記太線破線の各線分の端部が直角
に描画されるように、2本目以降の直線又は直線破線の
始点を計算する手段を備えていることを特徴とする太線
/太線破線描画装置。
2. A thick line / thick line broken line drawing apparatus which draws a thick line or a thick broken line by drawing a second straight line or a straight broken line successively in order after drawing a first straight line or a straight broken line. , A means for calculating a starting point of a second straight line or straight line or straight line broken line so that the end of the thick line or the end of each line segment of the thick broken line is drawn at a right angle. Thick line dashed line drawing device.
【請求項3】前記手段は、前記1本目の直線又は直線破
線の始点を垂線の足とする前記1本目の直線又は直線破
線の垂線を計算する手段と、n本目(但し、nは1以上
の整数)の直線又は直線破線の始点及び前記垂線を利用
し、n+1本目の直線又は直線破線の始点を計算する手
段を備えていることを特徴とする請求項2記載の太線/
太線破線描画装置。
3. The means for calculating the straight line of the first straight line or the straight line of the straight broken line with the starting point of the first straight line or the straight broken line as the leg of the perpendicular line, and the n-th line (where n is 1 or more). 3. The thick line according to claim 2, further comprising means for calculating the start point of the (n + 1) th straight line or straight broken line by using the start point of the straight line or straight broken line of
Thick line dashed line drawing device.
JP2001262546A 2001-08-31 2001-08-31 Thick line/thick broken line plotting method and device Withdrawn JP2003076995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001262546A JP2003076995A (en) 2001-08-31 2001-08-31 Thick line/thick broken line plotting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001262546A JP2003076995A (en) 2001-08-31 2001-08-31 Thick line/thick broken line plotting method and device

Publications (1)

Publication Number Publication Date
JP2003076995A true JP2003076995A (en) 2003-03-14

Family

ID=19089432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001262546A Withdrawn JP2003076995A (en) 2001-08-31 2001-08-31 Thick line/thick broken line plotting method and device

Country Status (1)

Country Link
JP (1) JP2003076995A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7916145B2 (en) 2006-03-28 2011-03-29 Fujitsu Semiconductor Limited Drawing apparatus and dotted line drawing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7916145B2 (en) 2006-03-28 2011-03-29 Fujitsu Semiconductor Limited Drawing apparatus and dotted line drawing method

Similar Documents

Publication Publication Date Title
JPH0719297B2 (en) Graphic display processing system and method
JP2612260B2 (en) Texture mapping equipment
JP3507057B2 (en) Triangle polygon drawing apparatus and triangle polygon drawing method
JP3892016B2 (en) Image processing apparatus and image processing method
JP4998386B2 (en) Line drawing method
JP4055908B2 (en) Wipe pattern generator
JP2003076995A (en) Thick line/thick broken line plotting method and device
JP2005107602A (en) Three-dimensional image drawing device and three-dimensional image drawing method
JP4664169B2 (en) Graphic drawing apparatus and graphic drawing program
JPH05314250A (en) Method and device for smoothing enlarged image
JPH064679A (en) Image processor
JP2005038046A (en) Shading correcting device, method, and program, interpolation arithmetic unit used for shading correcting device, interpolation arithmetic method, interpolation arithmetic program, and its application device
JPH0758510B2 (en) Three-dimensional graphic processor
JP2885999B2 (en) Image processing apparatus and method
TW200404266A (en) Method of analyzing and modifying a footprint
JP4387611B2 (en) Drawing apparatus and drawing method
KR100742155B1 (en) Method and apparatus for making scan line
JP3587105B2 (en) Graphic data processing device
JPH087123A (en) Method and device for processing three-dimensional image
JP3054338B2 (en) Image processing apparatus and method
JP2000298729A (en) Two-dimensional image generation device
JP4666480B2 (en) Line drawing device
JPH05205070A (en) Graphic plotting method
JPH0520466A (en) Method and device for processing picture
JP2010198499A (en) Image processing device and method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20081104