JPH04192086A - Area painting-out method and electronic equipment - Google Patents
Area painting-out method and electronic equipmentInfo
- Publication number
- JPH04192086A JPH04192086A JP2324658A JP32465890A JPH04192086A JP H04192086 A JPH04192086 A JP H04192086A JP 2324658 A JP2324658 A JP 2324658A JP 32465890 A JP32465890 A JP 32465890A JP H04192086 A JPH04192086 A JP H04192086A
- Authority
- JP
- Japan
- Prior art keywords
- items
- filling
- data
- graphics
- area
- 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
Links
Landscapes
- Record Information Processing For Printing (AREA)
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、任意の閉領域の一点あるいは複数の点を指定
することにより任意のパターンでその領域内の塗りつぶ
しを行なう領域塗りつぶし方法および電子機器に関する
6
〔従来の技術〕
従来、レーザープリンタ等のページプリンタやCRTデ
イスプレィ、液晶デイスプレィ等の表示装置などを出力
装置として有する電子機器において、任意の閉領域の一
点あるいは複数の点を例えばマウス等のポインティング
デバイスにより指定することで、その領域内を任意のパ
ターンを塗りつぶす機能を備えたものが知られている。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention provides an area filling method for filling an arbitrary closed area with an arbitrary pattern by specifying one or more points in the area, and an electronic device. Related 6 [Prior Art] Conventionally, in electronic equipment having a page printer such as a laser printer or a display device such as a CRT display or a liquid crystal display as an output device, one point or a plurality of points in an arbitrary closed area can be detected using a mouse or the like. Some devices are known that have a function of filling an area with an arbitrary pattern by specifying it with a pointing device.
第6図(a) 、 (b)は塗りつぶしの開始点の指定
例を示す図であり、第6図(a)では、領域R内の一点
P1の指定がなされ、第6図(b)では領域R内の4つ
の点P 〜P5の指定がなされた場合が示されている。FIGS. 6(a) and 6(b) are diagrams showing examples of specifying starting points for filling. In FIG. 6(a), one point P1 within the area R is specified, and in FIG. 6(b), A case is shown in which four points P to P5 within region R are specified.
第6図(a)または第6図(b)のようにして、塗りつ
ぶし開始点が指定されると、例えば、その開始点から水
平方向に黒ドツト(描画イメージ)を探索し、また黒ド
ツトが探索された所で逆方向に再び黒ドツトの探索を行
なって、塗りつぶし可能な左右の区間を検出し、この区
間を任意のパターンで塗りつぶす処理を行なう0次いで
、塗りつぶしのなされた左右両端の点を基準にして上下
方向のラインについて同様の仕方で、塗りつぶし可能な
左右の区間を求めては塗りつぶしを行なう、このような
処理を上方向、下方向に順々にずらしながら行ない、上
下端に黒ドツト(描画イメージ)が検出され、上方向、
下方向へさらにずらすことができなくなった時に塗りつ
ぶし処理を終了する。When a filling start point is specified as shown in FIG. 6(a) or FIG. 6(b), for example, a black dot (drawn image) is searched horizontally from the starting point, and a black dot (drawn image) is searched horizontally from the starting point. At the searched point, the black dot search is performed again in the opposite direction to detect a left and right section that can be filled, and this section is filled with an arbitrary pattern.Next, the left and right end points that have been filled are Using the same method for the vertical line as a reference, find the left and right sections that can be filled in and fill them in. Perform this process while shifting upwards and downwards in order, until black dots are created at the top and bottom ends. (drawing image) is detected, upward direction,
The filling process ends when it is no longer possible to shift further downward.
第6図(C)は、第6図(a)または第6図(b)のい
ずれかによって開始点を指定したときに得られる塗りつ
ぶし結果の一例を示す図であり、第6図(a)、第6図
(b)のいずれの仕方によっても、長方形の枠F、すな
わち黒ドツトで囲まれた閉領域Rを例えば斜めの塗りつ
ぶしパターンで塗りつぶすことができる。FIG. 6(C) is a diagram showing an example of the filling result obtained when the starting point is specified by either FIG. 6(a) or FIG. 6(b), and FIG. 6(a) , and FIG. 6(b), the rectangular frame F, that is, the closed area R surrounded by black dots, can be filled with a diagonal filling pattern, for example.
しかしながら、従来では、閉領域R内にフォントや円、
矩形などのグラフィック、イメージが存在したり、ある
いは網かけなどが先に入力されていると、閉領域R内を
塗りつぶすことができなかったり、閉領域R内の一部の
エリアしか塗りつぶすことができず、要求されているも
のとは異なった塗りつぶし結果となる場合があった。However, in the past, fonts, circles,
If a graphic or image such as a rectangle exists, or if shading has been input first, it may not be possible to fill in the closed area R, or only a part of the area within the closed area R may be filled. In some cases, the filling result was different from what was requested.
例えば、第7図(a)に示すように、利用者が外枠Fを
入力後、外枠Fで囲まれた閉領域R内にフォント1グラ
フイツク、イメージなどを入力していない状態で、例え
ば3つの開始点P1o1P11゜P12を指定したとす
る。第7図(b)に示すように、これらの開始点P1゜
、Pll、P12を起点として閉領域R内を所定のパタ
ーンで塗りつぶすことができる。For example, as shown in FIG. 7(a), after the user inputs the outer frame F, if the user does not input any font 1 graphics, images, etc. within the closed area R surrounded by the outer frame F, for example, Assume that three starting points P1o1P11°P12 are specified. As shown in FIG. 7(b), the inside of the closed region R can be filled in with a predetermined pattern starting from these starting points P1°, Pll, and P12.
しかる後”、利用者がフォントA。9円AI、網かけA
2を入力する場合には、これらが閉領域R内に存在する
場合にも、第7図(C)に示すように、閉領域R内金体
が塗りつぶされた所望の塗りつぶし結果を得ることがで
きる。After that, the user uses font A. 9 yen AI, shading A
2, it is possible to obtain the desired filling result in which the metal body within the closed area R is filled in, as shown in FIG. 7(C), even if these objects exist within the closed area R. can.
これに対して、第8図(a)のように、利用者がアプリ
ケーションにより、当初、外側の枠Fを入力後、フォン
トAo1円At、網かけA2を入力し、しかる後、枠F
で囲まれた閉領域R内金体を塗りつぶすことを意図して
、第8図(b)のように、3つの開始点P1゜、Pll
、P1□を指定したとすると、開始点P1゜、Pllは
それぞれフォントA。。On the other hand, as shown in FIG. 8(a), the user first inputs the outer frame F using the application, then inputs the font Ao1 yen At and the shading A2, and after that, the user inputs the outer frame F.
As shown in FIG. 8(b), with the intention of filling in the metal body within the closed region R surrounded by
, P1□, the starting points P1° and Pll are respectively font A. .
円A1上(すなわち、描画済の黒ドツト上)の位置にあ
るので、開始点P1゜、Pllによっては、塗りつぶし
処理が開始されず、また、開始点P12は網かけA2内
の位置にあるので、網かけA2内の一部のエリアRoし
か塗りつぶし処理がなされず、第8図(C)に示すよう
に結果となって、この場合には、第7図(C)のような
閉領域R全体の塗りつぶし結果を得ることができない。Since it is located on the circle A1 (that is, on the drawn black dot), the filling process will not start depending on the starting point P1° and Pll, and since the starting point P12 is located within the shaded area A2, , only a part of the area Ro within the shaded area A2 is filled in, resulting in the result as shown in FIG. 8(C). In this case, the closed area R as shown in FIG. 7(C) It is not possible to obtain the entire filling result.
このように従来では、閉領域R内にフォント。In this way, conventionally, the font is placed within the closed area R.
グラフィック、イメージ等を入力する前に塗りつぶしの
開始点を指定する場合と、閉鎖域R内にフォント、グラ
フィック、イメージ等を入力した後で塗りつぶしの開始
点を指定する場合とで、塗りつぶし結果が異なる場合が
あった。また、閉領域R内にフォント、グラフィック、
イメージ等を入力した後で塗りつぶしの開始点を指定す
る場合には、フォント、グラフィック、イメージ等の影
響によって塗りつぶしの開始点の指定位置に依存して塗
りつぶし結果がその都度具なる場合があった。The filling results are different depending on whether you specify the starting point for filling before inputting graphics, images, etc. or when specifying the starting point for filling after inputting fonts, graphics, images, etc. within the closed area R. There was a case. In addition, fonts, graphics,
When specifying a starting point for filling after inputting an image, etc., the filling result may vary depending on the specified position of the starting point for filling due to the effects of fonts, graphics, images, etc.
このような問題は、第7図(a)乃至(C)、第8図(
a)乃至(C)のような例のみならず、円グラフのよう
に円を何分割かして各分割領域に数値9名称等を入力し
、各分割エリアを任意のパターンで塗りつぶそうとする
場合などにも生じ、この場合にも、各分割エリアに塗り
つぶしがなされる前に、数値9名称等が入力されていれ
ば、上記と同様に、各分割領域を希望通りに塗りつぶす
ことができないことがあった。Such problems can be solved as shown in Figures 7 (a) to (C) and Figure 8 (
In addition to examples such as a) to (C), when you divide a circle into several parts like a pie chart, input numeric values 9 names, etc. in each divided area, and try to fill each divided area with an arbitrary pattern. In this case as well, if the numerical value 9 name etc. is input before each divided area is filled in, it may not be possible to fill in each divided area as desired in the same way as above. there were.
本発明は、塗りつぶし処理のなされるべき所定の閉領域
内にフォント、グラフィック、イメージ等が入力されて
いる場合であっても、これらがまだ入力されていない場
合と同じ塗りつぶし結果を常に得ることの可能な操作性
の良い領域塗りつぶし方法および電子機器を提供するこ
とを目的としている。The present invention makes it possible to always obtain the same filling result as when fonts, graphics, images, etc. have not been input, even if fonts, graphics, images, etc. have been input within a predetermined closed area to be filled. The purpose of the present invention is to provide an area filling method and electronic device with good operability.
上記目的を達成するために本発明の領域塗りつぶし方法
は、フォント、グラフィック、イメージ等の項目に対し
て塗りつぶしの項目の優先順位を設定し、入力、指定の
なされた項目のデータを設定された優先順位の順序で展
開し、出力するようになっていることを特徴としている
。In order to achieve the above object, the area filling method of the present invention sets priority of filling items for items such as fonts, graphics, images, etc. It is characterized by being expanded and output in the order of ranking.
また、フォント、グラフィック、イメージ等の項目のデ
ータと塗りつぶしの項目のデータとをそれぞれ異なるバ
ッファに展開し、両方のバッファに展開されたデータを
合成して出力するようになっていても良い。Further, data for items such as fonts, graphics, images, etc. and data for fill items may be expanded into different buffers, and the data expanded in both buffers may be combined and output.
また、本発明の電子機器は、イメージデータを作成可能
なアプリケーションか実行されるホストマシンと、ホス
トマシンからの指示によって所定の描画を行なう出力端
末とを有し、塗りつぶし指示に先立ってフォント、グラ
フィック、イメージ等の項目が入力されたときに、閉領
域内のフォント、グラフィック、イメージ等に影響され
ずに塗りつぶし処理が行なわれるような制御を出力端末
側において行なうようになっていることを特徴としてい
る。Further, the electronic device of the present invention includes a host machine that executes an application capable of creating image data, and an output terminal that performs predetermined drawing according to instructions from the host machine, and prior to filling instructions, fonts, graphics, etc. , is characterized in that when an item such as an image is input, control is performed on the output terminal side so that filling processing is performed without being affected by fonts, graphics, images, etc. in the closed area. There is.
本発明では、フォント、グラフィック、イメージ等の項
目に対して、例えば、塗りつぶしの項目を最も高い優先
順位に設定すると、塗りつぶしの指定よりも前にフォン
ト、グラフィック1イメージ等の項目が入力されていて
も、塗りつぶしのデータ展開が最先に行なわれ、これに
より、閉領域の任意の一点を指定するだけで、フォント
1グラフイツク、イメージ等の影響を受けずに、閉領域
内を希望通りに塗りつぶすことができる。In the present invention, for items such as fonts, graphics, and images, for example, if the fill item is set to the highest priority, items such as the font, graphic 1 image, etc. are input before specifying the fill. In this case, the filling data is developed first, so that by simply specifying any point in the closed area, you can fill in the closed area as desired without being affected by Font 1 graphics, images, etc. I can do it.
あるいは、塗りつぶしの指定よりも前にフォント1グラ
フイツク、イメージ等の項目が入力されていても、塗り
つぶしのデータとフォント、グラフィック、イメージ等
の項目のデータとをそれぞれ興なるバッファに展開し、
両方のバッファに展開されたデータを合成して出力する
ようにすれば、同様にして、閉領域内を希望通りに塗り
つぶすことができる。Alternatively, even if items such as font 1 graphics, images, etc. are input before specifying fill, the fill data and the data of items such as font, graphics, images, etc. are expanded into separate buffers,
By combining and outputting the data developed in both buffers, the closed area can be filled in as desired in the same way.
また、閉領域内のフォント1グラフイツク、イメージ等
に影響されずに塗りつぶしが行なわれるような制御が出
力端末側で行なわれるようになっており、これによって
、ホストマシン側でのソート作業等の負荷を軽減できる
。In addition, the output terminal side controls the filling of the font 1 in the closed area without being affected by graphics, images, etc. This reduces the burden of sorting work on the host machine side. can be reduced.
以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.
第1図は任意の閉領域内を任意のパターンで塗りつぶす
機能を有する電子機器の概略構成図である。第1図を参
照すると、この電子機器は、ホストマシン1と、ホスト
マシン1からの指示によって所定の描2画を行なう出力
端末2とから構成されている。出力端末2としては、例
えばCRTデイスプレィ等の表示装置やレーザプリンタ
等の印刷装置が用いられている。FIG. 1 is a schematic diagram of an electronic device having a function of filling in an arbitrary closed area with an arbitrary pattern. Referring to FIG. 1, this electronic device is comprised of a host machine 1 and an output terminal 2 that performs predetermined drawings according to instructions from the host machine 1. As the output terminal 2, for example, a display device such as a CRT display or a printing device such as a laser printer is used.
ホストマシン1では、イメージデータを作成可能なアプ
リケーションが実行されるようになっており、例えば利
用者がアプリケーションで、第8図(a)に示したよう
に、外枠Fを入力後、フォノ)Ao、円A1.網かけA
2を入力し、しかる後、外枠Fで囲まれた閉領域R内の
点を指定して塗りつぶし指定を与えると、これらを処理
実行するようになっている。On the host machine 1, an application capable of creating image data is executed. For example, as shown in FIG. 8(a), after the user inputs the outer frame F using the application, Ao, circle A1. Shading A
2 and then designate a point within the closed area R surrounded by the outer frame F and give a fill designation, and these processes will be executed.
このようなアプリケーションを実行する場合に、従来で
は、前述したように、閉領域R内の点の任意の指定の仕
方によって塗りつぶし結果が異なり、また、フォントA
1円A 、INかけA2を入力する前に塗りつぶし
指示を与える場合と同じ塗りつぶし結果を得ることがで
きない場合があるという問題があった。Conventionally, when running such an application, the filling result differs depending on how points in the closed region R are specified, as described above, and the font A
There is a problem in that it may not be possible to obtain the same filling result as when a filling instruction is given before inputting 1 yen A, IN and A2.
そこで、本発明では、このような問題を解決するため、
塗りつぶし指示に先立ってフォントやイメージ等が入力
されたときに、フォント、グラフィック、イメージ等に
影響されずに塗りつぶし処理が行なわれるような制御を
行なうようになっている。Therefore, in the present invention, in order to solve such problems,
When a font, image, etc. is input prior to a fill-in instruction, control is performed so that the fill-in process is performed without being influenced by the font, graphics, image, etc.
ところで、本発明を実現する仕方として、塗りつぶし指
示に先立ってフォントやイメージ等が入力されたときに
、ホストマシン11111(アプリケーション側)にお
いて、出力端末2への出力順序を変更し、フォント1グ
ラフイツク、イメージ等よりも先に塗りつぶし動作が実
行されるように制御する仕方が考えられる。しかしなが
ら、この制御の仕方では、アプリケーション側でソート
作業の負荷が高くなる恐れがある。従って、アプリケー
ション側の負荷を軽減するするために、制御を出力端末
2側で行なわせるのが良い。By the way, as a way to realize the present invention, when a font, image, etc. is input prior to a filling instruction, the host machine 11111 (application side) changes the output order to the output terminal 2, font 1 graphics, One possible method is to control the filling operation so that it is executed before the image or the like. However, with this control method, there is a risk that the load of sorting work on the application side will be high. Therefore, in order to reduce the load on the application side, it is preferable to have the output terminal 2 perform the control.
第2図は本発明の第1の実施例のブロック図である。こ
の第1の実施例では、出力端末21Plにおいて、各処
理項目に優先順位を設けて順序制御を行なうようになっ
ており、出力端末2側には、1ページの出力に対して1
枚分のみのページバッファ3と、ホストマシン1からの
データ(印字コード、制御コード、グラフィックコード
等)を処理し、ページバッファ3に展開すべきデータを
中間フォーマット(以下、ディスクリブタと称す)に変
換する変換処理部5と、各処理項目間の優先順位が設定
される優先順位テーブル4と、出力指令(例えば印刷指
令、あるいは表示指令)がホストマシン1から送られて
きたときに、優先順位テーブル4を参照し、優先順位の
高い処理項目順にページバッファ3へのビットマツプ展
開を行なう展開制御部6と、ホストマシン1から出力指
示が送られたときにページバッファ3に展開されたデー
タを印刷出力あるいは表示出力する出力制御部7とが設
けられている。FIG. 2 is a block diagram of a first embodiment of the invention. In this first embodiment, in the output terminal 21Pl, priority is set for each processing item to control the order, and the output terminal 2 side has one
Processes the data (print code, control code, graphic code, etc.) from the page buffer 3 and the host machine 1, and converts the data to be developed into the page buffer 3 into an intermediate format (hereinafter referred to as a disc libter). A conversion processing unit 5 to convert, a priority order table 4 in which priorities are set between each processing item, and a priority order table 4 when an output command (for example, a print command or a display command) is sent from the host machine 1. An expansion control unit 6 refers to table 4 and expands the bitmap to the page buffer 3 in order of priority processing items, and prints the data expanded to the page buffer 3 when an output instruction is sent from the host machine 1. An output control section 7 for outputting or displaying the output is provided.
次にこのような構成の第1の実施例における処理動作に
ついて説明する。ホストマシン1においてアプリケーシ
ョンが出力端末2へ印刷出力または表示出力する際には
、アプリケーションは、出力端末2の制御コードを入力
順に出力端末2へ送る。出力端末2では、制御コードが
入、力された順に送られてきた場合にも、その順序に依
存せずに常に同じ出力結果が得られるように制御する。Next, processing operations in the first embodiment having such a configuration will be described. When an application in the host machine 1 prints or displays output to the output terminal 2, the application sends the control codes of the output terminal 2 to the output terminal 2 in the order of input. The output terminal 2 performs control so that even if the control codes are input and sent in the order in which they were input, the same output result is always obtained regardless of the order.
すなわち、出力端末2の変換処理部5では、ホストマシ
ン1から入力順に送られたデータ(印字データ、制御コ
ード、グラフィックコード等)を順次に処理し、ページ
バッファ3に展開すべきデータを全て、ディスクリブタ
に変換していく。That is, the conversion processing unit 5 of the output terminal 2 sequentially processes the data (print data, control code, graphic code, etc.) sent from the host machine 1 in the order of input, and converts all the data to be developed into the page buffer 3. Convert to disc libta.
第3図はこのようにして変換されたディスクリブタの一
例を示す図であり、第3図にはフォントデータを変換し
た結果のディスクリブタが示されている。°なお第3図
において、1デイスクリブタのバイト数は、例えば18
バイトである。FIG. 3 is a diagram showing an example of a disc libter converted in this manner, and FIG. 3 shows a disc libter as a result of converting font data. °In Fig. 3, the number of bytes of one disk scriber is, for example, 18.
It's a part-time job.
次いで、出力端末2の展開制御部6では、第4図に示す
ような優先順位テーブル4を参照し、この順序でビット
マツプ展開を行なう、すなわち、展開制御部6は、先づ
、優先度の一番高い閉領域塗りつぶしのビットマツプ展
開をページバッファ3に行ない、続いて、グラフィック
コードの展開1網かけの展開、イメージの展開、フォン
トの展開の順序でビットマツプ展開を行なう。Next, the expansion control unit 6 of the output terminal 2 refers to the priority order table 4 as shown in FIG. 4, and performs bitmap expansion in this order. Bitmap development for the highest closed area filling is performed in the page buffer 3, followed by bitmap development in the order of graphic code development 1 shading development, image development, and font development.
このように、閉領域塗りつぶしのビットマツプ展開を最
も高い優先順位に設定しておくことにより、フォントや
グラフィック、イメージの入力よりも前に塗りつぶし指
示か与えられた場合、フォント、グラフィック、イメー
ジの入力の後で塗りつぶし指示が与えられた場合のいず
れの場合においても、これらの順序によらずに常にペー
ジバッファ3には閉領域塗りつぶしのビットマツプ展開
が優先して最先に行なわれ、閉領域内にグラフィック、
IMかけ、イメージ、フォントがあったとしても描画時
にはこれらの影響を受けずに、同じ塗りつぶし結果を常
に得ることが可能となる。換言すれは、フォント、グラ
フィック、イメージ等のビットマツプ展開がなされる前
に塗りつぶしのビットマツプ展開か行なわれるので、他
のフォントデータ、グラフィックデータ、イメージデー
タ等かある場合でも塗りつぶしの開始点を一点指定する
のみで良く、またその指定位置は、閉領域内の任意の位
置で良く、このような簡単な操作で常に希望通りに閉領
域R内金体を塗りつぶすことが可能となる。In this way, by setting bitmap expansion for closed area filling to the highest priority, if a filling instruction is given before inputting fonts, graphics, or images, the input of fonts, graphics, or images will be In any case where a fill instruction is given later, the bitmap expansion for filling the closed area is always performed first in page buffer 3, regardless of the order, and graphics are stored in the closed area. ,
Even if there are IM calls, images, and fonts, it is possible to always obtain the same filling result without being affected by these during drawing. In other words, the filling bitmap is developed before the bitmap of fonts, graphics, images, etc. is developed, so even if there are other font data, graphic data, image data, etc., a single point is specified as the starting point for filling. The specified position may be any position within the closed area, and with such a simple operation, it is possible to always fill in the metal body within the closed area R as desired.
例えば、第8図(a)、第8図(b)のような順序で入
力、指定がなされても、第7図(a)、第7図(b)の
順序で入力、指定がなされたときと同様の第7図(C)
のような結果を常に得ることができる。For example, even if inputs and specifications are made in the order shown in Figures 8(a) and 8(b), inputs and specifications are made in the order shown in Figures 7(a) and 7(b). Figure 7 (C) similar to when
You can always get results like this.
なお、優先順位テーブル4の順序は、ホストマシン1か
らの制御コードにより登録、変更可能となっている。第
4図の例では、閉領域塗りつぶしが一番優先順位の高い
ものとなっているが、例えばグラフィックを一番高い優
先順位のものとするような制御コードが送られると、第
4図の優先順位テーブル4内の優先順位を変更すること
かできる。Note that the order of the priority table 4 can be registered and changed using a control code from the host machine 1. In the example in Figure 4, closed area filling has the highest priority, but if a control code is sent that gives the highest priority to graphics, for example, the priority in Figure 4 The priorities in the ranking table 4 can be changed.
優先順位テーブル4内の優先順位を任意に変更すること
により、グラフィック、網かけ、イメージ、フォントの
あるものは、閉領域塗りつぶしの影響を受け、また他の
ものは影響を受けないよう、指定を行なうことも可能と
なる。By arbitrarily changing the priority order in priority table 4, you can specify that some graphics, shading, images, and fonts will be affected by closed area filling, while others will not be affected. It is also possible to do so.
第5図は本発明の第2の実施例のブロック図である。こ
の第2の実施例では、出力端末2側において、1ページ
の出力に対して2枚分のページバッファ13.14と、
ページバッファ13.14へのビットマツプ展開を制御
する制御部15と、出力時にページバッファ13.14
からビットマツプ展開されたデータがそれぞれ読出され
るときに、ページバッファ13からのビットマツプデー
タとページバッファ14からのビットマツプデータとの
論理和(OR)をとって合成出力する合成部16とが設
けられている。FIG. 5 is a block diagram of a second embodiment of the invention. In this second embodiment, on the output terminal 2 side, there are two page buffers 13 and 14 for outputting one page.
A control unit 15 that controls bitmap expansion to the page buffer 13.14, and a control unit 15 that controls bitmap expansion to the page buffer 13.14, and a control unit 15 that controls bitmap expansion to the page buffer 13.14, and
A synthesizing section 16 is provided which calculates the logical sum (OR) of the bitmap data from the page buffer 13 and the bitmap data from the page buffer 14 and outputs the synthesized data when the bitmap data is read from the page buffer 13 and the bitmap data from the page buffer 14 respectively. It is being
この実施例では、2枚分のページバッファ13゜14を
用意することで、一方のベージバ・yファ13を例えば
閉領域塗りつぶしのビットマツプ展開のみに用い、他方
のページバッファ14をグラフィック、フォント、イメ
ージデータ等のビットマツプ展開のみに用いることが可
能となっている。In this embodiment, by preparing two page buffers 13 and 14, one page buffer 13 is used only for bitmap development for filling in closed areas, and the other page buffer 14 is used for graphics, fonts, and images. It can be used only for bitmap development of data, etc.
ページバッファ13.14を上記のように使用する場合
には、フォント、グラフィック1イメージの入力の後に
塗りつぶしの指示か与えられたときにも、フォント、グ
ラフィック、イメージについてのビットマツプ展開はペ
ージバッファ14において行なわれ、閉領域塗りつぶし
のビットマツプ展開はページバッファ14とは別のペー
ジバッファ13において行なわれるので、フォント、グ
ラフィック、イメージ等の影響を受けずに済む。When using page buffers 13 and 14 as described above, bitmap development for fonts, graphics, and images is done in page buffer 14 even when a fill instruction is given after inputting a font or graphic 1 image. Since the bitmap development for filling in the closed area is performed in the page buffer 13 separate from the page buffer 14, it is not affected by fonts, graphics, images, etc.
しかる後、ホストマシン1から出力指示が送られると、
制御部15では、ページバッファ13゜14の各々から
ビットマツプデータを読出す、各ページバッファ13.
14から読出されたビットマツプデータは、合成部16
において論理和がとられて合成され、印刷出力または表
示出力される。After that, when an output instruction is sent from host machine 1,
The control unit 15 reads bitmap data from each of the page buffers 13 and 14, respectively.
The bitmap data read from 14 is sent to synthesis section 16.
The logical sums are taken, the results are combined, and the results are printed or displayed.
このように、第2の実施例においても、第1の実施例と
同様の結果を得ることができる。すなわち、例えば、第
8図(a)、第8図(b)のような順序で入力、指定か
なされても、第7図(a)、第7図(b)の順序で入力
、指定がなされたときと同様の第7図(C)のような結
果を常に得ることかできる。In this way, the same results as in the first example can be obtained in the second example as well. That is, for example, even if the inputs and specifications are made in the order shown in Figures 8(a) and 8(b), the inputs and specifications are not made in the order shown in Figures 7(a) and 7(b). It is possible to always obtain the same result as shown in FIG. 7(C).
以上に説明したように本発明の領域塗りつぶし方法によ
れば、フォント、グラフィック、イメージ等の項目に対
して塗りつぶしの項目の優先順位を設定し、入力、指定
のなされた項目のデータを設定された優先順位の順序で
展開し、出力するようになっており、または、フォント
、グラフィック、イメージ等の項目のデータと塗りつぶ
しの項目のデータとをそれぞれ異なるバッファに展開し
、両方のバッファに展開されたデータを合成して出力す
るようになっているので、塗りつぶしのなされるべき所
定の閉領域内にフォント、グラフィック、イメージ等が
入力されている場合であっても、これらがまだ入力され
ていない場合と同じ塗りつぶし結果を常に得ることがで
き、操作性を著しく高めることができる。As explained above, according to the area filling method of the present invention, the priority of filling items is set for items such as fonts, graphics, images, etc., and data of input and specified items is set. It is designed to be expanded and output in priority order, or data for items such as fonts, graphics, images, etc. and data for fill items are expanded into separate buffers, and the data is expanded to both buffers. Since the data is synthesized and output, even if fonts, graphics, images, etc. have been input within a predetermined closed area that should be filled, if these have not been input yet. It is possible to always obtain the same filling results as with the previous version, and the operability can be significantly improved.
また、本発明の電子機器では、塗りつぶし指示に先立っ
てフォント、グラフィック、イメージ等の項目が入力さ
れたときに、閉領域内のフォント。In addition, in the electronic device of the present invention, when items such as fonts, graphics, images, etc. are input prior to a filling instruction, fonts within a closed area.
グラフィック、イメージ等に影響されずに塗9つ。9 coats without being influenced by graphics, images, etc.
ぶし処理が行なわれるような制御を出力端末側において
行なうようになっているので、アブリゲーション側の負
荷を軽減することができる。Since control for performing the blurring process is performed on the output terminal side, the load on the aggregation side can be reduced.
第1図は本発明に係る電子機器の概略構成図、第2図は
本発明の第1の実施例のブロック図、第3図はディスク
リブタの一例を示す図、第4図は優先順位テーブルの一
例を示す図、第5図は本発明の第2の実施例のブロック
図、第6図(a)乃至(C)、第7図(a)乃至(C)
、第8図(a)乃至(C)は塗りつぶし処理の具体例を
示す図である。
1・・・ホストマシン、2・・・出力端末、3.13.
14・・・ページバッファ、4・・・優先順位テーブル
、5・・・変換処理部、6・・・展開制御部、7・・・
出力制御部、15・・・制御部、16・・・合成部、R
・・・閉領域特許出願人 株式会社 リ コ −
第1図
第6図
第7図
/R
第8図FIG. 1 is a schematic configuration diagram of an electronic device according to the present invention, FIG. 2 is a block diagram of a first embodiment of the present invention, FIG. 3 is a diagram showing an example of a disc libter, and FIG. 4 is a priority order table. FIG. 5 is a block diagram of the second embodiment of the present invention, FIGS. 6(a) to (C), and FIGS. 7(a) to (C).
, FIGS. 8(a) to 8(C) are diagrams showing specific examples of filling processing. 1...Host machine, 2...Output terminal, 3.13.
14... Page buffer, 4... Priority table, 5... Conversion processing section, 6... Expansion control section, 7...
Output control section, 15... control section, 16... synthesis section, R
...Closed area patent applicant Rico Co., Ltd. - Figure 1 Figure 6 Figure 7/R Figure 8
Claims (1)
りつぶし方法において、フォント、グラフィック、イメ
ージ等の項目に対して塗りつぶしの項目の優先順位を設
定し、入力、指定のなされた項目のデータを設定された
優先順位の順序で展開し、出力するようになっているこ
とを特徴とする領域塗りつぶし方法。 2)任意の閉領域を任意のパターンで塗りつぶす領域塗
りつぶし方法において、フォント、グラフィック、イメ
ージ等の項目のデータと塗りつぶしの項目のデータとを
それぞれ異なるバッファに展開し、両方のバッファに展
開されたデータを合成して出力するようになっているこ
とを特徴とする領域塗りつぶし方法。 3)任意の閉領域を任意のパターンで塗りつぶす機能を
有する電子機器において、イメージデータを作成可能な
アプリケーションが実行されるホストマシンと、ホスト
マシンからの指示によつて所定の描画を行なう出力端末
とを有し、塗りつぶし指示に先立ってフォント、グラフ
ィック、イメージ等の項目が入力されたときに、閉領域
内のフォント、グラフィック、イメージ等に影響されず
に塗りつぶし処理が行なわれるような制御を出力端末側
において行なうようになっていることを特徴とする電子
機器。[Claims] 1) In an area filling method for filling an arbitrary closed area with an arbitrary pattern, a priority order of filling items is set with respect to items such as fonts, graphics, images, etc., and input and specification are performed. An area filling method characterized by expanding and outputting item data in a set priority order. 2) In an area filling method that fills an arbitrary closed area with an arbitrary pattern, data for items such as fonts, graphics, images, etc. and data for filling items are expanded into separate buffers, and the data expanded into both buffers is An area filling method characterized by combining and outputting. 3) An electronic device that has the function of filling any closed area with any pattern, includes a host machine on which an application capable of creating image data is executed, and an output terminal that performs predetermined drawing according to instructions from the host machine. and an output terminal that controls the filling process so that when items such as fonts, graphics, images, etc. are input before filling instructions, the filling process is performed without being affected by the fonts, graphics, images, etc. in the closed area. An electronic device characterized by being designed to be operated on the side.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2324658A JPH04192086A (en) | 1990-11-27 | 1990-11-27 | Area painting-out method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2324658A JPH04192086A (en) | 1990-11-27 | 1990-11-27 | Area painting-out method and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04192086A true JPH04192086A (en) | 1992-07-10 |
Family
ID=18168287
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2324658A Pending JPH04192086A (en) | 1990-11-27 | 1990-11-27 | Area painting-out method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04192086A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014229111A (en) * | 2013-05-23 | 2014-12-08 | キヤノン株式会社 | Image processor, image processing method and program |
-
1990
- 1990-11-27 JP JP2324658A patent/JPH04192086A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014229111A (en) * | 2013-05-23 | 2014-12-08 | キヤノン株式会社 | Image processor, image processing method and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100302306B1 (en) | Table data processing device | |
| JPH11316831A (en) | Mixing image data using layers | |
| JPH0729021A (en) | Picture output device | |
| JP3146771B2 (en) | Font rasterizing apparatus and method | |
| JP3065507B2 (en) | Image output device | |
| JP3155617B2 (en) | Document processing method and apparatus | |
| JPH04188192A (en) | Multi-gradation character generation method and device | |
| JP2829028B2 (en) | Document processing system and font generation method | |
| JPH04139590A (en) | Pictogram display system | |
| JP2895890B2 (en) | Layouter for flyers and catalogs | |
| Goodson | PostScript for archaeological drawings | |
| JP3754714B2 (en) | Document processing method and apparatus | |
| JPH05216456A (en) | Character output device | |
| JP3055306B2 (en) | Data output device | |
| JPH05233612A (en) | Data processor | |
| JPH10240722A (en) | Data display device and storage medium | |
| JPS6316364A (en) | word processor | |
| JPH0239361A (en) | document processing device | |
| JPH0268594A (en) | Scrolling control system for image plane | |
| JPH0470960A (en) | Document preparing device | |
| JPH0259873A (en) | Image processing device and image processing method for the image processing device | |
| JPH04318893A (en) | Character processor | |
| JPH04321099A (en) | Character display device for bit map display | |
| JP2989261B2 (en) | Coloring equipment | |
| JPH0784739A (en) | Data converter |