JP3129717B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method

Info

Publication number
JP3129717B2
JP3129717B2 JP63210450A JP21045088A JP3129717B2 JP 3129717 B2 JP3129717 B2 JP 3129717B2 JP 63210450 A JP63210450 A JP 63210450A JP 21045088 A JP21045088 A JP 21045088A JP 3129717 B2 JP3129717 B2 JP 3129717B2
Authority
JP
Japan
Prior art keywords
data
memory
closed
contour
dot
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.)
Expired - Fee Related
Application number
JP63210450A
Other languages
Japanese (ja)
Other versions
JPH0259871A (en
Inventor
洋 高倉
高裕 加藤
正基 浜田
邦雄 瀬戸
昭史 白坂
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 JP63210450A priority Critical patent/JP3129717B2/en
Priority to EP89308684A priority patent/EP0356262B1/en
Priority to DE68923412T priority patent/DE68923412T2/en
Publication of JPH0259871A publication Critical patent/JPH0259871A/en
Priority to US08/400,262 priority patent/US6057825A/en
Application granted granted Critical
Publication of JP3129717B2 publication Critical patent/JP3129717B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、ベクトル情報に基づいて閉図形の内部の
塗りつぶし処理を行う画像処理装置および画像処理方法
に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and an image processing method for performing a filling process inside a closed figure based on vector information.

〔従来の技術〕[Conventional technology]

従来、この種の画像処理方式としては特開昭60−1322
71号公報等に示されるように境界線情報と所定の塗り込
みパターンとの排他的論理和処理によりメモリに書込む
場合と、特開昭50−14230号公報に示されるように輪郭
情報をスキャンして得られる1−1区間に対応するメモ
リ上に画素を塗り込む場合と、作成された輪郭テーブル
等に基づいてメモリ上に画素を塗り込む場合等の代表的
な方法が提案されている。
Conventionally, as this type of image processing method, Japanese Patent Application Laid-Open No. Sho 60-1322
Japanese Patent Application Laid-Open No. 50-14230 discloses a method of writing in a memory by exclusive OR processing of boundary line information and a predetermined paint pattern, as described in Japanese Patent Application Laid-Open No. 71230/1995. Representative methods have been proposed, such as a case where pixels are painted on a memory corresponding to the 1-1 section obtained as described above, and a case where pixels are painted on a memory based on a created contour table or the like.

第9図(a)〜(e)は従来の閉図形塗り込み処理の
一例を説明する模式図である。同図(a)において、閉
図形50は4本の境界線51〜54により閉図形を構成する。
55は塗り潰しパターンを示し、この塗り潰しパターン55
と境界線51〜54との排他的論理和処理により塗り潰しを
行う。
9 (a) to 9 (e) are schematic diagrams illustrating an example of a conventional closed figure painting process. In FIG. 7A, a closed figure 50 is constituted by four boundary lines 51 to 54.
55 indicates a fill pattern, and the fill pattern 55
Is performed by exclusive OR processing with the boundary lines 51 to 54.

なお、閉図形50を構成する境界線51〜54は、始点61と
終点62をパラメータとした3本以上のベクトルデータで
表わされ、これらのベクトルデータの始点と終点パラメ
ータに基づいて塗り潰しを行う範囲(図中の1点鎖線エ
リア内)を規定する。
The boundary lines 51 to 54 constituting the closed figure 50 are represented by three or more vector data using the start point 61 and the end point 62 as parameters, and are filled based on the start point and end point parameters of these vector data. A range (within a dashed line area in the figure) is defined.

この方式では、各境界線51〜54を順次フルドットメモ
リ(図示しない)に直接書き込むと同時に塗り潰しパタ
ーンの書き込みも行う。
In this method, the boundary lines 51 to 54 are sequentially written directly to a full dot memory (not shown), and at the same time, a writing pattern is also written.

第9図(b)は境界線51だけをフルドットメモリへ書
き込むとともに、この境界線情報から塗り潰しパターン
55を書き込んだ状態を示し、境界線51は始点61から終点
62までを1ドットずつドット発生処理を行い線描画す
る。このとき、1ドット発生毎に隣接する右側のドット
位置から先に規定した塗り潰し範囲内を横方向(x軸方
向)1ラスタ分の塗り潰しパターン55の書き込み処理を
行う。この時メモリへ書き込まれているデータとの排他
的論理和をとり、フルドットメモリへ書き込む処理を行
う。従って、書き込むパターンが「1」であり、かつメ
モリ上の既データが「1」である場合は、メモリ上には
「0」データが書き込まれる。
FIG. 9 (b) shows that only the boundary line 51 is written in the full dot memory, and the filling pattern is obtained from the boundary line information.
Indicates the state where 55 is written, and the boundary 51 is from the start point 61 to the end point
A dot generation process is performed for each of the dots up to 62 one dot at a time to draw a line. At this time, every time one dot is generated, a writing process of a fill pattern 55 for one raster in the horizontal direction (x-axis direction) is performed in the fill range defined in advance from the adjacent right dot position. At this time, an exclusive OR operation with the data written in the memory is performed, and a process of writing the data in the full dot memory is performed. Therefore, when the pattern to be written is “1” and the data already stored in the memory is “1”, the data “0” is written in the memory.

このようにして上記各境界線51〜54の始点61から終点
62までをドット発生させると、同図(b)〜同図(e)
に示されるように順次排他的論理和処理により、閉図形
50内にドット情報が書き込まれる。
In this way, from the start point 61 to the end point of each of the above boundary lines 51 to 54
When dots are generated up to 62, FIGS.
As shown in the figure, the closed figure
Dot information is written in 50.

第10図は従来の閉図形塗り潰し原理を説明する模式図
であり、65はメモリで、閉図形66が展開された状態に対
応する。
FIG. 10 is a schematic diagram for explaining the conventional principle of filling a closed figure. Reference numeral 65 denotes a memory corresponding to a state where the closed figure 66 is expanded.

77はスキャンラインを示し、このスキャンライン77に
対する閉図形66との交差間の「0」データを、図中では
〜,〜,〜までの「0」信号を「1」信号
に変換して1ライン上の塗り潰しを実行し、これをスキ
ャン方向に対して順次実行させて閉図形66内を塗り潰
す。
Numeral 77 denotes a scan line, which converts "0" data between the intersection of the scan line 77 and the closed figure 66 into "1" signals by converting "0" signals of ~, ~, ~ to "1" signals in the figure. The filling on the line is executed, and this is sequentially executed in the scanning direction to fill the inside of the closed figure 66.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

ところが、上記従来の塗り潰し処理に対しては以下に
記述する問題点があった。
However, the above-described conventional filling processing has the following problems.

スキャンの「1」信号間の「0」信号を「1」信号に
変換する塗り潰し処理においては、処理およびハード構
成が簡単である反面、スキャンラインと輪郭線の頂点と
が交差する場合は、すなわち輪郭線との交差点数が奇数
個の場合は、塗りが正常に行われないため、その点にお
いて例外処理を実行しなければならず、図形形状に左右
された処理時間を要する。
In the filling process of converting a “0” signal between “1” signals in a scan into a “1” signal, the processing and the hardware configuration are simple, but when the scan line and the vertex of the contour line intersect, If the number of intersections with the contour line is an odd number, painting is not performed normally, and exception processing must be performed at that point, requiring a processing time depending on the figure shape.

また、排他論理和処理により塗り潰し処理を行う場合
には、単位ドット当たりの論理演算時間がかさむので、
全体として処理速度が落ち込む場合が多いし、また、塗
り潰しパターンの取り扱いが煩雑である。
Further, when the filling process is performed by the exclusive OR process, since the logical operation time per unit dot increases,
In many cases, the processing speed is reduced as a whole, and the handling of the fill pattern is complicated.

さらに、輪郭テーブルによる塗り潰し処理において
は、図形形状が複雑になるにつれて輪郭点数が増える
が、設定された輪郭テーブル容量を越えた場合には、所
定の輪郭点数間引き処理が行われ、オリジナルの図形形
状とは異なる近似形状の塗り潰し処理となって、印字の
品位を低下させてしまう等の問題点があった。
Further, in the filling processing using the contour table, the number of contour points increases as the figure shape becomes more complicated. However, when the capacity exceeds the set contour table capacity, a predetermined contour point number thinning process is performed and the original figure shape is reduced. However, there is a problem that the filling process of an approximate shape different from the above is performed, and the quality of printing is reduced.

この発明は、上記問題点を解決するためになされたも
ので、閉図形を構成する複数の輪郭線をベクトルデータ
として記憶する輪郭情報メモリに記憶されているベクト
ルデータで規定される1つの輪郭線に対向するパターン
メモリのドットデータを展開方向に沿って、「1」であ
れば「0」、「0」であれば「1」というように順次反
転しながら書き込むことを閉図形を構成する複数の輪郭
線分行うことにより閉図形の内部の塗りつぶし処理を行
うことにより、従来の塗りつぶしパターンデータをすで
に書き込まれている塗りつぶしパターンデータとの排他
的論理和をとりながら書き込む閉図形の塗りつぶし処理
より閉図形を高速に塗りつぶすことができる画像処理装
置および画像処理方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem, and one contour line defined by vector data stored in a contour information memory storing a plurality of contour lines constituting a closed figure as vector data. The writing of the dot data of the pattern memory opposite to the pattern is performed while sequentially inverting the dot data along the development direction, such as "0" for "1" and "1" for "0". By performing the fill processing inside the closed figure by performing the contour line of the closed figure, the conventional fill pattern data is closed from the fill processing of the closed figure which is written while taking the exclusive OR with the already written fill pattern data. It is an object of the present invention to provide an image processing apparatus and an image processing method capable of filling a figure at high speed.

〔問題点を解決するための手段〕[Means for solving the problem]

この発明に係る画像処理装置は、閉図形を構成する複
数の輪郭線をベクトルデータとして記憶する輪郭情報メ
モリと、前記ベクトルデータで規定される1つの輪郭線
に対向するパターンメモリのドットデータを展開方向に
沿って順次反転しながら書き込むことを閉図形を構成す
る複数の輪郭線分行うことにより閉図形の内部の塗りつ
ぶし処理を行う反転塗りつぶし処理手段とを有し、前記
反転塗りつぶし処理手段は、パターンメモリのドットデ
ータが「1」であれば「0」にし、「0」であれば
「1」にして書き込むものである。
An image processing apparatus according to the present invention develops a contour information memory for storing a plurality of contour lines constituting a closed figure as vector data, and expands dot data of a pattern memory opposed to one contour line defined by the vector data. Inversion filling processing means for performing filling processing inside the closed figure by performing writing while sequentially inverting along the direction for a plurality of contour lines constituting the closed figure, wherein the reverse filling processing means comprises a pattern If the dot data in the memory is "1", it is written as "0", and if it is "0", it is written as "1".

また、前記パターンメモリに書き込まれたドットデー
タをイメージとして出力する出力手段を有するものであ
る。
The image processing apparatus further includes an output unit that outputs the dot data written in the pattern memory as an image.

この発明に係る画像処理方法は、閉図形を構成する複
数の輪郭線をベクトルデータとして記憶する輪郭情報メ
モリに記憶されているベクトルデータで規定される1つ
の輪郭線に対向するパターンメモリのドットデータを展
開方向に沿って順次反転しながら書き込むことを閉図形
を構成する複数の輪郭線分行うことにより閉図形の内部
の塗りつぶし処理を行う反転塗りつぶし処理ステップを
有し、前記反転塗りつぶし処理ステップは、パターンメ
モリのドットデータが「1」であれば「0」にし、
「0」であれば「1」にして書き込むものである。
An image processing method according to the present invention is directed to a dot data of a pattern memory opposed to one contour defined by vector data stored in a contour information memory storing a plurality of contours constituting a closed figure as vector data. Has a reverse fill processing step of performing a fill process inside the closed figure by performing writing while sequentially inverting along the development direction for a plurality of contour lines constituting the closed figure, and the reverse fill processing step includes: If the dot data in the pattern memory is "1", it is set to "0",
If it is "0", it is written as "1".

また、前記パターンメモリに書き込まれたドットデー
タをイメージとして出力する出力ステップを有するもの
である。
The image processing apparatus further includes an output step of outputting the dot data written in the pattern memory as an image.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示す画像処理装置の構
成を説明するブロック図であり、1は指示手段で、これ
から塗り潰し処理対象となる閉図形をコードで指示また
は表示装置5に描画された閉図形を指示する。2は輪郭
情報メモリで、閉図形を構成する複数の輪郭線情報をベ
クトルデータとしてあらかじめまたは表示装置5に描画
された閉図形のベクトルデータを記憶し、指示手段1か
らのコード入力またはカーソル等の図形指示により対象
となる閉図形のベクトルデータを反転塗り潰し処理手段
3に出力する。
FIG. 1 is a block diagram for explaining the configuration of an image processing apparatus according to an embodiment of the present invention. Reference numeral 1 denotes an instruction means, which instructs a closed figure to be subjected to a filling process from a code or draws it on a display device 5 by code. Specify a closed figure. Reference numeral 2 denotes an outline information memory which stores vector information of a plurality of outlines constituting the closed figure as vector data or vector data of the closed figure drawn on the display device 5 and inputs a code from the instruction means 1 or a cursor or the like. The vector data of the target closed graphic is output to the reverse filling processing means 3 according to the graphic instruction.

反転塗り潰し処理手段3は、ベクトル情報で規定され
る1つの輪郭線に対向するパターンメモリ4内の書込み
ドットを展開方向に沿って順次反転しながら書き込み、
パターンメモリ4内の閉図形内部を黒ドット展開させ
て、塗り潰し処理を行う。なお、反転塗り潰し処理と
は、パターンメモリ4内の各ドットデータAを反転(1
0,01)してパターンメモリ4に再書込みする処理
を言う。
The reverse filling processing means 3 writes while sequentially inverting the write dots in the pattern memory 4 facing one outline defined by the vector information along the development direction,
The inside of the closed figure in the pattern memory 4 is developed with black dots, and a filling process is performed. Note that the inversion filling process is to invert each dot data A in the pattern memory 4 (1
0,01) and rewrites the pattern memory 4.

6は印字装置で、パターンメモリ4に対してビットマ
ップに展開されたドットデータをドットイメージとして
印字する。
Reference numeral 6 denotes a printing device which prints dot data developed into a bit map on the pattern memory 4 as a dot image.

次に第2図および第3図を参照しながらこの発明によ
る反転塗り潰し処理について説明する。
Next, the reverse filling process according to the present invention will be described with reference to FIGS.

第2図は塗り潰し対象となる図形輪郭線を示す模式図
であり、閉図形11は輪郭線11a〜11dから構成される状態
を示し、この輪郭線11a〜11dを規定するベクトル情報が
輪郭情報メモリ2に記憶されている。
FIG. 2 is a schematic diagram showing a contour of a figure to be filled. A closed figure 11 shows a state composed of contours 11a to 11d, and vector information defining the contours 11a to 11d is stored in a contour information memory. 2 is stored.

第3図は、第1図に示した反転塗り潰し処理手段3に
よる反転塗り潰し処理推移を示す模式図であり、同図
(a)は書込み前の状態で、反転塗り潰し処理手段3に
より初期化(オール「0」)した状態に対応する。同図
(b)は第1回目の反転塗り潰し処理状態に対応し、輪
郭線11aに対してx方向(書込み方向)に対して各ドッ
トを反転展開した状態に対応する。同図(c)は第2回
目の反転塗り潰し処理状態に対応し、輪郭線11bに対し
てx方向(書込み方向)に対して各ドットを反転展開し
た状態に対応する。同図(d)は第3回目の反転塗り潰
し処理状態に対応し、輪郭線11cに対してx方向(書込
み方向)に対して各ドットを反転展開した状態に対応す
る。同図(e)は第4回目の反転塗り潰し処理状態に対
応し、輪郭線11dに対してx方向(書込み方向)に対し
て各ドットを反転展開した状態に対応し、その結果塗り
潰し図形12が生成展開される。
FIG. 3 is a schematic diagram showing the transition of the reverse filling processing by the reverse filling processing means 3 shown in FIG. 1. FIG. 3 (a) shows the state before the writing and the initialization (all "0"). FIG. 13B corresponds to the first reverse filling processing state, in which each dot is reversed and developed in the x direction (writing direction) with respect to the contour line 11a. FIG. 11C corresponds to the second reverse filling processing state, in which each dot is reversed and developed in the x direction (writing direction) with respect to the contour line 11b. FIG. 14D corresponds to the third reverse filling processing state, and corresponds to a state where each dot is reversed and developed in the x direction (writing direction) with respect to the contour line 11c. FIG. 11E corresponds to the fourth inversion filling processing state, in which each dot is inverted and developed in the x direction (writing direction) with respect to the contour line 11d, and as a result, the filled figure 12 is formed. Generated and expanded.

先ず、指示手段1より閉図形11に対する指示がコード
またはピックで与えられると、輪郭情報メモリ2から輪
郭線11a〜11dを規定するベクトル情報が反転塗り潰し処
理手段3に送出される。
First, when an instruction for the closed graphic 11 is given by a code or a pick from the instruction means 1, vector information defining the outlines 11 a to 11 d is sent from the outline information memory 2 to the reverse filling processing means 3.

そこで、反転塗り潰し処理手段3がパターンメモリ4
を、第3図(a)に示すように初期化する。そして、輪
郭線11aに対する反転塗り潰し処理を行う(第3図
(b)参照)。次いで、輪郭線11bに対する反転塗り潰
し処理を行うが、既にパターンメモリ4内には第3図
(b)に示すドットデータが書込まれているので、輪郭
線11bに対する反転塗り潰し処理を行うと、第3図
(c)に示すように輪郭線11bの書込み方向側のドット
が「0」に反転される。
Therefore, the reverse filling processing means 3 is provided with the pattern memory 4
Are initialized as shown in FIG. 3 (a). Then, a reverse filling process is performed on the contour line 11a (see FIG. 3B). Next, the reverse filling process for the contour line 11b is performed. Since the dot data shown in FIG. 3B has already been written in the pattern memory 4, the reverse filling process for the contour line 11b is performed. 3 As shown in FIG. 3C, the dot on the writing direction side of the contour line 11b is inverted to "0".

次いで、輪郭線11cに対する反転書込み処理を行う
と、第3図(d)に示すように、輪郭線11cの書込み方
向側のドットが「1」に反転される。さらに、輪郭線11
dに対する反転書込み処理を行うと、第3図(e)に示
すように、輪郭線11dの書込み方向側のドットが「1」
「0」または「0」「1」に反転され、塗り潰し図
形12がパターンメモリ4に展開記憶される。
Next, when the inversion writing process is performed on the contour line 11c, as shown in FIG. 3D, the dot on the writing direction side of the contour line 11c is inverted to "1". In addition, contour 11
When the reverse writing process is performed on d, as shown in FIG. 3E, the dot on the writing direction side of the contour line 11d becomes “1”.
The figure is inverted to “0” or “0” or “1”, and the filled figure 12 is expanded and stored in the pattern memory 4.

ここで、指示手段1より展開された塗り潰し図形12に
対する表示または印字要求がなされると、表示装置5に
表示(ただし、解像度に応じた間引き表示)されたり、
印字装置6よりドットイメージとして画像出力される。
Here, when a display or print request is made for the filled figure 12 developed by the instructing means 1, it is displayed on the display device 5 (however, a thinned-out display in accordance with the resolution) or
The image is output from the printing device 6 as a dot image.

なお、上記反転塗り潰し処理において、各頂点または
塗りの終了側の輪郭線において、反転塗り潰し終了時点
で、第4図(a)〜(c)に示すような白抜けが発生す
る場合があるので、塗りの走査方向に対して1ドットず
らして書き込んでいる。
Note that, in the above-described reverse filling processing, white spots as shown in FIGS. 4 (a) to 4 (c) may occur at the end of the reverse filling at each vertex or the contour line on the end side of the painting. The writing is performed by shifting one dot with respect to the painting scanning direction.

第4図(a)〜(c)は塗り潰し処理における塗り残
し現象を説明する模式図であり、●は塗り(黒)ドット
を示し、○は塗り残しドットを示す。
4 (a) to 4 (c) are schematic diagrams for explaining an unpainted phenomenon in the paint-out processing, where ● indicates a painted (black) dot and ○ indicates an unpainted dot.

同図(a)〜同図(c)に示されるように矢印方向に
輪郭線を追跡しながら上記の反転処理を実行すると、塗
りの終了側の輪郭線が消失してしまう。従って、さらに
高品位な塗り潰しを行うためには、塗り潰し処理終了
後、輪郭をORで描画するか、あるいは終了側の追跡時に
は、1ドット走査方向にずらした位置から反転を開始す
る等の処理を必要とする。ただし、このような塗り処理
を実行すると、結果として頂点を塗れないので、頂点に
関して元の位置から塗る処理が必要となる。
As shown in FIGS. 9A to 9C, if the above-described inversion processing is performed while tracing the contour in the direction of the arrow, the contour on the end side of the painting disappears. Therefore, in order to perform higher-quality filling, after finishing the filling process, the outline is drawn by OR, or when tracing the end side, processing such as starting inversion from a position shifted in the one-dot scanning direction is performed. I need. However, if such a painting process is performed, the vertex cannot be painted as a result, so that a process of painting the vertex from the original position is required.

また、上記実施例においては、単純図形を対象として
塗り潰し処理を実行する場合について説明したが、ベク
トル情報で規定されるアウトラインフォントの塗り潰し
処理(これによりベクトルフォントが発生)にも上記反
転塗り潰し処理を実行することができる。
Further, in the above embodiment, the case where the filling process is executed for the simple figure has been described. However, the above-described inverting filling process is also used for the filling process of the outline font defined by the vector information (this generates the vector font). Can be performed.

第5図は輪郭情報に基づくベクトルフォントを発生出
力する文書装置の一例を示すブロック図であり、21は制
御部で、マイクロコンピュータ等のCPU21a,CPU21aの制
御プログラムや各種データ等を記憶しているROM21b,CPU
21aのワークエリアとして各種データの一時保存を行うR
AM21c,ベクトルフォントメモリ(輪郭情報メモリ)21e
およびアドレステーブル21d等を有する。なお、ベクト
ルフォントメモリ(輪郭情報メモリ)21eには、文字コ
ードに対応する文字等のベクトルフォントデータ(文字
の輪郭を示すベクトル情報)が属性情報とともに記憶さ
れている。
FIG. 5 is a block diagram showing an example of a document device for generating and outputting a vector font based on contour information. Reference numeral 21 denotes a control unit which stores a CPU 21a such as a microcomputer, a control program for the CPU 21a, various data, and the like. ROM21b, CPU
R that temporarily saves various data as a work area for 21a
AM21c, vector font memory (contour information memory) 21e
And an address table 21d. In the vector font memory (outline information memory) 21e, vector font data (vector information indicating the outline of the character) such as a character corresponding to the character code is stored together with attribute information.

アドレステーブル21dには、文字パターンのコードに
対応してフォントデータのアドレスを記憶している。
The address table 21d stores font data addresses corresponding to character pattern codes.

22はビットマップとして構成されるイメージメモリ
で、キャラクタジェネレータ26によりベクトルからなる
アウトライン文字データがドットに変換された後、文字
のドットイメージが展開される。また、キャラクタジェ
ネレータ26は、ビットマップメモリRAM26aを有し、ベク
トルからドットへ展開するときのワークメモリとして動
作する。その後、ビデオメモリ27を介して後述するCRT
装置において表示が行われたり、インタフェース部25b
を介してRAM26aの内容がプリンタ25aに送られ印字処理
が行われる。
Reference numeral 22 denotes an image memory configured as a bit map. The character generator 26 converts outline character data composed of vectors into dots, and then develops a dot image of the character. Further, the character generator 26 has a bitmap memory RAM 26a, and operates as a work memory when developing from vectors to dots. Then, the CRT described later via the video memory 27
The display is performed on the device or the interface unit 25b
The contents of the RAM 26a are sent to the printer 25a via the printer and the printing process is performed.

23はCRT装置で、ビデオメモリ27に展開されたビット
イメージを高精細に表示する。例えばベクトルフォント
を表示する場合は、キャラクタジェネレータ26によりベ
クトル情報をドットに展開し、ビデオメモリ27に転送す
ることで行う。
Reference numeral 23 denotes a CRT device which displays the bit image developed in the video memory 27 with high definition. For example, when displaying a vector font, the vector information is developed into dots by the character generator 26 and transferred to the video memory 27.

24aはキーボード、24bはポインティングデバイスで、
キーボード24aと相まって文書装置のデータ入力源とし
て動作する。なお、28はバスである。
24a is a keyboard, 24b is a pointing device,
Together with the keyboard 24a, it operates as a data input source of the document device. 28 is a bus.

第6図は、第5図に示したベクトルフォントメモリ
(輪郭情報メモリ)21eに記憶されるベクトルフォント
データと印字パターンとの対応関係を示す模式図であ
り、例えば文字コードがJIS−C−6226コード体系にお
ける「3026」の文字「愛」の場合を示し、31はベクトル
フォントデータで、愛と文字の輪郭点(図中の・)を座
標データとして記憶している。32は印字出力文字を示
し、ベクトルフォントデータ31で規定された輪郭線に対
して上述した塗り潰し処理を施して出力したものに対応
している。
FIG. 6 is a schematic diagram showing the correspondence between the vector font data stored in the vector font memory (contour information memory) 21e shown in FIG. 5 and the print pattern. For example, the character code is JIS-C-6226. This shows the case of the character "love" of "3026" in the code system, and 31 is vector font data, which stores love and contour points (in the figure) of the character as coordinate data. Reference numeral 32 denotes a print output character, which corresponds to a character output by performing the above-described filling process on the contour defined by the vector font data 31.

次に第7図を参照しながらベクトルフォントデータ31
に基づく塗り潰し出力処理について説明する。
Next, referring to FIG.
Will be described.

第7図はこの発明によるベクトルフォントデータ31に
基づく塗り潰し出力処理手順の一例を説明するフローチ
ャートである。なお、(1)〜(9)は各ステップを示
す。
FIG. 7 is a flow chart for explaining an example of a procedure of a filling output process based on the vector font data 31 according to the present invention. Note that (1) to (9) indicate each step.

先ず、CPU21aの指示によりキャラクタジェネレータ26
がビットマップメモリRAM26aを初期化し(1)、1頁分
の文書情報入力が完了するのを待機し(2)、初期化さ
れたら、RAM21cに記憶された文字コード解析を実行し
(3)、解析された文字コードに基づいてアドレステー
ブル21dを参照し(4)、ベクトルフォントメモリ21eか
ら複数の輪郭線データを読出し(5)、各輪郭線データ
に対してビットマップメモリRAM26aに反転展開し、それ
をイメージメモリ22へ転送する(6)。次いで、全ての
文字コードに対するすべての輪郭線データに対する反転
展開が完了したかどうかを判断し(7)、NOならばステ
ップ(3)に戻り、YESならば印字指令が入力されるの
を待機し(8)、YESならばイメージメモリ22内のビッ
トマップデータをプリンタ25aに転送して印字を行う
(9)。
First, the character generator 26 is instructed by the CPU 21a.
Initializes the bitmap memory RAM 26a (1), waits for completion of inputting document information for one page (2), and when initialized, performs character code analysis stored in the RAM 21c (3) Referring to the address table 21d based on the analyzed character code (4), a plurality of contour data are read from the vector font memory 21e (5), and each contour data is inverted and developed in the bitmap memory RAM 26a. It is transferred to the image memory 22 (6). Next, it is determined whether or not the inversion of all the outline data for all the character codes has been completed (7). If NO, the process returns to step (3). If YES, the process waits for a print command to be input. (8) If YES, the bitmap data in the image memory 22 is transferred to the printer 25a for printing (9).

これにより、従来の排他的論理和処理による塗り潰し
処理より格段の処理向上が期待でき、ビットマップにベ
クトルフォントを表示またはドットイメージとして高速
に印字出力可能となる。
As a result, much higher processing can be expected than the conventional filling processing by exclusive OR processing, and it is possible to display a vector font on a bitmap or print out a dot image at high speed.

なお、第8図に示す如くキャラクタジェネレータ26の
ベクトルからなるアウトラインフォントの文字データの
ドットへの展開において、ワークのビットマップメモリ
RAM26aの展開方向に対する先頭展開アドレスと最終展開
アドレスとから中点アドレスを演算し、その中点アドレ
スまたは上記ワークに設定される、例えば128ポイント
程度のビットマップエリアの中間ビットに対して、先頭
展開アドレスからは中点アドレスまたは中間ビット方向
に塗り潰し処理を実行し、最終展開アドレスからは中点
アドレスまたは中間ビット方向に逆向きに塗り潰し処理
させるように制御すれば(第8図参照)、余分なアドレ
スへの塗り潰し処理を制限できる。従って、上記実施例
よりもなお一層高速に塗り潰し処理を完了させることが
でき、印字スピードおよび表示スピードを格段に向上さ
せることができる。
As shown in FIG. 8, when the character data of the outline font composed of the vector of the character generator 26 is expanded into dots, the bit map memory of the work is used.
Calculate the middle point address from the top development address and the last development address in the development direction of the RAM 26a, and perform the top development on the middle point address or the middle bit of the bit map area of, for example, about 128 points set in the work. If control is performed so that the filling process is performed from the address in the direction of the midpoint address or the intermediate bit, and from the final expanded address, the processing is performed in the direction of the midpoint address or the direction of the intermediate bit (see FIG. 8), an extra You can restrict the filling process for addresses. Therefore, the filling process can be completed even more rapidly than in the above embodiment, and the printing speed and the display speed can be remarkably improved.

〔発明の効果〕〔The invention's effect〕

以上説明したように、この発明に係る画像処理装置に
よれば、閉図形を構成する複数の輪郭線をベクトルデー
タとして記憶する輪郭情報メモリと、前記ベクトルデー
タで規定される1つの輪郭線に対向するパターンメモリ
のドットデータを展開方向に沿って順次反転しながら書
き込むことを閉図形を構成する複数の輪郭線分行うこと
により閉図形の内部の塗りつぶし処理を行う反転塗りつ
ぶし処理手段とを有し、前記反転塗りつぶし処理手段
は、パターンメモリのドットデータが「1」であれば
「0」にし、「0」であれば「1」にして書き込むの
で、従来の塗りつぶしパターンデータをすでに書き込ま
れている塗りつぶしパターンデータとの排他的論理和を
とりながら書き込む閉図形の塗りつぶし処理より閉図形
を高速に塗りつぶすことができる。
As described above, according to the image processing apparatus of the present invention, the contour information memory that stores the plurality of contours that form the closed figure as vector data and the one that is opposed to one contour defined by the vector data Reverse writing processing means for performing a filling process inside the closed graphic by performing writing while sequentially inverting the dot data of the pattern memory along the development direction to perform a plurality of contour lines constituting the closed graphic, The reverse fill processing means writes "0" if the dot data in the pattern memory is "1" and writes "1" if the dot data is "0". Therefore, the conventional fill pattern data is written in the previously written fill data. The closed figure can be filled faster than the fill processing of the closed figure written while taking exclusive OR with the pattern data. Kill.

また、前記パターンメモリに書き込まれたドットデー
タをイメージとして出力する出力手段を有するので、従
来の塗りつぶしパターンデータをすでに書き込まれてい
る塗りつぶしパターンデータとの排他的論理和をとりな
がら書き込む閉図形の塗りつぶし処理より閉図形を高速
に塗りつぶして出力することができる。
In addition, since there is output means for outputting the dot data written in the pattern memory as an image, the conventional fill pattern data is written while taking an exclusive OR with the already written fill pattern data. The closed figure can be filled and output faster than the processing.

また、この発明に係る画像処理方法によれば、閉図形
を構成する複数の輪郭線をベクトルデータとして記憶す
る輪郭情報メモリに記憶されているベクトルデータで規
定される1つの輪郭線に対向するパターンメモリのドッ
トデータを展開方向に沿って順次反転しながら書き込む
ことを閉図形を構成する複数の輪郭線分行うことにより
閉図形の内部の塗りつぶし処理を行う反転塗りつぶし処
理ステップを有し、前記反転塗りつぶし処理ステップ
は、パターンメモリのドットデータが「1」であれば
「0」にし、「0」であれば「1」にして書き込むの
で、従来の塗りつぶしパターンデータをすでに書き込ま
れている塗りつぶしパターンデータとの排他的論理和を
とりながら書き込む閉図形の塗りつぶし処理より閉図形
を高速に塗りつぶすことができる。
Further, according to the image processing method of the present invention, a pattern facing one contour defined by vector data stored in a contour information memory storing a plurality of contours forming a closed figure as vector data. A step of inverting the dot data in the memory while sequentially inverting the dot data in the development direction for a plurality of contour lines constituting the closed figure to thereby perform a filling process inside the closed figure; In the processing step, if the dot data in the pattern memory is "1", it is set to "0", and if the dot data is "0", it is set to "1", so that the conventional fill pattern data is written with the already written fill pattern data. Filling closed figures faster than filling closed figures written while taking the exclusive OR of Kill.

また、前記パターンメモリに書き込まれたドットデー
タをイメージとして出力する出力ステップを有するの
で、従来の塗りつぶしパターンデータをすでに書き込ま
れている塗りつぶしパターンデータとの排他的論理和を
とりながら書き込む閉図形の塗りつぶし処理より閉図形
を高速に塗りつぶし、出力することができる。
Further, since the method has an output step of outputting dot data written in the pattern memory as an image, the conventional fill pattern data is written with exclusive OR with the already written fill pattern data while the closed figure is written. The closed figure can be filled and output faster than the processing.

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

第1図はこの発明の一実施例を示す画像処理装置の構成
を説明するブロック図、第2図は塗り潰し対象となる図
形輪郭線を示す模式図、第3図は、第1図に示した反転
塗り潰し処理手段による反転塗り潰し処理推移を示す模
式図、第4図(a)〜(c)は塗り潰し処理における塗
り残し現象を説明する模式図、第5図は輪郭情報に基づ
くベクトルフォントを発生出力する文書装置の一例を示
すブロック図、第6図は、第5図に示したベクトルフォ
ントメモリに記憶されるベクトルフォントデータと印字
パターンとの対応関係を示す模式図、第7図はこの発明
によるベクトルフォントデータに基づく塗り潰し出力処
理手順の一例を説明するフローチャート、第8図はこの
発明の他の反転塗り潰し展開処理を説明する模式図、第
9図(a)〜(e)は従来の閉図形塗り込み処理の一例
を説明する模式図、第10図は従来の閉図形塗り潰し原理
を説明する模式図である。 図中、1は指示手段、2は輪郭情報メモリ、3は反転塗
り潰し処理手段、4はパターンメモリ、5は表示装置、
6は印字装置である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a schematic diagram illustrating a contour of a graphic to be painted, and FIG. 3 is a diagram illustrated in FIG. FIGS. 4A to 4C are schematic diagrams illustrating the transition of the reverse painting process by the reverse painting process unit, FIGS. 4A to 4C are schematic diagrams illustrating the unpainted phenomenon in the painting process, and FIG. 5 generates and outputs a vector font based on contour information. FIG. 6 is a block diagram showing an example of a document device which performs the above-described operation. FIG. 6 is a schematic diagram showing the correspondence between vector font data stored in the vector font memory shown in FIG. 5 and a print pattern. FIG. FIG. 8 is a flow chart for explaining an example of a paint output processing procedure based on vector font data. FIG. 8 is a schematic view for explaining another reverse fill development processing of the present invention, and FIGS. 9 (a) to 9 (e). Is a schematic diagram for explaining an example of processing narrowing coating conventional closed figure, FIG. 10 is a schematic view for explaining the principle fill conventional closed figure form. In the figure, 1 is an instruction means, 2 is an outline information memory, 3 is a reverse filling processing means, 4 is a pattern memory, 5 is a display device,
Reference numeral 6 denotes a printing device.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 浜田 正基 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (72)発明者 瀬戸 邦雄 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (72)発明者 白坂 昭史 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (56)参考文献 特開 昭63−26773(JP,A) 特開 昭62−6381(JP,A) 特開 昭60−132271(JP,A) ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Masaki Hamada 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (72) Inventor Kunio Seto 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Incorporated (72) Inventor Akashi Shirasaka 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (56) References JP-A-63-26773 (JP, A) JP-A-62-6381 (JP) , A) JP-A-60-132271 (JP, A)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】閉図形を構成する複数の輪郭線をベクトル
データとして記憶する輪郭情報メモリと、 前記ベクトルデータで規定される1つの輪郭線に対向す
るパターンメモリのドットデータを展開方向に沿って順
次反転しながら書き込むことを閉図形を構成する複数の
輪郭線分行うことにより閉図形の内部の塗りつぶし処理
を行う反転塗りつぶし処理手段とを有し、 前記反転塗りつぶし処理手段は、パターンメモリのドッ
トデータが「1」であれば「0」にし、「0」であれば
「1」にして書き込むことを特徴とする画像処理装置。
1. A contour information memory for storing a plurality of contour lines constituting a closed figure as vector data, and dot data of a pattern memory opposed to one contour line defined by the vector data along a developing direction. Inversion filling processing means for performing a filling process inside the closed graphic by performing writing while sequentially inverting a plurality of contour lines constituting the closed graphic, wherein the inversion filling processing means includes dot data in a pattern memory. An image processing apparatus, wherein if "1" is set to "0", and if "0" is set to "1", writing is performed.
【請求項2】前記パターンメモリに書き込まれたドット
データをイメージとして出力する出力手段を有すること
を特徴とする請求項1記載の画像処理装置。
2. An image processing apparatus according to claim 1, further comprising output means for outputting dot data written in said pattern memory as an image.
【請求項3】閉図形を構成する複数の輪郭線をベクトル
データとして記憶する輪郭情報メモリに記憶されている
ベクトルデータで規定される1つの輪郭線に対向するパ
ターンメモリのドットデータを展開方向に沿って順次反
転しながら書き込むことを閉図形を構成する複数の輪郭
線分行うことにより閉図形の内部に塗りつぶし処理を行
う反転塗りつぶし処理ステップを有し、 前記反転塗りつぶし処理ステップは、パターンメモリの
ドットデータが「1」であれば「0」にし、「0」であ
れば「1」にして書き込むことを特徴とする画像処理方
法。
3. A method according to claim 1, wherein a plurality of contour lines forming a closed figure are stored as vector data, and dot data of a pattern memory facing one contour line defined by vector data stored in a contour information memory is stored in a developing direction. A reverse filling process step of performing a filling process inside the closed graphic by performing writing while sequentially inverting along the plurality of contour lines constituting the closed graphic, wherein the reverse filling processing step includes a dot of the pattern memory. An image processing method characterized in that when data is "1", it is set to "0", and when it is "0", it is set to "1" and written.
【請求項4】前記パターンメモリに書き込まれたドット
データをイメージとして出力する出力ステップを有する
ことを特徴とする請求項3記載の画像処理方法。
4. The image processing method according to claim 3, further comprising an output step of outputting dot data written in said pattern memory as an image.
JP63210450A 1988-08-26 1988-08-26 Image processing apparatus and image processing method Expired - Fee Related JP3129717B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP63210450A JP3129717B2 (en) 1988-08-26 1988-08-26 Image processing apparatus and image processing method
EP89308684A EP0356262B1 (en) 1988-08-26 1989-08-25 Image processing apparatus
DE68923412T DE68923412T2 (en) 1988-08-26 1989-08-25 Image processing device.
US08/400,262 US6057825A (en) 1988-08-26 1995-03-02 Image processing apparatus with paint-in of outline interiors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63210450A JP3129717B2 (en) 1988-08-26 1988-08-26 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JPH0259871A JPH0259871A (en) 1990-02-28
JP3129717B2 true JP3129717B2 (en) 2001-01-31

Family

ID=16589531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63210450A Expired - Fee Related JP3129717B2 (en) 1988-08-26 1988-08-26 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP3129717B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05214551A (en) * 1991-06-19 1993-08-24 Ishihara Chem Co Ltd Palladium-base electroless plating solution
JP4914290B2 (en) * 2007-05-10 2012-04-11 ルネサスエレクトロニクス株式会社 Filling processing device and graphic display device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60132271A (en) * 1983-12-21 1985-07-15 Hitachi Ltd Paint-out processing system

Also Published As

Publication number Publication date
JPH0259871A (en) 1990-02-28

Similar Documents

Publication Publication Date Title
EP0356262B1 (en) Image processing apparatus
JP2681367B2 (en) Graphic processing method and apparatus thereof
JP3009525B2 (en) Vector image drawing equipment
JP2634851B2 (en) Image processing device
JP3129717B2 (en) Image processing apparatus and image processing method
JP2664948B2 (en) Image processing apparatus and image processing method
JP2610825B2 (en) Graphic processing unit
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JP3089906B2 (en) Drawing equipment
JP3209359B2 (en) Image output device
JP2771629B2 (en) Character processor
JP2619931B2 (en) Character processing device and character processing method
JPH0573693A (en) Outline paint out system
JP2794446B2 (en) Method and apparatus for filling outline font in which characters are configured for each element
JP3099556B2 (en) Data converter
JP3350324B2 (en) Character output device
JPH0594170A (en) Vector font plotting device
JPH06175637A (en) Method for generating character
JPH05173539A (en) Printing controller
JPH0245889A (en) Area painting out method
JP2001209812A (en) Method and device for generating two-dimensional pattern
JPH02161574A (en) Method and device for paint out outline font constituting character for each element
JPH0450896A (en) Plotting circuit
JPH09138679A (en) Data processor
JPH0528398B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees