JPH03189875A - Plotting control method - Google Patents

Plotting control method

Info

Publication number
JPH03189875A
JPH03189875A JP32840989A JP32840989A JPH03189875A JP H03189875 A JPH03189875 A JP H03189875A JP 32840989 A JP32840989 A JP 32840989A JP 32840989 A JP32840989 A JP 32840989A JP H03189875 A JPH03189875 A JP H03189875A
Authority
JP
Japan
Prior art keywords
color
repainting
colors
repainted
prohibited
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
JP32840989A
Other languages
Japanese (ja)
Inventor
Tomoya Ogawa
知也 小川
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 JP32840989A priority Critical patent/JPH03189875A/en
Publication of JPH03189875A publication Critical patent/JPH03189875A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概   要〕 グラフィックエディタなどにおける描画制御方法に関し
、 画面上に既に描かれている複数の色の中の特定の色を、
指定した色で選択的に描画できるようにすることを目的
とし、 指定した色で画像を描画する際に、画面上に既に描かれ
ている複数の色に対し、指定した色への塗り替えを許可
する塗り替え許可色と、指定した色への塗り替えを禁止
する塗り替え禁止色との少なくとも一方を設定し、特定
の色を選択的に塗り替えるように構成する。
[Detailed Description of the Invention] [Summary] Regarding a drawing control method in a graphic editor etc., a specific color among a plurality of colors already drawn on the screen is
The purpose is to allow selective drawing with a specified color. When drawing an image with a specified color, it allows multiple colors already drawn on the screen to be repainted with the specified color. At least one of a repainting permitted color and a repainting prohibited color that prohibits repainting to a specified color is set, and a specific color is selectively repainted.

(産業上の利用分野] 本発明は、グラフィックエディタなどにおける描画制御
方法に関する。
(Industrial Application Field) The present invention relates to a drawing control method in a graphic editor or the like.

〔従来の技術〕[Conventional technology]

従来、画像を指定された色で描画する描画制御方法とし
て、画面上に既に描かれている色に無関係に、新たに指
定された色で描画を行う方法などが知られている。
2. Description of the Related Art Conventionally, as a drawing control method for drawing an image in a specified color, a method is known in which drawing is performed in a newly specified color, regardless of the color already drawn on the screen.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上記の描画制御方法では、既に描かれて
いる色の中で特定の色をそのまま残して、他の色を指定
した色に変更したり、あるいは特定の領域の特定の色だ
けを指定した色に変更することはできなかった。
However, with the above drawing control method, it is possible to leave a specific color among the colors that have already been drawn as is and change other colors to the specified color, or to specify only a specific color in a specific area. It was not possible to change the color.

例えば、木の幹と枝を茶で描いて、次にその木の周りに
緑色の葉を描こうとして、木の幹、枝を含む領域の色と
して緑を指定すると、幹と枝の茶の部分も緑に塗り替え
られてしまい、木の幹と技の部分が消えてしまうことに
なる。
For example, if you draw the trunk and branches of a tree in brown, and then try to draw green leaves around the tree, and you specify green as the color for the area containing the tree trunk and branches, the brown color of the trunk and branches will change. Parts of it will also be repainted green, and the tree trunk and technique parts will disappear.

そこで、特定の色の領域を残すときには、色を変更した
い部分の画素だけを1ドツトづづ指定して色指定を行う
などの作業が必要となり、描画作業が煩雑になるという
問題点があった。
Therefore, when leaving an area of a specific color, it is necessary to designate only the pixels of the part whose color you want to change one by one to specify the color, which makes the drawing work complicated.

本発明は、画面上に既に描かれている複数の色の中の特
定の色を、指定した色で選択的に描画できるようにする
ことを目的とする。
An object of the present invention is to enable a user to selectively draw a specific color among a plurality of colors already drawn on a screen using a designated color.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の描画制御方法では、画面上に既に描かれいる複
数の色に対し、新たに指定される色への塗り替えを許可
する塗り替え許可色と、塗り替えを禁止する塗り替え禁
止色との少なくとも一方を設定することができる。
In the drawing control method of the present invention, at least one of a repainting permission color that allows repainting to a newly specified color and a repainting prohibited color that prohibits repainting of a plurality of colors already drawn on the screen is selected. Can be set.

〔作   用〕[For production]

画面上に描かれている特定の色が塗り替え許可色として
設定されている場合には、塗り替え許可色として設定さ
れた色だけが、指定された色に塗り替えられる。
If a specific color drawn on the screen is set as a color that is allowed to be repainted, only the color that is set as a color that is allowed to be repainted is repainted to the specified color.

また、特定の色が塗り替え禁止色として設定されている
場合には、既に描かれている色の中で塗り替え禁止色原
外の色が、指定された色に塗り替えられる。
Furthermore, if a specific color is set as a color that is prohibited from being repainted, the color that is already drawn and is outside the color primary that is prohibited from being repainted is repainted to the specified color.

従って、特定の色、あるいは特定の包収外の色の領域だ
けを選択的に描画することができるので、既に描かれて
いる色を消さないように注意して描画するなどの必要が
なくなり、描画作業をより効率良く行うことができる。
Therefore, since it is possible to selectively draw only a specific color or a specific color area outside the range, there is no need to draw carefully so as not to erase the already drawn color. Drawing work can be performed more efficiently.

〔実  施  例〕〔Example〕

以下、本発明の実施例を図面を参照しながら説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明の描画制御方法に基づいて描画を行う
描画装置の構成図である。
FIG. 1 is a configuration diagram of a drawing apparatus that performs drawing based on the drawing control method of the present invention.

同図において、マウスlは図形及び色等の入力を行う入
力装置であり、マウス1が操作されるとシステムRAM
上の描画モジュール2、制御モジュール3が起動する。
In the figure, a mouse 1 is an input device for inputting figures, colors, etc., and when the mouse 1 is operated, the system RAM is
The drawing module 2 and control module 3 above start up.

描画モジュール2は、指定された領域を指定された色で
描画し描画パターンを作成す名。こめ描画モジュール2
により作成される描画バクーンは、描画パターン記憶部
4に記憶される。
The drawing module 2 draws a specified area in a specified color to create a drawing pattern. Kome drawing module 2
The drawing pattern created by is stored in the drawing pattern storage section 4.

また、色指定に先立って、画面上に既に描かれている複
数の色の中から塗り替え許可色と塗り替え禁止色とが設
定され、それらの色が塗り替え許可色記憶部6及び塗り
替え禁止色記憶部7にそれぞれ記憶される。
Furthermore, prior to specifying a color, a repainting permitted color and a repainting prohibited color are set from among a plurality of colors already drawn on the screen, and these colors are stored in the repainting permitted color storage section 6 and the repainting prohibited color storage section. 7 respectively.

塗り替え許可色として設定された色は、上述した描画モ
ジュール2により、指定された色への塗り替えが行われ
、塗り替え禁止色として設定された色は塗り替えが行わ
れずそのまま描画パターン記憶部4に保存される。
Colors set as repaint-permitted colors are repainted to the designated colors by the above-mentioned drawing module 2, while colors set as repaint-prohibited colors are not repainted and are stored as they are in the drawing pattern storage unit 4. Ru.

制御モジュール3は、描画モジュール2により作成され
る描画パターンから表示用ドツトパターンデータを作成
するモジュールである。この制御モジュール3により作
成される表示用データは、図示しないV−RAMに書き
込まれた後、CRTなどからなるデイスプレィ5に出力
される。
The control module 3 is a module that creates display dot pattern data from the drawing pattern created by the drawing module 2. The display data created by the control module 3 is written to a V-RAM (not shown) and then output to a display 5 such as a CRT.

次に本発明の描画制御方法に基づく描画処理について、
第2図のフローチャートを参照して説明する。
Next, regarding the drawing process based on the drawing control method of the present invention,
This will be explained with reference to the flowchart in FIG.

先ず、第2図のステップSlにおいて、マウスIの操作
の有無が検出され、デイスプレィ5上に表示されている
画像に対し、何らかの入力操作が行なわれたか否かが判
断される。
First, in step Sl in FIG. 2, the presence or absence of an operation on the mouse I is detected, and it is determined whether any input operation has been performed on the image displayed on the display 5.

マウス1が操作されたときには、次のステップS2にお
いて、マウス1により入力された描画パターンの軌跡又
は色等の情報が読み取られる。
When the mouse 1 is operated, information such as the locus or color of the drawing pattern inputted by the mouse 1 is read in the next step S2.

そして、次のステップS3において、これらの情報から
描画パターンの更新が行われる。
Then, in the next step S3, the drawing pattern is updated based on this information.

ここで、描画パターンの更新処理の内容を第3図のフロ
ーチャートを参照して詳しく説明する。
Here, the contents of the drawing pattern update process will be explained in detail with reference to the flowchart of FIG.

マウス1により入力が行われると、描画モジュール2が
起動して、先ず、塗り替え許可色が設定されているか否
かを判別する(第3図、ステップS5)。
When an input is made using the mouse 1, the drawing module 2 is activated and first determines whether or not a repainting permission color is set (FIG. 3, step S5).

塗り替え許可色が設定されている場合には、次のステッ
プS6において、塗り替え許可色として設定されている
色を新たに指定された色に塗り替える。そして、塗り替
えを行った描画パターンを、前述した描画パターン記憶
部4に格納する。
If the repainting permitted color is set, in the next step S6, the color set as the repainting permitted color is repainted with a newly designated color. Then, the repainted drawing pattern is stored in the drawing pattern storage section 4 described above.

このとき、例えば塗り替えが指定された領域内の色であ
っても、塗り替え許可色として設定されていない色につ
いては塗り替えは行われず、それらの色はそのまま描画
パターン記憶部4に保存される。
At this time, for example, even if the colors are in the area designated to be repainted, colors that are not set as repaint-permitted colors are not repainted, and those colors are stored as they are in the drawing pattern storage unit 4.

このように、色指定を行う際にその指定した色への塗り
替えを許可する塗り替え許可色を設定することにより、
複数の色のなかで特定の色だけを選択的に塗り替えるこ
とができる。
In this way, by setting a repaint permission color that allows repainting to the specified color when specifying a color,
You can selectively repaint only a specific color among multiple colors.

一方、ステップS5の判別において塗り替え許可色が設
定されていないときには、ステップS7に進み塗り替え
禁止色が設定されているか否を判別する。
On the other hand, if it is determined in step S5 that no repainting permitted color has been set, the process advances to step S7 and it is determined whether or not a repainting prohibited color has been set.

塗り替え禁止色が設定されている場合には、ステップS
8に進み、塗り替え禁止色以外の色を、今回指定された
色に塗り替える。そして、塗り替の行われた描画パター
ンは、前述した描画パターン記憶部4に記憶される。
If a color that is prohibited from being repainted is set, step S
Proceed to step 8 and repaint the colors other than the prohibited colors to the currently specified color. The repainted drawing pattern is then stored in the drawing pattern storage section 4 described above.

このように、色指定を行う際に、塗り替え禁止色を設定
することにより、特定の色の領域を消さずにそのまま残
すことができる。
In this way, when specifying a color, by setting a color that is prohibited from being repainted, it is possible to leave an area of a specific color as it is without erasing it.

また、塗り替え許可色、禁止色のいずれも設定されてい
ない場合には、ステップS9に進み色の塗り替えは行わ
ない。
Further, if neither the repainting permitted color nor the prohibited color is set, the process advances to step S9 and no color repainting is performed.

このようにして描画モジュール2による描画パターンの
更新が終了すると、次に制御モジュール3が起動して、
第1図のステップS4の表示更新処理を実行する。
When the drawing module 2 finishes updating the drawing pattern in this way, the control module 3 starts up and
The display update process of step S4 in FIG. 1 is executed.

この表示更新処理では、描画モジュール2により、今回
指定された色に塗り替えられた描画パターンから、それ
らの描画パターンに対応した表示用ドツトパターンデー
タを作成し、それらの表示ドツトパターンデータを前述
したV−RAMに書き込む。そして、そのV−RAM上
のデータがデイスプレィ5に表示され、指定された色で
の描画が行われる。
In this display update process, the drawing module 2 creates display dot pattern data corresponding to the drawing patterns repainted in the currently specified color, and converts these display dot pattern data into the V -Write to RAM. Then, the data on the V-RAM is displayed on the display 5, and drawing is performed in the specified color.

次に、第4図を参照して本発明の描画制御方法による描
画の一例を説明する。
Next, an example of drawing by the drawing control method of the present invention will be explained with reference to FIG.

第4図は、木の周りに緑の葉の領域を描く場合の説明図
である。
FIG. 4 is an explanatory diagram when drawing a green leaf area around a tree.

以下、背景色として青、木の幹及び技の色として茶が描
かれいるときに、木の幹及び枝の色を残して斜線で示す
領域を緑で描画する場合について説明する。
In the following, when blue is drawn as the background color and brown is drawn as the color of the tree trunk and techniques, a case will be described in which the shaded area is drawn in green, leaving the colors of the tree trunk and branches intact.

この場合、塗り替え許可色及び禁止色の設定は次のよう
になる。
In this case, the settings for the repainting permitted color and prohibited color are as follows.

塗り替え許可色として青を設定し、塗り替え禁止色とし
て何も設定しない場合、又は塗り替え許可色に何も設定
せず、塗り替え禁止色に茶を設定する場合である。
This is a case where blue is set as the repainting permitted color and nothing is set as the repainting prohibited color, or a case where nothing is set as the repainting permitted color and brown is set as the repainting prohibited color.

前者の場合には、そのときデイスプレィ5上に表示され
ている表示色の読み取り結果として、背景色の青と、木
の幹及び枝の茶が読み取られ、その内塗り替え許可色の
青が緑に塗り替えられる。
In the former case, as a result of reading the display colors displayed on the display 5 at that time, the background color blue and the brown of the trunk and branches of the tree are read, and among these, the repainting permission color blue is changed to green. Can be repainted.

このとき、木の幹と枝に相当する茶の部分は、塗り替え
許可色として設定されていないのでそのまま残される。
At this time, the brown parts corresponding to the trunk and branches of the tree are left as they are because they are not set as a color that is permitted to be repainted.

後者の場合も同様に、背景色の青が緑に塗り替えられ、
塗り替え禁止色に設定されている木の茶の部分はそのま
ま残される。
Similarly, in the latter case, the background color blue is replaced with green,
The brown part of the tree, which is set as a color that cannot be repainted, will be left as is.

これにより、指定した領域内の特定の色を残して塗り替
えを行うことができる。
This allows you to repaint while leaving a specific color within the specified area.

次に、上述したようにして斜線で示した領域を緑に塗り
替えた後、木の幹、技を含むさらに広い領域、あるいは
特に領域指定を行わず、緑を指定して描画を行う場合に
ついて説明する。
Next, after repainting the shaded area green as described above, we will explain how to draw a wider area including tree trunks and techniques, or specify green without specifying any area. do.

例えば、塗り替え許可色として青、あるいは青と緑を設
定し、塗り替え禁止色として何も設定しない場合には、
そのときデイスプレィ5上に表示されている青、茶、緑
がそれぞれ読み取られ、その内塗り替え許可色として設
定されている青の部分、あるいは青と緑の部分が緑に塗
り替えられる。
For example, if you set blue, or blue and green, as the color that allows repainting, but do not set anything as the color that prohibits repainting,
At this time, the blue, brown, and green colors displayed on the display 5 are read, and the blue portion or the blue and green portions that are set as repaint-permitted colors are repainted with green.

このように塗り替え許可色として複数の色を設定するこ
とができるので、デイスプレィ5上に多数の色が表示さ
れている場合にも、それらの色の中から特定の複数の色
を選択し、指定した色に塗り替えることができる。
In this way, multiple colors can be set as repaint permission colors, so even when many colors are displayed on the display 5, you can select and specify multiple colors from among them. You can repaint it to a different color.

また、この場合塗り替え許可色として設定されていない
色は塗り替えが行われないので、木の幹、枝に相当する
茶の部分を消さずにそのまま残すことができる。
Further, in this case, since colors that are not set as repaint-permitted colors are not repainted, the brown parts corresponding to the trunk and branches of the tree can be left as they are without being erased.

他方、塗り替え許可色として何も設定せず、塗り替え禁
止色として茶を設定した場合には、同様に先ず、デイス
プレィ5上に表示されている青、緑、茶がそれぞれ読み
取られる。そして、塗り替え禁止色に設定されている茶
以外の部分が全て緑に塗り替えられる。
On the other hand, if nothing is set as the repainting permitted color and brown is set as the repainting prohibited color, blue, green, and brown displayed on the display 5 are similarly read respectively. Then, all parts other than brown, which are set as prohibited colors, are repainted to green.

このように特定の色を塗り替え禁止色として設定するこ
とにより、その色を消さずに他の色の領域を、新たに指
定した色で塗り替えることができる。この塗り替え禁止
色も複数色設定することができる。
By setting a specific color as a color that is prohibited from being repainted in this way, it is possible to repaint an area of another color with a newly designated color without erasing that color. A plurality of colors can also be set for this repainting prohibited color.

以上述べたように、上記実施例によればデイスプレィ5
上に表示されている色の内、特定の色を選択してそれら
の色の領域を指定した色で描画することも、あるいは特
定の色の領域を残し、他の色の領域を指定した色で描画
することもできる。
As described above, according to the above embodiment, the display 5
You can select specific colors from the colors shown above and draw areas of those colors with the specified color, or leave areas of a specific color and draw areas of other colors with the specified color. You can also draw with .

従って、新たに指定した色で描画する場合に、デイスプ
レィ5上に表示されている色を消さないように注意して
描画するなどの必要がなくなり、描画作業をより効率良
く行うことができる。
Therefore, when drawing in a newly specified color, there is no need to draw with care so as not to erase the color displayed on the display 5, and the drawing work can be performed more efficiently.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、画面上に描かれている特定の色を消さ
ずに、それ以外の色を新たに指定した色に塗り替えるこ
とができるので、より効率良くグラフィックデータ等を
作成することができる。
According to the present invention, it is possible to repaint other colors with newly specified colors without erasing a specific color drawn on the screen, so graphic data etc. can be created more efficiently. .

【図面の簡単な説明】 第1図は、本発明の一実施例に係る描画装置の構成図、 第2図は、実施例の描画処理内容を説明するフローチャ
ート、 第3図は、第2図の描画パターン更新処理のフローチャ
ート、 第4図は、描画される図形の一例を示す図である。 2・・・描画モジュール、 6・・・塗り替え許可色記憶部、 7・・・塗り替え禁止色記憶部。
[Brief Description of the Drawings] Fig. 1 is a configuration diagram of a drawing device according to an embodiment of the present invention, Fig. 2 is a flowchart explaining the drawing processing contents of the embodiment, and Fig. 3 is a diagram showing the structure of a drawing device according to an embodiment of the present invention. FIG. 4 is a diagram showing an example of a graphic to be drawn. 2... Drawing module, 6... Repainting permission color storage section, 7... Repainting prohibition color storage section.

Claims (1)

【特許請求の範囲】[Claims] 指定した色で画像を描画する際に、画面上に既に描かれ
ている複数の色に対し、指定した色への塗り替えを許可
する塗り替え許可色(6)と、指定した色への塗り替え
を禁止する塗り替え禁止色(7)との少なくとも一方を
設定し、特定の色を選択的に塗り替えることを特徴とす
る描画制御方法。
When drawing an image with a specified color, repaint permission color (6) allows repainting to the specified color for multiple colors already drawn on the screen, and prohibits repainting to the specified color. A drawing control method characterized by setting at least one of a repainting prohibited color (7) and selectively repainting a specific color.
JP32840989A 1989-12-20 1989-12-20 Plotting control method Pending JPH03189875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32840989A JPH03189875A (en) 1989-12-20 1989-12-20 Plotting control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32840989A JPH03189875A (en) 1989-12-20 1989-12-20 Plotting control method

Publications (1)

Publication Number Publication Date
JPH03189875A true JPH03189875A (en) 1991-08-19

Family

ID=18209938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32840989A Pending JPH03189875A (en) 1989-12-20 1989-12-20 Plotting control method

Country Status (1)

Country Link
JP (1) JPH03189875A (en)

Similar Documents

Publication Publication Date Title
JPH03250374A (en) Method and device for editing graphic
US6339439B1 (en) Device for modifying appearance of related display planes
JPH02240782A (en) Graphic processor
JPH03189875A (en) Plotting control method
JPH03179873A (en) Picture processing method
JPH09134422A (en) Continuous coloring method for animation and device therefor
US7027069B2 (en) Program for automatic picture formation and storage medium storing the program
JPH08202856A (en) Image processing method
JP3138430B2 (en) User interface screen creation support device
JP2723109B2 (en) Image processing method
JP2932990B2 (en) LSI layout data drawing device
JPH08314429A (en) Translucent color image generator
JPH06161728A (en) Flowchart creation system
JPS60173588A (en) Multi-window display processing method
JP3507182B2 (en) Figure editing apparatus and figure editing method
JPS60181977A (en) Line drawing processing system
JPS60169895A (en) Generation of extra character
JPH0217574A (en) Interactive graphic processing system
JPS60198686A (en) Electronic picture synthesizer
JPS62229365A (en) Document preparing and editing device
JPS60252390A (en) Screen management control system
JPH0756557A (en) Image composition method
JP2001282223A (en) Method and device for graphic display
JPH03198164A (en) Objective element designating system in interactive graphic processing
JPH0520018A (en) Field attribute display processor