JPH10187386A - Plotting processor - Google Patents

Plotting processor

Info

Publication number
JPH10187386A
JPH10187386A JP8355277A JP35527796A JPH10187386A JP H10187386 A JPH10187386 A JP H10187386A JP 8355277 A JP8355277 A JP 8355277A JP 35527796 A JP35527796 A JP 35527796A JP H10187386 A JPH10187386 A JP H10187386A
Authority
JP
Japan
Prior art keywords
data
boundary line
boundary
paint
temporary
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.)
Withdrawn
Application number
JP8355277A
Other languages
Japanese (ja)
Inventor
Kazutaka Hayashi
千登 林
Masao Morita
雅夫 森田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP8355277A priority Critical patent/JPH10187386A/en
Publication of JPH10187386A publication Critical patent/JPH10187386A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a plotting processor in which a thin wire can be efficiently and highly precisely reproduced from the boundary vector of a graphic. SOLUTION: A temporary boundary line generating part 6 generates a temporary boundary line at a position at which a boundary line is moved to a direction opposite to the main scanning direction of a scanning processing based on the information of a direction judging part 4 which judges the inclination of the boundary line inputted by an inputting part 2. A boundary line storing part 8 stores and preserves the generated boundary line. A boundary line reading part 10 reads the boundary line being the object of the scanning processing in the main scanning direction. A boundary line holding part 12 temporarily holds the boundary line being the object of the scanning processing. A boundary line processing part 14 operates the internal and external judgment of each plotting object, and generates paint-out information. A paint-out information holding part 18 holds and manages information related with paint-out. A paint- out processing part 16 processes the information registered in the paint-out information holding part 18, and decides and outputs the paint-out area.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ページ記述言語
(PDL)で記述された描画命令から、高速かつ高精度
にラスタ出力装置に適したデータ形式を生成する描画処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing processing apparatus for generating a data format suitable for a raster output device from a drawing command described in a page description language (PDL) at high speed and with high accuracy.

【0002】[0002]

【従来の技術】従来、Interpress(米国ゼロ
ックス社の商標)やPostScript(Adobe
社の商標)等のページ記述言語(PDL)を入力として
ページプリンタなどのラスタ出力デバイスにより出力を
行うシステムにおいては、ページバッファやバンドバッ
ファなどを用意して、展開された図形要素を順に上塗り
していくことにより描画が行なわれていた。
2. Description of the Related Art Conventionally, Interpress (trademark of Xerox Corporation in the United States) and PostScript (Adobe)
In a system in which a page description language (PDL) such as a trademark is input and output is performed by a raster output device such as a page printer, a page buffer or a band buffer is prepared, and the developed graphic elements are sequentially overcoated. Drawing was done by going.

【0003】しかし、このような方法においては図形要
素同士が重なり合っていると、同じ領域を何度も塗りつ
ぶし処理を行なってしまうので、重ね塗りの多いページ
においては処理速度を上げることが困難であるというと
いう問題を有していた。
However, in such a method, if graphic elements overlap each other, the same area is repeatedly filled, so that it is difficult to increase the processing speed in a page with many overpaintings. Had the problem that.

【0004】[0004]

【発明が解決しようとする課題】この問題に対して特願
平8−197111号では、クリッピングの処理まで含
め、複数の描画オブジェクトを一括してラスタデータに
変換することを提案している。この特願平8−1971
11号で提案された描画処理装置においては、複数の図
形の描画領域の境界を表す境界ベクトルデータを集め、
これらをまとめて走査することにより、バンドバッファ
やラインバッファなどの画素単位の情報を格納するため
のバッファを必要とせずに、効率的にラスタデータへの
変換を行なうことができる。
To solve this problem, Japanese Patent Application No. 8-197111 proposes that a plurality of drawing objects be converted into raster data collectively, including clipping processing. This Japanese Patent Application Hei 8-1971
The drawing processing device proposed in No. 11 collects boundary vector data representing boundaries of drawing regions of a plurality of figures,
By scanning these together, conversion to raster data can be performed efficiently without the need for a buffer for storing pixel-based information such as a band buffer or a line buffer.

【0005】ところで、描画図形を境界ベクトルのよう
なアウトラインで定義し、これを単純に出力デバイスの
ドットの中心点がアウトラインの中に入っているか否か
により塗りつぶし領域を決定すると、細い描画領域を表
現したアウトラインの内部を塗りつぶすときなどに画素
抜けなどの問題が生じることが知られており、細い領域
についても境界ベクトルから精度よく且つ効率的に塗り
つぶし領域を決定できる方法が必要であった。
[0005] By the way, a drawing figure is defined by an outline such as a boundary vector, and this is simply determined based on whether or not the center point of the dot of the output device is within the outline. It is known that a problem such as pixel omission occurs when the inside of the represented outline is painted, and a method that can accurately and efficiently determine a painted area from a boundary vector even in a thin area is required.

【0006】しかし、特願平8−197111号で提案
されたような、複数の図形の境界ベクトルをまとめてラ
スタ変換する方式においては、ラインバッファなどのピ
クセルの塗りつぶし結果を保持するバッファを持ってい
ないため、上記のブレゼンハムのアルゴリズムなどを効
率的に適用することが容易ではなかった。このため、細
線についても境界ベクトルから精度よく効率的に塗りつ
ぶしを行なえる方法が必要であった。
However, the method proposed in Japanese Patent Application No. 8-197111 for raster-converting the boundary vectors of a plurality of figures collectively has a buffer such as a line buffer for holding the result of pixel filling. Therefore, it was not easy to efficiently apply the above-mentioned Bresenham algorithm and the like. For this reason, there has been a need for a method capable of accurately and efficiently filling a thin line from a boundary vector.

【0007】特開平8−77372号公報にはこのよう
な問題に対して、アウトラインデータから精度よく塗り
つぶしデータを生成するために、1ライン分の塗った範
囲を保持することと、その範囲を参照して次のラインの
塗りつぶす範囲を補正することにより、細い領域の指定
を途切れなく塗りつぶす方法が開示されている。しか
し、この方法では描画オブジェクトごとに前のラインの
塗りつぶし情報を保持、管理する必要が生じるため、特
願平8−197111号で提案された描画処理装置に適
用するには、複数の描画オブジェクトごとにこのような
前ラインの塗りつぶし情報を保持するメモリ領域を保持
し、さらにそれを管理する必要が生じてしまうという効
率上の問題があった。
Japanese Patent Laid-Open Publication No. Hei 8-77372 discloses a solution to such a problem. In order to generate fill data with high accuracy from outline data, it is necessary to hold a painted area for one line and refer to the range. There is disclosed a method of correcting a range to be filled with the next line and thereby filling a thin area without interruption. However, in this method, it is necessary to hold and manage the previous line filling information for each drawing object. Therefore, in order to apply to the drawing processing device proposed in Japanese Patent Application No. 8-197111, a plurality of drawing objects are required. In addition, there is a problem in efficiency that a memory area for holding such filling information of the previous line must be held and further managed.

【0008】また、図形のアウトラインデータからのラ
スタ変換を2つの走査線方向に対して行なって、それら
をまとめるという方法が特開平5−204362号公報
や特開平8−87602号公報に開示されているが、こ
れらも、描画オブジェクトごとにビットマップを展開す
るためのバッファを用意する必要が生じるため、上記の
目的には適さなかった。
Japanese Patent Application Laid-Open Nos. 5-204362 and 8-87602 disclose a method of performing raster conversion from outline data of a graphic in two scanning line directions and combining them. However, these methods are not suitable for the above-mentioned purpose, since it is necessary to prepare a buffer for expanding a bitmap for each drawing object.

【0009】このため、描画オブジェクト毎にビットマ
ップやラインバッファを管理する必要がなく、図形の境
界ベクトルから効率的で高精度に細い描画領域を再生す
る方法が必要とされている。
Therefore, there is no need to manage a bitmap or a line buffer for each drawing object, and there is a need for a method for efficiently and precisely reproducing a thin drawing area from a boundary vector of a figure.

【0010】本発明は、上記従来の描画処理装置が有し
ていた問題を解決するためになされたものであり、その
目的は、描画オブジェクトごとにビットマップやライン
バッファを管理する必要がなく、図形の境界ベクトルか
ら、効率的かつ、高精度に細い描画領域を再生すること
ができる描画処理装置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the problems of the above-described conventional drawing processing apparatus, and has as its object to eliminate the need to manage bitmaps and line buffers for each drawing object. An object of the present invention is to provide a drawing processing apparatus capable of efficiently and accurately reproducing a thin drawing area from a boundary vector of a graphic.

【0011】[0011]

【課題を解決するための手段】上記目的は、描画命令を
受け取り、αβ直交座標系で表されるα−β平面で描画
される描画図形の境界のデータを生成する入力部と、描
画命令から、境界のデータの向きを判定する方向判定部
と、方向判定部から方向判定の結果と描画図形の境界の
データを受け取り仮境界線データを生成する仮境界線生
成部と、仮境界線データを蓄積する境界線蓄積部と、境
界線蓄積部から処理に使用する境界線データを読み出し
て一時保持する境界線保持部と、境界線データを順に処
理して塗り情報を生成する境界線処理部と、境界線処理
部の処理の結果出力される塗り情報を一時保持する塗り
つぶし情報保持部と、塗りつぶし情報保持部に保持され
た情報を処理して塗りつぶしの出力データを生成する塗
りつぶし処理部と出力データを出力する出力部を備える
描画処理装置によって達成される。
An object of the present invention is to provide an input unit which receives a drawing command and generates data of a boundary of a drawing figure drawn on an α-β plane represented by an αβ orthogonal coordinate system, and A direction determination unit that determines the direction of the boundary data, a temporary boundary line generation unit that receives the result of the direction determination and the data of the boundary of the drawing pattern from the direction determination unit and generates temporary boundary line data, A boundary line storage unit for storing, a boundary line holding unit for reading boundary line data used for processing from the boundary line storage unit and temporarily storing the boundary line data, and a boundary line processing unit for sequentially processing the boundary line data to generate the painting information. A fill information holding unit for temporarily holding the fill information output as a result of the processing of the boundary processing unit, and a fill processing unit for processing the information held in the fill information holding unit to generate the fill output data. It is accomplished by drawing processing apparatus comprising an output unit for outputting data.

【0012】[0012]

【発明の実施の形態】本発明は、クライアントとなるア
プリケーションソフトウェアからの表示あるいは印刷命
令を、メモリ、あるいはバス、あるいはネットワークあ
るいは専用通信路などを通じて、描画データの送信を受
けとり、これをプリンタ等の出力機用のデータに変換す
る装置上に構築される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention receives a display or print command from application software serving as a client via a memory, a bus, or a network or a dedicated communication path, and sends the drawing data to a printer or the like. It is built on a device that converts data for output machines.

【0013】以下、本発明の一実施の形態を図面を参照
して説明する。本発明の一実施の形態による描画処理装
置の概略構成を図1を用いて説明する。図1に示す描画
処理装置は、入力部2、方向判定部4、第1及び第2の
仮境界線生成部からなる境界線生成部6、境界線蓄積部
8、境界線読みだし部10、境界線保持部12、境界線
処理部14、塗りつぶし情報保持部18、塗りつぶし処
理部16、出力部20からなる。
An embodiment of the present invention will be described below with reference to the drawings. A schematic configuration of a drawing processing apparatus according to an embodiment of the present invention will be described with reference to FIG. The drawing processing apparatus shown in FIG. 1 includes an input unit 2, a direction determination unit 4, a boundary line generation unit 6 including first and second temporary boundary line generation units, a boundary line accumulation unit 8, a boundary line reading unit 10, It includes a boundary holding unit 12, a boundary processing unit 14, a filling information holding unit 18, a filling processing unit 16, and an output unit 20.

【0014】入力部2は、ページ記述言語などに記述さ
れている描画データの幾何学的な描画位置や範囲を示す
データを受け取り、必要なら、図形の描画領域の境界を
示すデータに変換する。方向判定部4は、入力された図
形の境界線指定が、走査処理を行なう主走査方向と副走
査方向のどちらに近い傾きを持つかを判定する。仮境界
線生成部6は、入力された境界線の傾きや座標値などを
使用して移動量を決定し、境界線を走査処理の主走査の
方向と逆方向に移動した位置に仮境界線を生成する。境
界線蓄積部8は、生成された境界線を蓄積して保持し、
例えば処理の副走査の方向に順に取り出せるように管理
する境界線の蓄積・管理機構である。境界線読み出し部
10は、境界線蓄積部8から、主走査方向の走査処理の
対象になる境界線を順にあるいはまとめて読み出してく
るデータ読みだし機構である。
The input unit 2 receives data indicating a geometrical drawing position and range of drawing data described in a page description language or the like, and converts the data to data indicating a boundary of a drawing area of a graphic, if necessary. The direction determination unit 4 determines whether the input boundary designation of the graphic has an inclination closer to the main scanning direction or the sub-scanning direction in which the scanning process is performed. The temporary boundary line generation unit 6 determines the amount of movement using the input inclination and coordinate values of the boundary line, and moves the temporary boundary line to a position where the boundary line has been moved in the direction opposite to the main scanning direction of the scanning process. Generate The boundary line accumulation unit 8 accumulates and holds the generated boundary lines,
For example, it is a boundary line accumulation / management mechanism for managing data so that the data can be sequentially extracted in the sub-scanning direction of the processing. The boundary line reading unit 10 is a data reading mechanism that sequentially or collectively reads boundary lines to be subjected to scanning processing in the main scanning direction from the boundary line storage unit 8.

【0015】境界線保持部12は、主走査方向の走査処
理の対象とする境界線を一時的にあるいは連続的に保持
すると共に走査処理の主走査の方向に順に取り出せるよ
うに管理する境界線の保持・管理機構である。境界線処
理部14は、境界線を処理して個々の描画オブジェクト
の内外判定を行ない各走査単位上での塗り情報を生成す
ると共に、処理する境界線の種類を調べて、必要ならば
他の種類の境界線を生成して境界線保持部12に登録す
る処理機構である。塗りつぶし情報保持部18は、塗り
つぶしに関する情報を境界線処理部14より得て、これ
を保持・管理する機構である。塗りつぶし処理部16
は、塗りつぶし情報保持部18に登録されている情報を
処理して、塗りつぶし領域を決定して出力する処理機構
である。出力部20は、塗りつぶし処理部16により決
定された塗りつぶし領域を出力するためのインタフェー
スである。
The boundary line holding unit 12 temporarily or continuously holds the boundary lines to be subjected to the scanning process in the main scanning direction, and manages the boundary lines which are managed so as to be sequentially extracted in the main scanning direction of the scanning process. It is a maintenance and management mechanism. The boundary line processing unit 14 processes the boundary line to determine the inside / outside of each drawing object, generates paint information on each scanning unit, checks the type of the boundary line to be processed, and if necessary, determines another type of the boundary line. This is a processing mechanism that generates a type of boundary line and registers it in the boundary line holding unit 12. The fill information holding unit 18 is a mechanism that obtains information about the fill from the boundary processing unit 14 and holds and manages the information. Fill processing unit 16
Is a processing mechanism that processes information registered in the fill information holding unit 18 to determine and output a fill area. The output unit 20 is an interface for outputting the painted area determined by the painting processing unit 16.

【0016】次に、本実施の形態による描画処理装置に
おける処理の流れの概略を図2を用いて説明する。図2
に示した処理は、一連の入力に対して行なう処理につい
て流れを示している。まず、一連の入力データに対して
境界線データを生成して、これを境界線蓄積部に蓄積す
る(ステップS1)。そして、まとめて境界線を処理し
て塗りつぶし領域を指定するデータを生成し、出力する
(ステップS2)。この図2に示した処理は、一まとま
りの入力に対する処理について示したものであり、例え
ば、一つの描画オブジェクトごとに塗りつぶし領域の決
定を行なう際には、一つの描画オブジェクトごとに図2
の処理が繰り返されればよいし、いくつかの描画オブジ
ェクトごとに塗りつぶし領域の決定が行なわれる場合に
は、その度に図2の処理が繰り返し行なわれればよい
し、一ページ分の描画オブジェクト、あるいは、特定の
描画領域分の描画オブジェクトをまとめて塗りつぶし領
域の決定処理を行なう場合には、その度に図2の処理を
行なえばよい。ここでは、この繰り返しの制御について
は特に規定しない。
Next, an outline of a processing flow in the drawing processing apparatus according to the present embodiment will be described with reference to FIG. FIG.
2 shows the flow of the process performed on a series of inputs. First, boundary line data is generated for a series of input data, and this is stored in a boundary line storage unit (step S1). Then, the boundary lines are collectively processed to generate and output data designating the painted area (step S2). The process shown in FIG. 2 shows a process for a group of inputs. For example, when determining a painted area for each drawing object, the process shown in FIG.
May be repeated, and when the painted area is determined for each of several drawing objects, the processing of FIG. 2 may be repeated each time, and the drawing object for one page, or When the processing for determining the painted area is performed collectively for the drawing objects of the specific drawing area, the processing in FIG. 2 may be performed each time. Here, this repetition control is not particularly defined.

【0017】本実施の形態による描画処理装置における
処理手順を図3乃至図6を用いてより詳細に説明する。
まず、図3は図2のフローチャートでの前段、すなわ
ち、描画オブジェクトの指定から仮境界線を生成して、
境界線蓄積部に登録するまでの処理の流れを詳細に示し
た図である。以降の説明では、説明を簡単にするため、
境界線データを直線分のベクトルデータとして説明を行
なう。
The processing procedure in the drawing processing apparatus according to the present embodiment will be described in more detail with reference to FIGS.
First, FIG. 3 generates a temporary boundary line from the previous stage in the flowchart of FIG.
FIG. 9 is a diagram showing in detail a flow of processing up to registration in a boundary line accumulation unit. In the following description, for simplicity,
The boundary data will be described as vector data of a straight line.

【0018】描画オブジェクトの指示が始まると(ステ
ップS10)、入力部分で図形の描画命令や、塗りつぶ
し領域の決定命令を内部のデータ形式に変換して順に処
理する(ステップS11)。続いてステップS12で塗
りつぶし領域の決定命令であるかどうかが判断され、塗
りつぶし領域の決定命令であった場合には、この図3の
処理は終了する。それ以外の場合には描画図形の指定で
あるので、この描画図形の指定を描画図形の外形を表す
境界線に変換して順に以降の処理を行なう。境界線は方
向を調べられ(ステップS13)、続いてステップS1
4で境界線の方向が処理の主走査の方向と副走査の方向
で副走査の方向に近い場合には第1の仮境界線生成方法
を用いて処理がなされ(ステップS17)、主走査の方
向に近い場合には第2の仮境界線生成方法を用いて処理
がなされる(ステップS15)。ここで方向判定は、方
向(傾き)が例えば境界線データのX方向の存在範囲と
Y方向の存在範囲の比であれば、その比の値に基づいて
判定可能であるし、方向(傾き)がある特定の基準方向
からの角度で表さればその角度の値を用いて判定するこ
ともできる。以降、図18に示すように、主走査方向を
X座標値の増加する方向、副走査方向をY座標値の減少
する方向に座標系をとって説明を行なうが、特にこの組
合せに限定されるものではない。
When an instruction of a drawing object is started (step S10), a drawing instruction of a figure and a determination command of a paint area are converted into an internal data format in the input portion and processed sequentially (step S11). Subsequently, it is determined in step S12 whether or not the command is a paint area determination command. If the command is a paint area determination command, the process of FIG. 3 ends. In other cases, since the designation of the drawing graphic is specified, the designation of the drawing graphic is converted into a boundary line representing the outer shape of the drawing graphic, and the subsequent processing is sequentially performed. The direction of the boundary is checked (step S13), and then the step S1 is performed.
If the direction of the boundary line is closer to the sub-scanning direction in the main scanning direction and the sub-scanning direction in step 4, the process is performed using the first temporary boundary line generation method (step S17), and the main scanning is performed. If it is close to the direction, processing is performed using the second temporary boundary line generation method (step S15). Here, in the direction determination, if the direction (tilt) is, for example, the ratio of the existing range in the X direction and the existing range in the Y direction of the boundary line data, the direction can be determined based on the ratio value, and the direction (tilt) If the angle is expressed by an angle from a specific reference direction, the determination can be made using the value of the angle. Hereinafter, as shown in FIG. 18, description will be made using a coordinate system in the main scanning direction in a direction in which the X coordinate value increases and in a sub-scanning direction in a direction in which the Y coordinate value decreases, but it is particularly limited to this combination. Not something.

【0019】ここでは、説明を簡単にするため境界線デ
ータを直線分として説明しているので、境界線の傾きは
一つの境界線に対して一つの固定した値となる。以下、
一つの境界線に対して一種類の傾き、一つの移動量を対
応づけて説明を続けるが、特にこれに限定されるもので
はない。入力された境界線データの傾きがY座標軸に近
い場合(ステップS17)には、第1の仮境界線生成方
法により仮境界線が生成されて境界線蓄積部に登録され
る。第1の仮境界線生成方法では、仮境界線を生成する
ための移動量をあらかじめ定められた値を移動量とし、
この移動量だけ境界線をXの負の方向に移動したところ
に仮境界線を生成する。このあらかじめ定められた移動
量は、例えばデバイス座標系、あるいは、処理座標系の
1ドットに対応する量、あるいは、0.5ドットに対応
する量など、デバイス解像度や処理解像度や処理対象面
積などに対応してあらかじめ定められた、さまざまな値
を用いることができる。また、このあらかじめ定められ
た移動量は、必ずしも一つである必要はなく、描画オブ
ジェクトの指定の区切りなどで切替えることが可能であ
り、これによりオブジェクトごとに最も細い部分の限界
値を変化させることが可能となる。
Here, for simplicity of explanation, the boundary line data is described as a straight line, so that the gradient of the boundary line is one fixed value for one boundary line. Less than,
The description will be continued by associating one type of tilt and one movement amount with one boundary line, but the present invention is not particularly limited to this. When the inclination of the input boundary data is close to the Y coordinate axis (step S17), a temporary boundary is generated by the first temporary boundary generation method and registered in the boundary storage unit. In the first temporary boundary line generation method, a movement amount for generating a temporary boundary line is set to a predetermined value as a movement amount,
A temporary boundary is generated when the boundary is moved in the negative direction of X by this movement amount. The predetermined moving amount is, for example, an amount corresponding to one dot in the device coordinate system or the processing coordinate system, or an amount corresponding to 0.5 dot in the device resolution, the processing resolution, and the processing target area. Various correspondingly predetermined values can be used. Also, the predetermined moving amount does not necessarily have to be one, and can be switched at designated boundaries of the drawing object, thereby changing the limit value of the thinnest part for each object. Becomes possible.

【0020】入力された線分の傾きがX座標軸に近い場
合(ステップS15)には、第2の仮境界線生成方法を
用いて移動量が算出される。第2の仮境界線生成方法で
は、入力された境界線の傾きとあらかじめ定められた計
算式にしたがって移動量を算出して、仮境界線を生成す
る(ステップS16)。この移動量は、例えば、デバイ
ス座標系の1ドットに対応する量、あるいは、0.5ド
ットに対応する量などのあらかじめ定められたさまざま
な数値を、線分の傾きの値で割って、あるいは掛け合わ
せて値を定める、あるいは、この算出した値にあらかじ
め定められた数値を加算するなどのさまざまな計算方法
により、算出することができるほか、あらかじめ作成さ
れた表を、該傾きの値により引き値を定めることもでき
る。
If the inclination of the input line segment is close to the X coordinate axis (step S15), the movement amount is calculated using the second temporary boundary line generation method. In the second temporary boundary line generation method, the amount of movement is calculated in accordance with the input gradient of the boundary line and a predetermined calculation formula to generate a temporary boundary line (step S16). The moving amount is obtained by dividing a predetermined various numerical value such as an amount corresponding to one dot in the device coordinate system or an amount corresponding to 0.5 dot by a slope value of a line segment, or The value can be calculated by various calculation methods such as multiplying the value or adding a predetermined value to the calculated value.In addition, a table created in advance can be subtracted from the slope value. You can also specify a value.

【0021】また、ここで生成された仮境界線には入力
された境界線指定のX座標方向の存在範囲を元に、塗り
つぶし領域の制限範囲を示す塗りつぶし領域制限範囲デ
ータを付加しておく。この範囲は例えばX座標値を示す
2つの数値の組で示すことができる。この塗りつぶし領
域制限範囲は、入力された境界線データのX方向の存在
範囲の両端点のX座標値をそのまま使用してもよいし、
この範囲をX軸方向に広げるあるいは狭める、あるいは
X軸方向の正負いずれかの方向にずらすなどの微調整を
加えることもできる。また、この塗りつぶし領域制限範
囲データは、境界線データの始点に相当する座標位置あ
るいは終点に相当する座標位置あるいはその両方の位置
において、特別な処理を行なうことにより他の表現に変
更することができる。しかし、ここでは説明を簡単にす
るため、境界ベクトルのX座標方向の存在範囲に関する
データとして表現し、説明を行なう。生成された仮境界
ベクトルは境界線蓄積部8に格納される(ステップS1
8)。
Further, the temporary boundary line generated here is added with painted area restriction range data indicating the restriction area of the painted area, based on the input boundary designation range in the X coordinate direction. This range can be indicated, for example, by a set of two numerical values indicating the X coordinate value. As the filled area restriction range, the X coordinate values of both end points of the input range of the boundary data in the X direction may be used as they are,
Fine adjustments such as expanding or narrowing this range in the X-axis direction, or shifting the range in either the positive or negative direction of the X-axis direction can also be made. Further, the filled area limited range data can be changed to another expression by performing special processing at the coordinate position corresponding to the start point of the boundary line data, the coordinate position corresponding to the end point, or both. . However, for the sake of simplicity, the description will be made by expressing the boundary vector as data relating to the existence range in the X coordinate direction. The generated temporary boundary vector is stored in the boundary line storage unit 8 (step S1).
8).

【0022】次に図4を用いて、塗りつぶし領域の決定
命令が発行されて、蓄積された仮境界線などを処理し
て、塗りつぶし領域を決定する時の境界線処理部の処理
の流れを説明する。図4の処理は、塗りつぶし領域の決
定命令が発行されると開始される。ここでは走査法によ
り塗りつぶし領域が決定されるものとして説明を行なう
ため、走査線の単位で塗りつぶし領域の決定処理がくり
かえされるものとして説明を行なう。処理が開始される
と、ステップS20で処理対象となる走査線が残ってい
るならば、処理対象となる走査線を決定して、処理対象
とする走査線に関係する境界線データを境界線保持部1
2に集める(ステップS21)。
Next, referring to FIG. 4, the flow of processing performed by the boundary processing unit when a fill area determination command is issued, the stored temporary boundary lines and the like are processed, and the fill area is determined. I do. The process in FIG. 4 is started when a fill region determination instruction is issued. Here, since the description will be made assuming that the painted area is determined by the scanning method, the description will be made assuming that the processing of determining the painted area is repeated in units of scanning lines. When the process is started, if a scan line to be processed remains in step S20, the scan line to be processed is determined, and boundary line data related to the scan line to be processed is stored in the boundary line. Part 1
2 (step S21).

【0023】これは、走査線ごとの処理の度に、境界線
蓄積部8から走査線と関係する境界線を全て読みだして
もよいし、境界線保持部12に対して未だ読み込まれて
いない境界線だけを順に読みだしてもよい。ここでは、
説明を簡単にするため、処理対象の走査線が変更になる
度に、処理対象となる走査線と関係する境界線をすべて
境界線蓄積部8から読み出してくるものとして説明を続
け、この読み出してくる際に、各走査線上での境界線
(仮境界線)の位置座標も計算されるものとする。
In this case, every time processing is performed for each scanning line, all the boundary lines related to the scanning lines may be read from the boundary line accumulating unit 8 or the boundary line holding unit 12 has not yet read them. Only the boundaries may be read out in order. here,
For the sake of simplicity, the description will be continued on the assumption that every time the scanning line to be processed is changed, all the boundary lines related to the scanning line to be processed are read from the boundary line accumulation unit 8. When it comes, the position coordinates of the boundary line (temporary boundary line) on each scanning line are also calculated.

【0024】この各走査線上での境界線(仮境界線)の
位置座標の計算は、さまざまな方法で計算が可能である
が、例えば、境界線のデータを単純な直線分とした場合
には、この直線分と走査線のような直線の交点を求める
計算は容易である。このように、直線分で境界線を構成
した場合の簡単なデータ構造の例を図19にを示す。C
olorやPrioのように、描画オブジェクトごとに
共通の値は、描画オブジェクトごとに格納しておくこと
もできるが、ここでは説明を簡単にするため、各境界線
ごとにこれらのデータが付加されているものとして説明
を行なう。境界線としては直線分だけでなく、ある走査
線上での位置座標値と傾きを解析的、あるいは近似的に
求められるようなものであれば、曲線を含めても同様の
処理を実現できるが、ここでは直線分を境界線のデータ
構造の例として用いた場合で説明を続ける。
The position coordinates of the boundary line (temporary boundary line) on each scanning line can be calculated by various methods. For example, when the data of the boundary line is a simple straight line, It is easy to calculate the intersection of this straight line segment and a straight line such as a scanning line. FIG. 19 shows an example of a simple data structure in the case where a boundary line is formed by straight lines. C
Like color and Prio, common values for each drawing object can be stored for each drawing object, but here, for simplicity of description, these data are added for each boundary line. The explanation is made assuming that As a boundary line, not only a straight line but also a similar process can be realized including a curve as long as the position coordinate value and inclination on a certain scanning line can be analytically or approximately obtained. Here, the description is continued on the case where the straight line is used as an example of the data structure of the boundary line.

【0025】境界線処理部14は処理する走査線の開始
処理として、境界線処理位置の初期化の他、塗りつぶし
情報保持部18や塗りつぶし処理部16に対して走査線
の開始処理を通知する(ステップS22)。つぎに、境
界線保持部12に格納された境界線データについて、登
録された位置のX座標値が小さい順に境界線データを読
みだして処理を行なう(ステップS23)。境界線保持
部12は、内部で境界線データを処理中の走査線上の位
置(X座標値)の順に並び替えるなどして、処理の対象
となる順に境界線データを取り出せるように前処理を行
なってもよい。
The boundary line processing unit 14 notifies the fill information holding unit 18 and the fill processing unit 16 of the start of the scanning line as well as the initialization of the boundary line processing position as the start processing of the scanning line to be processed ( Step S22). Next, with respect to the boundary data stored in the boundary holding unit 12, the processing is performed by reading the boundary data in ascending order of the X coordinate value of the registered position (step S23). The boundary line holding unit 12 performs preprocessing such that the boundary line data is internally rearranged in the order of the position (X coordinate value) on the scanning line being processed, so that the boundary line data can be extracted in the processing target. You may.

【0026】続いてステップS24で処理対象となる境
界線データが境界線保持部12に残っていなければ、そ
の走査線の終了処理を行なう(ステップS26)。この
走査線の終了処理により、その走査線の処理が終ったこ
とが塗りつぶし情報保持部18を通じてあるいは直接に
塗りつぶし処理部16に通知される。処理対象となる境
界線データが残っている場合には、その境界線データを
順に読み出して処理を行なう。まず、境界線データのタ
イプをチェックし(ステップS25)、仮境界線である
場合と元位置境界線の場合で異なる処理を行なう。仮境
界線であった場合には、仮境界線データから得られる移
動量(仮境界線データ内に移動量が記述されている場合
も、仮境界線データ内に移動量の計算式や表が記述され
ている場合も、値を得る先が記述されている場合もあり
得る)分、X軸の正の方向に平行移動した位置に仮境界
線データからデータのタイプを変更して元位置境界線デ
ータを生成し、境界線保持部12に登録する(ステップ
S32、ステップS33)。そして、生成した元位置境
界線を指し示すデータを仮塗り始点位置データとして生
成し、その時点での境界線処理位置の座標を併せて塗り
つぶし情報保持部18に通知する。この元位置境界線デ
ータはこの時点で仮境界線データから生成しなくても、
最初から仮境界線データとともに元位置境界線データを
保持しておくことも可能であるが、その場合には仮境界
線データと元位置境界線データの対応を取れるようにし
ておく必要が生じる。
If it is determined in step S24 that the boundary data to be processed does not remain in the boundary holding unit 12, the processing for terminating the scanning line is performed (step S26). By the end processing of the scanning line, the end of the processing of the scanning line is notified to the filling processing unit 16 through the filling information holding unit 18 or directly. If the boundary data to be processed remains, the boundary data is read out in order and processed. First, the type of boundary line data is checked (step S25), and different processing is performed for a temporary boundary line and an original position boundary line. In the case of the provisional boundary line, the movement amount obtained from the provisional boundary line data (even when the movement amount is described in the provisional boundary line data, the calculation formula or table of the movement amount is included in the provisional boundary line data. The data type may be changed from the temporary boundary line data to the position translated in the positive direction of the X-axis by the amount corresponding to the original position boundary. Line data is generated and registered in the boundary line holding unit 12 (step S32, step S33). Then, data indicating the generated original position boundary line is generated as the temporary coating start point position data, and the coordinates of the boundary processing position at that time are also notified to the filling information holding unit 18. Even if this original position boundary data is not generated from the temporary boundary data at this time,
It is possible to hold the original position boundary line data together with the temporary boundary line data from the beginning, but in this case, it is necessary to make correspondence between the temporary boundary line data and the original position boundary line data.

【0027】元位置境界線データであった場合には、そ
の元位置境界線が外形を形作っていた描画オブジェクト
の内外判定を行なう(ステップS27)。この描画オブ
ジェクトの内外判定により、その描画オブジェクトの描
画領域の外側から内側(例えばその描画オブジェクトの
色により塗られない領域から塗られる領域)に入った場
合には、その元位置境界線と関連づけられている仮塗り
始点データを採用することを塗りつぶし情報保持部18
に通知する(ステップS31)。仮塗り始点位置と元位
置境界線は対応がとれればよいので、例えば仮塗り始点
位置データがデータのタイプと描画オブジェクトの識別
子とを持ち、元位置境界線が仮塗り始点位置データをア
ドレスできるようにした組合せ等で実現することができ
る。
If the data is the original position boundary line data, it is determined whether the drawing object whose original position boundary line forms the outer shape is inside or outside (step S27). When the drawing object enters and exits from outside to outside (for example, a region that is not painted by the color of the drawing object) from the outside of the drawing region of the drawing object, the drawing object is associated with the original position boundary line. That the provisional painting start point data is adopted
(Step S31). The temporary paint start point position and the original position boundary line need only be associated with each other. For example, the temporary paint start point position data has the data type and the identifier of the drawing object, and the original position boundary line can address the temporary paint start point position data. It can be realized by a combination or the like.

【0028】内外判定により変化が生じなかった場合に
は、その元位置境界線データと関連づけられている仮塗
り始点位置データのキャンセルを塗りつぶし情報保持部
18に通知する(ステップS30)。内外判定の結果、
描画オブジェクトの描画領域の内側から外側(例えばそ
の描画オブジェクトの色により塗りつぶされる領域から
塗りつぶされない領域)に入った場合には、元位置境界
線データの走査線上での位置と、その元位置境界線デー
タからその走査線に関して得られる移動量分X座標の正
の方向に移動した位置に塗り終点データを生成し(ステ
ップS28)、これを塗りつぶし情報保持部18に通知
する(ステップS29)とともに、処理対象となってい
る元位置境界線データと関連づけられている仮塗り領域
をキャンセルする(ステップS30)。そして、これら
の処理を走査線ごとにその走査線において処理対象とな
る境界線データごとに順に繰り返す。
If no change has occurred due to the inside / outside determination, the cancellation of the temporary painting start point position data associated with the original position boundary line data is notified to the painting information holding unit 18 (step S30). As a result of the inside / outside judgment,
When the drawing object enters the drawing area from the inside to the outside (for example, from the area filled with the color of the drawing object to the area not filled), the position on the scanning line of the original position boundary data and the original position boundary The painting end point data is generated at the position moved in the positive direction of the X coordinate by the moving amount obtained for the scanning line from the line data (step S28), and this is notified to the painting information holding unit 18 (step S29). The temporary painting area associated with the original position boundary line data to be processed is canceled (step S30). Then, these processes are sequentially repeated for each scanning line for each boundary line data to be processed in the scanning line.

【0029】図5及び図6は、塗りつぶし領域の決定処
理中の塗りつぶし情報保持部18と、塗りつぶし処理部
16の処理の流れを示している。処理が開始されると、
処理対象となる走査線を決定する。これは未処理の走査
線から順に選んでもよいし、境界線処理部14から処理
対象の走査線の決定通知を受けてもよい。処理対象とな
る走査線が無ければ終了する(ステップS40)。処理
対象となる走査線が決定されるとその走査線上での開始
処理を行なう(ステップS41)。例えば、塗り情報処
理位置の初期化や描画オブジェクトの無いところの塗り
つぶし方法の設定などを行なう。そして、順に境界線処
理部14からのデータを受けて、その種類によりいくつ
かの処理を行なう(ステップS42)。まず、ステップ
S43で境界線処理部14からのデータが、その走査線
の塗りつぶし処理の終了通知であった場合には、その走
査線の終了処理を行なってから(ステップS44)、次
の走査線の処理に移る。この走査線の終了処理とは例え
ば、未処理の塗り情報の処理を行なった後で、塗りつぶ
し処理の済んだ位置である塗り決定済み位置から、走査
線上の最後(図18の例ではページの右端、塗りつぶし
対象となる領域の右端)までを、背景色で塗りつぶす、
あるいは透明にするデータを出力することである。
FIG. 5 and FIG. 6 show the flow of processing of the filling information holding unit 18 and the filling processing unit 16 during the processing of determining the filling area. When the process starts,
A scan line to be processed is determined. This may be selected in order from unprocessed scanning lines, or may be received from the boundary processing unit 14 to determine the scanning line to be processed. If there is no scan line to be processed, the process ends (step S40). When the scanning line to be processed is determined, start processing on the scanning line is performed (step S41). For example, initialization of the paint information processing position and setting of a paint method for a place where there is no drawing object are performed. Then, the data is sequentially received from the boundary processing unit 14 and some processing is performed depending on the type (step S42). First, in step S43, if the data from the boundary processing unit 14 is an end notification of the filling process of the scan line, the end process of the scan line is performed (step S44), and then the next scan line is processed. Move on to processing. This scanning line end processing is performed, for example, after processing of unprocessed paint information, from the paint determined position, which is the position where the paint processing has been completed, to the end on the scan line (the right end of the page in the example of FIG. 18). , The right edge of the area to be filled) with the background color,
Alternatively, it is to output data to be made transparent.

【0030】また、境界線処理部14から受け取ったデ
ータが、塗りつぶし領域に関するデータであった場合に
は、以下の4種類の動作を行なう(ステップS45)。
受け取ったデータが仮塗り始点位置データであった場合
には(ステップS46)、これを指定された位置座標を
キーとして塗りつぶし情報保持部18に登録する。塗り
終点データであった場合には(ステップS47)、これ
を塗りつぶし情報保持部18に登録する。仮塗り始点デ
ータのキャンセルであった場合には(ステップS4
8)、塗りつぶし情報保持部18において、キャンセル
を指定された仮塗り始点データの削除を行ない、次の塗
り情報を参照する(ステップS50)。また、境界線処
理部14から受け取ったデータが仮塗り始点データの採
用指示であった場合には(ステップS49)、塗りつぶ
し情報保持部18は指定された仮塗り始点データに採用
されたことを示すデータを記入して、塗り始点データに
変換して、次の塗り情報を参照する(ステップS5
0)。
If the data received from the boundary processing unit 14 is data relating to a painted area, the following four operations are performed (step S45).
If the received data is the temporary painting start point position data (step S46), the data is registered in the painting information holding unit 18 using the designated position coordinates as keys. If the data is the paint end point data (step S47), it is registered in the paint information holding unit 18. If the temporary coating start point data is canceled (step S4
8) The filling information holding unit 18 deletes the temporary coating start point data designated to be canceled, and refers to the next filling information (step S50). When the data received from the boundary processing unit 14 is an instruction to adopt the temporary painting start point data (step S49), the filling information holding unit 18 indicates that the specified temporary painting start point data has been adopted. Fill in the data, convert it to paint start point data, and refer to the next paint information (step S5)
0).

【0031】登録されていた仮塗り始点データの採用、
あるいはキャンセルが行なわれたときには塗りつぶし情
報保持部18の塗り決定済み位置以降(X軸の正の方
向)で、最初の位置に登録されているデータを調べる
(ステップS51、S52)。登録されている位置が、
境界線処理位置よりもX軸の負の側にあり、もし、最初
に見つかる塗りデータの種類が仮塗り始点位置データで
あれば(ステップS53)、境界線保持部からのデータ
待ち状態に戻る。見つかったデータが塗り始点データす
なわち、採用された仮塗り始点データであった場合(ス
テップS54)には、その塗り始点データが指し示す描
画オブジェクトに関連づけられた塗り境界カウンタの値
をインクリメントさせる(ステップS54)。
Adopting the registered temporary painting start point data,
Alternatively, when the cancel is performed, the data registered at the first position is checked after the paint determined position of the fill information holding unit 18 (positive direction of the X axis) (steps S51 and S52). The registered position is
If the type of paint data found first is on the negative side of the X-axis from the boundary processing position and the type of the first found coating data is the temporary coating start point position data (step S53), the process returns to the data waiting state from the boundary holding unit. If the found data is the paint start point data, that is, the adopted provisional paint start point data (step S54), the value of the paint boundary counter associated with the drawing object indicated by the paint start point data is incremented (step S54). ).

【0032】このカウンタの値が初期値(例えば0)か
ら初期値以外の値に変化した場合には(ステップS5
6)、その時点での優先順位が最高である描画オブジェ
クトの塗りつぶし規則や色にしたがって、塗り決定位置
(ステップS57)から、見つかった塗り始点データの
位置までの領域を塗りつぶすことに相当するデータを出
力し(ステップS60)、塗りつぶし状態と塗り決定済
み位置の更新を行なう(ステップS61、S62)。塗
り終点データであった場合には(ステップ55)、その
終了することを指定された描画オブジェクトに関連づけ
られた塗り境界カウンタの値をデクリメントし、ステッ
プS58でカウンタの値が初期値と等しくないものから
初期値と等しいものになった場合には、その描画オブジ
ェクトの塗りつぶし領域を終了する(ステップS5
9)。このとき、その時点で塗りつぶしを支配している
描画オブジェクトであった場合には、塗り決定済み位置
から、該塗り終点データが登録されていた位置までを該
描画オブジェクトの塗りつぶし方法(例えば、色)によ
り塗りつぶすことに相当する情報を出力し(ステップS
60)、塗り決定済み位置を更新し(ステップS6
1)、塗りつぶし状態を更新する(ステップS62)。
When the value of this counter changes from an initial value (for example, 0) to a value other than the initial value (step S5).
6) In accordance with the filling rule and the color of the drawing object having the highest priority at that time, data corresponding to filling the area from the paint determination position (step S57) to the position of the found paint start point data is stored. Output (step S60), and update the paint state and the paint determined position (steps S61 and S62). If the data is the paint end point data (step 55), the value of the paint boundary counter associated with the drawing object designated to be finished is decremented, and the value of the counter is not equal to the initial value in step S58. If the value becomes equal to the initial value, the painted area of the drawing object ends (step S5).
9). At this time, if the drawing object is dominating the filling at that time, the filling method (for example, color) of the drawing object from the paint determined position to the position where the paint end point data is registered is used. And outputs information corresponding to filling (step S
60), and update the paint determined position (step S6)
1), update the filled state (step S62).

【0033】以上に説明した処理により、本実施の形態
による描画処理装置によれば、細い塗りつぶし領域を含
んだ図においても精度よく、描画を行なうことができ
る。
According to the processing described above, the drawing processing apparatus according to the present embodiment can perform drawing with high accuracy even in a drawing including a thin filled area.

【0034】次に、本実施の形態による描画処理装置の
動作を例を用いて説明する。図7は説明に使用する塗り
つぶし図形を示した概念図である。ここでは説明を簡単
にするため、頂点数の少ない多角形を例として用いた。
この多角形の座標値は左上の頂点から順に、(2.7
5,4.5)、(10.75,0.5)、(11.7
5,5.5)、(11.25,0.5)、(3.25,
4.5)となっている。以降の説明ではこの描画図形
を、描画オブジェクトZと呼ぶことにする。
Next, the operation of the drawing processing apparatus according to the present embodiment will be described using an example. FIG. 7 is a conceptual diagram showing a filled figure used for description. Here, in order to simplify the explanation, a polygon having a small number of vertices is used as an example.
The coordinate values of this polygon are, in order from the upper left vertex, (2.7
5,4.5), (10.75,0.5), (11.7)
5,5.5), (11.25, 0.5), (3.25,
4.5). In the following description, this drawing figure is referred to as a drawing object Z.

【0035】図8は、X軸の方向に主走査の方向をとっ
て、走査処理を用いて塗りつぶし領域を決定するために
用いる境界線の線分データ(これ以降アウトラインベク
トルと呼ぶ)VA、VB、VC、VDの概念図を示した
ものである。処理の主走査の方向をX軸の方向にとった
ために、水平線方向の境界についてはアウトラインベク
トルを省略してある。VA、VB、VC、VDの始点終
点の座標値を(始点)−>(終点)として表記すると下
のようになる。
FIG. 8 shows line segment data (hereinafter referred to as outline vectors) VA and VB of a boundary line used to determine a painted area by using a scanning process by taking the main scanning direction in the X-axis direction. , VC, and VD. Because the main scanning direction of the processing is set in the X-axis direction, the outline vector is omitted from the boundary in the horizontal direction. The coordinate values of the start and end points of VA, VB, VC, and VD are expressed as (start point)-> (end point) as follows.

【0036】 VA:( 2.75,4.5)−>(10.75,0.
5) VC:(10.75,0.5)−>(11.75,5.
5) VD:(11.75,5.5)−>(11.25,0.
5) VB:(11.25,0.5)−>( 3.25,4.
5)
VA: (2.75, 4.5)-> (10.75, 0.75)
5) VC: (10.75,0.5)-> (11.75,5.
5) VD: (11.75, 5.5)-> (11.25, 0.
5) VB: (11.25, 0.5)-> (3.25, 4.
5)

【0037】図9は、図8に示したアウトラインベクト
ルVA、VB、VC、VDからそれぞれ生成した仮境界
線データSA、SB、SC、SDを示した概念図であ
る。VA、VBの傾きがX軸側に近いため、VA、VB
の傾きから計算された値分X軸の負の方向にVA、VB
を平行移動させたものとしてそれぞれ、SA、SBが生
成される。ここでは、例として平行移動の値はアウトラ
インベクトルに沿ってY軸の0.5単位分進んだときの
X方向の移動量の絶対値とする。VA、VBの平行移動
量はそれぞれ、下に示すようになる。
FIG. 9 is a conceptual diagram showing temporary boundary line data SA, SB, SC, and SD generated from the outline vectors VA, VB, VC, and VD shown in FIG. Since the inclination of VA and VB is close to the X-axis side, VA and VB
VA, VB in the negative direction of the X-axis by the value calculated from the slope of
Are translated, and SA and SB are generated, respectively. Here, as an example, the value of the parallel movement is the absolute value of the amount of movement in the X direction when moving by 0.5 units on the Y axis along the outline vector. The translation amounts of VA and VB are as shown below.

【0038】 VAの平行移動量:|((10.75−2.75)/
(0.5−4.5))/2|=1.0 VBの平行移動量:|((11.75−3.75)/
(0.5−4.5))/2|=1.0
The amount of translation of VA: | ((10.75 to 2.75) /
(0.5-4.5)) / 2 | = 1.0 VB translation amount: | ((11.75-3.75) /
(0.5-4.5)) / 2 | = 1.0

【0039】この数値を用いて生成された仮境界線デー
タSA、SBの始点と終点を上記と同様に表記する。
The starting point and the ending point of the temporary boundary line data SA and SB generated using these numerical values are described in the same manner as described above.

【0040】 SA:( 1.75,4.5)−>(9.75,0.
5) SB:(10.25,0.5)−>(2.25,4.
5)
SA: (1.75, 4.5)-> (9.75, 0.
5) SB: (10.25,0.5)-> (2.25,4.
5)

【0041】また、VA、VBの傾きがX軸側に近いた
め、SA、SBには其々塗りつぶし制限範囲HA、HB
が付加される。この塗りつぶし制限範囲は、ここでは元
のアウトラインベクトルのX方向の存在範囲とし、その
結果、HAは範囲[2.75:10.75]、HBは範
囲[3.75:11.75]となる。これに対し、V
C、VDの傾きがY軸に近いために、予め定められた移
動量分X軸の負の方向にVC、VDを平行移動させたも
のとして、それぞれ、SC、SDが生成される。ここで
は例えばこの移動量を0.5単位として説明を行なう。
この結果生成される仮境界線SC、SDの始点と終点の
座標値を上と同様に示す。
Further, since the inclinations of VA and VB are close to the X-axis side, SA and SB are respectively limited to the paint-over limits HA and HB.
Is added. Here, the fill restriction range is the existing range of the original outline vector in the X direction. As a result, the range of HA is [2.75: 10.75], and the range of HB is [3.75: 11.75]. . On the other hand, V
Since the inclinations of C and VD are close to the Y-axis, SC and SD are generated as if VC and VD were translated in the negative direction of the X-axis by a predetermined moving amount. Here, for example, the description will be made with this movement amount being 0.5 unit.
The coordinate values of the start and end points of the temporary boundaries SC and SD generated as a result are shown in the same manner as above.

【0042】 SC:(10.25,0.5)−>(11.25,5.
5) SD:(11.25,5.5)−>(10.75,0.
5)
SC: (10.25,0.5)-> (11.25,5.
5) SD: (11.25, 5.5)-> (10.75, 0.75)
5)

【0043】次に、これら仮境界線SA、SB、SC、
SDが境界線蓄積部8に格納されて、走査処理により塗
りつぶし領域を決定する処理についての説明を行なう。
ここで、走査処理はY座標の大きい方から小さい方へ進
むもととしているので、Y=5の位置から説明を行な
う。
Next, these temporary boundary lines SA, SB, SC,
The process in which the SD is stored in the boundary line storage unit 8 and the painted area is determined by the scanning process will be described.
Here, since the scanning process is assumed to proceed from the larger Y coordinate to the smaller Y coordinate, the description will be made from the position of Y = 5.

【0044】Y=5の位置において、主走査方向の走査
処理の対象となる仮境界線は、SCとSDである。それ
ぞれのY=5における座標値はSCが「11.15」、
SDが「11.20」となる。この位置座標値は、説明
に使用しているベクトルが直線分であるため、その直線
分とY=5の直線との交点として容易に求めることがで
きる。このとき、境界線保持部12に保持されている仮
境界線SC、SDの概念図を図10に示す。
At the position of Y = 5, the temporary boundaries to be scanned in the main scanning direction are SC and SD. As for the coordinate value at each Y = 5, SC is “11.15”,
SD becomes “11.20”. Since the vector used for the description is a straight line, the position coordinate value can be easily obtained as an intersection between the straight line and the straight line of Y = 5. At this time, a conceptual diagram of the temporary boundary lines SC and SD held in the boundary line holding unit 12 is shown in FIG.

【0045】このSC、SDが仮境界線保持部12に格
納されて、Y=5における座標値の小さい順に境界線処
理部14に読みだされて処理が行なわれる。このY=5
の位置においては、11.15<11.20であるた
め、まずSCが境界線処理部14の処理対象になる。そ
して、「11.15」の位置を指定して描画オブジェク
トZについての仮塗り始点位置データKNSC5が塗り
つぶし情報保持部18に登録される。そして、SCをS
Cの移動量(0.5)分X軸の正の方向に平行移動した
MVCを生成し、これに仮塗り始点位置データKNSC
5のアドレスを示すデータを付け加えて境界線保持部1
2に「11.65」の位置に登録する。この登録した位
置「11.65」とは、SCの登録されている場所が
「11.15」で、SCの平行移動量が0.5であるた
め、SCの元となった境界線VCが11.15+0.5
=11.65すなわち「11.65」となる。このと
き、境界線処理位置は「11.15」に更新される。
The SC and SD are stored in the temporary boundary line holding unit 12, and are read out and processed by the boundary line processing unit 14 in ascending order of coordinate values when Y = 5. This Y = 5
Since SC is 11.15 <11.20 at the position, the SC is first processed by the boundary processing unit 14. Then, the position of “11.15” is designated, and the temporary painting start point position data KNSC5 for the drawing object Z is registered in the painting information holding unit 18. And SC is S
An MVC translated in the positive direction of the X-axis by the moving amount of C (0.5) is generated, and the temporary coating start point position data KNSC is generated.
5 is added to the data indicating the address, and the boundary line holding unit 1 is added.
2 is registered at the position of “11.65”. The registered position “11.65” means that the location where the SC is registered is “11.15” and the translation amount of the SC is 0.5, so that the boundary line VC that is the source of the SC is 11.15 + 0.5
= 11.65, ie, “11.65”. At this time, the boundary processing position is updated to “11.15”.

【0046】次に処理の対象となるのは「11.20」
の位置に登録されているVDであり、同様に「11.2
0」の位置から始まる仮塗り始点位置データKNSD5
を生成して、塗りつぶし情報保持部18に登録する。そ
して、同様に11.20+0.5=11.70すなわち
「11.70」の位置に元位置境界線MVDを登録す
る。このMVDには仮塗り始点位置データKNSD5の
アドレスが付加される。次に処理するのは「11.6
5」に登録された元位置境界線MVCであり、ここで内
外判定が行なわれる。
Next, the processing target is "11.20".
VD registered at the position of "11.2".
Temporary painting start position data KNSD5 starting from position "0"
Is generated and registered in the filling information holding unit 18. Then, similarly, the original position boundary line MVD is registered at the position of 11.20 + 0.5 = 11.70, that is, “11.70”. The address of the temporary coating start point data KNSD5 is added to this MVD. The next processing is "11.6
The original position boundary line MVC registered in “5”, and inside / outside determination is performed here.

【0047】この結果、描画オブジェクトZはMVCに
より描画領域の外側から内側に入ることが判定される。
すると、MVCに付加されている仮塗り始点位置データ
KNSC5のの採用を塗りつぶし情報保持部18に通知
する。塗りつぶし情報保持部18内ではこの仮塗り始点
位置データKNSC5から塗り始点データNSC5に変
換される(具体的にはフラグの値を変化させる程度でよ
い)。このとき、境界線処理位置は「11.60」とな
る。
As a result, it is determined by the MVC that the drawing object Z enters the drawing area from outside to inside.
Then, the application of the temporary painting start position data KNSC5 added to the MVC is notified to the painting information holding unit 18. In the paint information holding unit 18, the temporary paint start point position data KNSC5 is converted into the paint start point data NSC5 (specifically, the value of the flag may be changed). At this time, the boundary processing position is “11.60”.

【0048】塗りつぶし情報保持部18では、SCによ
り生成されて「11.15」の位置に登録されている仮
塗り始点位置データの採用が通知されたために、塗りつ
ぶしの処理を進めることを塗りつぶし処理部16に伝え
る。塗りつぶし処理部16は、処理済み位置(この場合
には初期化された位置であり、全描画領域の左端にな
る)から一番近い位置にある塗りつぶし情報を塗りつぶ
し情報保持部18に要求する。すると、「11.15」
の位置に採用された仮塗り始点データすなわち、塗り始
点データが見つかり、かつ、この「11.15」の位置
は境界線処理位置(ここでは「11.65」)よりも小
さい。このため、「11.15」の位置に登録されてい
る塗り始点データNSC5を塗りつぶし処理部16が塗
りつぶし情報保持部18から取り出して処理する。
In the filling information holding unit 18, since the adoption of the temporary coating start point position data generated by the SC and registered at the position "11.15" is notified, the filling processing unit instructs to proceed with the filling processing. Tell 16 The filling processing unit 16 requests the filling information holding unit 18 for the filling information closest to the processed position (in this case, the initialized position, which is the left end of the entire drawing area). Then "11.15"
Is found, and the paint start point data is found, and the position of “11.15” is smaller than the boundary processing position (here, “11.65”). Therefore, the paint processing unit 16 takes out the paint start point data NSC5 registered at the position “11.15” from the paint information holding unit 18 and processes it.

【0049】描画オブジェクト塗り始点データNSC5
と関連づけられている描画オブジェクトZの塗り境界カ
ウンタをインクリメントするが、これは初期値0から1
になるため、ここで描画オブジェクトZの塗りつぶし領
域が開始される。ここでの説明では描画オブジェクトは
他に無いため、最優先順位の描画オブジェクトが変更さ
れることになる。このため、塗り決定済み位置(描画領
域の左端の位置、ここでは0とする)から塗り情報処理
位置「11.15」までの塗りつぶし情報を決定する。
この場合、範囲[0:11.15]には描画オブジェク
トが何も無かった領域に決定し、背景色がある場合には
背景色で、透明である場合には透明であるという情報で
この領域を決定する。
Drawing object paint start point data NSC5
Is incremented from the initial value of 0 to 1
Therefore, the painted area of the drawing object Z is started here. In the description here, since there is no other drawing object, the drawing object having the highest priority is changed. For this reason, the paint information from the paint determined position (the position at the left end of the drawing area, here, 0) to the paint information processing position “11.15” is determined.
In this case, it is determined that there is no drawing object in the range [0: 11.15], and the information is that if there is a background color, it is the background color, and if transparent, it is transparent. To determine.

【0050】以下では、説明を簡単にするため描画オブ
ジェクトの無い場所については、透明であり、特別な出
力が行なわれないものとして説明を続ける。さらに、塗
りつぶし処理部16が塗りつぶし情報保持部18に次の
情報を問い合わせると、仮塗り始点データが「11.2
0」の位置に登録されていることがわかる。この「1
1.20」の位置まで処理を進めて、範囲[11.1
5:11.20]の位置を描画オブジェクトZの塗りつ
ぶし方法で塗りつぶす指示を先に出してもよいが、ここ
では、塗りつぶし処理部16は待ち状態になるものとす
る。この状態で塗り情報処理位置は「11.20」とな
る。
In the following, for simplicity of description, the description will be continued assuming that a place where there is no drawing object is transparent and no special output is performed. Further, when the filling processing unit 16 inquires the filling information holding unit 18 about the next information, the temporary coating start point data is set to “11.2
It can be seen that it is registered at the position of “0”. This "1
1.20 ”to the position [11.1
5: 11.20] may be issued first by the method of painting the drawing object Z, but here, the painting processing unit 16 is assumed to be in a waiting state. In this state, the painting information processing position is “11.20”.

【0051】境界線処理部14では、次に「11.7
0」の位置に登録されているMVDを見つけて、これを
処理する。このMVDは元位置境界線であるため内外判
定が行なわれる。すると、描画オブジェクトZがこの位
置で描画領域が終了することが判定される。これによ
り、MVDを平行移動量分さらに主走査の進行方向に進
めた位置(11.70+0.5=12.20)に塗り終
点データNED5を生成して塗りつぶし情報保持部18
に通知すると共に、MVDと関連づけられている仮塗り
始点位置データKNSD5がキャンセルされことを塗り
つぶし情報保持部18に通知する。塗りつぶし処理部1
6では、処理済み位置「11.20」から一番近い位置
に登録されている塗り情報が、塗り終点データNED5
となるが境界線処理位置が「11.70」、NED5の
位置が「12.20」であり境界線処理位置の座標値の
方が小さいために境界線処理部14の処理が進むのを待
つ。
Next, the boundary line processing unit 14 sets “11.7
The MVD registered at the position of “0” is found and processed. Since the MVD is the original position boundary line, the inside / outside determination is performed. Then, it is determined that the drawing area of the drawing object Z ends at this position. As a result, the painting end point data NED5 is generated at the position (11.70 + 0.5 = 12.20) where the MVD is further advanced in the main scanning direction by the parallel movement amount, and the painting information holding unit 18
And notifies the filling information holding unit 18 that the temporary painting start position data KNSD5 associated with the MVD has been cancelled. Fill processing unit 1
6, the paint information registered at the position closest to the processed position “11.20” is the paint end point data NED5.
However, since the boundary processing position is “11.70”, the position of the NED 5 is “12.20”, and the coordinate value of the boundary processing position is smaller, the processing of the boundary processing unit 14 is awaited. .

【0052】境界線処理部14はこのY=5の走査線に
は、もう処理すべき境界線がないために、走査線の終了
処理を行なう。具体的には、処理済みの位置を描画領域
の右端にし、塗りつぶし情報保持部18に、走査線の終
了処理を行なうことを通知する。塗りつぶし情報保持部
18は、塗りつぶし処理部16を再起動する。塗りつぶ
し処理部16は、「12.20」に登録された塗り終点
データNED5を処理し、塗り決定済み位置「11.1
5」からこの時点での処理位置「12.20」の間の範
囲[11.15:12.20]を描画オブジェクトZの
塗りつぶし方法(例えば色)で塗りつぶすことに相当す
る情報を出力する。
The boundary line processing section 14 performs the processing of terminating the scanning line of Y = 5 because there is no boundary line to be processed. More specifically, the processed position is set at the right end of the drawing area, and the filling information holding unit 18 is notified that the scanning line end processing is to be performed. The filling information holding unit 18 restarts the filling processing unit 16. The paint processing unit 16 processes the paint end point data NED5 registered in “12.20”, and determines the paint determined position “11.1.
The information corresponding to filling the range [11.15: 12.20] between “5” and the processing position “12.20” at this point by the painting method (for example, color) of the drawing object Z is output.

【0053】この「塗りつぶすことに相当する情報」と
は、この範囲データのような領域を示すデータと塗りつ
ぶし色の組合せでもよいし、範囲内のデバイスのドット
に対応する点の指定と色の指定の組合せでもよいし、他
のデバイスのドットを規定できる表現と塗りつぶしの色
を規定できる方法の組合せでもよい。ここでは、説明を
簡単にするためデバイスのドットに対応する点の指定と
色の指定の組合せによる表現を用いる。
The “information equivalent to filling” may be a combination of data indicating an area such as the range data and a filling color, or designation of a point corresponding to a dot of a device within the range and designation of a color. Or a combination of an expression that can define a dot of another device and a method that can define a fill color. Here, in order to simplify the description, an expression based on a combination of designation of a point corresponding to a dot of the device and designation of a color is used.

【0054】またここでは、塗りつぶしの決定した範囲
の表現から、デバイスのドットに対応する点を決定する
方法は、指定された範囲内の整数座標値に対応して点を
決定するという方法をとるが、特にこの方法に限定され
るものではない。より具体的には、Y=5の走査線上で
の範囲[11.15:12.20]を描画オブジェクト
Zの色により塗りつぶすという場合には、描画点(1
2,5)を描画オブジェクトZの色で塗りつぶすという
情報を出力するものとして説明を行なう。そして、処理
済み位置を「12.20」に更新する。そしてさらに、
塗り情報は他に登録されておらず、かつ、境界線処理位
置は描画領域の右端にまで到達しているため、「12.
20」の位置から描画領域の右端までの領域を処理す
る。この説明においては、ここで何も出力されないが、
通常は背景色によりこの範囲を塗りつぶす情報が出力さ
れることになる。このY=5において塗りつぶされるド
ットの概念図を図11に示す。
In this case, the method of determining a point corresponding to a device dot from the expression of the range in which the fill is determined uses a method of determining a point corresponding to an integer coordinate value within a specified range. However, the present invention is not particularly limited to this method. More specifically, when the range [11.15: 12.20] on the scanning line of Y = 5 is painted with the color of the drawing object Z, the drawing point (1
The description will be made assuming that information of (2, 5) is painted with the color of the drawing object Z. Then, the processed position is updated to “12.20”. And furthermore,
Since no other paint information is registered and the boundary processing position has reached the right end of the drawing area, “12.
The area from the position "20" to the right end of the drawing area is processed. In this description, nothing is output here,
Normally, information for filling this range with the background color is output. FIG. 11 shows a conceptual diagram of a dot painted at Y = 5.

【0055】次に、図12を用いてY=4での処理を説
明する。Y=4の位置において処理の対象となるのはS
A、SB、SC、SDの4本の仮境界線である。SA、
SB、SC、SDのY=4における位置座標は其々
「2.75」、「3.25」、「10.95」、「1
1.10」となっている。これらが、一旦境界線保持部
12に蓄えられてから、位置座標値の小さい順に取り出
されて処理が行なわれる。まず、位置座標の一番小さい
SAが境界線保持部12から読み出される。
Next, the processing at Y = 4 will be described with reference to FIG. At the position of Y = 4, the processing target is S
These are four temporary boundaries of A, SB, SC, and SD. SA,
The position coordinates of SB, SC, and SD at Y = 4 are “2.75”, “3.25”, “10.95”, and “1”, respectively.
1.10 ". These are temporarily stored in the boundary line holding unit 12 and then extracted and processed in ascending order of the position coordinate values. First, the SA having the smallest position coordinate is read from the boundary holding unit 12.

【0056】ここで、SAは仮境界線であるために仮塗
り始点データを作成して塗りつぶし情報保持部18に登
録することになるが、仮境界線SAには塗りつぶし制限
範囲HA[2.75:10.75]が付加されているた
め、境界線処理位置「2.75」が塗りつぶし制限範囲
HA[2.75:10.75]の範囲にあることを確認
してから、仮境界線データSAと関連づけられている描
画オブジェクトZを指し示す識別しを保持する仮塗り始
点位置データKNSA4を「2.75」の位置を指定し
て、塗りつぶし情報保持部18に登録する。そして、仮
境界線データSAに保持されている移動量「1」分、X
軸の正の方向に移動した位置「2.75+1.0=3.
75」に元位置境界線データMVAを生成し、仮塗り始
点位置データKNSA4を指し示すデータを付加して、
境界線保持部12に登録する。
Here, since SA is a temporary boundary line, temporary coating start point data is created and registered in the filling information holding unit 18, but the temporary boundary line SA has a limited filling area HA [2.75. : 10.75], it is confirmed that the boundary processing position “2.75” is in the range of the filling limitation range HA [2.75: 10.75]. The temporary painting start point position data KNSA4 that holds the identification indicating the drawing object Z associated with the SA is designated to the position of “2.75” and registered in the painting information holding unit 18. Then, the amount of movement “1” held in the temporary boundary line data SA, X
The position moved in the positive direction of the axis “2.75 + 1.0 = 3.
75 ”, the original position boundary line data MVA is generated, and data indicating the temporary coating start point position data KNSA4 is added.
It is registered in the boundary holding unit 12.

【0057】次に、境界線保持部12から「3.25」
の位置から仮境界線SBが読み込まれる。これについて
もSAの時と同様の処理が行なわれ、「3.25」の位
置に生成した仮塗り始点位置データKNSB4を塗りつ
ぶし情報保持部18に登録し、「4.25」の位置に元
位置境界線MVBを登録する。
Next, "3.25" is output from the boundary holding unit 12.
Is read from the position of. In this case, the same processing as in the case of SA is performed, and the temporary coating start point position data KNSB4 generated at the position of “3.25” is registered in the filling information holding unit 18, and the original position is stored at the position of “4.25”. Register the boundary line MVB.

【0058】さらに順に処理を進めると、「3.75」
の位置に元位置境界線MVAが見つかり、ここで内外判
定が行なわれる。その結果描画オブジェクトZの描画領
域が開始されることが分かるため、MVAと関連づけら
れているKNA4を採用することを塗りつぶし情報保持
部18に通知する。塗りつぶし情報保持部18はKNA
4が採用されて仮塗り始点位置データから、塗り始点デ
ータに変換されたために、処理を行ない、描画オブジェ
クトZの塗りつぶし領域を開始させると共に、塗り決定
済み位置を「2.75」に進める。
When the processing is further advanced, "3.75" is obtained.
The original position boundary line MVA is found at the position, and the inside / outside judgment is made here. As a result, it is known that the drawing area of the drawing object Z is started, so that the filling information holding unit 18 is notified that the KNA4 associated with the MVA is to be used. The fill information holding unit 18 is a KNA
Since No. 4 is adopted and the temporary paint start position data is converted to the paint start point data, processing is performed to start the painted area of the drawing object Z and to advance the paint determined position to “2.75”.

【0059】境界線処理部14の処理が「4.25」に
進むと、元位置境界線MVBが処理されここで内外判定
の結果描画オブジェクトZの描画領域が一旦終了する。
これにより、MVBから移動量「1」分X軸の正の方向
に移動した位置「5.25」の位置に塗り終点データN
EB4を生成して、塗りつぶし情報保持部18に登録
し、仮塗り始点位置データKNB4をキャンセルする。
ここでは、境界線処理位置が「4.25」であり、塗り
終点データの位置が「5.25」であることから、塗り
つぶし処理部16の処理は進まない。
When the processing of the boundary line processing section 14 proceeds to "4.25", the original position boundary line MVB is processed, and the drawing area of the drawing object Z is temporarily terminated as a result of the inside / outside determination.
As a result, the painting end point data N is placed at the position “5.25” that has moved from the MVB by the moving amount “1” in the positive direction of the X axis.
EB4 is generated and registered in the filling information holding unit 18, and the temporary coating start point position data KNB4 is canceled.
Here, since the boundary processing position is “4.25” and the position of the painting end point data is “5.25”, the processing of the painting processing unit 16 does not proceed.

【0060】次に、境界線処理部14は「10.95」
に登録されている仮境界線SCを処理する。この時点で
境界線処理位置は「10.95」となる。ここでは仮境
界線SCから仮塗り始点位置データKNSC4が生成さ
れて塗りつぶし情報保持部18の「10.95」の位置
に登録される。そして、元位置境界線MVCが「10.
95+0.5=11.45」の位置に登録される。ここ
で、境界線処理部14の位置が進んだために、塗りつぶ
し情報保持部18の処理が進んでもよいが、ここでは本
実施例で説明に利用した流れ図に従い、この段階ではま
だ塗りつぶし情報保持部18の処理は進まないものとす
る。
Next, the boundary processing unit 14 sets "10.95"
Is processed in the temporary boundary line SC registered in. At this point, the boundary processing position is “10.95”. Here, temporary painting start point position data KNSC4 is generated from the temporary boundary line SC and registered at the position of “10.95” in the filling information holding unit 18. Then, the original position boundary line MVC is set to “10.
95 + 0.5 = 11.45 ". Here, since the position of the boundary processing unit 14 has advanced, the processing of the filling information holding unit 18 may proceed. However, here, according to the flowchart used in the present embodiment, the filling information holding unit It is assumed that the processing of 18 does not proceed.

【0061】次いで「11.10」の位置で仮境界線S
Dの処理が行なわれる。同様に仮塗り始点位置データK
NSD4が「11.10」の位置に生成されて、塗りつ
ぶし情報保持部18に登録され、元位置境界線MVDが
「11.60」に登録される。
Next, at the position of "11.10", the temporary boundary line S
The processing of D is performed. Similarly, the temporary painting start point position data K
The NSD 4 is generated at the position of “11.10”, registered in the filling information holding unit 18, and the original position boundary line MVD is registered at “11.60”.

【0062】「11.45」の位置では元位置境界線M
VCが処理され、描画オブジェクトZは再度描画領域が
開始される。ここで、MVCと関連づけられている仮塗
り始点位置データKNSC4の採用が塗りつぶし情報保
持部18に通知される。塗りつぶし情報保持部18にお
いて、仮塗り始点位置データKNSC4が塗り始点デー
タNSC4に変換されてから、塗りつぶし処理部16が
動作し、塗り決定済み位置「2.75」から一番近いデ
ータとして、「5.25」の位置の塗り終点データNE
B5を処理する。ここで、範囲「2.75:5.25」
を描画オブジェクトZで塗りつぶすことが決定し、描画
点(3,4)、(4,4)、(5,4)が描画オブジェ
クトZの色で塗りつぶされるということを示すデータが
出力される。
At the position “11.45”, the original position boundary line M
The VC is processed, and the drawing area of the drawing object Z is started again. Here, the adoption of the temporary painting start point position data KNSC4 associated with the MVC is notified to the painting information holding unit 18. In the paint information holding unit 18, after the temporary paint start point position data KNSC4 is converted into the paint start point data NSC4, the paint processing unit 16 operates, and “5” is set as the data closest to the paint determined position “2.75”. .25 "paint end point data NE
Process B5. Here, the range “2.75: 5.25”
Is determined to be painted with the drawing object Z, and data indicating that the drawing points (3, 4), (4, 4), and (5, 4) are painted with the color of the drawing object Z is output.

【0063】そして、「10.95」の位置の塗り始点
データNSC4を処理する。ここで、描画オブジェクト
Zの塗り領域が「10.95」の位置から再度始まるこ
とになる。塗りつぶし情報保持部18において次に登録
されているのは「11.10」の位置の仮塗り始点位置
データKNSD4であるため塗りつぶし処理部16は、
境界線処理部14の処理待ちとなる。境界線処理部14
では次に「11.60」の位置の元位置境界線MVDを
処理する。この結果描画オブジェクトZの描画領域は終
了し、「11.60+0.5=12.10」の位置に塗
り終点データNED4を生成して、塗りつぶし情報保持
部18に通知すると共に、元位置境界線MVDに関連づ
けられている仮塗り始点位置データKNSD4をキャン
セルすることを塗りつぶし情報保持部18に通知する。
Then, the paint start point data NSC4 at the position "10.95" is processed. Here, the paint area of the drawing object Z starts again from the position of “10.95”. The next registration in the paint information holding unit 18 is the temporary paint start point position data KNSD4 at the position “11.10”, so the paint processing unit 16
The processing of the boundary processing unit 14 is awaited. Boundary processing unit 14
Next, the original position boundary line MVD at the position “11.60” is processed. As a result, the drawing area of the drawing object Z ends, and the painting end point data NED4 is generated at the position of “11.60 + 0.5 = 12.1.10” and is notified to the painting information holding unit 18 and the original position boundary line MVD To the filling information holding unit 18 to cancel the temporary coating start point position data KNSD4 associated with.

【0064】そして、この走査線上の処理すべき境界線
の処理がすべて終っているため、走査線の終了処理を行
なう。塗りつぶし処理部16においては、塗り情報処理
位置「10.95」の次の塗り情報が「12.10」の
塗り終点データNED4になるので、ここで描画オブジ
ェクトZの塗りつぶし領域を終了し、範囲[10.9
5:12.10]の間を描画オブジェクトZの色で塗り
つぶしこととし、描画点(11,4)、(12,4)を
描画オブジェクトZの色で塗りつぶすというデータを出
力する。この、Y=4において塗りつぶされるドットの
概念図を図13に示す。
Since the processing of the boundary line to be processed on the scanning line has been completed, the processing of terminating the scanning line is performed. In the painting processing unit 16, the painting information next to the painting information processing position “10.95” becomes the painting end point data NED4 of “12.10”. Here, the painting area of the drawing object Z is ended, and the range [ 10.9
5: 12.10] is painted with the color of the drawing object Z, and data that paints the drawing points (11, 4) and (12, 4) with the color of the drawing object Z is output. FIG. 13 is a conceptual diagram of the dots painted when Y = 4.

【0065】以下Y=3、Y=2、Y=1の位置につい
て同様の処理が行なわれ、その結果塗りつぶしが決定さ
れるドットの概念図を順に図14、図15、図16に示
す。図17は、処理結果として塗りつぶしが決定される
ドットと、もとの境界線データの位置関係を示す概念図
である。以上のように、本実施の形態による描画処理装
置によれば、特別なメモリを用意しなくても、効率的か
つ、高精度に、細い幅の領域について描画することがで
きるようになる。
Hereinafter, similar processing is performed for the positions of Y = 3, Y = 2, and Y = 1, and the conceptual diagrams of the dots for which the filling is determined as a result are shown in FIG. 14, FIG. 15, and FIG. FIG. 17 is a conceptual diagram showing the positional relationship between the dots whose filling is determined as the processing result and the original boundary data. As described above, according to the drawing processing device of the present embodiment, it is possible to draw efficiently and accurately with respect to a narrow width area without preparing a special memory.

【0066】本発明は、上記実施の形態に限らず種々の
変形が可能である。例えば、上記実施の形態において
は、仮境界線から元位置境界線と仮塗り始点データが逐
次生成される場合について説明したが、走査線の処理の
度に境界線保持部12に格納された仮塗り境界線につい
てまとめて仮塗り始点位置データを生成するとともに、
元位置境界線データに変換しておいてから、元位置境界
線データと仮塗り始点データを順に処理するという変更
なども容易である。また、このような場合には仮境界線
データは必ずしも位置座標をもとの境界線データの位置
座標から変更しておく必要もなくなる。
The present invention is not limited to the above embodiment, but can be variously modified. For example, in the above-described embodiment, a case has been described in which the original position boundary line and the temporary painting start point data are sequentially generated from the temporary boundary line. However, the temporary line stored in the boundary line holding unit 12 is processed each time the scanning line is processed. Generate temporary paint start point position data for the paint boundary line at once,
It is also easy to change the original position boundary line data and then to process the original position boundary line data and the temporary painting start point data in order after conversion to the original position boundary line data. In such a case, it is not necessary to change the position coordinates of the temporary boundary line data from the position coordinates of the original boundary line data.

【0067】[0067]

【発明の効果】以上の通り、本発明によれば、ラインバ
ッファやビットマスク用のメモリを特別に用意すること
なく、効率的かつ、高精度に、細い幅の領域についても
描画を実現することができる。
As described above, according to the present invention, it is possible to efficiently and accurately perform drawing even in a narrow area without specially preparing a memory for a line buffer or a bit mask. Can be.

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

【図1】本発明の一実施の形態による描画処理装置の概
略構成を示す図である。
FIG. 1 is a diagram showing a schematic configuration of a drawing processing apparatus according to an embodiment of the present invention.

【図2】本発明の一実施の形態による描画処理装置にお
ける処理の流れを示す図である。
FIG. 2 is a diagram showing a flow of processing in a drawing processing apparatus according to one embodiment of the present invention.

【図3】本発明の一実施の形態による描画処理装置にお
ける仮境界線生成の処理の流れを示す図である。
FIG. 3 is a diagram showing a flow of a process of generating a temporary boundary line in the drawing processing apparatus according to the embodiment of the present invention;

【図4】本発明の一実施の形態による描画処理装置にお
ける境界線の処理の流れを示す図である。
FIG. 4 is a diagram showing a flow of processing of a boundary line in the drawing processing apparatus according to the embodiment of the present invention;

【図5】本発明の一実施の形態による描画処理装置にお
ける塗りつぶし情報の処理の流れを示す図である。
FIG. 5 is a diagram showing a flow of processing of filling information in the drawing processing apparatus according to the embodiment of the present invention;

【図6】本発明の一実施の形態による描画処理装置にお
ける塗りつぶし情報の処理の流れを示す図である。
FIG. 6 is a diagram showing a flow of processing of filling information in the drawing processing apparatus according to the embodiment of the present invention;

【図7】本発明の一実施の形態で使用する塗りつぶし図
形の概念図である。
FIG. 7 is a conceptual diagram of a solid figure used in an embodiment of the present invention.

【図8】本発明の一実施の形態で使用する塗りつぶし図
形の外形を表すベクトルデータの概念図である。
FIG. 8 is a conceptual diagram of vector data representing an outer shape of a filled figure used in an embodiment of the present invention.

【図9】本発明の一実施の形態で使用した塗りつぶし図
形による仮境界線を示す概念図である。
FIG. 9 is a conceptual diagram showing a temporary boundary line by a filled figure used in one embodiment of the present invention.

【図10】Y=5において処理される仮境界線の概念図
である。
FIG. 10 is a conceptual diagram of a temporary boundary line processed when Y = 5.

【図11】Y=5で塗りつぶされるドットの例を示す図
である。
FIG. 11 is a diagram illustrating an example of a dot painted at Y = 5.

【図12】Y=4において処理される仮境界線の概念図
である。
FIG. 12 is a conceptual diagram of a provisional boundary line processed when Y = 4.

【図13】Y=4で塗りつぶされるドットの例を示す図
である。
FIG. 13 is a diagram illustrating an example of a dot painted at Y = 4.

【図14】Y=3で塗りつぶされるドットの例を示す図
である。
FIG. 14 is a diagram illustrating an example of a dot painted at Y = 3.

【図15】Y=2で塗りつぶされるドットの例を示す図
である。
FIG. 15 is a diagram illustrating an example of a dot painted at Y = 2.

【図16】Y=1で塗りつぶされるドットの例を示す図
である。
FIG. 16 is a diagram illustrating an example of a dot painted at Y = 1.

【図17】本発明の一実施の形態で使用した塗りつぶし
図形による塗りつぶされるドットを示す図である。
FIG. 17 is a diagram showing dots to be painted by a painted figure used in an embodiment of the present invention.

【図18】走査処理方向と座標軸との対応を示す図であ
る。
FIG. 18 is a diagram showing a correspondence between a scanning processing direction and a coordinate axis.

【図19】境界線の簡単なデータ構造の例を示す図であ
る。
FIG. 19 is a diagram illustrating an example of a simple data structure of a boundary line.

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

2 入力部 4 方向判定部 6 境界線生成部 8 境界線蓄積部 10 境界線読み出し部 12 境界線保持部 14 境界線保持部 16 塗りつぶし処理部 18 塗りつぶし情報保持部 20 出力部 VA、VB、VC、VD 描画オブジェクトZの境界線
データ SA、SB、SC、SD 描画オブジェクトZの仮境界
線データ
2 Input unit 4 Direction determination unit 6 Boundary line generation unit 8 Boundary line accumulation unit 10 Boundary line reading unit 12 Boundary line holding unit 14 Boundary line holding unit 16 Fill processing unit 18 Fill information holding unit 20 Output unit VA, VB, VC, VD Boundary line data of drawing object Z SA, SB, SC, SD Temporary boundary line data of drawing object Z

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】描画命令を受け取り、αβ直交座標系で表
されるα−β平面で描画される描画図形の境界のデータ
を生成する入力部と、 前記描画命令から、前記境界のデータの向きを判定する
方向判定部と、 前記方向判定部から方向判定の結果と描画図形の境界の
データを受け取り仮境界線データを生成する仮境界線生
成部と、 前記仮境界線データを蓄積する境界線蓄積部と、 前記境界線蓄積部から処理に使用する境界線データを読
み出して一時保持する境界線保持部と、 前記境界線保持部に格納されている前記境界線データを
順に処理して塗り情報を生成する境界線処理部と、 前記境界線処理部の処理の結果出力される塗り情報を一
時保持する塗りつぶし情報保持部と、 前記塗りつぶし情報保持部に保持された情報を処理して
塗りつぶしの出力データを生成する塗りつぶし処理部と
を備えたことを特徴とする描画処理装置。
An input unit for receiving a drawing command and generating data of a boundary of a drawing figure drawn on an α-β plane represented by an αβ orthogonal coordinate system; and a direction of data of the boundary from the drawing command. A temporary boundary generation unit that receives the result of the direction determination and the data of the boundary of the drawn figure from the direction determination unit and generates temporary boundary data, and a boundary that stores the temporary boundary data. A storage unit, a boundary line holding unit that reads boundary line data to be used for processing from the boundary line storage unit and temporarily stores the boundary line data, and sequentially processes the boundary line data stored in the boundary line storage unit to paint information. A boundary processing unit that generates the data, a filling information holding unit that temporarily holds the coating information output as a result of the processing of the boundary processing unit, and a processing unit that processes the information held in the filling information holding unit to perform the filling. Drawing processing apparatus characterized by comprising a filling unit for generating a force data.
【請求項2】請求項1記載の描画処理装置において、 前記仮境界線生成部は、入力された描画図形の境界のデ
ータの傾きが所定の基準値以上であれば、前記境界のデ
ータを所定の移動量だけα軸方向に平行移動させた仮境
界線データを生成し、前記傾きが前記基準値以下であれ
ば、前記境界のデータを前記傾きに応じて算出した移動
量だけα軸方向に平行移動させた仮境界線データを生成
することを特徴とする描画処理装置。
2. The drawing processing apparatus according to claim 1, wherein the temporary boundary line generation unit determines the boundary data if a gradient of input boundary data of the drawing graphic is equal to or greater than a predetermined reference value. Generates temporary boundary line data that is translated in the α-axis direction by the moving amount, and if the inclination is equal to or smaller than the reference value, the boundary data is moved in the α-axis direction by the moving amount calculated according to the inclination. A drawing processing apparatus for generating temporary boundary data that has been translated.
【請求項3】請求項2記載の描画処理装置において、 前記仮境界線生成部は、前記入力された描画図形の境界
のデータの傾きが所定の基準値以上のときに生成された
仮境界線データと、前記傾きが前記基準値以下のときに
生成された仮境界線データの少なくともいずれかの仮境
界線データに対して、前記仮境界線データの座標値に基
づいて決定される塗り領域制限範囲データを付与し、前
記境界線処理部は、生成する塗り始点データ、仮塗り始
点データ、あるいは塗り終点データの座標値が前記塗り
領域制限範囲外であれば当該座標値を補正することを特
徴とする描画処理装置。
3. The drawing processing device according to claim 2, wherein the temporary boundary line generation unit generates a temporary boundary line generated when a gradient of data of a boundary of the input drawing graphic is equal to or greater than a predetermined reference value. Data and at least any one of the temporary boundary data generated when the inclination is equal to or less than the reference value, and a paint area limit determined based on the coordinate value of the temporary boundary data. If the coordinate value of the generated paint start point data, temporary paint start point data, or paint end point data is outside the paint area limit range, the boundary line processing unit corrects the coordinate value. Rendering processing device.
【請求項4】請求項3記載の描画処理装置において、 前記塗り始点データ、仮塗り始点データ、あるいは塗り
終点データの座標の補正値は、前記塗り領域制限範囲の
両端の値のいずれかであることを特徴とする描画処理装
置。
4. The drawing processing apparatus according to claim 3, wherein the correction value of the coordinates of the paint start point data, the temporary paint start point data, or the paint end point data is one of values at both ends of the paint area restriction range. A drawing processing apparatus characterized by the above-mentioned.
【請求項5】請求項1乃至4のいずれかに記載の描画処
理装置において、 前記塗りつぶし情報保持部は、複数の描画オブジェクト
の塗りつぶし状態と優先順位を管理する塗りつぶし管理
機構を備えていることを特徴とする描画処理装置。
5. The drawing processing apparatus according to claim 1, wherein the filling information holding unit includes a filling management mechanism that manages filling states and priorities of a plurality of drawing objects. Characteristic drawing processing device.
【請求項6】請求項1乃至5のいずれかに記載の描画処
理装置において、 前記仮境界線データから生成される元位置境界線データ
は、前記塗りつぶし情報保持部に登録する仮塗り始点デ
ータのアドレスあるいは識別子が付加されていることを
特徴とする描画処理装置。
6. The drawing processing apparatus according to claim 1, wherein the original position boundary line data generated from the temporary boundary line data is a temporary filling start point data registered in the filling information holding unit. A drawing processing device to which an address or an identifier is added.
【請求項7】請求項1乃至6のいずれかに記載の描画処
理装置において、 前記仮境界線生成部で生成される仮境界線は、元の境界
線と同じ位置に生成され、前記境界線保持部に格納され
る際にまとめて仮塗り始点データが生成されて塗りつぶ
し情報保持部に格納されることを特徴とする描画処理装
置。
7. The drawing processing apparatus according to claim 1, wherein the temporary boundary line generated by the temporary boundary line generation unit is generated at the same position as an original boundary line. A drawing processing apparatus, wherein temporary filling start point data is generated collectively when stored in a holding unit and stored in a filling information holding unit.
【請求項8】請求項1乃至7のいずれかに記載の描画処
理装置において、 前記塗りつぶし情報保持部に登録する塗り情報は、仮塗
り始点データのアドレスあるいは識別子が付加されてい
ることを特徴とする描画処理装置。
8. The drawing processing apparatus according to claim 1, wherein the paint information registered in the paint information holding unit is added with an address or an identifier of temporary paint start point data. Rendering processing device.
【請求項9】請求項1乃至8のいずれかに記載の描画処
理装置において、前記塗りつぶし処理部は、描画オブジ
ェクトの塗りの始点と終点を指示する塗り境界カウンタ
を有していることを特徴とする描画処理装置。
9. A drawing processing apparatus according to claim 1, wherein said paint processing unit has a paint boundary counter for designating a starting point and an ending point of the painting of the drawing object. Rendering processing device.
JP8355277A 1996-12-20 1996-12-20 Plotting processor Withdrawn JPH10187386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8355277A JPH10187386A (en) 1996-12-20 1996-12-20 Plotting processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8355277A JPH10187386A (en) 1996-12-20 1996-12-20 Plotting processor

Publications (1)

Publication Number Publication Date
JPH10187386A true JPH10187386A (en) 1998-07-14

Family

ID=18442995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8355277A Withdrawn JPH10187386A (en) 1996-12-20 1996-12-20 Plotting processor

Country Status (1)

Country Link
JP (1) JPH10187386A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007264988A (en) * 2006-03-28 2007-10-11 Toshiba Corp Graphic drawing device, graphic drawing method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007264988A (en) * 2006-03-28 2007-10-11 Toshiba Corp Graphic drawing device, graphic drawing method, and program
JP4621617B2 (en) * 2006-03-28 2011-01-26 株式会社東芝 Graphic drawing apparatus, graphic drawing method, and program
US8581908B2 (en) 2006-03-28 2013-11-12 Kabushiki Kaisha Toshiba Graphics-rendering apparatus

Similar Documents

Publication Publication Date Title
KR950012083B1 (en) Information processing apparatus
US5317679A (en) Digital image processor including correction for undesirable edge emphasis in outline-demarcated fonts
JPH06161419A (en) Character output device
JP2634851B2 (en) Image processing device
JP2876942B2 (en) Data converter
JP3009525B2 (en) Vector image drawing equipment
JPH10187386A (en) Plotting processor
JPH08194459A (en) Outline character plotting device
JP2008201058A (en) Image forming apparatus
JP2002015329A (en) Image processing device and image processing method
JPH10188011A (en) Plotting processor
JPH10188012A (en) Plotting processor
JP3823730B2 (en) Image processing apparatus and method
JP3129717B2 (en) Image processing apparatus and image processing method
JP2007081886A (en) Drawing processing apparatus
JP2895529B2 (en) Character generation method and device, and document creation device
JP2001092981A (en) Device and method for processing image
JP3089906B2 (en) Drawing equipment
JP3055306B2 (en) Data output device
JP2814709B2 (en) Drawing data creation device
JP2001273508A (en) Picture processor
JPH1049690A (en) Picture forming device
JP2002032769A (en) Method and device for image processing
JPH07334695A (en) Plotter and line width determining method
JP3099556B2 (en) Data converter

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040302