JPH03168883A - Information processor having area filling function - Google Patents

Information processor having area filling function

Info

Publication number
JPH03168883A
JPH03168883A JP1311459A JP31145989A JPH03168883A JP H03168883 A JPH03168883 A JP H03168883A JP 1311459 A JP1311459 A JP 1311459A JP 31145989 A JP31145989 A JP 31145989A JP H03168883 A JPH03168883 A JP H03168883A
Authority
JP
Japan
Prior art keywords
area
filling
filled
image information
segment
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
JP1311459A
Other languages
Japanese (ja)
Inventor
Ritsuko Kagami
加賀美 律子
Katsumi Iida
克己 飯田
Kazuyo Takeuchi
武内 一代
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP1311459A priority Critical patent/JPH03168883A/en
Publication of JPH03168883A publication Critical patent/JPH03168883A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To attain rapid plotting by deciding a segment held between boundary lines of an area to be filled in each plural dots. CONSTITUTION:When an area filling command is outputted, image information relating to the area commanded to be filled is read out in each plural dots by an area filling deciding means 5 to decide whether each area is to be filled or not. A segment deciding means 6 decides the boundary lines of the area to be filled and an area filling means 7 fills the area in the decided boundary and stores the filled area in an image information storing means 4. Since the area filling of plural dots can be decided by one operation, rapid plotting can be attained even at the time of filling an area having a branch.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、領域塗りつぶし機能を持つグラフィックエデ
ィタなどの情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device such as a graphic editor having an area filling function.

[従来の技術] グラフィックエディタなどの情報処理装置において、イ
メージ像などを描画するために或る領域内を塗りつぶす
場合、一般に横方向(ラスク方向に1ドットづつ塗りつ
ぶしを行うかどうかの判定を行っている. [発明が解決しようとする課題] ところが、上記のように1ドットづつしか塗りつぶしの
判定が行なえないため、例えば、判定している領域に分
岐が全くないような場合であっても、塗りつぶしの処理
速度を高めることが困雑であった。
[Prior Art] In an information processing device such as a graphic editor, when filling in a certain area in order to draw an image, it is generally determined whether to fill in one dot at a time in the horizontal direction (rust direction). [Problem to be solved by the invention] However, as described above, since filling can only be determined for one dot at a time, even if there are no branches at all in the area being determined, the filling cannot be determined. It was difficult to increase the processing speed.

本発明は、上記の問題点を解消するもので、塗りつぶし
を行う領域の境界線で挟まれたセグメントを、複数ドッ
ト単位で判定をするようにして、高速での描画などを行
うことができるようにした領域塗りつぶし機能を持つ情
報処理装置を提供することを目的とする。
The present invention solves the above-mentioned problems, and makes it possible to perform high-speed drawing by determining the segments between the boundaries of the area to be filled in units of multiple dots. An object of the present invention is to provide an information processing device having an area filling function.

[課題が解決するための手段] 上記目的を達成するために本発明は、塗りつぶしを行う
領域に関する情報を含む画像情報を入力する入力手段と
、この入力手段にて入力された画像情報を記憶する画像
情報記憶手段と、塗りつぶしを行う領域の境界線を判定
するセグメント判定手段と、塗りつぶしの処理を行い、
その結果を前記画像情報記憶手段に記憶させる塗りつぶ
し手段と、塗りつぶし結果の情報を含む画像情報を画像
として出力する出力手段とを備えた領域塗りつぶし機能
を持つ情報処理装置において、塗りつぶしの指示がある
と、塗りつぶしを行う領域に関する情報を含む#像情報
を前記i!iil@.情報記憶手段より複数ドット毎に
読み出し、塗りつぶしを行うかどうかの判定を行う塗り
つぶし判定手段を設け、この判定結果に基き、前記セグ
メント判定手段にて判定された塗りつぶしを行う領域の
境界線内を前記塗りつぶし手段にて塗りつぶすようにし
たものである。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides an input means for inputting image information including information regarding an area to be filled, and a memory for storing the image information inputted by the input means. an image information storage means, a segment determination means for determining a boundary line of an area to be filled, and a filling process;
In an information processing apparatus having an area filling function, which includes a filling means for storing the result in the image information storage means, and an output means for outputting image information including information on the filling result as an image, when a filling instruction is received, , the #image information including information about the area to be filled is sent to the i! il@. Filling determination means is provided for reading out each dot from the information storage means and determining whether or not to perform filling, and based on the determination result, the inside of the boundary line of the area to be filled determined by the segment determination means is The area is filled in using a filling means.

[作用] 上記横成によれば、塗りつぶしの指示があると、入力手
段にて入力された、塗りつぶしが指示された領域に関す
る画像情報を、塗りつぶし判定手段により、複数ドット
毎に読み出し、塗りつぶしを行うかどうがを判定する。
[Operation] According to the above-mentioned Yokinari, when a filling instruction is given, the filling determination means reads image information inputted by the input means regarding the area for which filling is instructed, for each dot, and fills the area. Determine whether or not.

この判定結果により、セグメント判定手段で、塗りつぶ
しを行う領域の境界線を判定し、セグメント判定手段に
より判定された境界内部を、塗りつぶし手段により塗り
つぶし、画像情報記憶手段に記憶する。そして、画像情
報記憶手段にて記憶された塗りつぶし結果を含む画像↑
n報を出力手段により出力する。
Based on this determination result, the segment determining means determines the boundary line of the area to be filled, and the filling means fills in the inside of the boundary determined by the segment determining means, and stores it in the image information storage means. Then, the image containing the filling result stored in the image information storage means↑
n information is outputted by the output means.

[実施例] 本発明の領域塗りつぶし機能を持つ情報処理装置の一実
施例構成について、図面を参照して説明する. 第1図は本装置要部の機能構成のブロック図である.本
装置は、本体部1と、入力手段2と、出力手段3と、画
像情報記憶手段4とからなる,本体部1は、入力手段2
からの塗りつぶしの指示入力に従い、画像情報記憶千段
4より塗りつぶしを行う領域の情報を含む画像情報を複
数ドット毎に読み出し、塗りつぶしを行うかどうかを判
定する塗りつぶし判定手段5と、塗りつぶしを行う領域
の境界線を判定して、その境界点の座標を求めるセグメ
ント判定手段6と、求められた境界線内を塗りつぶし、
画1情報記憶手段4に書き込む塗りつぶし手段7とを備
えている. 第2図は本装置のハード構或のブロック図である。本装
置全体を制御するマイクロコンピュータ(CPU)1 
1は、システムプログラムが格納されたROM12と、
一時的にデータ等が格納されるRAM13と相俟って、
上記本体部1を梢成している.入力手段としてのマウス
2aはユーザにより操作され、CPtJ11に各種指示
を与える.出力手段としては、CRTディスプレイ3a
と、プリンタ3bが備えられ、また、記憶手段としては
、画@情報を記憶させる磁気ディスク14が備えられて
いる。
[Embodiment] An embodiment of the configuration of an information processing device having an area filling function of the present invention will be described with reference to the drawings. Figure 1 is a block diagram of the functional configuration of the main parts of this device. This device consists of a main body 1, an input means 2, an output means 3, and an image information storage means 4.
A fill determining means 5 reads out image information including information on the area to be filled from the image information storage 4 for each plurality of dots in accordance with an input instruction for filling from the image information storage 4, and determines whether or not to fill the area; a segment determining means 6 for determining the boundary line of and determining the coordinates of the boundary point;
and a filling means 7 for writing into the image 1 information storage means 4. FIG. 2 is a block diagram of the hardware structure of this device. Microcomputer (CPU) 1 that controls the entire device
1 is a ROM 12 in which a system program is stored;
Together with the RAM 13 where data etc. are temporarily stored,
It constitutes the main body part 1 above. The mouse 2a serving as an input means is operated by the user to give various instructions to the CPtJ11. As an output means, a CRT display 3a
A printer 3b is provided, and a magnetic disk 14 for storing image information is provided as a storage means.

上記画像hフ報記憶手段4としては、ビデオRAM (
VRAM)4 aが備えられており、V R A M4
aのlアドレスを梢戒するメモリアクセス単位は8ドッ
トとする。そして、本実施例で扱う画像は、白・黒の2
fM画像であり、1画1! < 1ドット)はlビット
のメモリ情報にて表現される。すなわち、メモリアクセ
ス単位は8ビット(1バイト)のデータとなる.なお、
プリンタ3bとしては、描画された画像情報を画像とし
て出力可能な、レーザビームプリンタ等のイメージプリ
ンタを用い、ディスプレイ3aとしては、640x40
0ドットのラスク・スキャン型C R Tを用いている
.次に、本装置での塗りつぶし動作について、塗りつぶ
し動作のフローチャートを示す第3図、塗りつぶしを行
う領域を判定ずるフローチャートを示す第4図、および
塗りつぶしの具体例を示す第5図を参照して説明する. 第3図により領域を塗りつぶす場合の動作を説明すると
、まず、塗りつぶしをしようとする開始点をRAM13
上のスタックに入れ(ステップS10、以下、単にSI
Oという)、スタックが空であるかどうかを調べ(31
1)、空でなければ、スタックより1つの点を取り出し
、それを塗りつぶし出発点とする(312).この開始
点を含むセグメント幅において、開始点から左右に8ド
ットづつ画像情報を調べ(313)、その境界が判定さ
れると、領域境界までの横方向を塗りつぶす(314)
.これを、与えられた点の上下のラスクについて行い、
ラスクの右端のピクセルを次回以降の開始点としてスタ
ックに積む<315、S16)。以上の処理をスタック
につんだ開始点が無くなるまで行うことにより、任意の
領域を塗りつぶすことが可能になる。
As the image h notification storage means 4, a video RAM (
VRAM)4a is provided, and VRAM4a is provided.
The memory access unit for accessing the l address of a is 8 dots. The images handled in this example are two types: white and black.
It is an fM image, and each stroke is one! < 1 dot) is expressed by l-bit memory information. In other words, the memory access unit is 8 bits (1 byte) of data. In addition,
As the printer 3b, an image printer such as a laser beam printer that can output drawn image information as an image is used, and as the display 3a, a 640x40
A 0-dot rask scan type CRT is used. Next, the filling operation in this device will be explained with reference to FIG. 3 showing a flowchart of the filling operation, FIG. 4 showing a flowchart for determining the area to be filled, and FIG. 5 showing a specific example of filling. do. To explain the operation when filling in an area with reference to FIG. 3, first, the starting point to be filled is stored in
into the upper stack (step S10, hereinafter simply SI
O) and checks whether the stack is empty (31
1) If it is not empty, take one point from the stack and use it as the starting point for filling (312). In the segment width that includes this starting point, image information is checked for 8 dots each on the left and right from the starting point (313), and when the boundary is determined, the horizontal direction up to the area boundary is filled in (314)
.. Do this for the rask above and below the given point,
The rightmost pixel of the rask is placed on the stack as the starting point for the next time <315, S16). By performing the above processing until there are no more starting points in the stack, it becomes possible to fill in any area.

次に、塗りつぶしを行う領域であるセグメント幅を判定
する動作について第4図を用いて説明する.このフロー
チャートではセグメントの右端を調べる場合について示
している。マウス2aを使って、使用者から塗りつぶし
領域の任意の1点がディスプレイ3 a J:に与えら
れ、この塗りつぶし開始点のX座標を“X ”とする(
317)。また、開始点を含む8ドット分のセグメント
のアドレスを“a d r ”とする(318)。次い
で、塗りつぶし判定千段5により、VRAM4a上のこ
のa d r ”なるアドレスの画像情報(データ)を
読み出し(319)、さらに、読み出したデータがOか
どうかを調べ(S20)、データがO(8ドット全部が
6)の場合は、アドレス“adrをインクリメントし(
321)、開始点のXSE標値に8ドット分を加え(S
22)、S19に戻り、次のアドレスについて調べる。
Next, the operation of determining the segment width, which is the area to be filled, will be explained using FIG. This flowchart shows the case of checking the right end of a segment. Using the mouse 2a, the user gives an arbitrary point in the filling area to the display 3aJ:, and the X coordinate of this filling start point is set as "X" (
317). Further, the address of the segment of 8 dots including the starting point is set as "ad r" (318). Next, the image information (data) at this address ad r'' on the VRAM 4a is read out by the fill determination stage 5 (319), and it is further checked whether the read data is O (S20), and the data is O( If all 8 dots are 6), increment the address “adr” and write (
321), add 8 dots to the XSE target value at the starting point (S
22), return to S19 and check the next address.

ここで、アクセスしたアドレスのデータが0でなければ
、開始点のドット位置より右方で、黒のあるドット位置
(1が立っているビット)のうち一番左にある位置が境
界のX座標となる(323)。なお、左端についても同
様の処理を行い、塗りつぶしを行うセグメント幅の判定
を行う。
Here, if the data of the accessed address is not 0, the leftmost position of the black dot positions (bits with 1 set) to the right of the starting point dot position is the X coordinate of the boundary. becomes (323). Note that the same process is performed for the left end to determine the width of the segment to be filled.

以上のような手順でVRAM4a上を調べることで、高
速な塗りつぶしを行うことが可能になる.なお、本実施
例において、画像情報のアクセス単位を1バイト(8ビ
ット)としたが、このアクセス単位は必要に応じ他の値
にすることもできる.[発明の効果] 以上のように本発明は、塗りつぶしの指示があると、塗
りつぶしを行う領域に関する情報を含む゛画像情報を、
画像情報記憶手段より複数ドット毎に読み出し、塗りつ
ぶしを行うかどうかの判定を行うようにしたことにより
、一複数ドットの塗りつぶし判定を一度に行え、分岐が
ある領域を塗りつぶす場合であっても、高速な描画を実
現することができる.
By checking the VRAM 4a using the procedure described above, it becomes possible to perform high-speed filling. In this embodiment, the access unit for image information is 1 byte (8 bits), but this access unit can be set to other values as necessary. [Effects of the Invention] As described above, when a filling instruction is given, the present invention provides image information that includes information regarding the area to be filled.
By reading out multiple dots from the image information storage means and determining whether or not to fill them, it is possible to determine whether or not to fill in one or more dots at once, making it possible to perform high-speed filling even when filling in areas with branches. It is possible to achieve a realistic drawing.

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

第1図は本発明の領域塗りつぶし機能を持つ情報処理装
置の一実施例による要部のブロック梢戒図、第2図は同
装置の一実施例によるハード構成のブロック図、第3図
は任意の領域の塗りつぶしを行う場合の塗りつぶし動作
のフローチャート、第4図は任意の領域の塗りつぶしを
行う場合の塗りつぶし領域判定のフローチャート、第5
図は塗りつぶしを行う場合の具体例を示す図である。 1・・・本体部、2・・・入力手段、2a・・・マウス
、3・・・出力手段、3a・・・CRTディスプレイ、
3b’・・・プリンタ、4・・・画像情報記憶手段、4
a・・・ビデオRAM (VRAM) 、5・・・塗り
つぶし判定手段、6・・・セグメント判定手段、7・・
・塗りつぶし手段、11・・・マイクロコンピュータ(
CPU)、12・・・R O M、13・・・RAM、
14・・・磁気ディスク。
Fig. 1 is a block diagram of the essential parts of an embodiment of an information processing device having an area filling function of the present invention, Fig. 2 is a block diagram of the hardware configuration of an embodiment of the same device, and Fig. 3 is an arbitrary block diagram. Figure 4 is a flowchart of the filling operation when filling in an arbitrary area.
The figure shows a specific example of filling in the area. DESCRIPTION OF SYMBOLS 1... Main body part, 2... Input means, 2a... Mouse, 3... Output means, 3a... CRT display,
3b'...Printer, 4...Image information storage means, 4
a... Video RAM (VRAM), 5... Filling determining means, 6... Segment determining means, 7...
・Filling means, 11...Microcomputer (
CPU), 12...ROM, 13...RAM,
14...Magnetic disk.

Claims (1)

【特許請求の範囲】[Claims] (1)塗りつぶしを行う領域に関する情報を含む画像情
報を入力する入力手段と、この入力手段にて入力された
画像情報を記憶する画像情報記憶手段と、塗りつぶしを
行う領域の境界線を判定するセグメント判定手段と、塗
りつぶしの処理を行い、その結果を前記画像情報記憶手
段に記憶させる塗りつぶし手段と、塗りつぶし結果の情
報を含む画像情報を画像として出力する出力手段とを備
えた領域塗りつぶし機能を持つ情報処理装置において、
塗りつぶしの指示があると、塗りつぶしを行う領域に関
する情報を含む画像情報を前記画像情報記憶手段より複
数ドット毎に読み出し、塗りつぶしを行うかどうかの判
定を行う塗りつぶし判定手段を設け、 この判定結果に基き、前記セグメント判定手段にて判定
された塗りつぶしを行う領域の境界線内を前記塗りつぶ
し手段にて塗りつぶすようにしたことを特徴とする領域
塗りつぶし機能を持つ情報処理装置。
(1) An input means for inputting image information including information about the area to be filled, an image information storage means for storing the image information input by this input means, and a segment for determining the boundary line of the area to be filled. Information having an area filling function, comprising a determination means, a filling means for performing filling processing and storing the result in the image information storage means, and an output means for outputting image information including information on the filling result as an image. In the processing device,
When a filling instruction is given, a filling determining means is provided which reads out image information including information regarding the area to be filled for each plurality of dots from the image information storage means and determines whether or not to perform filling, and based on the result of this determination, An information processing device having an area filling function, characterized in that the filling means fills in a boundary line of the area to be filled determined by the segment determining means.
JP1311459A 1989-11-29 1989-11-29 Information processor having area filling function Pending JPH03168883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1311459A JPH03168883A (en) 1989-11-29 1989-11-29 Information processor having area filling function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1311459A JPH03168883A (en) 1989-11-29 1989-11-29 Information processor having area filling function

Publications (1)

Publication Number Publication Date
JPH03168883A true JPH03168883A (en) 1991-07-22

Family

ID=18017478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1311459A Pending JPH03168883A (en) 1989-11-29 1989-11-29 Information processor having area filling function

Country Status (1)

Country Link
JP (1) JPH03168883A (en)

Similar Documents

Publication Publication Date Title
US5434591A (en) Scrolling method and apparatus in which data being displayed is altered during scrolling
US5949423A (en) Z buffer with degree of visibility test
KR900006042B1 (en) Display control apparatus for use in composite document processing apparatus
US4897805A (en) Method and apparatus for performing polygon fills in graphical applications
JPH0126072B2 (en)
JPS5995669A (en) Graphic processor
EP0278526A2 (en) Graphics diplay controller having clipping function
JP3142550B2 (en) Graphic processing unit
EP0416421A2 (en) A clipping processor
JP3191159B2 (en) Apparatus for processing graphic information
US4748442A (en) Visual displaying
EP0327002B1 (en) Apparatus and method for generating high-quality pattern
US4974172A (en) Image processing apparatus
JP3009525B2 (en) Vector image drawing equipment
JPH06162210A (en) Image processor
JPH03168883A (en) Information processor having area filling function
US6504543B1 (en) Polygon drawing method and polygon drawing apparatus
JP2845380B2 (en) Printing apparatus and control method thereof
JP2625612B2 (en) Image processing method and image processing apparatus
EP0458571A2 (en) Image processing method and apparatus
US5428719A (en) Method and apparatus for generating high-quality pattern in accordance with an edge defining a character pattern
US20030038804A1 (en) Fast drawing method and apparatus for large picture data
JP3129717B2 (en) Image processing apparatus and image processing method
JPS61141082A (en) Proofreading system in image input
JP3553249B2 (en) Image generating apparatus and image generating method