JPH09281953A - Picture processing device - Google Patents

Picture processing device

Info

Publication number
JPH09281953A
JPH09281953A JP8094461A JP9446196A JPH09281953A JP H09281953 A JPH09281953 A JP H09281953A JP 8094461 A JP8094461 A JP 8094461A JP 9446196 A JP9446196 A JP 9446196A JP H09281953 A JPH09281953 A JP H09281953A
Authority
JP
Japan
Prior art keywords
data
unit
graphic
overlapping
stored
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.)
Granted
Application number
JP8094461A
Other languages
Japanese (ja)
Other versions
JP3552402B2 (en
Inventor
Yuji Sumiya
裕司 角谷
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP09446196A priority Critical patent/JP3552402B2/en
Publication of JPH09281953A publication Critical patent/JPH09281953A/en
Application granted granted Critical
Publication of JP3552402B2 publication Critical patent/JP3552402B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To effectively decrease quantity of data of the picture by automatically eliminating at least one part of an overlapped part of assembled graphics. SOLUTION: A non-overlapping new graphic data making means detects data relating to overlapping unit graphic in which at least one part is overlapped out of intermediate data stored in an unprocessed region 140, when quantity of data is more than the quantity of data of a non-overlapping new graphic obtained by omitting one side of an overlapped part, a non-overlapping new graphic data is produced. And, the made non-overlapping new graphic data is stored in a non-overlapping new graphic data storing region 144, and it is used for producing dot data by a dot data producing means when a non- overlapping new graphic is displayed on a display device.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置に関す
るものであり、特に、少なくとも一部が重複する複数の
図形により構成される集合図形の処理に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and, more particularly, to processing a collective figure composed of a plurality of figures at least partially overlapping with each other.

【0002】[0002]

【従来の技術】画像処理装置は、図形データを処理する
処理手段を有し、例えば、CRTディスプレイ,液晶デ
ィスプレイ等の表示装置やシリアルプリンタ,ラインプ
リンタ等の記録装置に設けられて、図形データを各画素
にドットを形成するか否かを表すドットデータに変換し
たり、あるいは画像送信装置に設けられて、図形データ
を他の装置へ送信するための送信用画像データを作成し
たりするものである。
2. Description of the Related Art An image processing apparatus has a processing means for processing graphic data, and is provided in a display device such as a CRT display or a liquid crystal display or a recording device such as a serial printer or a line printer to display the graphic data. Converts to dot data that indicates whether or not to form a dot in each pixel, or is provided in the image transmission device and creates transmission image data for transmitting graphic data to another device. is there.

【0003】この画像処理装置により処理される画像
が、複数の図形の集合により成ることがある。これら複
数の図形の集合である図形群は、他の図形と重複しない
独立の図形と、複数の図形が少なくとも一部において互
いに重複する集合図形との少なくとも一方を含む。集合
図形が生ずる理由は様々であるが、例えば、四角形,三
角形,円等、種々の図形を組合わせて任意の形状の図形
を描く場合、あるいは輪郭線が曲線により規定される図
形が処理の過程で複数の多角形の集合に置き換えられる
場合、あるいはスキャナやイメージセンサ等による読取
りによって得られる読取図形と、四角形,三角形等の描
画図形とを合わせて図形を描く場合等に生ずる。
An image processed by this image processing apparatus may consist of a set of a plurality of figures. The figure group, which is a set of these figures, includes at least one of an independent figure that does not overlap with other figures and an aggregate figure in which the plurality of figures at least partially overlap each other. There are various reasons why aggregate figures are generated. For example, when a figure of any shape is combined by combining various figures such as a quadrangle, a triangle, and a circle, or a figure whose contour line is defined by a curve is a process step. When the drawing is replaced with a set of a plurality of polygons, or when a read figure obtained by reading with a scanner or an image sensor is combined with a drawing figure such as a quadrangle or a triangle to draw a figure.

【0004】図形は点図形,線図形,面図形,読取図形
等に分類される。点図形は1画素から成る図形であり、
読取図形は点図形の集合と考えることもできる。線図形
には、直線,2個の規定点をつなぐ線分、3個以上の規
定点の2個ずつをつなぐ線分の集合、3個以上の規定点
で規定される曲線、曲線の両端が限られた有限曲線、曲
線や有限曲線の集合等がある。面図形は、閉じた線図形
に囲まれた面の図形であり、閉じた線図形を面図形の輪
郭線と称する。3個以上の規定点により規定される面図
形の代表的なものとして、2個ずつの規定点が線分でつ
ながれるとともに線分同士が交差しない凸多角形や凹多
角形があり、これらの輪郭線素である線分を特に辺と称
する。面図形にはさらに、少なくとも2辺が交差する辺
交差図形や、凸多角形,凹多角形,辺交差図形等の少な
くとも1辺が有限曲線で置換された図形,曲線のみに囲
まれた図形等がある。
The graphics are classified into dot graphics, line graphics, surface graphics, read graphics, and the like. A dot figure is a figure consisting of one pixel,
The read figure can be considered as a set of dot figures. A line figure includes a straight line, a line segment that connects two specified points, a set of line segments that connects two or more three or more specified points, a curve that is defined by three or more specified points, and both ends of a curve. There are limited finite curves, curves and sets of finite curves. A surface figure is a figure of a surface surrounded by a closed line figure, and the closed line figure is called a contour line of the surface figure. As a typical surface figure defined by three or more defined points, there are convex polygons and concave polygons in which two defined points are connected by a line segment and the line segments do not intersect each other. A line segment that is a contour line element is particularly called an edge. The area figure further includes an edge-crossing figure in which at least two sides intersect, a convex polygon, a concave polygon, a figure in which at least one side is replaced with a finite curve, a figure surrounded only by curves, and the like. There is.

【0005】読取図形は、例えば、画像作成領域の一部
に読取図形領域を設定し、その読取図形領域に読取図形
を組み込む場合のように、読取図形領域全体を1つの面
図形として扱うことが可能である。読取図形領域の形状
は、矩形,矩形以外の凸多角形,凹多角形,円等、種々
に設定することができる。また、読取図形を構成する多
数の画素の各々を1つの点図形として処理することも可
能である。このように、図形は、点図形,面図形,線図
形および読取図形を含むのであるが、複数の図形が集合
して図形群を構成する場合、その図形群の構成単位であ
るという意味で各図形を単位図形と称し、図形群を単位
図形群と称する。
As for the read figure, for example, when the read figure area is set in a part of the image forming area and the read figure is incorporated in the read figure area, the entire read figure area can be treated as one plane figure. It is possible. The shape of the read graphic area can be set to various shapes such as a rectangle, a convex polygon other than a rectangle, a concave polygon, and a circle. It is also possible to process each of a large number of pixels forming the read figure as one point figure. As described above, a figure includes a point figure, a surface figure, a line figure, and a read figure. However, when a plurality of figures are assembled to form a figure group, each figure means a constituent unit of the figure group. A figure is called a unit figure, and a figure group is called a unit figure group.

【0006】単位図形のうちの面図形,線図形を表す単
位図形データは、一般的には、複数の規定点の座標を表
す座標データと直線,曲線の別や曲線の種類を表すデー
タとの組合せによって構成されるが、座標データのみ、
あるいは直線と曲線との少なくとも一方を表すデータの
みにより構成されることもある。例えば、輪郭線素が線
分に決まっている場合には規定点の座標のみで単位図形
を規定することができ、複数の直線や曲線の交点を規定
点とする場合には、直線や曲線の式のみによって図形を
規定することができる。読取図形を表す単位図形データ
は、例えば、読取図形領域を規定する規定点の座標デー
タ,読取図形を構成する多数の画素の各々の記録,表示
データにより構成される。
The unit figure data representing the surface figure and the line figure of the unit figures are generally composed of coordinate data representing the coordinates of a plurality of prescribed points and data representing the distinction between straight lines and curves or the type of curve. Composed of combinations, but only coordinate data
Alternatively, it may be composed only of data representing at least one of a straight line and a curved line. For example, if the contour line element is a line segment, the unit figure can be specified only by the coordinates of the specified points. A graphic can be defined only by an expression. The unit graphic data representing the read graphic is composed of, for example, coordinate data of defined points defining the read graphic area, recording of each of a large number of pixels forming the read graphic, and display data.

【0007】[0007]

【発明が解決しようとする課題】前述のように、集合図
形においては複数の単位図形が少なくとも一部において
互いに重複しているのであるが、この集合図形のデータ
が重複部分のデータを含んでいることが望ましくない場
合がある。例えば、すべての面図形が輪郭線の内側が一
色に塗り潰された状態で出力される場合には、複数の面
図形の互いに重複する部分の一方のデータは無用である
にもかかわらず、画像データが互いに重複する部分のデ
ータを共に包含している場合にはデータ量が無用に多く
なる。なお、ここにおいて出力とは、表示あるいは記録
のことである。そのために画像処理装置の画像データ記
憶手段の記憶容量が不足して、画像データ全部(例えば
1頁分のデータ)を記憶できない事態が発生するおそれ
があり、これを回避するために画像データ記憶手段の記
憶容量を大きくすれば、装置コストが高くなる。また、
集合図形の出力時に同じ部分についてドットデータが2
回作成されることとなって無駄であり、画像データが他
の装置に送信される場合の送信時間が無駄に長くなる。
As described above, in a collective figure, a plurality of unit figures overlap each other at least in part, but the data of this collective figure includes the data of the overlapping part. May not be desirable. For example, if all the area figures are output with the inside of the outline filled in with one color, the image data is If both contain the data of the portions overlapping with each other, the amount of data becomes unnecessarily large. The output here means display or recording. Therefore, the storage capacity of the image data storage unit of the image processing apparatus may be insufficient, and a situation may occur in which the entire image data (for example, data for one page) cannot be stored. In order to avoid this, the image data storage unit If the storage capacity is increased, the device cost will increase. Also,
When outputting the set figure, the dot data is 2 for the same part.
This is wasteful because it is created once, and the transmission time when the image data is transmitted to another device is unnecessarily long.

【0008】さらに、複数の面図形が輪郭線の内側が互
いに異なる色に塗り潰された状態で出力される場合に
は、互いに重複する部分のうち下側になる部分を規定す
るデータを除去することが必要になる場合が多い。2色
が重なって出力されれば、混色によりいずれの色とも異
なった色となり、それが望まれない場合が多いからであ
る。2色が重なって出力される場合に、下側の色が上側
の色によって完全に覆われる場合には、下側の部分を規
定するデータを除去することは不可欠ではないが、記憶
されたり送信されたりする画像データの総量を減少させ
る観点から、除去されることが望ましい。
Further, when a plurality of surface figures are output in a state where the insides of the contour lines are painted in different colors, the data defining the lower part of the overlapping parts should be removed. Is often required. This is because if two colors are output in an overlapping manner, they will be different from any of the colors due to color mixing, and in many cases this is not desired. It is not essential to remove the data defining the lower part when the two colors are output overlapping and the lower color is completely covered by the upper color, but it is stored or transmitted. It is desirable to remove the image data from the viewpoint of reducing the total amount of image data.

【0009】請求項1に係る第1発明は、以上の事情を
背景として、集合図形の重複部分の少なくとも一部のも
のを自動的に除去することができる画像処理装置を得る
ことを課題としてなされたものである。請求項2に係る
第2発明の課題は、集合図形を含む画像のデータ量を効
果的に減少させることができる画像処理装置を得ること
であり、請求項3に係る第3発明の課題は、図形をドッ
トにより迅速に出力することが可能な画像処理装置を得
ることである。請求項4に係る第4発明の課題は、2個
の単位図形の重複を迅速に検出することができる画像処
理装置を得ることである。請求項5に係る第5発明の課
題は、他の図形との重複のない2種類の不重複新図形を
選択的に作成することができる画像処理装置を得ること
である。請求項6に係る第6発明の課題は、画像処理時
間が不当に長くなることがない画像処理装置を得ること
である。請求項7に係る第7発明の課題は、図形データ
記憶手段の記憶容量の不足時に不重複新図形を作成し、
記憶容量の不足を解消することができる画像処理装置を
得ることである。
In view of the above circumstances, the first aspect of the present invention has as its object to provide an image processing apparatus capable of automatically removing at least a part of an overlapping portion of an aggregate figure. It is a thing. An object of the second invention according to claim 2 is to obtain an image processing apparatus capable of effectively reducing the data amount of an image including a set figure, and an object of the third invention according to claim 3 is: An object of the present invention is to obtain an image processing device capable of rapidly outputting a figure by dots. An object of a fourth invention according to claim 4 is to obtain an image processing device capable of quickly detecting an overlap between two unit figures. An object of a fifth invention according to claim 5 is to obtain an image processing apparatus capable of selectively creating two types of new non-overlapping new graphics that do not overlap with other graphics. An object of a sixth invention according to claim 6 is to obtain an image processing apparatus in which the image processing time is not unduly lengthened. An object of the seventh invention according to claim 7 is to create a non-overlapping new graphic when the storage capacity of the graphic data storage means is insufficient,
An object of the present invention is to obtain an image processing device capable of solving the shortage of storage capacity.

【0010】[0010]

【課題を解決するための手段,作用および発明の効果】
上記課題は、第1発明においては次のようにして解決さ
れる。複数の単位図形を含み、それら複数の単位図形の
少なくとも一つが、他の単位図形のうちの少なくとも一
つと少なくとも一部において重複する集合図形を構成す
る単位図形群を処理する処理手段を含む画像処理装置に
おいて、処理手段を、(a)処理前の単位図形のデータ
を記憶する処理前図形データ記憶手段と、(b)その処
理前図形データ記憶手段に記憶された単位図形データに
基づいて、前記互いに重複する単位図形に関して、互い
に重複する部分の一方を省略した不重複新図形のデータ
を作成する不重複新図形データ作成手段と、(c)その
不重複新図形データ作成手段により作成された不重複新
図形データを記憶する不重複新図形データ記憶手段とを
含むものとすることによって解決されるのである。
Means for Solving the Problems, Functions and Effects of the Invention
The above problem is solved in the first invention as follows. Image processing including a processing unit including a plurality of unit figures, and at least one of the plurality of unit figures processing a unit figure group forming an aggregate figure at least partially overlapping with at least one of the other unit figures In the apparatus, the processing means is based on (a) pre-processed graphic data storage means for storing data of unit graphic before processing, and (b) based on the unit graphic data stored in the pre-processed graphic data storage means. Non-overlapping new graphic data creating means for creating non-overlapping new graphic data in which one of the overlapping parts is omitted, and (c) the non-overlapping new graphic data creating means This is solved by including non-overlapping new graphic data storage means for storing the duplicate new graphic data.

【0011】本発明に係る装置によれば、例えば、集合
図形を構成する複数の単位図形が面図形である場合、そ
れら単位図形の各輪郭線素のうち、同じ集合図形を構成
する他の単位図形の内側に位置する部分を除いた輪郭線
素の集合により新しい輪郭線が規定される合体型の不重
複新図形が得られる。合体型不重複新図形は、例えば、
少なくとも一部が互いに重複する複数の単位図形の各々
を規定する規定点のうち、それら単位図形の輪郭線素の
他の単位図形の内側に位置する部分を規定する規定点
を、それら単位図形の輪郭線素同士の交点で置換した規
定点群により規定することができる。合体型不重複新図
形が、集合図形を構成する複数の単位図形を規定する複
数の直線や曲線の一部のものによって規定できる場合も
ある。
According to the apparatus of the present invention, for example, when a plurality of unit figures forming the collective figure are plane figures, among the contour line elements of these unit figures, other units forming the same collective figure are included. A merged non-overlapping new figure in which a new contour line is defined by a set of contour line elements excluding the portion located inside the figure is obtained. The merged non-overlapping new figure is, for example,
Of the prescribed points that define each of the plurality of unit figures that at least partially overlap each other, the prescribed points that define the portions located inside other unit figures of the contour element of those unit figures are It can be defined by a defined point group that is replaced by intersections of contour line elements. In some cases, the merged non-overlapping new figure can be defined by a part of a plurality of straight lines or curves that define a plurality of unit figures that form the aggregate figure.

【0012】本発明に係る装置によって得られる不重複
新図形の別の一例は単位図形一部変更型不重複新図形で
ある。この不重複新図形は、複数の単位図形の互いに重
複する部分の一方を除く形状に変更された単位図形の集
合である。その一例は、少なくとも一部が互いに重複す
る複数の単位図形のうちの一つについては形状が変更さ
れず、他の単位図形が重複部分を除く形状に変更された
ものである。一つの単位図形のある単位図形と重複する
部分は形状が変更されず、別の単位図形と重複する部分
は形状が変更されて、単位図形一部変更型不重複新図形
が構成されてもよい。形状が変更される単位図形は、例
えば、その単位図形を規定する規定点のうち、その単位
図形の輪郭線素の他の単位図形の内側に位置する部分を
規定する規定点を、その輪郭線素と他の単位図形の輪郭
線素との交点で置換した規定点群により規定することが
できる。単位図形一部変更型不重複新図形は、単位図形
が面図形であっても線図形であっても作られる。互いに
重複する複数の単位図形の1つが線図形の場合、線図形
の構成線素は厳密には輪郭線素とは称し得ないが、実質
的な取扱いは同じでよく、輪郭線素に含めることとす
る。単位図形が線図形であっても、例えば、輪郭線素の
一部が面図形と重複するのであれば、面図形の内側に位
置する部分が除かれた線図形に変更され、単位図形一部
変更型不重複新図形を構成する。互いに重複する複数の
単位図形の1つが読取図形の場合、単位図形一部変更型
不重複新図形が作られる。読取図形は、面図形や線図形
とは異なり、多数の画素の各々について作成されたデー
タにより規定される特殊な図形であるからである。上記
いずれの場合においても、単位図形の全部が他の単位図
形に含まれれば、単純に単位図形が1つ消去されること
となる。全部が他の単位図形に含まれる面図形や線図形
については、それら図形を規定する全部の規定点が除か
れるとともに、交点がないからであり、また、読取図形
については、読取図形を構成する全部の画素について作
成されたデータが消去されるからである。点図形につい
ても、他の単位図形に含まれれば、その点図形が消去さ
れることになる。
Another example of the non-overlapping new graphic obtained by the device according to the present invention is a unit graphic partial modification type non-overlapping new graphic. This non-overlapping new figure is a set of unit figures changed to a shape excluding one of the overlapping portions of the plurality of unit figures. In one example, the shape of one of the plurality of unit figures that at least partially overlap with each other is not changed, and the other unit figures are changed to a shape excluding the overlapping portion. The shape of a portion of one unit figure that overlaps with a certain unit figure may not be changed, and the shape of a portion that overlaps with another unit figure may be changed to form a unit figure partially modified non-overlapping new figure. . The unit figure whose shape is to be changed is, for example, a defined point that defines a portion of the contour line element of the unit figure located inside another unit figure among the defined points that define the unit figure. It can be defined by a defined point group that is replaced by the intersection of the element and the contour element of another unit figure. A non-overlapping new graphic with a partially modified unit graphic can be created whether the unit graphic is a surface graphic or a line graphic. When one of a plurality of unit figures that overlap with each other is a line figure, the constituent line elements of the line figure cannot be technically called contour line elements, but the actual handling may be the same and should be included in the contour line elements. And Even if the unit figure is a line figure, for example, if a part of the contour line element overlaps with the area figure, it is changed to a line figure excluding the portion located inside the area figure, and the unit figure part Construct a modified non-overlapping new graphic. When one of the plurality of unit figures overlapping each other is the read figure, a unit figure partially modified non-overlapping new figure is created. This is because the read figure is a special figure defined by the data created for each of a large number of pixels, unlike the area figure and the line figure. In any of the above cases, if all the unit figures are included in other unit figures, one unit figure is simply deleted. This is because, for surface graphics and line graphics that are all included in other unit graphics, all defined points that define these graphics are removed and there are no intersections, and for read graphics, the read graphics are configured. This is because the data created for all pixels is erased. If the dot graphic is also included in another unit graphic, the dot graphic is erased.

【0013】不重複新図形データ作成手段が、2個の単
位図形から作成した1個の不重複新図形を、処理前図形
データ記憶手段とは別の不重複新図形データ記憶手段に
格納し、必要があれば、不重複新図形データ記憶手段に
記憶された不重複新図形データと処理前図形データ記憶
手段に記憶された単位図形データとから新たな不重複新
図形データを作成するものとすることも可能である。上
記処理を繰り返せば、最後には1つの集合図形を構成す
るすべての単位図形から作成された不重複新図形のデー
タが不重複新図形データ記憶手段に記憶されることとな
る。また、処理前図形データ記憶手段に記憶された処理
前の単位図形データが独立図形データを含む場合に、そ
の独立図形データがそのまま不重複新図形データ記憶手
段に記憶されるようにすれば、最終的に、不重複新図形
データ記憶手段に画像全体を表す画像データが記憶され
ることとなる。
The non-overlapping new graphic data creating means stores one non-overlapping new graphic created from two unit graphics in a non-overlapping new graphic data storing means different from the unprocessed graphic data storing means, If necessary, new non-overlapping new graphic data is created from the non-overlapping new graphic data stored in the non-overlapping new graphic data storage means and the unit graphic data stored in the pre-processing graphic data storage means. It is also possible. When the above process is repeated, finally, the data of the non-overlapping new graphic created from all the unit graphics constituting one aggregate graphic is stored in the non-overlapping new graphic data storage means. Further, when the unit graphic data before processing stored in the pre-processed graphic data storage means includes independent graphic data, if the independent graphic data is stored as it is in the non-overlapping new graphic data storage means, Therefore, the image data representing the entire image is stored in the non-overlapping new graphic data storage means.

【0014】不重複新図形データ作成手段を、2個の単
位図形から1個の不重複新図形を作成した場合に、それ
の不重複新図形データを元の2個の単位図形の単位図形
データの代わりに処理前図形データ記憶手段に格納し、
必要があれば、その1個の不重複新図形データを新たな
単位図形データとして他の単位図形データとの間で新た
な不重複新図形データを作成するものとすることもでき
る。最後にはすべての集合図形から作成された不重複新
図形のデータが処理前図形データ記憶手段に記憶される
こととなり、この場合には、処理前図形データ記憶手段
が不重複新図形データ記憶手段を兼ねることとなる。ま
た、処理前図形データ記憶手段が集合図形データのみな
らず独立図形データを含む画像全体を表す画像データを
記憶する処理前画像データ記憶手段である場合には、そ
れら独立図形データはそのまま処理前図形データ記憶手
段に残されることとなるため、処理前図形データ記憶手
段には処理後の画像全体を表す画像データが記憶される
こととなり、処理前画像データ記憶手段としての処理前
図形データ記憶手段が処理後画像データ記憶手段を兼ね
ることとなる。
When the non-overlapping new figure data creating means creates one non-overlapping new figure from two unit figures, the non-overlapping new figure data is the unit figure data of the original two unit figures. Stored in the graphic data storage means before processing,
If necessary, the one new non-overlapping new graphic data may be used as new unit graphic data to create new non-overlapping new graphic data with other unit graphic data. Finally, the data of the non-overlapping new graphic created from all the set graphics is stored in the pre-processing graphic data storage means. In this case, the pre-processing graphic data storage means is the non-overlapping new graphic data storage means. Will also serve as. When the unprocessed figure data storage means is the unprocessed image data storage means for storing not only the collective figure data but also the image data representing the entire image including the independent figure data, the independent figure data is directly processed as the unprocessed figure data. Since it is left in the data storage means, the image data representing the entire image after processing is stored in the pre-processed graphic data storage means, and the pre-processed graphic data storage means as the pre-processed image data storage means It also serves as a post-processing image data storage means.

【0015】このように第1発明に係る画像処理装置に
よれば、少なくとも一部が互いに重複している複数の単
位図形に関して、重複部分のない不重複新図形のデータ
が作成されるため、集合図形を出力装置に出力する際に
ドットデータが重複して作成されることがなくなってド
ットデータ作成時間が短縮される。また、集合図形を構
成する複数の単位図形が、輪郭線の内側が互いに異なる
色に塗り潰された状態で出力される場合には、互いに重
複する部分のうち下側になる部分を規定するデータが除
去され、意図されていない混色が回避される。
As described above, according to the image processing apparatus of the first aspect of the present invention, data of new non-overlapping figures having no overlapping portion is created for a plurality of unit figures at least partially overlapping each other. Dot data is not duplicated when the figure is output to the output device, and the dot data creation time is shortened. In addition, when a plurality of unit figures forming the aggregate figure are output in a state where the insides of the outlines are painted in different colors, the data defining the lower part of the overlapping parts is Removed to avoid unintended color mixing.

【0016】第2発明においては、前記課題が、複数の
単位図形の少なくとも1つが3個以上の規定点により、
残りの単位図形が2個以上の規定点によりそれぞれ規定
されるものである場合に、第1発明における不重複新図
形データ作成手段を、複数の単位図形のうち少なくとも
一部が互いに重複する2個の単位図形をそれぞれ規定す
る規定点の数の和が、それら2個の単位図形から作成さ
れる不重複新図形を規定する規定点の数より多い場合
に、それら2個の単位図形から不重複新図形を作成し、
多くない場合には作成しない規定点減少時不重複新図形
データ作成手段を含むものとすることにより解決され
る。
In the second invention, the above-mentioned problem is that at least one of the plurality of unit figures is defined by three or more defined points.
When the remaining unit figures are respectively defined by two or more defining points, the non-overlapping new figure data creating means in the first invention is provided with two unit figures in which at least some of them overlap each other. If the sum of the number of specified points defining each unit figure is larger than the number of specified points defining a new non-overlapping new figure created from these two unit figures, the two unit figures do not overlap. Create a new shape,
The problem is solved by including a non-overlapping new figure data creating means when the prescribed points are not created if there are not many.

【0017】合体型不重複新図形あるいは単位図形一部
変更型不重複新図形を規定する規定点の数は、少なくと
も一部が互いに重複する単位図形の各規定点の和より増
えることもあり、その場合、画像データの量が増加す
る。それに対し、規定点数が減る場合には不重複新図形
データ作成手段を作動させ、減らない場合には作動させ
なければ、不重複新図形データの作成により確実に画像
データの量を減少させることができる。それによって、
記憶容量の比較的小さい画像データ記憶手段を用いるこ
とが可能となって装置コストが低減し、あるいは画像デ
ータの送信時間,ドットデータの作成時間等が短縮され
る。単位図形が読取図形であっても、面図形として扱う
ことができるのであれば、規定点減少時不重複新図形デ
ータ作成手段により、不重複新図形を作成することがで
きる。
In some cases, the number of defined points for defining a merged non-overlapping new graphic or a unit graphic partly modified non-overlapping new graphic may be greater than the sum of the respective defined points of the unit graphic at least partially overlapping each other. In that case, the amount of image data increases. On the other hand, if the prescribed number of points decreases, the non-overlapping new graphic data creating means is activated, and if it does not decrease, the non-overlapping new graphic data can be created to reliably reduce the amount of image data. it can. Thereby,
It becomes possible to use the image data storage means having a relatively small storage capacity, so that the apparatus cost can be reduced, or the image data transmission time, the dot data creation time, etc. can be shortened. Even if the unit graphic is a read graphic, if it can be handled as a surface graphic, the non-overlapping new graphic can be created by the non-overlapping new graphic data creating means when the number of specified points decreases.

【0018】不重複新図形データ作成手段が作動させら
れないために処理されない集合図形のデータが、不重複
新図形のデータと共に不重複新図形データ記憶手段に記
憶されるようにすることも、処理されないまま処理前図
形データ記憶手段に残されるようにすることも可能であ
る。後者の場合、不重複新図形データが処理前図形デー
タ記憶手段に記憶されるようにすることも可能であり、
処理前図形データ記憶手段が不重複新図形データ記憶手
段を兼ねることとなる。
It is also possible to allow the data of the collective graphic which is not processed because the non-overlapping new graphic data creating means is not operated to be stored in the non-overlapping new graphic data storage means together with the data of the non-overlapping new graphic data. It is also possible to leave the unprocessed figure data in the unprocessed figure data storage means. In the latter case, the non-overlapping new graphic data can be stored in the pre-processed graphic data storage means,
The unprocessed graphic data storage means also serves as the non-overlapping new graphic data storage means.

【0019】第3発明に係る画像処理装置は、第1発明
または第2発明における不重複新図形データ記憶手段に
記憶された不重複新図形データに基づいて、画素毎にド
ットを形成するか否かにより図形を出力する出力装置に
不重複新図形を出力するためのドットデータを作成する
ドットデータ作成手段を含むものとされる。この装置に
おいては、不重複新図形データに基づいてドットデータ
が作成されるのであるが、重複部の消滅あるいは減少に
より迅速なドットデータの作成が可能となる。
Whether the image processing apparatus according to the third invention forms dots for each pixel based on the non-overlapping new graphic data stored in the non-overlapping new graphic data storage means in the first or second invention. Thus, the output device for outputting the graphic includes a dot data creating means for creating dot data for outputting the non-overlapping new graphic. In this apparatus, the dot data is created based on the non-overlapping new graphic data, but it is possible to create the dot data quickly by eliminating or reducing the overlapping portion.

【0020】第4発明においては、前記課題が、第1発
明ないし第3発明のいずれか1つにおける不重複新図形
データ作成手段を、前記複数の単位図形の各2個につい
て、それら各2個の各々に外接する外接矩形同士が少な
くとも一部において重複するか否かにより、それら各2
個が重複する可能性があるか否かを判定する重複可能性
判定手段と、その重複可能性判定手段により重複の可能
性があると判定された各2個の単位図形について、単位
図形そのものの重複を検出する外接矩形重複時重複図形
検出手段とを含むものとすることにより解決される。こ
こにおいて重複とは、一方の外接矩形の一部が他方の外
接矩形に含まれる場合、全部が含まれる場合、丁度重な
り合う場合を含む。単位図形が読取図形の場合、その読
取図形について矩形の読取図形領域が設定されるのであ
れば、その読取図形領域を外接矩形とみなして、他の単
位図形の外接矩形との重複を検出することができる。少
なくとも一部が重複する単位図形の外接矩形同士は必ず
少なくとも一部において重複するのに対し、互いに重複
しない2個の単位図形の外接矩形同士は重複しないこと
が多い。そのため、まず、外接矩形同士の少なくとも一
部が重複しているか否かを調べれば、外接矩形が離れて
いて互いに重複する可能性のない単位図形を、単位図形
同士の重複判定から外すことができる。外接矩形は、単
位図形を規定する座標平面上においてX軸に平行な2辺
と、Y軸に平行な2辺とを有し、例えば、X座標値およ
びY座標値が最大である点と、最小である点とにより規
定し得る特殊な四角形である。そのため、発明の実施の
形態の項において説明するように、2つの外接矩形が重
複するか否かの判定は、2つの単位図形が重複するか否
かの判定よりはるかに容易に行うことができ、複数の単
位図形のうち、重複の可能性がない単位図形を簡単に除
くことができる。残りの単位図形の中には、外接矩形が
重複していても交差しない単位図形があるが、僅かであ
り、重複を検出すべき単位図形が少なくて済み、重複す
る単位図形を迅速に検出することができる。
According to a fourth aspect of the present invention, the above-mentioned problem is obtained by using the non-overlapping new graphic data creating means in any one of the first to third inventions for each two of the plurality of unit graphics. The circumscribed rectangles circumscribing each of the
The duplication possibility determination means for determining whether or not there is a possibility of duplication, and each of the two unit figures determined by the duplication possibility determination means as a possibility of duplication, This is solved by including circumscribing rectangle overlapped overlapping figure detecting means for detecting an overlap. Here, “overlapping” includes a case where a part of one circumscribed rectangle is included in the other circumscribed rectangle, a case where all of the circumscribed rectangles are included, and a case where they are exactly overlapped. When a unit figure is a read figure, if a rectangular read figure area is set for the read figure, consider that read figure area as a circumscribed rectangle and detect the overlap with the circumscribed rectangle of another unit figure. You can The circumscribed rectangles of the unit figures that at least partially overlap at least partially overlap each other, whereas the circumscribed rectangles of two unit figures that do not overlap each other often do not overlap. Therefore, first, by checking whether or not at least a part of the circumscribed rectangles overlap each other, it is possible to exclude a unit figure whose circumscribed rectangles are separated from each other and may not overlap each other from the duplication determination of the unit figure. . The circumscribed rectangle has two sides parallel to the X axis and two sides parallel to the Y axis on the coordinate plane defining the unit figure, and, for example, a point having the maximum X coordinate value and Y coordinate value, It is a special quadrangle that can be defined by the smallest point and. Therefore, as described in the embodiment of the invention, the determination as to whether two circumscribed rectangles overlap can be made much easier than the determination as to whether two unit figures overlap. Of the plurality of unit figures, the unit figure having no possibility of duplication can be easily excluded. Among the remaining unit figures, there are unit figures that do not intersect even if the circumscribed rectangles overlap, but there are only a few, and the number of unit figures for which duplication should be detected is small, and overlapping unit figures can be detected quickly. be able to.

【0021】第5発明においては、前記課題が、第1発
明ないし第4発明のいずれか1つにおける前記処理前図
形データ記憶手段を、前記複数の単位図形のデータを、
それら単位図形間の優先順位を判別可能な状態で記憶す
るものとし、かつ、前記不重複新図形データ作成手段
を、(A)前記複数の単位図形の2個が互いに重複する
際に、優先順位が上である単位図形の単位図形データは
変更せず、優先順位が下である単位図形の単位図形デー
タは優先順位が上である単位図形と重複しない部分の部
分図形データに変更する優先順位対応不重複新図形デー
タ作成手段と、(B)前記不重複新図形の輪郭線を規定
する輪郭線データを作成する輪郭線データ作成手段と、
(C)それら優先順位対応不重複新図形データ作成手段
と輪郭線データ作成手段とを選択的に作動させる不重複
新図形作成形態選択手段とを含むものとすることにより
解決される。この態様の装置において、優先順位対応不
重複新図形データ作成手段を作動させれば、単位図形一
部変更型不重複新図形のデータを作成することができ、
輪郭線データ作成手段を作動させれば、合体型不重複新
図形のデータを作成することができる。2つのデータ作
成手段の選択的な作動により、場合に応じた不重複新図
形を得ることができる。
In a fifth aspect of the present invention, the problem is that the pre-processed graphic data storage means in any one of the first to fourth inventions is used, and the data of the plurality of unit graphics are stored.
The priorities among the unit figures are stored in a discriminable manner, and the non-overlapping new figure data creating means (A) sets the priority order when two of the plurality of unit figures overlap each other. The unit graphic data of the unit graphic whose top is higher is not changed, and the unit graphic data of the unit graphic whose priority is lower is changed to the partial graphic data of the part that does not overlap with the unit graphic whose priority is higher. Non-overlapping new figure data creating means, and (B) contour line data creating means for creating contour line data defining a contour line of the non-overlapping new figure,
(C) The problem is solved by including the non-overlapping new figure creation mode selecting means for selectively operating the priority corresponding non-overlapping new figure data creating means and the contour line data creating means. In the apparatus of this aspect, by operating the priority correspondence non-overlapping new graphic data creating means, the data of the unit graphic partial change type non-overlapping new graphic can be created,
By operating the contour line data creating means, it is possible to create data of a merged non-overlapping new figure. By selectively operating the two data creating means, it is possible to obtain a non-overlapping new figure depending on the case.

【0022】第6発明においては、前記課題が、第1な
いし第5発明のいずれか1つにおける前記処理手段によ
って一度に処理される単位図形の数を予め設定すること
により解決される。「処理手段によって一度に処理され
る単位図形の数」は、処理手段によって一度に処理され
るべき単位図形の総数によって規定されても、1個の不
重複新図形を構成する単位図形の数によって規定されて
も、互いに直接あるいは間接に連なった一連の単位図形
の数によって規定されてもよい。処理手段によって一度
に処理される単位図形の数が設定されていなければ、例
えば、1個の不重複新図形が多数の単位図形から構成さ
れてそれの不重複新図形データの量が多くなり、その不
重複新図形と、他の単位図形との重複の検出に要する時
間が不当に長くなる等の問題が生じる恐れがあるが、一
度に処理される単位図形の数が設定されていれば、1個
の不重複新図形のデータ量が多くなり過ぎることはな
く、処理時間が不当に長くなることが回避される。
In a sixth aspect of the invention, the above-mentioned problems can be solved by presetting the number of unit figures to be processed at one time by the processing means in any one of the first to fifth aspects of the invention. The "number of unit figures processed at one time by the processing means" is defined by the total number of unit figures to be processed at one time by the processing means, but by the number of unit figures constituting one non-overlapping new figure. It may be defined, or may be defined by the number of a series of unit figures that are directly or indirectly connected to each other. If the number of unit figures to be processed at one time by the processing means is not set, for example, one non-overlapping new figure is composed of a large number of unit figures and the amount of non-overlapping new figure data increases, There may be a problem that the time required to detect the overlap between the non-overlapping new figure and another unit figure becomes unreasonably long, but if the number of unit figures to be processed at a time is set, The data amount of one non-overlapping new figure does not become too large, and the processing time is prevented from being unduly lengthened.

【0023】第7発明に係る画像処理装置は、第2発明
ないし第6発明のいずれか1つにおける前記処理前図形
データ記憶手段の記憶容量が不足の場合に、前記規定点
減少時不重複新図形データ作成手段を作動させ、その結
果作成された不重複新図形データを処理前図形データ記
憶手段にその不重複新図形データに対応する単位図形デ
ータに代えて記憶させる記憶容量不足対処手段を含むも
のとされる。処理前図形データ記憶手段は、必ず記憶容
量が不足するとは限らず、全部の単位図形データを記憶
させることができるのであれば、不重複新図形データの
作成は省略される。不重複新図形データの作成が省略さ
れれば、その分、単位図形データの処理前図形データ記
憶手段への格納に要する時間が短縮される。全部の単位
図形データを記憶させることができない場合、規定点減
少時不重複新図形データ作成手段が作動させられて不重
複新図形データが作成され、規定点の減少によりデータ
量が減少し、全部の単位図形データを処理前図形データ
記憶手段に記憶させることが可能になる。処理前図形デ
ータ記憶手段の記憶容量が不足するとき、既に処理前図
形データ記憶手段に記憶されている全部の単位図形デー
タに基づいて不重複新図形データが作成されるようにし
てもよく、あるいは一部の単位図形データに基づいて不
重複新図形データが作成されるようにしてもよい。後者
の場合、1回の不重複新図形データ作成処理後もなお記
憶容量が不足する場合、別の部分の単位図形データに基
づいて不重複新図形データが作成され、それが、全部の
単位図形データが記憶されるまで繰り返される。なお、
記憶容量の不足分が予めわかる場合には、その記憶容量
の不足分に応じて、処理されるべき単位図形データの量
が設定されるようにしてもよい。本発明に係る画像処理
装置においては、処理前の単位図形データおよび不重複
新図形データがいずれも処理前図形データ記憶手段に記
憶され、処理前図形データ記憶手段が不重複新図形デー
タ記憶手段を兼ねる。
According to a seventh aspect of the present invention, in the image processing apparatus according to any one of the second to sixth aspects, when the storage capacity of the unprocessed graphic data storage means is insufficient, the non-overlapping new operation is performed when the prescribed point decreases. A storage capacity shortage coping means for operating the graphic data creating means and storing the resulting non-overlapping new graphic data in the unprocessed graphic data storage means in place of the unit graphic data corresponding to the non-overlapping new graphic data is included. To be taken. The unprocessed figure data storage means does not always have a shortage of storage capacity, and the creation of non-overlapping new figure data is omitted as long as all the unit figure data can be stored. If the creation of the non-overlapping new graphic data is omitted, the time required to store the unit graphic data in the pre-processed graphic data storage means is shortened accordingly. If all the unit graphic data cannot be stored, the non-overlapping new graphic data creating means is activated when the specified points are decreased to create the non-overlapping new graphic data, and the data amount is decreased due to the decrease of the specified points, The unit graphic data can be stored in the pre-processed graphic data storage means. When the storage capacity of the unprocessed graphic data storage means is insufficient, the non-overlapping new graphic data may be created based on all the unit graphic data already stored in the unprocessed graphic data storage means, or The non-overlapping new graphic data may be created based on part of the unit graphic data. In the latter case, if the storage capacity is still insufficient after the non-overlapping new graphic data creation processing is performed once, the non-overlapping new graphic data is created based on the unit graphic data of another portion, and this is the whole unit graphic. Repeated until data is stored. In addition,
When the shortage of the storage capacity is known in advance, the amount of unit graphic data to be processed may be set according to the shortage of the storage capacity. In the image processing apparatus according to the present invention, both the unit graphic data before processing and the non-overlapping new graphic data are stored in the pre-processing graphic data storage means, and the pre-processing graphic data storage means stores the non-overlapping new graphic data storage means. Also serve.

【0024】本発明は、前記請求項1〜7に記載の態様
の他に、下記の態様でも実施可能である。実施の態様
は、便宜上、請求項と同じ形式の実施態様項として記載
する。 (1)前記不重複新図形データ作成手段が、前記複数の単
位図形のうち、少なくとも一部が重複する重複単位図形
を検出する重複単位図形検出手段を含む請求項1ないし
3,5ないし7のいずれか1つに記載の画像処理装置。
この装置においては、重複単位図形検出手段により検出
された重複単位図形について不重複新図形のデータの作
成処理が行われる。 (2)前記重複単位図形検出手段が、前記複数の単位図形
の各2個について、一方の単位図形を規定する2個ずつ
の規定点により規定される有限線と、他方の単位図形を
規定する2個ずつの規定点により規定される有限線との
交点を検出する交点検出手段を含む請求項4ないし7,
実施態様項1のいずれか1つに記載の画像処理装置。こ
こにおいて「有限線」は、有限直線である線分と有限曲
線とを含む。単位図形が読取図形の場合、その読取図形
について読取図形領域が設定されるのであれば、その読
取図形領域を確定する輪郭線を有限線として他の単位図
形との交点を検出することができる。 (3)前記不重複新図形データ作成手段が、前記不重複新
図形の輪郭線を規定する輪郭線データを作成する輪郭線
データ作成手段を含む請求項1ないし7,実施態様項1
および2のいずれか1つに記載の画像処理装置。輪郭線
データ作成手段は、少なくとも一部が重複する複数の単
位図形の各輪郭線素から、他の単位図形の内側に位置す
る部分を除いた輪郭線素をつないで成る輪郭線を規定す
る輪郭線データを作成する。輪郭線データは、一般的に
は、複数の規定点の座標を表す座標データと直線,曲線
の別や曲線の種類を表すデータとの組合せによって構成
されるが、座標データのみ、あるいは直線と曲線との少
なくとも一方を表すデータのみにより構成されることも
ある。輪郭線データは規定点が減少する場合にのみ作成
されるようにしてもよく、あるいは規定点が減少しない
場合にも作成されるようにしてもよい。後者の場合、例
えば、輪郭線データに基づいてドットデータが作成さ
れ、図形が出力装置に出力される場合、ドットデータへ
の変換に要する時間が短縮される。不重複新図形の輪郭
線データが作成されない場合には、単位図形毎に単位図
形データに基づいてドットデータが作成されることとな
るが、この場合はドットデータの作成に使用される輪郭
線素の数が、不重複新図形の輪郭線データが作成された
と仮定した場合に比較して多くなり、ドットデータの作
成に要する時間が長くなるのに対し、規定点が減少しな
い場合にも不重複新図形の輪郭線データが作成されるよ
うにすれば、ドットデータ作成に要する時間の短縮量が
輪郭線データの作成に要する時間より多くなり、結果と
して出力が迅速に行われることとなるのである。 (4)前記処理前図形データ記憶手段が、前記複数の単位
図形のデータを、それら単位図形間の優先順位を判別可
能な状態で記憶するものであり、前記不重複新図形デー
タ作成手段が、前記複数の単位図形の2個が互いに重複
する際に、優先順位が上である単位図形の単位図形デー
タは変更せず、優先順位が下である単位図形の単位図形
データは優先順位が上である単位図形と重複しない部分
の部分図形データに変更する優先順位対応不重複新図形
データ作成手段を含む請求項1ないし4,6,7,実施
態様項1ないし3のいずれか1つに記載の画像処理装
置。少なくとも一部が重複する2個の単位図形の優先順
位は、例えば、単位図形データがポストスクリプト言語
により作成される場合には、単位図形データの処理前図
形データ記憶手段への格納順によって判定可能である。
後に格納される単位図形データほど優先順位が上と判定
されるのである。 (5)前記不重複新図形作成形態選択手段が、前記複数の
単位図形のうち少なくとも一部が重複する2個の単位図
形の色が異なる場合には前記優先順位対応不重複新図形
データ作成手段を作動させ、色が同じである場合には前
記輪郭線データ作成手段を作動させる色対応不重複新図
形作成形態選択手段を含む請求項5ないし7,実施態様
項1ないし4のいずれか1つに記載の画像処理装置。
「色が同じ」とは、図形がカラー図形であれば、色相お
よび濃度が同じであることであり、白黒図形であれば濃
度が同じであることである。色が同じであれば、少なく
とも一部が重複する2個の単位図形を1つの図形として
扱うことが可能であり、輪郭線データ作成手段を作動さ
せ、輪郭線データを作成させて差し支えない。色が異な
り、優先順位が定められている2つの単位図形の少なく
とも一部が重複する場合には、優先順位が低い方の単位
図形は重複部分が隠されてしまい、重複部分のデータは
不要である。しかし、優先順位が上である変更されない
単位図形と優先順位が下である単位図形の部分図形とを
1個の図形として扱うことはできないため、優先順位対
応不重複新図形データ作成手段を作動させるのである。
1頁,1文書等、予め定められた単位の画像を形成する
図形の全部の色が同じであるとき、不重複新図形作成形
態選択手段は、単位毎に不重複新図形作成形態を選択
し、上記単位中の複数の図形が色相と濃度との少なくと
も一方を異にする場合には、図形毎に不重複新図形作成
形態を選択することとなる。 (6)前記不重複新図形作成形態選択手段が、前記複数の
単位図形のうちの少なくとも一部が重複する単位図形の
一方が線図形あるいは読取図形の場合には前記優先順位
対応不重複新図形データ作成手段を作動させる図形種類
対応不重複新図形作成形態選択手段を含む請求項5ない
し7,実施態様項1ないし5のいずれか1つに記載の画
像処理装置。読取図形は、前述のように特殊な図形であ
るため、優先順位対応不重複新図形データ作成手段の作
動により、読取図形自身あるいは読取図形と重複する単
位図形が単位図形一部変更型不重複新図形に変更され
る。また、線図形は、一部が面図形や読取図形と重複す
る場合でも合体させることが不適当ないし不可能である
ため、優先順位対応不重複新図形データ作成手段が作動
させられ、線図形が単位図形一部変更型不重複新図形に
変更される。
The present invention can be implemented in the following modes in addition to the modes described in claims 1 to 7. The embodiments are conveniently described as an embodiment of the same type as the claims. (1) The non-overlapping new figure data creating means includes an overlapping unit figure detecting means for detecting an overlapping unit figure in which at least a part of the plurality of unit figures overlaps. The image processing device according to any one of claims.
In this apparatus, the process of creating the non-overlapping new graphic data is performed for the duplicate unit graphic detected by the duplicate unit graphic detecting means. (2) The overlapping unit figure detecting means defines, for each two of the plurality of unit figures, a finite line defined by two defining points defining one unit figure and the other unit figure. 8. An intersection detecting means for detecting an intersection with a finite line defined by two defined points each.
The image processing apparatus according to any one of the first aspect. Here, the “finite line” includes a line segment that is a finite straight line and a finite curve. When the unit figure is a read figure, if a read figure area is set for the read figure, the contour line that defines the read figure area can be used as a finite line to detect an intersection with another unit figure. (3) The non-overlapping new figure data creating means includes contour line data creating means for creating contour line data defining a contour line of the non-overlapping new figure.
The image processing apparatus according to any one of 1 and 2. The contour line data creating means defines a contour line formed by connecting contour line elements excluding a portion located inside another unit figure from each contour line element of a plurality of unit figures which at least partially overlap each other. Create line data. The contour line data is generally composed of a combination of coordinate data representing the coordinates of a plurality of specified points and data representing the type of a curve or a straight line or a curve. It may be composed only of data representing at least one of and. The contour line data may be created only when the specified points decrease, or may be created even when the specified points do not decrease. In the latter case, for example, when the dot data is created based on the contour line data and the figure is output to the output device, the time required for conversion into the dot data is shortened. If the outline data of the non-overlapping new figure is not created, the dot data will be created based on the unit figure data for each unit figure. In this case, the outline element used to create the dot data The number of dots increases compared to the case where the outline data of the new non-overlapping new figure is created, and the time required to create the dot data increases, while the overlap does not occur even if the specified points do not decrease. If the contour line data of the new figure is created, the amount of time required to create the dot data will be greater than the time required to create the contour line data, and as a result, the output will be performed quickly. . (4) The unprocessed figure data storage means stores the data of the plurality of unit figures in a state in which the priority order among the unit figures can be discriminated, and the non-overlapping new figure data creating means, When two of the plurality of unit figures overlap each other, the unit figure data of the unit figure having the higher priority is not changed, and the unit figure data of the unit figure having the lower priority is higher in the priority. 4. The priority-corresponding non-overlapping new graphic data creating means for changing to partial graphic data of a portion which does not overlap with a certain unit graphic is included in any one of claims 1 to 4, 6, 7 and embodiment 1 to 3. Image processing device. For example, when the unit graphic data is created by the PostScript language, the priority order of two unit graphics that at least partially overlap can be determined by the storage order of the unit graphic data in the preprocessed graphic data storage means. Is.
The unit graphic data stored later is determined to have higher priority. (5) The priority-corresponding non-overlapping new graphic data creating means, when the non-overlapping new graphic creation mode selecting means has different colors of two unit graphics in which at least a part of the plurality of unit graphics overlaps. 5. The method according to any one of claims 5 to 7 and embodiment 1 to 4, further comprising: The image processing device according to item 1.
"Same color" means that if the figure is a color figure, the hue and density are the same, and if it is a black and white figure, the density is the same. If the colors are the same, it is possible to treat two unit figures that at least partially overlap as one figure, and operate the contour line data creating means to create the contour line data. When at least a part of two unit figures with different colors and priorities are overlapped, the unit figure with the lower priority has the overlapped portion hidden, and the data of the overlapped portion is unnecessary. is there. However, since the unit graphic having the higher priority and the unit graphic having the lower priority and the partial graphic of the unit graphic having the lower priority cannot be handled as one graphic, the priority correspondence non-overlapping new graphic data creating means is activated. Of.
When all the graphics forming an image of a predetermined unit, such as one page and one document, have the same color, the non-overlapping new graphic creation form selecting means selects the non-overlapping new graphic creation form for each unit. When a plurality of figures in the unit differ in at least one of hue and density, the non-overlapping new figure creation mode is selected for each figure. (6) The priority-corresponding non-overlapping new graphic is used when the non-overlapping new graphic creation mode selection means is a line graphic or a read graphic when one of the unit graphics in which at least a part of the plurality of unit graphics overlaps. The image processing apparatus according to any one of claims 5 to 7 and embodiments 1 to 5, which includes non-overlapping new figure creation form selection means for operating the data creation means. Since the read figure is a special figure as described above, the read figure itself or a unit figure that overlaps the read figure is a unit figure partial change type non-overlapped new type by the operation of the priority correspondence non-overlapping new figure data creating means. Changed to a figure. Further, since it is inappropriate or impossible to combine the line figure even if a part of the line figure overlaps with the surface figure or the read figure, the priority correspondence non-overlapping new figure data creating means is activated to change the line figure. It is changed to a unit figure part change type non-overlapping new figure.

【0025】[0025]

【発明の実施の形態】以下、第1ないし第6の各発明に
共通の一実施形態であるインクジェットプリンタの画像
処理装置を図面に基づいて詳細に説明する。図1に示す
インクジェットプリンタ8は、箱状を成し、一部が開閉
可能なカバー10を有している。カバー10内にはフレ
ーム12が設けられており、フレーム12には、ゴム製
のプラテン14,キャリッジ16,キャリッジ駆動装置
18およびインク噴射装置20が設けられている。
DETAILED DESCRIPTION OF THE INVENTION An image processing apparatus for an ink jet printer, which is an embodiment common to the first to sixth inventions, will be described in detail below with reference to the drawings. The inkjet printer 8 shown in FIG. 1 has a box shape and has a cover 10 that can be partially opened and closed. A frame 12 is provided inside the cover 10, and the frame 12 is provided with a rubber platen 14, a carriage 16, a carriage driving device 18, and an ink ejecting device 20.

【0026】プラテン14の軸21は、フレーム12を
構成する一対の側壁板22,24により両端部を回転可
能に支持されるとともに、一方の側壁板24からの突出
端部にプラテンギヤ26が取り付けられている。側壁板
24には、図2に示すように、小径の第一ギヤ28およ
び大径の第二ギヤ30を有する複合ギヤ32が回転可能
に取り付けられており、第一ギヤ28はプラテンギヤ2
6に噛み合わされ、第二ギヤ30はフィードモータ34
の出力軸に固定の駆動ギヤ36に噛み合わされている。
したがって、フィードモータ34が所定方向に回転させ
られ、駆動ギヤ36が回転させられれば、複合ギヤ3
2,プラテンギヤ26が回転させられ、プラテン14が
回転させられて記録媒体たる記録用紙38(図1参照)
が送られる。
Both ends of the shaft 21 of the platen 14 are rotatably supported by a pair of side wall plates 22 and 24 constituting the frame 12, and a platen gear 26 is attached to an end protruding from one side wall plate 24. ing. As shown in FIG. 2, a composite gear 32 having a small-diameter first gear 28 and a large-diameter second gear 30 is rotatably attached to the side wall plate 24, and the first gear 28 is the platen gear 2
6, the second gear 30 is engaged with the feed motor 34.
Is engaged with a drive gear 36 fixed to the output shaft.
Therefore, if the feed motor 34 is rotated in a predetermined direction and the drive gear 36 is rotated, the composite gear 3 is rotated.
2, the platen gear 26 is rotated, the platen 14 is rotated, and the recording sheet 38 as a recording medium (see FIG. 1).
Is sent.

【0027】前記プラテン14の前側には、図1に示す
ように、前記側壁板22と、前記フレーム12を構成す
る別の側壁板44とによって両端部を支持されたガイド
ロッド46がプラテン14の回転軸線と平行に配設され
ている。フレーム12にはまた、ガイドロッド46と平
行なガイドレール48が設けられており、前記キャリッ
ジ16はガイドロッド46に摺動可能に嵌合されるとと
もに、ガイドレール48により移動可能に支持されてい
る。
On the front side of the platen 14, as shown in FIG. 1, guide rods 46 having both ends supported by the side wall plate 22 and another side wall plate 44 constituting the frame 12 are provided on the platen 14. It is arranged parallel to the axis of rotation. The frame 12 is also provided with a guide rail 48 parallel to the guide rod 46, and the carriage 16 is slidably fitted to the guide rod 46 and movably supported by the guide rail 48. .

【0028】前記フレーム12のキャリッジ移動領域
(側壁板22と側壁板44との間の領域)の一端には、
駆動プーリ50が回転可能に取り付けられ、他端に従動
プーリ52が回転可能に取り付けられるとともに、それ
らプーリ50,52に無端のタイミングベルト54が巻
き掛けられている。タイミングベルト54はキャリッジ
16の下端部に連結されており、駆動プーリ50がキャ
リッジ駆動モータ56によって回転駆動されることによ
り、キャリッジ16がガイドロッド46,ガイドレール
48に案内されてプラテン14の回転軸線と平行な方向
に往復移動させられる。駆動プーリ50,従動プーリ5
2,キャリッジ駆動モータ56等がキャリッジ駆動装置
18を構成しているのである。
At one end of the carriage movement region of the frame 12 (the region between the side wall plate 22 and the side wall plate 44),
The drive pulley 50 is rotatably attached, the driven pulley 52 is rotatably attached to the other end, and an endless timing belt 54 is wound around the pulleys 50 and 52. The timing belt 54 is connected to the lower end of the carriage 16, and the drive pulley 50 is rotationally driven by the carriage drive motor 56, so that the carriage 16 is guided by the guide rods 46 and the guide rails 48 and the rotation axis of the platen 14. It can be reciprocated in the direction parallel to. Drive pulley 50, driven pulley 5
2. The carriage drive motor 56 and the like constitute the carriage drive device 18.

【0029】インク噴射装置20を説明する。キャリッ
ジ16上には、上方および前方(プラテン14とは反対
側の方)が開放された箱状のヘッドホルダ60が取り付
けられている。このヘッドホルダ60の後部、すなわち
プラテン14側の端部に設けられた立壁部62には、図
2に示すように、インク噴射用の4つの記録ヘッド、す
なわちC(シアン)のインクを噴射する記録ヘッド6
4,M(マゼンタ)のインクを噴射する記録ヘッド6
6,Y(イエロー)のインクを噴射する記録ヘッド6
8,K(ブラック)のインクを噴射する記録ヘッド70
がキャリッジ16の移動方向に平行な1列に並んで設け
られている。
The ink ejecting apparatus 20 will be described. On the carriage 16, a box-shaped head holder 60 whose upper side and front side (on the side opposite to the platen 14) are opened is attached. As shown in FIG. 2, four recording heads for ejecting ink, that is, C (cyan) ink is ejected to the rear portion of the head holder 60, that is, the standing wall portion 62 provided at the end portion on the platen 14 side. Recording head 6
Recording head 6 for ejecting 4, M (magenta) ink
Recording head 6 for ejecting 6, Y (yellow) ink
Recording head 70 for ejecting 8, K (black) ink
Are arranged side by side in a line parallel to the moving direction of the carriage 16.

【0030】これら記録ヘッド64〜70にはそれぞ
れ、インクを噴射する複数の噴射ノズル(図示省略)、
複数の噴射ノズルに対応する複数のインク供給通路(図
示省略)が形成されるとともに、インク供給通路にはイ
ンク噴射のための圧電素子が設けられている。記録ヘッ
ド64〜70にはまた、連結筒部72,74,76,7
8が一体的に設けられるとともに、立壁部62を貫通
し、立壁部62から前方へ突出させられている。
A plurality of ejection nozzles (not shown) for ejecting ink are respectively provided on these recording heads 64-70.
A plurality of ink supply passages (not shown) corresponding to the plurality of ejection nozzles are formed, and a piezoelectric element for ejecting ink is provided in the ink supply passage. The recording heads 64 to 70 also include connecting cylinder portions 72, 74, 76, 7
8 is integrally provided, penetrates the standing wall portion 62, and projects forward from the standing wall portion 62.

【0031】ヘッドホルダ60上には、C(シアン)の
インクを収容したインクカートリッジ80、M(マゼン
タ)のインクを収容したインクカートリッジ82、Y
(イエロー)のインクを収容したインクカートリッジ8
4、およびK(ブラック)のインクを収容したインクカ
ートリッジ86がそれぞれ、各インクカートリッジに収
容された色のインクを噴射する記録ヘッドと対応する位
置に着脱可能に取り付けられている。前記連結筒部72
〜78の立壁部62からの突出端部が、インクカートリ
ッジ80〜86に形成された図示しないインク供給口に
挿通され、インクカートリッジに内装されているインク
吸収体に接触させられる。それによりインクカートリッ
ジ80〜86の各インクが連結筒部72〜78を介して
記録ヘッド64〜70の複数のインク供給通路にそれぞ
れ供給され、圧電素子が記録ヘッド64〜70毎に駆動
されることにより、記録ヘッド64〜70の噴射ノズル
から4色のインクが噴射されて、記録用紙38にフルカ
ラーで画像が記録される。
On the head holder 60, an ink cartridge 80 containing C (cyan) ink, an ink cartridge 82 containing M (magenta) ink, and Y.
Ink cartridge 8 containing (yellow) ink
The ink cartridges 86 containing the 4th and K (black) inks are removably attached to the positions corresponding to the recording heads that eject the inks of the colors contained in the respective ink cartridges. The connecting cylinder portion 72
The projecting end portions of the wall portions 62 to 78 from the standing wall portion 62 are inserted into the ink supply ports (not shown) formed in the ink cartridges 80 to 86, and brought into contact with the ink absorber incorporated in the ink cartridges. As a result, each ink of the ink cartridges 80 to 86 is supplied to the plurality of ink supply passages of the recording heads 64 to 70 through the connecting cylinders 72 to 78, and the piezoelectric element is driven for each of the recording heads 64 to 70. As a result, four color inks are ejected from the ejection nozzles of the recording heads 64 to 70, and a full-color image is recorded on the recording paper 38.

【0032】本インクジェットプリンタ8は、図3に示
す制御装置90により制御される。制御装置90は、C
PU92と、プログラマブル・ペリフェラル・インタフ
ェース(PPI)である周辺入出力インタフェース94
(図にはPPI94として示されている)とを備えた1
チップCPUにより構成される第一制御部96と、同様
にCPU98および周辺入出力インタフェース99(図
にはPPI99として示されている)を備えた1チップ
CPUにより構成される第二制御部101を備えてい
る。
The ink jet printer 8 is controlled by the control device 90 shown in FIG. The controller 90 is C
PU 92 and peripheral input / output interface 94 that is a programmable peripheral interface (PPI)
1 (shown as PPI 94 in the figure)
A first controller 96 configured by a chip CPU and a second controller 101 configured by a one-chip CPU similarly including a CPU 98 and a peripheral input / output interface 99 (shown as PPI 99 in the figure) are provided. ing.

【0033】第一制御部96には、ROM100,RA
M102および第二制御部101と共用の中間データバ
ッファ106がバス104によって接続されている。R
AM102には、図4(a)に示すように、データ処理
用の処理バッファ108,画像データメモリ110,ド
ットデータを記憶するドットデータメモリ112等、記
録に必要な種々のメモリやバッファが設けられている。
処理バッファ108には、図4(b)に示すように、未
処理領域140,処理済領域142,不重複新図形デー
タ格納領域144,不重複部分図形データ格納領域14
6,交差フラグ148,線・面フラグ150,カウンタ
152等が設けられている。また、ROM100には、
図9にフローチャートで示す図形処理ルーチン,図10
にフローチャートで示すデータ量減少処理ルーチン,図
11にフローチャートで示す単位図形交差判定ルーチン
を始めとし、画像の記録に必要な種々のプログラムが格
納されている。
The first controller 96 includes ROM 100, RA
An intermediate data buffer 106 shared with M102 and the second control unit 101 is connected by a bus 104. R
As shown in FIG. 4A, the AM 102 is provided with various memories and buffers necessary for recording, such as a processing buffer 108 for data processing, an image data memory 110, and a dot data memory 112 for storing dot data. ing.
As shown in FIG. 4B, the processing buffer 108 includes an unprocessed area 140, a processed area 142, a non-overlapping new graphic data storage area 144, and a non-overlapping partial graphic data storage area 14.
6, an intersection flag 148, a line / plane flag 150, a counter 152, etc. are provided. In addition, in the ROM 100,
The figure processing routine shown in the flowchart of FIG. 9, FIG.
Various data necessary for recording an image are stored, including a data amount reduction processing routine shown in FIG. 11 and a unit figure intersection determination routine shown in FIG.

【0034】バス104にはまた、印字制御回路116
が接続されている。印字制御回路116はハードロジッ
ク回路により構成されており、記録ヘッド64〜70の
各々に設けられた複数の圧電素子を駆動するためのヘッ
ド駆動回路118に噴射駆動信号を出力する。なお、ヘ
ッド駆動回路118は、図3には1つのみ示されている
が、実際には記録ヘッド64〜70の各々について設け
られている。
The bus 104 also has a print control circuit 116.
Is connected. The print control circuit 116 is composed of a hard logic circuit, and outputs an ejection drive signal to a head drive circuit 118 for driving a plurality of piezoelectric elements provided in each of the recording heads 64-70. Although only one head drive circuit 118 is shown in FIG. 3, it is actually provided for each of the recording heads 64-70.

【0035】周辺入出力インタフェース94には、キャ
リッジ駆動モータ56を駆動するためのキャリッジ駆動
回路120と、フィードモータ34を駆動するための駆
動回路122と、電源スイッチや各種のスイッチおよび
表示ランプ等が設けられた操作パネル124等がそれぞ
れ接続されている。
The peripheral input / output interface 94 includes a carriage drive circuit 120 for driving the carriage drive motor 56, a drive circuit 122 for driving the feed motor 34, a power switch, various switches and an indicator lamp. The operation panels 124 and the like that are provided are connected to each other.

【0036】第二制御部101のCPU98には、図3
に示すように、バス130によって前記中間データバッ
ファ106が接続されるとともに、ROM132,RA
M134が接続されている。RAM134には受信バッ
ファ136が設けられており、PPI99には、ホスト
コンピュータなどの外部電子機器126から送信される
画像データを受信可能な通信用インタフェース128が
接続されている。
The CPU 98 of the second control unit 101 has the configuration shown in FIG.
As shown in FIG. 2, the intermediate data buffer 106 is connected by a bus 130, and the ROM 132, RA
M134 is connected. The RAM 134 is provided with a reception buffer 136, and the PPI 99 is connected with a communication interface 128 capable of receiving image data transmitted from an external electronic device 126 such as a host computer.

【0037】外部電子機器126から送信される画像デ
ータがカラー画像データの場合、4つの記録ヘッド64
〜70によりインクが噴射され、シアン,マゼンタ,イ
エローおよびブラックが混色されてカラー画像が記録さ
れる。カラー画像の記録にあたっては、アンダカラーリ
ムーバル(UCR)処理が行われる。シアン,マゼン
タ,イエローには、所謂アクロマチック(無彩色)成分
が共通して含まれており、その共通部分についてはブラ
ックに置き換えることが可能である。そのため、画像デ
ータに含まれる画素毎のシアン,マゼンタおよびイエロ
ーの3色の各濃度のデータに基づいて、シアン,マゼン
タおよびイエローの3色中の最低濃度について、予め設
定された黒濃度パターンに従ってブラックの濃度が設定
され、3色の各濃度からそのブラックの濃度が減算さ
れ、シアン,マゼンタおよびイエローの最終的な濃度が
求められる。このアンダカラーリムーバル処理により、
記録画像のコントラストが向上し、特にシャドー部の濃
度を十分に表現することができるとともに、シアン,マ
ゼンタおよびイエローのインクを節約し、かつべた付き
を防止することができる。
When the image data transmitted from the external electronic device 126 is color image data, four recording heads 64 are provided.
The ink is ejected by .about.70, and cyan, magenta, yellow, and black are mixed to record a color image. When recording a color image, an undercolor removal (UCR) process is performed. Cyan, magenta, and yellow commonly include so-called achromatic (achromatic) components, and the common part can be replaced with black. Therefore, based on the data of the densities of the three colors of cyan, magenta, and yellow for each pixel included in the image data, the black density is set in accordance with a preset black density pattern for the lowest density of the three colors of cyan, magenta, and yellow. Is set, and the black densities are subtracted from the respective densities of the three colors to obtain the final densities of cyan, magenta, and yellow. By this undercolor removal process,
The contrast of the recorded image is improved, the density of the shadow portion can be sufficiently expressed, and the inks of cyan, magenta and yellow can be saved and stickiness can be prevented.

【0038】ホストコンピュータ等の外部電子機器12
6から供給された画像データは、受信バッファ136に
格納される。画像データは、本実施形態においてはポス
トスクリプト言語を用いて作成されており、面図形,線
図形および読取図形をそれぞれ表す3種類の図形データ
が供給される。面図形は、凹多角形,凸多角形,辺が互
いに交差する辺交差多角形,輪郭線がベジエ曲線により
規定される図形,円等、種々の形状を有し、面積を有す
るとともに、輪郭線により規定される閉空間全体が一色
で塗り潰される図形である。面図形の場合、図形データ
は、各面図形の輪郭線を規定するデータ(例えば、多角
形であれば複数の規定点の各座標データ、円であれば半
径および中心位置のデータ)、色データ(シアン,マゼ
ンタ,イエロー,黒の各濃度データ)等を含む。線図形
は、本実施形態では、有限直線,有限曲線あるいは有限
直線および有限曲線が組み合わされて成り、図形データ
は、各線を規定するデータ(例えば、直線あるいは曲線
を規定する複数の規定点の座標データ,あるいは直線あ
るいは曲線を規定する式等)、色データ等を含む。線図
形は、面図形の輪郭線ではない開いた線図形であるとす
る。読取図形は、スキャナやイメージセンサを用いた原
画の読取りにより得られ、画像作成領域内に設定された
読取図形領域に組み込まれる。そのため、読取図形の場
合、読取図形領域を規定するデータ,読取図形領域内の
多数の画素毎に設定された色データを含む。本実施形態
では、読取図形領域は、X軸に平行な2辺およびY軸に
平行な2辺を有する矩形であり、読取図形領域を規定す
るデータは、2個の矩形規定点、すなわちX座標値,Y
座標値が最大である点と、X座標値,Y座標値が最小で
ある点の各座標データを含む。なお、図形が面図形,線
図形および読取図形のいずれであるかは、図形データの
送信時に送られる面図形であることを指示するコマン
ド,線図形であることを指示するコマンド,読取図形で
あることを指示するコマンドからわかる。
External electronic device 12 such as a host computer
The image data supplied from No. 6 is stored in the reception buffer 136. In the present embodiment, the image data is created using the PostScript language, and three types of graphic data representing a surface graphic, a line graphic, and a read graphic are supplied. A surface figure has various shapes such as a concave polygon, a convex polygon, a side-crossing polygon whose sides intersect each other, a figure whose contour line is defined by a Bezier curve, a circle, and the like, and has an area and a contour line. Is a figure in which the entire closed space defined by is filled with one color. In the case of a surface figure, the figure data is data that defines the contour line of each surface figure (for example, coordinate data of a plurality of specified points if it is a polygon, radius and center position data if it is a circle), and color data. (Cyan, magenta, yellow, black density data) and the like are included. In the present embodiment, the line figure is composed of a finite straight line, a finite curve, or a combination of a finite straight line and a finite curve, and the graphic data is data defining each line (for example, coordinates of a plurality of defined points defining a straight line or a curve). Data, equations that define straight lines or curves, etc., color data, etc. It is assumed that the line figure is an open line figure that is not the contour line of the area figure. The read figure is obtained by reading the original image using a scanner or an image sensor, and is incorporated in the read figure area set in the image creation area. Therefore, in the case of the read graphic, the data defining the read graphic area and the color data set for each of a large number of pixels in the read graphic area are included. In the present embodiment, the read graphic area is a rectangle having two sides parallel to the X axis and two sides parallel to the Y axis, and the data defining the read graphic area includes two rectangle defining points, that is, X coordinates. Value, Y
Each coordinate data of a point having the maximum coordinate value and a point having the minimum X coordinate value and Y coordinate value is included. Whether the figure is a surface figure, a line figure, or a read figure is a command that indicates that the figure is a plane figure, a command that indicates that the figure is a line figure, or a read figure. You can tell from the command that tells that.

【0039】また、ポストスクリプト言語を用いて図形
データが作成される場合、多数の図形データのうち、後
に作成された図形データにより表される図形が優先して
記録される。複数の図形が少なくとも一部において重複
するとき、後で作られた図形データにより表される図形
が先に作られた図形データにより表される図形の上に記
録され、先に作られた図形データにより表される図形の
うち、後で作られた図形データにより表される図形と重
複する部分は記録されないのである。
When the graphic data is created using the PostScript language, the graphic represented by the graphic data created later is preferentially recorded among a large number of graphic data. When a plurality of figures overlap at least in part, the figure represented by the figure data created later is recorded on the figure represented by the figure data created earlier, and the figure data created earlier Of the figure represented by, the portion overlapping with the figure represented by the figure data created later is not recorded.

【0040】なお、文字を表す図形データは、文字を規
定する規定点の座標データの集合により構成され、凹多
角形,凸多角形と同様に処理され、凹多角形の場合は凸
多角形に分割されて処理される。
The graphic data representing a character is composed of a set of coordinate data of defined points that define the character, and is processed in the same manner as a concave polygon and a convex polygon. It is divided and processed.

【0041】画像データの受信後、凹多角形は複数の凸
多角形に分割され、円は凸多角形に変換され、ベジエ曲
線により規定される図形は複数の凸多角形から成る図形
に置き換えられ、曲線は直線に変換される。これらの変
換処理は、第二制御部101においてROM132に格
納された変換処理プログラムに従って行われるが、この
変換処理は既に知られた処理であり、凹多角形の凸多角
形への変換および辺交差多角形の凸多角形への変換を簡
単に説明する。
After receiving the image data, the concave polygon is divided into a plurality of convex polygons, the circle is converted into a convex polygon, and the figure defined by the Bezier curve is replaced with a figure consisting of a plurality of convex polygons. , The curve is converted to a straight line. These conversion processes are performed according to the conversion process program stored in the ROM 132 in the second control unit 101. This conversion process is a known process, and the conversion of the concave polygon into the convex polygon and the edge crossing are performed. The conversion of a polygon into a convex polygon will be briefly described.

【0042】例えば、図5(a)に示す凹多角形158
は、図5(b)に示すように複数の凸多角形160に分
割される。分割は、凹多角形158の規定点を一定の方
向、すなわち規定点の座標が格納されている順にたど
り、Y座標値が増大から減少に転ずる極大点、減少から
増大に転ずる極小点を検出する。そして、これら極大
点,極小点において交差する2辺が成す内角が180度
より大きければ、その点を通り、X軸に平行な分割線で
凹多角形158を分割する。このような点がなければ、
凹多角形158の規定点を一定の方向にたどり、X座標
値について極大点、極小点を検出し、内角が180度よ
り大きい点を通り、Y軸に平行な分割線で分割する。こ
の分割は、凹多角形がなくなるまで繰り返し実行され
る。同様にして、図6(a)に示す凹多角形162は図
6(b)に示す凸多角形164に分割される。また、図
7(a)に示す辺交差多角形166については、辺の交
点が求められ、その交点を通り、辺交差多角形166を
構成するいずれの辺とも交差しない分割線において分割
され、図7(b)に示す凸多角形168が得られる。
For example, a concave polygon 158 shown in FIG.
Is divided into a plurality of convex polygons 160 as shown in FIG. In the division, the prescribed points of the concave polygon 158 are traced in a fixed direction, that is, in the order in which the coordinates of the prescribed points are stored, and the maximum point at which the Y coordinate value changes from increase to decrease and the minimum point at which the Y coordinate value changes from decrease to increase are detected. . Then, if the interior angle formed by the two sides intersecting at the maximum point and the minimum point is greater than 180 degrees, the concave polygon 158 is divided by a dividing line that passes through the point and is parallel to the X axis. If there is no such point,
The prescribed points of the concave polygon 158 are traced in a fixed direction, the maximum point and the minimum point of the X coordinate value are detected, and the points which have an interior angle greater than 180 degrees are passed through and are divided by a dividing line parallel to the Y axis. This division is repeated until there are no concave polygons. Similarly, the concave polygon 162 shown in FIG. 6A is divided into the convex polygon 164 shown in FIG. 6B. In addition, for the side-intersecting polygon 166 shown in FIG. 7A, the intersection of the sides is obtained, and the line is divided at a dividing line that passes through the intersection and does not intersect any of the sides forming the side-intersecting polygon 166. A convex polygon 168 shown in 7 (b) is obtained.

【0043】画像データの受信後、第二制御部101に
おいてROM132に格納された中間データ作成プログ
ラムに従って中間データが作成され、中間データバッフ
ァ106に格納される。凹多角形,辺交差多角形,曲線
等、凸多角形や直線への変換処理が必要な図形について
は、それらの変換処理により得られた凸多角形や直線に
ついて中間データが作成される。
After receiving the image data, the second control unit 101 creates intermediate data according to the intermediate data creating program stored in the ROM 132, and stores the intermediate data in the intermediate data buffer 106. For a figure that needs to be converted into a convex polygon or a straight line such as a concave polygon, a side-crossing polygon, or a curve, intermediate data is created for the convex polygon or the straight line obtained by these conversion processes.

【0044】中間データは、図8(a)に示す五角形1
72を例に取れば、図8(b)に示すように、図形が面
図形であることを表すフラグ,五角形172を規定する
規定点数,五角形172に外接し、X軸に平行な2辺と
Y軸に平行な2辺とを有する外接矩形174を規定する
2点、すなわちX座標値およびY座標値がいずれも最大
である点およびいずれも最小である点の座標データ,五
角形172を規定する規定点の座標データおよび色デー
タを含む。五角形172を規定する規定点の座標データ
は、図形の輪郭線を一方向(本実施形態においては時計
方向)にたどる順に格納される。線図形についても同様
に、線図形であることを表すフラグ,線図形を規定する
規定点数,線図形に外接する外接矩形を規定する2点の
座標データ,線図形を規定する規定点の座標データおよ
び色データを含む。図30(a)に示す線図形260を
例に取れば、図30(b)に示すように中間データが作
成される。なお、線図形が複数の有限線の集合により構
成される場合でも、1色で描かれるものとする。262
は、線図形260について設定された外接矩形である。
読取図形について設定される中間データは、読取図形で
あることを表すフラグ,矩形の読取図形領域を規定する
2点の座標データ,読取図形領域内の多数の画素毎に設
定された色データを含む。
The intermediate data is the pentagon 1 shown in FIG.
Taking 72 as an example, as shown in FIG. 8B, a flag indicating that the figure is a surface figure, a specified number of points that define the pentagon 172, and two sides that are circumscribed to the pentagon 172 and are parallel to the X axis. Two points defining a circumscribing rectangle 174 having two sides parallel to the Y axis, that is, coordinate data of a point having the maximum X coordinate value and a minimum Y coordinate value, and a pentagon 172 are defined. Includes coordinate data and color data for defined points. The coordinate data of the defined points defining the pentagon 172 are stored in the order of tracing the contour line of the graphic in one direction (clockwise in the present embodiment). Similarly for a line figure, a flag indicating that it is a line figure, a specified number of points that define the line figure, two points of coordinate data that defines a circumscribed rectangle that circumscribes the line figure, and coordinate data of a specified point that defines the line figure. And color data. Taking the line figure 260 shown in FIG. 30A as an example, intermediate data is created as shown in FIG. 30B. Even if the line figure is composed of a set of a plurality of finite lines, it is assumed to be drawn in one color. 262
Is a circumscribed rectangle set for the line graphic 260.
The intermediate data set for the read figure includes a flag indicating the read figure, coordinate data of two points defining a rectangular read figure area, and color data set for each of a number of pixels in the read figure area. .

【0045】次に、図9に示す図形処理ルーチンに基づ
いて中間データバッファ106に格納された中間データ
の処理を説明する。なお、本実施形態においては、読取
図形が面図形,線図形および別の読取図形と重複するこ
とはないものとする。図形処理ルーチンのステップ1
(以下、S1と略記する。他のステップについても同
じ。)において中間データバッファ106に中間データ
が格納されているか否かが判定される。中間データが格
納されていればS1の判定結果がYESになってS2が
実行され、中間データが読取図形を表すデータであるか
否かが判定される。この判定は、中間データの作成時に
セットされたフラグが面図形,線図形,読取図形のいず
れを表すフラグであるかに基づいて行われ、読取図形で
なければS2の判定結果がNOになり、S3が実行され
て線・面フラグ150がセットされる。格納された中間
データが面図形あるいは線図形について作成されたデー
タであることが記憶されるのである。
Next, the processing of the intermediate data stored in the intermediate data buffer 106 will be described based on the graphic processing routine shown in FIG. In the present embodiment, it is assumed that the read figure does not overlap the area figure, the line figure, and another read figure. Step 1 of the graphics processing routine
In (hereinafter, abbreviated as S1. The same applies to other steps), it is determined whether or not the intermediate data is stored in the intermediate data buffer 106. If the intermediate data is stored, the determination result of S1 is YES and S2 is executed to determine whether or not the intermediate data is the data representing the read figure. This determination is made based on whether the flag set at the time of creating the intermediate data is a flag indicating a surface figure, a line figure, or a read figure. If it is not a read figure, the determination result of S2 is NO, S3 is executed and the line / face flag 150 is set. It is stored that the stored intermediate data is data created for the surface graphic or the line graphic.

【0046】次いでS4が実行され、中間データが1
つ、中間データバッファ106から取り出されて処理バ
ッファ108の未処理領域140に格納される。次いで
S5が実行され、カウンタ152のカウント値nが1増
加させられた後、S6において未処理領域140に中間
データがN個格納されたか否かが判定される。この判定
結果は当初はNOであり、ルーチンの実行はS1に戻
る。
Next, S4 is executed and the intermediate data is 1
Then, it is taken out from the intermediate data buffer 106 and stored in the unprocessed area 140 of the processing buffer 108. Next, S5 is executed, the count value n of the counter 152 is incremented by 1, and then it is determined in S6 whether or not N pieces of intermediate data are stored in the unprocessed area 140. The result of this determination is initially NO, and execution of the routine returns to S1.

【0047】処理バッファ108の未処理領域140に
中間データがN個格納されればS6の判定はYESにな
り、S7においてカウント値nが0にセットされた後、
S8が実行され、図10に示すデータ量減少処理ルーチ
ンに従ってデータ量の減少処理が行われる。ここでは、
処理バッファ108に8個の中間データが格納されたと
きにデータ減少処理が行われるとし、図12に示す8個
の単位図形U1 〜U8により構成される単位図形群17
6を例に取り、データ量の減少処理を説明する。なお、
「単位図形」は複数の図形の集合を構成する一つの図形
の呼称であり、面図形,線図形および読取図形が含まれ
る。
If N pieces of intermediate data are stored in the unprocessed area 140 of the processing buffer 108, the determination in S6 is YES, and after the count value n is set to 0 in S7,
S8 is executed, and the data amount reduction processing is performed according to the data amount reduction processing routine shown in FIG. here,
It is assumed that the data reduction processing is performed when eight intermediate data are stored in the processing buffer 108, and the unit figure group 17 composed of eight unit figures U 1 to U 8 shown in FIG.
The process of reducing the data amount will be described by taking 6 as an example. In addition,
The "unit figure" is a name of one figure that constitutes a set of a plurality of figures, and includes a plane figure, a line figure, and a read figure.

【0048】データ量減少処理ルーチンにおいては、ま
ず、S101が実行され、処理バッファ108の未処理
領域140に格納された中間データのうち、先頭の2つ
の中間データによりそれぞれ表される単位図形(ここで
はU1 およびU2 )について設定された外接矩形が離れ
ているか否かが判定される。
In the data amount reduction processing routine, first, S101 is executed, and among the intermediate data stored in the unprocessed area 140 of the processing buffer 108, the unit graphic (here Then, it is determined whether the circumscribed rectangles set for U 1 and U 2 ) are separated.

【0049】外接矩形はX軸に平行な2辺とY軸に平行
な2辺とを有する矩形であり、2つの外接矩形が少なく
とも一部において重なっていれば、一方の外接矩形のX
座標値の最大値および最小値の少なくとも一方が、他方
の外接矩形のX座標値の最小値と最大値との間にあり、
あるいは値が2個共に一致し、かつ、一方の外接矩形の
Y座標値の最大値および最小値の少なくとも一方が、他
方の外接矩形のY座標値の最小値と最大値との間にあ
り、あるいは値が2個共に一致することとなる。
The circumscribed rectangle is a rectangle having two sides parallel to the X axis and two sides parallel to the Y axis. If the two circumscribed rectangles at least partially overlap each other, the X of one circumscribed rectangle is determined.
At least one of the maximum value and the minimum value of the coordinate values is between the minimum value and the maximum value of the X coordinate values of the circumscribed rectangle of the other,
Alternatively, the two values match each other, and at least one of the maximum value and the minimum value of the Y coordinate values of one circumscribing rectangle is between the minimum value and the maximum value of the Y coordinate values of the other circumscribing rectangle. Alternatively, the two values will match.

【0050】例えば、図13に示すように、2つの外接
矩形180,182が一部において重なっていれば、一
方の外接矩形180を規定するX座標値x2 が、他方の
外接矩形182を規定する2つのX座標値x3 ,x4
間にあり、Y座標値y2 が2つのY座標値y3 ,y4
間にあるのである。したがって、2つの外接矩形のうち
の一方(ここでは、2つの中間データのうち、先に格納
された中間データにより規定される外接矩形)を規定す
る2個の規定点の各X座標値,Y座標値のそれぞれにつ
いて、X座標値が他方の外接矩形(2つの中間データの
うち、後に格納された中間データにより規定される外接
矩形)を規定する2個の規定点の各X座標値の間の値で
あるかを調べ、Y座標値が他方の外接矩形を規定する2
個の規定点の各Y座標値の間の値であるかを調べること
により、2つの外接矩形が交差しているか否か、すなわ
ち離間しているか否かがわかる。
For example, as shown in FIG. 13, if two circumscribing rectangles 180 and 182 partially overlap each other, the X coordinate value x 2 defining one circumscribing rectangle 180 defines the other circumscribing rectangle 182. Between the two X coordinate values x 3 and x 4 , and the Y coordinate value y 2 lies between the two Y coordinate values y 3 and y 4 . Therefore, the X coordinate values, Y of the two defined points that define one of the two circumscribed rectangles (here, the circumscribed rectangle defined by the previously stored intermediate data of the two intermediate data). For each of the coordinate values, between the X coordinate values of the two specified points whose X coordinate value defines the other circumscribed rectangle (the circumscribed rectangle defined by the intermediate data stored later among the two intermediate data) , The Y coordinate value defines the other circumscribed rectangle 2
It is possible to know whether or not the two circumscribing rectangles intersect, that is, whether or not they are separated from each other, by checking whether or not the values are between the Y coordinate values of the specified points.

【0051】なお、4つの辺のうちの1つを共有した状
態で2つの外接矩形が隣接している場合等、一方の外接
矩形を規定する規定点のX座標値が他方の外接矩形を規
定する2つのX座標値の一方と一致する場合がある。こ
のような場合、例えば、X座標値の並び順を調べ、一方
の外接矩形の2つのX座標値のうち、他方の外接矩形の
X座標値と一致しない方のX座標値と、他方の外接矩形
の2つのX座標値のうち、一方の外接矩形のX座標値と
一致しない方のX座標値とが、一致するX座標値を挟ん
で大きい側と小さい側とに位置する場合は、2つの外接
矩形が重複しておらず、離れていると判定することがで
きる。Y座標値が一致する場合も同じである。また、2
つの外接矩形の大きさが同じであり、同じ位置にあっ
て、完全に重複している場合、2個の規定点の座標値が
一致することから外接矩形の一致がわかる。さらに、2
つの外接矩形のうち、一方が他方に含まれている場合も
あり、これは、内包される外接矩形の2つずつのX座標
値,Y座標値が、外側の外接矩形の2つずつのX座標
値,Y座標値の間に位置することからわかる。これも重
複の一種である。
When two circumscribing rectangles are adjacent to each other while sharing one of the four sides, the X coordinate value of the specified point defining one circumscribing rectangle defines the other circumscribing rectangle. May coincide with one of the two X coordinate values. In such a case, for example, the arrangement order of the X coordinate values is checked, and of the two X coordinate values of the one circumscribing rectangle, the X coordinate value that does not match the X coordinate value of the other circumscribing rectangle and the other circumscribing rectangle. Of the two X coordinate values of the rectangle, if the X coordinate value of one of the circumscribing rectangles and the X coordinate value of the one that does not match are located on the larger side and the smaller side with the matching X coordinate value sandwiched therebetween, then 2 It can be determined that the two circumscribing rectangles do not overlap and are separated. The same applies when the Y coordinate values match. Also, 2
When the two circumscribed rectangles have the same size and are located at the same position and completely overlap with each other, the circumscribed rectangles coincide with each other because the coordinate values of the two defined points coincide with each other. In addition, 2
In some cases, one of the two circumscribing rectangles is included in the other. This means that two X-coordinate values and two Y-coordinate values of the included circumscribing rectangle are two X-coordinate values of the outer circumscribing rectangle. It can be seen from the fact that it is located between the coordinate value and the Y coordinate value. This is also a kind of duplication.

【0052】2つの外接矩形が離れていればS101の
判定結果はYESになってS116が実行され、未処理
領域140に格納された先頭の中間データが処理済領域
142に移される。
If the two circumscribed rectangles are separated, the determination result of S101 is YES and S116 is executed, and the leading intermediate data stored in the unprocessed area 140 is moved to the processed area 142.

【0053】図14に示すように、単位図形U1 ,U2
の各外接矩形184,186は交差しているため、S1
01の判定結果はNOになってS102が実行され、単
位図形U1 ,U2 が交差しているか否かの判定が行われ
る。この判定は、図11に示す単位図形交差判定ルーチ
ンに従って行われる。まず、S201において、2つの
単位図形のうち、1番目の単位図形、すなわち未処理領
域140に先に格納された中間データにより規定される
単位図形(ここでは単位図形U1 )の辺を指定する辺指
定値iが1にセットされるとともに、交差フラグ148
がリセットされる。
As shown in FIG. 14, unit figures U 1 and U 2
Since the circumscribed rectangles 184 and 186 of No. 1 intersect, S1
The determination result of 01 is NO and S102 is executed to determine whether the unit figures U 1 and U 2 intersect. This determination is performed according to the unit graphic intersection determination routine shown in FIG. First, in S201, one of the two unit graphics, specifying the first unit graphic, that side of the unit graphic defined by the intermediate data stored in the previously untreated areas 140 (unit graphic U 1 in this case) The side designation value i is set to 1 and the intersection flag 148
Is reset.

【0054】次いで、S202において2番目の単位図
形、すなわち未処理領域140に後に格納された中間デ
ータにより規定される単位図形(ここでは単位図形U
2 )の辺を指定する辺指定値jが1にセットされる。辺
とは、面図形については2個の規定点により規定される
輪郭線素である。線図形の場合、辺ではなく、線分であ
るが、単位図形交差判定ルーチンでは、説明の都合上、
辺と呼び、辺の指定とは線分の指定を意味する。辺指定
値は、辺を規定する2個の規定点のうち、座標データが
先に格納された規定点を指定し、それにより、辺指定値
により指定された規定点と、次に格納された規定点とに
より規定される辺を指定する値である。
Next, in S202, the second unit graphic, that is, the unit graphic defined by the intermediate data stored later in the unprocessed area 140 (here, the unit graphic U
2 ) The side designation value j for designating the side is set to 1. A side is a contour line element defined by two defined points for a surface figure. In the case of a line figure, it is not a side but a line segment, but in the unit figure intersection determination routine, for convenience of explanation,
The side is called, and the designation of the side means the designation of the line segment. The side designation value designates the regulation point in which the coordinate data is stored first among the two regulation points that regulate the side, whereby the regulation point designated by the side designation value and the next prescribed point are stored. It is a value that specifies the side defined by the specified point.

【0055】次いでS203が実行され、辺指定値iに
より指定される辺と辺指定値jにより指定される辺とが
交差しているか否かが判定される。なお、ここにおいて
交差とは、2つの辺の少なくとも一部が重複している場
合を含む。2つの辺が交差しているか否かは、種々の手
法によって判定することができる。例えば、杉原厚吉著
「計算幾何工学」(培風館発行)に記載されているよう
に、一方の辺を規定する2個の規定点を通る無端の直線
に対して他方の辺を規定する2個の規定点が互いに反対
側に位置し、かつ、他方の辺を規定する2個の規定点を
通る無端の直線に対して一方の辺を規定する2個の規定
点が互いに反対側に位置する場合に交差すると判定する
ことができる。また、4つの規定点の一直線上での並び
順を調べることにより、重複の有無がわかる。走査線を
使用し、2つの辺が位置する平面を走査する平面走査法
によっても交差の有無を判定することもできる。
Next, step S203 is executed to determine whether the side designated by the side designated value i and the side designated by the side designated value j intersect. Here, the term “cross” includes the case where at least a part of two sides overlap. Whether or not two sides intersect can be determined by various methods. For example, as described in “Computational Geometry Engineering” by Kokichi Sugihara (published by Baifukan Co., Ltd.), an endless straight line passing through two defined points defining one side is defined by two end sides defined by the other side. When the specified points are located on opposite sides of each other and the two defined points that define one side are located on opposite sides of an endless straight line that passes through the two defined points that define the other side Can be determined to intersect. Further, by checking the arrangement order of the four defined points on a straight line, the presence or absence of duplication can be known. The presence or absence of the intersection can also be determined by a plane scanning method in which a scan line is used and a plane in which two sides are located is scanned.

【0056】2つの辺が交差していなければS204の
判定結果はNOになってS205が実行され、2番目の
単位図形が線であるか否かが判定される。単位図形U2
は線ではないためS205の判定結果はNOになってS
206が実行され、辺指定値jが2番目の単位図形の全
部の辺の数(規定点の数に等しい)Bnに等しいか否か
が判定される。1番目の単位図形のi番目の辺と、2番
目の単位図形の全部の辺との間で交差の有無が判定され
たか否かが判定されるのである。この判定結果は当初は
NOであり、S207において辺指定値jが1増加させ
られた後、ルーチンの実行はS203に戻り、次にi番
目の辺と(j+1)番目の辺との間で交差の有無が判定
される。単位図形U1 のi番目の辺と単位図形U2 の全
部の辺とがいずれも交差していなければ、S204の判
定結果がYESになることなくS206の判定結果がY
ESになる。
If the two sides do not intersect, the determination result of S204 is NO and S205 is executed to determine whether the second unit figure is a line. Unit figure U 2
Is not a line, the determination result in S205 is NO and S
206 is executed, and it is determined whether or not the side designation value j is equal to the number of all sides (equal to the number of specified points) Bn of the second unit graphic. It is determined whether or not it is determined whether or not there is an intersection between the i-th side of the first unit figure and all sides of the second unit figure. This determination result is initially NO, and after the side designation value j is incremented by 1 in S207, execution of the routine returns to S203, and then the i-th side and the (j + 1) th side are crossed. The presence or absence of is determined. If the unit figures U 1 of the i-th side and all the unit figures U 2 sides has not crossed any, S206 of the determination result without the determination result of S204 is YES is Y
Become ES.

【0057】次いでS208において先に格納された中
間データにより規定される単位図形が線であるか否かが
判定される。単位図形U1 は線ではないため、S208
の判定結果はNOになり、S209において辺指定値i
がAn以上であるか否か、すなわち2つの単位図形の全
部の辺同士で交差の有無の判定が行われたか否かが判定
される。この判定結果は当初はNOであり、S210に
おいて辺指定値iが1増加させられ、次に(i+1)番
目の辺と他方の単位図形の辺との間で交差の有無が判定
される。
Next, in S208, it is determined whether or not the unit figure defined by the intermediate data previously stored is a line. Since the unit figure U 1 is not a line, S208
The result of the determination is NO, and in S209, the side specified value i
Is greater than or equal to An, that is, whether or not it has been determined whether or not there is an intersection between all sides of the two unit figures. The determination result is initially NO, and the side designation value i is incremented by 1 in S210, and then it is determined whether or not there is an intersection between the (i + 1) th side and the side of the other unit graphic.

【0058】単位図形U1 とU2 とは交差しているた
め、交差している辺についてS204が実行されると
き、その判定結果がYESになってS211が実行さ
れ、交差フラグ148がセットされ、次にデータ量減少
処理ルーチンのS103が実行される。なお、1番目の
単位図形が線図形であれば、辺は1つしかないため、S
202〜S208が実行され、辺の交差があればS21
1が実行される。また、2番目の単位図形が線図形であ
る場合、S202〜S205,S208〜S210が実
行されるとともに、辺の交差があればS211が実行さ
れる。両方の単位図形が線図形である場合、S202〜
S205,S208が実行され、辺の交差があればS2
11が実行される。
Since the unit figures U 1 and U 2 intersect, when S204 is executed for the intersecting sides, the determination result is YES, S211 is executed, and the intersection flag 148 is set. Then, S103 of the data amount reduction processing routine is executed. If the first unit figure is a line figure, there is only one side, so S
202 to S208 are executed, and if there is an edge intersection, S21
1 is executed. If the second unit graphic is a line graphic, S202 to S205 and S208 to S210 are executed, and if there is a side intersection, S211 is executed. If both unit figures are line figures, S202-
If S205 and S208 are executed and there is an edge intersection, S2
11 is executed.

【0059】データ量減少処理ルーチンのS103にお
いては、交差フラグ148がセットされているか否かに
よって2つの単位図形が交差しているか否かが判定され
る。単位図形U1 と単位図形U2 とは交差しているた
め、S103の判定結果はYESになってS104が実
行され、1番目の単位図形が線図形であるか否かが判定
される。単位図形U1 は線図形ではないため、S104
の判定結果はNOになり、S105において2番目の単
位図形が線図形であるか否かが判定されるが、単位図形
2 は線図形ではないため、この判定結果もNOになっ
てS106が実行され、単位図形U1 とU2 とが同じ色
で記録されるか否かが判定される。単位図形U1 ,U2
の記録時の色が同じであるとすればS106の判定結果
はYESになり、S107において単位図形U1 ,U2
を合わせるとともに、重複部を除いた不重複新図形を規
定する規定点が求められる。
In S103 of the data amount reduction processing routine, it is determined whether or not two unit figures intersect each other depending on whether or not the intersection flag 148 is set. Since the unit figure U 1 and the unit figure U 2 intersect, the determination result of S103 is YES and S104 is executed to determine whether or not the first unit figure is a line figure. Since the unit figure U 1 is not a line figure, S104
Is NO, and it is determined in S105 whether or not the second unit graphic is a line graphic. However, since the unit graphic U 2 is not a line graphic, this determination result is NO and S106 is executed. This is executed and it is determined whether the unit figures U 1 and U 2 are recorded in the same color. Unit figures U 1 and U 2
If the colors at the time of recording are the same, the determination result of S106 is YES, and in S107 the unit figures U 1 and U 2
In addition to the above, it is required to define the non-overlapping new figure excluding the overlapping part.

【0060】不重複新図形の規定点は、Weiler-Atherto
n クリッピング法を変形して設定された規則に従って取
得される。Weiler-Atherton クリッピング法は、J.D.FO
LEY/A.VANDAM著「コンピュータ・グラフィックス」(日
本コンピュータ協会発行)に記載されているように、ク
リップ多角形を対象多角形と交差する位置に設定し、対
象多角形のうち、クリップ多角形に含まれる部分を取り
出す手法である。
The prescribed point of the non-overlapping new figure is Weiler-Atherto.
n It is obtained by transforming the clipping method and following the set rules. Weiler-Atherton clipping method is JDFO
As described in "Computer Graphics" by LEY / A.VANDAM (published by the Japan Computer Association), set the clip polygon to a position that intersects with the target polygon, and among the target polygons, the clip polygon Is a method of extracting the part included in.

【0061】2つの単位図形を合わせた不重複新図形の
規定点を取得するためには、一方の単位図形をクリップ
多角形,他方の単位図形を対象多角形とし、対象多角形
とクリップ多角形とを合わせた多角形から、対象多角形
のクリップ多角形に含まれる部分を除くことが必要であ
り、対象多角形のクリップ多角形に含まれる部分を取り
出す上記Weiler-Atherton クリッピング法の規則とは逆
の規則が設定されている。規則は下記の通りである。な
お、この規則は、対象多角形,クリップ多角形をそれぞ
れ規定する規定点が、各多角形の輪郭線を時計方向にた
どる順に格納されている場合の規則である。 対象多角形を規定する規定点の一つから出発し、対象
多角形の輪郭線を一方向に、すなわち規定点が格納され
た順にたどる。この出発規定点はクリップ多角形内に位
置する点でも外に位置する点でもいずれでもよいが、予
め内の点か外の点かを調べておく。内の点であるか外の
点であるかは、後述するように、出発規定点がクリップ
多角形を構成する全部の辺に対して内外いずれの側にあ
るかを調べることによってわかる。また、出発規定点の
X座標値あるいはY座標値が、クリップ多角形を規定す
る全部の規定点のX座標値あるいはY座標値の最大のも
のより大きいか、最小のものより小さい場合には、その
出発規定点は必ずクリップ多角形の外に位置することを
利用して調べてもよい。 対象多角形の輪郭線のうちクリップ多角形の外側に位
置する部分をたどっているときに、輪郭線がクリップ多
角形の輪郭線と交差する場合、クリップ多角形の内側に
入らず、クリップ多角形の輪郭線を左に、すなわちクリ
ップ多角形の規定点が格納された順序に従う方向である
時計方向まわりにたどる。 クリップ多角形の輪郭線をたどっているときに対象多
角形の輪郭線と交差する場合、クリップ多角形から対象
多角形に移り、対象多角形の輪郭線を左に、すなわち対
象多角形の規定点が格納された順序に従う方向である時
計方向まわりにたどる。 対象多角形の全部の規定点を必ず一度通り、出発規定
点に戻って終了することが条件であり、そのため、対象
多角形については輪郭線の同じ個所を複数回通ることが
できる。 それにより対象多角形の輪郭線のうち、クリップ多角
形の外に位置する部分をたどるとき、対象多角形の輪郭
線を構成する一つの辺が、クリップ多角形の輪郭線を構
成する一つの辺と2度目に交差するときにはクリップ多
角形はないものと見なし、対象多角形の輪郭線のクリッ
プ多角形の内側の部分をたどることができる。 対象多角形の輪郭線のクリップ多角形の内側の部分を
たどるときにクリップ多角形と交差する場合、そのまま
クリップ多角形の外へ出ることができる。
In order to obtain the prescribed points of the non-overlapping new figure in which two unit figures are combined, one unit figure is a clip polygon, the other unit figure is a target polygon, and the target polygon and the clip polygon are set. It is necessary to exclude the part included in the clip polygon of the target polygon from the combined polygon of and, and extract the part included in the clip polygon of the target polygon. What is the above Weiler-Atherton clipping method rule? The opposite rule is set. The rules are as follows. It should be noted that this rule is a rule in the case where the defined points that respectively define the target polygon and the clip polygon are stored in the order of tracing the outline of each polygon in the clockwise direction. Starting from one of the defined points defining the target polygon, the contour of the target polygon is followed in one direction, ie in the order in which the defined points are stored. The starting stipulated point may be a point located inside the clip polygon or a point located outside the clip polygon, but it is checked beforehand whether it is an inside point or an outside point. Whether it is an inside point or an outside point can be known by checking whether the starting specified point is inside or outside of all the sides forming the clip polygon, as will be described later. If the X coordinate value or the Y coordinate value of the starting specified point is larger than the maximum X coordinate value or the Y coordinate value of all the specified points defining the clip polygon or smaller than the minimum X coordinate value, The starting stipulation point may always be found by utilizing that it is located outside the clip polygon. If the contour line intersects the contour line of the clip polygon while tracing the part of the contour line of the target polygon that is located outside the clip polygon, the clip polygon does not enter the inside of the clip polygon. , To the left, that is, in the clockwise direction, which is the direction in which the defined points of the clip polygon follow the stored order. When intersecting the contour line of the target polygon while following the contour line of the clip polygon, move from the clip polygon to the target polygon and move the contour line of the target polygon to the left, that is, the specified point of the target polygon. Follows clockwise, which is the direction according to the stored order. The condition is that all defined points of the target polygon must be passed once, and return to the starting defined point to end, so that for the target polygon, the same part of the contour line can be passed a plurality of times. As a result, when tracing the portion of the contour line of the target polygon that is located outside the clip polygon, one side that constitutes the contour line of the target polygon is one side that constitutes the contour line of the clip polygon. When it intersects with the second time, it is considered that there is no clip polygon, and the portion inside the clip polygon of the contour line of the target polygon can be traced. When the inside of the clip polygon of the contour line of the target polygon is traced, if it intersects with the clip polygon, it can go out of the clip polygon as it is.

【0062】上記規則によれば2つの単位図形を合わせ
た不重複新図形の輪郭線を規定する規定点を一方向に並
ぶ順に取得できることを図15に示す2つの単位図形1
88,190を例に取って説明する。単位図形188が
中間データが先に格納された1番目の単位図形であるた
め、これを対象多角形とし(以下、対象多角形188と
称する)、2番目の単位図形190をクリップ多角形と
する(以下、クリップ多角形190と称する)。そし
て、対象多角形188を規定する10個の規定点V1
10のうち、クリップ多角形190の外に位置する規定
点V1 が出発規定点とされたものとする。
According to the above rule, two unit figures 1 shown in FIG.
88 and 190 will be described as an example. Since the unit graphic 188 is the first unit graphic in which the intermediate data is stored first, this is the target polygon (hereinafter referred to as the target polygon 188), and the second unit graphic 190 is the clip polygon. (Hereinafter, referred to as clip polygon 190). Then, the ten defined points V 1 to define the target polygon 188
It is assumed that, out of V 10 , the specified point V 1 located outside the clip polygon 190 is taken as the starting specified point.

【0063】規定点V1 〜V10は、対象多角形188を
時計方向まわりにたどる順に格納されており、対象多角
形188の輪郭線を規定点V1 ,V2 ,V3 ,V4 の順
にたどる。このとき、相前後する2つの規定点により両
端を規定される辺がクリップ多角形190と交差するか
否かを調べながらたどる。出発規定点V1 はクリップ多
角形190の外にある点であり、出発規定点V1 以降の
規定点により規定される辺がクリップ多角形190と交
差しなければ、それら規定点はクリップ多角形190の
外にあることがわかり、これら規定点の座標データを、
図16に示すようにたどった順に処理バッファ108の
不重複新図形データ格納領域144に格納する。なお、
図16には格納される規定点の本実施形態における説明
上の呼称が示されているが、実際には座標データが格納
される。図18,図21,図23においても同じであ
る。また、ここにおいて「格納」とは、未処理領域14
0に格納されている規定点の座標データを複写すること
であり、中間データを構成する規定点の座標データはそ
のまま未処理領域140に残すが、一度たどった規定点
については、たどったことを表すデータを付ける。ま
た、対象多角形188,クリップ多角形190の各辺に
ついて括弧付き数字を付して、たどられる順序を示す。
The specified points V 1 to V 10 are stored in the order of tracing the target polygon 188 in the clockwise direction, and the contour line of the target polygon 188 is stored at the specified points V 1 , V 2 , V 3 and V 4 . Follow in order. At this time, tracing is performed while checking whether or not the sides defined by the two defining points that are adjacent to each other intersect the clip polygon 190. The starting defined point V 1 is a point outside the clip polygon 190, and if the sides defined by the defined points after the starting defined point V 1 do not intersect the clip polygon 190, those defined points are the clip polygons. It can be seen that it is outside 190, and the coordinate data of these specified points is
As shown in FIG. 16, the data is stored in the non-overlapping new graphic data storage area 144 of the processing buffer 108 in the order traced. In addition,
FIG. 16 shows the names of the defined points to be stored for the purpose of explanation in the present embodiment, but the coordinate data is actually stored. The same applies to FIGS. 18, 21, and 23. In addition, the “storage” here means the unprocessed area 14
This is to copy the coordinate data of the defined point stored in 0, and the coordinate data of the defined point forming the intermediate data is left in the unprocessed area 140 as it is. Attach the data to represent. Also, parenthesized numbers are attached to the respective sides of the target polygon 188 and the clip polygon 190 to indicate the order of tracing.

【0064】規定点V4 ,V5 により規定される辺(以
下、辺V45 と称する。他の辺についても同じ。)は
クリップ多角形190の辺V1411と交差するため、交
点C 1 を求めるとともに処理バッファ108の不重複新
図形データ格納領域144に格納する。辺V45 が辺
1411と交差するのは初めてであるため、次にクリッ
プ多角形190上をたどる。辺V45 と交差するのは
クリップ多角形190の辺V1411であり、クリップ多
角形190の輪郭線をたどるべき方向、すなわち規定点
11側へたどる。クリップ多角形190の輪郭線をたど
るときも、2つの規定点により規定される辺が対象多角
形188の辺と交差するか否かを調べながらたどる。辺
1112は対象多角形188の辺と交差しないため、規
定点V12を処理バッファ108の不重複新図形データ格
納領域144に格納する。辺V1213は対象多角形18
8の辺V101 と交差するため、交点C2 を求めて座標
データが不重複新図形データ格納領域144に格納した
後、対象多角形188の輪郭線上を規定点が格納された
方向、すなわち規定点V1 側へたどる。規定点V1は出
発点であり、一度たどった点であるが、対象多角形18
8には、まだたどっていない規定点があるため、再度規
定点V2 〜V4 をたどる。このとき、既にたどった規定
点V1 〜V4 の座標データは処理バッファ108に格納
しない。
Specified point VFour , VFive Edge defined by
Bottom, side VFour VFive Called. The same is true for the other sides. ) Is
Side V of clip polygon 19014V11Because it intersects with
Point C 1 And the processing buffer 108 does not overlap
It is stored in the graphic data storage area 144. Side VFour VFive Around
V14V11Since this is the first time that
Follow the polygon 190. Side VFour VFive Intersect with
Side V of clip polygon 19014V11And many clips
Direction to follow the contour of the polygon 190, that is, the specified point
V11Follow to the side. Follow the contour of clip polygon 190
In this case, the side defined by the two specified points is the target polygon.
Follow it while checking whether it intersects with the side of the shape 188. Side
V11V12Does not intersect the sides of the target polygon 188,
Fixed point V12The new non-overlapping new graphic data case of the processing buffer 108
The data is stored in the storage area 144. Side V12V13Is the target polygon 18
Side V of 8TenV1 Since it intersects with the intersection CTwoSeeking coordinates
The data is stored in the non-overlapping new figure data storage area 144.
After that, the specified point is stored on the contour line of the target polygon 188.
Direction, that is, regulation point1 Follow to the side. Regulated point V1Is out
It is the starting point and the point that was traced once, but the target polygon 18
Since there are regulatory points in 8 that have not yet been traced,
Fixed point VTwo ~ VFour Follow At this time, the rules that have already been followed
Point V1 ~ VFour The coordinate data of is stored in the processing buffer 108
do not do.

【0065】辺V45 はクリップ多角形190と交差
するが、これは2回目であるため、クリップ多角形19
0はないものとして辺V1411を超えて規定点V5 に進
む。2回目の交差であるか否かは、規定点V4 に一度た
どったことを表すデータが付されていることからわか
る。規定点V4 がクリップ多角形190の外の点である
ことはわかっており、また、クリップ多角形190の辺
1411と交差することから、規定点V5 がクリップ多
角形190の内側の点であることがわかる。この内側の
規定点の座標データは不重複新図形データ格納領域14
4には格納しない。
The sides V 4 V 5 intersect the clip polygon 190, but since this is the second time, the clip polygon 19
Assuming that there is no 0, the process proceeds to the specified point V 5 over the sides V 14 V 11 . Whether or not it is the second crossing can be understood from the fact that the data indicating that the predetermined point V 4 has been traced once is attached. It is known that the defined point V 4 is a point outside the clip polygon 190, and since the defined point V 4 intersects the sides V 14 V 11 of the clip polygon 190, the defined point V 5 is inside the clip polygon 190. It turns out that this is the point. The coordinate data of the defined points inside the non-overlapping new figure data storage area 14
Not stored in 4.

【0066】次いで、規定点V6 へ進むが、辺V56
は辺V1411と交差するため、交点C3 を求め、座標デ
ータを不重複新図形データ格納領域144に格納する。
交点C3 は、クリップ多角形190の内側に位置する規
定点V5 と、外側に位置する規定点V6 とを両端とする
辺とクリップ多角形190との交点であり、規定点V 1
から出発した輪郭線は、内側の規定点V5 の直前の交点
1 において一旦切れ、交点C3 は別の輪郭線の出発規
定点であることとなり、交点C3 の座標データは出発規
定点であることを示すデータを付けて不重複新図形デー
タ格納領域144に格納する。
Next, the defined point V6 Go to, but side VFive V6 
Is side V14V11Since it intersects with the intersection CThree To obtain the coordinate
The data is stored in the non-overlapping new figure data storage area 144.
Intersection CThree Is a ruler located inside the clip polygon 190.
Fixed point VFive And the specified point V located outside6 And are both ends
It is the intersection of the side and the clip polygon 190, and the specified point V 1 
The contour line starting from is the inner regulation point VFive Intersection just before
C1 At the intersection CThree Is the departure rule of another contour line
It is a fixed point, and intersection CThree The coordinate data for
Data with a fixed point is added to the
The data is stored in the data storage area 144.

【0067】対象多角形188の輪郭線をたどるとき、
クリップ多角形190の内から外へは出ることができる
ため、交点C3 の次に規定点V6 に進む。ここで辺V5
6が辺V1411と交差し、規定点V5 がクリップ多角
形190の内の点であることから、規定点V6 がクリッ
プ多角形190の外の点であることがわかるため、規定
点V6 の座標データを不重複新図形データ格納領域14
4に格納する。
When following the contour line of the target polygon 188,
Since it is possible to go out from the inside of the clip polygon 190, the intersection point C 3 is followed by the prescribed point V 6 . Where side V 5
Since V 6 intersects the side V 14 V 11 and the specified point V 5 is a point inside the clip polygon 190, it can be seen that the specified point V 6 is a point outside the clip polygon 190. The coordinate data of the regulation point V 6 is stored in the non-overlapping new figure data storage area 14
4 is stored.

【0068】辺V67 はクリップ多角形190の辺V
1411と交差するため、交点C4 を求めて座標データを
不重複新図形データ格納領域144に格納する。辺V6
7と辺V1411との交差は1回目であるため、次にク
リップ多角形190の輪郭線を規定点が格納された方向
へ進む。辺V1411は辺V56 と交差するため、対象
多角形188をたどることとなる。ここで交点C3 は既
に求められていて不重複新図形データ格納領域144に
格納されているため、再度は処理バッファ108に格納
せず、たどるのみである。規定点V6 についても同じで
ある。
The side V 6 V 7 is the side V of the clip polygon 190.
Since it intersects with 14 V 11 , the intersection C 4 is obtained and the coordinate data is stored in the non-overlapping new figure data storage area 144. Side V 6
Since the intersection of V 7 and the side V 14 V 11 is the first time, the contour line of the clip polygon 190 is next advanced in the direction in which the specified point is stored. The sides V 14 V 11 intersect the sides V 5 V 6 and therefore follow the target polygon 188. Here, since the intersection C 3 has already been obtained and is stored in the non-overlapping new figure data storage area 144, it is not stored again in the processing buffer 108, but only traced. The same applies to the defined point V 6 .

【0069】辺V67 が再び辺V1411と交差すると
き、規定点V7 へ進むが、規定点V 7 はクリップ多角形
190の内側の点であるため、規定点V7 の座標データ
は不重複新図形データ格納領域144に格納しない。次
に、規定点V8 へ進むが、このとき交点C5 を求め、交
点C5 の座標データを新たな輪郭線の出発規定点である
ことを示すデータと共に不重複新図形データ格納領域1
44に格納する。また、規定点V8 はクリップ多角形1
90の外であるため、座標データを不重複新図形データ
格納領域144にに格納する。次いで、規定点V9 の座
標データを不重複新図形データ格納領域144に格納し
た後、交点C6 を得、その座標データを格納する。ここ
で、クリップ多角形190をたどり、再度交点C5 ,規
定点V8,V9 ,C6 をたどって規定点V10へ進む。規
定点V10はクリップ多角形190の内側の点であり、座
標データは不重複新図形データ格納領域144に格納し
ない。そして、規定点V10から規定点V1 へ進み、出発
規定点に戻ったときには対象多角形188の全部の規定
点をたどったため、不重複新図形を規定する規定点の取
得を終了する。
Side V6 V7 Is side V again14V11Intersect with
The regulation point V7 Go to, but the regulation point V 7 Is a clip polygon
Since it is a point inside 190, the specified point V7 Coordinate data
Is not stored in the non-overlapping new figure data storage area 144. Next
And the regulation point V8 Go to, but at this time intersection CFive Ask for
Point CFive The coordinate data of is the starting point of the new contour line
Storage area for non-overlapping new figure data 1
It stores in 44. Also, the regulation point V8 Is a clip polygon 1
Since it is outside 90, the coordinate data is not duplicated new figure data.
The data is stored in the storage area 144. Then, the regulation point V9 Seat
The standard data is stored in the non-overlapping new figure data storage area 144.
Intersection C6 And store the coordinate data. here
Then, follow the clip polygon 190 and cross again at intersection CFive , Regulation
Fixed point V8, V9 , C6 Tracing point VTenProceed to. Regulation
Fixed point VTenIs the point inside clip polygon 190,
The standard data is stored in the non-overlapping new figure data storage area 144.
Absent. And the regulation point VTenTo the regulation point V1 Proceed to and depart
When returning to the regulation point, the entire regulation of the target polygon 188
Since the points are traced, the specified points that define the new non-overlapping figure are taken.
The profit is finished.

【0070】このように対象多角形188,クリップ多
角形190の輪郭線をたどれば、図15(b)に示すよ
うに、対象多角形188とクリップ多角形190とを合
わせた不重複新図形192の輪郭線を規定する規定点が
輪郭線を一方向にたどる順に得られる。この不重複新図
形192は、内部に二つの空間を含むが、これら空間を
規定する複数の規定点のうち、先頭の規定点の座標デー
タには出発規定点であることを表すデータが付されてい
る。したがって、出発規定点データが付された座標デー
タから、次に出発規定点データが付された座標データの
直前の座標データまでが、連続する輪郭線を規定する規
定点の座標データであることがわかる。
By tracing the contour lines of the target polygon 188 and the clip polygon 190 in this way, as shown in FIG. 15B, the non-overlapping new figure in which the target polygon 188 and the clip polygon 190 are combined. The defined points defining the contour line of 192 are obtained in the order of tracing the contour line in one direction. This non-overlapping new figure 192 includes two spaces inside, but of the plurality of specified points that define these spaces, the coordinate data of the leading specified point is attached with data indicating that it is a starting specified point. ing. Therefore, the coordinate data from the coordinate data with the departure regulation point data to the coordinate data immediately before the coordinate data with the departure regulation point data next is the coordinate data of the regulation point defining the continuous contour line. Recognize.

【0071】なお、これら内部空間を規定する規定点
は、不重複新図形192の外側の輪郭線を規定する規定
点とは逆に、反時計方向まわりに格納されている。この
ような不重複新図形192を対象多角形とし、不重複新
図形192と少なくとも一部が重複する多角形をクリッ
プ多角形として、新たな不重複新図形を規定する規定点
を取得する場合、クリップ多角形の輪郭線をたどると
き、対象多角形の内に進入することはないため、内部空
間を規定する輪郭線がたどられることはない。したがっ
て、対象多角形を規定する規定点のうち、たどられない
規定点が残っていても、それら規定点が輪郭線を反時計
方向まわりに格納されているのであれば、不重複新図形
を規定する規定点が既に得られたのであるから、取得を
終了する。
The prescribed points that define these internal spaces are stored counterclockwise, contrary to the prescribed points that define the outer contour of the new non-overlapping graphic 192. When such a non-overlapping new figure 192 is set as a target polygon, and a polygon that at least partially overlaps the non-overlapping new figure 192 is set as a clip polygon, a prescribed point for defining a new non-overlapping new figure is acquired. When tracing the contour line of the clip polygon, the contour line that defines the internal space is not traced because it does not enter into the target polygon. Therefore, even if there are untraceable rule points among the rule points that define the target polygon, if these rule points are stored around the contour line in the counterclockwise direction, a new non-overlapping figure is created. Since the specified points to be specified have already been obtained, the acquisition ends.

【0072】以上の規則に従って単位図形U1 ,U2
ついて、それらの重複部分を除いた不重複新図形の輪郭
線を規定する規定点を取得する場合には、図17(a)
に示すように、中間データが先に格納された対象多角形
たる単位図形U1 ,中間データが後に格納されたクリッ
プ多角形たる単位図形U2 がたどられ、図18に示す順
序で不重複新図形U12 (図17(b)参照)の輪郭
線を規定する規定点が得られる。この規定点の取得は、
規定点V1 を出発点として開始されるが、規定点V1
クリップ多角形の内側の点であるため、不重複新図形を
規定する点として採用されない。
According to the above rules, in the case of obtaining the defined points for the unit figures U 1 and U 2 which define the contour line of the non-overlapping new figure excluding their overlapping portions, FIG.
As shown in FIG. 18, the unit figure U 1 which is the target polygon in which the intermediate data is stored first and the unit figure U 2 which is the clip polygon in which the intermediate data is stored later are traced, and they do not overlap in the order shown in FIG. A defined point that defines the contour line of the new figure U 1 U 2 (see FIG. 17B) is obtained. To obtain this regulation point,
The process starts from the defined point V 1 as a starting point, but since the defined point V 1 is a point inside the clip polygon, it is not adopted as a point that defines the non-overlapping new figure.

【0073】このように不重複新図形の輪郭線を規定す
る規定点が求められたならば、データ量減少処理ルーチ
ンのS108が実行され、不重複新図形の作成により規
定点の数が減ったか否かが判定される。不重複新図形U
12 を規定する規定点の数が単位図形U1 ,U2 の各
規定点の数の和より少ないか否かが判定されるのであ
る。単位図形U1 ,U2 の場合、規定点数が8個から7
個に減るため、S108の判定結果がYESになってS
109が実行され、不重複新図形U12 について中間
データが作成される。そして、図19(a)に示すよう
に、未処理領域140に格納された単位図形U1 ,U2
の中間データが、図19(b)に示すように不重複新図
形U12 の中間データに置き換えられる。不重複新図
形を規定する規定点の座標データは、不重複新図形の輪
郭線を一方向にたどる順に得られており、これら座標デ
ータがそのまま中間データを構成し、さらに、面図形で
あることを表すフラグがセットされ、規定点数が格納さ
れるとともに、外接矩形が設定される。また、色データ
も備えている。なお、中間データが作成され、未処理領
域140に格納されれば、不重複新図形データ格納領域
144に格納されたデータは消される。
When the prescribed points which define the contour line of the non-overlapping new figure are obtained in this way, S108 of the data amount reduction processing routine is executed, and whether the number of prescribed points is reduced by the creation of the non-overlapping new figure. It is determined whether or not. Non-overlapping new figure U
The number of defined points that define the 1 U 2 is the whether less than the sum of the number of the defined points of the unit figure U 1, U 2 is determined. In case of unit figures U 1 and U 2 , the number of specified points is 8 to 7
Since it is reduced to individual pieces, the determination result of S108 is YES and S
109 is executed and intermediate data is created for the non-overlapping new figure U 1 U 2 . Then, as shown in FIG. 19A, the unit figures U 1 and U 2 stored in the unprocessed area 140 are stored.
The intermediate data of is replaced with the intermediate data of the non-overlapping new figure U 1 U 2 as shown in FIG. The coordinate data of the defined points that define the non-overlapping new figure are obtained in the order of tracing the outline of the non-overlapping new figure in one direction. Is set, the prescribed number of points is stored, and the circumscribed rectangle is set. It also has color data. If the intermediate data is created and stored in the unprocessed area 140, the data stored in the non-overlapping new graphic data storage area 144 is erased.

【0074】次にS110が実行され、未処理領域14
0に格納されている中間データが残り1つであるか否か
が判定される。この判定結果はNOであり、ルーチンの
実行はS101に戻り、次に、未処理領域140に格納
されている先頭の2つの中間データにより規定される単
位図形、すなわち不重複新図形である単位図形U1 2
と単位図形U3 とについてS101以下のステップが実
行される。
Next, S110 is executed, and the unprocessed area 14
Whether there is one remaining intermediate data stored in 0
Is determined. The result of this determination is NO, and the routine
Execution returns to S101 and is then stored in the unprocessed area 140.
Specified by the first two intermediate data
Unit figure, that is, unit figure U that is a new non-overlapping figure1 U Two 
And unit figure UThree The steps following S101 are actually
Is performed.

【0075】単位図形U12 と単位図形U3 とは一部
が重複しており、また、線図形でもなく、色も同じであ
るため、S101の判定結果がNO、S103の判定結
果がYES、S104,S105の判定結果がNO、S
106の判定結果がYESになる。そして、S107に
おいて単位図形U12 と単位図形U3 との集合であっ
て重複部分のない不重複新図形U123 の輪郭線を
規定する規定点が取得されるが、この場合は規定点の数
が減らないため、S108の判定結果はNOになってS
113が実行され、未処理領域140に格納された先頭
の中間データ、すなわち単位図形U12 について作成
された中間データが図19(c)に示すように処理済領
域142に移される。なお、この場合、不重複新図形U
12 3 を取得する際に単位図形U12 を規定する
規定点の座標データに付された、一度たどったことを表
すデータは消される。
Unit figure U1 UTwo And unit figure UThree Is part of
Are duplicates, and they are not line figures and have the same color.
Therefore, the determination result of S101 is NO, and the determination result of S103 is
The result is YES, the determination results of S104 and S105 are NO, S
The determination result of 106 is YES. Then, in S107
Unit graphic U1 UTwo And unit figure UThree Is a set of
New non-overlapping figure U with no overlapping parts1 UTwo UThree The contour line of
The specified points to be specified are acquired, but in this case, the number of specified points.
Does not decrease, the determination result in S108 is NO and S
113 is executed and stored in the unprocessed area 140
Intermediate data of the unit figure U1 UTwo Created about
The processed intermediate data is processed as shown in Fig. 19 (c).
Moved to zone 142. In this case, the non-overlapping new figure U
1 UTwo U Three To obtain the unit figure U1 UTwo To specify
Shows once traced the coordinate data of a specified point
Data is erased.

【0076】次に単位図形U3 とU4 とについて、S1
01以下のステップが実行される。単位図形U3 とU4
とは交差しており、不重複新図形U34 の輪郭線を規
定する規定点が取得されるが、規定点の数が減らないた
め、単位図形U3 を規定する中間データが処理済領域1
42に移される。
Next, regarding the unit figures U 3 and U 4 , S1
01 and the following steps are executed. Unit figures U 3 and U 4
, And the specified points that define the outline of the new non-overlapping new figure U 3 U 4 are acquired, but the number of specified points does not decrease, so the intermediate data that defines the unit figure U 3 has been processed. Area 1
It is moved to 42.

【0077】次に、単位図形U4 とU5 とについて、S
101以下のステップが実行される。これら単位図形U
4 ,U5 の各外接矩形は離れているため、S101の判
定結果がYESになってS113が実行され、先頭の中
間データ、すなわち単位図形U4 について作成された中
間データが処理済領域142に格納される。
Next, regarding the unit figures U 4 and U 5 , S
101 and the following steps are executed. These unit figures U
Since the circumscribed rectangles 4 and U 5 are separated from each other, the determination result of S101 is YES and S113 is executed, and the leading intermediate data, that is, the intermediate data created for the unit graphic U 4 is stored in the processed area 142. Is stored.

【0078】未処理領域140に残っている中間データ
が1つになればS110の判定結果がYESになってS
111が実行され、残っている中間データが処理済領域
142に格納された後、S112が実行され、処理済領
域142に格納されている全部の中間データが画像デー
タメモリ112に格納される。
When the number of intermediate data remaining in the unprocessed area 140 becomes one, the determination result of S110 becomes YES and S
After 111 is executed and the remaining intermediate data is stored in the processed area 142, S112 is executed and all the intermediate data stored in the processed area 142 are stored in the image data memory 112.

【0079】以上、2つの単位図形の色が同じである場
合を説明したが、単位図形の色が異なる場合を説明す
る。単位図形U1 ,U2 が異なる色で記録されるとす
る。この場合、S106の判定結果がNOになってS1
14が実行され、未処理領域140に格納された先頭の
2つの単位図形の1番目の単位図形(中間データが先に
格納された単位図形)のうち、2番目の単位図形(中間
データが後に格納された単位図形)と重複しない部分で
ある不重複部分図形を規定する規定点が取得される。
The case where the two unit figures have the same color has been described above, but the case where the unit figures have different colors will be described. It is assumed that the unit figures U 1 and U 2 are recorded in different colors. In this case, the determination result of S106 is NO and S1
14 is executed and the first unit figure of the first two unit figures stored in the unprocessed area 140 (the unit figure in which the intermediate data is stored first) is the second unit figure (the intermediate data comes later). The defined points that define the non-overlapping partial graphics that are the portions that do not overlap with the stored unit graphics) are acquired.

【0080】この取得は、S107において行われた不
重複新図形の規定点の取得規則とほぼ同じ規則に従って
行われるが、対象多角形の辺がクリップ多角形の辺と初
めて交差するとき、クリップ多角形の辺を左側へたどら
ず、右側、すなわちここでは規定点が格納された方向で
ある時計方向とは逆の反時計方向まわりにたどる点が異
なっている。対象多角形の辺がクリップ多角形の辺と2
回目に交差するときには、クリップ多角形の辺はないも
のとし、また、対象多角形を規定する点のうち、クリッ
プ多角形の内側にある規定点は、不重複部分図形を規定
する点として採用しないことは同じである。そして、対
象多角形については、クリップ多角形の外に位置する規
定点およびクリップ多角形との交点を不重複部分図形を
規定する規定点として処理バッファ108の不重複部分
図形データ格納領域146に取得順に格納する。対象多
角形の全部の規定点をたどり、出発規定点に戻ったなら
ば規定点の取得を終了する。先に図15(a)に示した
対象多角形188およびクリップ多角形190につい
て、対象多角形188のクリップ多角形190に対する
不重複部分図形を取得する場合に規定点をたどる順序を
図20(a)に示し、図20(b)に得られた不重複部
分図形196を示し、図21に不重複部分図形データ格
納領域146に格納された座標データを示す。
This acquisition is performed in accordance with almost the same rule as the rule for acquiring the specified point of the non-overlapping new figure performed in S107. However, when the side of the target polygon intersects the side of the clip polygon for the first time, the number of clip The difference is that the side of the polygon is not traced to the left side but to the right side, that is, in the counterclockwise direction opposite to the clockwise direction in which the prescribed point is stored here. The target polygon side is the clip polygon side and 2
When intersecting for the second time, it is assumed that there is no side of the clip polygon, and among the points that define the target polygon, the defined points inside the clip polygon are not adopted as the points that define the non-overlapping part figure. The same is true. Then, for the target polygon, the defined points located outside the clip polygon and the intersections with the clip polygon are acquired in the non-overlapping partial figure data storage area 146 of the processing buffer 108 as the defined points for defining the non-overlapping partial figure. Store in order. When all the prescribed points of the target polygon are traced and the starting prescribed point is returned, the acquisition of the prescribed points is completed. For the target polygon 188 and the clip polygon 190 shown in FIG. 15A, the order of tracing the stipulated points when acquiring the non-overlapping partial figure for the clip polygon 190 of the target polygon 188 is shown in FIG. ), The obtained non-overlapping partial figure 196 is shown in FIG. 20B, and FIG. 21 shows the coordinate data stored in the non-overlapping partial figure data storage area 146.

【0081】不重複部分図形の規定点の取得は、2つの
単位図形のうち、1番目の単位図形を対象多角形とし、
2番目の単位図形をクリップ多角形として行われる。上
記規則に従って単位図形U1 の不重複部を規定する規定
点を取得する際にたどる辺の順序を図22(a)に示
し、得られた不重複部分図形U1 ´を図22(b)に示
し、図23に不重複部分図形データ格納領域146に格
納された不重複部分図形U1 ´を規定する座標データを
示す。
The acquisition of the defined point of the non-overlapping partial figure is performed by setting the first unit figure of the two unit figures as the target polygon,
The second unit graphic is performed as a clip polygon. FIG. 22 (a) shows the order of the sides traced when acquiring the defining points defining the non-overlapping part of the unit graphic U 1 according to the above rule, and the obtained non-overlapping partial graphic U 1 ′ is shown in FIG. 22 (b). FIG. 23 shows coordinate data defining the non-overlapping partial figure U 1 ′ stored in the non-overlapping partial figure data storage area 146.

【0082】不重複部分図形を規定する規定点の取得
後、S115において規定点が減少したか否かが判定さ
れる。色が異なる場合は、不重複部分図形U1 ´を規定
する規定点の数が元の単位図形U1 を規定する規定点の
数より少ないか否かにより行われる。ここでは、不重複
部分図形U1 ´を規定する規定点の数は3個であり、規
定点数が減っているため、S115の判定結果はYES
になり、S116において不重複部分図形U1 ´につい
て中間データが設定された後、S117が実行され、不
重複部分図形U1 ´の中間データが処理済領域142に
格納される。なお、未処理領域140に格納された単位
図形U1 の中間データは消去され、不重複部分図形デー
タ格納領域146に格納されたデータも消去される。
After obtaining the defined points that define the non-overlapping partial graphic, it is determined in S115 whether the defined points have decreased. If the colors are different, it is determined whether or not the number of defined points defining the non-overlapping partial graphic U 1 ′ is smaller than the number of defined points defining the original unit graphic U 1 . Here, the number of defined points that defines the non-overlapping partial figure U 1 ′ is three, and since the number of defined points has decreased, the determination result of S115 is YES.
Then, after the intermediate data is set for the non-overlapping partial figure U 1 ′ in S116, S117 is executed and the intermediate data of the non-overlapping partial figure U 1 ′ is stored in the processed area 142. The intermediate data of the unit graphic U 1 stored in the unprocessed area 140 is erased, and the data stored in the non-overlapping portion graphic data storage area 146 is also erased.

【0083】ポストスクリプト言語によって画像データ
が作成され、少なくとも一部が重複する2つの単位図形
が異なる色で記録される場合、図24に斜線の向きを変
えて示すように、下側に記録される単位図形、すなわち
中間データが先に格納された単位図形については、重複
部は記録されない。重複部分を規定する規定点のデータ
は不要なのであり、不重複部が元の単位図形を規定する
規定点より少ない数の規定点により規定されるのであれ
ば、不重複部のみを規定するデータを作成し、元の単位
図形データと置き換えた方がデータ量を減らすことがで
きて得なのである。規定点の数が減っていなければS1
15の判定結果がNOになってS113が実行され、単
位図形U1 の中間データが処理済領域142に格納され
る。
When image data is created by the Postscript language and two unit figures that at least partially overlap are recorded in different colors, they are recorded on the lower side, as shown by changing the direction of the diagonal lines in FIG. For the unit figure that is stored, that is, the unit figure in which the intermediate data is stored first, the overlapping portion is not recorded. Since the data of the defined points that define the overlapping part is unnecessary, if the non-overlapped part is defined by a smaller number of defined points than the defined points that define the original unit figure, the data that defines only the non-overlapped part is It is better to create it and replace it with the original unit figure data because the amount of data can be reduced. If the number of specified points has not decreased, S1
The determination result of 15 is NO, S113 is executed, and the intermediate data of the unit graphic U 1 is stored in the processed area 142.

【0084】次に、外接矩形は離れていないが、2つの
単位図形が交差しない場合を説明する。このような事態
は、図25に示すように、単位図形200が単位図形2
02を含んでいて、外接矩形204,206が離れてい
ない場合、および図26に示すように、単位図形208
は単位図形210の外に位置するが、外接矩形212,
214が離れていない場合に生ずる。この場合にはS1
01,S103の各判定結果がNOになってS118が
実行され、2つの単位図形のうち、1番目の単位図形が
2番目の単位図形に内包されるか否かが判定される。こ
の判定は、1番目の単位図形を規定する複数の規定点の
うちの一つが、2番目の単位図形を構成する全部の辺の
内外いずれの側にあるかによって行われる。
Next, a case will be described in which the circumscribed rectangles are not separated but the two unit figures do not intersect. In such a situation, as shown in FIG.
02 and the circumscribed rectangles 204 and 206 are not separated, and as shown in FIG.
Is located outside the unit figure 210, but the circumscribed rectangle 212,
It occurs when 214 is not separated. In this case S1
The determination results of 01 and S103 are NO and S118 is executed to determine whether the first unit figure is included in the second unit figure of the two unit figures. This determination is made depending on whether one of the plurality of defining points that defines the first unit graphic is inside or outside all the sides that form the second unit graphic.

【0085】図27に示すように、点P1 を始点とし、
点P2 を終点とするベクトルに対して、点P3 が内側に
あるか外側にあるかは、点P1 から点P2 へ向かうベク
トルと、点P1 から点P3 へ向かうベクトルとの外積が
正であれば、点P3 は点P1から点P2 へ向かうベクト
ルの左側、すなわち外側にあり、外積が負であれば、点
3 は点P1 から点P2 へ向かうベクトルの右側、すな
わち内側にある。したがって、図28に示すように、1
番目の単位図形を規定する規定点のうちの一つV1 を選
択し、2番目の単位図形を規定する規定点V2 〜V5
ら得られる全部のベクトル(ベクトルの向かう方向は規
定点が格納された方向である)に対して内側にあるか外
側にあるかが判定される。これら内包の有無が調べられ
る2つの単位図形は、交差していないことは既にわかっ
ており、1番目の単位図形を規定する複数の規定点の全
部が2番目の単位図形の内側にあるか外側にあるかのい
ずれかであり、1つの規定点について内側か外側かを調
べればよいのである。したがって、図28に示すよう
に、規定点V1 が4つのベクトルのいずれに対しても内
側に位置すれば、1番目の単位図形が2番目の単位図形
の内にあることがわかる。また、図29に示すように、
規定点V1 が、点V3 から点V4 に向かうベクトルに対
しては外側にあるが、他の3つのベクトルに対しては内
側にあれば、規定点V1 は2番目の単位図形の内側には
なく、1番目の単位図形が2番目の単位図形の内にはな
いことがわかる。
As shown in FIG. 27, starting from the point P 1 ,
Whether the point P 3 is inside or outside with respect to the vector having the point P 2 as an end point is determined by a vector going from the point P 1 to the point P 2 and a vector going from the point P 1 to the point P 3 . If the outer product is positive, the point P 3 is on the left side of the vector from the point P 1 to the point P 2 , that is, outside, and if the outer product is negative, the point P 3 is the vector from the point P 1 to the point P 2 . On the right side, ie inside. Therefore, as shown in FIG.
All the vectors obtained from the specified points V 2 to V 5 defining the second unit figure by selecting one of the defined points defining the second unit figure V 1 Inward or outward with respect to the stored direction). It is already known that the two unit figures whose presence is to be checked do not intersect, and all of the plurality of prescribed points that define the first unit figure are inside or outside the second unit figure. It is necessary to check the inside or outside of one defined point. Therefore, as shown in FIG. 28, if the defined point V 1 is located inside all of the four vectors, it can be seen that the first unit graphic is within the second unit graphic. Also, as shown in FIG.
If the specified point V 1 is outside the vector from the point V 3 to the point V 4 but inside the other three vectors, the specified point V 1 is the second unit figure. It can be seen that it is not inside and the first unit graphic is not inside the second unit graphic.

【0086】1番目の単位図形が2番目の単位図形に含
まれていれば、S118の判定結果がYESになってS
119が実行され、1番目の単位図形について設定され
た中間データが消去される。1番目の単位図形の上に2
番目の単位図形が記録され、1番目の単位図形は記録さ
れず、中間データが不要であるからである。また、1番
目の単位図形が2番目の単位図形に含まれていなけれ
ば、S118の判定結果がNOになってS113が実行
され、1番目の単位図形について設定された中間データ
が処理済領域142に格納される。1番目の単位図形が
2番目の単位図形に内包されていないと判定されても、
2つの単位図形が離れているとは限らず、2番目の単位
図形が1番目の単位図形に含まれることがある。しか
し、2番目の単位図形は1番目の単位図形の上に記録さ
れるため、その中間データは必要であって残され、1番
目の単位図形の中間データを処理済領域142に格納す
ればよく、S113が実行されるのである。
If the first unit figure is included in the second unit figure, the determination result in S118 is YES and S
119 is executed, and the intermediate data set for the first unit graphic is erased. 2 on top of the first unit graphic
This is because the first unit figure is not recorded and the first unit figure is not recorded, so that intermediate data is unnecessary. If the first unit figure is not included in the second unit figure, the determination result of S118 is NO, S113 is executed, and the intermediate data set for the first unit figure is the processed area 142. Stored in. Even if it is determined that the first unit figure is not included in the second unit figure,
The two unit figures are not always separated from each other, and the second unit figure may be included in the first unit figure. However, since the second unit graphic is recorded on the first unit graphic, its intermediate data is necessary and left, and the intermediate data of the first unit graphic may be stored in the processed area 142. , S113 is executed.

【0087】次に、単位図形が線図形である場合を図3
1に基づいて説明する。図31に示すように、線図形2
60が面図形264と交差するとき、外接矩形262と
266とが交差しており、S101,S103の判定結
果がYESになる。また、線図形260が1番目の単位
図形であれば、S104の判定結果がYESになってS
120が実行され、2番目の単位図形が面図形であるか
否かが判定される。この判定結果はYESであり、S1
14が実行され、線図形260について不重複部分図形
の規定点が取得される。線図形260を規定する複数の
規定点について、規定点の格納順に、相前後する2個の
規定点により規定される線分が面図形264を構成する
全部の辺のいずれかと交差するか否かが判定される。
Next, FIG. 3 shows a case where the unit figure is a line figure.
1 will be described. As shown in FIG. 31, the line figure 2
When 60 intersects the area figure 264, the circumscribed rectangles 262 and 266 intersect, and the determination results of S101 and S103 are YES. If the line graphic 260 is the first unit graphic, the determination result in S104 is YES and S
120 is executed, and it is determined whether or not the second unit graphic is a surface graphic. This determination result is YES, and S1
14 is executed, and the defined point of the non-overlapping part graphic is acquired for the line graphic 260. Regarding a plurality of prescribed points that define the line figure 260, whether or not a line segment defined by two consecutive prescribed points in the order of storing the prescribed points intersects any of the sides that form the area figure 264. Is determined.

【0088】線図形260を最初に規定する規定点につ
いては、面図形264の内側にあるか外側にあるかが判
定され、外側にあれば、不重複部分図形を規定する規定
点として座標データが不重複部分図形データ格納領域1
46に格納され、内側にあれば格納されない。線図形2
60を構成する線分が面図形264を構成するいずれか
の辺と交差すれば、その交点が算出され、不重複部分図
形を規定する規定点とされる。また、線図形260を構
成する線分が面図形264の辺と交差しない場合、その
線分が面図形264の外にあれば、その線分を規定する
規定点の座標データが不重複部分図形データ格納領域1
46に格納され、内側にあれば格納されない。
It is determined whether the specified point for defining the line graphic 260 first is inside or outside the surface graphic 264, and if it is outside, coordinate data is determined as the defined point for defining the non-overlapping part graphic. Non-overlapping part figure data storage area 1
46, and if it is inside, it is not stored. Line figure 2
If the line segment forming 60 intersects with any of the sides forming the surface graphic 264, the intersection is calculated and used as a defined point defining the non-overlapping part graphic. Further, when the line segment forming the line figure 260 does not intersect the side of the surface figure 264, if the line segment is outside the surface figure 264, the coordinate data of the defined points defining the line segment do not overlap. Data storage area 1
46, and if it is inside, it is not stored.

【0089】このようにして不重複部分図形を規定する
規定点が取得されたならば、その数が線図形260を規
定する規定点の数より少ないか否かが判定される。線図
形260は規定点が6個から4個に減るため、面図形2
64の外側に位置する規定点および面図形264の辺と
の交点により規定される不重複部分図形について中間デ
ータが作成され、処理済領域142に格納される。
When the prescribed points defining the non-overlapping part graphic are obtained in this way, it is judged whether or not the number is smaller than the number of prescribed points defining the line figure 260. Since the number of specified points in the line figure 260 is reduced from 6 to 4, the line figure 2
Intermediate data is created for the non-overlapping part graphic defined by the intersection of the defined point located outside 64 and the side of the surface graphic 264, and stored in the processed area 142.

【0090】1番目,2番目の単位図形がいずれも線図
形であれば、S104の判定結果がYES,S120の
判定結果がNOになり、S113が実行されて1番目の
線図形の中間データが処理済領域142に格納される。
線図形同士が交差していても、それにより規定点数が減
少することはないからである。
If both the first and second unit figures are line figures, the determination result in S104 is YES, the determination result in S120 is NO, S113 is executed, and the intermediate data of the first line figure is It is stored in the processed area 142.
This is because even if the line figures intersect each other, the number of specified points does not decrease.

【0091】1番目の単位図形が面図形、2番目の単位
図形が線図形であれば、S104の判定結果がNO、S
105の判定結果がYESになってS113が実行さ
れ、面図形の中間データが処理済領域142に格納され
る。面図形の上に線図形が重なっても、面図形の規定点
が減少することはないからである。
If the first unit figure is a surface figure and the second unit figure is a line figure, the determination result in S104 is NO, S
The determination result of 105 is YES, S113 is executed, and the intermediate data of the surface figure is stored in the processed area 142. This is because the prescribed points of the area figure do not decrease even if the line figure overlaps the area figure.

【0092】未処理領域140に格納された全部の中間
データが処理済領域142に格納され、処理済領域14
2に格納された中間データが画像データメモリ112に
格納されたならば、次に図9に示す図形処理ルーチンの
S1が実行される。そして、中間データバッファ106
に中間データがあればS1の判定結果がYESになり、
未処理領域140にN個の中間データがたまったなら
ば、データ量減少処理が行われる。
All the intermediate data stored in the unprocessed area 140 is stored in the processed area 142 and the processed area 14
If the intermediate data stored in 2 is stored in the image data memory 112, then S1 of the figure processing routine shown in FIG. 9 is executed. Then, the intermediate data buffer 106
If there is intermediate data in, the determination result of S1 is YES,
When N pieces of intermediate data are accumulated in the unprocessed area 140, the data amount reduction processing is performed.

【0093】そして、中間データバッファ106に中間
データがなくなればS1の判定結果がNOになってS9
が実行され、処理バッファ108の未処理領域140に
中間データがあるか否かが判定される。中間データバッ
ファ106に中間データがなくなったが、未処理領域1
40にN個より少ない中間データが格納されていること
があり、そのような場合にS9の判定結果がYESにな
ってS10が実行され、データ量減少処理がS8におけ
ると同様に実行される。そして、中間データが画像デー
タメモリ110に格納されれば、S16の実行により線
・面フラグ150がリセットされてルーチンの実行が終
了する。また、処理バッファ108の未処理領域140
にちょうどN個の中間データが格納された時点で中間デ
ータバッファ106にデータがなくなれば、S1,S9
の判定結果がNOになり、S16の実行後、ルーチンの
実行が終了する。
When the intermediate data buffer 106 has no intermediate data, the determination result of S1 is NO and S9 is reached.
Is executed and it is determined whether or not there is intermediate data in the unprocessed area 140 of the processing buffer 108. There is no intermediate data in the intermediate data buffer 106, but unprocessed area 1
There may be less than N intermediate data stored in 40, and in such a case the determination result of S9 is YES and S10 is executed, and the data amount reduction processing is executed in the same manner as in S8. Then, if the intermediate data is stored in the image data memory 110, the line / plane flag 150 is reset by the execution of S16, and the execution of the routine ends. In addition, the unprocessed area 140 of the processing buffer 108
If there are no more data in the intermediate data buffer 106 at the time when exactly N intermediate data have been stored in S1, S9
The result of the determination is NO, and after the execution of S16, the execution of the routine ends.

【0094】上記のようにして単位図形群176につい
てデータ量減少処理が行われれば、図12(b)に示す
ように、単位図形群176は不重複新図形を2つ含む単
位図形群176とされる。なお、図12(b)に示す単
位図形群は、単位図形U1 とU2 ,単位図形U7 とU8
の色がそれぞれ同じであって、合体型の不重複新図形を
形成する場合の単位図形群である。
When the data amount reduction processing is performed on the unit figure group 176 as described above, the unit figure group 176 is divided into a unit figure group 176 including two non-overlapping new figures, as shown in FIG. 12B. To be done. The unit figure group shown in FIG. 12B includes unit figures U 1 and U 2 and unit figures U 7 and U 8.
Is a unit figure group in the case of forming a merged non-overlapping new figure having the same color.

【0095】中間データが読取図形について作成された
データの場合、S2の判定結果がYESになってS11
が実行される。画像作成領域全部が読取図形により構成
され、読取図形のデータのみが供給される場合と、画像
作成領域内に読取図形,線図形および面図形が混在し、
3種類のデータが供給される場合とがある。前者の場
合、図形処理ルーチンが実行されるとき、S1,S2の
判定結果がYES,S11の判定結果がNOになってS
15が実行され、読取図形について作成された中間デー
タが画像データメモリ110に格納される。後者の場
合、先に読取図形の中間データが供給されれば、S1,
S2,S11,S15が実行される。また、線図形およ
び面図形の中間データの後に読取図形の中間データが供
給されれば、線・面フラグ150がセットされているた
め、S1,S2,S11の判定結果がYESになってS
12が実行され、処理バッファ108の未処理領域14
0に中間データが格納されているか否かが判定される。
格納されていれば、この中間データは線図形あるいは面
図形の中間データであり、S12の判定結果がYESに
なってS13が実行され、データ量減少処理が行われ、
S14において線・面フラグ150がリセットされる。
そして、次にS11の判定が行われるとき、その判定結
果はNOになってS15が実行され、読取図形について
作成された中間データが画像データメモリ110に格納
される。
When the intermediate data is data created for the read figure, the determination result of S2 is YES and S11
Is executed. When the entire image creation area is composed of read graphics and only data of the read graphics is supplied, and when read graphics, line graphics and area graphics are mixed in the image creation area,
There are cases where three types of data are supplied. In the former case, when the graphic processing routine is executed, the determination results of S1 and S2 are YES, the determination result of S11 is NO, and S
15 is executed, and the intermediate data created for the read graphic is stored in the image data memory 110. In the latter case, if the intermediate data of the read figure is supplied first, S1,
S2, S11 and S15 are executed. If the intermediate data of the read graphic is supplied after the intermediate data of the line graphic and the surface graphic, the line / surface flag 150 has been set, so the determination result of S1, S2, S11 is YES and S
12 is executed and the unprocessed area 14 of the processing buffer 108
It is determined whether or not the intermediate data is stored in 0.
If stored, this intermediate data is intermediate data of a line figure or area figure, the determination result of S12 is YES, S13 is executed, data amount reduction processing is performed,
In S14, the line / face flag 150 is reset.
Then, when the determination of S11 is performed next, the determination result is NO and S15 is executed, and the intermediate data created for the read figure is stored in the image data memory 110.

【0096】記録時には、画像データメモリ110に格
納された中間データに基づいて記録用ドットデータが作
成され、ドットデータメモリ112に格納される。本実
施形態において画像はカラーで記録されるため、カラー
記録用のドットデータが作成されるが、線図形および面
図形については、他の線図形および面図形との重複の有
無が調べられ、重複している図形については、それら図
形の記録時の優先順位、すなわち中間データの格納順序
に基づいて、優先順位の下の図形については、重複部分
について作成された記録用ドットデータが消され、混色
が生じないようにされる。しかし、先にデータ量減少処
理によって不重複新図形が作成されていることにより、
重複が検出される図形の数は減っており、その分、迅速
に記録用ドットデータを作成することができる。
At the time of recording, recording dot data is created based on the intermediate data stored in the image data memory 110 and stored in the dot data memory 112. In the present embodiment, since the image is recorded in color, dot data for color recording is created. For line graphics and area graphics, it is checked whether or not they overlap with other line graphics and area graphics, and duplication is checked. For the figures that are being recorded, the dot data for recording created for the overlapping part is erased and the color mixture is performed based on the recording priority of those figures, that is, the storage order of the intermediate data. Will not occur. However, since the new non-overlapping figure was created by the data amount reduction process,
Since the number of figures in which duplication is detected is reduced, the recording dot data can be created more quickly.

【0097】以上の説明から明らかなように、本実施形
態においては、処理バッファ108の未処理領域140
が処理前図形データ記憶手段を構成し、処理済領域14
2が不重複新図形データ記憶手段を構成している。デー
タ量減少処理が行われる前の中間データが記憶される記
憶手段が処理前図形データ記憶手段、データ量減少処理
後の中間データが記憶される記憶手段が不重複新図形デ
ータ記憶手段なのであり、その意味では、受信バッファ
136,中間データバッファ106も処理前図形データ
記憶手段であり、画像データメモリ110も不重複新図
形データ記憶手段であるということができる。また、第
一制御部96,ROM100,RAM102の図形処理
ルーチンを実行して不重複新図形,不重複部分図形の各
データを作成する部分が、不重複新図形データ作成手段
の一種である規定点減少時不重複新図形データ作成手段
を構成するとともに、重複可能性判定手段,外接矩形重
複時重複図形検出手段,優先順位対応不重複新図形デー
タ作成手段,輪郭線データ作成手段,不重複新図形作成
形態選択手段を構成している。第一制御部96の画像デ
ータメモリ110に格納された中間データに基づいてド
ットデータを作成する部分がドットデータ作成手段を構
成している。
As is clear from the above description, in the present embodiment, the unprocessed area 140 of the processing buffer 108.
Constitutes a preprocessed graphic data storage means, and has a processed area 14
Reference numeral 2 constitutes non-overlapping new figure data storage means. The storage means for storing the intermediate data before the data amount reduction processing is the unprocessed graphic data storage means, and the storage means for storing the intermediate data after the data amount reduction processing is the non-overlapping new graphic data storage means, In that sense, it can be said that the reception buffer 136 and the intermediate data buffer 106 are also unprocessed graphic data storage means, and the image data memory 110 is also a non-overlapping new graphic data storage means. Further, the portion that executes the graphic processing routines of the first control unit 96, the ROM 100, and the RAM 102 to create the respective data of the non-overlapping new graphic and the non-overlapping partial graphic is a prescribed point which is a kind of non-overlapping new graphic data creating means. In addition to configuring the non-overlapping new figure data generation means at the time of reduction, the duplication possibility determination means, the circumscribed rectangle duplication figure detection means, the priority corresponding non-duplication new figure data generation means, the contour line data generation means, the non-duplication new figure It constitutes a creation form selection means. The portion of the first control unit 96 that creates dot data based on the intermediate data stored in the image data memory 110 constitutes dot data creation means.

【0098】上記実施形態は、画像がカラーで記録され
る場合のものであるが、画像が白黒で(濃度は全部の画
像について同じであるとする)記録される場合には、例
えば、図34ないし図36に示すデータ量減少処理ルー
チン,不重複新図形データ作成ルーチンに従う処理が行
われるようにすればよい。なお、ここにおいて「白黒の
記録」とは、白い記録用紙に黒いインクで画像を記録す
ることである。そのため、中間データは、図形の種類を
表すフラグ,外接矩形を規定する2点の座標データ,図
形を規定する規定点の数,図形を規定する点の座標デー
タの他、色データとして黒の濃度データを含む。
In the above embodiment, the image is recorded in color. However, when the image is recorded in black and white (assuming that the density is the same for all images), for example, FIG. The processing according to the data amount reduction processing routine and the non-overlapping new graphic data creation routine shown in FIG. 36 may be performed. The term "black and white recording" as used herein means to record an image on a white recording paper with black ink. Therefore, the intermediate data includes a flag indicating the type of figure, coordinate data of two points defining the circumscribing rectangle, the number of defined points defining the figure, coordinate data of points defining the figure, and black density as color data. Contains data.

【0099】本実施形態は、データ量減少処理を除いて
前記実施形態と同じであり、図32に示す単位図形群2
30を例に取ってデータ量減少処理のみを説明する。こ
の単位図形群230は、9個の単位図形U1 〜U9 を含
む。また、図33に示すように、処理バッファ232に
は、未処理領域234,処理済領域236,外接矩形交
差データ格納領域238,主図形情報格納領域240,
従図形情報格納領域242,中間データカウンタ24
4,主図形カウンタ246,従図形カウンタ248の
他、図示は省略するが、不重複新図形データ格納領域,
不重複部分図形データ格納領域等、処理に必要な領域,
フラグ等が設けられている。
This embodiment is the same as the previous embodiment except for the data amount reduction processing, and the unit figure group 2 shown in FIG.
Taking 30 as an example, only the data amount reduction processing will be described. The unit figure group 230 includes nine unit figures U 1 to U 9 . Further, as shown in FIG. 33, in the processing buffer 232, an unprocessed area 234, a processed area 236, a circumscribed rectangular intersection data storage area 238, a main figure information storage area 240,
Sub-graphic information storage area 242, intermediate data counter 24
4, a main figure counter 246, a sub-figure counter 248, a non-overlapping new figure data storage area (not shown),
Areas required for processing such as non-overlapping part graphic data storage area,
Flags and the like are provided.

【0100】本実施形態におけるデータ量減少処理の概
略を説明する。単位図形群を構成する全部の単位図形の
各外接矩形について、中間データの格納順に、中間デー
タが自身より後に格納された単位図形の外接矩形との交
差(一致,内包を含む)の有無を調べる。中間データの
格納順に、単位図形を順次主図形とし、主図形の外接矩
形と外接矩形が交差している少なくとも一つの単位図形
を従図形とし、主図形と従図形とについて規定点の数が
減少する不重複新図形を構成するか否かを調べる。次に
従図形を主図形とし、その主図形について従図形と共に
規定点の減少する不重複新図形を構成するか否かを調べ
る。従図形が複数あれば、次の主図形が複数あることと
なり、中間データバッファにおける格納順で主図形につ
いて処理が行われる。このとき、従図形が、その従図形
を主図形としたときに従図形を有する場合でも、従図形
をたどってしりとり的に処理が行われるのではなく、ま
ず、複数の主図形の各々について、それぞれが有する従
図形について処理が行われるのである。従図形を有さな
い主図形が出てくるまで、主図形との不重複新図形の形
成判定が行われた従図形を、次に主図形とし、その主図
形について得られている従図形との間で不重複新図形の
形成判定を繰り返す。それにより外接矩形が直接あるい
は間接に交差しており、直接あるいは間接につながって
いる可能性のある全部の単位図形についてまとめて処理
を行うことができる。
An outline of the data amount reduction processing in this embodiment will be described. For each circumscribing rectangle of all the unit figures that make up the unit figure group, in the order of storing the intermediate data, check whether the circumscribing rectangle of the unit figure in which the intermediate data is stored after itself intersects (including coincidence and inclusion). . In the order of storing the intermediate data, the unit figures are sequentially used as the main figure, and at least one unit figure where the circumscribed rectangle and the circumscribed rectangle of the main figure intersect is used as the slave figure. Check whether or not to construct a non-overlapping new figure. Next, it is checked whether or not the subordinate figure is set as the main figure, and the subordinate figure is formed together with the subordinate figure in the non-overlapping new figure in which the prescribed points are reduced. If there are a plurality of sub-graphics, it means that there are a plurality of next main figures, and the main figure is processed in the order of storage in the intermediate data buffer. At this time, even if the sub-graphic has a sub-graphic when the sub-graphic is used as the main figure, the sub-graphic is not traced and processed, but first, for each of the plurality of main figures, The processing is performed for each sub-graphic that each has. Until the appearance of a master figure that does not have a slave figure, the slave figure for which formation of a new figure that does not overlap with the master figure has been determined is then used as the master figure, and the slave figures obtained for that master figure The formation determination of the non-overlapping new figure is repeated between. As a result, the circumscribed rectangles directly or indirectly intersect each other, and it is possible to collectively process all unit graphics that may be directly or indirectly connected.

【0101】図34に示すデータ量減少処理ルーチンの
S301においてはまず、処理バッファ232の未処理
領域234に格納されたN個(ここでは9個)の中間デ
ータに基づいて、中間データの格納順に、CC 番目の外
接矩形と、その外接矩形を有する単位図形より後に中間
データが格納された全部の単位図形の各外接矩形との間
で離間しているか否か、換言すれば、外接矩形が交差し
ているか否かが調べられ、図37に示すように外接矩形
交差データ格納領域238に格納される。なお、ここに
おいて「交差」とは、二つの外接矩形の一方が他方に内
包され、あるいは二つの外接矩形が一致する場合も含
む。外接矩形交差データにおいて外接矩形は、外接矩形
データを含む中間データの未処理領域234への格納順
序で表される。図37に示す数値は、中間データの未領
域領域234における格納の順番なのである。
In S301 of the data amount reduction processing routine shown in FIG. 34, first, based on N (here, 9) intermediate data stored in the unprocessed area 234 of the processing buffer 232, the intermediate data is stored in the order of storage. a C C th of the circumscribed rectangle, whether the intermediate data after the unit figure having a circumscribed rectangle are spaced between each circumscribed rectangle of unit figures of all stored, in other words, the circumscribed rectangle It is checked whether or not they intersect, and the data is stored in the circumscribed rectangle intersection data storage area 238 as shown in FIG. Here, the term “cross” includes the case where one of the two circumscribing rectangles is included in the other, or the two circumscribing rectangles match. In the circumscribing rectangle intersection data, the circumscribing rectangle is represented in the storage order of the intermediate data including the circumscribing rectangle data in the unprocessed area 234. The numerical values shown in FIG. 37 indicate the order of storage of the intermediate data in the non-area area 234.

【0102】次にS302が実行され、中間データの数
をカウントし、未処理領域234に格納された順序で中
間データ(単位図形)を指定する中間データカウンタ2
44のカウント値CC が1増加させられる。このカウン
ト値CC は外接矩形交差データを格納順に指定する値で
もある。カウント値CC は図示しない初期設定において
リセットされており、S302が1回目に実行されると
き、カウント値CC は1にされる。次いでS303が実
行され、CC 番目の中間データについて処理が済んだか
否かの判定が行われる。この判定は、未処理領域234
に格納されたC C 番目の中間データに処理済データが付
されているか否かにより行われる。1番目の中間データ
は、まだ処理されていないため、S303の判定結果は
NOになってS304が実行され、CC 番目、すなわち
1番目の中間データにより規定される外接矩形と交差す
る外接矩形があるか否かの判定が外接矩形交差データに
基づいて行われる。1番目の中間データにより規定され
る外接矩形は、図37に示すように、未処理領域234
に2番目に格納された中間データにより規定される外接
矩形と交差しているため、S304の判定結果はYES
になってS305が実行され、不重複新図形のデータが
作成される。
Next, S302 is executed, and the number of intermediate data
Are counted in the order stored in the unprocessed area 234.
Intermediate data counter 2 that specifies the inter-data (unit figure)
44 count value CCIs increased by 1. This coun
Value CCIs a value that specifies the circumscribed rectangle intersection data in the storage order.
There is also. Count value CCIs the default setting (not shown)
If it is reset and S302 is executed for the first time
Count value CCIs set to 1. Next is S303
Done CCHas been processed for the th intermediate data
It is determined whether or not. This determination is based on the unprocessed area 234.
Stored in C CProcessed data is attached to the second intermediate data
It is performed depending on whether or not it has been done. First intermediate data
Has not been processed yet, the determination result in S303 is
If NO, S304 is executed and CCTh, ie
Intersects the circumscribed rectangle defined by the first intermediate data
To determine whether there is a circumscribed rectangle
It is done based on. Defined by the first intermediate data
As shown in FIG. 37, the circumscribed rectangle
Circumscribed by the intermediate data stored in the second
Since it intersects the rectangle, the determination result in S304 is YES.
And S305 is executed and the data of the new non-overlapping figure is
Created.

【0103】この作成は、図35および図36に示す不
重複新図形データ作成ルーチンに従って行われる。ま
ず、S351において、主図形情報格納領域240に、
主図形情報が格納される。主図形情報は、主図形の数N
M と、主図形を指定するデータ、すなわち主図形につい
て作成された中間データの未処理領域234における格
納順を表すデータとを含む。外接矩形交差データも中間
データの未処理領域234における格納順に格納されて
いるため、主図形を指定するデータにより、指定された
主図形がわかるとともに、主図形に対する従図形がいず
れであるかが、外接矩形交差データからわかる。1番目
の単位図形U1 については、主図形の数は1個,格納順
は1番である。また、主図形カウンタ246のカウント
値CM が1にセットされる。カウント値CM は、処理さ
れる主図形の数をカウントするとともに、主図形情報格
納領域240に指定データが格納された主図形を、格納
順に指定する値でもある。
This creation is performed according to the non-overlapping new figure data creation routine shown in FIGS. First, in S351, in the main graphic information storage area 240,
Main figure information is stored. The main figure information is the number N of main figures
M and data designating the main graphic, that is, data representing the storage order in the unprocessed area 234 of the intermediate data created for the main graphic. Since the circumscribed rectangle intersection data is also stored in the unprocessed area 234 of the intermediate data in the order of storage, the designated main figure can be known from the data designating the main figure, and which subfigure is the subfigure. It can be seen from the circumscribed rectangle intersection data. Regarding the first unit figure U 1 , the number of main figures is 1, and the storage order is 1. Further, the count value C M of the main figure counter 246 is set to 1. The count value C M is a value that counts the number of main graphics to be processed and also designates the main graphics whose designated data is stored in the main graphics information storage area 240 in the order of storage.

【0104】次いでS352が実行され、従図形情報格
納領域242に、主図形情報格納領域240に格納され
た全部の主図形の各々に対する従図形の数の和NS ,そ
れら従図形をそれぞれ指定する指定データ、すなわち従
図形について作成された中間データの未処理領域234
における格納順序のデータが小さい順に格納される。こ
こでは主図形情報格納領域240に格納された主図形は
単位図形U1 、1つであり、主図形である1番目の単位
図形U1 について従図形は単位図形U2 、1つである。
Then, step S352 is executed, and the sum N S of the numbers of the subsidiary figures for all the main figures stored in the main figure information storage area 240 and the subsidiary figures are designated in the subsidiary figure information storage area 242. Unprocessed area 234 of designated data, that is, intermediate data created for the subgraphic
The data in the storage order in are stored in ascending order. Here stored in the main graphic information storage area 240 is the main figure is one unit figure U 1,,従図type for the first unit graphic U 1 is the main figure is one unit figure U 2,.

【0105】次いでS353が実行され、従図形カウン
タ248のカウント値CS が1増加させられる。従図形
カウンタ248は初期設定においてリセットされてお
り、カウント値CS は1になる。続いてS354が実行
され、主図形と、CS 番目、すなわち1番目の従図形と
が既に不重複新図形を形成しているか否かが判定され
る。これは、処理済領域236に主図形および従図形を
構成単位図形とする不重複新図形のデータが格納されて
いるか否かによりわかる。単位図形U1 とU2 とはまだ
不重複新図形を形成していないため、S354の判定結
果はNOになってS355が実行され、主図形と従図形
とが交差するか否かが判定される。この判定は、前記実
施形態のS103と同様に行われる。単位図形U1 とU
2 とは交差しているためS355の判定結果はYESに
なってS356が実行される。単位図形U1 ,U2 はい
ずれも線図形ではないため、S356,357の判定結
果はNOになる。
Then, S353 is executed, and the count value C S of the sub-graphic counter 248 is incremented by 1. The sub-graphic counter 248 is reset in the initial setting, and the count value C S becomes 1. Then S354 is performed, the main figure, C S th, that is, whether the first従図type already forms non-overlap new figure is determined. This can be seen from whether or not the processed area 236 stores the data of the non-overlapping new graphic having the main graphic and the sub graphic as the constituent unit graphic. Since the unit figures U 1 and U 2 have not yet formed the non-overlapping new figure, the determination result in S354 is NO and S355 is executed to determine whether or not the main figure and the subsidiary figure intersect. It This determination is performed in the same manner as S103 of the above embodiment. Unit figures U 1 and U
Since it intersects with 2 , the determination result of S355 is YES and S356 is executed. Since neither of the unit figures U 1 and U 2 is a line figure, the determination results of S356 and 357 are NO.

【0106】次いでS358が実行され、不重複新図形
12 の規定点が取得される。この規定点の取得は、
前記実施形態のS107と同様に実行される。主図形に
ついては、処理済領域236に主図形について作成され
た中間データあるいは主図形が構成する不重複新図形を
規定するデータが格納されていれば、そのデータに基づ
いて不重複新図形が作られ、格納されていなければ、未
処理領域234に格納された主図形について作成された
中間データに基づいて不重複新図形が作られる。
Then, S358 is executed to acquire the specified points of the new non-overlapping figure U 1 U 2 . To obtain this regulation point,
It is executed in the same manner as S107 of the above-described embodiment. For the main figure, if intermediate data created for the main figure or data defining the non-overlapping new figure formed by the main figure is stored in the processed area 236, the non-overlapping new figure is created based on the data. If not stored, a non-overlapping new graphic is created based on the intermediate data created for the main graphic stored in the unprocessed area 234.

【0107】続いてS359において規定点が減少した
か否かが判定される。不重複新図形U12 は規定点が
減少しているため、S359の判定結果はYESになっ
てS360が実行され、図38(a)に示すように、処
理済領域236に不重複新図形U12 の座標データお
よび不重複新図形U12 が単位図形U1 ,U2 によっ
て構成されることを表すデータ、すなわち単位図形U
1 ,U2 の中間データの未処理領域234における格納
順を表すデータが格納される。なお、未処理領域234
には、9個の単位図形U1 〜U9 についてそれぞれ作成
された中間データが残される。
Subsequently, in S359, it is determined whether or not the specified points have decreased. Since the non-overlapping new figure U 1 U 2 has a reduced number of defined points, the determination result of S 359 is YES, S 360 is executed, and as shown in FIG. The coordinate data of the figure U 1 U 2 and the data indicating that the non-overlapping new figure U 1 U 2 is composed of the unit figures U 1 and U 2 , that is, the unit figure U
Data representing the storage order of the intermediate data of 1 and U 2 in the unprocessed area 234 is stored. The unprocessed area 234
, The intermediate data created for each of the nine unit figures U 1 to U 9 remains.

【0108】次いでS361が実行され、全部の従図形
に対して主図形との交差判定,不重複新図形の規定点の
取得が行われたか否かが判定される。単位図形U1 と外
接矩形が交差しているのは単位図形U2 のみであってN
S は1であり、S361の判定結果はYESになって図
36に示すS368が実行され、カウント値CM により
指定される主図形の未処理領域234に格納された中間
データ、すなわち単位図形U1 について作成された中間
データに処理済データが付される。
Next, step S361 is executed to judge whether or not intersection determination with the main figure and acquisition of defined points of the non-overlapping new figure have been performed for all the subsidiary figures. Only the unit figure U 2 intersects the unit figure U 1 and the circumscribed rectangle, and N
S is 1, the determination result of S361 is YES, S368 shown in FIG. 36 is executed, and the intermediate data stored in the unprocessed area 234 of the main graphic designated by the count value C M , that is, the unit graphic U Processed data is attached to the intermediate data created for 1 .

【0109】続いてS369において主図形情報格納領
域240に格納された全部の主図形について従図形との
重複判定が行われたか否かの判定が行われる。主図形は
単位図形U1 、1つのみであるため、S369の判定結
果はYESになり、S370において従図形情報格納領
域242にデータがあるか否かが判定される。主図形た
る単位図形U1 に対する従図形は単位図形U2 であり、
従図形情報格納領域242に単位図形U2 を指定するデ
ータおよび従図形が1個であることを表すデータが格納
されているため、S370の判定結果がYESになり、
S371において従図形情報格納領域242に格納され
たデータが主図形情報格納領域240に移される。先に
主図形情報格納領域240に格納されていたデータが消
されるとともに、主図形の数NM が1にセットされ、単
位図形U2 を指定するデータが格納されるのである。ま
た、主図形カウンタ246のカウント値CM が1にセッ
トされ、従図形カウンタ248のカウント値CS が0に
セットされる。
Subsequently, in S369, it is determined whether or not the overlap determination with the subgraphics has been performed for all the main graphics stored in the main graphics information storage area 240. Since the main figure is only one unit figure U 1 , the determination result in S369 is YES, and it is determined in S370 whether or not there is data in the subsidiary figure information storage area 242. The sub-figure for the unit figure U 1 which is the main figure is the unit figure U 2 .
Since the data specifying the unit graphic U 2 and the data indicating that there is one sub-graphic are stored in the sub-graphic information storage area 242, the determination result in S370 is YES,
The data stored in the sub-graphic information storage area 242 in S371 is moved to the main-graphic information storage area 240. The data previously stored in the main figure information storage area 240 is erased, the number of main figures N M is set to 1, and the data designating the unit figure U 2 is stored. Further, the count value C M of the main figure counter 246 is set to 1, and the count value C S of the sub figure counter 248 is set to 0.

【0110】次にS372が実行され、主図形に対して
従図形があるか否かが判定される。S371の実行によ
り、今回、主図形であるのは単位図形U2 であり、外接
矩形交差データから、単位図形U2 については従図形が
2つ、すなわち単位図形U3,U8 があることがわか
り、S372の判定結果はYESになって図35に示す
S352が実行される。S352では、主図形たる単位
図形U2 に対する従図形の数NS が2にセットされると
ともに、単位図形U3 ,U8 を指定するデータが中間デ
ータの格納順に格納される。
Next, S372 is executed to determine whether or not there is a sub-graphic for the main graphic. As a result of the execution of S371, the main figure is the unit figure U 2 this time, and the circumscribing rectangle intersection data shows that there are two sub-figures for the unit figure U 2 , that is, the unit figures U 3 and U 8. Obviously, the determination result of S372 is YES, and S352 shown in FIG. 35 is executed. In S352, the number N S of sub-graphics for the unit graphic U 2 as the main graphic is set to 2, and the data designating the unit graphics U 3 and U 8 are stored in the order of storing the intermediate data.

【0111】そして、S353〜S361が実行され、
まず、単位図形U2 と単位図形U3とによって不重複新
図形U23 が作られる。主図形たる単位図形U2 が既
に不重複新図形U12 を構成していることは、処理済
領域236に格納されたデータからわかり、不重複新図
形U12 と従図形たる単位図形U3 とによって不重複
新図形が作られる。不重複新図形U123 は規定点
が減少しているため、図38(b)に示すように、処理
済領域236に不重複新図形U12 のデータに代え
て、不重複新図形U123 の座標データおよび単位
図形U1 ,U2 ,U3 が不重複新図形U123 を構
成する単位図形であることを表すデータが格納される。
Then, S353 to S361 are executed,
First, the unit figure U 2 and the unit figure U 3 form a new non-overlapping figure U 2 U 3 . The unit figure U 2 serving main figures already constitute the non-overlap new graphic U 1 U 2 is seen from the stored in the processed area 236 data, not overlapping the new graphic U 1 U 2 and従図shaped serving units A new non-overlapping graphic is created by the graphic U 3 . Since the defined points of the new non-overlapping new figure U 1 U 2 U 3 are reduced, as shown in FIG. 38B, the data of the new non-overlapping new figure U 1 U 2 is replaced by the non-overlapping new figure U 1 U 2. data indicating that the coordinate data and unit figures U 1 overlapping the new graphic U 1 U 2 U 3, U 2, U 3 is a unit figure constituting the non-overlap new graphic U 1 U 2 U 3 is stored.

【0112】単位図形U2 については従図形が2個ある
ため、S361の判定結果はNOになり、S353にお
いて従図形カウンタ248のカウント値CS が1増加さ
せられ、従図形情報格納領域242に2番目に格納され
た従図形たる単位図形U8 と主図形たる単位図形U2
により不重複新図形が作られる。このとき、単位図形U
2 は不重複新図形U123 を形成しており、不重複
新図形U123 と単位図形U8 とによって不重複新
図形U1238 が作られる。不重複新図形U1
238 も規定点が減少しており、図38(c)に示
すようにデータが処理済領域236に格納される。
Since the unit figure U 2 has two subsidiary figures, the determination result in S361 is NO, the count value C S of the subsidiary figure counter 248 is incremented by 1 in S353, and the subsidiary figure information storage area 242 is stored. A second non-overlapping new figure is created by the unit figure U 8 which is the second stored figure and the unit figure U 2 which is the main figure. At this time, the unit figure U
2 forms a non-overlap new graphic U 1 U 2 U 3, not overlapping the new graphic U 1 U 2 U 3 U 8 is made by a non-overlap new graphic U 1 U 2 U 3 and unit graphic U 8 . Non-overlapping new figure U 1 U
The prescribed points of 2 U 3 U 8 are also reduced, and the data is stored in the processed area 236 as shown in FIG.

【0113】2個の従図形U3 ,U8 について処理が行
われればS361の判定結果がYESになり、単位図形
2 について処理済データが付される(S368)。ま
た、主図形は1個であるため、S369の判定結果もY
ESになり、従図形情報格納領域242にデータがある
ため、S370の判定結果がYESになり、S371の
実行後、次に単位図形U3 ,U8 を主図形として不重複
新図形が作られる。単位図形U3 には従図形が2個(単
位図形U4 ,U5 )あり、単位図形U8 には従図形が1
個(単位図形U9 )あるため、まず、単位図形U3 を主
図形とし、単位図形U4 ,U5 との間で不重複新図形が
作られる。単位図形U3 は、不重複新図形U123
8 を構成しているため、不重複新図形U123
8 と単位図形U4 との間で不重複新図形が作られるが、
規定点が減少しないため、この不重複新図形は採用され
ず、S362が実行され、主図形の中間データおよび主
図形を構成する単位図形の指定データ(主図形の未処理
領域234における中間データの格納順を表すデータ)
が処理済領域236に格納される。ただし、この主図形
のデータが既に格納されていれば、格納されない。単位
図形U3 は既に不重複新図形を構成し、そのデータが処
理済領域236に格納されているため、S362ではデ
ータは格納されない。単位図形U3 とU5 とについて、
不重複新図形の規定点を取得する場合も同じである。
If the processing is performed on the two sub-graphics U 3 and U 8 , the determination result of S361 becomes YES, and the processed data is attached to the unit graphic U 2 (S368). Further, since the number of main figures is one, the determination result in S369 is also Y.
Becomes ES, because there is data to従図type information storage area 242, the determination result of S370 is to YES, after execution of S371, non-overlap new figure is made then the unit graphic U 3, U 8 as the main figure . The unit figure U 3 has two sub figures (unit figures U 4 and U 5 ), and the unit figure U 8 has one sub figure.
Since there are individual pieces (unit figure U 9 ), first, the unit figure U 3 is used as a main figure, and a new non-overlapping figure is created between the unit figures U 4 and U 5 . The unit figure U 3 is a new non-overlapping figure U 1 U 2 U 3
Since U 8 is configured, the new non-overlapping figure U 1 U 2 U 3 U
A non-overlapping new figure is created between 8 and the unit figure U 4 ,
Since the prescribed points are not reduced, this non-overlapping new graphic is not adopted, and S362 is executed to specify the intermediate data of the main graphic and the designated data of the unit graphic constituting the main graphic (the intermediate data in the unprocessed area 234 of the main graphic. Data that represents the storage order)
Is stored in the processed area 236. However, if the data of this main figure is already stored, it is not stored. Since the unit figure U 3 has already formed a non-overlapping new figure and its data is stored in the processed area 236, no data is stored in S362. For unit figures U 3 and U 5 ,
The same is true when acquiring the prescribed points of the non-overlapping new figure.

【0114】次に、単位図形U8 を主図形とし、従図形
たる単位図形U9 との間で不重複新図形が作られる。単
位図形U8 は不重複新図形U1238 を構成して
いるため、この不重複新図形U1238 と単位図
形U9 との間で不重複新図形が作られるが、規定点が減
少しないため、S362が実行される。単位図形U8
既に不重複新図形を構成しているため、ここではデータ
が処理済領域に格納されることはない。
Next, the unit graphic U 8 is used as a main graphic, and a new non-overlapping graphic is created between the unit graphic U 9 and the sub graphic U 9 . For unit figure U 8 is constituting the non-overlap new graphic U 1 U 2 U 3 U 8 , not overlapping the new shape between the non-overlap new graphic U 1 U 2 U 3 U 8 and unit graphic U 9 However, since the defined points are not reduced, S362 is executed. Since the unit figure U 8 has already formed a non-overlapping new figure, no data is stored in the processed area here.

【0115】次に、先に従図形であった単位図形U4
5 ,U9 を主図形として処理が行われるが、図36に
示す外接矩形交差データから明らかなように、これらは
いずれも従図形を有さないため、S372の判定結果が
NO,S373の判定結果がNOになってS374が実
行され、単位図形U4 ,U5 ,U9 についての中間デー
タが処理済領域236に格納される。S374が実行さ
れれば、次にS368が実行され、未処理領域234に
格納された中間データに処理済データが付される。単位
図形U4 ,U5 ,U9 の全部についてS374が行われ
れば、次にS369の判定が行われるとき、その判定結
果がYESになるが、従図形情報格納領域242にデー
タがないため、S370の判定結果がNOになり、S3
76において主図形カウンタ246,従図形カウンタ2
48がリセットされるとともに、主図形情報格納領域2
40,従図形情報格納領域242がクリアされて、ルー
チンの実行はデータ量減少処理ルーチンのS307に戻
る。
Next, the unit figure U 4 , which was the subordinate figure,
Processing is performed using U 5 and U 9 as the main figures, but as is clear from the circumscribing rectangle intersection data shown in FIG. 36, since none of these have sub figures, the determination result in S 372 is NO, If the determination result is NO, S374 is executed, and the intermediate data for the unit figures U 4 , U 5 , and U 9 are stored in the processed area 236. If S374 is executed, then S368 is executed and the processed data is added to the intermediate data stored in the unprocessed area 234. If S374 is performed for all the unit figures U 4 , U 5 , and U 9 , the determination result will be YES when the determination in S369 is made next time, but since there is no data in the subsidiary figure information storage area 242, The determination result in S370 is NO, and S3
In 76, the main graphic counter 246, the sub graphic counter 2
48 is reset and the main graphic information storage area 2
40, the subgraphic information storage area 242 is cleared, and execution of the routine returns to S307 of the data amount reduction processing routine.

【0116】S307では、全部の単位図形について処
理が行われたか否かが判定されるが、この判定結果はN
Oであり、ルーチンの実行はS302に戻る。そして、
次に単位図形U2 についてS303が実行されるが、単
位図形U2 は既に処理されていて、未処理領域234に
格納された単位図形U2 の中間データには処理済データ
が付されているため、S303の判定結果はYESにな
る。単位図形U3 ないしU5 についても処理が済んでい
るため、S303の判定結果はYESになる。単位図形
6 は、まだ処理が済んでおらず、外接矩形が単位図形
7 の外接矩形と交差しているため、S303の判定結
果がNO,S304の判定結果がYESになってS30
5が実行され、不重複新図形U67 のデータが作成さ
れる。
In S307, it is determined whether or not the processing has been performed for all the unit figures. The result of this determination is N.
If it is O, the routine returns to S302. And
Then although the unit graphic U 2 for S303 is executed, the unit graphic U 2 is already processed, the intermediate data stored unit graphic U 2 in untreated areas 234 are provided with the processed data Therefore, the determination result of S303 is YES. Since the unit figures U 3 to U 5 have also been processed, the determination result of S303 is YES. Since the unit figure U 6 has not been processed yet and the circumscribed rectangle intersects the circumscribed rectangle of the unit figure U 7 , the determination result in S303 is NO, the determination result in S304 is YES, and S30
5 is executed, and the data of the non-overlapping new figure U 6 U 7 is created.

【0117】不重複新図形U6 7 は規定点数が減少す
るため、S359の判定結果がYESになり、不重複新
図形U6 7 を規定する規定点の座標データ等が処理済
領域236に格納される。そして、S361,S36
9,S370の判定結果がいずれもYESになってS3
71が実行され、次に単位図形U7 が主図形とされる
が、単位図形U7 は、それより後に中間データが格納さ
れた単位図形であって、外接矩形が交差する単位図形を
有さず、従図形を有さないため、S372の判定結果が
NOになる。また、単位図形U7 についてのデータは、
不重複新図形U6 7 のデータの格納により処理済領域
236に格納されており、S373の判定結果がYES
になる。
Non-overlapping new figure U6U7 Will reduce the score
Therefore, the determination result of S359 is YES, and the non-overlapping new
Figure U6U7 The coordinate data of the specified point that defines
It is stored in the area 236. And S361, S36
9, the determination results of S370 are both YES and S3
71 is executed, and then the unit figure U7 Is the main figure
Is a unit figure U7 Stores intermediate data after that
A unit figure that has a circumscribed rectangle that intersects
Since it does not have the subordinate figure, the determination result of S372 is
Become NO. Also, the unit figure U7 Data about
Non-overlapping new figure U6U 7 Area processed by storing data
It is stored in 236, and the determination result of S373 is YES.
become.

【0118】単位図形群230を構成する全部の単位図
形について処理が行われれば、カウント値CC がNにな
ってS307の判定結果がYESになり、S308にお
いてカウント値CC がリセットされる。続いてS309
において処理済領域236に格納されたデータにより規
定される図形のうち、座標データのみが格納されている
図形については、中間データが作成された後、全部の中
間データが画像データメモリに格納される。これら中間
データは、図形の種類を表すフラグ,外接矩形を規定す
る2点の座標データ,図形の規定点数のデータ,図形の
規定点の座標データおよび濃度データを含む。
When all the unit figures forming the unit figure group 230 are processed, the count value C C becomes N, the determination result in S307 becomes YES, and the count value C C is reset in S308. Then S309
In the figure defined by the data stored in the processed area 236, the figure in which only the coordinate data is stored, after the intermediate data is created, all the intermediate data are stored in the image data memory. . These intermediate data include a flag indicating the type of the figure, coordinate data of two points defining the circumscribed rectangle, data of the number of points of the figure, coordinate data of the point of the figure, and density data.

【0119】単位図形群230の場合、該当する単位図
形はないが、主図形と従図形とが交差の判定前に既に不
重複新図形を形成している場合には、S354の判定結
果がYESになり、S361が実行される。例えば、図
39に示すように、単位図形U1 が単位図形U2 ,U3
と交差し、規定点の減る不重複新図形U123 を形
成するとともに、単位図形U2 ,U3 が交差するとき、
単位図形U2 を主図形とし、単位図形U3 を従図形とし
て処理を行うとき、これら単位図形U2 ,U3は既に不
重複新図形U123 を形成しており、S355〜S
360を実行する必要がないため、S354の判定を行
い、S355〜S360をスキップさせるのである。
In the case of the unit graphic group 230, there is no corresponding unit graphic, but if the non-overlapping new graphic has already been formed before the determination of the intersection of the main graphic and the sub graphic, the determination result of S354 is YES. Then, S361 is executed. For example, as shown in FIG. 39, the unit figure U 1 is a unit figure U 2 , U 3
When the unit figures U 2 and U 3 intersect with each other while forming a new non-overlapping figure U 1 U 2 U 3 in which the number of prescribed points decreases,
When processing is performed with the unit figure U 2 as the main figure and the unit figure U 3 as the sub figure, these unit figures U 2 , U 3 have already formed the non-overlapping new figure U 1 U 2 U 3 , and S355- S
Since it is not necessary to execute 360, the determination of S354 is performed and S355 to S360 are skipped.

【0120】また、従図形が主図形を内包する場合、S
355の判定結果がNO,S363の判定結果がYES
になってS364が実行され、従図形の座標データが処
理済領域236に格納されるとともに、その座標データ
により規定される図形が主図形および従図形に基づいて
得られたことを表すデータが格納される。従図形のデー
タのみが格納され、そのデータが主図形および従図形に
基づいて得られたことを表すデータが付されることによ
り、主図形の中間データが消去されたことになる。主図
形が従図形を内包する場合はS363の判定結果がN
O,S365の判定結果がYESになってS366が実
行され、主図形の座標データが処理済領域236に格納
されるとともに、その座標データにより規定される図形
が主図形および従図形に基づいて得られたことを表すデ
ータが格納される。従図形のデータが消去されるのであ
る。主図形と従図形とが離れていればS363,S36
5の判定結果がいずれもNOになってS367が実行さ
れ、主図形の座標データおよび主図形指定データが処理
済領域236に格納される。
If the sub-graphic contains the main graphic, S
The determination result of 355 is NO, and the determination result of S363 is YES.
Then, S364 is executed, the coordinate data of the subsidiary figure is stored in the processed area 236, and the data indicating that the figure defined by the coordinate data is obtained based on the main figure and the subsidiary figure is stored. To be done. By storing only the data of the sub-graphics and adding data indicating that the data is obtained based on the main graphic and the sub-graphics, the intermediate data of the main graphic is erased. When the main figure includes the sub figure, the determination result of S363 is N.
If the result of the determination in S, S365 is YES, S366 is executed, the coordinate data of the main figure is stored in the processed area 236, and the figure defined by the coordinate data is obtained based on the main figure and the subsidiary figure. The data indicating that it has been stored is stored. The data of the sub-graphics are erased. If the main figure and the sub figure are separated, S363, S36
The determination results of 5 are all NO and S367 is executed to store the coordinate data of the main graphic and the main graphic designation data in the processed area 236.

【0121】さらに、主図形が線図形であり、従図形が
面図形の場合は、S356,S377の判定結果がYE
SになってS378が実行され、線図形について不重複
部分図形の規定点が取得される。そして、規定点が減少
していればS379の判定結果がYESになってS38
0が実行され、不重複部分図形の規定点の座標データお
よび不重複部分図形を構成する単位図形を指定するデー
タが処理済領域236に格納される。規定点が減少して
いなければ、S362が実行され、線図形の中間データ
等が処理済領域に格納される。また、主図形,従図形が
いずれも線図形であれば、S356の判定結果がYE
S,S377の判定結果がNOになってS362が実行
される。
Furthermore, when the main figure is a line figure and the sub-figure is a surface figure, the determination results of S356 and S377 are YE.
When S is reached and S378 is executed, the prescribed points of the non-overlapping part graphic are acquired for the line graphic. Then, if the prescribed points have decreased, the determination result of S379 becomes YES and S38.
0 is executed, and the coordinate data of the specified point of the non-overlapping partial graphic and the data designating the unit graphic forming the non-overlapping partial graphic are stored in the processed area 236. If the number of defined points has not decreased, S362 is executed and the intermediate data of the line figure and the like are stored in the processed area. If both the main figure and the sub figure are line figures, the determination result of S356 is YE.
The determination result of S and S377 is NO, and S362 is executed.

【0122】このように本実施形態においては、単位図
形群230のうち、直接あるいは間接につながった単位
図形についてまとめて処理が行われるのであり、中間デ
ータの格納順が離れている単位図形についても、規定点
数が減少するのであれば不重複新図形のデータを作成し
て画像データメモリに格納し、データ量を減少させるこ
とができる。
As described above, in this embodiment, the unit figures directly or indirectly connected in the unit figure group 230 are collectively processed, and the unit figures whose storage order of the intermediate data is distant are also processed. If the number of specified points is reduced, the data of the non-overlapping new figure can be created and stored in the image data memory to reduce the data amount.

【0123】上記実施形態は、読取図形が面図形および
線図形と重複することがない場合のものであるが、読取
図形が面図形と重複する場合には、例えば、図40およ
び図41に示す図形処理ルーチンおよびデータ量減少処
理ルーチンに従う処理が行われるようにすればよい。な
お、ここでは、読取図形同士が重複することはなく、図
形は面図形のみであり、画像は黒1色で記録されるもの
とする。
In the above embodiment, the read figure does not overlap the plane figure and the line figure. However, when the read figure overlaps the plane figure, the figure is shown in FIGS. 40 and 41, for example. Processing according to the graphic processing routine and the data amount reduction processing routine may be performed. Here, it is assumed that the read graphics do not overlap each other, the graphics are only surface graphics, and the image is recorded in one black color.

【0124】図40に示す図形処理ルーチンにおいて
は、図9に示す図形処理ルーチンにおけると同様に、中
間データバッファに中間データがN個格納されたならば
(S401〜S404)、S406のデータ量減少処理
が図41に示すデータ量減少処理ルーチンに従って行わ
れる。データ量減少処理ルーチンのS501において
は、中間データバッファの未処理領域に格納された中間
データのうち、先頭の2つの中間データによりそれぞれ
規定される単位図形の外接矩形が離れているか否かの判
定が行われる。読取図形の場合、外接矩形とは、画像作
成領域のうち読取図形が組み込まれる矩形の読取図形領
域であり、この読取図形領域を規定するデータは中間デ
ータに含まれている。
In the graphics processing routine shown in FIG. 40, as in the graphics processing routine shown in FIG. 9, if N pieces of intermediate data are stored in the intermediate data buffer (S401 to S404), the data amount is reduced in S406. The processing is performed according to the data amount reduction processing routine shown in FIG. In step S501 of the data amount reduction processing routine, it is determined whether or not the circumscribed rectangles of the unit graphics respectively defined by the first two intermediate data are separated from the intermediate data stored in the unprocessed area of the intermediate data buffer. Is done. In the case of the read figure, the circumscribed rectangle is a rectangular read figure area in which the read figure is incorporated in the image forming area, and the data defining the read figure area is included in the intermediate data.

【0125】この判定は、図10に示すデータ量減少処
理ルーチンのS101と同様に行われ、外接矩形が離れ
ていればS518が実行され、未処理領域に格納された
先頭の中間データが処理済領域に移される。外接矩形が
交差していれば、S501の判定結果がNOになってS
502が実行され、先頭の2つの中間データによりそれ
ぞれ規定される単位図形が交差するか否かが判定され
る。この判定は、図10に示すデータ量減少処理ルーチ
ンのS102と同様に行われる。2つの単位図形の一方
が読取図形の場合、読取図形は読取図形領域である矩形
とみなされ、面図形との交差の有無が判定される。
This determination is performed in the same manner as S101 of the data amount reduction processing routine shown in FIG. 10. If the circumscribed rectangle is separated, S518 is executed and the first intermediate data stored in the unprocessed area is processed. Moved to the area. If the circumscribed rectangles intersect, the determination result in S501 is NO and S
502 is executed, and it is determined whether or not the unit figures respectively defined by the first two intermediate data intersect. This determination is performed in the same manner as S102 of the data amount reduction processing routine shown in FIG. When one of the two unit figures is a read figure, the read figure is regarded as a rectangle which is a read figure area, and it is determined whether or not it intersects with a surface figure.

【0126】2つの単位図形が交差していれば、S50
3の判定結果はYESになる。そして、2つの単位図形
のうち、中間データが先に格納された1番目の単位図形
が面図形であり、中間データが後に格納された2番目の
単位図形が読取図形であればS506が実行され、不重
複部分図形の規定点の取得が前記S114におけると同
様に行われる。この場合も読取図形は矩形とみなされ
る。そして、面図形の一部である不重複部分図形の規定
点の数が面図形の規定点の数より少なくなっていれば、
S507の判定結果がYESになってS508が実行さ
れ、不重複部分図形について中間データが設定されると
ともに、処理済領域に格納される。また、規定点数が減
っていなければS518が実行され、面図形について作
成された中間データがそのまま処理済領域に格納され
る。
If two unit figures intersect, S50
The determination result of 3 is YES. Of the two unit figures, if the first unit figure in which the intermediate data is stored first is the plane figure and the second unit figure in which the intermediate data is stored later is the read figure, S506 is executed. The acquisition of the defined point of the non-overlapping partial graphic is performed in the same manner as in S114. Also in this case, the read figure is regarded as a rectangle. If the number of defined points of the non-overlapping partial figure that is a part of the area figure is less than the number of defined points of the area figure,
The determination result of S507 is YES, S508 is executed, intermediate data is set for the non-overlapping partial graphic, and the intermediate data is stored in the processed area. If the number of specified points has not decreased, S518 is executed, and the intermediate data created for the surface figure is stored as it is in the processed area.

【0127】2つの単位図形のうち、1番目の単位図形
が読取図形であればS504の判定結果がYESになっ
てS512が実行される。本実施形態では、読取図形
は、別の読取図形と交差することはないため、交差する
2つの単位図形の1番目の単位図形が読取図形であれ
ば、2番目の単位図形は面図形であり、S512では、
面図形の下に記録される読取図形について不重複部分図
形のデータが作成される。読取図形領域内の複数の画素
の各々について、各画素の中心点が面図形の輪郭線の内
側に位置するか否かが調べられる。これは、前記実施形
態のS118における1番目の単位図形が2番目の単位
図形に内包されるか否かの判定と同様に行うことができ
る。中心点が面図形の輪郭線の内側に位置する画素は、
その上に記録される面図形により覆われて見えな状態と
されるべきであるため、データが消去され、その分デー
タ量が減少する。
If the first unit figure of the two unit figures is the read figure, the determination result of S504 is YES and S512 is executed. In the present embodiment, since the read figure does not intersect with another read figure, if the first unit figure of two intersecting unit figures is the read figure, the second unit figure is a surface figure. , S512,
Data of the non-overlapping part graphic is created for the read graphic recorded below the surface graphic. For each of the plurality of pixels in the read graphic area, it is checked whether the center point of each pixel is located inside the outline of the surface graphic. This can be performed in the same manner as the determination of whether or not the first unit figure is included in the second unit figure in S118 of the above-described embodiment. Pixels whose center point is located inside the outline of a surface figure are
Since it should be covered by the surface figure recorded on it to make it invisible, the data is erased and the amount of data is reduced accordingly.

【0128】ただし、上記データの消去によって、常に
読取図形データ全体の量が減少するとは限らない。読取
図形の各色データを読取図形領域内の各画素に対応付け
るためのデータ(対応付けデータと称する)の量が増大
するからである。読取図形領域は、通常、比較的単純な
形状とされることが多く、対応付けデータの量が少なく
て済むのであるが、読取図形領域の上に面図形が重ねら
れ、その面図形と重複する部分が読取図形領域から除去
された部分読取図形領域は形状が複雑になることが多い
ため、対応付けデータの量が多くなるのが普通なのであ
る。したがって、色データの消去によるデータ減少量と
対応付けデータの増加量とが比較され、総合的にデータ
量が減少するのであれば、不重複部分図形のデータが処
理済領域236に格納され、減少しないのであれば、中
間データがそのまま処理済領域236に格納される。
However, erasing the above data does not always reduce the total amount of read graphic data. This is because the amount of data (referred to as association data) for associating each color data of the read figure with each pixel in the read figure area increases. The read graphic area is usually relatively simple in shape, and the amount of associated data is small. However, the area graphic is overlaid on the read graphic area and overlaps with the area graphic. Since the partial read graphic area in which the part is removed from the read graphic area often has a complicated shape, the amount of the association data is usually large. Therefore, the data reduction amount due to the deletion of the color data and the increase amount of the associated data are compared, and if the data amount is reduced overall, the data of the non-overlapping part graphic is stored in the processed area 236 and reduced. If not, the intermediate data is stored in the processed area 236 as it is.

【0129】2つの単位図形が交差していなければ、S
513が実行され、2番目の単位図形が1番目の単位図
形を内包していれば、S514が実行され、1番目の単
位図形の中間データが消去される。1番目の単位図形が
読取図形であっても面図形であっても、2番目の単位図
形に内包されれば、中間データが消去されるのである。
If the two unit figures do not intersect, S
If 513 is executed and the second unit graphic contains the first unit graphic, S514 is executed and the intermediate data of the first unit graphic is erased. Whether the first unit figure is a read figure or a plane figure, the intermediate data is erased if it is included in the second unit figure.

【0130】また、1番目の単位図形が2番目の単位図
形を内包していれば、S513の判定結果がNO,S5
19の判定結果がYESになり、S520において1番
目の単位図形が読取図形であるか否かが判定され、読取
図形であればS512が実行されて読取図形が変更され
る。読取図形領域内の画素のうち、2番目の単位図形と
重複する部分の画素について設定された色データが消去
されるのである。ただし、この場合でも、総合的にデー
タ量が減少しないのであれば、中間データがそのまま処
理済領域236に格納される。1番目の単位図形が2番
目の単位図形に内包されていなければ、2つの単位図形
は離れており、S518が実行されて1番目の単位図形
について設定された中間データが処理済領域236に格
納される。また、1番目の単位図形が2番目の単位図形
を内包していても、1番目の単位図形が読取図形でない
場合には、S520がNOになってS518が実行さ
れ、1番目の単位図形について設定された中間データが
処理済領域236に格納される。
If the first unit figure includes the second unit figure, the determination result of S513 is NO, S5.
The determination result in 19 is YES, and in S520, it is determined whether the first unit graphic is the read graphic. If the read graphic is the read graphic, S512 is executed to change the read graphic. Of the pixels in the read graphic area, the color data set for the pixels of the portion overlapping the second unit graphic is erased. However, even in this case, if the data amount does not decrease overall, the intermediate data is stored in the processed area 236 as it is. If the first unit figure is not included in the second unit figure, the two unit figures are apart from each other, and S518 is executed, and the intermediate data set for the first unit figure is stored in the processed area 236. To be done. Further, even if the first unit figure contains the second unit figure, if the first unit figure is not the read figure, S520 becomes NO and S518 is executed. The set intermediate data is stored in the processed area 236.

【0131】2つの単位図形がいずれも面図形であれ
ば、S504,S505の判定結果がNOになり、S5
15において不重複新図形の規定点の取得が行われる。
図形は黒1色で記録されるため、交差する2つの単位図
形がいずれも面図形であれば、それら面図形の重複部を
除いた合体型の不重複新図形の輪郭線を規定する規定点
が取得され、規定点数が減少するのであれば、不重複新
図形について中間データが作成され、2つの単位図形に
ついてそれぞれ作成されて未処理領域234に格納され
ている中間データと置換される(S516,S51
7)。
If the two unit figures are both surface figures, the determination results of S504 and S505 are NO, and S5
At 15, the prescribed points of the non-overlapping new figure are acquired.
Since the figure is recorded in one black color, if the two intersecting unit figures are both surface figures, the specified point that defines the outline of the merged non-overlapping new figure excluding the overlapping parts of these area figures. Is acquired and the prescribed number of points decreases, intermediate data is created for the non-overlapping new graphic, and is replaced with the intermediate data created for each of the two unit graphics and stored in the unprocessed area 234 (S516). , S51
7).

【0132】以上の処理は、中間データバッファの未処
理領域に格納された中間データが1個になるまで繰り返
し行われ、中間データが残り1個になればS509の判
定結果がYESになってS510が実行され、最後の中
間データが処理済領域236に格納された後、S511
が実行され、処理済領域236に格納された中間データ
が画像データメモリに格納される。
The above process is repeated until the number of intermediate data stored in the unprocessed area of the intermediate data buffer becomes one, and when the remaining intermediate data becomes one, the determination result of S509 becomes YES and S510. Is executed and the last intermediate data is stored in the processed area 236, S511
Is executed, and the intermediate data stored in the processed area 236 is stored in the image data memory.

【0133】上記実施形態においては、中間データを画
像データメモリ110に格納する際に全部の中間データ
についてデータ量減少処理を行うようにされており、画
像データメモリ110に格納する中間データの量を減ら
し、画像データメモリ110を記憶容量の小さいものと
することに有効であるが、中間データをデータ量減少処
理を行うことなく、そのまま画像データメモリ110に
格納し、画像データメモリ110が一杯になって更に中
間データを格納することができなくなったときにデータ
量減少処理を行うようにしてもよい。
In the above embodiment, when the intermediate data is stored in the image data memory 110, the data amount reduction processing is performed on all the intermediate data, and the amount of the intermediate data stored in the image data memory 110 is changed. It is effective to reduce the image data memory 110 so that the image data memory 110 has a small storage capacity. However, the intermediate data is stored in the image data memory 110 as it is without performing the data amount reduction process, and the image data memory 110 becomes full. As a result, the data amount reduction process may be performed when the intermediate data cannot be stored.

【0134】画像データメモリ110が一杯になったと
きに行うデータ量減少処理を図42に基づいて概略的に
説明する。この場合、外部電子機器から供給された画像
データに基づいて作成された中間データは、中間データ
バッファに格納されるが、処理バッファに格納されるこ
となく、画像データメモリ110に格納される。そし
て、図42(a)に斜線を施して示すように、画像デー
タメモリ110のデータ格納許容領域の全部に中間デー
タが格納されれば、中間データバッファからの中間デー
タの取込みが中断されるとともに、データ量減少処理が
開始される。この際、データ量減少処理される全部のデ
ータDA の量は図42(b)に示すように予め定められ
ており、そのうちの一部(これを処理データDB と称す
る)が処理バッファに移されて処理される。この処理
は、画像がカラーで記録されるのであれば、図1〜図3
1に示す実施形態におけると同様に行われ、白黒で記録
されるのであれば、図32〜図39に示す実施形態にお
けると同様に行われる。
The data amount reduction processing performed when the image data memory 110 is full will be schematically described with reference to FIG. In this case, the intermediate data created based on the image data supplied from the external electronic device is stored in the intermediate data buffer, but is stored in the image data memory 110 without being stored in the processing buffer. Then, as indicated by hatching in FIG. 42A, if the intermediate data is stored in the entire data storage permissible area of the image data memory 110, the fetching of the intermediate data from the intermediate data buffer is interrupted. , Data amount reduction processing is started. At this time, the amount of all the data D A to be subjected to the data amount reduction processing is predetermined as shown in FIG. 42 (b), and a part thereof (this is referred to as processing data D B ) is stored in the processing buffer. Moved and processed. If the image is recorded in color, this process will be performed with reference to FIGS.
1 is performed in the same manner as in the embodiment shown in FIG. 1, and if it is recorded in black and white, the same as in the embodiment shown in FIGS.

【0135】最初に処理される処理データDB1は、デー
タ量減少処理後、画像データメモリ110の元の格納位
置に戻される。処理済データDB1´の量は図42(c)
に斜線を施して示すように減っており、点を付して示す
ように画像データメモリ110に空領域ができる。次
に、処理データDB1の次に格納されている処理データで
あって、処理データDB1と同じ量のデータDB2が処理バ
ッファ108に移されてデータ量減少処理される。処理
済データDB2´は、図42(d)に示すように、上記空
領域分、詰めて画像データメモリ110に格納される。
処理データDB2の処理によっても空領域が生じ、図42
(d)に点を付して示すように空領域が増える。
The processed data D B1 to be processed first is returned to the original storage position of the image data memory 110 after the data amount reduction processing. The amount of processed data D B1 ′ is shown in FIG. 42 (c).
Is reduced as shown by hatching, and an empty area is formed in the image data memory 110 as shown by dots. Next, processing a processing data stored in the next data D B1, the data D B2 of the same amount as the processing data D B1 is the amount of data reduction processing is transferred to the processing buffer 108. As shown in FIG. 42D, the processed data D B2 ′ is stored in the image data memory 110 after being stuffed by the empty area.
An empty area is also generated by the processing of the processing data D B2 , and
As shown by the dots in (d), the empty area increases.

【0136】量DA のデータについて処理が行われれ
ば、図42(e)に点を付して示すように空領域が得ら
れる。処理終了後、空いた領域に新たに中間データが格
納されるが、画像データメモリ110が一旦、一杯にな
ってデータ量減少処理が行われた後は、中間データを予
めデータ量減少処理して画像データメモリ110に格納
する。前記実施形態におけると同様に、中間データバッ
ファから処理バッファへ中間データが移され、処理バッ
ファの未処理領域にN個の中間データが移される毎にデ
ータ量減少処理が行われるのである。
When the data of the quantity D A is processed, the empty area is obtained as shown by the dots in FIG. 42 (e). After the processing is completed, the intermediate data is newly stored in the vacant area. However, after the image data memory 110 is once full and the data amount reduction process is performed, the intermediate data is subjected to the data amount reduction process in advance. It is stored in the image data memory 110. Similar to the above embodiment, the intermediate data is transferred from the intermediate data buffer to the processing buffer, and the data amount reduction processing is performed every time N intermediate data are transferred to the unprocessed area of the processing buffer.

【0137】このようにしてもなお、画像データメモリ
110が一杯になったときには、処理バッファに格納さ
れた中間データの処理が終了し、画像データメモリ11
0に格納された後、中間データバッファからの新たな中
間データの処理バッファへの取込みが中断され、画像デ
ータメモリ110に既に格納されている中間データが処
理バッファに移されてデータ量減少処理が行われる。こ
の場合には、図42(f)に示すように、1回目にデー
タ量減少処理を行った中間データDA1より先に格納され
た中間データDA2についてデータ量減少処理が行われ
る。まだ、データ量減少処理が行われていない中間デー
タについて処理が行われるのであり、それにより生ずる
空領域に新たな中間データであって、データ量減少処理
済みの中間データが格納される。
Even in this way, when the image data memory 110 becomes full, the processing of the intermediate data stored in the processing buffer is completed, and the image data memory 11
After being stored in 0, the acquisition of new intermediate data from the intermediate data buffer to the processing buffer is interrupted, the intermediate data already stored in the image data memory 110 is transferred to the processing buffer, and the data amount reduction processing is performed. Done. In this case, as shown in FIG. 42 (f), the data amount reduction processing is performed on the intermediate data D A2 stored earlier than the intermediate data D A1 that was subjected to the data amount reduction processing for the first time. The intermediate data that has not been subjected to the data amount reduction processing is still processed, and the new intermediate data, which has been subjected to the data amount reduction processing, is stored in the empty area generated thereby.

【0138】本実施形態によれば、減少させ得るデータ
量は少ないが、中間データを画像データメモリ110に
格納するのに要する時間が短くて済み、ひいては画像デ
ータの受信から記録までの時間を短くすることが可能で
ある。
According to this embodiment, the amount of data that can be reduced is small, but the time required to store the intermediate data in the image data memory 110 is short, and the time from the reception of image data to the recording is short. It is possible to

【0139】なお、上記各実施形態において制御装置9
0はCPUを2個有するものとされていたが、1個のC
PUにより制御を行うものとしてもよい。例えば、時分
割により、中間データ作成処理とデータ量減少処理とを
並列に行うのである。
In each of the above embodiments, the control device 9
0 was supposed to have two CPUs, but one C
The control may be performed by the PU. For example, the intermediate data creation process and the data amount reduction process are performed in parallel by time division.

【0140】また、図40および図41に示す実施形態
においては、読取図形と面図形とが重複する場合を説明
したが、読取図形が線図形と重複する場合にも同様に、
不重複部分図形のデータを作成してもよい。線図形を読
取図形の下に記録される部分を除いた図形に変更し、あ
るいは読取図形を、読取図形領域内の画素のうち、線図
形を表す画素を除いた図形に変更するのである。さら
に、画像がカラーで記録される場合にも同様に、読取図
形が面図形や線図形と重複するのであれば、面図形や線
図形を変更し、あるいは読取図形を変更してもよい。
Further, in the embodiment shown in FIGS. 40 and 41, the case where the read figure and the area figure overlap has been described. However, when the read figure overlaps the line figure, the same applies.
Data of non-overlapping subfigures may be created. The line figure is changed to a figure excluding the portion recorded below the read figure, or the read figure is changed to a figure excluding the pixels representing the line figure among the pixels in the read figure area. Further, when the image is recorded in color, similarly, if the read figure overlaps the plane figure or the line figure, the plane figure or the line figure may be changed, or the read figure may be changed.

【0141】また、画像がカラーで記録される場合に
も、図32〜図39に示す実施形態におけると同様に、
単位図形群を構成する全部の単位図形の各外接矩形につ
いて交差関係を調べ、直接あるいは間接につながる単位
図形についてまとめて処理を行うようにしてもよい。
Even when an image is recorded in color, as in the embodiment shown in FIGS. 32 to 39,
It is also possible to check the intersecting relations of the circumscribed rectangles of all the unit figures that form the unit figure group, and collectively process the unit figures that are directly or indirectly connected.

【0142】さらに、上記実施形態においては、2つの
単位図形のうち、1番目の単位図形が面図形,2番目の
単位図形が線図形であって、両者が同じ色で記録される
場合、1番目の面図形について作成された中間データが
そのまま処理済領域に格納され、線図形の中間データは
そのまま未処理領域に残されるようにされていたが、こ
れは不可欠ではなく、例えば、1番目の面図形の中間デ
ータは処理済領域に格納し、2番目の線図形について不
重複部分図形の規定点を取得するようにしてもよい。同
じ色で記録されるのであれば、線図形が面図形の上に記
録されるのであっても、面図形との重複部分は面図形の
一部として処理して支障はないからである。この場合、
不重複部分図形の規定点が元の線図形の規定点数より少
なければ、不重複部分図形について中間データを作成
し、未処理領域に格納されている元の線図形の中間デー
タと置換し、規定点が減少しなければ、線図形の中間デ
ータはそのままにしておけばよい。なお、線図形が複数
の線分の集合であり、各線分の色が互いに異なることが
あれば、例えば、1つでも面図形と色が異なる線分があ
るとき、その線図形の色は面図形とは異なるものとすれ
ばよい。
Further, in the above embodiment, when the first unit figure is a plane figure and the second unit figure is a line figure and the two unit figures are recorded in the same color, The intermediate data created for the 2nd surface figure is stored in the processed area as it is, and the intermediate data of the line figure is left as it is in the unprocessed area, but this is not essential. The intermediate data of the area figure may be stored in the processed area, and the specified point of the non-overlapping part figure may be acquired for the second line figure. This is because if they are recorded in the same color, even if the line figure is recorded on the surface figure, the overlapping portion with the surface figure can be processed as a part of the surface figure without any problem. in this case,
If the specified points of the non-overlapping sub-graphics are less than the specified points of the original line drawing, create intermediate data for the non-overlapping sub-graphics and replace them with the intermediate data of the original line drawing stored in the unprocessed area. If the points do not decrease, the intermediate data of the line figure may be left as it is. If a line figure is a set of a plurality of line segments and the color of each line segment may be different from each other, for example, if there is even one line segment whose color is different from that of the plane figure, the color of the line figure is It may be different from the figure.

【0143】また、上記実施形態において、2つの単位
図形の各外接矩形が離れておらず、かつ、2つの単位図
形が交差しないとき、1番目の単位図形を構成する複数
の規定点のうちの1つが1番目の単位図形の内側にある
か、外側にあるかを調べることにより、2つの単位図形
の一方が他方に内包されるか、あるいは一方が他方の内
側にないことが判定されるようになっていたが、2つの
単位図形の各外接矩形の大きさに基づいて判定するよう
にしてもよい。例えば、一方の外接矩形のX軸に平行な
辺およびY軸に平行な辺がいずれも、他方の外接矩形の
X軸に平行な辺およびY軸に平行な辺より短ければ、交
差しない2つの単位図形は、外接矩形が小さい方の単位
図形が大きい方の単位図形に内包されるか、あるいは外
に位置するかのいずれかであり、1番目の単位図形が外
接矩形が大きい方の図形であれば、この単位図形が2番
目の単位図形に内包されて記録されないことがなく、そ
の中間データをそのまま処理済領域に格納すればよい。
また、一方の外接矩形のX軸に平行な辺が他方の外接矩
形のX軸に平行な辺より長く、一方の外接矩形のY軸に
平行な辺が他方の外接矩形のY軸に平行な辺より短けれ
ば、交差しない2つの単位図形は、一方の外接矩形を有
する単位図形が他方の外接矩形を有する単位図形の外に
あるのが普通であり、1番目の単位図形の中間データを
そのまま処理済領域に格納すればよい。一方の外接矩形
のY軸に平行な辺が他方の外接矩形のY軸に平行な辺よ
り長く、一方の外接矩形のX軸に平行な辺が他方の外接
矩形のX軸に平行な辺より短い場合も同じである。
In the above embodiment, when the circumscribed rectangles of the two unit figures are not separated from each other and the two unit figures do not intersect, among the plurality of prescribed points forming the first unit figure. By checking whether one of the two unit figures is inside or outside the first unit figure, it is possible to determine whether one of the two unit figures is included in the other or one is not inside the other. However, the determination may be made based on the size of each circumscribing rectangle of the two unit figures. For example, if the side parallel to the X axis and the side parallel to the Y axis of one circumscribed rectangle are both shorter than the side parallel to the X axis and the side parallel to the Y axis of the other circumscribed rectangle, two The unit figure has either a smaller unit circumscribed rectangle enclosed by a larger unit figure or is located outside, and the first unit figure is a larger circumscribed rectangle. If so, the unit graphic is not included in the second unit graphic and is not recorded, and the intermediate data may be stored as it is in the processed area.
The side of one circumscribing rectangle parallel to the X axis is longer than the side of the other circumscribing rectangle parallel to the X axis, and the side of one circumscribing rectangle parallel to the Y axis is parallel to the Y axis of the other circumscribing rectangle. If the unit figures having one circumscribed rectangle are outside the unit figure having the circumscribed rectangle of the other, the two unit figures that do not intersect are shorter than the side, and the intermediate data of the first unit figure is not changed. It may be stored in the processed area. The side parallel to the Y axis of one circumscribed rectangle is longer than the side parallel to the Y axis of the other circumscribed rectangle, and the side parallel to the X axis of one circumscribed rectangle is greater than the side parallel to the X axis of the other circumscribed rectangle. The same is true for shorter cases.

【0144】さらに、上記実施形態において線図形は開
いた線図形とされていたが、面図形の輪郭線である閉じ
た線図形についても同様に、不重複部分図形を作成して
もよい。
Further, although the line figure is an open line figure in the above embodiment, a non-overlapping part figure may be similarly created for a closed line figure which is an outline of a surface figure.

【0145】また、線図形は有限線に限らず、無限の直
線,曲線あるいはそれらの組合わせでもよく、有限線と
無限線との組合わせでもよい。
The line figure is not limited to a finite line, and may be an infinite line, a curve, or a combination thereof, or a combination of a finite line and an infinite line.

【0146】さらに、読取図形領域が矩形の場合、その
矩形を規定する2点は、X座標値が最小,Y座標値が最
大である点、およびX座標値が最大,Y座標値が最小で
ある点でもよい。
Further, when the read graphic area is a rectangle, two points defining the rectangle are the point having the smallest X coordinate value and the largest Y coordinate value, and the point having the largest X coordinate value and the smallest Y coordinate value. It may be a certain point.

【0147】また、図32〜図39の実施形態における
ように、直接あるいは間接につながった単位図形につい
てまとめて処理を行うとき、不重複新図形を規定する座
標データや主図形の中間データは、主図形について、そ
の主図形と直接あるいは間接に重複する従図形との間で
交差,内包,不重複新図形を構成するか否か等の判定が
全部終了するまで未処理領域に格納しておき、終了後に
処理済領域に格納してもよい。
Further, as in the embodiment of FIGS. 32 to 39, when the unit graphics connected directly or indirectly are collectively processed, the coordinate data defining the non-overlapping new graphic and the intermediate data of the main graphic are: The main figure is stored in the unprocessed area until all the judgments such as intersection, inclusion, and non-overlapping new figure between the main figure and the sub-graphics that directly or indirectly overlap are completed. After completion, it may be stored in the processed area.

【0148】さらに、単位図形群を構成する全部の単位
図形について不重複新図形の規定点の取得等が終了した
後、データを画像データメモリに格納するとき、以後の
処理において図形を規定する座標データおよび色データ
があればよいのであれば、それらデータのみを画像デー
タメモリに格納してもよい。
Furthermore, when the data is stored in the image data memory after the acquisition of the defined points of the new non-overlapping figures for all the unit figures forming the unit figure group is completed, the coordinates for defining the figures in the subsequent processing. If only data and color data are required, only those data may be stored in the image data memory.

【0149】また、ポストスクリプト言語以外の記述様
式で作成された画像データも本発明の画像処理装置によ
って処理することができる。重複する2個の単位図形同
士で優先順位が必要な場合、優先順位を指示するデータ
が付されていればよいのである。
Image data created in a description format other than the Postscript language can also be processed by the image processing apparatus of the present invention. When priority is required between two overlapping unit figures, data indicating the priority may be attached.

【0150】さらにまた、本発明は、上記各実施形態の
構成要素の組合わせを変えた態様で実施することができ
る。その他、特許請求の範囲を逸脱することなく、当業
者の知識に基づいて種々の変形,改良を施した態様で本
発明を実施することができる。
Further, the present invention can be implemented in a mode in which the combination of the constituent elements of each of the above embodiments is changed. In addition, without departing from the scope of the claims, the present invention can be implemented in various modified and improved forms based on the knowledge of those skilled in the art.

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

【図1】第1ないし第6の各発明に共通の一実施形態で
ある画像処理装置を備えたインクジェットプリンタを示
す斜視図である。
FIG. 1 is a perspective view showing an inkjet printer provided with an image processing apparatus that is an embodiment common to the first to sixth inventions.

【図2】上記インクジェットプリンタのプラテンの駆動
機構およびインク噴射装置を示す平面図である。
FIG. 2 is a plan view showing a platen drive mechanism and an ink ejecting apparatus of the inkjet printer.

【図3】上記インクジェットプリンタを制御する制御装
置のうち、本発明に関連の深い部分を取り出して示すブ
ロック図である。
FIG. 3 is a block diagram showing a part of a control device for controlling the inkjet printer, which is deeply related to the present invention.

【図4】上記制御装置を構成する第一制御部に接続され
たRAMのうち、本発明に関連の深い部分を取り出して
概念的に示すブロック図である。
FIG. 4 is a block diagram conceptually showing, out of a RAM connected to a first control unit constituting the control device, a portion deeply related to the present invention.

【図5】上記画像処理装置において行われる凹多角形の
分割の一例を示す図である。
FIG. 5 is a diagram showing an example of division of a concave polygon performed in the image processing apparatus.

【図6】上記画像処理装置において行われる凹多角形の
分割の別の例を示す図である。
FIG. 6 is a diagram showing another example of division of a concave polygon performed in the image processing apparatus.

【図7】上記画像処理装置において行われる辺交差多角
形の分割の一例を示す図である。
FIG. 7 is a diagram showing an example of division of an edge-crossing polygon performed in the image processing apparatus.

【図8】上記画像処理装置において処理される単位図形
の一例である面図形およびその面図形について作成され
る中間データを示す図である。
FIG. 8 is a diagram showing a plane figure which is an example of a unit figure processed by the image processing apparatus and intermediate data created for the plane figure.

【図9】上記制御装置を構成する第一制御部に接続され
たROMに格納された図形処理ルーチンを示すフローチ
ャートである。
FIG. 9 is a flowchart showing a graphic processing routine stored in a ROM connected to a first control unit which constitutes the above control device.

【図10】上記図形処理ルーチンを構成するデータ量減
少処理ルーチンを示すフローチャートである。
FIG. 10 is a flowchart showing a data amount reduction processing routine which constitutes the graphic processing routine.

【図11】上記データ量減少処理ルーチンを構成する単
位図形交差判定ルーチンを示すフローチャートである。
FIG. 11 is a flowchart showing a unit graphic intersection determination routine which constitutes the data amount reduction processing routine.

【図12】上記画像処理装置によりデータ量減少処理さ
れる単位図形群を示す図である。
FIG. 12 is a diagram showing a unit graphic group subjected to data amount reduction processing by the image processing apparatus.

【図13】上記データ量減少処理ルーチンにおいて行わ
れる外接矩形の交差の判定を説明する図である。
FIG. 13 is a diagram for explaining determination of intersection of circumscribed rectangles performed in the data amount reduction processing routine.

【図14】図12に示す単位図形のうち、先頭の2つの
単位図形の外接矩形が交差する状態を示す図である。
FIG. 14 is a diagram showing a state in which the circumscribed rectangles of the first two unit figures of the unit figures shown in FIG. 12 intersect.

【図15】上記図形処理ルーチンにおいて行われる不重
複新図形の規定点の取得を説明する図である。
FIG. 15 is a diagram illustrating acquisition of defined points of a non-overlapping new graphic performed in the graphic processing routine.

【図16】上記不重複新図形の規定点の取得により得ら
れた規定点が処理バッファの不重複新図形データ格納領
域に格納された状態を示す図である。
FIG. 16 is a diagram showing a state in which the defined points obtained by acquiring the defined points of the non-overlapping new graphic are stored in the non-overlapping new graphic data storage area of the processing buffer.

【図17】図12に示す単位図形のうち、先頭の2つの
単位図形により構成される不重複新図形の規定点の取得
を説明する図である。
FIG. 17 is a diagram for explaining acquisition of specified points of a non-overlapping new figure composed of the first two unit figures among the unit figures shown in FIG. 12;

【図18】図17に示す不重複新図形を規定する規定点
が不重複新図形データ格納領域に格納された状態を示す
図である。
FIG. 18 is a diagram showing a state in which the defined points defining the non-overlapping new graphic shown in FIG. 17 are stored in the non-overlapping new graphic data storage area.

【図19】上記RAMの処理バッファに設けられた未処
理領域140および処理済領域142のデータ量減少処
理に伴うデータ格納内容の変化を示す図である。
FIG. 19 is a diagram showing a change in data storage contents accompanying a data amount reduction process of an unprocessed area 140 and a processed area 142 provided in the processing buffer of the RAM.

【図20】上記図形処理ルーチンにおいて行われる不重
複部分図形の規定点の取得を説明する図である。
FIG. 20 is a diagram illustrating acquisition of defined points of a non-overlapping part graphic performed in the graphic processing routine.

【図21】図20に示す不重複部分図形を規定する規定
点が不重複部分図形データ格納領域に格納された状態を
示す図である。
FIG. 21 is a diagram showing a state in which defined points defining the non-overlapping partial graphic shown in FIG. 20 are stored in a non-overlapping partial graphic data storage area.

【図22】図12に示す単位図形のうち、先頭の2つの
単位図形の一方により構成される不重複部分図形の輪郭
線規定点の取得を説明する図である。
22 is a diagram illustrating acquisition of contour line defining points of a non-overlapping partial figure composed of one of the first two unit figures among the unit figures shown in FIG. 12;

【図23】図22に示す不重複部分図形を規定する規定
点が不重複部分図形データ格納領域に格納された状態を
示す図である。
FIG. 23 is a diagram showing a state in which defined points defining the non-overlapping partial graphic shown in FIG. 22 are stored in a non-overlapping partial graphic data storage area.

【図24】2つの単位図形が異なる色で記録される場合
を説明する図である。
FIG. 24 is a diagram illustrating a case where two unit figures are recorded in different colors.

【図25】2つの単位図形のうちの一方が他方に含まれ
る例を示す図である。
FIG. 25 is a diagram showing an example in which one of two unit figures is included in the other.

【図26】2つの単位図形のうち、一方の単位図形の外
接矩形が他方の単位図形の外接矩形に含まれるが、単位
図形同士は離れている例を示す図である。
FIG. 26 is a diagram showing an example in which a circumscribed rectangle of one unit figure of two unit figures is included in a circumscribed rectangle of the other unit figure, but the unit figures are separated from each other.

【図27】点の面図形に対する内包関係の判定を説明す
る図である。
[Fig. 27] Fig. 27 is a diagram for describing determination of an inclusive relation with respect to a point figure.

【図28】点が面図形に内包される場合の判定を説明す
る図である。
[Fig. 28] Fig. 28 is a diagram for describing determination when a point is included in a surface figure.

【図29】点が面図形の外に位置する場合の判定を説明
する図である。
FIG. 29 is a diagram illustrating a determination when a point is located outside the area figure.

【図30】上記画像処理装置において処理される単位図
形の一例である線図形およびその線図形について作成さ
れる中間データを示す図である。
FIG. 30 is a diagram showing a line graphic that is an example of a unit graphic processed in the image processing apparatus and intermediate data created for the line graphic.

【図31】線図形と面図形とが交差する場合の処理を説
明する図である。
FIG. 31 is a diagram illustrating a process when a line figure and a surface figure intersect.

【図32】第1ないし第6の各発明に共通の別の実施形
態である画像処理装置により処理される単位図形群を示
す図である。
FIG. 32 is a diagram showing a unit graphic group processed by an image processing apparatus which is another embodiment common to the first to sixth inventions.

【図33】図32に示す単位図形群を処理する画像処理
装置を構成するRAMの処理バッファの構成を示す図で
ある。
FIG. 33 is a diagram showing a configuration of a RAM processing buffer that constitutes an image processing apparatus for processing the unit graphic group shown in FIG. 32;

【図34】図32に示す単位図形群を処理する画像処理
装置を構成するROMに格納されたデータ量減少処理ル
ーチンを示すフローチャートである。
34 is a flowchart showing a data amount reduction processing routine stored in a ROM which constitutes the image processing apparatus for processing the unit graphic group shown in FIG. 32.

【図35】上記データ量減少処理ルーチンを構成する不
重複新図形データ作成ルーチンを示すフローチャートで
ある。
FIG. 35 is a flow chart showing a non-overlapping new figure data creation routine which constitutes the data amount reduction processing routine.

【図36】上記不重複新図形データ作成ルーチンの残り
を示すフローチャートである。
FIG. 36 is a flowchart showing the rest of the non-overlapping new figure data creation routine.

【図37】上記処理バッファに設けられた外接矩形交差
データ格納領域にデータが格納された状態を示す図であ
る。
FIG. 37 is a diagram showing a state in which data is stored in a circumscribed rectangular intersection data storage area provided in the processing buffer.

【図38】上記処理バッファに設けられた外接矩形交差
データ格納領域にデータが格納された状態を示す図であ
る。
FIG. 38 is a diagram showing a state in which data is stored in a circumscribed rectangular intersection data storage area provided in the processing buffer.

【図39】上記不重複新図形データ作成ルーチンを実行
するにあたり、主図形と従図形とが交差の判定前に不重
複新図形を形成する例を示す図である。
FIG. 39 is a diagram showing an example of forming a non-overlapping new graphic before determining the intersection of the main graphic and the sub-graphic when executing the non-overlapping new graphic data creation routine.

【図40】第1ないし第6の発明に共通の更に別の実施
形態である画像処理装置を備えたインクジェットプリン
タの制御装置を構成する第一制御部に接続されたROM
に格納された図形処理ルーチンを示すフローチャートで
ある。
FIG. 40 is a ROM connected to a first control unit which constitutes a control device of an inkjet printer including an image processing device which is another embodiment common to the first to sixth inventions.
6 is a flowchart showing a graphic processing routine stored in FIG.

【図41】上記ROMに格納されたデータ量減少処理ル
ーチンを示すフローチャートである。
FIG. 41 is a flowchart showing a data amount reduction processing routine stored in the ROM.

【図42】第1ないし第7の発明に共通の実施形態であ
る画像処理装置におけるデータ量の減少処理を概略的に
説明する図である。
[Fig. 42] Fig. 42 is a diagram schematically illustrating a data amount reduction process in an image processing apparatus that is an embodiment common to the first to seventh inventions.

【符号の説明】[Explanation of symbols]

8 インクジェットプリンタ 90 制御装置 106 中間データバッファ 108 処理バッファ 110 画像データメモリ 140 未処理領域 142 処理済領域 176 単位図形群 192 不重複新図形 196 不重複部分図形 230 単位図形群 8 inkjet printer 90 control device 106 intermediate data buffer 108 processing buffer 110 image data memory 140 unprocessed area 142 processed area 176 unit graphic group 192 non-overlapping new graphic 196 non-overlapping partial graphic 230 unit graphic group

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 複数の単位図形を含み、それら複数の単
位図形の少なくとも一つが、他の単位図形のうちの少な
くとも一つと少なくとも一部において重複する集合図形
を構成する単位図形群を処理する処理手段を含む画像処
理装置であって、 前記処理手段が、 前記処理前の単位図形のデータを記憶する処理前図形デ
ータ記憶手段と、 その処理前図形データ記憶手段に記憶された単位図形デ
ータに基づいて、前記互いに重複する単位図形に関し
て、互いに重複する部分の一方を省略した不重複新図形
のデータを作成する不重複新図形データ作成手段と、 その不重複新図形データ作成手段により作成された不重
複新図形データを記憶する不重複新図形データ記憶手段
とを含むことを特徴とする画像処理装置。
1. A process for processing a unit figure group including a plurality of unit figures, and at least one of the plurality of unit figures forming an aggregate figure at least partially overlapping with at least one of the other unit figures. An image processing apparatus including means, wherein the processing means stores pre-processed graphic data storage means for storing data of the unit graphic before processing, and unit graphic data stored in the pre-processed graphic data storage means. The non-overlapping new graphic data creating means for creating the non-overlapping new graphic data in which one of the overlapping parts is omitted, and the non-overlapping new graphic data creating means An image processing apparatus comprising: non-overlapping new graphic data storage means for storing overlapping new graphic data.
【請求項2】 前記複数の単位図形の少なくとも一つが
3個以上の規定点により、残りの単位図形が2個以上の
規定点によりそれぞれ規定されるものである場合に、前
記不重複新図形データ作成手段が、前記複数の単位図形
のうち少なくとも一部が互いに重複する2個の単位図形
をそれぞれ規定する規定点の数の和が、それら2個の単
位図形から作成される不重複新図形を規定する規定点の
数より多い場合に、それら2個の単位図形から不重複新
図形を作成し、多くない場合には作成しない規定点減少
時不重複新図形データ作成手段を含むことを特徴とする
請求項1に記載の画像処理装置。
2. The non-overlapping new figure data when at least one of the plurality of unit figures is defined by three or more defined points and the remaining unit figures are defined by two or more defined points. The creating means calculates a non-overlapping new figure in which the sum of the numbers of defined points that respectively define two unit figures in which at least some of the plurality of unit figures overlap each other is created from these two unit figures. When the number of defined points is greater than the number of defined points, a new non-overlapping new figure is created from these two unit figures, and if it is not many, it is not created. The image processing device according to claim 1.
【請求項3】 前記不重複新図形データ記憶手段に記憶
された不重複新図形データに基づいて、画素毎にドット
を形成するか否かにより図形を出力する出力装置に前記
不重複新図形を出力するためのドットデータを作成する
ドットデータ作成手段を含むことを特徴とする請求項1
または2に記載の画像処理装置。
3. The non-overlapping new graphic is output to an output device which outputs the graphic depending on whether or not a dot is formed for each pixel based on the non-overlapping new graphic data stored in the non-overlapping new graphic data storage means. 2. A dot data creating means for creating dot data to be output is included.
Or the image processing device according to 2.
【請求項4】 前記不重複新図形データ作成手段が、前
記複数の単位図形の各2個について、それら各2個の各
々に外接する外接矩形同士が少なくとも一部において重
複するか否かにより、それら各2個が重複する可能性が
あるか否かを判定する重複可能性判定手段と、その重複
可能性判定手段により重複の可能性があると判定された
各2個の単位図形について、単位図形そのものの重複を
検出する外接矩形重複時重複図形検出手段とを含むこと
を特徴とする請求項1ないし3のいずれか1つに記載の
画像処理装置。
4. The non-overlapping new figure data creating means determines whether or not circumscribed rectangles circumscribing each of the plurality of unit figures overlap each other at least partially. A unit of the duplication possibility determination means for determining whether or not there is a possibility of duplication of each of the two pieces and a unit of each of the two unit figures determined to have the possibility of duplication by the duplication possibility determination means. 4. The image processing apparatus according to claim 1, further comprising a circumscribing rectangle overlapped overlapping figure detecting means for detecting an overlap of the figures themselves.
【請求項5】 前記処理前図形データ記憶手段が、前記
複数の単位図形のデータを、それら単位図形間の優先順
位を判別可能な状態で記憶するものであり、かつ、前記
不重複新図形データ作成手段が、 前記複数の単位図形の2個が互いに重複する際に、優先
順位が上である単位図形の単位図形データは変更せず、
優先順位が下である単位図形の単位図形データは優先順
位が上である単位図形と重複しない部分の部分図形デー
タに変更する優先順位対応不重複新図形データ作成手段
と、 前記不重複新図形の輪郭線を規定する輪郭線データを作
成する輪郭線データ作成手段と、 それら優先順位対応不重複新図形データ作成手段と輪郭
線データ作成手段とを選択的に作動させる不重複新図形
作成形態選択手段とを含むことを特徴とする請求項1な
いし4のいずれか1つに記載の画像処理装置。
5. The unprocessed figure data storage means stores the data of the plurality of unit figures in a state in which the priority order among the unit figures can be determined, and the non-overlapping new figure data. When the two of the plurality of unit figures overlap each other, the creating means does not change the unit figure data of the unit figure having the higher priority,
Priority-corresponding non-overlapping new graphic data creating means for changing unit graphic data of a unit graphic of lower priority to partial graphic data of a portion which does not overlap with unit graphic of higher priority; Contour line data creating means for creating contour line data defining a contour line, and non-overlapping new figure creating mode selecting means for selectively operating the priority-corresponding non-overlapping new figure data creating means and the contour line data creating means The image processing device according to claim 1, further comprising:
【請求項6】 前記処理手段によって一度に処理される
単位図形の数が予め設定されていることを特徴とする請
求項1ないし5のいずれか1つに記載の画像処理装置。
6. The image processing apparatus according to claim 1, wherein the number of unit figures processed at one time by the processing means is set in advance.
【請求項7】 前記処理前図形データ記憶手段の記憶容
量が不足の場合に、前記規定点減少時不重複新図形デー
タ作成手段を作動させ、その結果作成された不重複新図
形データを処理前図形データ記憶手段にその不重複新図
形データに対応する単位図形データに代えて記憶させる
記憶容量不足対処手段を含むことを特徴とする請求項2
ないし6のいずれか1つに記載の画像処理装置。
7. When the storage capacity of the pre-processed graphic data storage means is insufficient, the non-overlapping new graphic data creating means is activated when the prescribed point is reduced, and the non-overlapping new graphic data created as a result is processed. 3. The graphic data storage means includes storage capacity shortage coping means for storing instead of the unit graphic data corresponding to the non-overlapping new graphic data.
7. The image processing device according to any one of items 1 to 6.
JP09446196A 1996-04-16 1996-04-16 Image processing device Expired - Fee Related JP3552402B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09446196A JP3552402B2 (en) 1996-04-16 1996-04-16 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09446196A JP3552402B2 (en) 1996-04-16 1996-04-16 Image processing device

Publications (2)

Publication Number Publication Date
JPH09281953A true JPH09281953A (en) 1997-10-31
JP3552402B2 JP3552402B2 (en) 2004-08-11

Family

ID=14110923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09446196A Expired - Fee Related JP3552402B2 (en) 1996-04-16 1996-04-16 Image processing device

Country Status (1)

Country Link
JP (1) JP3552402B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466229B1 (en) 1999-01-26 2002-10-15 Fuji Xerox Co., Ltd. Graphics processing apparatus and graphics processing method
JP2004215370A (en) * 2002-12-27 2004-07-29 Ricoh Co Ltd Dc motor controller
JP2005007824A (en) * 2003-06-20 2005-01-13 Ricoh Co Ltd Image output device, and image outputting system
JP2006270458A (en) * 2005-03-23 2006-10-05 Fuji Xerox Co Ltd Apparatus and method for image processing
WO2012001781A1 (en) * 2010-06-30 2012-01-05 富士通株式会社 Drawing apparatus and drawing program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466229B1 (en) 1999-01-26 2002-10-15 Fuji Xerox Co., Ltd. Graphics processing apparatus and graphics processing method
JP2004215370A (en) * 2002-12-27 2004-07-29 Ricoh Co Ltd Dc motor controller
JP2005007824A (en) * 2003-06-20 2005-01-13 Ricoh Co Ltd Image output device, and image outputting system
JP2006270458A (en) * 2005-03-23 2006-10-05 Fuji Xerox Co Ltd Apparatus and method for image processing
WO2012001781A1 (en) * 2010-06-30 2012-01-05 富士通株式会社 Drawing apparatus and drawing program
US20130106909A1 (en) * 2010-06-30 2013-05-02 Fujitsu Limited Drawing apparatus
JPWO2012001781A1 (en) * 2010-06-30 2013-08-22 富士通株式会社 Drawing apparatus and drawing program

Also Published As

Publication number Publication date
JP3552402B2 (en) 2004-08-11

Similar Documents

Publication Publication Date Title
US8472079B2 (en) Image processing apparatus, method, and program product for display and control of color material amount used in seperated object areas
JP2009230738A (en) Printing control system, printing request terminal, printer, printing control program, and printing control method
EP0427466B1 (en) Computer plotter control
JP2018176711A (en) Printing method of three-dimensional printer model
JP4518172B2 (en) Image generating apparatus and printing apparatus
US8384951B2 (en) Image generating devices and printing devices that generate gradations using symmetry and methods for generating gradations using symmetry
JP6908884B2 (en) Image processing equipment and computer programs
JPH09281953A (en) Picture processing device
US8300272B2 (en) Image generating device, image generating method and printing device
JP2002016783A (en) Image processing unit and its method and image forming device
JP2009226922A (en) Printing control system, printing request terminal, printer, and printing control method
CN102253815B (en) Image processing apparatus and image processing method
JP4613636B2 (en) Print data output device and print data output method
JP4904987B2 (en) Printing method, printing apparatus, and printing program
JP2007136845A (en) Printing system, image processor, printer driver, and program
JP4085265B2 (en) Print control apparatus and print control method
JP2774354B2 (en) INK JET RECORDING APPARATUS AND CONTROL METHOD THEREOF
US20210402763A1 (en) Print device, non-transitory computer-readable medium storing computer-readable instructions, and print method
JP2017080933A (en) Molding system, molding operation control method, molding control device, and program
JP4032676B2 (en) Image recording method, image recording apparatus to which the image recording method is applied, and image recording processing program applied to the image recording apparatus
JP3404445B2 (en) Image processing device
JP2005246699A (en) Printer, printing method and program
JPH09245150A (en) Image forming method and device therefor
JP3760644B2 (en) Image processing method and apparatus
JP2000324340A (en) Picture data correcting device and its method and medium for recording picture data correction program

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040413

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040426

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080514

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090514

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090514

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100514

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110514

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120514

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120514

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140514

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees