JPS60108974A - Pattern processing system - Google Patents

Pattern processing system

Info

Publication number
JPS60108974A
JPS60108974A JP58216586A JP21658683A JPS60108974A JP S60108974 A JPS60108974 A JP S60108974A JP 58216586 A JP58216586 A JP 58216586A JP 21658683 A JP21658683 A JP 21658683A JP S60108974 A JPS60108974 A JP S60108974A
Authority
JP
Japan
Prior art keywords
data
memory
address
pattern
display
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
JP58216586A
Other languages
Japanese (ja)
Inventor
Takao Miura
孝雄 三浦
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP58216586A priority Critical patent/JPS60108974A/en
Publication of JPS60108974A publication Critical patent/JPS60108974A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To improve the efficiency of pattern painting-out processing by writing data in the same address of a display memory in case of solid color, and in case of the outline of a pattern, writing color or pattern data in the address and then inverting the address selecting direction to write data. CONSTITUTION:The data of a memory position A in a display memory 1' are read out by a reading part 7 and set in a register 8. A number ''0'' is written in a memory at the position A, and when a discrimination part 9 discriminates the ''0'', a gate part 10 is opened, data in the register 8 are sent to a writing part 11 and written in the position A. A position next to the position A on the right side is selected and similar reading and discrimination are repeated. If the value of an address counter 5 selects a memory position B, a discrimination part 9 generates a control signal (f) because ''1'' is written in the memory on the position B. Consequently, pattern data Q1 are sent from a pattern memory 3 to a writing part 11 and written in the position B. The data Q1 is written on a position next to the position B on the left side and similar operation is repeated up to a memory position C. Hereafter, similar operation is repeated in the vertical direction, so that the efficiency of pattern painting-out processing can be improved.

Description

【発明の詳細な説明】 (al 発明の技術分野 本発明は図形表示システムにおける図形の塗りつぶしを
処理する図形処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a graphics processing method for processing the filling of graphics in a graphics display system.

tb+ 従来技術と問題点 グラフィックディスプレイシステムlこおいて、ある図
形の面積を塗りつぶす処理としては次の方法が採られて
いる。例えばビクトマクプディスプレイにおいて、図形
データが格納された表示メモーリの或位置から左又は右
方向ヘアドレスを変更しながら表示メモリ内のデータを
読出して図形の境界(すなわち図形の輪郭]点を模索し
て判別することにより、該輪郭内を、指定された色ある
いは模様で塗りつぶす方法か用いられている。この従来
方法で、表示メモリの内容を読取って判定したのち、指
定された色又は模様のデータを書込む際、表示のチラッ
キを生ぜしめないためIこは、表示メモリ内のデータ更
新処理に多大の時間を要し・、またそのデータ更新処理
をソフトウェアで行っていた為、処理効率が上下する欠
点があった。
tb+ Prior Art and Problems In the graphic display system, the following method is used to fill in the area of a certain figure. For example, in a Victomap display, the data in the display memory is read out while changing the address to the left or right from a certain position in the display memory where the figure data is stored, and the boundary of the figure (i.e. the outline of the figure) is searched for. A method is used in which the inside of the outline is filled in with a specified color or pattern.In this conventional method, the content of the display memory is read and determined, and then the data of the specified color or pattern is filled in. In order to prevent display flickering when writing data, it takes a lot of time to update the data in the display memory, and since the data update process is performed by software, the processing efficiency goes up and down. There was a drawback.

((:)発明の目的 本発明は上記の欠点ヲ解決することになされたもので図
形データの更新処理を容易とする図形処理方式の提供を
目的とする。
((:) OBJECT OF THE INVENTION The present invention has been made to solve the above-mentioned drawbacks, and it is an object of the present invention to provide a graphic processing method that facilitates the updating process of graphic data.

((リ 発明の構成 本発明は、図形の輪郭を構成する貿素データが格納され
た表示メモリと、表示部とを有し、表示メモリ内の要素
データにより表示部に図形を表示。
((I) Structure of the Invention The present invention includes a display memory in which trade element data constituting the outline of a figure is stored and a display section, and a figure is displayed on the display section based on the element data in the display memory.

するシステムにおいて、前記表示メモリからのデータを
判別する手段と、該判別結果に基き前記表示メモリのア
ドレス選択方向を変更する手段と、前記図形内を色表示
する色データと、前記図形内を模様表示する模様データ
とを備え、前86図形の輪郭内の表示色又は模様が指定
される共に、前記表示メモリの所定アドレスが指定され
た際、該所定アドレスの表示メモリ内のデータを読出し
、該データの値が「0」のときは、該データを前記所定
アドレスに書込んだのち該所定アドレスの次のアドレス
以降のデータの絖出しを続行し、前記所定アドレスのデ
ータの値が「0」で7ンいときは、該所定アドレスの表
示メモリに前記指定された表示色の色データ又は模様デ
ータを書込むと共lこ、前記表示メモリ内のアドレス選
択方向を反転せしめて該色データ又は模様データの書込
みを続行することを特徴とする図形処理方式である。以
上のように本発明は、表示メモリ内のデータを一定方向
lこ11次読出しながら判別し、読出されたデータが「
0」(すなわち無地)の場合は、そのデータを再び同じ
アドレスに書込み、「0」でない場合(すなわち図形の
輪郭ンの場合には、該アドレスに前記色データ又は模様
データを書込んだのち、表示メモリのアドレス選択方向
を逆転して、該色データ又は模様データの書込みを行う
ことにより、図形の輪郭内を指定された色又は模様で表
示し5るように図ったものである。
In the system, the system includes means for determining data from the display memory, means for changing the address selection direction of the display memory based on the determination result, color data for displaying the inside of the figure in color, and color data for displaying the inside of the figure in a pattern. When the display color or pattern within the outline of the previous 86 figures is designated and a predetermined address of the display memory is designated, the data in the display memory at the predetermined address is read out, When the value of the data is "0", the data is written to the predetermined address and then the data starting from the address next to the predetermined address is continued, and the value of the data at the predetermined address becomes "0". 7, the color data or pattern data of the designated display color is written to the display memory at the predetermined address, and the direction of address selection in the display memory is reversed to write the color data or pattern data to the display memory at the predetermined address. This is a graphic processing method characterized by continuing writing of pattern data. As described above, the present invention discriminates data while reading data in a display memory in a certain direction and 11 times, and the read data is
If it is "0" (that is, a plain color), write that data to the same address again, and if it is not "0" (that is, if it is an outline of a figure), write the color data or pattern data to that address, and then By reversing the address selection direction of the display memory and writing the color data or pattern data, the inside of the outline of the figure is displayed in a specified color or pattern.

(e) 発明の実施例 以下、本発明を図面によって説明する。第1図は本発明
の一実施例を説明するメモリ構成図、第2図は本発明の
一実施例を説明するブロック図である。第1図において
、表示メモリ1には、円形(circlりを表示する座
標データ(例えば信号「月92が1込まれている。この
円形の内部を所定の色や模様で塗りつぶして表示せしめ
るときは、次の制御な行う。才ず円形内の任意のメモリ
位置Aを定め、該メモリ位置Aから右方ヘアドレスを移
動させながらメモリ内のデータな読出し、これをチェッ
クする。円形内のデータは「0」であるが、メモリ位置
Bのデータを読出したときは、データはrlJであるか
ら、これが境界点を示すので、メモリ位[Bから左方へ
向けて、メモリ位ICの境界点まで、データrlJを書
込み、この操作を上下の両方に繰返すことにより、円形
内を、例えば白色で表示せしめることができる。
(e) Examples of the invention The present invention will be explained below with reference to the drawings. FIG. 1 is a memory configuration diagram illustrating an embodiment of the present invention, and FIG. 2 is a block diagram illustrating an embodiment of the present invention. In FIG. 1, the display memory 1 contains coordinate data for displaying a circle (for example, the signal ``Moon 92''. , perform the following control.Determine an arbitrary memory location A within the circle, read the data in the memory while moving the address to the right from the memory location A, and check this.The data within the circle is However, when the data in memory location B is read, the data is rlJ, which indicates the boundary point, so from memory location [B to the left, to the boundary point of memory location IC. , rlJ, and repeating this operation both upward and downward, the inside of the circle can be displayed in white, for example.

第2図は上記の制御を実現するブロック図であるが、カ
ラー表示の場合を例とし動作を説明する。
FIG. 2 is a block diagram for realizing the above control, and the operation will be explained using a color display as an example.

ン欠 従ってメモリ1′は3力元メモリであり、アドレス毎に
3ビツト(12g及びb〕の容量を有する。この3ビツ
トのメモリr9g及びb(図示していIJい)は、赤+
l(l 、 (Ql (緑)及びB(青うの色信号がそ
れぞれ格納されるが、例えばメモ+Jr+g及びbのす
べてに信号「1」が書込まれた場合には「11色のデー
タ、逆tこ信号「0」が書込まれていれは「黒」色のデ
ータとなる。また第2図におけるバタンメモリ3には、
色データP1〜P、及び模様データQ、〜Qnが格納さ
れている。第2図において、制御部4は、表示メモリ1
′のメモリ位置Aを指定するアドレスデータAD、また
該メモリ位置へから右方へのアドレス変更を指定する方
向データ几、そして模様指定データQ、’ (例えは縞
模様)を出力すると共に、読出命令RDを送出する。ア
ドレスデータADは、アドレスカウンタ(アップダウン
カウンタ)5にセットされるので、アドレス部6により
表示メモリ1′のメモリ位置へが選択される。
Therefore, memory 1' is a three-source memory and has a capacity of 3 bits (12g and b) for each address.This 3-bit memory r9g and b (not shown) is a red +
The color signals of l(l, (Ql (green) and B(blue) are stored respectively, but for example, if the signal "1" is written to all of Memo+Jr+g and b, "11 color data, If the inverted T signal "0" is written, the data will be "black".Furthermore, the button memory 3 in FIG.
Color data P1 to P and pattern data Q to Qn are stored. In FIG. 2, the control unit 4 controls the display memory 1.
Address data AD specifying the memory location A of ', direction data 几 specifying address change to the right from the memory location, and pattern designation data Q,' (for example, a striped pattern) are output and read. Send command RD. Since the address data AD is set in the address counter (up/down counter) 5, the address section 6 selects the memory location of the display memory 1'.

読出命令R1)により起動された読出部7−こより、メ
モリ位wLへのデータが続出され、レジスタ8にセット
される。このメモリ位[Aのメモリr2g及びbには信
号「0」が書込部れているので、レジスタ8(3ビツト
)のデータはrO,0,OJである。判別部9が、これ
を判別すると制御信号eが発せられ、ゲート部10が開
となり、レジスタ8内のデータは書込部11へ送られ、
表示メモリ1′のメモリ位置A(のメモリr、g及び6
月こ書込まれる。アドレス制御部12からのパルスP幻
こより、アドレスカウンタ5が1ステウプたけステップ
アップされ、メモリ位jf(Act)次の右隣りの位置
(すなわちr A−1−I Jのアドレス)が選択され
、そのメモリ内容が読出されて判別される。このような
読出会判別が繰返され、アドレスカウンタ5の値がメモ
リ位置Bを選択した場合、該位置BのメモIJ r 、
 g及びbには、すべて信号「、1」が書込まれている
ので、判別部9は制御信号fを発して制御回路13を起
動する。これによりバタンメモリ3からは、予め指定さ
れたバタンデータQ+(縞模様データJ 111書込部
11へ送出され、メモリ位置Bに該バタンデータQ1が
書込まれる。次に判別部9は、制御46号11をアドレ
ス制御部12へ送出する。アドレス制御部L2は、パル
スPLを発してアップダウンカウンタ521つカウント
ダウンさせる。従ってメモリ位置Bの左隣りの位置(す
なわちrB−IJのアドレス部が選択され、該位置に、
前記バタンデータQ、の書込みが行われる。
The reading unit 7 activated by the read command R1) sequentially outputs data to the memory location wL and is set in the register 8. Since the signal "0" is written in the memories r2g and b of memory location [A, the data in register 8 (3 bits) is rO, 0, OJ. When the determining section 9 determines this, a control signal e is issued, the gate section 10 is opened, and the data in the register 8 is sent to the writing section 11.
Memories r, g and 6 of memory location A of display memory 1'
Monthly written. In response to the pulse P from the address control unit 12, the address counter 5 is stepped up by one step, and the next right-hand position after the memory location jf (Act) (i.e., the address of rA-1-IJ) is selected. The memory contents are read and determined. When such reading encounter determination is repeated and the value of the address counter 5 selects memory location B, the memo IJ r at the location B is
Since the signal ", 1" is written in both g and b, the determination unit 9 issues the control signal f to start the control circuit 13. As a result, the baton memory 3 sends the prespecified baton data Q+ (striped pattern data J 111 to the writing section 11, and the baton data Q1 is written in the memory location B. Next, the discriminating section 9 No. 46 No. 11 is sent to the address control section 12.The address control section L2 issues a pulse PL to cause the up/down counter 52 to count down by one.Therefore, the address section to the left of memory location B (that is, the address section of rB-IJ is selected) and in that position,
Writing of the slam data Q is performed.

以上の書込動作が繰返され、メモリ位置Cまで続行され
、次にアドレス制御部12からの停止信号SP1こより
、書込部INこよる書込みが停止される。以上の制御動
作を上下方向に繰返すことにより、表示メモリ1′の円
形内部のデータ更新が可能となる。なお第2図では表示
部を省略しである。
The above write operation is repeated and continues up to the memory location C, and then the write by the write unit IN is stopped by the stop signal SP1 from the address control unit 12. By repeating the above control operation in the vertical direction, it becomes possible to update the data inside the circular shape of the display memory 1'. Note that the display section is omitted in FIG. 2.

Tfl 発明の効果 以上のように本発明は、図形の塗りつぶし処理における
表示メモリ内のデータ更新を、ハードウェアにより実現
しうるので、画像処理効率を向上し、5る利点を有する
Tfl Effects of the Invention As described above, the present invention can implement data updating in the display memory during figure filling processing using hardware, and thus improves image processing efficiency and has five advantages.

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

第1図は本発明の一実施例を説明するメモリ構成図、第
2図は本発明の一実施例を説明するブロック図であり、
図中に用いた符号は次の通りである。 1.1′は表示メモリ、2は円形表示用の座標データ、
3はバタンメモリ、4は制御部、5はアドレスカウンタ
(アップダウンカウンタハ6はアドレス部、7は読出部
、8はレジスタ、9は判別部、lOはゲート部、1.1
は書込部、12はアドレス制御部%l 3は制御回路、
A、B、L:はメモリ位置、ADはアドレス、b+g+
rはメモリ、” + f rhは制御信号、P、 、 
Pnは色バタンデータ、PL rPRはパルス、Ql、
勃は模様バタンデータQ/は模様指定データ、■は方向
(右方)データ、RDは読出命令、SPは停止信号を示
す。 ¥−1目
FIG. 1 is a memory configuration diagram illustrating an embodiment of the present invention, and FIG. 2 is a block diagram illustrating an embodiment of the present invention.
The symbols used in the figure are as follows. 1.1' is display memory, 2 is coordinate data for circular display,
3 is a button memory, 4 is a control section, 5 is an address counter (up/down counter, 6 is an address section, 7 is a reading section, 8 is a register, 9 is a discrimination section, IO is a gate section, 1.1
is a writing section, 12 is an address control section %l, 3 is a control circuit,
A, B, L: memory location, AD is address, b+g+
r is memory, " + f rh is control signal, P, ,
Pn is color button data, PL rPR is pulse, Ql,
Erection indicates pattern slam data Q/ indicates pattern designation data, ■ indicates direction (right) data, RD indicates read command, and SP indicates stop signal. ¥-1 item

Claims (1)

【特許請求の範囲】[Claims] 図形の輪郭を構成する要素データが格納された表示メモ
リと、表示部とを有(2、表示メモリ内の要素データI
こより表示部に図形を表示するシステムにおいて、前記
表示メモリからのデータを判別する手段と、該判別結果
に基き前記表示メモリのアドレス選択方向を変更する手
段と、前記図形内を色表示する色データと、前記図形内
を模様表示する模様データとを備え、前記図形の輪郭内
の表示色又は模様が指定されると共に、前記表示メモリ
の所定アドレスが指定された際、該所定アドレスに対応
した表示メモリ内のデータを読出し、該データの値が「
0」のときは、該データを前記所定アドレスに書込んだ
のち次のアドレス以降のデータの続出し続行1、前記所
定アドレスのデータの値が「0」でないときは、該所定
アドレスの表示メモリに前記指定された表示色の色デー
タ又は模様データを書込むと共に、前記表示メモリ内の
アドレス選択方向を反転せしめて該色データ又は模様デ
ータの書込みを続行することを特徴とする図形処理方式
It has a display memory in which element data constituting the outline of a figure is stored, and a display section (2. Element data I in the display memory).
In a system for displaying figures on a display section, the system includes means for determining data from the display memory, means for changing the address selection direction of the display memory based on the determination result, and color data for displaying the inside of the figure in color. and pattern data for displaying a pattern inside the figure, and when a display color or pattern within the outline of the figure is specified and a predetermined address of the display memory is specified, a display corresponding to the predetermined address is provided. Read the data in memory, and the value of the data is “
0", the data is written to the predetermined address and then the data continues to be written from the next address onwards. 1. If the value of the data at the predetermined address is not "0", the display memory of the predetermined address is written. A graphic processing method characterized in that color data or pattern data of the designated display color is written into the display memory, and the address selection direction in the display memory is reversed to continue writing the color data or pattern data.
JP58216586A 1983-11-17 1983-11-17 Pattern processing system Pending JPS60108974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58216586A JPS60108974A (en) 1983-11-17 1983-11-17 Pattern processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58216586A JPS60108974A (en) 1983-11-17 1983-11-17 Pattern processing system

Publications (1)

Publication Number Publication Date
JPS60108974A true JPS60108974A (en) 1985-06-14

Family

ID=16690736

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58216586A Pending JPS60108974A (en) 1983-11-17 1983-11-17 Pattern processing system

Country Status (1)

Country Link
JP (1) JPS60108974A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02503238A (en) * 1986-07-18 1990-10-04 アミガ デベロップメント リミテッド ライアビリティ カンパニー personal computer equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02503238A (en) * 1986-07-18 1990-10-04 アミガ デベロップメント リミテッド ライアビリティ カンパニー personal computer equipment

Similar Documents

Publication Publication Date Title
EP0261463B1 (en) Display control apparatus
JP2002544544A (en) Description of translucent layer
JPH07120149B2 (en) Generation of window boundaries for bitmap graphics workstations
US5185859A (en) Graphics processor, a graphics computer system, and a process of masking selected bits
JPS60108974A (en) Pattern processing system
JPH0713788B2 (en) Image display device
US5772297A (en) 3D graphics library
JPH02123422A (en) Computer output apparatus
JPS6267632A (en) Method and apparatus for transferring data to display unit from memory
US4988985A (en) Method and apparatus for a self-clearing copy mode in a frame-buffer memory
JP2856243B2 (en) Checkered pattern automatic creation apparatus and method
JPH10510634A (en) Circuit, system and method for controlling display of a block of data on a display screen
JPS60173588A (en) Multiwindow display processing system
JPS61290486A (en) Display controller
JP4974127B2 (en) Semiconductor memory device and information processing method
KR0145709B1 (en) Computer graphic system
JP2802995B2 (en) Plasma display
JPH0758511B2 (en) Z sorting device
JPH0237073Y2 (en)
JPS60214387A (en) Screen management system of scrol image
JPS6117187A (en) Window frame display circuit
JPS6068471A (en) Video display device
JPS6123196A (en) Screen image display unit
JPS59184393A (en) Cursor display unit
JPS58102982A (en) Image display unit