[go: up one dir, main page]

JPH02144781A - Method and device for painting out - Google Patents

Method and device for painting out

Info

Publication number
JPH02144781A
JPH02144781A JP30002688A JP30002688A JPH02144781A JP H02144781 A JPH02144781 A JP H02144781A JP 30002688 A JP30002688 A JP 30002688A JP 30002688 A JP30002688 A JP 30002688A JP H02144781 A JPH02144781 A JP H02144781A
Authority
JP
Japan
Prior art keywords
outline
filling
character
symbol
address register
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
JP30002688A
Other languages
Japanese (ja)
Inventor
Yasunori Maki
康典 牧
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP30002688A priority Critical patent/JPH02144781A/en
Publication of JPH02144781A publication Critical patent/JPH02144781A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To paint out at high speed by reading out the minimum value and the maximum value of X and Y coordinate values of an outline to be brought to picture drawing from an address register and painting out a part between them. CONSTITUTION:When outline information is inputted from an outline picture drawing circuit, it is decided by a signal generating circuit 12 by its X coordinate value, and a selecting signal to selectors 8, 9 is set so that address registers 6, 4 are selected. Subsequently, said value is compared with a Y coordinate value by comparators 10, 11, and as a result, the maximum value and the minimum value of the Y coordinate value of the outline information are set to the address registers 4, 6. When painting-out is started, the maximum value and the minimum value are read out of the address registers 4, 6, and a part between them is painted out.

Description

【発明の詳細な説明】 〔発明の目的] (産業上の利用分野) この発明はアウトラインフォントデータよりドツトイメ
ージデータを作成する塗潰し方法及び装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a filling method and apparatus for creating dot image data from outline font data.

(従来の技術) アウトラインフォントよりドツトイメージを生成する従
来の方法を第3図に示すブロック図ならびに第4図に示
す動作説明図を使用して簡単に説明する。第3図におい
て、まずアウトラインフォントデータを記憶するメモリ
31よりデータを読み出す。輪郭描画回路33は輪郭描
画メモリ34上に輪郭情報を描く。輪郭描画が終了する
と塗潰し回路35が起動される。塗潰し回路33は輪郭
描画メモリ34上の輪郭情報を、X方向、又はY方向に
走査しながら、文字、または記号の内部を塗潰して、文
字または記号のドツトイメージを作成する。この様子を
第4図(a)に示す。
(Prior Art) A conventional method for generating a dot image from an outline font will be briefly explained using the block diagram shown in FIG. 3 and the operational diagram shown in FIG. In FIG. 3, data is first read from the memory 31 that stores outline font data. The contour drawing circuit 33 draws contour information on the contour drawing memory 34. When the outline drawing is completed, the filling circuit 35 is activated. The filling circuit 33 scans the outline information on the outline drawing memory 34 in the X or Y direction and paints the inside of the character or symbol to create a dot image of the character or symbol. This situation is shown in FIG. 4(a).

さて従来は、輪郭描画メモリ上を、塗潰しを行うために
X又はY方向に走査する際、輪郭描画メモリのすべてを
走査するか、あらかじめ決められた矩形領域を走査する
ことしかできなかった。その為、第4図の様な文字(こ
こではL)に対しても、輪郭メモリをすべて走査しなけ
ればならず、従って第4図(b)において符号Aで示す
ような塗潰しが全く施されない領域も走査せねばならな
い。
Conventionally, when scanning the contour drawing memory in the X or Y direction for filling, it was only possible to scan the entire contour drawing memory or scan a predetermined rectangular area. Therefore, even for the character shown in Figure 4 (L in this case), the entire outline memory must be scanned, and therefore the filling as shown by the symbol A in Figure 4(b) is not applied at all. Areas that are not covered must also be scanned.

(発明が解決しようとする課題) 上述したように従来は、不要な部分も走査しなければな
らないため、処理速度を高速化することが困難であった
(Problems to be Solved by the Invention) As described above, in the past, it was difficult to increase the processing speed because unnecessary portions had to be scanned as well.

この発明は上記欠点に鑑みてなされたものであり、アウ
トラインフォントデータから文字の輪郭を輪郭描画メモ
リ上に作成し、その後輪郭内部を高速に塗潰す塗潰し方
法及び装置を提供することを目的とする。
The present invention has been made in view of the above-mentioned drawbacks, and an object of the present invention is to provide a filling method and device that creates a character outline from outline font data on an outline drawing memory, and then quickly fills in the inside of the outline. do.

[発明の構成] (課題を解決するための手段及び作用)本発明は、輪郭
描画用のメモリを持ち、そのメモリ上にアウトラインフ
ォントデータより文字または記号の輪郭または輪郭情報
を算出して、文字または記号の輪郭または輪郭情報を描
き、描いた輪郭内部を塗潰すことによって文字または記
号のドツトイメージを作る装置において、輪郭描画メモ
リをX、Y方向にそれぞれn行、m列に分割し、分割し
た各々n行、m列に対して、文字または記号の輪郭また
は輪郭情報の最大値と最小値を記憶するポインタレジス
タを持ち、塗潰しの際に、行、列それぞれのポインタレ
ジスタの間を塗潰すことにより文字または記号のドツト
イメージを作る高速塗潰し方法及び装置を提供するもの
である。
[Structure of the Invention] (Means and Effects for Solving the Problems) The present invention has a memory for drawing an outline, calculates the outline or outline information of a character or symbol from outline font data on the memory, and draws a character. Or, in a device that creates a dot image of a character or symbol by drawing the outline or outline information of a symbol and filling in the inside of the drawn outline, the outline drawing memory is divided into n rows and m columns in the X and Y directions, respectively. For each of the n rows and m columns, there is a pointer register that stores the maximum and minimum values of the outline or outline information of the character or symbol, and when filling, the area between the pointer registers of each row and column is filled. The present invention provides a high-speed filling method and device for creating dot images of characters or symbols by filling them.

このため、塗潰し装置を、輪郭描画回路よりのXSY座
標値の最大値と最小値を記憶するアドレスレジスタと、
X、Y座標値をデコードして対応するアドレスレジスタ
を決定するX、Yデコーダと、上記デコーダによって選
択されたアドレスレジスタの値と、輪郭描画回路よりの
X、Y座標値を比較するコンパレータと、このコンパレ
ータの比較結果によって上記アドレスレジスタにクロッ
クを与える論理回路と、塗潰しを始めると、まず、上記
アドレスレジスタから、最小値と最大値を読み出しその
間の塗潰しを行う塗潰し回路で構成した。このことによ
り、従来より少ない走査で塗潰しが行なえ、その分処理
速度の高速化がはかれる。
For this reason, the filling device is provided with an address register that stores the maximum and minimum values of the XSY coordinate values from the contour drawing circuit.
an X, Y decoder that decodes the X, Y coordinate values to determine a corresponding address register; a comparator that compares the value of the address register selected by the decoder with the X, Y coordinate values from the contour drawing circuit; It consists of a logic circuit that clocks the address register according to the comparison result of the comparator, and a filling circuit that reads the minimum and maximum values from the address register and fills in between when filling starts. As a result, filling can be performed with fewer scans than in the past, and the processing speed can be increased accordingly.

(実施例) 以下、図面を使用して本発明実施例について詳細に説明
する。第1図は本発明の実施例を示すブロック図である
。図において、1はYアドレスバスであり、図示せぬ輪
郭描画回路よりのY座標値が転送される。2はXアドレ
スバスであり、輪郭描画回路よりのX座標値が転送され
る。3はメモリインタフェースであり、輪郭描画メモリ
(図示せず)のインタフェース部となる。4はアドレス
レジスタであり、輪郭描画メモリの左半分のY座標値の
最大値を記憶する。5はアドレスレジスタであり、輪郭
描画メモリの右半分のY座標値の最大値を記憶する。6
はアドレスレジスタであり、輪郭描画メモリの左半分の
Y座標値の最小値を記憶する。7はアドレスレジスタで
あり、輪郭描画メモリの右半分のY座標値の最小値を記
憶する。
(Example) Hereinafter, an example of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a Y address bus, and the Y coordinate value from a contour drawing circuit (not shown) is transferred. 2 is an X address bus to which the X coordinate value from the contour drawing circuit is transferred. Reference numeral 3 denotes a memory interface, which serves as an interface section for a contour drawing memory (not shown). 4 is an address register which stores the maximum value of the Y coordinate value of the left half of the outline drawing memory. 5 is an address register which stores the maximum value of the Y coordinate value of the right half of the contour drawing memory. 6
is an address register, which stores the minimum value of the Y coordinate value of the left half of the outline drawing memory. 7 is an address register which stores the minimum value of the Y coordinate value of the right half of the outline drawing memory.

8はアドレスレジスタ67をセレクトするセレクタ、9
はアドレスレジスタ4.5をセレクトするセレクタであ
る。10はセレクタ8で選択されたアドレスレジスタと
Y座標値を比較するコンパレータ、11はセレクタって
選択されたアドレスレジスタとY座標値を比較するコン
パレータである。12はコンパレータ10.11による
比較結果とX座標値から、アドレスレジスタ4〜7に対
するクロック及びセレクタ8.9に対するセレクト信号
を生成出力する信号生成回路である。
8 is a selector that selects the address register 67; 9
is a selector that selects address register 4.5. 10 is a comparator that compares the Y coordinate value with the address register selected by the selector 8, and 11 is a comparator that compares the Y coordinate value with the address register selected by the selector. A signal generation circuit 12 generates and outputs clocks for the address registers 4-7 and select signals for the selector 8.9 from the comparison result by the comparator 10.11 and the X coordinate value.

第2図は本発明実施例の動作を説明するために引用した
図であり、(a)〜(d)で示しである。
FIG. 2 is a diagram cited for explaining the operation of the embodiment of the present invention, and is indicated by (a) to (d).

以下、本発明実施例の動作について詳細に説明する。こ
の動作説明では第2図(a)の様に輪郭描画メモリをX
方向に2分割し、Y方向に塗潰しを行う場合について説
明を行う。輪郭描画スタート時アドレスレジスタ4,5
はオール“0”に、アドレスレジスタ6.7はオール″
1′に設定される。第2図(b)の様な“L”の図形を
輪郭描画メモリ上に描くとする。輪郭は■−■−■・・
・−■−■の順に描かれているとする。まずbの■の点
の座標値が入ってくると、X座標値によって輪郭描画メ
モリの左側であるというのが信号生成回路12により判
断され、セレクタ8.9に対するセレクト信号をアドレ
スレジスタ6.4が選択されるように設定する。そして
、コンパレータ10゜11でY座標値と比較し、その結
果Yアドレスバス1のY座標値は(輪郭描画メモリの左
半分のY座標値の最大値を記憶する)アドレスレジスタ
4のアドレスより大きく、(輪郭描画メモリの左半分の
Y座標値の最小値を記憶する)アドレスレジスタ6のア
ドレスより小さいので、信号生成回路12はアドレスレ
ジスタ4,6のクロックを生成出力し、Y座標値1(0
点のY座標値)をアドレスレジスタ4,6にセットする
Hereinafter, the operation of the embodiment of the present invention will be explained in detail. In this operation explanation, the outline drawing memory is
A case will be described in which the image is divided into two in the direction and filled in in the Y direction. Address registers 4 and 5 when starting contour drawing
is all “0”, and address register 6.7 is all “0”.
1'. Suppose that an "L" figure as shown in FIG. 2(b) is drawn on the outline drawing memory. The outline is ■−■−■・・
・Suppose that they are drawn in the order of −■−■. First, when the coordinate value of the point ■ in b is received, the signal generation circuit 12 determines that it is on the left side of the outline drawing memory based on the X coordinate value, and sends a select signal to the selector 8.9 to the address register 6.4. Set so that it is selected. Comparators 10 and 11 compare the Y coordinate value, and as a result, the Y coordinate value of Y address bus 1 is larger than the address of address register 4 (which stores the maximum value of the Y coordinate value in the left half of the contour drawing memory). , is smaller than the address of the address register 6 (which stores the minimum value of the Y coordinate value of the left half of the contour drawing memory), so the signal generation circuit 12 generates and outputs clocks for the address registers 4 and 6, and the Y coordinate value 1 ( 0
Y coordinate value of the point) is set in address registers 4 and 6.

走査が■の点から■の点に進む間、アドレスレジスタ4
,5の値とYアドレスの値は同じなのでアドレスレジス
タ4.5は変化しない。しかし、真中を越えると、信号
生成回路12はセレクタ8゜9によって(輪郭描画メモ
リの右半分のY座標値の最小値、最大値を記憶する)ア
ドレスレジスタ7.5が選択される様に動く。この場合
、前記と同様にアドレスレジスタ7.5にY座標値2(
0点のY座標値、即ち0点のY座標値)が設定される。
While the scan progresses from point ■ to point ■, address register 4
, 5 and the value of the Y address are the same, so the address register 4.5 does not change. However, when it crosses the center, the signal generation circuit 12 moves so that the address register 7.5 (which stores the minimum and maximum values of the Y coordinate values in the right half of the contour drawing memory) is selected by the selector 8°9. . In this case, the Y coordinate value 2 (
The Y coordinate value of the 0 point, that is, the Y coordinate value of the 0 point) is set.

■から■まで動く間、Y座標値はアドレスレジスタ7.
5の値よりも小さいのでアドレスレジスタ7だけが次々
に更新され、アドレスレジスタ7にはY座標値3(0点
のY座標値)が最終的に設定される。この様にして走査
が■−■−■−■と進むと、アドレスレジスタ4〜7の
値は、第2図(c)の様になる。
While moving from ■ to ■, the Y coordinate value is stored in address register 7.
Since the value is smaller than the value of 5, only the address register 7 is updated one after another, and the Y coordinate value 3 (the Y coordinate value of the 0 point) is finally set in the address register 7. As the scanning progresses in the order of ■-■-■-■, the values of address registers 4 to 7 become as shown in FIG. 2(c).

次に輪郭描画が終わり、塗潰しに入る。このとき描画メ
モリの左側を塗潰す際にはアドレスレジスタ4と5の値
の示す間、右側を塗潰す際にはアドレスレジスタ7と4
の値の示す間を塗潰す(第2図(d)参照)。これによ
り最小領域を塗潰すことが可能になり、塗潰し時間の短
縮が図れる。
Next, the outline drawing is finished and the filling begins. At this time, when filling the left side of the drawing memory, the value of address registers 4 and 5 indicates, and when filling the right side, address registers 7 and 4
Fill in the space between the values of (see Figure 2(d)). This makes it possible to fill in the smallest area, thereby reducing the filling time.

尚、本発明実施例では、縦に分割した場合についてのみ
説明したが、3分割、4分割・・・n分割することも可
能である。
In the embodiment of the present invention, only the case of vertical division has been described, but it is also possible to divide into 3, 4, . . . n.

[発明の効果] 以上説明のように本発明によれば、従来輪郭描画メモリ
の全体を走査しなければならなかったものが、一部の走
査で塗潰しを実現でき、その分塗潰しの高速処理が実現
できる。
[Effects of the Invention] As explained above, according to the present invention, instead of scanning the entire contour drawing memory in the past, filling can be achieved by scanning a portion of the memory, and the filling speed can be increased accordingly. processing can be realized.

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

第1図は本発明の実施例を示すブロック図、第2図は本
発明実施例の動作を説明するために引用した図、第3図
は一般的な輪郭描画システムの構成を示すブロック図、
第4図は従来例の動作を説明するために引用した図であ
る。 4〜7・・・アドレスレジスタ、8,9・・・セレクタ
、10.11・・・コンパレータ、12・・・信号生成
回路。 出願人代理人 弁理士 鈴江武彦 (a) 第 図 (a) 輪郭描画 (b) 第 図 塗潰し
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram cited to explain the operation of the embodiment of the present invention, and FIG. 3 is a block diagram showing the configuration of a general outline drawing system.
FIG. 4 is a diagram cited for explaining the operation of the conventional example. 4 to 7: Address register, 8, 9: Selector, 10.11: Comparator, 12: Signal generation circuit. Applicant's agent Patent attorney Takehiko Suzue (a) Figure (a) Outline drawing (b) Figure filled in

Claims (2)

【特許請求の範囲】[Claims] (1)輪郭描画メモリを持ち、そのメモリ上にアウトラ
インフォントデータより文字または記号の輪郭あるいは
輪郭情報を算出して、文字または記号の輪郭あるいは輪
郭情報を描き、描いた輪郭内部を塗潰すことによって文
字または記号のドットイメージを生成するパターン生成
装置において、上記輪郭描画メモリをX、Y方向にそれ
ぞれn行、m列に分割し分割した各々n行、m列に対し
て、文字または記号の輪郭または輪郭情報の最大値と最
小値を記憶し、塗潰す際に上記最大値と最小値を読み出
し、その間を塗潰すことにより、文字または記号のドッ
トイメージを生成することを特徴とする塗潰し方法。
(1) By having an outline drawing memory, calculating the outline or outline information of a character or symbol from the outline font data on the memory, drawing the outline or outline information of the character or symbol, and filling the inside of the drawn outline. In a pattern generation device that generates a dot image of a character or symbol, the outline drawing memory is divided into n rows and m columns in the X and Y directions, respectively, and the outline of the character or symbol is generated for each of the divided n rows and m columns. Alternatively, a filling method characterized by storing the maximum and minimum values of contour information, reading out the maximum and minimum values when filling, and filling in between to generate a dot image of a character or symbol. .
(2)輪郭描画メモリを持ち、そのメモリ上にアウトラ
インフォントデータより文字または記号の輪郭あるいは
輪郭情報を算出して、文字または記号の輪郭あるいは輪
郭情報を描き、描いた輪郭内部を塗潰すことによって文
字または記号のドットイメージを生成するパターン生成
装置において、上記輪郭描画メモリをX、Y方向にそれ
ぞれn行、m列に分割し分割した各々n行、m列に対し
て、文字または記号の輪郭または輪郭情報のXY座標値
の最大値と最小値を記憶するアドレスレジスタと、上記
XY座標値をデコードして対応するアドレスレジスタを
決定するXYデコーダと、このデコーダによって選択さ
れたアドレスレジスタの値と輪郭描画回路からのXY座
標値を比較するコンパレータと、このコンパレータの比
較結果に応じて上記アドレスレジスタにクロックを与え
るクロック生成回路と、塗潰しの際上記アドレスレジス
タから最大値と最小値を読み出し、その間の塗潰しを行
う塗潰し回路とを具備することを特徴とする塗潰し装置
(2) By having an outline drawing memory, calculating the outline or outline information of a character or symbol from the outline font data on the memory, drawing the outline or outline information of the character or symbol, and filling the inside of the drawn outline. In a pattern generation device that generates a dot image of a character or symbol, the outline drawing memory is divided into n rows and m columns in the X and Y directions, respectively, and the outline of the character or symbol is generated for each of the divided n rows and m columns. or an address register that stores the maximum and minimum values of the XY coordinate values of contour information, an XY decoder that decodes the XY coordinate values and determines the corresponding address register, and the value of the address register selected by this decoder. a comparator that compares the XY coordinate values from the contour drawing circuit; a clock generation circuit that supplies a clock to the address register according to the comparison result of the comparator; and a clock generation circuit that reads the maximum and minimum values from the address register when filling. A filling device characterized by comprising a filling circuit that performs filling in between.
JP30002688A 1988-11-28 1988-11-28 Method and device for painting out Pending JPH02144781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30002688A JPH02144781A (en) 1988-11-28 1988-11-28 Method and device for painting out

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30002688A JPH02144781A (en) 1988-11-28 1988-11-28 Method and device for painting out

Publications (1)

Publication Number Publication Date
JPH02144781A true JPH02144781A (en) 1990-06-04

Family

ID=17879814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30002688A Pending JPH02144781A (en) 1988-11-28 1988-11-28 Method and device for painting out

Country Status (1)

Country Link
JP (1) JPH02144781A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0520463A (en) * 1991-07-15 1993-01-29 Matsushita Electric Ind Co Ltd Plotting controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0520463A (en) * 1991-07-15 1993-01-29 Matsushita Electric Ind Co Ltd Plotting controller

Similar Documents

Publication Publication Date Title
US3936664A (en) Method and apparatus for generating character patterns
EP0199989A2 (en) Method and system for image processing
US5170442A (en) Character pattern transforming system
US5519412A (en) Pattern processing method
US5606656A (en) Image data processing unit for forming a plurality of identical images in a single output image area
JPH02144781A (en) Method and device for painting out
US6504543B1 (en) Polygon drawing method and polygon drawing apparatus
JP2770582B2 (en) Figure filling device
JP2774662B2 (en) Character processor
JPH0594170A (en) Vector font plotting device
JP2776347B2 (en) Drawing device for printer
JPH06314091A (en) Outline filling method and its circuit
JP4058197B2 (en) Drawing apparatus, drawing method, and storage medium
JP2804651B2 (en) Outline filling method
JPH0573693A (en) Outline paint out system
JPH02252075A (en) Graphic formation system
JPH0259871A (en) Image processor
JPH0268672A (en) Address generating part for picture processing processor
JPH0341583A (en) Method and device for painting out
JPS63234370A (en) Generating device for paint-out graphic
JPH0368088A (en) Method and device for pattern generation
JPH05216466A (en) Filled figure generation method
JPH10240221A (en) Method and device for painting out outline font constituting character by element classifications and storage medium
JPH05131674A (en) Recorder
JPH0424688A (en) Image processor