JPS63213090A - Control instruction string development system for line segment plotting - Google Patents

Control instruction string development system for line segment plotting

Info

Publication number
JPS63213090A
JPS63213090A JP4594087A JP4594087A JPS63213090A JP S63213090 A JPS63213090 A JP S63213090A JP 4594087 A JP4594087 A JP 4594087A JP 4594087 A JP4594087 A JP 4594087A JP S63213090 A JPS63213090 A JP S63213090A
Authority
JP
Japan
Prior art keywords
line segment
line
control instruction
segment drawing
drawing control
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.)
Pending
Application number
JP4594087A
Other languages
Japanese (ja)
Inventor
Shigeru Nakamura
茂 中村
Ryohei Aizawa
相澤 良平
Yoshiharu Takeuchi
義晴 竹内
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP4594087A priority Critical patent/JPS63213090A/en
Publication of JPS63213090A publication Critical patent/JPS63213090A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To develop a line segment string including a dot such as an alternate long and short dash line, an alternate long and two short dashes line and a dotted line outputted by a device to make the line segment which has a fixed line width by developing the line segment including the dot when a line has width, so that the dot becomes the line segment string having the fixed line width on the device coordinate. CONSTITUTION:In a control instruction string storing means 1 for line segment plotting a control instruction string for line segment plotting to be developed for the aggregate representation of the dots on the device co-ordinate is stored. By a control instruction developing and processing means 2 for the line segment plotting the control instruction string for the line segments plotting stored in the means 1 is fetched one instruction by one and developed as the aggregation of the dots on the device co-ordinate. Then required information is supplied to a lie segment plotting instruction analysis means 3 through a register 5. By the means 3, a co-ordinate value representing the dot in the line segment plotting instruction is developed to the co-ordinate value on the device co-ordinate based on that information and the developed device co-ordinate value is returned to the means 2. By the mean 2, image data developed as the aggregation of the dots on the device co-ordinate is transmitted to a graphic output device 4 when all the processing of the control instruction for the line segment plotting is finished.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、線分描画用制御命令列を装置座標上の点の集
合表現に展開してCRT、日本語プリンタなどの図形出
力装置へ出力する線分描画用制御命令列展開方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a line drawing system that expands a line segment drawing control command sequence into a set representation of points on device coordinates and outputs it to a graphic output device such as a CRT or Japanese printer. This invention relates to a control instruction sequence expansion method for minute drawing.

従来の技術 従来、この種の線分描画用制御命令列の展開は、展開す
る線分に幅(太さ)がありその線分の、vi1種が一点
鎖線の様に点を含む場合に、その点の装置座標上への展
開方法としては、第5図(a)、(b)に示す様に、X
軸方向かY軸方向のどちらかに平行な線の太さ分の長さ
の線分として展開されていた。
BACKGROUND ART Conventionally, when the line segment to be developed has a width (thickness) and the VI1 type of the line segment includes a point, such as a dashed-dotted line, this type of line segment drawing control command sequence has been developed. As shown in Figures 5(a) and (b), the method for developing the point on the device coordinates is as follows:
It was developed as a line segment with a length equal to the thickness of a line parallel to either the axial direction or the Y-axis direction.

第3図(a)はY軸方向に点が線の太さ分の線分として
展開された例を示し、第5図(b)はX軸方向に点が線
の太さ分の線分として展開された例を示している。
Figure 3 (a) shows an example in which points are developed as line segments with the thickness of the line in the Y-axis direction, and Figure 5 (b) shows a line segment with points in the X-axis direction with the thickness of the line. An example expanded as follows is shown.

発明が解決しようとする問題点 しかしながら、上述した従来の線分展開方式では、一点
鎖線の様に点を含みかつ線分に幅がある場合の点を線幅
分の長さの線分としてX軸方向かY軸方向のどちらかの
一定方向に機械的に展開するだけなので、装置に出力さ
れた一点鎖線、二点□ 鎖線、点線等の点を含む線分が
一定の線幅を持っているように見えなかったという欠点
がある。
Problems to be Solved by the Invention However, in the conventional line segment expansion method described above, when the line segment includes a point and has a width, such as a dashed-dotted line, the point is defined as a line segment with a length equal to the line width. Since it is only mechanically expanded in a fixed direction, either the axial direction or the Y-axis direction, the line segments containing points such as one-dot chain line, two-dot chain line, two-dot chain line, dotted line, etc. output to the device have a constant line width. The drawback is that it didn't seem like it was there.

本発明は従来の上記事情に鑑みてなされたものであり、
従って本発明の目的は、線に幅のある場合の一点鎖線、
二点鎖線、点線等の点を含む線分を装置座標上で一定の
線幅を持った線分列となるように展開することにある。
The present invention has been made in view of the above-mentioned conventional circumstances, and
Therefore, the object of the present invention is to solve the problem of a dashed-dotted line when the line has a width.
The purpose of this method is to develop line segments including points such as two-dot chain lines and dotted lines so that they become a line segment array with a constant line width on the device coordinates.

問題点を解決するだめの手段 上記目的f達成するために、本発明に係る線分描画用制
御命令列展開方式は、線分描画用制御命令列を装置座標
上の点の集合表現に展開して装置上に描かせる処理にお
いて、展開すべき線分描画用制御命令列が格納される線
分描画用制御命令列記憶手段と、該線分描画用制御命令
列記憶手段から線分描画用制御命令列を入力して装置座
標上の点の集合表現に展開する処理を行なう線分描画用
制御命令展開処理手段と、該線分描画用制御命令展開処
理手段から呼び出され線分を装置座標上の点の集合に展
開する際の展開の方法を解析する線分描画命令解析手段
とを具備して構成され、線の幅がコドット以上でかつ点
を表現する座標値が入力された場合の装置座標上での展
開座標値を、線分描画命令として入力された点を表現す
る座標値とその次の命令の先頭に現われる座標値との両
方を基に決定することを特徴とする。
Means for Solving the Problems In order to achieve the above objective f, the line segment drawing control instruction sequence expansion method according to the present invention expands the line segment drawing control instruction sequence into a set representation of points on the device coordinates. A line segment drawing control instruction string storage means stores a line segment drawing control instruction string to be developed, and a line segment drawing control instruction string is stored from the line segment drawing control instruction string storage means. Line segment drawing control command expansion processing means that inputs a command string and expands it into a set representation of points on device coordinates; and a line segment drawing command analysis means for analyzing an expansion method when expanding into a set of points, and the device is configured to be used when the width of the line is equal to or larger than a codot and coordinate values representing the point are input. It is characterized in that the expanded coordinate values on the coordinates are determined based on both the coordinate values representing the points input as a line segment drawing command and the coordinate values appearing at the beginning of the next command.

実施例 次に本発明をその好ましい一実施例について図面を参照
して具体的に説明する。
Embodiment Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック構成図である
FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図を参照するに、参照番号/は線分描画用制御命令
列記憶手段、コは線分描画用制御命令展開処理手段、3
は線分描画命令解析手段、ダは図形出力装置、Sはレジ
スタをそれぞれ示している。
Referring to FIG. 1, the reference number / is line segment drawing control command string storage means, ko is line segment drawing control command expansion processing means, 3
denotes a line segment drawing command analysis means, da denotes a graphic output device, and S denotes a register.

ここで、線分描画用制御命令列記憶手段lは、例えば主
記憶装置上に設定され、装置座標上の点の集合表現に展
開すべき線分描画用制御命令列が格納される。線分描画
用制御命令展開処理手段]は、線分描画用制御命令列記
憶手段lに格納された線分描画用制御命令列をl命令ず
つ取り出し、装置座標上の点の集合として展開していき
、そして必要であれば必要情報をレジスタ3を介して線
分描画命令解析手段3へ渡し、この情報を基にして線分
描画命令解析手段3は、線分描画命令中の点を表現した
座標値を装置座標上での座標値に展開し、展開した装置
座標値を線分描画用制御命令展開手段−に返却する。線
分描画用制御命令展開手段]はすべての線分描画用制御
命令の処理が終った段階で装置座標上の点の集合として
展開したイメージデータを図形出力装置trtyc送る
。図形出力装置ダは、例えばCRTで構成され、線分描
画用制御命令展開処理手段−から受は取ったイメージデ
ータを解読して表示する。
Here, the line segment drawing control command string storage means 1 is set, for example, on the main storage device, and stores a line segment drawing control command string to be developed into a set representation of points on the device coordinates. The line segment drawing control command expansion processing means takes out the line segment drawing control command sequence stored in the line segment drawing control command sequence storage means l, one by one, and expands it as a set of points on the device coordinates. Then, if necessary, necessary information is passed to the line segment drawing command analysis means 3 via the register 3, and based on this information, the line segment drawing command analysis means 3 expresses the points in the line segment drawing command. The coordinate values are expanded into coordinate values on the device coordinates, and the expanded device coordinate values are returned to the line segment drawing control command expansion means. When all the line segment drawing control commands have been processed, the line segment drawing control command expansion means sends the image data developed as a set of points on the device coordinates to the graphic output device trtyc. The graphic output device is composed of, for example, a CRT, and decodes and displays the image data received from the line segment drawing control command development processing means.

以上が本実施例の動作の概略であるが、次に、線分描画
用iIi制御命令展開処理手段−の処理の一例を示す第
2図の流れ図、線分描画命令解析手段3の処理の一例を
示す第3図の流れ図等を参照しながらより詳細に本実施
例の動作を説明する。なお、線分描画用制御命令列記憶
手段lに格納されている命令列は第を図に示す様に、線
幅を表わす線幅属性命令と線分を引くための線分描画命
令が存在する。そして、一つの命令の表われる順序に規
則性はない。線幅属性命令には線の幅を表わす値が格納
されている。線分描画命令には折れ線の頂点を表わす座
標値がX座標値、X座標値を一組として頂点の数の組数
だけ格納されている。また、座11値(Xl、 Yl)
、 (X2. Y2 )・(Xn、 Yn )で描かれ
る折れ線は必ず連続しており、少くとも(Xl、 Yl
)、 (X2. Y2 )の一点は必ず存在している。
The above is an outline of the operation of this embodiment. Next, the flowchart in FIG. The operation of this embodiment will be explained in more detail with reference to the flowchart in FIG. As shown in the figure, the command sequence stored in the line segment drawing control command sequence storage means 1 includes a line width attribute command representing the line width and a line segment drawing command for drawing the line segment. . There is no regularity in the order in which a single command appears. The line width attribute command stores a value representing the line width. In the line segment drawing command, coordinate values representing the vertices of the polygonal line are stored as many sets as the number of vertices, with the X coordinate value and the X coordinate value being one set. Also, locus 11 values (Xl, Yl)
, (X2. Y2 )・(Xn, Yn) is always continuous, and at least (Xl, Yl
), (X2. Y2 ) always exists.

そして、(Xl、 Yl)、 (X2. Y2 )・・
・(Xn 、 Yn )の各座標値は重なっていること
があるという条件があるものとする。
And (Xl, Yl), (X2. Y2)...
- It is assumed that there is a condition that the coordinate values of (Xn, Yn) may overlap.

第1図において、アプリケーションプログラム等により
生成された線分描画用制御命令列は線分描画用制御命令
列記憶手段/に格納され、その後、線分描画用制御命令
展開処理手段−が起動される。
In FIG. 1, a line segment drawing control instruction string generated by an application program or the like is stored in a line segment drawing control instruction string storage means, and then a line segment drawing control instruction expansion processing means is activated. .

線分描画用制御命令展開処理手段コは、起動されると第
2図の処理を開始し、1つの線分描画命令がすべて同一
のX、Y座標値を持っていたか否かの判別をするための
点座標検出フラグをθに初期設定する(S10)。
When the line segment drawing control command development processing means is activated, it starts the process shown in FIG. 2, and determines whether all one line segment drawing command has the same X and Y coordinate values. A point coordinate detection flag for this purpose is initially set to θ (S10).

次に線分描画用制御命令列記憶手段/より命令を取り出
す(S 20)。すべての命令の処理か終了したか否か
判断しくS、?θ)、すべての命令の処理が終了した場
合には図形出力装置ダヘ展開データを出力して(522
o・)1、展開処理を終了する。すべての命令の処理が
終了していない場合−は、命令種別を判定しそれが線幅
属性命令であれば線幅のカレント値をワーク領域に記憶
しておき(S/ざO)、次の命令を読み込む処理(S〃
)へ移る。入力した命令種別が線分描画命令であれば、
その命令内に存在するl座標点を入力しワーク領域に(
Xp。
Next, a command is taken out from the line segment drawing control command string storage means (S20). I want to judge whether all commands have been processed or not? θ), and when the processing of all commands is completed, the expanded data is output to the graphic output device (522).
o.) 1. End the expansion process. If all commands have not been processed yet, determine the command type, and if it is a line width attribute command, store the current value of the line width in the work area (S/ZA), and then Process of reading instructions (S〃
). If the input command type is a line segment drawing command,
Input the l coordinate point that exists in that command and put it in the work area (
Xp.

Yp)を記憶する(SSO)。ここで(Xp、Yp)は
最も近く入力されたl座標点を意味する。次にl命令内
の全座標点の入力が終了したか否かを全コマンド終了か
又は次の命令コードの検出により判定しくS+θ)、も
しそうであれば、l命令内の先頭の座標値(Xs 、 
Ys )とl命令内で最も最後に読み込んだ入力座標値
(Xo、Yo)を比較しくS/90 )、等しくなけれ
ば次の命令を人力する(S20)。等しければ点を表現
する命令が入力されたことになるので点座標検出フラグ
をlにする(S−〇〇)。そして点を表現する座標値を
(X−1,Y−1)としてワーク領域に記憶し、次の命
令を入力する(S〃)。l命令内の全座標点の入力が終
了しなければ、l命令内の最初の座標点か否か判定しく
S to )、そうであれば(、Xp、Yp)を(Xs
、Ys)を記憶するワーク領域に移送しく 5ieo 
)、さらに(Xp、Yp)を(Xo、Yo)を記憶する
ワーク領域に移送しく 5tso )、そしてl座標点
を入力する処理へ移る(S、tO)。l命令内の最初の
座標点でなければ、点座標検出フラグが”/″かを判定
しく5g0)、そうでなければ5720へ移る。そうで
あれば(Xo、 Yo )、 (x−1,Y−s )の
一点を基に点を表現する座標値を展開するために線幅の
カレント値m、  (Xo、 Yo)、  (X−1,
Y−1)のそれぞれの点をレジスタ5に設定し、線分描
画命令解析手段Jを呼び出す(Sqo)。そして線分描
画命令解析手段3よりレジスタSに返却された点を表現
する座標値を展開した(x−1′、Y−1′)および(
X−1“、Y−1“)のコ点B’pよびB“を結ぶ線分
を描画する(S100)。次に点を表現した座標値の展
開処理は終了したので、点座標検出フラグを”o”にリ
セットする(SIlo)。次に点(Xp、Yp)と点(
Xo、Yo)が等しいか否か判定しくE3/:10)、
そうであれば線分を引く必要はないので、次の座標点を
入力する処理へ移る(SyO)。点(Xp 。
Yp) is stored (SSO). Here, (Xp, Yp) means the nearest input l coordinate point. Next, determine whether input of all coordinate points in the l instruction has been completed by checking whether all commands have been completed or by detecting the next instruction code (S + θ), and if so, the first coordinate value in the l instruction ( Xs,
Compare Ys) with the input coordinate values (Xo, Yo) read last in the l command (S/90), and if they are not equal, manually write the next command (S20). If they are equal, it means that a command to express a point has been input, so the point coordinate detection flag is set to l (S-〇〇). Then, the coordinate values representing the point are stored in the work area as (X-1, Y-1), and the next command is input (S). If input of all coordinate points in the l instruction is not completed, determine whether it is the first coordinate point in the l instruction (S to ), and if so, convert (, Xp, Yp) to (Xs
, Ys) to the work area where it is stored.
), then (Xp, Yp) is transferred to the work area where (Xo, Yo) is stored (5tso), and the process moves to inputting the l coordinate point (S, tO). If it is not the first coordinate point in the l command, it is determined whether the point coordinate detection flag is "/" (5g0), otherwise the process moves to 5720. If so, in order to develop the coordinate values representing the point based on one point (Xo, Yo), (x-1, Y-s), the current value of the line width m, (Xo, Yo), (X -1,
Each point of Y-1) is set in the register 5, and the line segment drawing command analysis means J is called (Sqo). Then, the coordinate values representing the point returned to the register S by the line segment drawing command analysis means 3 are expanded (x-1', Y-1') and (
Draw a line segment connecting points B'p and B" of is reset to “o” (SIlo). Next, point (Xp, Yp) and point (
To determine whether Xo, Yo) are equal or not, E3/:10),
If so, there is no need to draw a line segment, and the process moves to inputting the next coordinate point (SyO). Point (Xp.

Yp )と点(Xo、Yo)  が等しくなければコ点
を結ぶ線分をカレントの線幅値で描画する(S/3o)
If Yp) and the point (Xo, Yo) are not equal, draw a line segment connecting the points with the current line width value (S/3o)
.

次にカレントより7つ前の入力座標値を記憶しておくた
めに、(Xp、Yp)を(Xo、Yo)を記憶するワー
ク領域に移送する(S/、tO)。そして次のl座標点
を(Xp、Yp)を記憶するワーク領域に入力する処理
に移る(S、tO)。
Next, in order to store the seven input coordinate values before the current one, (Xp, Yp) is transferred to the work area where (Xo, Yo) is stored (S/, tO). Then, the process moves to inputting the next l coordinate point into the work area where (Xp, Yp) is stored (S, tO).

以上述べた処理により、線分描画用制御命令列記憶手段
lより入力された線分描画用制御命令列は装置座標上の
点の集合表現であるイメージテータに展開されて図形出
力装置に出力される。
Through the processing described above, the line segment drawing control command string inputted from the line segment drawing control command string storage means 1 is developed into an image data that is a set representation of points on the device coordinates, and is output to the graphic output device. Ru.

次に線分描画命令解析手段3の処理の一例を示す第3図
の流れ図と本発明の処理を基に点が線幅mの太さの線分
として展開された例を示す第6図と第7図を参照しなが
ら点を表現する座標の線分への展開方法を詳細に説明す
る。線分描画命令解析手段3は、線分描画用制御命令展
開処理手段−よりレジスタSを介して渡された(Xo、
Yo)。
Next, the flowchart of FIG. 3 shows an example of the processing of the line segment drawing command analysis means 3, and the flowchart of FIG. A method for developing coordinates representing points into line segments will be explained in detail with reference to FIG. The line segment drawing command analysis means 3 receives a command (Xo,
Yo).

(X−1,Y−1)の座標値で表現されるA2よび8点
と線幅mを基に点Bを装置座標上の座標値(X−1′、
Y−1′)ト(x−1″、Y−1“)テ示すレル点B′
ト点B“を結ぶ線分に展開する。この処理は、点A(X
o 、 Yo )と点B (X−1、Y−1’) を結
Jt:1mトM角に交わりかつ点Bを通過する様な線を
引き、点Bよりψずつの距離にある2つの点が求めるB
′< X−1′、 Y−11’ )、B// (X−1
“、  Y−+″)テアルトスルと以下の手順となる。
Based on the A2 and 8 points expressed by the coordinate values of (X-1, Y-1) and the line width m, point B is set to the coordinate values (X-1',
Y-1') (x-1'', Y-1'') point B'
and point B" into a line segment that connects point A (X
o, Yo) and point B (X-1, Y-1'), draw a line that intersects Jt: 1 m to M angle and passes through point B, and draw two lines that are ψ apart from point B. The point requires B
'<X-1',Y-11'), B// (X-1
", Y-+") and the following procedure.

第3図に示す様に、装置座標上のA点とB点を基にX軸
に対する線分の傾θを求めると、θはθ =  sin
  ’(Yo−Yl)/  (Xo−X  1)’+(
Yo−Y  3)’−−−(ハで求められる(FIO)
。次に点Bを通り装置座標のX軸に対してθ+qo0傾
いた線を引き、線幅をmとすると、点を表現する座標値
Bは点B′および点B“の座標値を(X−1′、Y−1
′)、(X呵“、Y−1“)とすると、 に展開される(F〃)。
As shown in Figure 3, if we calculate the slope θ of the line segment with respect to the X axis based on points A and B on the device coordinates, θ is θ = sin
'(Yo-Yl)/ (Xo-X 1)'+(
Yo-Y 3)' --- (obtained by C (FIO)
. Next, draw a line that passes through point B and is inclined by θ + qo0 with respect to the X-axis of the device coordinates, and if the line width is m, the coordinate value B representing the point is the coordinate value of point B' and point B'' (X- 1', Y-1
'), (X呵", Y-1"), it is expanded to (F〃).

本処理により求められた点B’pよびB“の装置座標値
を再びレジスタ3を介して線分描画用制御命令展開処理
手段]に返却し、点で表現された座標値の線分への展開
処理を終了する。
The device coordinate values of the points B'p and B'' obtained by this process are returned to the line segment drawing control command expansion processing means via the register 3, and the coordinate values expressed by the points are converted to the line segment. Finish the expansion process.

第6図は上述した処理を基に点が線幅mの太さの線分と
して展開された場合を示し、第7図は第6図のKにて示
す部分(円内)を拡大して示す図である。即ち、上述し
た如く、点A(Xo、Yo)と点B (X−1,Y−1
)  を結ぶ線と直角に交わり、点Bを通過する様な線
を引き、点Bよりm/2ずつのaつの点をそれぞれB’
(X−1’ 、 Y−1’ ) 、 B“(x−1“、
Y−1“)とすると、点B′およびB“を結ぶ線分が求
める線分となる。
Figure 6 shows the case where points are developed as line segments with a line width m based on the above-mentioned processing, and Figure 7 shows an enlarged view of the part indicated by K in Figure 6 (inside the circle). FIG. That is, as mentioned above, point A (Xo, Yo) and point B (X-1, Y-1
) Draw a line that intersects the line connecting at right angles and passes through point B, and draw a point of m/2 each from point B as B'
(X-1', Y-1'), B"(x-1",
Y-1"), the line segment connecting points B' and B" becomes the line segment to be sought.

発明の詳細 な説明したように、本発明によれば、線分描画用制御命
令列記憶手段に格納された線分描画用制御命令列を装置
座標上の点の集合表現に展開する処理において、線幅が
コドット以上でかつ点を表現する座標値が入力された場
合に装置座標上での展開方法を線分描画命令として入力
された点を表現する座標値とその次の命令の先頭に現わ
れる座標値との両方を基に決定することにより、線に幅
のある場合の一点鎖線、二点鎖線10点線等の点を含む
線分を装置座標上で一定の線幅を持った線分として見え
るように展開できるという効果が得られる。
As described in detail, according to the present invention, in the process of expanding a line segment drawing control instruction string stored in the line segment drawing control instruction string storage means into a set representation of points on device coordinates, When the line width is codot or more and the coordinate value representing a point is input, the method of expansion on the device coordinates is the coordinate value representing the input point as a line segment drawing command, and the coordinate value representing the input point appears at the beginning of the next command. By determining based on both the coordinate values and the line width, line segments that include points such as one-dot chain lines, two-dot chain lines, 10-dot lines, etc., can be treated as line segments with a constant line width on the device coordinates. The effect is that it can be expanded to be visible.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック構成図、第2
図は線分描画用制御命令展開処理手段]の動作例を示す
流れ図、第3図は線分描画命令解析手段3の動作例を示
す流れ図、第亭図は線分描画用制御命令列記憶手段/[
線幅属性命令と線分描画命令が格納された状態と命令の
形式を示す図、第S図(a)、(b)は装置座標上のX
軸およびY軸方向に点が線の太さ分の線分として展開さ
れた場合の一例を示す図であり、(a)はY軸方向に点
が線の太さ分の線分として展開された例を示す図1缶)
はX軸方向に点゛が線の太さ分の線分として展開された
例を示す図、第6図は本発明の処理を基に点が線幅mの
太さの線分として展開された場合の一例を示す図、およ
び第7図は第6図の一部分(円内)を拡大した図である
。 l・・・線分描画用制御命令列記憶手段、コ・・・線分
描画用制御命令展開処理手段、3・・・線分描画命令解
析手段、ダ・・・図形出力装置 第1図
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
FIG. 3 is a flowchart showing an example of the operation of the line segment drawing control command analysis means 3, and FIG. /[
A diagram showing the state in which line width attribute commands and line segment drawing commands are stored and the format of the commands. Figures S (a) and (b) are
FIG. 12 is a diagram showing an example of a case where a point is expanded as a line segment of the thickness of the line in the Y-axis direction and a point is expanded as a line segment of the thickness of the line in the Y-axis direction. (Figure 1 can showing an example)
6 is a diagram showing an example in which a point ゛ is developed as a line segment with a line width of m in the X-axis direction, and FIG. FIG. 7 is an enlarged view of a portion (inside the circle) of FIG. 6. l... Control command string storage means for line segment drawing, C... Control command expansion processing means for line segment drawing, 3... Line segment drawing command analysis means, D... Figure output device FIG.

Claims (1)

【特許請求の範囲】 線分描画用制御命令列を装置座標上の1ドット(画素)
が“オン”(対応ドットを塗りつぶす)か“オフ”(対
応ドットを塗りつぶさない)かの点の集合表現に展開し
て装置上に展開イメージを描く処理において、 展開すべき線分描画用制御命令列が格納される線分描画
用制御命令列記憶手段と、 前記線分描画用制御命令列記憶手段から線分描画用制御
命令列を入力して装置座標上の点の集合表現に展開する
処理を行なう線分描画用制御命令展開処理手段と、 前記線分描画用制御命令展開処理手段から呼び出され線
分を装置座標上の点の集合表現に展開する際の解析処理
を行なう線分描画命令解析手段と、を備え、線の幅が2
ドット以上でかつ点を表現する座標値が入力された場合
の装置座標上での展開座標値を、線分描画命令として入
力された点を表現する座標値とその次の命令の先頭に現
われる座標値との両方を基に決定することを特徴とする
線分描画用制御命令列展開方式。
[Claims] A line segment drawing control command sequence is defined as one dot (pixel) on the device coordinates.
In the process of drawing a developed image on the device by expanding it into a set representation of points that are "on" (corresponding dots are filled) or "off" (corresponding dots are not filled), the line segment drawing control command to be developed is a line segment drawing control instruction string storage means for storing line segment drawing control instruction strings, and a process of inputting a line segment drawing control instruction string from the line segment drawing control instruction string storage means and expanding it into a set representation of points on device coordinates. a line segment drawing control instruction expansion processing means for performing line segment drawing control instruction expansion processing means; and a line segment drawing instruction that is called from the line segment drawing control instruction expansion processing means and performs analysis processing when expanding the line segment into a set representation of points on the device coordinates. analysis means, and the width of the line is 2.
If a coordinate value that is larger than a dot and represents a point is input, the expanded coordinate value on the device coordinates is the coordinate value that represents the point input as a line segment drawing command and the coordinate that appears at the beginning of the next command. A control instruction string expansion method for line segment drawing that is characterized by determining based on both values and values.
JP4594087A 1987-02-28 1987-02-28 Control instruction string development system for line segment plotting Pending JPS63213090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4594087A JPS63213090A (en) 1987-02-28 1987-02-28 Control instruction string development system for line segment plotting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4594087A JPS63213090A (en) 1987-02-28 1987-02-28 Control instruction string development system for line segment plotting

Publications (1)

Publication Number Publication Date
JPS63213090A true JPS63213090A (en) 1988-09-05

Family

ID=12733273

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4594087A Pending JPS63213090A (en) 1987-02-28 1987-02-28 Control instruction string development system for line segment plotting

Country Status (1)

Country Link
JP (1) JPS63213090A (en)

Similar Documents

Publication Publication Date Title
JP2541539B2 (en) Graphic processing device
JPH02130595A (en) Image processor
JPS5995669A (en) Graphic processor
US6266444B1 (en) Character processing apparatus and method therefor
US5020002A (en) Method and apparatus for decomposing a quadrilateral figure for display and manipulation by a computer system
JPS63213090A (en) Control instruction string development system for line segment plotting
US5680153A (en) Image Processing apparatus
US5680527A (en) Information processing system having recognized pattern control
JP3129717B2 (en) Image processing apparatus and image processing method
JPS642953B2 (en)
JPH02270082A (en) Equipment for comparing coordinate pair of x-coordinate y-coordinate of object displayed by graphics subsystem
JP2606176B2 (en) Graphic processing unit
JPH03287297A (en) Character generating circuit
JP2545828B2 (en) Data display device
JP3063120B2 (en) Image drawing device
JPH01592A (en) Vector generation circuit
JPH064396A (en) Image plotter
JPH0581948B2 (en)
JPS63211466A (en) Graphic input device
JPH0397081A (en) Graphic display device
JPH0926777A (en) Method and device for graphic processing
JPS6132159A (en) Dma controller
JPH04268979A (en) Bit map developing system
JPH04352291A (en) Circle drawing system of graphic display system
JPH03168883A (en) Information processor having area filling function