JPH02304683A - Image processor - Google Patents

Image processor

Info

Publication number
JPH02304683A
JPH02304683A JP12452589A JP12452589A JPH02304683A JP H02304683 A JPH02304683 A JP H02304683A JP 12452589 A JP12452589 A JP 12452589A JP 12452589 A JP12452589 A JP 12452589A JP H02304683 A JPH02304683 A JP H02304683A
Authority
JP
Japan
Prior art keywords
line pattern
bit
line
angle
value
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.)
Granted
Application number
JP12452589A
Other languages
Japanese (ja)
Other versions
JP2898014B2 (en
Inventor
Shuichi Kumada
熊田 周一
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP1124525A priority Critical patent/JP2898014B2/en
Publication of JPH02304683A publication Critical patent/JPH02304683A/en
Priority to JP10304590A priority patent/JPH11213169A/en
Application granted granted Critical
Publication of JP2898014B2 publication Critical patent/JP2898014B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To attain proper plotting by approximately correcting the calculated angle of a circular arc. CONSTITUTION:When an angle on the circumference of a linear pattern is calculated, dot data on a circumference necessary for plotting in an image memory 8 are calculated from the angle and the bit information of a linear pattern obtained from a linear pattern storing part 4. The position of dot data setting up a bit to '1' is calculated in the image memory 8. The outline of a circle based upon the linear pattern is plotted in the image memory 8 based upon the data. The bit data developed to bits in the image memory 8 are trans ferred to a printer 20 through a printer interface 9 and the linear diagram of the circle is printed out by the printer.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理装置に関し、例えば、線パターンに基
づいて線図の輪郭線を描画する画像処理装置に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device, and for example, to an image processing device that draws the outline of a diagram based on a line pattern.

[従来の技術J 従来、この種の装置においては、例えば1.線パターン
に基づいて画像メモリ上に円(線図)の輪郭線を描画す
る場合、線パターンの描画途中で、−周の描画が終ると
きがある。その−例として、第5A図には、2点鎖線の
円が示されている。この円においては、角度θを有する
円弧力!線パターン一つ分の領域であり、角度Δθを有
する円弧は上記線パターンの一部である。このように、
従来においては、線パターンとその線パターンの一部の
パターンとによって円の輪郭が構成されている場合があ
る。
[Prior Art J] Conventionally, in this type of device, for example, 1. When drawing the outline of a circle (diagram) on an image memory based on a line pattern, the drawing of the -circumference may end in the middle of drawing the line pattern. As an example, FIG. 5A shows a chain double-dashed circle. In this circle, the arc force with angle θ! The area corresponds to one line pattern, and the arc having an angle Δθ is a part of the line pattern. in this way,
Conventionally, the outline of a circle may be composed of a line pattern and a part of the line pattern.

又、従来、線パターンに基づいて画像メモリ上に線図を
描画する場合には、線を太(すると、線の太さに応じて
縦方向の線パターンの拡大のみが行われていた。第10
図がその一例を示し、線幅を20ドツトとし、横方向へ
の拡大率を“l ”とした場合の2点鎖線である。
Furthermore, conventionally, when drawing a line diagram on an image memory based on a line pattern, the lines were thickened (then only the line pattern was enlarged in the vertical direction according to the thickness of the line. 10
The figure shows an example of this, and is a two-dot chain line when the line width is 20 dots and the horizontal expansion rate is "1".

[発明が解決しようとしている課題] しかしながら、上記の従来例では、まず、前者の場合、
線パターン一つ分の長さと円の半径とに基づ(補正が行
われなかったため、次のような欠点があった。
[Problem to be solved by the invention] However, in the above conventional example, first, in the former case,
Based on the length of one line pattern and the radius of the circle (correction was not performed), so there were the following drawbacks.

即ち、円を描画する輪郭線が太(なると、線パターンの
途切れ(一つの線パターンの描画途中で一周の描画が終
わる)が目立ち、適切な描画結果を得ることができない
という欠点があった。
That is, if the contour line for drawing a circle is thick (the line pattern ends in the middle of drawing one line pattern), the discontinuity of the line pattern becomes noticeable and it is difficult to obtain an appropriate drawing result.

又、後者の場合、縦方向への線パターンの拡大のみが行
われていたため、次のような欠点があった。
Furthermore, in the latter case, the line pattern was only enlarged in the vertical direction, resulting in the following drawbacks.

即ち、線を太くしても、横方向への拡大が行われないた
め、線の太さに応じた適切な描画結果が得られないこと
になる。このような場合、描画結果に対応する良好な印
刷結果を得ることができな(なる。
That is, even if the line is made thicker, the line is not expanded in the horizontal direction, so that an appropriate drawing result corresponding to the line thickness cannot be obtained. In such a case, it is not possible to obtain a good printing result corresponding to the drawing result.

本発明は上述した欠点に鑑みてなされたものであり、そ
の目的とするところは、円の大きさく円の半径の長さ)
に応じて、線パターン1つ当りの円弧の角度を正しく補
正してくれる画像処理装置を提供する点にある。
The present invention has been made in view of the above-mentioned drawbacks, and its purpose is to increase the size of the circle and the length of the radius of the circle.
An object of the present invention is to provide an image processing device that correctly corrects the angle of an arc per line pattern according to the angle of the arc per line pattern.

又、他の目的とするところは、線を太くしても適切な線
図を描画して(れる画像処理装置を提供する点にある。
Another object of the present invention is to provide an image processing device that can draw appropriate line diagrams even when the lines are thick.

[課題を解決するための手段] 上述した課題を解決し、目的を達成するため、本発明に
係わる画像処理装置は、少なくとも1ドツト以上の黒ド
ツト群と白ドツト群とが混在する線パターンを用いて円
を描画する処理を含む画像処理装置において、前記線パ
ターンの補正情報を含む線パターン情報を入力する入力
手段と、前記線パターンに基づいて前記線パターン1つ
当りの円弧の角度を算出する算出手段と、前記算出手段
で算出された円弧の角度を近似補正する補正手段とを備
える。
[Means for Solving the Problems] In order to solve the above-mentioned problems and achieve the objects, an image processing device according to the present invention creates a line pattern in which at least one group of black dots and a group of white dots coexist. an input means for inputting line pattern information including correction information for the line pattern; and calculating an arc angle for each line pattern based on the line pattern. and a correction means for approximately correcting the angle of the circular arc calculated by the calculation means.

又、少なくとも1ドツト以上の黒ドツト群と白ドツト群
とが混在する線パターンを用いて線図を描画する処理を
含む画像処理装置において、前記線パターンの変倍情報
を含む線パターン情報を入力する入力手段と、該入力手
段で入力された線パターン情報に基づいて前記線パター
ンを構成する黒ドツト群及び白ドツト群の各ドツト数を
変倍する変倍手段と、前記変倍手段で変倍された黒ドツ
ト数及び白ドツト数によって線パターンを描画する描画
手段とを備える。
Further, in an image processing apparatus that includes a process of drawing a line diagram using a line pattern in which at least one or more black dot groups and white dot groups are mixed, line pattern information including scaling information of the line pattern is input. an input means for inputting a line pattern, a scaling means for scaling the number of dots in a group of black dots and a group of white dots constituting the line pattern based on the line pattern information inputted by the input means; and drawing means for drawing a line pattern by multiplying the number of black dots and the number of white dots.

[作用] かかる構成によれば、人力手段は線パターンの補正情報
を含む線パターン情報を入力し、算出手段は線パターン
に基づいてその線パターン1つ当りの円弧の角度を算出
し、補正手段は算出手段で算出された円弧の角度を近似
補正するようにしている。
[Operation] According to this configuration, the human power means inputs line pattern information including line pattern correction information, and the calculation means calculates the angle of the circular arc for each line pattern based on the line pattern. The angle of the circular arc calculated by the calculating means is approximated and corrected.

又、入力手段は線パターンの変倍情報を含む線パターン
情報を入力し、変倍手段は入力手段で入力された線パタ
ーン情報に基づいて線パターンを構成する黒ドツト群及
び白ドツト群の各ドツト数を変倍し、描画手段は変倍手
段で変倍された黒ドツト数及び白ドツト数によって線パ
ターンを描画するようにしている。
Further, the input means inputs line pattern information including scaling information of the line pattern, and the scaling means inputs each of the black dot group and the white dot group constituting the line pattern based on the line pattern information inputted by the input means. The number of dots is scaled, and the drawing means draws a line pattern based on the number of black dots and the number of white dots scaled by the scale.

[実施例] 以下、添付図面を参照して本発明に係わる好適な実施例
を詳細に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

〈第1実施例〉 まず、第1実施例について説明する。<First example> First, a first example will be described.

この第1実施例では、ホストコンピュータから送られて
くる線パターン情報に基づいて線図なメモリ上に描画し
、外部装置に出力する画像処理装置を例に挙げて説明す
る。
In this first embodiment, an image processing apparatus that draws a diagram on a memory based on line pattern information sent from a host computer and outputs it to an external device will be described as an example.

第1図は本発明に係る第1実施例の構成を示すブロック
図である。図において、1は第1実施例の画像処理装置
を示している。この画像処理装置lは外部装置のプリン
タ20と接続されている。
FIG. 1 is a block diagram showing the configuration of a first embodiment according to the present invention. In the figure, reference numeral 1 indicates an image processing apparatus of the first embodiment. This image processing device 1 is connected to a printer 20 as an external device.

2は本装置l全体の動作をROMB中の各種プログラム
に従って制御するCPUを示している。本発明において
は、CPU2が円の線図を描画するときの制御方法に特
徴があるため、円の描画処理を中心に説明する。3は制
御プログラム、エラー処理プログラム、第4図に示され
るフローチャートに従ってCPLI2を動作させるプロ
グラム等を格納しているROMを示している。このRO
Ma中において、4は後述するが各種線パターンを形成
するためのビット情報が格納されている線パターン格納
部を示し、5は後述するが“360°゛の公約数をテー
ブル化した公約数テーブルを示している。6は上記各種
プログラムのワークエリア及びエラー処理時の一時退避
エリアとして用いるRAMを示している。
Reference numeral 2 denotes a CPU that controls the operation of the entire apparatus l according to various programs in the ROMB. The present invention is characterized by a control method when the CPU 2 draws a diagram of a circle, so the description will focus on the process of drawing a circle. 3 indicates a ROM that stores a control program, an error processing program, a program for operating the CPLI 2 according to the flowchart shown in FIG. 4, and the like. This R.O.
In Ma, 4 indicates a line pattern storage section in which bit information for forming various line patterns is stored, which will be described later, and 5 indicates a common divisor table containing the common divisors of 360°, which will be described later. 6 indicates a RAM used as a work area for the various programs mentioned above and a temporary save area during error processing.

そして、7は不図示のホストコンピュータから線パター
ン情報(円の半径や線の種類等)を入力する入力部を示
し、この入力部7によって入力された線パターン情報は
上記RAMe中に格納される。8は線図の描画情報、即
ち、画像データをビットパターンで展開する画像メモリ
を示している。9は画像メモリ8上に展開された画像デ
ータを受けとり、プリンタ20へ転送するプリンタイン
ターフェースを示し、lOは本装置1内のアドレス信号
、データ、制御信号を伝送するパスラインを示している
Reference numeral 7 indicates an input unit for inputting line pattern information (radius of a circle, type of line, etc.) from a host computer (not shown), and the line pattern information input by this input unit 7 is stored in the RAMe. . Reference numeral 8 indicates an image memory for developing line drawing information, that is, image data into bit patterns. Reference numeral 9 indicates a printer interface that receives image data developed on the image memory 8 and transfers it to the printer 20, and IO indicates a path line that transmits address signals, data, and control signals within the apparatus 1.

ここで、線パターン情報について説明する。Here, line pattern information will be explained.

第2図は第1実施例の線パターンの一例を示す図である
。同図中の線パターンは、32ビツト長の2点鎖線のビ
ットパターンであり、図中の“O”はビットの立ってい
ない白ビツト状態、“l”はビットの立っている黒ビツ
ト状態をそれぞれ示している。このようにして線パター
ン(32ビツト長のビット情報)が線パターン格納部4
に格納される。
FIG. 2 is a diagram showing an example of the line pattern of the first embodiment. The line pattern in the figure is a two-dot chain bit pattern with a length of 32 bits, and "O" in the figure indicates a white bit state with no bit set, and "l" indicates a black bit state with a bit set. are shown respectively. In this way, the line pattern (bit information with a length of 32 bits) is stored in the line pattern storage section 4.
is stored in

又、上記線パターンに基づいて円の輪郭線を描画する際
には、その線パターンで円の輪郭線を形成する場合、円
周上で何度の円弧に相当するかを計算する必要がある(
円周を360度とする)。
Also, when drawing the outline of a circle based on the above line pattern, it is necessary to calculate how many arcs on the circumference the circle corresponds to when forming the outline of the circle with that line pattern. (
The circumference is 360 degrees).

そこで、線パターンひとつ当りの円弧の角度(以下、「
θ」と称す)を算出する計算式を以下に示すと、 となる。上記計算式において、r360Jは360度の
円周の角度、「π」は円周率、「円の半径」は描こうと
する円の半径(単位はドツト)、r線パターンのビット
数」は線パターンのビット数32(第2図による)に相
当する値をそれぞれ示している。
Therefore, the angle of the arc per line pattern (hereinafter referred to as "
The calculation formula for calculating θ'' is shown below. In the above calculation formula, r360J is the angle of the 360 degree circumference, "π" is the pi ratio, "radius of the circle" is the radius of the circle to be drawn (in dots), and "number of bits of the r-line pattern" is the line Each shows a value corresponding to the number of bits of the pattern, 32 (according to FIG. 2).

次に、前述したROMB中の“360″の公約数テーブ
ル5について説明する。
Next, the common divisor table 5 of "360" in the ROMB mentioned above will be explained.

第3図は第1実施例の公約数テーブル5の内容を説明す
る図である。公約数テーブル5は、第3図に示される如
く、24個の公約数すべてにシリアルにポインタの番号
(n=1〜24)が付けられている1又、各公約数の値
はVnで示される。
FIG. 3 is a diagram illustrating the contents of the common divisor table 5 of the first embodiment. As shown in FIG. 3, the common divisor table 5 is a table in which pointer numbers (n=1 to 24) are serially attached to all 24 common divisors, and the value of each common divisor is indicated by Vn. It will be done.

例えば、公約数テーブル5のポインタが12番を指示し
た場合には、V+*=18となり、そのときの線パター
ンの円弧の角度は18度となる。
For example, when the pointer of the common divisor table 5 points to number 12, V+*=18, and the angle of the arc of the line pattern at that time is 18 degrees.

次に、第1実施例の動作について説明する。Next, the operation of the first embodiment will be explained.

第4図は第1実施例による線パターンを用いて円の輪郭
線を描画し、さらに、円の線図を印刷するまで処理を説
明するフローチャートである。
FIG. 4 is a flowchart illustrating the process from drawing the outline of a circle using the line pattern according to the first embodiment to printing the line diagram of the circle.

まず、線パターン情報が不図示のホストコンピュータか
ら送られると、線パターン情報に含まれる線パターンの
種類及び円の線図を示すデータ(円の半径等)に基づい
て線パターンが選択され複数ビット長の線パターンがR
AM6に格納される(ステップS1)、このとき、円の
半径等のデータ等も図示せぬがRAMe中に格納される
First, when line pattern information is sent from a host computer (not shown), a line pattern is selected based on the type of line pattern included in the line pattern information and data indicating a diagram of a circle (radius of a circle, etc.). The long line pattern is R
The data is stored in AM6 (step S1). At this time, data such as the radius of the circle, etc. are also stored in RAMe (not shown).

そして、RAM6から線パターンの総ビット数(長さ)
が読み出され、前述した線パターンひとつ当りの円弧の
角度を求める式に代入され、演算が実施される(ステッ
プS2)。
Then, from RAM6, the total number of bits (length) of the line pattern
is read out and substituted into the equation for determining the arc angle for each line pattern described above, and calculation is performed (step S2).

このようにして、上述の計算式に基づいて、線パターン
1つ当りの円周上の角度θ(単位:度)が算出されると
、“360”の公約数テーブル5の先頭番号(n=1)
にポインタがセットされる°(ステップS3)。そして
、ポインタの指す内容、即ち、値■、と、既に求めた角
度θとの比較が行われる(ステップS4)。その結果、
値Vlよりも角度θが大きい場合には、ポインタが1つ
進められ(ステップS5)、再びステップS4において
値v2と角度θとの比較が行われる。この・ ように、
値■。よりも角度θが大きい場合には、ポインタが24
番まで進めることが可能であるが、そのときの値V24
と角度θとの比較でも値V24よりも角度θが大きい場
合には、図示されていないが、エラーとしてメツセージ
がホストコンピュータ側に通知が行われる。
In this way, when the angle θ (unit: degree) on the circumference per line pattern is calculated based on the above calculation formula, the first number (n= 1)
A pointer is set to (step S3). Then, the content pointed by the pointer, that is, the value ■, is compared with the already determined angle θ (step S4). the result,
If the angle θ is larger than the value Vl, the pointer is advanced by one (step S5), and the value v2 and the angle θ are compared again in step S4. in this way,
Value■. If the angle θ is larger than
It is possible to advance to the number V24, but the value at that time is V24.
When the angle θ is larger than the value V24, a message is sent to the host computer as an error (not shown).

又、ステップS4において値V、が角度θと等しいと判
定されると、角度θは360の公約数となり、角度θの
線パターンで円の輪郭線を形成しても、線パターンが欠
けるような半端な角度が生ずることなく、画像メモリ8
上に円の線図を描画できるため、θ=v1のまま処理は
次のステップS9で進む。この判定は、θ” V tの
ときに限らず、ポインタの番号nに応じて値■。が変化
したときにも有効である。
Further, if it is determined in step S4 that the value V is equal to the angle θ, the angle θ becomes a common divisor of 360, and even if the outline of the circle is formed with the line pattern of the angle θ, the line pattern may be missing. image memory 8 without causing odd angles.
Since a circle diagram can be drawn above, the process proceeds to the next step S9 with θ=v1. This determination is valid not only when θ''V t, but also when the value ■ changes according to the pointer number n.

さらに、ステップS4において値■。が角度θより大き
いと判定されると、角度θから1つの前のポインタの指
す値V n−1を減算した値とポインタの指す値vnか
ら角度θを減算した値との比較が実施される(ステップ
S6)。この比較は、演算結果の角度θが2つの公約数
のうちどちらに近いかを調べる処理であって、近い方の
公約数が角度θの値となる。ステップS6の比較処理の
結果、角度θとポインタの低い方の値V n −+ と
の差が角度θとポインタの高い方の値vnとの差より大
きく且つ等しい場合、角度θがポインタの高い方の値V
nに近似補正される(ステップS7)。
Further, in step S4, the value ■. If it is determined that is larger than the angle θ, a comparison is performed between the value obtained by subtracting the value V n-1 pointed by one previous pointer from the angle θ and the value obtained by subtracting the angle θ from the value pointed by the pointer vn. (Step S6). This comparison is a process of checking which of the two common divisors the angle θ of the calculation result is closer to, and the closer common divisor becomes the value of the angle θ. As a result of the comparison process in step S6, if the difference between the angle θ and the lower value V n −+ of the pointer is greater than and equal to the difference between the angle θ and the higher value vn of the pointer, the angle θ is the higher value of the pointer. value V
Approximate correction is made to n (step S7).

又、角度θとポインタの低い方の値V n −rとの差
よりも角度θとポインタの高い方の値vnとの差の方が
大きい場合には、ポインタの低い方の値V 11−1が
角度θとして近似補正される(ステップS8)。尚、本
処理がステップS6の処理に進むためには、少な(とも
公約数テーブル5のポインタがn≧2のときである。
Furthermore, if the difference between the angle θ and the higher value vn of the pointer is greater than the difference between the angle θ and the lower value V n −r of the pointer, the lower value V 11− of the pointer 1 is approximated as the angle θ (step S8). Note that in order for this process to proceed to the process of step S6, the pointer of the common divisor table 5 is n≧2.

以上のようにして角度θが決定すると、次に、角度θと
線パターン格納部4からの線バクーンのビット情報とか
ら、画像メモリ7上への描画に必要な円周上の点データ
(0度〜360度の範囲)が演算される(ステップS9
)。この処理では、線パターン1つを描画するための角
度に基づいて32ビツトで表される線パターンのビット
数が間引き或は伸長される。そして、画像メモリ7上で
ビットを“1” (黒)にする点データの位置が演算さ
れ(ステップ5IO)、そのデータに基づいて画像メモ
リ7上に線パターンによる円の輪郭線が描画(展開)さ
れる(ステップ5ll)。
Once the angle θ is determined as described above, the point data on the circumference (0 degree to 360 degrees) is calculated (step S9
). In this process, the number of bits of a line pattern represented by 32 bits is thinned out or expanded based on the angle for drawing one line pattern. Then, the position of the point data that sets the bit to "1" (black) on the image memory 7 is calculated (step 5IO), and the outline of a circle is drawn (developed) using a line pattern on the image memory 7 based on the data. ) is performed (step 5ll).

さらに、ビット展開された画像メモリ7上のビットデー
タはプリンタインターフェース9を介してプリンタ20
へ転送され、プリンタ20により円の線図が印刷される
(ステップ512)。
Furthermore, the bit data on the image memory 7 that has been expanded into bits is transferred to the printer 20 via the printer interface 9.
and a circle diagram is printed by the printer 20 (step 512).

以上のアルゴルズムによって、印刷される円の輪郭線に
ついて、以下にその一例を説挙げる。
An example of the outline of a circle printed by the above algorithm will be described below.

第5B図は第1実施例の円の印刷結果の一例を示す図で
ある。第5B図に示される印刷結果は、半径22ドツト
、線幅3ドツトの円の輪郭線を示している。半径22ド
ツトの条件で、そのまま前述の計算式によって演算が行
われると、線パターン1つ当りの角度θは83度となる
。実際、演算結果は小数点以下の値を含んでいるが、角
度θは、例えば、小数点以下を四捨五入、切り捨て。
FIG. 5B is a diagram showing an example of the result of printing a circle according to the first embodiment. The printing result shown in FIG. 5B shows the outline of a circle with a radius of 22 dots and a line width of 3 dots. If the calculation is performed using the above formula under the condition of a radius of 22 dots, the angle θ per line pattern will be 83 degrees. Actually, the calculation result includes values below the decimal point, but the angle θ is, for example, rounded off or truncated.

又は、繰り上げられた値となる。角度θ(83度)は“
360°°の公約数でないため、この値に基づいて描画
が行われた場合、従来例で説明した第5A図の円の輪郭
線のように線パターンの1つが途切れたところで描画が
終ってしまうことになる。そこで、第4図のフローチャ
ートで説明した円の描画方法が必要となる。まず、演算
結果の角度θが83度であれば、公約数テーブル5のポ
インタは21番(n=21)まで進められる。そのとき
の値■2.は“90”であり、又、ポインタが1つ前の
20番(n=20)のときには値v2゜が“72”であ
る。そこで、各ポインタと演算結果の角度θの値“83
″との差が比較される。その結果、角度θと値V□との
差は“7”、角度θと値V2゜との差は°”11”とな
る。従って、角度θはポインタ21番の値V21の方が
近いため、角度θは、即ち、線パターン1つの角度θは
90度に補正される。このようにして、円の輪郭が線パ
ターン4つ分で1つの線パターンも途切れることなく、
第5B図に示されるように欠けた線パターンを含まない
円の輪郭線が描画されることになる。勿論、円を形成す
る輪郭線は、一点鎖線等も同様である。
Or the value will be rounded up. The angle θ (83 degrees) is “
Since it is not a common divisor of 360°, if drawing is performed based on this value, drawing will end when one of the line patterns breaks off, as in the outline of the circle in Figure 5A explained in the conventional example. It turns out. Therefore, the circle drawing method described in the flowchart of FIG. 4 is required. First, if the angle θ of the calculation result is 83 degrees, the pointer of the common divisor table 5 is advanced to number 21 (n=21). Value at that time■2. is "90", and when the pointer is at the previous number 20 (n=20), the value v2° is "72". Therefore, the value of the angle θ between each pointer and the calculation result is “83
As a result, the difference between the angle θ and the value V□ is “7”, and the difference between the angle θ and the value V2° is “11”. Therefore, the angle θ is the pointer 21 Since the number V21 is closer, the angle θ, that is, the angle θ of one line pattern, is corrected to 90 degrees.In this way, the outline of the circle is equal to four line patterns, and one line pattern is also without interruption,
As shown in FIG. 5B, a circular outline that does not include the missing line pattern is drawn. Of course, the outline line forming the circle may be a chain line or the like.

以上説明したように第1実施例によれば、線パターン1
つ当りの角度を近似補正することにより線パターンが途
切れて描画されることがないため、円の大きさに応じて
適切な描画結果を得ることができる。
As explained above, according to the first embodiment, the line pattern 1
Approximately correcting the striking angle prevents the line pattern from being drawn with interruptions, so it is possible to obtain an appropriate drawing result depending on the size of the circle.

さて、前述の第1実施例では、出力光をプリンタ装置に
しているが、表示装置を出力光とした場合も同様に可能
である。
Now, in the first embodiment described above, the output light is the printer device, but it is also possible to use the display device as the output light.

又、前述の第1実施例では、線パターンのビットパター
ン情報は、本装置のROMU中から取り出し、それに基
づいて描画を行っているが、不図示のホストコンピュー
タから送る線パターンに線パターンのビットパターン情
報を含めて入力し、それをRAM中に格納して、そのビ
ットパターン情報に基づいて描画を行うことも可能であ
る。
Furthermore, in the first embodiment described above, the bit pattern information of the line pattern is retrieved from the ROMU of this device and drawing is performed based on it, but the bit pattern information of the line pattern is It is also possible to input pattern information, store it in RAM, and perform drawing based on the bit pattern information.

又、前述の第1実施例では、32ビツト長の線パターン
を例に挙げて説明したが、他の円周の長さ以下の長さを
持つ線パターンを使用した場合についても同様に適用可
能である。前述の第1実施例では1つの線パターン当り
の角度を整数としたが、本発明はこれに限定されるもの
ではなく、小数点以下まで求めることによって、描画の
精度を向上きせることも可能である。その際には、第3
図に示される公約数テーブル5を小数点の範囲まで拡張
すれば良い。
Furthermore, in the first embodiment described above, the explanation was given using a line pattern with a length of 32 bits as an example, but it can be similarly applied to cases where other line patterns having a length less than the length of the circumference are used. It is. In the first embodiment described above, the angle per line pattern is an integer, but the present invention is not limited to this, and it is also possible to improve the accuracy of drawing by determining the angle down to the decimal point. . In that case, the third
It is sufficient to extend the common divisor table 5 shown in the figure to the range of decimal points.

さらに、第1実施例では、印刷を単色か或は多色か述べ
ていないが、本発明の趣旨を逸脱しなければ、どちらで
あっても良い。尚、多色の場合、画像メモリを色の種類
に応じて増やせば良い。
Further, in the first embodiment, it is not stated whether printing is performed in a single color or in multiple colors, but it may be printed in either color without departing from the spirit of the present invention. In the case of multiple colors, the number of image memories may be increased according to the types of colors.

〈第2実施例〉 次に、第2実施例について説明する。<Second example> Next, a second example will be described.

第2実施例では、前述の第1実施例と同様の構成を有し
ているため、構成上の説明を省略し、異なる点について
のみ説明を行うことにする。
Since the second embodiment has the same configuration as the first embodiment described above, a description of the configuration will be omitted and only the different points will be explained.

まず、第1実施例で説明した第2図の線パターンにおい
て、この第2実施例ではOビット目を線パターンの先頭
ビットとし、後述するが、ビット位置をカウントする場
合、Oビット目から31ビツト目までカウントアツプさ
れると、再びOビット目の位置に戻る。
First, in the line pattern shown in FIG. 2 described in the first embodiment, in this second embodiment, the 0th bit is taken as the first bit of the line pattern, and as will be described later, when counting bit positions, the 31st bit starts from the 0th bit. When it is counted up to the 0th bit, it returns to the position of the 0th bit.

又、第2実施例では、ホストコンピュータからの指示で
線パターンの横方向への変倍率(拡大率)を設定するこ
とができる。この指示情報は、線パターン情報に含まれ
ている。
Further, in the second embodiment, the horizontal magnification ratio (enlargement ratio) of the line pattern can be set by instructions from the host computer. This instruction information is included in the line pattern information.

第6図は第2実施例の線パターンの横方向への拡大方法
を説明する図である。この第6図で拡大例を説明すると
、2ビツトで表される図中の線パターンは、横方向への
拡大率を“5°°とした場合、第1ビツト及び第2ビツ
トがそれぞれ5倍に拡大された線パターンに変換される
ことになる。
FIG. 6 is a diagram illustrating a method of enlarging a line pattern in the horizontal direction according to the second embodiment. To explain an example of magnification with reference to Fig. 6, the line pattern in the figure represented by 2 bits will have the first and second bits each 5 times larger when the horizontal magnification rate is 5°. It will be converted into a line pattern enlarged to .

さらに、線パターンの指示方法について説明する。Furthermore, a method of specifying a line pattern will be explained.

第7図は第2実施例の線パターンの指示方法を説明する
図である。線パターンの指示は、第7図に示されるよう
に、2次元のX13’座標系で直線を描画する際の直線
の開始点A、終了点Bを指示することによって行われる
FIG. 7 is a diagram illustrating a method of specifying a line pattern in the second embodiment. The line pattern is specified by specifying the starting point A and ending point B of a straight line when drawing a straight line in the two-dimensional X13' coordinate system, as shown in FIG.

そこで、さらに詳しく第2実施例の動作について説明す
る。
Therefore, the operation of the second embodiment will be explained in more detail.

第8A図、第8B図は第2実施例の線パターンによる線
図の描画及び印刷方法を説明するフローチャートである
。説明上、−例を挙げることとし、第1実施例で使用さ
れた32ビツトの線パターン(第2図参照)゛を拡大率
5で160ビット分(“0”ビット目〜“159″ビツ
ト目までを示す)の2地点間に展開し、線幅を20ドツ
トとする。
FIGS. 8A and 8B are flowcharts illustrating a method for drawing and printing a line diagram using a line pattern according to the second embodiment. For the sake of explanation, an example will be given. The line width is set to 20 dots.

まず、線パターン情報がホストコンピュータから送られ
ると(ステップ520)、その情報から始点Aと終点8
間の距離ABが求められる(ステップS21)、そして
、線パターンの種類が線パターン情報から判定されると
(ステップ522)、線パターン格納部4においてその
判定された種類の線パターンのビット情報の先頭ビット
にポインタがセットされる(ステップ523)。
First, when line pattern information is sent from the host computer (step 520), starting point A and ending point 8 are
The distance AB between them is calculated (step S21), and when the type of line pattern is determined from the line pattern information (step 522), the line pattern storage unit 4 stores the bit information of the line pattern of the determined type. A pointer is set to the first bit (step 523).

このとき、ポインタのビット位置はm(0≦m≦31)
で示され、そのビット位置でのビットの状態をP、で示
すことから、ステップS23においては、ポインタのビ
ット位置はm=0にセットされる。
At this time, the bit position of the pointer is m (0≦m≦31)
Since the state of the bit at that bit position is indicated by P, the bit position of the pointer is set to m=0 in step S23.

次に、黒ドツト及び白ドツトの点データをそれぞれ展開
する先頭位置の変数C1,Cm及び点データを展開する
始点から何ビット目かを示すカウンタβが“0”にセッ
ト(初期化)され(ステップ524)、さらに、線パタ
ーンの横方向への拡大率(比例定数ともいう)aが入力
された線パターン情報に基づいてセットされや(ステッ
プ525)、この拡大率αはホストコンピュータから送
られる線パターン情報に含めても良く、又、ホストコン
ピュータから線パターンの線幅を線パターン情報に含め
て受信し、その線幅に基づいて拡大率を決定するように
しても良い。
Next, the variables C1 and Cm at the beginning positions where the black dot and white dot point data are expanded, respectively, and the counter β, which indicates the number of bits from the starting point where the point data are expanded, are set to "0" (initialized). Step 524), furthermore, a horizontal expansion rate (also referred to as a proportionality constant) a of the line pattern is set based on the input line pattern information (step 525), and this expansion rate α is sent from the host computer. It may be included in the line pattern information, or the line width of the line pattern may be included in the line pattern information and received from the host computer, and the enlargement rate may be determined based on the line width.

そして、ポインタの指すビット位置のビット状態P1が
判別される(ステップ826)。まず、第1ビツト目の
ビット状態P。は、“1 ”のためカウンタβの値及び
ポインタのビット位置mはそれぞれ1つ繰り上げられ(
ステップ527)、次のビット状態P、が調べられる(
ステップ828)。その結果、ビット状態P1も“l”
であって、以降、ステップS27.ステップ328の処
理が繰り返されて、16ビツト目(m=15)までがビ
ット状態“1”と判定され、次の17ビツト目(m=1
6)でビット状態“0”と判定される。ここで、ポイン
タのビット位置を示すmは線パターンの最後のビット(
m=31)より1つ進んだら、パターンの最初のビット
(m=o)を指すものとし、カウンタβはm=32とな
るようにそのまま加算される。ここで、上述した線パタ
ーンのビット状態P0〜P tsまでの16ビツト分が
最初の黒ビツト群を示している。以下同様にビット状態
が変化するまでの同一の白ビット或は黒ビットのビット
状態が連続しでいる範囲を白ビツト群或は黒ビツト群と
している。
Then, the bit state P1 of the bit position pointed to by the pointer is determined (step 826). First, the bit state P of the first bit. is "1", so the value of the counter β and the bit position m of the pointer are each incremented by one (
Step 527), the next bit state, P, is examined (
step 828). As a result, the bit state P1 is also “l”
From then on, step S27. The process of step 328 is repeated, and the bit state up to the 16th bit (m=15) is determined to be "1", and the next 17th bit (m=1
6), the bit state is determined to be "0". Here, m indicating the bit position of the pointer is the last bit of the line pattern (
When the bit advances by one from m=31), it points to the first bit of the pattern (m=o), and the counter β is directly added so that m=32. Here, the 16 bits from bit states P0 to Pts of the line pattern described above indicate the first black bit group. Similarly, the range in which the same white bit or black bit state continues until the bit state changes is defined as a white bit group or a black bit group.

ステップS28において、ポインタの指すビット位置の
ビット状態P1gで“0”と判定されると、カウントβ
の値(β=16)が白ドツトの点データの先頭位置C2
にセットされ(ステップ529)、先頭位置C2の値(
C*=16)は線パターンの拡大率α(α=5)と乗じ
て、新たなC2の値(C,=80)となる(ステップ5
30)。このようにして、画像メモリ8上に展開される
白ドツトの点データの先頭位置C2は始点から80ビツ
ト目となる。
In step S28, if the bit state P1g at the bit position pointed to by the pointer is determined to be "0", the count β
The value (β=16) is the starting position C2 of the white dot point data.
(step 529), and the value of the start position C2 (
C*=16) is multiplied by the expansion rate α (α=5) of the line pattern to obtain the new value of C2 (C,=80) (Step 5
30). In this way, the leading position C2 of the white dot point data developed on the image memory 8 is the 80th bit from the starting point.

この拡大処理の後、C2の値(C,=80)と距離AB
の値(AB=160)とが比較され(ステップS31)
、 その結果、C2の値(C,=80)が距離ABの値(A
B=160)より小さいため、CI。
After this enlargement process, the value of C2 (C,=80) and the distance AB
(AB=160) (step S31)
, As a result, the value of C2 (C,=80) becomes the value of distance AB (A
B=160), so CI.

C2の各個をもとに画像メモリ7上に直線の描画を展開
するための点データの位置が計算される(ステップ53
2)。このとき、C1の値は“0”、即ち、点データ展
開の始点であり且つ黒ドツトの点データの開始点であり
、C1の値は“80”、即ち、白ドツトの点データ展開
の開始点となる。このようにして、ステップS32の計
算結果に基づいて実際に黒ドツトの点データが画像メモ
リ7上の所定の位置を始点(“0”ビット目)件して“
79”ビット目まで展開される(ステップ533)。そ
して、カウンタβの値及びポインタのビット位置はそれ
ぞれ1つ繰り上げられる(ステップ534)。この時点
では、カウンタβの値は“16”、ポインタのビット位
置mは“16”である。このステップS34の処理は、
ビット状態P、が“1 ”となるまで繰り返し行われる
(ステップ535)。その後、ビット状態P、が“l”
となると(m=β=20)、カウンタβの値(β=20
)が黒ドツトを展開するための先頭位置C1にセットさ
れ(ステップ836)、さらに、CI(7)値(C,=
20)が拡大率α(5)倍され、その結果(100)−
が新しいCIの値として設定される(ステップ537)
The position of point data for developing a straight line drawing on the image memory 7 is calculated based on each item of C2 (step 53).
2). At this time, the value of C1 is "0", that is, the starting point of point data development and the starting point of point data of black dots, and the value of C1 is "80", that is, the start point of point data development of white dots. It becomes a point. In this way, based on the calculation result in step S32, the point data of the black dot is actually set at a predetermined position on the image memory 7 as the starting point (the "0" bit).
The value of the counter β and the bit position of the pointer are each incremented by one (step 534). At this point, the value of the counter β is “16”, and the bit position of the pointer is incremented by one (step 534). The bit position m is “16”. The processing in step S34 is as follows:
This process is repeated until the bit state P becomes "1" (step 535). After that, the bit state P is “l”
Then (m=β=20), the value of counter β (β=20
) is set to the first position C1 for developing the black dot (step 836), and furthermore, the CI(7) value (C,=
20) is multiplied by the magnification factor α(5), and the result is (100)−
is set as the new CI value (step 537).
.

そして、ステップS37で求めたclの値(C,=20
)と距離ABの値(AB=160)とが比較される(ス
テップ838)。この時点では、CIの値が距離ABの
値より小さいため、処理はステップS27へ戻り、上述
の処理が繰り返される(ステップS27〜ステツプ53
0)。そして、白ドツトの点データを展開する開始位置
C2が求められ、そのときの02の値は、“11O”と
なり、ステップS31では、まだ終点Bまで点データの
展開が行き届かない状態と判定され、処理はステップS
32に進み、前述した如く、黒ドツトの点データが画像
メモリ7上に展開される。
Then, the value of cl (C,=20
) and the value of distance AB (AB=160) are compared (step 838). At this point, since the value of CI is smaller than the value of distance AB, the process returns to step S27 and the above-mentioned process is repeated (steps S27 to 53).
0). Then, the starting position C2 for developing the point data of the white dot is obtained, and the value of 02 at that time becomes "11O", and in step S31, it is determined that the point data has not been developed completely to the end point B. , the process is in step S
The process proceeds to step 32, where the point data of the black dot is developed on the image memory 7 as described above.

以下同様に処理が行われ、“110”ビット目から“i
29”ビット目までが白ドツトの点データ、”130″
ビツト目から“139″′ビツト目までが黒ドツトの点
データ、そして、“140”ビット目から°“159°
゛ビツト目までが白ドツトの点データとして画像メモリ
7上に展開される。
Processing is performed in the same manner from the “110th” bit onwards, and “i”
Point data with white dots up to the 29th bit, “130”
The point data from the 139th bit to the 139th bit is black dot, and the data from the 140th bit to 159° is black.
The data up to the second bit are developed on the image memory 7 as white dot point data.

そして、点データの展開位置が°°160°°ビット目
のとき、即ち、黒ドツトの点データの開始位置C1のと
き、ステップS38でC,=AB (=160)と判定
され、画像メモリ7上に展開された点データがプリンタ
インターフェース9を通じてプリンタ20へ転送され、
プリンタ20によって直線が印刷される(ステップS4
1)。このとき、カウンタβの値が“32”且つポイン
タのビット位置mの値が“0”となる。
Then, when the developed position of the point data is the °°160°° bit-th bit, that is, when the starting position C1 of the black dot point data, it is determined that C,=AB (=160) in step S38, and the image memory 7 The point data developed above is transferred to the printer 20 through the printer interface 9,
A straight line is printed by the printer 20 (step S4
1). At this time, the value of the counter β becomes "32" and the value of the bit position m of the pointer becomes "0".

又、ステップS34〜ステツプS38の処理は黒ドツト
の点データを展開する開始位置C1を求めるための処理
であり、本処理がステップS26でビット状態P0の値
を“0”と判定したときには、処理はステップS34か
ら開始される。又、ステップS31において、C2の値
が距離ABの値以上と判定された場合、C,、ABの値
をもとに画像メモリ7上での黒ドツトの点データの位置
が計算され(ステップ539) 、ステップS39の計
算結果に基づいて実際に点データが展開される(ステッ
プ540)。そして、画像メモリ7上の展開された点デ
ータはプリンタインターフェース9を通じてプリンタ内
へ転送され、プリンタ20による直線の印刷が実施され
る(ステップ541)。
Further, the processing from step S34 to step S38 is processing for finding the starting position C1 for developing the black dot point data, and when this processing determines that the value of the bit state P0 is "0" in step S26, the processing starts from step S34. Further, if it is determined in step S31 that the value of C2 is greater than or equal to the value of distance AB, the position of the point data of the black dot on the image memory 7 is calculated based on the values of C, AB (step 539). ), point data is actually expanded based on the calculation result of step S39 (step 540). Then, the expanded point data on the image memory 7 is transferred into the printer through the printer interface 9, and straight line printing is performed by the printer 20 (step 541).

以上のようなアルゴリズムによって、基本形状を変える
ことなく直線(第2実施例では直線の線図を例に挙げて
いる)を横方向へ拡大して描画することが可能である。
By using the algorithm described above, it is possible to draw a straight line (a straight line diagram is taken as an example in the second embodiment) by enlarging it in the horizontal direction without changing the basic shape.

ここで、上述したフローチャートに基づいた処理の印刷
結果を説明する。
Here, the printing results of the process based on the above-described flowchart will be explained.

第9図は第2実施例の印刷結果を説明する図である。FIG. 9 is a diagram illustrating the printing results of the second embodiment.

第9図の上段には基本となる線幅1ドツト、拡大率1の
場合の描画結果が示されており、下段には上述したフロ
ーチャートで処理された線幅20ドツト、拡大率5の場
合の描画結果が示されている。
The upper part of Fig. 9 shows the drawing results when the basic line width is 1 dot and the magnification rate is 1, and the lower part shows the drawing results when the line width is 20 dots and the magnification rate is 5, processed using the flowchart described above. The drawing results are shown.

第9図に示される第2実施例の描画結果によれば、線パ
ターンが同じで拡大率1と拡大率5のように線幅が異な
る場合、線幅に応じて拡大率を変化できるため、見た目
に良好な描画結果を得ることができる。これに対して、
第1O図に示される従来例では、2点鎖線を表すはずの
線パターンとしての意味がな(、この場合、例えば、模
様と混同され易い。
According to the drawing results of the second embodiment shown in FIG. 9, when the line pattern is the same but the line widths are different, such as an enlargement rate of 1 and an enlargement rate of 5, the enlargement rate can be changed according to the line width. Visually good drawing results can be obtained. On the contrary,
In the conventional example shown in FIG. 1O, there is no meaning as a line pattern that is supposed to represent a chain double-dashed line (in this case, it is easy to be confused with a pattern, for example).

以上の第2実施例において、ホストコンピュータから線
パターン情報に線パターンの線幅を含めて受信した場合
には、線幅に対応した拡大率をテーブルとして本装置の
ROM中に記憶しておけば良く、又、ホストコンピュー
タから線パターン情報に線パターンの拡大率を含めて受
信した場合には、拡大率に対応した線幅をテーブルとし
て本装置のROM中に記憶しておけば良く、本発明の趣
旨を逸脱しない範囲であれば、種々変形可能である。
In the second embodiment described above, if line pattern information including the line width of the line pattern is received from the host computer, the enlargement ratio corresponding to the line width can be stored as a table in the ROM of this device. Alternatively, if the line pattern information including the enlargement rate of the line pattern is received from the host computer, the line width corresponding to the enlargement rate may be stored in the ROM of the apparatus as a table. Various modifications can be made without departing from the spirit of the invention.

以上説明したように第2実施例によれば、線パターンと
しての機能を損なうことなく線パターンの太さに応じて
適切な描画結果を得ることが可能である。又、基本の線
パターンがあれば、線の太さに対応して、横方向への拡
大率を調整することで、所望の大きさの線パターンが得
られることがら、゛線パターンを記憶するためのメモリ
の増大を防ぎ、コスト的にも安価で済む。
As described above, according to the second embodiment, it is possible to obtain an appropriate drawing result according to the thickness of the line pattern without impairing the function as a line pattern. Also, if you have a basic line pattern, you can obtain a line pattern of the desired size by adjusting the horizontal magnification according to the thickness of the line. This prevents the increase in memory required for this purpose, and the cost is also low.

勿論、この第2実施例においては、線パターンとして、
破線、一点鎖線等も含まれることはいうまでもない。
Of course, in this second embodiment, as a line pattern,
It goes without saying that dashed lines, dashed-dotted lines, etc. are also included.

前述の第2実施例では、出力光をプリンタ装置にしてい
るが、表示装置を出力光とした場合も同様に可能である
In the second embodiment described above, the printer device is used as the output light, but it is also possible to use the display device as the output light.

又、前述の第2実施例では、線パターンのビットパター
ン情報は、本装置のROMU中から取り出し、それに基
づいて描画を行っているが、不図示のホストコンピュー
タから送る線パターンに線パターンのビットパターン情
報を含めて入力し、それをRAM中に格納して、そのビ
ットパターン情報に基づいて描画を行うことも可能であ
る。
Further, in the second embodiment described above, the bit pattern information of the line pattern is retrieved from the ROMU of this device and drawing is performed based on it, but the bit pattern information of the line pattern is It is also possible to input pattern information, store it in RAM, and perform drawing based on the bit pattern information.

又、前述の第2実施例では、32ビツトの長さの2点鎖
線パターンを例として用いたが、本発明はこれに限定さ
れるものではな(、本発明の趣旨を逸脱しない範囲であ
れば、線パターンとして格納しつる任意の長さと、任意
のパターン形状とを有する線パターンを対象とすること
が可能である。従って、拡大率に替わり縮小率が使用さ
れた場合も本発明に含まれることになる。
Furthermore, in the second embodiment described above, a double-dashed chain line pattern with a length of 32 bits was used as an example, but the present invention is not limited to this (and may be modified without departing from the spirit of the present invention). For example, it is possible to target a line pattern that is stored as a line pattern and has an arbitrary length and an arbitrary pattern shape.Therefore, the present invention also includes a case where a reduction ratio is used instead of an enlargement ratio. It will be.

また、前述の第2実施例では、X+5’座標系での平面
上での直線描画を例として挙げたが、本発明はこれに限
定されるものではなく、2次元空間における線描画技術
全般に関して同様の方法を適用することが可能である。
Furthermore, in the second embodiment described above, straight line drawing on a plane in the X+5' coordinate system was taken as an example, but the present invention is not limited to this, and relates to general line drawing techniques in two-dimensional space. Similar methods can be applied.

[発明の効果] 以上説明したように本発明によれば、まず、線パターン
1つ当りの角度を補正することにより線パターンが途切
れて描画されることがないため、円の大きさに応じて適
切な描画結果を得ることができる。
[Effects of the Invention] As explained above, according to the present invention, first, by correcting the angle per line pattern, the line pattern is not drawn with interruptions, so Appropriate drawing results can be obtained.

又、線の太さに応じて線パターンを横方向へも拡大する
ことができるため、線の太さに応じて線図の適切な描画
結果を得ることができる。
Further, since the line pattern can be expanded in the horizontal direction according to the thickness of the lines, it is possible to obtain an appropriate drawing result of the line diagram according to the thickness of the lines.

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

第1図は本発明に係る第1実施例の構成を示すブロック
図、 第2図は第1実施例の線パターンの一例を示す図、 第3図は第1実施例の公約数テーブル5の内容を説明す
る図、 第4図は第1実施例による線パターンを用いて円の輪郭
線を描画し、さらに、円の図形を印刷するまで処理を説
明するフローチャート、第5A図は従来の円の印刷結果
の一例を示す図。 第5B図は第1実施例の円の印刷結果の一例を示す図、 第6図は第2実施例の線パターンの横方向への拡大方法
を説明する図、 第7図は第2実施例の線パターンの指示方法を説明する
図、 第8A図、第8B図は第2実施例の線パターンによる線
図の描画及び印刷方法を説明するフローチャート、 第9図は第2実施例の印刷結果を説明する図、第10図
は従来例の印刷結果を説明する図である。 図中、l・・・画像処理装置、2・・・CPU、3・・
・ROM、4・・・線パターン格納部、5・・・公約数
テープ、ル、6・・・RAM、7・・・入力部、8・・
・画像メモリ、9・・・プリンタインターフェース、′
10・・・パスライン、20・・・プリンタである。 第3図 第1ヒゾヒ 5ζ・−汁   5 tZ”−/ト 第6図 ↑y 第7図 1m目litロii目IIロII目 ・、ギ=・第10
11
FIG. 1 is a block diagram showing the configuration of the first embodiment according to the present invention, FIG. 2 is a diagram showing an example of the line pattern of the first embodiment, and FIG. 3 is a diagram showing the common divisor table 5 of the first embodiment. Figure 4 is a flowchart explaining the process from drawing the outline of a circle using the line pattern according to the first embodiment to printing the circle shape. The figure which shows an example of a printing result. FIG. 5B is a diagram showing an example of the printing result of a circle according to the first embodiment, FIG. 6 is a diagram illustrating a method for enlarging the line pattern in the horizontal direction according to the second embodiment, and FIG. 7 is a diagram showing the second embodiment. Figures 8A and 8B are flowcharts explaining the method of drawing and printing a line diagram using the line pattern of the second embodiment. Figure 9 is the printing result of the second embodiment. FIG. 10 is a diagram illustrating a printing result of a conventional example. In the figure, l...image processing device, 2...CPU, 3...
・ROM, 4... Line pattern storage section, 5... Common divisor tape, 6... RAM, 7... Input section, 8...
・Image memory, 9...Printer interface,'
10...pass line, 20...printer. Figure 3.
11

Claims (5)

【特許請求の範囲】[Claims] (1)少なくとも1ドット以上の黒ドット群と白ドット
群とが混在する線パターンを用いて円を描画する処理を
含む画像処理装置において、 前記線パターンの補正情報を含む線パターン情報を入力
する入力手段と、 前記線パターンに基づいて前記線パターン1つ当りの円
弧の角度を算出する算出手段と、 前記算出手段で算出された円弧の角度を近似補正する補
正手段とを備えることを特徴とする画像処理装置。
(1) In an image processing device that includes a process of drawing a circle using a line pattern in which at least one black dot group and a white dot group are mixed, line pattern information including correction information for the line pattern is input. It is characterized by comprising an input means, a calculation means for calculating an arc angle for each line pattern based on the line pattern, and a correction means for approximating and correcting the arc angle calculated by the calculation means. image processing device.
(2)前記補正手段は360の公約数に近似補正するこ
とを特徴とする請求項第1項記載の画像処理装置。
(2) The image processing apparatus according to claim 1, wherein the correction means performs approximate correction to a common divisor of 360.
(3)前記線パターン情報には予め記憶された線パター
ンを選択する情報が含まれることを特徴とする請求項第
1項記載の画像処理装置。
(3) The image processing apparatus according to claim 1, wherein the line pattern information includes information for selecting a line pattern stored in advance.
(4)少なくとも1ドット以上の黒ドット群と白ドット
群とが混在する線パターンを用いて線図を描画する処理
を含む画像処理装置において、前記線パターンの変倍情
報を含む線パターン情報を入力する入力手段と、 該入力手段で入力された線パターン情報に基づいて前記
線パターンを構成する黒ドット群及び白ドット群の各ド
ット数を変倍する変倍手段と、前記変倍手段で変倍され
た黒ドット数及び白ドット数によつて線パターンを描画
する描画手段とを備えることを特徴とする画像処理装置
(4) In an image processing device that includes a process of drawing a line diagram using a line pattern in which at least one black dot group and a white dot group are mixed, line pattern information including scaling information of the line pattern is used. an input means for inputting information; a scaling means for scaling the number of dots in each of a black dot group and a white dot group forming the line pattern based on the line pattern information input by the input means; An image processing apparatus comprising: a drawing means for drawing a line pattern using a scaled number of black dots and a number of white dots.
(5)前記線パターン情報には予め記憶された線パター
ンを選択する情報が含まれることを特徴とする請求項第
4項記載の画像処理装置。
(5) The image processing apparatus according to claim 4, wherein the line pattern information includes information for selecting a line pattern stored in advance.
JP1124525A 1989-05-19 1989-05-19 Graphic processing apparatus and method Expired - Fee Related JP2898014B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1124525A JP2898014B2 (en) 1989-05-19 1989-05-19 Graphic processing apparatus and method
JP10304590A JPH11213169A (en) 1989-05-19 1998-10-26 Printer, plotting device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1124525A JP2898014B2 (en) 1989-05-19 1989-05-19 Graphic processing apparatus and method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP10304590A Division JPH11213169A (en) 1989-05-19 1998-10-26 Printer, plotting device and method

Publications (2)

Publication Number Publication Date
JPH02304683A true JPH02304683A (en) 1990-12-18
JP2898014B2 JP2898014B2 (en) 1999-05-31

Family

ID=14887644

Family Applications (2)

Application Number Title Priority Date Filing Date
JP1124525A Expired - Fee Related JP2898014B2 (en) 1989-05-19 1989-05-19 Graphic processing apparatus and method
JP10304590A Pending JPH11213169A (en) 1989-05-19 1998-10-26 Printer, plotting device and method

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP10304590A Pending JPH11213169A (en) 1989-05-19 1998-10-26 Printer, plotting device and method

Country Status (1)

Country Link
JP (2) JP2898014B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS592172A (en) * 1982-06-29 1984-01-07 Fujitsu Ltd Circle printing system by picture element consisting of indicated part and blank part
JPS61193197A (en) * 1985-02-21 1986-08-27 横河電機株式会社 Graphics display unit
JPS62256091A (en) * 1986-04-28 1987-11-07 Nec Corp Broken line forming mechanism by grid type picture element
JPH01220081A (en) * 1988-02-29 1989-09-01 Yokogawa Electric Corp Line segment drawing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS592172A (en) * 1982-06-29 1984-01-07 Fujitsu Ltd Circle printing system by picture element consisting of indicated part and blank part
JPS61193197A (en) * 1985-02-21 1986-08-27 横河電機株式会社 Graphics display unit
JPS62256091A (en) * 1986-04-28 1987-11-07 Nec Corp Broken line forming mechanism by grid type picture element
JPH01220081A (en) * 1988-02-29 1989-09-01 Yokogawa Electric Corp Line segment drawing device

Also Published As

Publication number Publication date
JPH11213169A (en) 1999-08-06
JP2898014B2 (en) 1999-05-31

Similar Documents

Publication Publication Date Title
US4459676A (en) Picture image producing apparatus
US4837847A (en) Image processing apparatus
JPH0244482A (en) Raster conversion
EP0278526A2 (en) Graphics diplay controller having clipping function
JP3189276B2 (en) Data converter
US5167015A (en) Line drawing method and apparatus
JPH06161419A (en) Character output device
JPH02304683A (en) Image processor
EP0392499B1 (en) Apparatus for generating high-quality character pattern
JPH08194459A (en) Outline character plotting device
JPH09120450A (en) Image processor
JP2888270B2 (en) Graphic processing apparatus and method
JPH0668247A (en) Method and device for varying power of digital image data
KR100324755B1 (en) Clipping apparatus and method for graphic processor
JP3087511B2 (en) Data converter
JPH10222142A (en) Window control device
JPH08138061A (en) Plotting method and plotter using the same
JP2000338959A (en) Image processing device
JP2606176B2 (en) Graphic processing unit
JPH10124692A (en) Plotting circuit
JP3085396B2 (en) Vector font development method and device
JPS60128497A (en) Display conversion
JPH07129782A (en) Line pattern plotting system
JPS62175794A (en) Character generator
JPH056164A (en) Character processing device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080312

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090312

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees