JPH0231393B2 - - Google Patents

Info

Publication number
JPH0231393B2
JPH0231393B2 JP55045275A JP4527580A JPH0231393B2 JP H0231393 B2 JPH0231393 B2 JP H0231393B2 JP 55045275 A JP55045275 A JP 55045275A JP 4527580 A JP4527580 A JP 4527580A JP H0231393 B2 JPH0231393 B2 JP H0231393B2
Authority
JP
Japan
Prior art keywords
filling
color information
display color
starting point
point
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 - Lifetime
Application number
JP55045275A
Other languages
Japanese (ja)
Other versions
JPS56142585A (en
Inventor
Mitsuki Fukuzumi
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP4527580A priority Critical patent/JPS56142585A/en
Publication of JPS56142585A publication Critical patent/JPS56142585A/en
Publication of JPH0231393B2 publication Critical patent/JPH0231393B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、グラフイツク・デイスプレイ装置に
おけるぬりつぶし方法に関し、特にリフレツシ
ユ・メモリの読出し、書込み機能を有するグラフ
イツク・デイスプレイ装置の表示方法に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a coloring method in a graphic display device, and more particularly to a display method in a graphic display device having refresh memory reading and writing functions.

従来、グラフイツク・デイスプレイ装置におけ
る閉曲線内ぬりつぶし法には、第1図に示すよう
に、関数発生器を用いて閉曲線1を発生し、この
関数曲線上の点Vを始点とし点Wを終点として
VW間に直線を発生させる方式がある。
Conventionally, in the method of filling in a closed curve in a graphic display device, as shown in Fig. 1, a function generator is used to generate a closed curve 1, and a point V on this function curve is set as a starting point and a point W is set as an end point.
There is a method to generate a straight line between VWs.

しかし、上記の関数発生器を用いる方式の場
合、ある図形パターンの全面をぬりつぶしには、
その面内において直線を隙間なく発生させなけれ
ばならない。したがつて、ホスト計算機は図形に
対応して数十本の直線の命令を発生させなければ
ならず、そのたびに複雑な演算処理が必要であ
り、ソフトウエアが複雑となり、計算機の負担が
非常に大きくなるという欠点があつた。
However, in the case of the method using the function generator described above, in order to fill the entire surface of a certain graphic pattern,
Straight lines must be generated without gaps within that plane. Therefore, the host computer must generate dozens of straight line commands in response to the figure, and each time a complex arithmetic operation is required, the software becomes complex and the burden on the computer becomes significant. It had the disadvantage of becoming larger.

本発明の目的は、このような従来の欠点を除去
するため、リフレツシユ・メモリの読出し書込み
機能を有するグラフイツク・デイスプレイ装置に
おいて、関数発生等の複雑な演算処理を一切必要
とせずに、またぬりつぶす閉曲線の発生とは独立
して、あらかじめ表示されている境界線につい
て、効率よく、その内部を指定色でぬりつぶすこ
とができる、グラフイツク・デイスプレイ装置に
おけるぬりつぶし方法を提供することにある。
SUMMARY OF THE INVENTION In order to eliminate such drawbacks of the conventional art, it is an object of the present invention to provide a graphic display device having a refresh memory read/write function, without requiring any complicated arithmetic processing such as function generation. To provide a filling method in a graphic display device, which can efficiently fill in the inside of a pre-displayed boundary line with a specified color, independently of the occurrence of the boundary line.

本発明のグラフイツク・デイスプレイ装置にお
けるぬりつぶし方法は、境界線に対応するドツト
に所定の表示色情報が書込まれているリフレツシ
ユ・メモリに対してデイスプレイ装置により境界
線の内側に対応するドツトにぬりつぶし表示色情
報を書込むようにしたものにおいて、境界線の内
側に1乃至複数個の始点を設定し、各始点につい
て以下のステツプによりぬりつぶし処理を行なう
ことを特徴としている。
The coloring method in the graphic display device of the present invention is such that the display device fills in the dots corresponding to the inside of the boundary line using a refresh memory in which predetermined display color information is written in the dots corresponding to the boundary line. A device for writing color information is characterized in that one or more starting points are set inside the boundary line, and each starting point is filled in using the following steps.

(イ) 始点を中心にしてX軸に沿つて一方向に順次
リフレツシユ・メモリのドツトの表示色情報の
読出しを行なつて境界線の表示色情報と比較す
るステツプ。
(a) A step of sequentially reading out the display color information of the dots from the refresh memory in one direction along the X-axis centering on the starting point and comparing it with the display color information of the boundary line.

(ロ) ステツプ(イ)の比較の結果、一致しない場合に
はそのドツトにぬりつぶし表示色情報の書込み
を行なうステツプ。
(b) A step of filling in the dots and writing display color information if they do not match as a result of the comparison in step (a).

(ハ) ステツプ(イ)の比較の結果、一致した場合には
前記始点からX軸に沿つて他方向に順次リフレ
ツシユ・メモリのドツトの表示色情報の読出し
を行なつて境界線の表示色情報と比較するステ
ツプ。
(c) As a result of the comparison in step (a), if they match, the display color information of the dots in the refresh memory is sequentially read in the other direction along the X-axis from the starting point, and the display color information of the border line is read. Steps to compare with.

(ニ) ステツプ(ハ)の比較の結果、一致しない場合に
はそのドツトにぬりつぶし表示色情報の書込み
を行なうステツプ。
(d) If there is no match as a result of the comparison in step (c), a step of filling in the dot and writing display color information.

(ホ) ステツプ(ハ)の比較の結果、一致した場合には
前記始点をY軸方向に移動させるステツプ。
(E) A step of moving the starting point in the Y-axis direction if a match is found as a result of the comparison in step (C).

(ヘ) ステツプ(ホ)により移動した新たな始点が境界
線上の点あるいは最初に設定された始点からY
軸方向に所定値だけ移動した位置である場合に
はぬりつぶしを終了させ、それ以外の場合には
ステツプ(イ)に戻るステツプ。
(f) The new starting point moved by step (e) is a point on the boundary line or Y from the initially set starting point.
If the position has been moved by a predetermined value in the axial direction, coloring is finished; otherwise, the process returns to step (a).

以下、第2図以降の図面により、本発明を詳細
に説明する。
Hereinafter, the present invention will be explained in detail with reference to the drawings from FIG. 2 onwards.

第2図は、本発明のぬりつぶし方法が適用され
るラスター・スキヤン・デイスプレイ装置のブロ
ツク図である。
FIG. 2 is a block diagram of a raster scan display device to which the filling method of the present invention is applied.

第2図に示すように、コンピユータ2からのコ
ード・データはインターフエイス3を介してデイ
スプレイ装置のコントローラ4に入力される。コ
ントローラ4によつてコード・データは表示パタ
ーン・データに変えられ、表示色情報に応じて赤
R、青B、緑Gの各リフレツシユ・メモリ5に一
画面分蓄積される。リフレツシユ・メモリ5上の
表示パターン・データはTVモニター6にリフレ
ツシユして表示させる。
As shown in FIG. 2, code data from the computer 2 is inputted via an interface 3 to a controller 4 of the display device. The code data is converted into display pattern data by the controller 4, and one screen worth of data is stored in each of the red R, blue B, and green G refresh memories 5 in accordance with the display color information. The display pattern data on the refresh memory 5 is refreshed and displayed on the TV monitor 6.

第3図は、本発明の、グラフイツク・デイスプ
レイ装置におけるぬりつぶし方法の構成要素を説
明するための図である。
FIG. 3 is a diagram for explaining the constituent elements of a coloring method in a graphic display device according to the present invention.

第3図に示すように、デイスプレイ装置のグラ
フイツク・アドレスは、表示画面7の左下を原点
(x=0、y=0)として表わされ、点P、Q、
R、および各パラメータは次の通りである。
As shown in FIG. 3, the graphic address of the display device is expressed with the lower left of the display screen 7 as the origin (x=0, y=0), and points P, Q,
R and each parameter are as follows.

●ぬりつぶしの始点P、およびそのアドレス
(xp、yp) ●リフレツシユ・メモリの調査点Q、およびその
アドレス(xq、yq) ●点Qの始点R、およびそのアドレス(xr、yr) その他の構成要素として ●ぬりつぶしの表示色情報C1 ●閉曲線8の表示色情報C2 ●点Qのアドレスのリフレツシユ・メモリの表示
色の読出し情報C3 ●ぬりつぶしのy軸方向 N(y軸方向に隙間な
くぬりつぶす場合をN=1または−1とする) を説定する。
●Start point P of coloring and its address (x p , y p ) ●Refresh memory investigation point Q and its address (x q , y q ) ●Start point R of point Q and its address (x r , y r ) Other components include ● Display color information for filling C 1 ● Display color information for closed curve 8 C 2 ● Read information for the display color of the refresh memory at the address of point Q C 3 ● Y-axis direction for filling N (y Let N = 1 or -1 to fill the area without any gaps in the axial direction.

また、各パラメータには次の関係がある。 Furthermore, each parameter has the following relationship.

●xp,ypは定数として閉曲線8内に設定される。●x p and y p are set within the closed curve 8 as constants.

●yq=yr ●xr=xp 第4図は、本発明のぬりつぶし方法におけるプ
ログラムの基本フローチヤートであり、第5図は
そのぬりつぶし過程の実施例を示す図である。
●y q = y r ●x r = x p FIG. 4 is a basic flowchart of a program in the coloring method of the present invention, and FIG. 5 is a diagram showing an embodiment of the coloring process.

ただし、●印は境界線表示ドツトを、〇印はぬ
りつぶしドツトを表わし、N=1の場合について
示す。
However, ● marks represent boundary line display dots, O marks represent filled dots, and the case where N=1 is shown.

第4図、第5図では、始点Pはあらかじめ描か
れた任意の閉曲線内の任意のアドレスに設定され
た定点であり、初期化において、点Q、点Rは点
Pのアドレスに一致する。
In FIGS. 4 and 5, the starting point P is a fixed point set at an arbitrary address within an arbitrary closed curve drawn in advance, and points Q and R coincide with the address of point P during initialization.

すなわち、xp=xq=xr、yp=yq=yrである。次
に点Qのアドレスのリフレツシユ・メモリの読出
しを行い、その表示色情報C3と閉曲線(以下、
境界線と記す)の表示色情報C2との比較を行う。
C2≠C3のとき、点Qは境界線の内側にあると判
断され、点Qのアドレスのリフレツシユ・メモリ
にぬりつぶしの表示色情報C1を書込み、点Qの
アドレスを1増加する。
That is, x p = x q = x r and y p = y q = y r . Next, the refresh memory of the address of point Q is read, and the display color information C3 and the closed curve (hereinafter referred to as
A comparison is made with the display color information C2 of the boundary line (denoted as the border line).
When C 2 ≠ C 3 , it is determined that point Q is inside the boundary line, and the display color information C 1 for filling is written in the refresh memory at the address of point Q, and the address of point Q is incremented by 1.

以上の処理により、境界線内の1ドツトがぬり
つぶされる。
Through the above processing, one dot within the boundary line is filled in.

以下同様に、読出し、比較、書込みの操作を繰
返す。比較の段階で、C2=C3となつた時点で点
Qは境界線に達したと判断され、この時点でx軸
正方向のぬりつぶしを終了し、点Qのxアドレス
をxr−1に設定する。すなわち、点Qは点Qの始
点Rの1ドツト左に移動する。以下x軸負方向に
1ドツトずつ前述と同様の読出し、比較、書込み
の操作を点Qが境界線に達するまで、すなわち
C2=C3となるまで繰返す。点Qが境界線に達し
た時点で、点Rをはさんだx軸方向の1ドツト幅
のぬりつぶしを終了する。以後、点Qの始点Rの
yアドレスyrをNずつ増加し、すなわち点Rを1
ドツトずつy軸方向(N=1なら正方向、N=−
1なら負方向)に移動し、各位置について点Qを
用いた同様のぬりつぶしを行う。
Thereafter, read, compare, and write operations are repeated in the same manner. At the comparison stage, it is determined that point Q has reached the boundary line when C 2 = C 3 , and at this point the filling in the positive direction of the x-axis is finished, and the x address of point Q is set to x r -1. Set to . That is, the point Q moves one dot to the left of the starting point R of the point Q. Below, the same read, compare, and write operations as described above are performed one dot at a time in the negative direction of the x-axis until point Q reaches the boundary line, i.e.
Repeat until C 2 = C 3 . When the point Q reaches the boundary line, the filling of one dot width in the x-axis direction between the points R is completed. After that, the y address y r of the starting point R of point Q is increased by N, that is, the point R is set to 1.
Dot by dot in the y-axis direction (if N=1, positive direction, N=-
If it is 1, move in the negative direction) and perform the same filling process using point Q for each position.

点Rの移動の結果、点Rが境界線に達した時点
で、その時のy軸方向のぬりつぶしを終了する。
As a result of the movement of the point R, when the point R reaches the boundary line, the filling in the y-axis direction at that time is finished.

以後必要があればNの符号を反転し、点Q、点
Rの初期化を再度行えば、y軸逆方向のぬりつぶ
しも同様に行える。なお、表示上はぬりつぶされ
ない。以上の操作により、点Pを中心としたぬり
つぶしが終了する。
Thereafter, if necessary, by inverting the sign of N and re-initializing points Q and R, filling in the opposite direction of the y-axis can be performed in the same way. Note that it is not filled in on the display. With the above operations, coloring around point P is completed.

比較的単純な閉曲線、例えば円や凹部のない四
角形などで、かつy軸方向の最大座標値、最小座
標値が同一のx軸座標値で得られるような場合に
は、このx軸座標値に始点を設定することにより
上記の方法を1回行うだけでぬりつぶしが可能で
ある。しかし、第6図aに示すようにy軸方向の
最大座標値、最小座標値が同一のx軸座標値で得
られないような場合や、第6図bに示すようにy
軸方向に凹部がある場合には、始点、Pによつて
ぬりつぶすことのできる範囲は横線の引れた部分
だけであり、図形の下、あるいは上下にぬり残し
の部分が生じる。このような場合には第6図c,
dに示すように始点P1のほかに新たな始点P2
P3を設け、これらの始点P1,P2,P3を「始点テ
ーブル」を作成して順次登録しておく。
If it is a relatively simple closed curve, such as a circle or a rectangle without a recess, and the maximum and minimum coordinate values in the y-axis direction can be obtained with the same x-axis coordinate value, By setting the starting point, it is possible to fill in the color by performing the above method only once. However, as shown in Figure 6a, the maximum and minimum coordinate values in the y-axis direction cannot be obtained with the same x-axis coordinate value, or as shown in Figure 6b, the y-axis
If there is a recess in the axial direction, the area that can be filled in by the starting point P is only the area drawn by the horizontal line, leaving uncolored areas below or above and below the figure. In such a case, Figure 6c,
As shown in d, in addition to the starting point P 1 , a new starting point P 2 ,
P 3 is provided, and a "start point table" is created in which these starting points P 1 , P 2 , and P 3 are registered sequentially.

第7図は第6図bに示されるような閉曲線をぬ
りつぶす場合のプログラム構成を示す図である。
FIG. 7 is a diagram showing a program configuration for filling in a closed curve as shown in FIG. 6b.

第7図では、始点テーブルを作成して始点Pを
複数設定し、ぬりつぶし操作は始点テーブルを参
照し、第4図の実施例を複数回繰返すことによつ
て行われる。その結果、ぬりのこしをなくすこと
が可能となる。
In FIG. 7, a starting point table is created and a plurality of starting points P are set, and the filling operation is performed by referring to the starting point table and repeating the embodiment shown in FIG. 4 multiple times. As a result, it becomes possible to eliminate the strain of coloring.

さらに、第8図に示すように、対話型画面作成
システムでは、実際にぬりのこした部分に次々に
始点を設定し、始点テーブルの作成、登録を行い
容易にぬりのこしをなくすことができる。
Furthermore, as shown in FIG. 8, in the interactive screen creation system, starting points are set one after another in the areas that have actually been colored, and a starting point table is created and registered, thereby easily eliminating the need for coloring.

ここで、始点はいずれの場合にも必ず境界線の
内側に設定しなければならない。
In either case, the starting point must be set inside the boundary line.

第9図は、第4図に示される実施例の変形例で
ある。
FIG. 9 is a modification of the embodiment shown in FIG.

第9図では、y軸方向のぬりつぶし終了の判定
を、点Pが境界線に達した場合、またはぬりつぶ
し表示色表示位置に達した場合とし、この点が第
4図の実施例と異なる。
In FIG. 9, the completion of filling in the y-axis direction is determined when the point P reaches the boundary line or when the filling display color display position is reached, which is different from the embodiment shown in FIG. 4.

したがつて、第10図のような開曲線について
も、あらかじめぬりつぶし表示色で破線で示され
る位置に境界を設けて閉曲線化し、境い目をつけ
ることなくぬりつぶしが可能である。その結果閉
曲線、開曲線いずれについても同様にして、ぬり
つぶしの高さ指定が可能となる。
Therefore, even for an open curve as shown in FIG. 10, it is possible to create a closed curve by setting a boundary in advance at the position indicated by the broken line in the fill display color, and then fill it in without creating a boundary. As a result, it is possible to specify the filling height for both closed and open curves in the same way.

第11図も、第4図に示される実施例の変形例
である。
FIG. 11 is also a modification of the embodiment shown in FIG.

第11図では、y軸方向のドツト・カウンタを
設けて、ぬりつぶし位置の設定をする転が第4図
の実施例と異なる。y軸方向のドツト・カウンタ
は、ハードウエア的には容易に設定することがで
き、点Rのy軸方向の移動ドツト数、すなわちy
方向yrの増加分あるいは減少分をカウントし、設
定値のドツト数だけ点Rが移動した時点で、y軸
方向のぬりつぶしを終了させる。その結果、ぬり
つぶしの上限、下限をカウンタによつて任意に設
定できる。
FIG. 11 differs from the embodiment shown in FIG. 4 in that a dot counter in the y-axis direction is provided to set the filling position. The dot counter in the y-axis direction can be easily set in terms of hardware, and the number of dots moved in the y-axis direction of point R, that is, y
The amount of increase or decrease in the direction y r is counted, and when the point R has moved by the number of dots of the set value, the filling in the y-axis direction is completed. As a result, the upper and lower limits of filling can be arbitrarily set using the counter.

第12図は、第11図の実施例を示す図であ
る。
FIG. 12 is a diagram showing the embodiment of FIG. 11.

第12図aは、第9図の実施例を用いて、いつ
たん上限までぬりつぶした状態を示し、次に第1
2図bに示すように、前記の上限に始点Pを設定
し、ドツト・カウンタに△yなる値を設定した
後、N=−1(下方向ぬりつぶし)とし、ぬりつ
ぶし表示色を背景色に指定し、第11図の実施例
を実行すれば下方向ぬりつぶし、すなわち背景の
ぬりつぶしを行ことができる。
Figure 12a shows a state in which the embodiment of Figure 9 is used to fill in the color up to the upper limit, and then the first
As shown in Figure 2b, after setting the starting point P at the above upper limit and setting the value △y in the dot counter, set N = -1 (downward filling) and specify the filling display color as the background color. However, by executing the embodiment shown in FIG. 11, it is possible to fill in the downward direction, that is, to fill in the background.

したがつて、ドツト・カウンタ、および背景色
によるぬりつぶしを併用すれば、ぬりつぶし面の
上限あるいは下限のアナログ的な移動が可能とな
る。また、ぬりつぶしの上限、下限がカウンタに
より設定できるので、Nの値を任意に選ぶことが
できる。すなわち、第13図に示すように、Nの
値を0、±1以外の整列に選べば、横縞模様での
ぬりつぶしが可能となる。
Therefore, by using a dot counter and filling in using the background color, it becomes possible to move the upper or lower limit of the filling surface in an analog manner. Further, since the upper and lower limits of filling can be set by a counter, the value of N can be arbitrarily selected. That is, as shown in FIG. 13, if the value of N is selected to be an alignment other than 0 or ±1, filling with a horizontal striped pattern becomes possible.

第14図は、第11図の実施例の変形例を示す
図である。
FIG. 14 is a diagram showing a modification of the embodiment shown in FIG. 11.

第14図では、x軸方向ぬりつぶし時にもドツ
ト・カウンタを設けて、x軸方向のぬりつぶし位
置の設定を行う点が第11図の実施例と異なる。
第14図には、変更部のうち、x軸方向ぬりつぶ
し時の実施例のみを示してある。
The embodiment shown in FIG. 14 differs from the embodiment shown in FIG. 11 in that a dot counter is provided even when filling in the x-axis direction, and the filling position in the x-axis direction is set.
FIG. 14 shows only an example of the changing part when filling in the x-axis direction.

ドツト・カウンタに設定される△xの働きは、
次の通りである。すなわち、第11図において示
されるx軸方向のぬりつぶしの際、点Qのリフレ
ツシユ・メモリの読出し、比較、移動のみの行い
書込みは行わずに、△xにより、境界線までのド
ツト数をカウントする。ぬりつぶしは、点Qの位
置を元にもどし、△xに従つて行う。したがつて
ぬりつぶしの境界が、カウンタにより設定できる
ので、x軸方向のぬりつぶしにおいても、ぬりつ
ぶしの間隔Mを指定することができる。
The function of △x set in the dot counter is
It is as follows. That is, when filling in the x-axis direction shown in FIG. 11, the number of dots up to the boundary line is counted by △x without writing, only reading, comparing, and moving the refresh memory of point Q. . Filling is performed by returning the point Q to its original position and following Δx. Therefore, since the boundary of filling can be set by a counter, it is possible to specify the filling interval M even in filling in the x-axis direction.

y軸方向ぬりつぶし間隔N,x軸方向ぬりつぶ
し間隔Mを適当に設定し、ぬりつぶしの開始点情
報L(点Rからのドツト数)をサイクリツクに変
化させれば、第15図a、第15図bに示すよう
に、斜線、波形等のさまざまな模様でぬりつぶす
ことが可能である。
If the fill-in interval N in the y-axis direction and the fill-in interval M in the x-axis direction are set appropriately, and the fill-in starting point information L (the number of dots from point R) is changed cyclically, Figs. 15a and 15b can be obtained. As shown in the figure, it is possible to fill in various patterns such as diagonal lines and waveforms.

なお、第2図では、本発明が適用されるグラフ
イツク・デイスプレイ装置は、カラー表示である
として説明したが、本発明はカラー表示に限定さ
れることなく、輝度変調によつて白黒表示を行う
装置に対しても適用することができる。
In addition, in FIG. 2, the graphic display device to which the present invention is applied has been described as having a color display, but the present invention is not limited to a color display, but can also be applied to a device that performs a black and white display by brightness modulation. It can also be applied to

以上説明したように、本発明によれば、リフレ
ツシユ・メモリの読出し、書込み機能を有するグ
ラフイツク・デイスプレイ装置において、リフレ
ツシユ・メモリ上にあらかじめ指定色で書込まれ
た任意の閉曲線の内側に始点を設定し、その始点
を中心としてリフレツシユ・メモリの読出しを行
い、読出したリフレツシユ・メモリ情報と閉曲線
表示色情報とを比較し、その一致、不一致により
ぬりつぶしを行うので、ぬりつぶしの基本操作を
リフレツシユ・メモリの読出し、書込みに限つて
構成することができ、関数発生等の複雑な演算処
理を必要とせず、計算機の負担を軽減することが
可能となる。
As explained above, according to the present invention, in a graphic display device having refresh memory reading and writing functions, a starting point is set inside an arbitrary closed curve previously written in a specified color on the refresh memory. Then, the refresh memory is read from the starting point, the read refresh memory information is compared with the closed curve display color information, and coloring is performed based on the match or mismatch. It can be configured only for reading and writing, does not require complex arithmetic processing such as function generation, and can reduce the burden on the computer.

また、上記のぬりつぶされる閉曲線そのものの
発生はぬりつぶしそのものとは完全に独立してお
り、その閉曲線が一定の関数曲線である必要は全
くなく、連続したドツトの集合であればよいので
地図等の複雑な図形パターンのぬりつぶしを極め
て容易に行うことができる。
In addition, the generation of the closed curve itself to be filled in is completely independent of the filling itself, and the closed curve does not need to be a fixed function curve at all, but can be a set of continuous dots, so it can be used to create complex objects such as maps. It is extremely easy to fill in graphic patterns.

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

第1図は、従来のグラフイツク・デイスプレイ
装置における閉曲線内ぬりつぶし法の説明図、第
2図はラスター・スキヤン・デイスプレイ装置の
ブロツク図、第3図は本発明のグラフイツク・デ
イスプレイ装置におけるぬりつぶし方法の構成要
素の説明図、第4図は本発明の実施例を示す、ぬ
りつぶし方式のプログラム構成を示す図、第5図
は第4図の表示面上における実施例を示す図、第
7図〜第9図、第11図はそれぞれ第4図の変形
を示す図、第6図、第10図、第12図、第13
図はそれぞれ第7図〜第9図、第11図の実施例
を示す説明図、第14図は第11図の変形例を示
す図、第15図は第14図の実施例を示す図であ
る。 1:関数曲線、2:コンピユータ、3:インタ
ーフエイス、4:コントローラ、5:リフレツシ
ユ・メモリ、6:TVモニター、7:表示面、
8:閉曲線。
FIG. 1 is an explanatory diagram of a closed curve filling method in a conventional graphic display device, FIG. 2 is a block diagram of a raster scan display device, and FIG. 3 is a configuration of a filling method in a graphic display device of the present invention. An explanatory diagram of the elements, FIG. 4 is a diagram showing a fill-in program structure showing an embodiment of the present invention, FIG. 5 is a diagram showing an embodiment on the display screen of FIG. 4, and FIGS. 7 to 9 11 are views showing modifications of FIG. 4, FIG. 6, FIG. 10, FIG. 12, and FIG. 13, respectively.
The figures are explanatory views showing the embodiments of Figs. 7 to 9 and 11, respectively. Fig. 14 is a view showing a modification of Fig. 11, and Fig. 15 is a view showing the embodiment of Fig. 14. be. 1: Function curve, 2: Computer, 3: Interface, 4: Controller, 5: Refresh memory, 6: TV monitor, 7: Display surface,
8: Closed curve.

Claims (1)

【特許請求の範囲】 1 境界線に対応するドツトに所定の表示色情報
が書込まれているリフレツシユ・メモリに対して
デイスプレイ装置により境界線の内側に対応する
ドツトにぬりつぶし表示色情報を書込むようにし
たものにおいて、境界線の内側に1乃至複数個の
始点を設定し、各始点について以下のステツプに
よりぬりつぶし処理を行なうことを特徴とするグ
ラフイツク・デイスプレイ装置におけるぬりつぶ
し方法。 (イ) 始点を中心にしてX軸に沿つて一方向に順次
リフレツシユ・メモリのドツトの表示色情報の
読出しを行なつて境界線の表示色情報と比較す
るステツプ。 (ロ) ステツプ(イ)の比較の結果、一致しない場合に
はそのドツトにぬりつぶし表示色情報の書込み
を行なうステツプ。 (ハ) ステツプ(イ)の比較の結果、一致した場合には
前記始点からX軸に沿つて他方向に順次リフレ
ツシユ・メモリのドツトの表示色情報の読出し
を行なつて境界線の表示色情報と比較するステ
ツプ。 (ニ) ステツプ(ハ)の比較の結果、一致しない場合に
はそのドツトにぬりつぶし表示色情報の書込み
を行なうステツプ。 (ホ) ステツプ(ハ)の比較の結果、一致した場合には
前記始点をY軸方向に移動させるステツプ。 (ヘ) ステツプ(ホ)により移動した新たな始点が境界
線上の点あるいは最初に設定された始点からY
軸方向に所定値だけ移動した位置である場合に
はぬりつぶしを終了させ、それ以外の場合には
ステツプ(イ)に戻るステツプ。
[Scope of Claims] 1. Filling display color information is written in dots corresponding to the inside of the boundary line by a display device in a refresh memory in which predetermined display color information is written in dots corresponding to the boundary line. A filling method for a graphic display device characterized in that one or more starting points are set inside a boundary line, and filling processing is performed for each starting point according to the following steps. (a) A step of sequentially reading out the display color information of the dots from the refresh memory in one direction along the X-axis centering on the starting point and comparing it with the display color information of the boundary line. (b) A step of filling in the dots and writing display color information if they do not match as a result of the comparison in step (a). (c) As a result of the comparison in step (a), if they match, the display color information of the dots in the refresh memory is sequentially read in the other direction along the X-axis from the starting point, and the display color information of the border line is read. Steps to compare with. (d) If there is no match as a result of the comparison in step (c), a step of filling in the dot and writing display color information. (E) A step of moving the starting point in the Y-axis direction if a match is found as a result of the comparison in step (C). (f) The new starting point moved by step (e) is a point on the boundary line or Y from the initially set starting point.
If the position has been moved by a predetermined value in the axial direction, coloring is finished; otherwise, the process returns to step (a).
JP4527580A 1980-04-08 1980-04-08 Coating method for graphic display unit Granted JPS56142585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4527580A JPS56142585A (en) 1980-04-08 1980-04-08 Coating method for graphic display unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4527580A JPS56142585A (en) 1980-04-08 1980-04-08 Coating method for graphic display unit

Publications (2)

Publication Number Publication Date
JPS56142585A JPS56142585A (en) 1981-11-06
JPH0231393B2 true JPH0231393B2 (en) 1990-07-12

Family

ID=12714755

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4527580A Granted JPS56142585A (en) 1980-04-08 1980-04-08 Coating method for graphic display unit

Country Status (1)

Country Link
JP (1) JPS56142585A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6019191A (en) * 1983-07-13 1985-01-31 株式会社日立製作所 Image information processor
JPS6147986A (en) * 1984-08-15 1986-03-08 ダイキン工業株式会社 Painting pattern generation circuit
JPS62168281A (en) * 1986-01-20 1987-07-24 Fanuc Ltd Graphic extracting system

Also Published As

Publication number Publication date
JPS56142585A (en) 1981-11-06

Similar Documents

Publication Publication Date Title
US4189743A (en) Apparatus and method for automatic coloration and/or shading of images
US6597361B2 (en) Method of processing animation by interpolation between key frames with small data quantity
JPS62192878A (en) Painting-out method for polygon
JPS61249175A (en) Graphic processor
US6151032A (en) Stroke-based glyph-outline font generation in low/high resolution space
US5361333A (en) System and method for generating self-overlapping calligraphic images
US5255357A (en) Method for editing character bit maps at small sizes using connected runs
KR930000998B1 (en) Method and apparatus for processing image and/or character in computer graphics
JPH0231393B2 (en)
GB2258790A (en) Animation
JP2000322601A (en) Image generating system
JPH03179873A (en) Picture processing method
JPS63203341A (en) Enlarged character generation system
JPS61147288A (en) Character pattern generation display unit
JPH0146905B2 (en)
JPS60169895A (en) Generation of extra character
JP3807571B2 (en) Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device
JP3355004B2 (en) Graphic input / output device
JPH0756557A (en) Synthesizing method for picture
JPH05130504A (en) Image display controller
JPH03225575A (en) Image processor
JPH02148273A (en) Method for two-dimensionally expressing three-dimensional object
JPH01119880A (en) System for processing of rectangular surface smearing
JPS60149083A (en) Display unit
JPS63158675A (en) Method for painting out digital graphic