JPH04373087A - Graphic generating system - Google Patents

Graphic generating system

Info

Publication number
JPH04373087A
JPH04373087A JP3151445A JP15144591A JPH04373087A JP H04373087 A JPH04373087 A JP H04373087A JP 3151445 A JP3151445 A JP 3151445A JP 15144591 A JP15144591 A JP 15144591A JP H04373087 A JPH04373087 A JP H04373087A
Authority
JP
Japan
Prior art keywords
contour line
generating
contour
memory
filling
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
JP3151445A
Other languages
Japanese (ja)
Inventor
Hiroshi Wada
和田 弘士
Shinji Wakizaka
新路 脇坂
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP3151445A priority Critical patent/JPH04373087A/en
Publication of JPH04373087A publication Critical patent/JPH04373087A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the system to simultaneously execute the generation of character/graphic contour lines and the inside painting-out of the contour lines without increasing the capacity of a memory to be used. CONSTITUTION:This system is composed of a contour line generating circuit 1 to generate the character/graphic contour lines from contour information in a vector form, a painting-out circuit 2 for the inside of the contour lines, a memory control circuit 3 to arbitrarte memory access requests from the contour line generating circuit 1 and the painting-out circuit 2, a bit map memory 4 to store the character/graphic contour lines, a bus 5 to transmit font data in the vector form to the contour line generating circuit 1, an address bus 9 from the contour line generating circuit 1, a data bus 10 for the contour line generating circuit 1, an address bus 13 from the painting-out circuit 2, a data bus 14 for the painting-out circuit 2, an address bus 16 to the bit map memory 4 and a data bus 17 for the bit map memory 4. Thus, characters/ graphics painting out the inside of the contour lines can be generated at high speed.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は文字・図形作成装置など
の情報処理装置において、ベクトル形式で表された文字
・図形の輪郭情報からドット形式の文字・図形データを
高速に発生させる方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for rapidly generating character/graphic data in dot format from contour information of characters/figures expressed in vector format in an information processing apparatus such as a character/graphic generating apparatus.

【0002】0002

【従来の技術】ベクトル形式の文字・図形の輪郭情報を
用いて、内部を塗り潰したドット形式のデータを生成す
るにあたって、従来の方式は特開昭63−234370
号公報に記載のように、メモリ上にドット形式で表した
文字・図形の輪郭線を発生させる処理を完了した後に、
内部の塗り潰し処理を行っていた。
[Prior Art] A conventional method for generating dot-format data whose interior is filled using vector-format outline information of characters and figures is disclosed in Japanese Patent Application Laid-Open No. 63-234370.
As described in the publication, after completing the process of generating outlines of characters and figures expressed in dot format on memory,
The inside was being painted.

【0003】0003

【発明が解決しようとする課題】上記従来技術は文字・
図形の輪郭線を完全に発生させた後に内部の塗り潰しを
行うため、メモリをアクセスしないアイドル時間が長い
という点について考慮がされておらず、内部を塗り潰し
た文字・図形の発生までに時間がかかるという問題があ
った。
[Problem to be solved by the invention] The above prior art
Since the inside of the figure is filled after the outline of the figure is completely generated, no consideration is given to the long idle time when memory is not accessed, and it takes time to generate characters and figures whose insides are filled. There was a problem.

【0004】本発明の目的は使用するメモリの容量を増
やすことなく、文字・図形の輪郭線の発生中に、輪郭線
を発生する手段がメモリをアクセスしない時間を使って
塗り潰し可能な領域の塗り潰しを行うことにより、メモ
リをアクセスしないアイドル時間を少なくし、高速に塗
り潰し文字・図形を発生させることにある。
An object of the present invention is to fill an area that can be filled in while the contour line of a character/figure is being generated, without increasing the memory capacity used, by using the time when the means for generating the contour line is not accessing the memory. By doing this, it is possible to reduce idle time when memory is not accessed and generate filled characters and figures at high speed.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明はベクトル形式で表された文字・図形の輪郭
情報において、複数の閉じた輪郭情報のうち、Y軸方向
に単調に増加する部分が最も長い閉じた輪郭情報を最後
に処理する順序とし、前述の単調に増加する部分の開始
点座標の後に単調増加開始フラグを埋め込み、終了点座
標を最後に処理される閉じた輪郭情報の開始点座標とし
たものである。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides contour information of characters/figures expressed in vector format, which increases monotonically in the Y-axis direction among a plurality of closed contour information. The closed contour information with the longest part is processed last, the monotonically increasing start flag is embedded after the start point coordinates of the monotonically increasing part mentioned above, and the end point coordinates are processed last. The starting point coordinates of

【0006】輪郭線の発生中に、塗り潰し可能な領域の
塗り潰しを行なうためには、文字・図形発生装置の中に
、輪郭線を発生させる手段と内部を塗り潰す手段にメモ
リアクセスを同時にさせない機能を設けたものであり、
輪郭線を発生させる手段の中には、前述の単調増加開始
フラグを検知した場合、内部を塗り潰す手段に起動をか
ける機能を設けた設けたものであり、内部を塗り潰す手
段の中には、メモリをアクセスする時のアドレスが輪郭
線を発生する手段が最後にアクセスした時のアドレスよ
りも大きいあるいは等しければ、アクセスせずにそのま
まの状態でウエイトする機能を設けたものである。
[0006] In order to fill in the area that can be filled while the outline is being generated, the character/figure generator must have a function that prevents the means for generating the outline and the means for filling the inside from accessing memory at the same time. It has been established that
Some of the means for generating the contour line are provided with a function of starting the means for filling out the interior when the monotonically increasing start flag described above is detected; If the address at which the memory is accessed is greater than or equal to the address at which the contour line generating means last accessed, a function is provided to wait without accessing the memory.

【0007】また、前述の単調に増加する部分の終了点
座標よりY軸方向上側の部分を塗り潰すためには、内部
を塗り潰す手段の中に、輪郭線が完全に発生されていれ
ば、アドレスの大小にかかわらずにメモリをアクセスす
る機能を設けたものである。
[0007] Furthermore, in order to fill in the portion above the end point coordinates of the monotonically increasing portion in the Y-axis direction, if the contour line is completely generated in the means for filling out the inside, It provides a function to access memory regardless of the size of the address.

【0008】[0008]

【作用】文字・図形の輪郭情報は、複数の閉じた輪郭情
報のうち、Y軸方向に単調に増加する部分が最も長いも
のが最後に処理される順序になっており、前述の単調に
増加する部分の開始点座標の後に単調増加開始フラグが
埋め込まれており、終了点座標が閉じた輪郭情報の開始
点座標となっている。それによって、輪郭線を発生する
手段が輪郭線を発生している最中に単調増加開始フラグ
を検知した場合、内部を塗り潰す手段に起動をかけるこ
とができるので、輪郭線を発生中に塗り潰し可能な領域
を塗り潰すことが可能となり、結果としてメモリをアク
セスしないアイドル時間が減少するので、高速に塗り潰
し文字・図形を発生させることができる。
[Effect] Outline information for characters and figures is processed in the order that among multiple closed contour information, the one with the longest monotonically increasing portion in the Y-axis direction is processed last, and the monotonically increasing portion described above is processed last. A monotonically increasing start flag is embedded after the start point coordinates of the part where the end point coordinates are the start point coordinates of the closed contour information. As a result, if the means for generating a contour line detects the monotonically increasing start flag while the contour line is being generated, the means for filling the inside can be activated. Since it becomes possible to fill in the available area, and as a result, idle time during which memory is not accessed is reduced, filled characters and figures can be generated at high speed.

【0009】また、前述の輪郭線を発生する手段と内部
を塗り潰す手段はメモリをアクセスするときに、他の手
段が既にアクセスしていれば、終了するまでそのままの
状態でウエイトするように動作する。それによって、二
つの手段が同時にメモリをアクセスすることがなくなる
ので、誤動作することがない。
[0009] Furthermore, when accessing the memory, the above-mentioned means for generating an outline line and means for filling in the inside operate so that if another means has already accessed the memory, it waits in that state until it is completed. do. This prevents the two means from accessing the memory at the same time, thereby preventing malfunctions.

【0010】また、前述の内部を塗り潰す手段は、メモ
リをアクセスするときのアドレスが、輪郭線を発生する
手段が最後にアクセスした時のアドレスよりも大きいあ
るいは等しければ、アクセスせずにそのままの状態でウ
エイトするように動作する。それによって、内部を塗り
潰す手段は、塗り潰し不可能な領域を塗り潰すことがな
くなるので、正しい塗り潰しを行なうことができる。
[0010] Furthermore, the above-mentioned means for filling in the inside does not access the memory if the address at which it is accessed is greater than or equal to the address at which the means for generating an outline line last accessed it. It acts like a wait in the state. As a result, the means for filling in the interior will not fill in areas that cannot be filled in, so that correct filling can be performed.

【0011】また、内部を塗り潰す手段は、輪郭線が完
全に発生されていればアドレスの大小にかかわらず、塗
り潰しを行うように動作する。それによって、単調に増
加する部分より上側の部分も塗り潰すことができるので
、完全な塗り潰しを行うことができる。
Furthermore, the means for filling the inside operates to fill the inside, regardless of the size of the address, as long as the contour line is completely generated. As a result, the portion above the monotonically increasing portion can also be filled in, so complete filling can be achieved.

【0012】0012

【実施例】以下、本発明の一実施例を図1により説明す
る。
[Embodiment] An embodiment of the present invention will be explained below with reference to FIG.

【0013】図1は、本発明を実行するためのブロック
図である。図1において、1はベクトル形式の輪郭情報
から文字・図形の輪郭線を発生する輪郭線発生回路、2
は輪郭線の内部の塗り潰しを行なう塗り潰し回路、3は
輪郭線発生回路1,塗り潰し回路2からのメモリアクセ
ス要求の調停を行なうメモリコントロール回路、4は文
字・図形の輪郭線を記憶するビットマップメモリ、5は
輪郭線発生回路1にベクトル形式のフォントデータを送
るバス、6は輪郭線発生回路1からのメモリアクセス要
求信号LMREQ、7はメモリコントロール回路3から
のメモリアクセス許可信号LMACK、8は輪郭線発生
回路1が輪郭線の発生を完全に終了したことを表す輪郭
線発生終了信号LC、9は輪郭線発生回路1からのアド
レスバスLADR、10は輪郭線発生回路1のデータバ
スLDATA、11は塗り潰し回路2からのメモリアク
セス要求信号FMREQ、12はメモリコントロール回
路3からのメモリアクセス許可信号FMACK、13は
塗り潰し回路2からのアドレスバスFADR、14は塗
り潰し回路2のデータバスFDATA、15は塗り潰し
回路2に起動をかける塗り潰し回路起動信号FS、16
はビットマップメモリ4へのアドレスバスADR、17
はビットマップメモリ4のデータバスDATAである。
FIG. 1 is a block diagram for implementing the invention. In FIG. 1, reference numeral 1 indicates an outline generation circuit that generates outlines of characters and figures from outline information in vector format;
3 is a memory control circuit that mediates memory access requests from the outline generation circuit 1 and the filling circuit 2; 4 is a bitmap memory that stores the outlines of characters and figures; , 5 is a bus that sends vector format font data to the contour generation circuit 1, 6 is a memory access request signal LMREQ from the contour generation circuit 1, 7 is a memory access permission signal LMACK from the memory control circuit 3, and 8 is a contour signal. 9 is an address bus LADR from the contour generation circuit 1; 10 is a data bus LDATA of the contour generation circuit 1; 11 12 is the memory access permission signal FMACK from the memory control circuit 3, 13 is the address bus FADR from the filling circuit 2, 14 is the data bus FDATA of the filling circuit 2, and 15 is the filling circuit 2. Filled circuit activation signal FS, 16 that activates circuit 2
is address bus ADR to bitmap memory 4, 17
is the data bus DATA of the bitmap memory 4.

【0014】本発明の装置構成を用いて塗り潰し文字・
図形を発生する手順について説明する。
[0014] Using the device configuration of the present invention, fill-in characters and
The procedure for generating figures will be explained.

【0015】まず、バス5を通じてフォントデータを受
け取った輪郭線発生回路1はビットマップメモリ4上に
輪郭線の発生を開始する。ビットマップメモリ4をリー
ド/ライトするときにはLMREQ=1として要求を出
し、許可信号LMACK=1が返ってきたら、アドレス
バスLADR9,データバスLDATA10を用いてリ
ード/ライトを行ない、終了したらLMREQ=0とす
る。輪郭線発生回路1は動作中にフォントデータの中か
ら後述する単調増加開始フラグMISを検知した場合、
FS=1として塗り潰し回路2に起動をかける。起動さ
れた塗り潰し回路2はビットマップメモリ4上に発生さ
れた輪郭線のうち、塗り潰し可能な領域の塗り潰しを開
始する。リード/ライトするときにはFMREQ=1と
して要求を出し、許可信号FMACK=1が返ってきた
ら、アドレスバスFADR13,データバスFDATA
14を用いてリード/ライトを行ない、終了したらFM
REQ=0とする。
First, the outline generation circuit 1 receives font data via the bus 5 and starts generating an outline on the bitmap memory 4. When reading/writing the bitmap memory 4, a request is made with LMREQ=1, and when the permission signal LMACK=1 is returned, the read/write is performed using the address bus LADR9 and data bus LDATA10, and when the read/write is completed, LMREQ=0. do. When the contour generation circuit 1 detects a monotonous increase start flag MIS, which will be described later, from the font data during operation,
The filling circuit 2 is activated by setting FS=1. The activated filling circuit 2 starts filling the area that can be filled out of the outline generated on the bitmap memory 4. When reading/writing, a request is made with FMREQ=1, and when the permission signal FMACK=1 is returned, the address bus FADR13 and data bus FDATA are
14 to read/write, and when finished, FM
Set REQ=0.

【0016】メモリコントロール回路3は輪郭線発生回
路1と塗り潰し回路2が同時にビットマップメモリ4を
アクセスしないように調停をとる。有効にされたアドレ
スバス、データバスがADR16、DATA17に接続
される。また、輪郭線発生回路1は発生処理を終了する
と終了信号LC=1として、終了したことをメモリコン
トロール回路3に知らせる。LC=1ならばメモリコン
トロール回路3は常に、塗り潰し回路2からの要求を受
け入れる。
The memory control circuit 3 arbitrates so that the outline generation circuit 1 and the filling circuit 2 do not access the bitmap memory 4 at the same time. The enabled address bus and data bus are connected to ADR16 and DATA17. Furthermore, when the contour generation circuit 1 finishes the generation process, it sets a completion signal LC=1 to notify the memory control circuit 3 of the completion. If LC=1, the memory control circuit 3 always accepts requests from the filling circuit 2.

【0017】このように、輪郭線発生回路1と塗り潰し
回路2は互いに調停をとりながら、同一の文字・図形に
ついて、輪郭線発生処理と塗り潰し処理を同時に行なう
ので、ビットマップメモリ4上に塗り潰し文字・図形を
高速に発生させることができる。
In this way, the contour generating circuit 1 and the filling circuit 2 mediate with each other and simultaneously perform the contour generating process and the filling process for the same character/figure, so that the filled character is stored in the bitmap memory 4. - Shapes can be generated quickly.

【0018】次に本発明を実現するためのベクトル形式
の輪郭情報について、図2,図3を用いて詳しく説明す
る。図2は輪郭情報の一例である。Y方向に単調に増加
するベクトル列のうち最も長いのはP10〜P7である
ため、閉じた輪郭情報P1→P2→P3→P4→P5→
P6→P1を最初に処理する順序とし、P7→P8→P
9→P10→P11→P12→P7を最後に処理する順
番とする。図2の輪郭情報例をXY座標データになおし
たものが図3に示す座標データ例である。ここでCLS
は閉じた輪郭情報の開始を表すフラグであり、FDEは
1図形分の座標データの終了を表すフラグであり、MI
Sは単調に増加するベクトル列の開始を表すフラグであ
り、P1の座標が(X1,Y1)で表されるものとする
。この座標データによれば、輪郭線発生回路1がMIS
を検知し塗り潰し回路2に起動をかけ、P10→P11
→P12→P7と輪郭線を発生するにつれて、下側から
追いかけるような塗り潰しを同時に行なうことが可能と
なる。
Next, vector-format contour information for realizing the present invention will be explained in detail with reference to FIGS. 2 and 3. FIG. 2 is an example of contour information. Since the longest vector sequence that monotonically increases in the Y direction is P10 to P7, the closed contour information P1→P2→P3→P4→P5→
P6→P1 is processed first, P7→P8→P
The last processing order is 9→P10→P11→P12→P7. The coordinate data example shown in FIG. 3 is obtained by converting the contour information example in FIG. 2 into XY coordinate data. CLS here
is a flag indicating the start of closed contour information, FDE is a flag indicating the end of coordinate data for one figure, and MI
S is a flag representing the start of a monotonically increasing vector sequence, and the coordinates of P1 are represented by (X1, Y1). According to this coordinate data, the contour generation circuit 1 is
Detected and activated the filling circuit 2, P10→P11
As the contour line is generated in the order of →P12→P7, it becomes possible to simultaneously fill in the outline from the bottom.

【0019】次に輪郭線発生回路1の動作について図4
を用いて詳しく説明する。図4は輪郭線発生回路1の動
作のアルゴリズムを示すフローチャートである。まずフ
ォントデータを受け取り(ステップ40)、受け取った
データが閉じた輪郭情報の開始を表すフラグCLSなら
ば(ステップ41が真)、ベクトルの始点,終点を設定
し(ステップ42)、始終点間に線分を発生する(ステ
ップ43)。CLSではなく(ステップ41が偽)、M
ISならば(ステップ44が真)FS=1として塗り潰
し回路2に起動をかけ(ステップ45)、ステップ42
からの処理を行なう。またMISではなく(ステップ4
4が偽)FDEならば(ステップ46が真)LC=1と
して(ステップ47)動作を終了する(ステップ48)
。またFDEでなければステップ42からの処理を行な
う。ステップ40からステップ48までの動作を行なう
ことにより、ビットマップメモリ4に輪郭線を発生し、
発生中に塗り潰し回路2に起動をかけることができる。
Next, the operation of the contour generation circuit 1 will be explained in FIG.
This will be explained in detail using FIG. 4 is a flowchart showing an algorithm for the operation of the contour generation circuit 1. First, font data is received (step 40), and if the received data is the flag CLS indicating the start of closed contour information (step 41 is true), the start and end points of the vector are set (step 42), and the A line segment is generated (step 43). CLS (step 41 is false), M
If it is IS (step 44 is true), start up the filling circuit 2 with FS=1 (step 45), and step 42
Perform processing from . Also, instead of MIS (step 4)
4 is false) If FDE (step 46 is true), set LC=1 (step 47) and end the operation (step 48)
. Moreover, if it is not FDE, the process from step 42 is performed. By performing the operations from step 40 to step 48, a contour line is generated in the bitmap memory 4,
The filling circuit 2 can be activated during the generation.

【0020】次に塗り潰し回路2の動作について図5を
用いて詳しく説明する。図5は塗り潰し回路2の動作の
アルゴリズムを示すフローチャートである。まず輪郭線
発生回路1から起動をかけられFS=1となれば(ステ
ップ51が真)FS=0とし(ステップ52)、輪郭線
内部の塗り潰しを行なう(ステップ53)。塗り潰しを
終了するとステップ51にもどり次の起動を待つ。また
、ステップ51においてFS=0ならば、そのままの状
態で起動がかけられるまでウエイトする。このステップ
51からステップ53までの動作を行なうことにより、
ビットマップメモリ4上に発生された輪郭線の内部の塗
り潰しが行なわれる。
Next, the operation of the filling circuit 2 will be explained in detail using FIG. FIG. 5 is a flowchart showing an algorithm for the operation of the filling circuit 2. As shown in FIG. First, the contour line generating circuit 1 is activated, and if FS=1 (step 51 is true), FS=0 is set (step 52), and the inside of the contour line is filled in (step 53). When the filling is finished, the process returns to step 51 and waits for the next activation. Further, if FS=0 in step 51, the process waits in that state until activation is applied. By performing the operations from step 51 to step 53,
The inside of the contour line generated on the bitmap memory 4 is filled in.

【0021】次に、輪郭線発生回路1がビットマップメ
モリ4をリード/ライトする時の動作について図6を用
いて詳しく説明する。図6は輪郭線発生回路1がビット
マップメモリ4をリード/ライトするときの動作のアル
ゴリズムを示すフロチャートである。まず、LMREQ
=1として(ステップ61)アクセス要求を出す。アク
セス許可信号LMACK=1となれば(ステップ62が
真)ビットマップメモリ4へのリード/ライトを行ない
(ステップ63)、終了後にLMREQ=0として(ス
テップ64)アクセス要求を下げる。アクセス許可信号
LMACK=0ならば(ステップ62が偽)そのままの
状態でLMACK=1となるまでウエイトする。このス
テップ61からステップ64までの動作を行なうことに
より、輪郭線発生回路1がビットマップメモリ4へのリ
ード/ライトを行なうことができる。
Next, the operation when the contour generation circuit 1 reads/writes the bitmap memory 4 will be explained in detail with reference to FIG. FIG. 6 is a flowchart showing an algorithm of operations when the contour generation circuit 1 reads/writes the bitmap memory 4. First, LMREQ
= 1 (step 61) and issues an access request. If the access permission signal LMACK=1 (step 62 is true), the read/write to the bitmap memory 4 is performed (step 63), and after completion, LMREQ is set to 0 (step 64) and the access request is lowered. If the access permission signal LMACK=0 (step 62 is false), the process waits until LMACK=1. By carrying out the operations from step 61 to step 64, the contour generation circuit 1 can read/write to the bitmap memory 4.

【0022】次に、塗り潰し回路2がビットマップメモ
リ4をリード/ライトする時の動作について図7を用い
て詳しく説明する。図7は塗り潰し回路2がビットマッ
プメモリ4をリード/ライトするときの動作のアルゴリ
ズムを示すフロチャートである。まず、FMREQ=1
として(ステップ71)アクセス要求を出す。アクセス
許可信号FMACK=1となれば(ステップ72が真)
ビットマップメモリ4へのリード/ライトを行ない(ス
テップ73)、終了後にFMREQ=0として(ステッ
プ74)アクセス要求を下げる。アクセス許可信号FM
ACK=0ならば(ステップ72が偽)そのままの状態
でFMACK=1となるまでウエイトする。このステッ
プ71からステップ74までの動作を行なうことにより
、塗り潰し回路2がビットマップメモリ4へのリード/
ライトを行なうことができる。
Next, the operation when the filling circuit 2 reads/writes the bitmap memory 4 will be explained in detail with reference to FIG. FIG. 7 is a flowchart showing an algorithm of operations when the filling circuit 2 reads/writes the bitmap memory 4. First, FMREQ=1
(step 71) issues an access request. If the access permission signal FMACK=1 (step 72 is true)
Read/write to bitmap memory 4 is performed (step 73), and after completion, FMREQ is set to 0 (step 74) and the access request is lowered. Access permission signal FM
If ACK=0 (step 72 is false), the process waits until FMACK=1. By performing the operations from step 71 to step 74, the filling circuit 2 performs read/write operations to the bitmap memory 4.
Can do light.

【0023】次に、メモリコントロール回路3の動作に
ついて図8,図9を用いて詳しく説明する。図8は輪郭
線発生回路1からアクセス要求が来たときの動作のアル
ゴリズムを示すフロチャート、図9は塗り潰し回路2か
らアクセス要求が来たときの動作のアルゴリズムを示す
フロチャートである。図8において、まず、輪郭線発生
回路1からのアクセス要求信号LMREQ=0であれば
(ステップ80が偽)、そのままの状態でウエイトする
。LMREQ=1となっても(ステップ80が真)塗り
潰し回路2がアクセス中であれば(ステップ81が真)
そのままウエイトし、アクセスを終了したならば(ステ
ップ81が偽)、アクセス許可信号LMACK=1とし
(ステップ82)、輪郭線発生回路1からのバス,信号
を有効にする(ステップ83)。輪郭線発生回路1がリ
ード/ライト中でありLMREQ≠0ならば(ステップ
84が偽)そのままウエイトし、リード/ライトが終了
してLMREQ=0となり(ステップ84が真)アクセ
ス要求が下がったならば、LMACK=0として(ステ
ップ85)アクセス許可を下げ、ステップ80からの処
理を再び繰り返す。このステップ80からステップ85
までの動作を行なうことにより、メモリコントロール回
路3は輪郭線発生回路1からのメモリアクセス要求を調
停することができる。
Next, the operation of the memory control circuit 3 will be explained in detail using FIGS. 8 and 9. FIG. 8 is a flowchart showing an algorithm for operation when an access request is received from the contour generation circuit 1, and FIG. 9 is a flowchart showing an algorithm for operation when an access request is received from the filling circuit 2. In FIG. 8, first, if the access request signal LMREQ from the contour generation circuit 1 is 0 (step 80 is false), the process waits in that state. Even if LMREQ=1 (step 80 is true), if the filling circuit 2 is being accessed (step 81 is true)
If the access is completed (step 81 is false), the access permission signal LMACK is set to 1 (step 82), and the bus and signals from the contour generation circuit 1 are enabled (step 83). If the contour generating circuit 1 is reading/writing and LMREQ≠0 (step 84 is false), it waits as is, and if the reading/writing is completed and LMREQ=0 (step 84 is true), the access request is lowered. For example, the access permission is lowered by setting LMACK=0 (step 85), and the processing from step 80 is repeated again. This step 80 to step 85
By performing the operations described above, the memory control circuit 3 can mediate memory access requests from the contour generation circuit 1.

【0024】次に、図9において、まず塗り潰し回路2
からのアクセス要求信号FMREQ=0であれば(ステ
ップ90が偽)そのままの状態でウエイトする。FMR
EQ=1となっても(ステップ90が真)、輪郭線発生
回路1がアクセス中であれば(ステップ91が真)その
ままの状態でウエイトする。輪郭線発生回路1がアクセ
スを終了し(ステップ91が偽)、アクセスしたアドレ
スLADRが塗り潰し回路2がアクセスしようとするア
ドレスFADRより大きければ(ステップ92が真)、
アクセス許可信号FMACK=1とし(ステップ94)
アクセスを許可する。ここでの座標値とアドレスとの関
係は比例関係にあるものとする。つまり座標値が増加す
れば対応するアドレスも増加するものとする。また、ス
テップ92において、LADR≦FADRであっても(
ステップ92が偽)、輪郭線発生回路1が輪郭線の発生
を完全に終了していてLC=1ならば(ステップ93が
真)アクセス許可信号FMACK=1とし(ステップ9
4)アクセスを許可する。またステップ93において、
輪郭線発生回路1が輪郭線発生の途中であるためLC=
0ならば(ステップ93が偽)ステップ91からの処理
を繰り返す。ステップ94においてFMACK=1とし
た後、塗り潰し回路2からのバス,信号を有効にする(
ステップ95)。塗り潰し回路2がビットマップメモリ
4へのリード/ライトの最中でありFMREQ≠0なら
ば(ステップ96が偽)そのままの状態でウエイトする
。リード/ライトを終了しFMREQ=0となり(ステ
ップ96が真)アクセス要求が下がったならば、FMA
CK=0として(ステップ97)アクセス許可を下げ、
ステップ90からの処理を再び繰り返す。このステップ
90からステップ97までの動作を行なうことにより、
メモリコントロール回路3は塗り潰し回路2からのメモ
リアクセス要求を調停することができる。
Next, in FIG. 9, first, the filling circuit 2
If the access request signal FMREQ from FMREQ=0 (step 90 is false), the process waits as is. FMR
Even if EQ=1 (step 90 is true), if the contour generation circuit 1 is being accessed (step 91 is true), it remains in a wait state. If the contour generation circuit 1 completes the access (step 91 is false) and the accessed address LADR is larger than the address FADR that the filling circuit 2 attempts to access (step 92 is true),
Access permission signal FMACK=1 (step 94)
Allow access. It is assumed here that the relationship between coordinate values and addresses is proportional. In other words, if the coordinate value increases, the corresponding address also increases. Furthermore, in step 92, even if LADR≦FADR (
If step 92 is false), the contour generating circuit 1 has completely finished generating the contour and LC=1 (step 93 is true), then the access permission signal FMACK is set to 1 (step 9
4) Allow access. Also, in step 93,
Since the contour line generation circuit 1 is in the middle of generating a contour line, LC=
If it is 0 (step 93 is false), the process from step 91 is repeated. After setting FMACK=1 in step 94, the bus and signals from the filling circuit 2 are enabled (
Step 95). If the filling circuit 2 is in the process of reading/writing to the bitmap memory 4 and FMREQ≠0 (step 96 is false), it waits as is. When the read/write is finished and FMREQ becomes 0 (step 96 is true) and the access request has decreased, the FMA
Lower the access permission by setting CK=0 (step 97),
The process from step 90 is repeated again. By performing the operations from step 90 to step 97,
The memory control circuit 3 can mediate memory access requests from the filling circuit 2.

【0025】次に、図2で表した輪郭情報から塗り潰し
文字・図形を発生させる過程について図10を用いて詳
しく説明する。図10は図2の輪郭情報から塗り潰し文
字・図形を得るまでの過程を表す説明図である。まず1
01において内側の閉じた輪郭線を発生する。次に10
2で外側の閉じた輪郭線の発生を開始し、103でY方
向に単調に増加するベクトル列の開始点まで輪郭線を発
生する。また、単調増加開始フラグMISを検知するの
で塗り潰しを開始する。104,105で単調に増加す
るベクトル列の開始点から輪郭線を発生するにつれて、
下側から塗り潰しを行なう。106で輪郭線の発生を終
了すると同時に塗り潰しも終了する。
Next, the process of generating filled characters and figures from the outline information shown in FIG. 2 will be explained in detail with reference to FIG. FIG. 10 is an explanatory diagram showing the process of obtaining filled characters and figures from the contour information shown in FIG. 2. First 1
At 01, an inner closed contour is generated. then 10
At step 2, generation of an outer closed contour line is started, and at step 103, a contour line is generated up to the starting point of a vector sequence that monotonically increases in the Y direction. Furthermore, since the monotonous increase start flag MIS is detected, filling is started. As we generate a contour line from the starting point of a monotonically increasing vector sequence at 104, 105,
Fill in from the bottom. At 106, when the generation of the contour line is finished, the filling is also finished.

【0026】なお、本実施例では複数の閉じた輪郭情報
のうち、Y方向に単調に増加するベクトル列が最も長い
ものを最後に処理する順序としたが、Y方向に単調に増
加するベクトル列がn番目(nは2以上の整数)に長い
ものを最後に処理する順序として、n番目に長いベクト
ル列の開始点の後に単調増加開始フラグMISを埋め込
んだとしても適用可能であることは、図2において、ベ
クトル列P10〜P7の代わりにベクトル列P6〜P3
を用いれば良いと言う事から説明できる。
Note that in this embodiment, among a plurality of pieces of closed contour information, the one with the longest vector sequence that monotonically increases in the Y direction is processed last, but the vector sequence that monotonically increases in the Y direction This is applicable even if the monotonically increasing start flag MIS is embedded after the start point of the nth longest vector sequence, with the order in which the nth longest vector sequence is processed last (n is an integer greater than or equal to 2). In FIG. 2, vector strings P6 to P3 are used instead of vector strings P10 to P7.
This can be explained by saying that it is sufficient to use .

【0027】また、本実施例ではY方向に単調に増加す
るベクトル列の開始点の後に単調増加開始フラグMIS
を埋め込むものとしたが、単調に増加するベクトル列の
間であればどの位置に埋め込んだとしても適用可能であ
ることは、図2において、P10の後ではなくP11,
P12の後に埋め込めば良いと言う事から説明できる。
Furthermore, in this embodiment, after the start point of the vector sequence that monotonically increases in the Y direction, a monotonically increasing start flag MIS is set.
However, in Fig. 2, it is applicable to embedding at any position between monotonically increasing vector sequences, not after P10, but after P11,
This can be explained by saying that it should be embedded after P12.

【0028】また、本実施例ではY方向に単調に増加す
るベクトル列を用いたが、Y方向に単調に減少するベク
トル列を用いて、塗り潰しを下側からではなく上側から
行なうことによっても適用可能であることは、図2にお
いて、ベクトル列P10〜P7の代わりにベクトル列P
7〜P10を用いれば良いと言う事から説明できる。
Although this embodiment uses a vector sequence that monotonically increases in the Y direction, it can also be applied by using a vector sequence that monotonically decreases in the Y direction and filling from the top instead of from the bottom. What is possible is that in FIG.
This can be explained by saying that it is sufficient to use 7 to P10.

【0029】また、本実施例ではY方向に単調に増加す
るベクトル列を用いたが、X方向に単調に増加するベク
トル列を用いても適用可能であることは、図2において
、Y軸とX軸を交換すれば良いと言う事から説明できる
Furthermore, although this embodiment uses a vector sequence that monotonically increases in the Y direction, it is also applicable to use a vector sequence that monotonically increases in the X direction, as shown in FIG. This can be explained by saying that all you have to do is replace the X axis.

【0030】[0030]

【発明の効果】本発明によれば、文字・図形の輪郭線を
発生中に、輪郭線を発生する手段がメモリをアクセスし
ない時間を使って塗り潰し可能な領域を塗り潰すことが
できるので、結果として、メモリをアクセスしないアイ
ドル時間が減少し、使用するメモリの容量を増やすこと
なく、高速に塗り潰し文字・図形を発生する事ができる
[Effects of the Invention] According to the present invention, while the outline of a character/figure is being generated, the area that can be filled can be filled using the time when the means for generating the outline does not access the memory. As a result, idle time when memory is not accessed is reduced, and filled characters and figures can be generated at high speed without increasing the amount of memory used.

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

【図1】文字・図形発生装置のブロック図、[Figure 1] Block diagram of character/figure generator,

【図2】本
発明を実現するための文字・図形の輪郭情報説明図、
[Fig. 2] An explanatory diagram of outline information of characters and figures for realizing the present invention,

【図3】図2の輪郭情報のX,Y座標データ例の説明図
[Fig. 3] An explanatory diagram of an example of X, Y coordinate data of the contour information in Fig. 2,

【図4】輪郭線発生回路の動作のアルゴリズムを示すフ
ロチャート、
FIG. 4 is a flowchart showing an algorithm for the operation of the contour generation circuit;

【図5】塗り潰し回路の動作のアルゴリズムを示すフロ
チャート、
FIG. 5 is a flowchart showing an algorithm for the operation of the filling circuit;

【図6】輪郭線発生回路がビットマップメモリをアクセ
スするときの動作のアルゴリズムを示すフロチャート、
FIG. 6 is a flowchart showing an algorithm of operations when the contour generation circuit accesses the bitmap memory;

【図7】塗り潰し回路がビットマップメモリをアクセス
するときの動作のアルゴリズムを示すフロチャート、
FIG. 7 is a flowchart showing an operation algorithm when the filling circuit accesses the bitmap memory;


図8】メモリコントロール回路の動作のアルゴリズムを
示すフロチャート、
[
FIG. 8 is a flowchart showing an algorithm for the operation of the memory control circuit;

【図9】メモリコントロール回路の動作のアルゴリズム
を示すフロチャート、
FIG. 9 is a flowchart showing an algorithm for the operation of the memory control circuit;

【図10】塗り潰し文字・図形を発生させるまでの過程
を表す説明図。
FIG. 10 is an explanatory diagram showing the process of generating filled characters and figures.

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

1…輪郭線発生回路、2…塗り潰し回路、3…メモリコ
ントロール回路、4…ビットマップメモリ、6…メモリ
アクセス要求信号LMREQ、7…メモリアクセス許可
信号LMACK、8…輪郭線発生終了信号LC、11…
メモリアクセス要求信号FMREQ、12…メモリアク
セス許可信号FMACK、15…塗り潰し回路起動信号
FS。
DESCRIPTION OF SYMBOLS 1...Contour generation circuit, 2...Filling circuit, 3...Memory control circuit, 4...Bitmap memory, 6...Memory access request signal LMREQ, 7...Memory access permission signal LMACK, 8...Contour line generation end signal LC, 11 …
Memory access request signal FMREQ, 12...Memory access permission signal FMACK, 15...Filling circuit activation signal FS.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】ベクトル形式で表された文字・図形の輪郭
情報において、一組以上の互いに独立したベクトル列の
うち、単調に増加する任意のベクトル列を含むものが最
後に処理される順序とし、任意のベクトル列を構成する
座標点の一点を、最後に処理される独立したベクトル列
の開始点とし、開始点より増加する方向の座標値が小さ
い、あるいは、等しい座標間に、単調に増加することを
示す情報を埋め込んだことを特徴とする図形発生方式。
Claim 1: In outline information of characters and figures expressed in vector format, among one or more sets of mutually independent vector sequences, those containing any monotonically increasing vector sequence are processed last. , one coordinate point that constitutes an arbitrary vector sequence is the starting point of the independent vector sequence that is processed last, and the coordinate values in the increasing direction are smaller or equal to the starting point, increasing monotonically. A figure generation method characterized by embedding information indicating that
【請求項2】請求項1において、前記文字・図形の輪郭
情報からドット形式の文字・図形データを発生し、前記
輪郭情報を基に文字・図形の輪郭線を発生する手段と、
前記輪郭線を記憶する手段と、前記記憶する手段に発生
された前記輪郭線の内部を塗り潰す手段とを備え、前記
輪郭線を発生する手段が、前記記憶する手段に前記輪郭
線を発生中に、前記内部を塗り潰す手段が塗り潰し可能
な領域の塗り潰しを行う図形発生方式。
2. According to claim 1, means for generating character/figure data in dot format from the outline information of the characters/figures, and generating outlines of the characters/figures based on the outline information;
comprising means for storing the contour line, and means for filling in the inside of the contour line generated by the storing means, wherein the means for generating the contour line is generating the contour line in the storing means. In a figure generation method, the means for filling out the inside fills out a fillable area.
【請求項3】請求項2において、前記輪郭線を発生する
手段が鉛直方向に単調に増加することを示す情報を検知
した後に、前記内部を塗り潰す手段に起動をかける図形
発生方式。
3. A figure generation method according to claim 2, wherein after said means for generating a contour line detects information indicating that the contour line increases monotonically in the vertical direction, said means for filling out the inside is activated.
【請求項4】請求項2において、前記輪郭線を発生する
手段あるいは前記内部を塗り潰す手段が前記該記憶する
手段へのアクセスを開始する時に、他の手段がすでにア
クセス中ならば、そのままの状態でアクセスが終了する
までウエイトする図形発生方式。
4. In claim 2, when the means for generating an outline or the means for filling in the inside starts accessing the means for storing, if another means is already accessing, A figure generation method that waits until access is completed in the state.
【請求項5】請求項2において、前記内部を塗り潰す手
段が前記記憶する手段へのアクセスを開始する時に、ア
クセスするアドレスが、前記輪郭線を発生する手段が最
後にアクセスした時のアドレスよりも大きいあるいは等
しければ、そのままの状態でウエイトする図形発生方式
5. In claim 2, when the means for filling out the inside starts accessing the means for storing, the address to be accessed is greater than the address at which the means for generating the contour line last accessed. A figure generation method that waits as is if both are larger or equal.
【請求項6】請求項2において、前記輪郭線を発生する
手段が前記輪郭線の発生を完全に終了していれば、アド
レスの大小に係わらずに、前記内部を塗り潰す手段が前
記記憶する手段へのアクセスを行う図形発生方式。
6. In claim 2, if the means for generating the contour line has completely finished generating the contour line, the means for filling out the inside is stored in the memory regardless of the size of the address. A figure generation method that provides access to the means.
JP3151445A 1991-06-24 1991-06-24 Graphic generating system Pending JPH04373087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3151445A JPH04373087A (en) 1991-06-24 1991-06-24 Graphic generating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3151445A JPH04373087A (en) 1991-06-24 1991-06-24 Graphic generating system

Publications (1)

Publication Number Publication Date
JPH04373087A true JPH04373087A (en) 1992-12-25

Family

ID=15518759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3151445A Pending JPH04373087A (en) 1991-06-24 1991-06-24 Graphic generating system

Country Status (1)

Country Link
JP (1) JPH04373087A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7965398B2 (en) 2007-02-15 2011-06-21 Seiko Epson Corporation Character rendering device, display device, and printing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7965398B2 (en) 2007-02-15 2011-06-21 Seiko Epson Corporation Character rendering device, display device, and printing device

Similar Documents

Publication Publication Date Title
JPS6282478A (en) Device for generating raster pattern from data representing geometrical object
JPS5995669A (en) Graphic processor
JPH0355832B2 (en)
JPH04373087A (en) Graphic generating system
JP3229042B2 (en) Image processing apparatus and image processing method
JP2770582B2 (en) Figure filling device
JPH04335422A (en) Sorting device
JPH0736772A (en) Device and method for fast bit map access control
JP2689815B2 (en) Vector font fill information generator
JPH0323916B2 (en)
JP2910154B2 (en) Character generator
JP3365068B2 (en) Image processing device
JPH0232670B2 (en)
JPH02178784A (en) Data processor
JP2776347B2 (en) Drawing device for printer
JPH02196296A (en) Character generator
JPS59184393A (en) Cursor display unit
JPH02144781A (en) Method and device for painting out
JPH011075A (en) Image processing device
JPH0652328A (en) Image processor
JPH04280383A (en) Method and device for generating graphic/character
JPH11184456A (en) Method and device for plotting displaying and navigation system
JPH04255897A (en) Character output controller
JPH03222029A (en) Recording controller
JPS5944088A (en) Compound display