JPH0728857A - Method and device for processing picture - Google Patents

Method and device for processing picture

Info

Publication number
JPH0728857A
JPH0728857A JP5154961A JP15496193A JPH0728857A JP H0728857 A JPH0728857 A JP H0728857A JP 5154961 A JP5154961 A JP 5154961A JP 15496193 A JP15496193 A JP 15496193A JP H0728857 A JPH0728857 A JP H0728857A
Authority
JP
Japan
Prior art keywords
circle
color
overlapping
information
work screen
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
JP5154961A
Other languages
Japanese (ja)
Inventor
Kazuyuki Nakazato
一行 中里
Fumihiko Takahashi
文彦 高橋
Yukifumi Hanada
幸史 花田
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.)
Toyo Ink Mfg Co Ltd
Original Assignee
Toyo Ink Mfg Co 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 Toyo Ink Mfg Co Ltd filed Critical Toyo Ink Mfg Co Ltd
Priority to JP5154961A priority Critical patent/JPH0728857A/en
Publication of JPH0728857A publication Critical patent/JPH0728857A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate overlapping parts by imparting double attributes by attributes imparted to one of overlapping graphics and the different attributes to the other graphic when the graphics are formed by line information and at least one part of the graphics is overlapped. CONSTITUTION:A circle 1 is displayed on a work screen 63 when the circle 1 is plotted, then, the circle 2 is displayed on the work screen 63 when the circle 2 is plotted and the information of the circle 1 is copied in the hierarchy of a color #1 when the color #1 is set to the circle 1 on the work screen. The arrow of the work screen indicates that an operator specifies the circle 1. Then, when the color #2 is set to the circle 2, the information of the circle 2 is copied in the hierarchy of the color #2. Then, when the color $1 is set to the circle 2, the information of the circle 2 is copied in the hierarchy of the color #1. Then, when coloring is performed for the respective hierarchies, a colored common part is eliminated. That is, data can be outputted without overlapping the colored parts.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、線情報により図形を形
成し、線情報を色付け出力を行う装置、例えば、CAD
において、図形内に複数の図形が存在する場合、線情報
に基づく図形の属性を2重化することにより、共通に属
する部分を無くすことができる画像処理方法および装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for forming a figure by line information and coloring and outputting the line information, for example, CAD.
In the above, the present invention relates to an image processing method and apparatus which can eliminate a common part by duplicating the attribute of a figure based on line information when a plurality of figures exist in the figure.

【0002】[0002]

【従来の技術】従来、例えば、CADにおいて、色付け
出力するため、第1図(A)の様に円1の内部に円2が
存在する図形を描画した場合、円2は、円1と円2の共
通する部分になる。ここで、円1と円2に第1図(B)
の示す色付けをしたとすると、第1図(C)に示す様に
円2の部分で2色が重なってしまう。2色が重なること
により、出力装置によっては重なった部分の色が暗くな
ったり、色が不鮮明になるなどの問題が生ずる。
2. Description of the Related Art Conventionally, for example, in CAD, when a figure having a circle 2 inside a circle 1 is drawn as shown in FIG. It becomes a common part of 2. Here, circle 1 and circle 2 are shown in FIG. 1 (B).
If the coloring is done, the two colors will overlap at the circle 2 as shown in FIG. 1 (C). Due to the overlapping of the two colors, problems such as darkening of the overlapped portion and unclear colors may occur depending on the output device.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術では、例
えばCADにおいて、図形に色を指定すると、その内側
に色付けが行われるため、図1に示す様に、円2の内側
が、2色が重なってしまう。ここで、円2の内側が重な
らないようにするには、図2の様に、円2と同じ図形の
円3を描画し、円3に色#1(属性の一つ)を指定す
る。こうすると、円1と円3で閉領域が形成され、その
中が色付けされるためである。つまり、円1に色#1
が、円2に対して色#2が付与されると、両方の色#1
および色#2が内側の円2内では重ねて色付けされてし
まうが、色#1と色#2とが、円2に対して付与される
と、円1と円2との間のみが円1に対して色付けされ、
円2で囲まれた領域には色#2が色付けされる。
In the above-mentioned prior art, for example, in CAD, when a color is designated for a figure, the inside is colored. Therefore, as shown in FIG. It will overlap. Here, in order to prevent the inside of the circle 2 from overlapping, as shown in FIG. 2, a circle 3 having the same shape as the circle 2 is drawn, and a color # 1 (one of the attributes) is designated for the circle 3. This is because the closed area is formed by the circles 1 and 3 and the inside is colored. That is, circle # 1 has color # 1
However, if color # 2 is added to circle 2, both colors # 1
And the color # 2 is colored in an overlapping manner in the inner circle 2, but when the color # 1 and the color # 2 are added to the circle 2, only the circle between the circle 1 and the circle 2 is circled. Colored for 1,
The area surrounded by the circle 2 is colored with the color # 2.

【0004】あるいは、円3に対し、透明色(色#の指
定をしない)設定を行い円3(円2)の中の色#1を削
除する。しかし、これらの作業では、作業画面上、同じ
図形が2個できてしまうことと、描画作業が増え効率を
落とすという欠点がある。
Alternatively, the transparent color (without specifying the color #) is set for the circle 3, and the color # 1 in the circle 3 (circle 2) is deleted. However, these operations have the drawbacks that two identical figures are created on the work screen and that the drawing work increases and the efficiency decreases.

【0005】[0005]

【課題を解決するための手段】上記欠点を踏まえて本発
明では、図3に示す様に、色ごとに階層を形成し、指定
された色の階層にその線情報をコピーすることと、1本
の線情報に対し、2種類の属性(色)を指定(2重化)
することにより、つまり、重複している図形、通常内側
の図形に対して2重の属性を付与することにより、属性
ごとに閉領域化を行い、共通部分を無くし、色付けが重
なり合わない様にすることができる画像処理方法および
装置に提供する。
In view of the above-mentioned drawbacks, in the present invention, as shown in FIG. 3, a layer is formed for each color and the line information is copied to the layer of the designated color. Specify two types of attributes (colors) for the line information of the book (duplication)
By doing so, that is, by giving double attributes to overlapping figures and usually inside figures, closed areas are created for each attribute, common parts are eliminated, and coloring is prevented from overlapping. The present invention provides an image processing method and device capable of performing the image processing.

【0006】[0006]

【実施例】実施例は、CADにおいて色付け出力をする
場合について説明している。図4は、第1図で示した図
形に対し、内側の円2を2重化した場合を示す。図4
(A)は、円1と円2を描画したことを示す。図4
(B)は、円1に色#1、円2に色#1と#2の属性を
指定したため、色#1の階層に円1と円2がコピーされ
たことを示す。図4(C)は、階層ごとに塗りつぶしが
行われたイメージを示す。図4(D)は、色付けされた
情報を、色付け出力した状態を示す。
EXAMPLE The example describes the case of performing coloring output in CAD. FIG. 4 shows a case where the inner circle 2 is duplicated with respect to the figure shown in FIG. Figure 4
(A) shows that circle 1 and circle 2 are drawn. Figure 4
(B) shows that circle 1 and circle 2 are copied to the hierarchy of color # 1 because the attributes of color # 1 are designated for circle 1 and the colors # 1 and # 2 are designated for circle 2. FIG. 4C shows an image in which painting is performed for each layer. FIG. 4D shows a state in which the colored information is colored and output.

【0007】図5は、本発明を実施するための装置構成
図の例である。図中51は、中央処理装置・記憶装置、
52は図形を表示する画像表示装置、53は、データを
入力、あるいは、作業を指示するための入力装置、54
は、データを作成するオペレーターを示している。図6
は、本実施例の実際の操作61と処理62、そして、作
業画面63、色#1の階層64、色#2の階層65を示
した図である。作業画面63は、図5の図中の画像表示
装置52にあたり、色#1の階層64と色#2の階層6
5は、記憶装置51に作成される仮想領域である。
FIG. 5 is an example of a device configuration diagram for carrying out the present invention. In the figure, 51 is a central processing unit / storage device,
Reference numeral 52 is an image display device for displaying graphics, 53 is an input device for inputting data or instructing work, 54
Indicates the operator who creates the data. Figure 6
FIG. 6 is a diagram showing an actual operation 61 and a process 62 of this embodiment, a work screen 63, a layer 64 of color # 1 and a layer 65 of color # 2. The work screen 63 corresponds to the image display device 52 in the drawing of FIG. 5, and is the layer 64 of color # 1 and the layer 6 of color # 2.
Reference numeral 5 is a virtual area created in the storage device 51.

【0008】円1を描画すると、作業画面63に円1が
表示される。次に、円2を描画すると、作業画面63に
円2が表示される。そして、入力装置53から、作業画
面上の円1に色#1を設定すると、円1の情報が色#1
の階層にコピーされる。作業画面の矢印↑はオペレータ
ー54が円1を指定していることを示している。次に、
円2に対して、色#2に設定すると、色#2の階層に円
2の情報がコピーされる。そして、円2に色#1を設定
すると、色#1の階層に円2の情報がコピーされる。そ
して、階層ごとに色付けを行うと、色付けされた共通部
分は無くなる。つまり、色付けされた部分が重なること
がなく、データを出力することができる。
When the circle 1 is drawn, the circle 1 is displayed on the work screen 63. Next, when the circle 2 is drawn, the circle 2 is displayed on the work screen 63. When the color # 1 is set to the circle 1 on the work screen from the input device 53, the information of the circle 1 is changed to the color # 1.
Is copied to the hierarchy. The arrow ↑ on the work screen indicates that the operator 54 designates the circle 1. next,
When the color # 2 is set for the circle 2, the information of the circle 2 is copied to the hierarchy of the color # 2. When the color # 1 is set on the circle 2, the information on the circle 2 is copied to the layer of the color # 1. When the coloring is performed for each layer, the colored common part disappears. That is, the data can be output without overlapping the colored portions.

【0009】また、本発明は、円について説明したが、
四角、楕円、または直線、BZ曲線など線情報で表現で
きる図形に関して処理できることは勿論である。また、
階層に関しては、色付けだけの属性ではなく、ハッチン
グ・種別などを設定することも可能であり、その種類
(数)に制限がないことは勿論である。さらに、図面で
は図形として大きい図形に包含される小さい図形による
重複図形で例示しているが、一部重複している図形であ
ってもよい。
Although the present invention has been described with respect to a circle,
Of course, it is possible to process a figure that can be represented by line information such as a square, an ellipse, a straight line, and a BZ curve. Also,
Regarding the hierarchy, it is possible to set not only attributes for coloring but also hatching, types, etc., and it goes without saying that the types (number) are not limited. Further, in the drawings, the figure is illustrated as an overlapping figure by a small figure included in a large figure, but it may be a figure that partially overlaps.

【0010】[0010]

【発明の効果】線情報により形成された図形であって、
少なくとも一部の図形が重複する場合、例えば図形の内
部に図形が存在する場合において、簡単な操作で共通に
属する部分を独立させることができる。また、独立させ
たことにより、各部分に属性を設定できるという効果が
ある。
EFFECTS OF THE INVENTION A figure formed by line information,
When at least some of the graphics overlap, for example, when the graphics exist inside the graphics, it is possible to make the commonly belonging parts independent by a simple operation. Also, by making them independent, there is an effect that attributes can be set for each part.

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

【図1】、[Figure 1]

【図2】は、従来技術による出力例を示す平面図であ
り、
FIG. 2 is a plan view showing an output example according to a conventional technique,

【図3】は、階層構造の表示例を示す正面図であり、FIG. 3 is a front view showing a display example of a hierarchical structure,

【図4】は、本発明により作成された図形の処理例を示
す概略図であり、
FIG. 4 is a schematic diagram showing an example of processing a figure created by the present invention,

【図5】は、本発明を実施するための構成図であり、FIG. 5 is a block diagram for carrying out the present invention,

【図6】は、本発明の処理内容の例を表したものであ
る。 図中の符号は、 1、2、3・・・・描画された円(線情報) 2’・・・・・・・2重化された円(線情報)
FIG. 6 shows an example of processing contents of the present invention. Symbols in the figure are: 1, 2, 3, ... Circle drawn (line information) 2 '... Double circle (line information)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 線情報を使用する画像処理方法であっ
て、少なくとも一部分の図形どおしが重複する図形を有
する図形に対し、重複している図形の一方の図形に、他
方の図形に付与した属性および別の属性による2重の属
性を付与することを特徴とする、重複部分を無くすこと
ができる画像処理方法。
1. An image processing method using line information, wherein at least a part of figures have a figure overlapping each other, and one figure of the overlapping figures is given to the other figure. An image processing method capable of eliminating an overlapping portion, which is characterized in that a double attribute based on the specified attribute and another attribute is added.
【請求項2】 線情報を使用する画像処理方法であっ
て、少なくとも一部分の図形どおしが重複する図形を有
する図形を検出する手段、重複している図形の一方の図
形に、他方の図形に付与した属性および別の属性による
2重の属性を付与する手段、2重の属性を付与した図形
を含む図形を表示または出力する手段、を有することを
特徴とする画像処理装置。
2. An image processing method using line information, comprising means for detecting a figure having a figure in which at least a part of figures overlap each other; one figure of the overlapping figure and the other figure. An image processing apparatus comprising: a means for giving a dual attribute according to the attribute given to the above and another attribute; a means for displaying or outputting a figure including a figure given the double attribute.
JP5154961A 1993-06-25 1993-06-25 Method and device for processing picture Pending JPH0728857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5154961A JPH0728857A (en) 1993-06-25 1993-06-25 Method and device for processing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5154961A JPH0728857A (en) 1993-06-25 1993-06-25 Method and device for processing picture

Publications (1)

Publication Number Publication Date
JPH0728857A true JPH0728857A (en) 1995-01-31

Family

ID=15595694

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5154961A Pending JPH0728857A (en) 1993-06-25 1993-06-25 Method and device for processing picture

Country Status (1)

Country Link
JP (1) JPH0728857A (en)

Similar Documents

Publication Publication Date Title
JPH02101456A (en) Producing method for clipped mask data
JP3078088B2 (en) Character image synthesis display device
JP4174133B2 (en) Image generation method
JPH0728857A (en) Method and device for processing picture
JP3257925B2 (en) Translucent color image generation device
JP2713582B2 (en) Plot editor
JP2932990B2 (en) LSI layout data drawing device
JPH0729018A (en) Method for processing picture and device therefor
JPS62219070A (en) Control and processing system for corresponding display
JPH05159020A (en) Design information display device for integrated circuit
JPH01244502A (en) Pc program display system
JP2914829B2 (en) Character formation method in computer games
JPH03105682A (en) Printing design system
JPH0635980A (en) Cad device
JPH06176130A (en) Interactive polygon selection device
JPS62256181A (en) Picture processor
JPS6280765A (en) Selecting method for superposed graphic forms
JPH10214072A (en) Information processing device
JPH02121072A (en) Method for displaying in cad
JPS62259748A (en) Copying control device
JPH04167075A (en) Method and device for image processing
JPH03220675A (en) Tree diagram display device
JPH05334285A (en) Document preparing device
JPH0991467A (en) Hidden line processing method for two-dimensional graphic
JPH06309388A (en) Interactive inputting method