JP2897209B2 - Coloring processing equipment - Google Patents
Coloring processing equipmentInfo
- Publication number
- JP2897209B2 JP2897209B2 JP62215907A JP21590787A JP2897209B2 JP 2897209 B2 JP2897209 B2 JP 2897209B2 JP 62215907 A JP62215907 A JP 62215907A JP 21590787 A JP21590787 A JP 21590787A JP 2897209 B2 JP2897209 B2 JP 2897209B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- write
- polygon
- signal
- 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
Links
Landscapes
- Image Generation (AREA)
Description
【発明の詳細な説明】
<産業上の利用分野>
この発明はぬりつぶし処理装置に関し、さらに詳細に
いえば、入力された図形データに基くぬりつぶし処理を
行なうとともに、設定された所定の領域に対するぬりつ
ぶしを全く行なわない処理を実現させるようにしたぬり
つぶし処理装置に関する。
<従来の技術、および発明が解決しようとする問題点>
従来からグラフィックディスプレイ装置においては、
少なくとも多角形の頂点データが供給されることにより
多角形の境界線データを得、多角形の境界線により区画
される領域に対して所望の色彩でのぬりつぶし処理を行
なうことにより、質感、量感等を伴なう表示を行なわせ
るようにしたものが提供され、多用されるようになって
きている。
そして、このような構成のグラフィックディスプレイ
装置においては、実際に表示される図形が多角形でない
場合、例えば円、不規則な曲線等で構成される図形であ
る場合にも、これらの図形を多数の多角形に近似的に分
割し、各多角形について上記の如きぬりつぶしを行なう
ことにより、質感、量感等を伴なう表示を行なわせるこ
とができる。第5図に示すブロック図に基いて説明する
と、上位のモジュール(図示せず)から供給される点デ
ータを入力として描画モジュール(61)において必要な
補間演算を行ないながら補間データを描画メモリ(62)
に供給し、対応するアドレスにカラーインデックス等を
書込んで、CRTディスプレイ装置等(63)に可視的に表
示するようにしている。
したがって、かなり複雑な形状の図形であっても、上
位モジュールにおいて比較的単純な形状の多角形の集合
として把握し、各多角形に対してぬりつぶし処理を施す
ことにより任意の形状の図形に対するぬりつぶし処理を
行なわせることができる。但し、元の図形が単純な場合
には、少ない数の多角形の集合として把握できる関係
上、全体として処理所要時間が短くてすむのであるが、
元の図形が複雑な場合、例えば、曲線部分を含む場合に
は、著しく多数の多角形の集合として把握することが必
要になる関係上、全体として処理所要時間が長くなって
しまう。
また、図形によっては、例えば第6図Aに示すよう
に、三角形の全体をぬりつぶすのではなく、内部に規定
された四角形の領域を除いてぬりつぶしを行なう必要が
ある場合が生ずる。このような場合において上記グラフ
ィックディスプレイ装置によるぬりつぶし処理を行なお
うとすれば、第6図Bに示すように、三角形の任意の辺
の中間点、および四角形の対応する辺の中間点を結ぶ仮
想線を規定することにより、全体を11角形として把握
し、この11角形の全体をぬりつぶすことが考えられる。
しかし、この場合には、元の図形における頂点数が7で
あるにも拘わらず、頂点数が11になっており、補間演算
を行なうべき辺の数が増加することに伴なって全体とし
ての処理所要時間が長くなるという問題があるととも
に、上記11角形が凹多角形になってしまうので、処理が
簡単で所要時間も短い凸多角形に対するぬりつぶし処理
が適用できず、全体として処理所要時間が一層長くなっ
てしまうという問題がある。
第6図Cは上記多角形を2つに分割し、分割した各多
角形に対するぬりつぶし処理を行なう場合を示してお
り、第6図Bの場合と比較して、処理すべき多角形の頂
点数を減少させることができるという利点を有している
が、処理すべき多角形の数が増加するとともに、凹多角
形のぬりつぶし処理を行なわなければならないのである
から、全体として処理所要時間が同程度にかかってしま
うという問題がある。
第6図Dは上記多角形を4つに分割し、分割した全て
の多角形が凸多角形になるようにした場合を示してお
り、凹多角形に対するぬりつぶし処理が皆無になるとい
う利点を有しているが、処理すべき多角形の数が著しく
増加するのであるから、全体として処理所要時間を余り
短縮することができないという問題がある。特に、ぬり
つぶしを阻止すべき図形が円の如く曲線部分を含んでい
る場合には、多角形で近似する関係上、処理すべき多角
形の数が著しく増加し、上記の問題が顕著になってしま
うという問題がある。
さらに、上記何れの場合においても、ぬりつぶしが阻
止されるべき図形の数が増加すれば、処理すべき多角形
の頂点数の増加、或は、処理すべき多角形の数の増加が
著しく、全体として処理所要時間が著しく増加してしま
うという問題がある。
<発明の目的>
この発明は上記の問題点に鑑みてなされたものであ
り、ぬりつぶし処理を行なうべき図形の内部にぬりつぶ
しを阻止すべき図形が存在する状態において、簡単に、
かつ短時間でぬりつぶし処理を行なうことができるぬり
つぶし装置を提供することを目的としている。
<問題点を解決するための手段>
上記の目的を達成するための、この発明のぬりつぶし
装置は、ぬりつぶしのための図形データを入力として描
画メモリに対するぬりつぶし処理を行なうぬりつぶし処
理装置において、入力された図形データをぬりつぶしを
行なうべき図形データとぬりつぶしを行なわない図形デ
ータとに区分する図形データ区分手段と、ぬりつぶしを
行なわない図形データを入力として対応する書込み禁止
信号を出力するとともに、ぬりつぶしを行なうべき図形
データを入力として対応する書込み許可信号を出力する
穴用メモリと、穴用メモリから出力される書込み禁止信
号または書込み許可信号を描画メモリに対して供給する
とともに、入力された図形データに基くぬりつぶし画素
データを描画メモリに供給する描画手段とを具備するも
のである。
但し、上記描画手段としては、入力された図形データ
に基くぬりつぶし画素データの書込み制御すべく上位処
理手段から供給される書込み制御信号と穴用メモリから
の書込み禁止信号または書込み許可信号との論理積信号
を描画メモリに対して書込み制御信号として供給すると
ともに、入力された図形データに基くぬりつぶし画素デ
ータを描画メモリに供給するものであることが好まし
い。
以上の構成のぬりつぶし装置であれば、ぬりつぶしの
ための図形データを入力としてぬりつぶし処理を行なう
場合において、図形データを図形データ区分手段に供給
することにより、ぬりつぶしを行なうべき図形データと
ぬりつぶしを行なわない図形データとの区分を行ない、
ぬりつぶしを行なわない図形データを穴用メモリに格納
する。
この穴用メモリからは、ぬりつぶしを行なわない図形
に対応する書込み禁止信号を出力するので、穴用メモリ
からの出力信号に対応する書込み制御信号を描画メモリ
に対して供給することにより、入力された図形データに
基き、書込み禁止信号が出力される図形を排除して必要
なぬりつぶし画素データを出力することができる。
さらに詳細に説明すると、比較的大きな多角形領域の
内部をぬりつぶすことが要求されているとともに、上記
多角形の内部にぬりつぶしを阻止すべき多角形領域が設
定されている場合には、上位プロセッサ等から供給され
る図形データにおいて、ぬりつぶしを行なうべき多角形
と、ぬりつぶしを行なってはいけない多角形が予め設定
されているのであるから、図形データ区分手段により、
ぬりつぶしを行なってはいけない多角形を他の多角形か
ら区分し、穴用メモリに書込む。
この穴用メモリに書込まれたデータは、上記ぬりつぶ
しを行なってはいけない多角形の領域全体にわたってぬ
りつぶしの禁止を指示すべきデータであるから、このデ
ータを読出して描画手段に書込み制御信号として供給す
ることにより、上記比較的大きな多角形領域の全体にわ
たってふりつぶしを指示するデータの出力を行なう間に
おいてぬりつぶし禁止指示データに対応する部分を除い
てぬりつぶしを指示するデータの出力を行ない、ぬりつ
ぶしを阻止すべき領域を除く全領域に対するぬりつぶし
処理を行なうことができる。
そして、上記描画手段が、入力された図形データに基
くぬりつぶし画素データの書込みを制御すべく上位処理
手段から供給される書込み制御信号と穴用メモリからの
書込み禁止信号または書込み許可信号との論理積信号を
描画メモリに対して書込み制御信号として供給するとと
もに、入力された図形データに基くぬりつぶし画素デー
タを描画メモリに供給するものである場合には、入力さ
れた図形データのうち、穴用メモリに格納されているぬ
りつぶし禁止指示データに対応する部分のみを排除した
状態でぬりつぶし画素データを描画メモリに供給するこ
とができ、該当領域のみに対応するぬりつぶし画素デー
タのみを描画メモリに保持させることができ、描画メモ
リの内容に基く可視的な表示を行なわせるだけで、穴あ
き多角形を除外した状態に対応する可視的表示を達成す
ることができる。
<実施例>
以下、実施例を示す添付図面によって詳細に説明す
る。
第1図はこの発明のぬりつぶし装置の要部を示す概略
図であり、上位プロセッサ等(図示せず)から供給され
る穴あき多角形コマンドデータを入力として直線補間演
算等を行ない、補間演算結果に基くぬりつぶし画素デー
タを生成する描画部(1)と、書込み制御信号による制
御下において描画部(1)から出力されるぬりつぶし画
素データが書込まれる描画メモリ(2)と、描画メモリ
(2)の内容に基いて可視的表示を行なうモニタ部
(3)と、上記描画部(1)によりぬりつぶしが阻止さ
れるべき図形に対応するぬりつぶし画素データ(但し、
このぬりつぶし画素データは、各画素毎に1ビットで十
分であり、ぬりつぶし画素データが“1"に設定されてい
る)が書込まれ、書込まれたぬりつぶし画素に対応して
書込み禁止を指示するデータを描画メモリ(2)に供給
する穴用バッファメモリ(4)とから構成されている。
第2図は穴あき多角形コマンドデータのフォーマット
の一例を示す図であり、穴あき多角形のぬりつぶし処理
を行なうべきことを示すコマンドデータ(2a)、穴数デ
ータ(2b)、穴多角形データ(21)(22)…(2m)、外
郭多角形データ(2c)から構成されている。
さらに詳細に説明すれば、上記描画部(1)は穴あき
多角形コマンドデータに含まれている穴多角形データ
(21)(22)…(2m)、および外郭多角形データ(2c)
に基く補間演算を行なって、それぞれの多角形データに
対応するぬりつぶし画素データを生成し、穴多角形デー
タに対応するぬりつぶし画素データを穴用バッファメモ
リ(4)に供給するとともに、外郭多角形データに対応
するぬりつぶし画素データを描画メモリ(2)に供給す
るようにしている。
そして、穴あき多角形のぬりつぶし処理が終了した後
は、外郭多角形に対応するぬりつぶし画素データを書込
み、次いで、同一の領域に対して非ぬりつぶし画素デー
タに対応するデータを書込むことにより、穴用バッファ
メモリ(4)を初期状態に復元させるようにしている。
また、穴用バッファメモリ(4)は、描画部(1)か
ら供給されたぬりつぶし画素データを保持するものであ
り、所定のタイミングで読出されることにより、描画メ
モリ(2)に対して書込み禁止信号として供給できるよ
うにしている。具体的には、第3図に示すように、描画
部(1)から出力される書込み制御信号(ぬりつぶし画
素データを描画メモリ(2)に供給するタイミングで書
込み許可信号“1"が出力される)、および穴用バッファ
メモリ(4)から読出されるデータをインバータ(42)
により反転させたデータをANDゲート(41)に供給し、A
NDゲート(41)からの出力データを書込み制御信号とし
て描画メモリ(2)に供給するようにしている。
上記の構成のぬりつぶし装置の動作は次のとおりであ
る。
第4図Aに示すように、外郭多角形としての三角形
(51)の内部に穴多角形としての四角形(52)を規定す
べきことを示す穴あき多角形コマンドデータが図示しな
い上位プロセッサ等から描画部(1)に供給された場合
には、穴あき多角形コマンドデータにおける多角形デー
タの格納位置に基いて四角形(52)に対応するデータを
識別し、補間演算等を施すことにより1ビットのぬりつ
ぶし画素データを生成して穴用バッファメモリ(4)に
書込む(第4図B参照)。
次いで、描画部(1)において三角形(51)に対応す
るデータに基いて補間演算等を施すことにより所定数ビ
ットのぬりつぶし画素データ(第4図C参照)を生成す
るとともに、ぬりつぶし画素データの生成と同期とさせ
て書込み許可信号“1"を生成する。逆に、ぬりつぶし画
素データが生成されない部分については、アドレスデー
タの生成が行なわれない。また、上記画素データの生成
動作と同期させて穴用バッファメモリ(4)からのデー
タ読出しが行なわれ、1ビットの読出しデータがインバ
ータ(42)により反転させられた状態でANDゲート(4
1)に供給されるとともに、上記書込み許可信号、或は
書込み禁止信号が選択的に供給されるので、三角形(5
1)の内部に対応させて上記ANDゲート(41)から描画メ
モリ(2)に対して書込み許可信号が供給され、しか
も、三角形(51)の内部であっても、四角形(52)の内
部に対応させて上記ANDゲート(41)から描画メモリ
(2)に対して書込み禁止信号が供給されることにな
る。
この結果、描画部(1)から描画メモリ(2)に対し
て、三角形(51)の内部をぬりつぶすべく画素データを
生成して供給するだけで、実際に描画メモリ(2)に対
して、書込み許可信号が供給された場合にのみ書込み、
逆に、アドレスデータが生成されない場合には書込まな
いことにより、四角形(52)の内部におけるぬりつぶし
を阻止した状態で三角形(51)の内部におけるぬりつぶ
し、即ち、穴あき処理を行なうことができる(第4図A
参照)。
以上の説明から明らかなように、上記の実施例の場合
においては、四角形(52)に対する補間演算等、および
ぬりつぶし画素データの穴用バッファメモリ(4)への
書込みを行なうとともに、三角形(51)に対する補間演
算等、およびぬりつぶし画素データの描画メモリ(2)
への書込みを行なうことにより、必要な穴あき処理を行
なうことができ、処理を簡素化することができるととも
に、必要部分のぬりつぶしに必要な時間を従来例の約1/
2に減少させることができる。そして、穴多角形の数が
増加した場合等を考慮すれば、必要部分のぬりつぶしに
必要な時間を一層減少させることができる。
また、上記の穴あき処理を行なった後は、描画部
(1)において三角形(51)に対応するぬりつぶし画素
データを生成して穴用バッファメモリ(4)に書込むこ
とにより、三角形(51)に対応する全領域の画素データ
を“1"とし、次いで同一の領域に対して“0"データを書
込むことにより、穴用メモリ(4)の全範囲を初期状態
に復元させることができる。但し、穴用メモリ(4)を
初期状態に復元させる方法は、上記の方法に限定される
ものではなく、例えば、穴用メモリ(4)の全範囲に対
して“0"データを書込む方法は、或は、穴多角形に対応
する領域に“0"データを書込む方法が適用可能である
が、特に、穴多角形の数が増加する可能性が高いことを
考慮すれば、外郭多角形に対応させて直ちに“0"データ
でぬりつぶしを行なう方法が最も好ましく、所要時間を
短くすることができる。
尚、この発明は上記の実施例に限定されるものではな
く、例えば任意の外郭多角形の内部に任意の穴多角形を
組合せた状態に簡単に対処することが可能である他、2
つ以上の穴多角形を設定した場合にも同様に対処するこ
とが可能であり、さらには、描画メモリを複数枚のフレ
ームバッファメモリで構成することによりカラー表示を
行なわせる場合についても、各フレームバッファメモリ
に対応させて穴用バッファメモリを準備しておくことに
より同様に対処することができ、その他、この発明の要
旨を変更しない範囲内において種々の設計変更を施すこ
とが可能である。
<発明の効果>
以上のようにこの発明は、外郭多角形の内部に規定さ
れた穴多角形に対応させて穴用メモリにぬりつぶし画素
データを書込んでおくとともに、外郭多角形に対応させ
て描画メモリに対してぬりつぶし画素データを書込む場
合に、穴用メモリに書込まれたぬりつぶし画素データに
対応させて書込み禁止信号を生成するようにしているの
で、各多角形を複雑に区分することなくぬりつぶし処理
を行なうことができ、しかも、ぬりつぶし処理結果に基
いて書込み制御が行なわれるので、全体として処理を簡
素化することができるとともに、所要時間の大幅な短縮
を達成することができるという特有の効果を奏する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a fill processing apparatus, and more specifically, to perform fill processing based on input graphic data and to perform fill processing for a predetermined area. The present invention relates to a smashing processing apparatus that realizes processing that is not performed at all. <Prior Art and Problems to be Solved by the Invention> Conventionally, in a graphic display device,
At least polygonal vertex data is supplied to obtain polygonal boundary data, and a region defined by the polygonal boundary is filled with a desired color to obtain a texture, volume, etc. Are provided, and are used frequently. In a graphic display device having such a configuration, even when a figure to be actually displayed is not a polygon, for example, a figure composed of a circle, an irregular curve, or the like, these figures are displayed in a large number. By approximately dividing the polygon into polygons and performing the above-described crushing on each polygon, it is possible to perform a display accompanied by a texture, a volume, and the like. Explaining with reference to the block diagram shown in FIG. 5, point data supplied from a higher-level module (not shown) is input, and the rendering module (61) performs necessary interpolation calculations in the rendering module (61) to store interpolation data in the rendering memory (62). )
And a color index or the like is written in the corresponding address, so that it is visually displayed on a CRT display device or the like (63). Therefore, even a graphic having a fairly complicated shape is grasped as a set of polygons having a relatively simple shape in the upper module, and a fill-up process is performed on a graphic having an arbitrary shape by performing a fill-up process on each polygon. Can be performed. However, if the original figure is simple, the processing time can be shortened as a whole, since it can be grasped as a set of a small number of polygons.
When the original figure is complicated, for example, when it includes a curved portion, the processing time becomes longer as a whole because it is necessary to grasp as a set of extremely many polygons. In addition, depending on the figure, as shown in FIG. 6A, for example, it may be necessary to paint not the entire triangle but the rectangular area defined inside. In such a case, if it is intended to perform the filling process by the graphic display device, as shown in FIG. 6B, a virtual line connecting the midpoint of any side of the triangle and the midpoint of the corresponding side of the rectangle By defining this, it is conceivable that the whole is grasped as an 11-sided shape and the whole 11-sided shape is wetted.
However, in this case, although the number of vertices in the original figure is 7, the number of vertices is 11, and as the number of sides to be subjected to the interpolation operation increases, the In addition to the problem that the processing time becomes longer, the above-mentioned 11-sided polygon becomes a concave polygon, so the processing is simple and the processing time is shorter. There is a problem that it becomes longer. FIG. 6C shows a case in which the polygon is divided into two parts, and each of the divided polygons is subjected to a filling process. In comparison with FIG. 6B, the number of vertices of the polygon to be processed is shown. However, since the number of polygons to be processed increases and the concave polygons must be filled out, the processing time as a whole is about the same. Problem. FIG. 6D shows a case where the polygon is divided into four and all the divided polygons are convex polygons, and there is an advantage that there is no need to perform the filling process for the concave polygons. However, since the number of polygons to be processed is significantly increased, there is a problem that the required processing time cannot be reduced as a whole. In particular, when the figure to be prevented from being overpainted includes a curved portion such as a circle, the number of polygons to be processed is significantly increased due to the approximation of polygons, and the above problem becomes remarkable. Problem. Further, in any of the above cases, if the number of figures to be prevented from being painted increases, the number of vertices of the polygon to be processed or the number of polygons to be processed increases remarkably. As a result, there is a problem that the processing time is significantly increased. <Object of the Invention> The present invention has been made in view of the above-described problems, and in a state where a figure to be prevented from being painted exists inside a figure to be subjected to the painting process,
It is another object of the present invention to provide a filling device capable of performing a filling process in a short time. <Means for Solving the Problems> In order to achieve the above object, the present invention provides a paint-filling apparatus for performing paint-painting processing on a drawing memory by inputting graphic data for paint-painting. Graphic data dividing means for dividing graphic data into graphic data to be painted and graphic data not to be painted, graphic data not to be painted as an input, outputting a corresponding write inhibit signal, and drawing to be painted. A hole memory for outputting a corresponding write enable signal as input data, a write inhibit signal or a write enable signal output from the hole memory to the drawing memory, and a fill-in pixel based on the input graphic data. Drawing means for supplying data to the drawing memory; It is provided with. However, as the drawing means, the logical product of the write control signal supplied from the host processing means and the write inhibit signal or write enable signal from the hole memory for controlling the writing of the pixelated data based on the input graphic data is used. It is preferable that the signal be supplied to the drawing memory as a writing control signal, and that the pixel data be supplied to the drawing memory based on the input graphic data. In the case of the filling apparatus having the above configuration, when performing the filling processing by inputting the graphic data for filling, the graphic data is supplied to the graphic data dividing means, so that the graphic data to be filled and the filling are not performed. Performs division from graphic data,
The graphic data that is not to be painted is stored in the hole memory. From this hole memory, a write inhibit signal corresponding to a figure not to be painted out is output. Therefore, a write control signal corresponding to the output signal from the hole memory is supplied to the drawing memory, so that the input is performed. Based on the graphic data, it is possible to exclude the graphic for which the write-inhibit signal is output and to output the necessary wet-out pixel data. More specifically, when it is required to paint the inside of a relatively large polygonal area, and if a polygonal area for which painting is to be prevented is set inside the polygon, the upper processor, etc. In the graphic data supplied from, a polygon to be filled and a polygon not to be filled are set in advance.
Polygons that should not be painted are separated from other polygons and written to the hole memory. Since the data written in the hole memory is data for instructing the prohibition of the painting over the entire polygonal area that should not be painted, the data is read and supplied to the drawing means as a write control signal. By doing so, during the output of the data indicating the squashing over the whole of the relatively large polygonal area, the data indicating the squashing is output except for the portion corresponding to the squeezing prohibition instruction data, thereby preventing the smashing. The paint-out process can be performed on all areas except for the area to be processed. Then, the drawing means performs a logical product of a write control signal supplied from the host processing means and a write inhibit signal or a write enable signal from the hole memory to control the writing of the painted pixel data based on the input graphic data. In the case where the signal is supplied to the drawing memory as a write control signal and the fill-in pixel data based on the input graphic data is supplied to the drawing memory, the input graphic data is supplied to the hole memory. It is possible to supply the pixel data to the drawing memory in a state where only the portion corresponding to the stored prohibition command data is excluded, and to hold only the pixel data for the corresponding region in the drawing memory. , Perforated polygons were excluded by only making a visual display based on the contents of the drawing memory It can be achieved visual display corresponding to the state. <Example> Hereinafter, an example will be described in detail with reference to the accompanying drawings. FIG. 1 is a schematic view showing a main part of a filling device according to the present invention, in which a linear interpolation operation or the like is performed by inputting perforated polygon command data supplied from a host processor or the like (not shown), and the interpolation operation result A drawing unit (1) for generating painted pixel data based on the image data, a drawing memory (2) in which painted pixel data output from the drawing unit (1) under the control of the writing control signal is written, and a drawing memory (2). And a monitor unit (3) for performing a visual display based on the contents of the above, and the pixel data corresponding to the figure to be prevented from being overpainted by the drawing unit (1) (however,
One bit is sufficient for this pixel data for each pixel, and the pixel data is set to “1”. The write-in pixel data is set to “1”, and write-inhibition is instructed in accordance with the written pixel data. And a hole buffer memory (4) for supplying data to the drawing memory (2). FIG. 2 is a diagram showing an example of the format of the command data of a polygon with a hole. (21) (22)... (2m), composed of outline polygon data (2c). More specifically, the drawing unit (1) includes the hole polygon data (21) (22)... (2m) included in the hole polygon command data, and the outline polygon data (2c).
And generates interpolation pixel data corresponding to the respective polygon data, supplies the interpolation pixel data corresponding to the hole polygon data to the buffer memory for holes (4), and outputs the outline polygon data. Is supplied to the drawing memory (2). After the completion of the hole-filled polygon filling process, the fill-in pixel data corresponding to the outer polygon is written, and then the data corresponding to the non-fill-up pixel data is written in the same area. Buffer memory (4) is restored to the initial state. The hole buffer memory (4) holds the anisotropically-painted pixel data supplied from the drawing unit (1), and is read at a predetermined timing to prohibit writing into the drawing memory (2). It can be supplied as a signal. Specifically, as shown in FIG. 3, a write enable signal “1” is output at a timing at which a write control signal output from the drawing unit (1) is supplied to the drawing memory (2). ), And the data read from the hole buffer memory (4) are converted to an inverter (42).
And supplies the inverted data to the AND gate (41).
Output data from the ND gate (41) is supplied to the drawing memory (2) as a write control signal. The operation of the filling device having the above configuration is as follows. As shown in FIG. 4A, a perforated polygon command data indicating that a quadrangle (52) as a perforated polygon should be defined inside a triangle (51) as an outer polygon is transmitted from a not-shown upper processor or the like. When supplied to the drawing unit (1), the data corresponding to the square (52) is identified based on the storage position of the polygon data in the perforated polygon command data, and one bit is obtained by performing an interpolation operation or the like. Is generated and written into the hole buffer memory (4) (see FIG. 4B). Next, by performing an interpolation operation or the like on the data corresponding to the triangle (51) in the drawing unit (1), a predetermined number of bits of the pixel data (see FIG. 4C) are generated, and the pixel pixel data is generated. And a write enable signal "1" is generated. Conversely, address data is not generated for a portion where no pixelated pixel data is generated. Further, data is read from the buffer memory for holes (4) in synchronization with the operation of generating the pixel data, and the AND gate (4) is read in a state where the 1-bit read data is inverted by the inverter (42).
1) and the above write enable signal or write inhibit signal is selectively supplied.
A write enable signal is supplied from the AND gate (41) to the drawing memory (2) in correspondence with the inside of (1), and even within the triangle (51), the inside of the square (52) Correspondingly, a write inhibit signal is supplied from the AND gate (41) to the drawing memory (2). As a result, by simply generating and supplying pixel data from the drawing unit (1) to the drawing memory (2) to paint the inside of the triangle (51), the data is actually written to the drawing memory (2). Write only when a permission signal is supplied,
Conversely, if address data is not generated, writing is not performed, so that filling inside the triangle (51), that is, perforating processing can be performed in a state where filling inside the square (52) is prevented ( FIG. 4A
reference). As is apparent from the above description, in the case of the above-described embodiment, the interpolation calculation and the like for the square (52), the writing of the pixel data to be filled into the hole buffer memory (4), and the triangle (51) are performed. Calculation for interpolation and drawing memory for pixelated pixel data (2)
By performing writing to the required area, it is possible to perform the necessary hole processing, simplify the processing, and reduce the time required for filling out the necessary parts by about 1 /
Can be reduced to 2. In consideration of the case where the number of hole polygons increases, it is possible to further reduce the time required for painting a necessary portion. After performing the above-described hole forming process, the drawing unit (1) generates the painting-out pixel data corresponding to the triangle (51) and writes it in the buffer memory for holes (4), thereby obtaining the triangle (51). Is set to "1" for the pixel data of the entire area corresponding to "1", and then "0" data is written to the same area, thereby restoring the entire range of the hole memory (4) to the initial state. However, the method of restoring the hole memory (4) to the initial state is not limited to the above method. For example, a method of writing “0” data to the entire range of the hole memory (4) Alternatively, a method of writing “0” data in an area corresponding to a hole polygon can be applied. In particular, considering that the number of hole polygons is likely to increase, The most preferable method is to immediately perform filling with "0" data in correspondence with the square, and the required time can be shortened. Note that the present invention is not limited to the above-described embodiment. For example, it is possible to easily cope with a state in which an arbitrary polygon is combined with an arbitrary polygon inside the outer polygon.
It is possible to cope with the case where more than one hole polygon is set.Furthermore, in the case where a color display is performed by configuring the drawing memory with a plurality of frame buffer memories, The same problem can be solved by preparing a buffer memory for a hole corresponding to the buffer memory. In addition, various design changes can be made without departing from the scope of the present invention. <Effects of the Invention> As described above, according to the present invention, the pixel data to be painted is written in the hole memory in correspondence with the hole polygon defined inside the outline polygon, and is also associated with the outline polygon. When writing fill pixel data to the drawing memory, a write inhibit signal is generated corresponding to the fill pixel data written to the hole memory. It is possible to perform the painting process without any problem, and furthermore, since the writing control is performed based on the painting process result, the process can be simplified as a whole and the required time can be greatly reduced. Has the effect of
【図面の簡単な説明】
第1図はこの発明のぬりつぶし装置の要部を示す概略
図、
第2図は穴あき多角形コマンドデータのフォーマットの
一例を示す図、
第3図は描画メモリに対する書込み制御信号を生成する
ための構成を示す図、
第4図は穴あき処理動作を説明する図、
第5図はぬりつぶし装置の従来例を示す概略図、
第6図は従来例による穴あき処理を説明する図。
(1)…描画部、(2)…描画メモリ、(4)…穴用バ
ッファメモリ、(21)(22)…(2m)…穴多角形デー
タ、(2c)…外郭多角形データBRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram showing a main part of a filling device of the present invention, FIG. 2 is a diagram showing an example of a format of a polygon command data with holes, and FIG. FIG. 4 is a diagram illustrating a configuration for generating a control signal, FIG. 4 is a diagram illustrating a perforation processing operation, FIG. 5 is a schematic diagram illustrating a conventional example of a filling apparatus, and FIG. FIG. (1) ... Drawing unit, (2) ... Drawing memory, (4) ... Buffer memory, (21) (22) ... (2m) ... Hole polygon data, (2c) ... Outer polygon data
Claims (1)
モリに対するぬりつぶし処理を行なうぬりつぶし処理装
置において、入力された図形データをぬりつぶしを行な
うべき図形データとぬりつぶしを行なわない図形データ
とに区分する図形データ区分手段と、ぬりつぶしを行な
わない図形データを入力として対応する書込み禁止信号
を出力するとともに、ぬりつぶしを行なうべき図形デー
タを入力として対応する書込み許可信号を出力する穴用
メモリと、穴用メモリから出力される書込み禁止信号ま
たは書込み許可信号を描画メモリに対して供給するとと
もに、入力された図形データに基くぬりつぶし画素デー
タを描画メモリに供給する描画手段とを具備することを
特徴とするぬりつぶし処理装置。 2.描画手段が、入力された図形データに基くぬりつぶ
し画素データの書込みを制御すべく上位処理手段から供
給される書込み制御信号と穴用メモリからの書込み禁止
信号または書込み許可信号との論理積信号を描画メモリ
に対して書込み制御信号として供給するとともに、入力
された図形データに基くぬりつぶし画素データを描画メ
モリに供給するものである上記特許請求の範囲第1項記
載のぬりつぶし処理装置。(57) [Claims] A drawing data processing device that performs drawing processing on a drawing memory by inputting drawing data for drawing, and drawing data dividing means for classifying input graphic data into figure data to be drawn and drawing data not to be drawn; A memory for holes that outputs graphic data that is not to be painted as input and outputs a corresponding write enable signal with graphic data to be painted as input and a write inhibit that is output from the memory for holes. A drawing means for supplying a signal or a write permission signal to the drawing memory, and drawing means for supplying fill pixel data based on the input graphic data to the drawing memory. 2. The drawing means draws a logical product signal of the write control signal supplied from the host processing means and the write inhibit signal or write enable signal from the hole memory to control the writing of the painted pixel data based on the input graphic data. 2. A paint-fill processing apparatus according to claim 1, wherein said paint-fill processing apparatus supplies the paint pixel data based on the input graphic data to the drawing memory while supplying the write-control signal to the memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62215907A JP2897209B2 (en) | 1987-08-28 | 1987-08-28 | Coloring processing equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62215907A JP2897209B2 (en) | 1987-08-28 | 1987-08-28 | Coloring processing equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6458067A JPS6458067A (en) | 1989-03-06 |
| JP2897209B2 true JP2897209B2 (en) | 1999-05-31 |
Family
ID=16680226
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62215907A Expired - Fee Related JP2897209B2 (en) | 1987-08-28 | 1987-08-28 | Coloring processing equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2897209B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5228529B2 (en) * | 1972-06-14 | 1977-07-27 | ||
| JPS61239384A (en) * | 1985-04-05 | 1986-10-24 | Fujitsu Ltd | Method for improving recognition rate in graphic recognition |
-
1987
- 1987-08-28 JP JP62215907A patent/JP2897209B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6458067A (en) | 1989-03-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3286331B2 (en) | Block texture complex clip mask processor | |
| US5546518A (en) | System and method for composing a display frame of multiple layered graphic sprites | |
| JP2001195230A (en) | Drawing processing system and semiconductor integrated circuit for performing drawing calculation | |
| JPS61292678A (en) | Display controller | |
| JP2897209B2 (en) | Coloring processing equipment | |
| JP2550599B2 (en) | Filling processing device | |
| EP0803798A1 (en) | System for use in a computerized imaging system to efficiently transfer graphics information to a graphics subsystem employing masked direct frame buffer access | |
| JPH0767136B2 (en) | Image processing device | |
| JPS63137378A (en) | Graphics processing system | |
| JP3233566B2 (en) | Graphic drawing processor and graphic processing system | |
| JP2671365B2 (en) | Character / graphic editing device | |
| JPH08314429A (en) | Translucent color image generator | |
| JPS62204389A (en) | Clipping/shielding method by any polygons | |
| JPS60241175A (en) | Graphic processor | |
| JPS60175088A (en) | Graphic display | |
| JP2003150970A (en) | Image creating method, image display processing device, image display processing method and image display processing program | |
| JPS63186386A (en) | Graphic display device | |
| JPH01255556A (en) | Character graphic editing device | |
| JPS58146079A (en) | Method for supplying address signal to memory device | |
| JPS59162587A (en) | Image display | |
| JPH0756557A (en) | Image composition method | |
| JPH0342785A (en) | Bit map display device | |
| JPH02262194A (en) | Display screen producing device | |
| JPS59211130A (en) | Graphic display device | |
| JPH0322131A (en) | Menu display controlling method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |