JPH02148372A - System for converting segment having width - Google Patents

System for converting segment having width

Info

Publication number
JPH02148372A
JPH02148372A JP30378988A JP30378988A JPH02148372A JP H02148372 A JPH02148372 A JP H02148372A JP 30378988 A JP30378988 A JP 30378988A JP 30378988 A JP30378988 A JP 30378988A JP H02148372 A JPH02148372 A JP H02148372A
Authority
JP
Japan
Prior art keywords
drawing control
line segment
control command
dependent
conversion
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
JP30378988A
Other languages
Japanese (ja)
Inventor
Shigeru Nakamura
茂 中村
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 JP30378988A priority Critical patent/JPH02148372A/en
Publication of JPH02148372A publication Critical patent/JPH02148372A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To represent the with of a segment and, at the same time, to improve the processing speed when a segment having the width is converted by outputting a device- independent controlling instruction for drawing segment to a graphic outputting device after converting the instruction into a device-dependent controlling instruction for drawing graphics. CONSTITUTION:Device-independent controlling instruction strings for drawing graphics which are to be converted into device-dependent controlling instruction strings for drawing graphics are stored in a storage mans 1. A conversion processing means 2 successively converts the instructions in the means 1 into the device-dependent controlling instruction strings for drawing graphics by taking out the instructions from the means 1 one by one. When the means 2 detects a controlling instruction string for drawing segment during the course of the conversion, necessary information is delivered to a means 3 for processing conversion of controlling instructions for drawing segments through a register 5. The means 3 converts the device-independent controlling instruction string for drawing segment into a device-dependent controlling instruction string for drawing segment or square and returns the converted instruction to the means 2. The means 2 sends the converted device-dependent controlling instruction string for drawing graphics to a graphic output device 4 when the conversion is completed on all controlling instruction strings for drawing graphics.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、装置に独立な図形描画用制御命令列を装置に
依存する図形描画用制御命令列に変換して図形出力装置
へ出力する図形描画用制御命令列の変換方式に関し、特
に線幅を持つ線分の変換方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention provides a graphic drawing system that converts a device-independent graphic drawing control command string into a device-dependent graphic drawing control command string and outputs the converted graphic drawing control command string to a graphic output device. The present invention relates to a conversion method for a drawing control command sequence, and particularly to a conversion method for a line segment having a line width.

(従来の技術) 従来、この糧の線@を持つ線分の第1の変換方式は、図
形出力装置に線@全展開する機能が置かれていない場合
に、装置に依存する線分描画用制御命令を1ドツトずつ
ずらして、線幅と等しい幅になる数だけ出力するもので
ある。このような変換を行うことにより線幅を表現する
ことはできるが、第2の変換方式は、線ジを無視して常
に1ドツトの線幅で出力するような変換を行うものであ
る。
(Prior art) Conventionally, the first conversion method for line segments with this basic line @ has been used for device-dependent line segment drawing when the graphic output device does not have a function to fully expand lines @. The control commands are shifted one dot at a time and the number of dots equal to the line width is output. Although the line width can be expressed by performing such conversion, the second conversion method ignores the line width and performs a conversion that always outputs a line width of one dot.

(発明が解決しようとする課題) 上述した従来の線描を持つ線分を変換する方式は、線幅
と等しい幅になる数だけ線分を出力するか、あるbは線
幅を無視して常に1ドツトの線1で線分を出力していた
。従って、前者の場合には装置に独立な線分描画用制御
命令列を装置依存な線分描画用制御命令列に変換すると
き、その変換量が線暢分だけ増大し、その分処理速度が
運くなることになると云う欠点がちる。
(Problem to be Solved by the Invention) The conventional method for converting line segments with line drawings described above is to output only the number of line segments whose width is equal to the line width, or to always output line segments with a width equal to the line width. A line segment was output using line 1 of 1 dot. Therefore, in the former case, when converting a device-independent line segment drawing control instruction string into a device-dependent line segment drawing control instruction string, the amount of conversion increases by the amount of line length, and the processing speed increases accordingly. It has the disadvantage that it can be a matter of luck.

後者の場合には常に1ドツトの線幅で図形出力装置の画
面上に線分が出力されることになり、線幅を表現できな
いという欠点がある。
In the latter case, a line segment is always output on the screen of the graphic output device with a line width of one dot, and there is a drawback that the line width cannot be expressed.

本発明の目的は、線幅を持つ線分を変換するときに線幅
を表現し、且つ処理速度の向上金はかるため、装置に独
立な線分描画用制御命令を四角形や多角形の装置依存な
図形描画用制御命令に変換して図形出力装置に出力する
ことにより上記欠点を除去し、適確に線#A全表現でき
るように構成した線描を持つ純分の変換方式全提供する
ことにある。
The purpose of the present invention is to express the line width when converting a line segment with a line width, and to improve the processing speed. By converting the control commands into graphic drawing control commands and outputting them to a graphic output device, the above-mentioned drawbacks are eliminated, and we provide a complete conversion method for pure parts that has a line drawing configured to accurately represent the entire line #A. be.

(課題を解決するための手段) 本発明による線@を持つ線分の変換方式は記憶手段と、
変換処理手段と、線分描画用制御命令変換処理手段と、
図形出力装置とを具備して構成し念ものである。
(Means for Solving the Problem) The method of converting a line segment having a line @ according to the present invention includes a storage means,
a conversion processing means, a line segment drawing control command conversion processing means,
It is convenient to have a graphic output device.

記憶手段は、装置に独立な変換すべき図形描画用制御命
令列を格納するためのものである。
The storage means is for storing a device-independent sequence of graphic drawing control commands to be converted.

変換処理手段は、装置に独立な図形描画用制御命令列を
装置に依存する図形描画用制御命令列に変換するための
ものである。この場合に、変換処理手段は線分描画用制
御音@変換処理手段とともに、線描が2ドツト(画素)
以上の線分描画用制御命令は線分ではなく、四角形など
の多角形として変換する処理を実行するものである。
The conversion processing means is for converting a device-independent figure drawing control instruction string into a device-dependent figure drawing control instruction string. In this case, the conversion processing means, along with the line segment drawing control sound@conversion processing means, causes the line drawing to be 2 dots (pixels).
The above line segment drawing control command executes a process of converting not a line segment but a polygon such as a quadrilateral.

線分描画用制御命令変換処理手段は変換処理手段から構
成される装置に独立な線分描画用制御命令を装置に依存
する図形描画用制御命令に変換するためのものである。
The line segment drawing control command conversion processing means is for converting a device-independent line segment drawing control command, which is constituted by the conversion processing means, into a figure drawing control command that is device dependent.

線分描画用制御命令変換処理手段は変換処理手段ととも
に、線幅が2ビツト(画素)以上の線分描画用制御命令
を線分ではなく四角形などの多角形として変換する処理
を実行するためのものである。
The line segment drawing control command conversion processing means, together with the conversion processing means, executes processing for converting line segment drawing control commands having a line width of 2 bits (pixels) or more into polygons such as rectangles instead of line segments. It is something.

(実 施 例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は本発明による線幅金持つ線分の変換方式の一実
施13’ll k示すブロック図である。第1図におい
て、1は記憶手段、2は変換処理手段、3は線分描画用
制御命令変換処理手段、4は図形出力装置、5はレジス
タである。
FIG. 1 is a block diagram illustrating an implementation 13'llk of a method for converting line segments having a line width of 100% according to the present invention. In FIG. 1, 1 is a storage means, 2 is a conversion processing means, 3 is a line segment drawing control command conversion processing means, 4 is a graphic output device, and 5 is a register.

第1図において記憶手段1は、例えばコアメモリ上に設
定され、装置依存の図形描画用制御命令列に変換すべき
装置独立な図形描画用制御命令列が記憶手段1に格納さ
れる。
In FIG. 1, a storage means 1 is set, for example, on a core memory, and stores a device-independent graphic drawing control instruction string to be converted into a device-dependent graphic drawing control instruction string.

変換処理手段2は記憶手段lに格納された図形描画用制
御命令列から命合金1命合ずつ取出し、装置依存の図形
描画用制御命令列に変換してゆく。線分描画用制御命令
を検出し友時点で、必要な情報をレジスタ5を弁じて線
分描画用制御命令変換処理手段3へ渡す。この情報をも
とにして、線分描画用制御命令変換処理手段3は装ft
独立な線分描画用制御命令を装置依存な線分描画用制御
命令や四角形描画用制御命令に変換し、それらを変換処
理手段2に返却する。
The conversion processing means 2 extracts one instruction at a time from the graphic drawing control command string stored in the storage means 1, and converts it into a device-dependent graphic drawing control command string. When a line segment drawing control command is detected, the necessary information is passed to the line segment drawing control command conversion processing means 3 through a register 5. Based on this information, the line segment drawing control command conversion processing means 3
The independent line segment drawing control commands are converted into device-dependent line segment drawing control commands and rectangle drawing control commands, and these are returned to the conversion processing means 2.

変換処理手段2は、すべての図形描画用制御命令変換処
理が終了した段階で、変換された装置依存の図形描画用
制御命令列を図形出力装置4に送出する。図形出力装置
4は例えばCRTで構成され、変換処理手段2から受取
られた装置依存の図形描画用制御命令列を解読して表示
する。
The conversion processing means 2 sends the converted device-dependent graphic drawing control command sequence to the graphic output device 4 when all the graphic drawing control command conversion processing is completed. The graphic output device 4 is constituted by, for example, a CRT, and decodes and displays the device-dependent graphic drawing control command string received from the conversion processing means 2.

以上が本実施例の動作の概略である。次に、変換処理手
段2の処理の流れの一例を第2図に示す。ま几、線分描
画用制御命令変換処理手段3の処理の流れの一例を第3
図に示す。第2図および第3図の流れ図を参照しながら
、より詳細に本実施例の動作を説明する。
The above is an outline of the operation of this embodiment. Next, an example of the processing flow of the conversion processing means 2 is shown in FIG. An example of the processing flow of the line segment drawing control command conversion processing means 3 is shown in the third example.
As shown in the figure. The operation of this embodiment will be explained in more detail with reference to the flowcharts of FIGS. 2 and 3.

々お、記憶手段1には第4図に示すように、線分の幅を
持つ線幅制御命令と、線分を描く九めの座標値を持つ線
分描画用制御命令と、他の図形描画用制御命令とが任意
の順序で格納されているものとする。
As shown in FIG. 4, the storage means 1 contains a line width control command having the width of a line segment, a line segment drawing control command having the ninth coordinate value for drawing a line segment, and other figures. It is assumed that the drawing control instructions are stored in an arbitrary order.

第1図において、アプリケーションプログラムにより作
成された装置独立の図形描画用制御命令列は記憶手段1
に格納され、その後、変換処理手段2が起動される。
In FIG. 1, a device-independent figure drawing control instruction string created by an application program is stored in a storage means 1.
After that, the conversion processing means 2 is started.

変換処理手段2が起動されると、変換処理手段2はステ
ップ810により第2図の処理を開始し、記憶手段1よ
り1命令を入力する。次にステップ820に従ってすべ
ての命令の処理が終了したか否か判断する。
When the conversion processing means 2 is activated, the conversion processing means 2 starts the process shown in FIG. 2 in step 810, and inputs one command from the storage means 1. Next, according to step 820, it is determined whether processing of all instructions has been completed.

すべての命令の処理が終了し九場合には、ステップS7
0により図形出力袋f4へ変換データを出力して変換処
理を終了する。すべての命令の処理が終了していな論場
合には、ステップS30により命令種別を判定する。命
令が線幅制御命令であれば、ステップ840により線幅
のカレント値をワーク領域に記憶し、ステップS10に
従って次の命Wt読込む処理へ移る。
If all commands have been processed, step S7
0 outputs the conversion data to the graphic output bag f4 and ends the conversion process. If the processing of all instructions has not been completed, the instruction type is determined in step S30. If the command is a line width control command, the current value of the line width is stored in the work area in step 840, and the process moves to reading the next command Wt in step S10.

入力され之命令株別が線分描画用制御命令であれば、ス
テップ850により線分描画座標値、カレントの線幅値
、および装置独立な座標値を装置依存な座標値に変換す
るための変換マ) 17クス値をレジスタ5に設定し、
線分描画用制御命令変換処理手段3を呼出す。そこで、
ステップ810に戻って次の命令を読込む処理へ移る。
If the input command type is a line segment drawing control command, in step 850, the line segment drawing coordinate value, the current line width value, and the conversion to convert the device-independent coordinate value into device-dependent coordinate value are performed. M) Set the 17x value in register 5,
The line segment drawing control command conversion processing means 3 is called. Therefore,
Returning to step 810, the process moves to reading the next instruction.

入力した命令種別が線幅制御命令、あるいは線分描画用
制御命令のいずれでもない場合には、ステップ860に
従ってその命令を装置独立な図形描画用制御命令から装
置依存の図形描画用制御命令に変換する。その変換方式
については、本発明の対象外であるので省略する。ステ
ップ860に続いて、ステップ810に従って次の命令
を読込む処理へ移る。
If the input command type is neither a line width control command nor a line segment drawing control command, the command is converted from a device-independent figure drawing control command to a device-dependent figure drawing control command according to step 860. do. The conversion method is not covered by the present invention and will therefore be omitted. Following step 860, the process moves to step 810 to read the next instruction.

以上述べた処理により、装置独立な図形描画用制御命令
列は装置依存の図形描画用制御命令列に変換され、図形
出力装置4に出力される。
Through the processing described above, the device-independent graphic drawing control command string is converted into a device-dependent graphic drawing control command string, and is output to the graphic output device 4.

次に、第3図を参照して、装置独立な線分描画用制御命
令を装置依存な図形描画用制御台仝に変換してゆく過程
を説明する。
Next, with reference to FIG. 3, a process of converting a device-independent line segment drawing control command into a device-dependent figure drawing control system will be described.

レジスタ5を介して渡され九線幅のカレント値が2以上
であるか否かをステップ810により判定し、2以上で
あればステップ820により線分としてではなく、線幅
の太さの四角形としてカレント値を変換する。
It is determined in step 810 whether the current value of the nine line width passed through register 5 is 2 or more, and if it is 2 or more, in step 820 it is not treated as a line segment but as a rectangle with the thickness of the line width. Convert the current value.

線幅のカレント値が1であれば、ステップS30により
線分として変換し、呼出し元へ復帰する。
If the current value of the line width is 1, it is converted into a line segment in step S30, and the process returns to the calling source.

ここで、第1図に示す記憶手段1には第4図に示すよう
な各命令が格納されているものとする。
Here, it is assumed that the storage means 1 shown in FIG. 1 stores instructions as shown in FIG. 4.

上述した説明図において、第4図(a)は記憶手段1に
格納された各命令の格納状態管示す説明図であり、第4
図(b)は線幅制御命令を示す説明図である。第4図(
c)は線分描画用制御命令を示す説明図であり、図中の
X 1. Y tはそれぞれ線分の開始点、X2.Y2
はそれぞれ線分の終了点である。第4図(d)は図形描
画用制御命合金示す説明図であり、命令対応のオペラン
ドは命令コード値ごとにその形式が異なるものとする。
In the explanatory diagrams described above, FIG. 4(a) is an explanatory diagram showing the storage state of each instruction stored in the storage means 1.
Figure (b) is an explanatory diagram showing a line width control command. Figure 4 (
c) is an explanatory diagram showing line segment drawing control commands, and X1. Yt is the starting point of the line segment, X2. Y2
are the end points of each line segment. FIG. 4(d) is an explanatory diagram showing the control instructions for drawing graphics, and it is assumed that the operands corresponding to the instructions have different formats depending on the instruction code value.

(発明の効果) 以上説明し友ように本発明は、装置独立な図形描画用制
御命令列中の線分描画用制御命令を装置依存な図形描画
用制御命令に変換するときに、線幅が2以上のとき線幅
を一辺の長さとした四角形としてカレント値を変換する
ことにより、従来の線分を線1隔と同じ太さになる数だ
け1ドツトずつずらして変換し、これによって線の太さ
を表現する方式に比較して変換データ量を少なくできる
と云う効果がある。
(Effects of the Invention) As explained above, the present invention has the advantage that when converting a line segment drawing control command in a device-independent figure drawing control command sequence into a device-dependent figure drawing control command, When it is 2 or more, by converting the current value as a rectangle with the line width as the length of one side, the conventional line segment is converted by shifting it one dot at a time by the number of lines that have the same thickness as one line interval. This method has the effect of reducing the amount of converted data compared to methods that express thickness.

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

第1図は本発明による線幅を持つ線分の変換方式の一実
施例を示すブロック図である。第2図は、第1図に示す
変換処理手段の処理の一例奢示す流れ図である。第3図
は、第1図に示す線分描画用制御命令変換処理手段の処
理の一例を示す流れ図である。第4図は、第1図の記憶
手段に格納された命令の形式を示す説明図である。 1・・・記憶手段   2・・・変換処理手段3・・・
線分描画用制御命令変換処理手段4・・・図形出力装置 5・・・レジスタ
FIG. 1 is a block diagram showing an embodiment of a line segment conversion method having a line width according to the present invention. FIG. 2 is a flowchart showing an example of the processing of the conversion processing means shown in FIG. FIG. 3 is a flowchart showing an example of the processing of the line segment drawing control command conversion processing means shown in FIG. FIG. 4 is an explanatory diagram showing the format of instructions stored in the storage means of FIG. 1. 1... Storage means 2... Conversion processing means 3...
Line segment drawing control command conversion processing means 4...Figure output device 5...Register

Claims (1)

【特許請求の範囲】[Claims] 装置に独立な変換すべき図形描画用制御命令列を格納す
るための記憶手段と、前記装置に独立な図形描画用制御
命令列を装置に依存する図形描画用制御命令列に変換す
るための変換処理手段と、前記変換処理手段から呼出さ
れ、前記装置に独立な線分描画用制御命令を前記装置に
依存する図形描画用制御命令に変換するための線分描画
用制御命令変換処理手段と、前記変換された装置に依存
する図形描画用制御命令列を図形として出力するための
図形出力装置とを備え、且つ、前記変換処理手段は前記
線分描画用制御命令変換処理手段とともに、前記装置に
独立な線分描画用制御命令を前記装置に依存する図形描
画用制御命令に変換する場合に、線幅が2ドット(画素
)以上の線分描画用制御命令は、四角形等の多角形とし
て変換する処理を実行するように構成したことを特徴と
する線幅を持つ線分の変換方式。
a storage means for storing a device-independent figure drawing control instruction string to be converted; and a conversion device for converting the device-independent figure drawing control instruction string into a device-dependent figure drawing control instruction string. a processing means, a line segment drawing control command conversion processing means called from the conversion processing means and for converting a line segment drawing control command independent of the device into a figure drawing control command dependent on the device; and a graphic output device for outputting the converted device-dependent graphic drawing control instruction sequence as a graphic, and the conversion processing means, together with the line segment drawing control instruction conversion processing means, is provided in the device. When converting an independent line segment drawing control command into a figure drawing control command that depends on the device, a line segment drawing control command with a line width of 2 dots (pixels) or more is converted as a polygon such as a rectangle. A method for converting a line segment having a line width, characterized in that the method is configured to perform processing to convert a line segment having a line width.
JP30378988A 1988-11-30 1988-11-30 System for converting segment having width Pending JPH02148372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30378988A JPH02148372A (en) 1988-11-30 1988-11-30 System for converting segment having width

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30378988A JPH02148372A (en) 1988-11-30 1988-11-30 System for converting segment having width

Publications (1)

Publication Number Publication Date
JPH02148372A true JPH02148372A (en) 1990-06-07

Family

ID=17925311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30378988A Pending JPH02148372A (en) 1988-11-30 1988-11-30 System for converting segment having width

Country Status (1)

Country Link
JP (1) JPH02148372A (en)

Similar Documents

Publication Publication Date Title
JPH0812668B2 (en) Handwriting proofreading method
JPH02148372A (en) System for converting segment having width
JPS6321158A (en) Printer output device
US5680153A (en) Image Processing apparatus
JP2611971B2 (en) Output device
JP2937508B2 (en) Bitmap expansion method
JP2937509B2 (en) Bitmap expansion method
JP2909072B2 (en) Document processing method and apparatus
JPH02166497A (en) Conversion system for graphic segment drawn character
JPH06274637A (en) Image plotter
JPS61144688A (en) Character generation system
JP3124055B2 (en) Character input control device
JPH0695642A (en) Device for generating character/sign pattern
JP2526004B2 (en) System for incorporating image of graphic system into text processing system and method of incorporating image of graphic system into text processing system
JP3012269B2 (en) Printing control device
JP2000235651A (en) Compiling method/device for raster data
JPS63250735A (en) Image output device
JPH0765177A (en) System and device for image processing
JPS61246878A (en) Graphic document processor
JPS62232027A (en) Printing system for graphics in line printer
JPS63250734A (en) Image output device
JPS622369A (en) After-attaching system for graphic command conversion
JPH03232375A (en) Picture processor
JPH0250776A (en) Coordinate transforming type automatic preparation converting system for graphic plotting instruction strings
JPH05307598A (en) Picture processor