JPH1020849A - Plotting processor - Google Patents

Plotting processor

Info

Publication number
JPH1020849A
JPH1020849A JP8197112A JP19711296A JPH1020849A JP H1020849 A JPH1020849 A JP H1020849A JP 8197112 A JP8197112 A JP 8197112A JP 19711296 A JP19711296 A JP 19711296A JP H1020849 A JPH1020849 A JP H1020849A
Authority
JP
Japan
Prior art keywords
data
vector
section data
graphic
base
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
JP8197112A
Other languages
Japanese (ja)
Other versions
JP3692639B2 (en
Inventor
Masao Morita
雅夫 森田
Kazutaka Hayashi
千登 林
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 JP19711296A priority Critical patent/JP3692639B2/en
Publication of JPH1020849A publication Critical patent/JPH1020849A/en
Application granted granted Critical
Publication of JP3692639B2 publication Critical patent/JP3692639B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a plotting processor permitting a transmission composition processing at a preceding stage of generating a raster at a high speed, concerning a plotting processing performing not only topping in a paint-out process but also transmission composition processing. SOLUTION: A section data input part 2 receives the section data of a graphic to be plotted and a transmission factor of the graphic. A transmission composition processing is done on the section data in the transmission composition processing part 4 and a section data storage part 6. An image output part 8 outputs a video signal, etc., while reading out the section data of the section data storage part 6, and outputs the image in a format corresponding to a specified output device.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は描画処理装置に関
し、特に塗りつぶし処理において上塗りだけでなく透過
合成処理も行う描画処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing processing apparatus, and more particularly to a drawing processing apparatus that performs not only a top coat but also a transmission synthesis processing in a filling process.

【0002】[0002]

【従来の技術】例えば、Interpress(Xer
ox社の商標)やPostScript(Adobe社
の商標)などのページ記述言語(PDL)は、オペイク
モデルと呼ばれる描画モデルを採用している。オペイク
モデルは不透明なインクで上書きを行うモデルであり、
上書きされた描画結果は、最後に描画された図形の色だ
けがページ上に残されるようになる。
2. Description of the Related Art For example, an Interpress (Xer)
A page description language (PDL) such as ox's trademark or PostScript (Adobe's trademark) employs a drawing model called an opaque model. The opaque model is a model that overwrites with opaque ink,
In the overwritten drawing result, only the color of the last drawn figure is left on the page.

【0003】近年のコンピュータ・グラフィックス(C
G)やデスクトップ・パブリッシング(DTP)では、
透過モデルを採用する動きがある。例えば、Quick
DrawGX(Apple社の商標)は、透過モデルを
採用している。透過モデルで図形の描画を行うと、オペ
イクモデルでは上書きされて消去されていた下側の図形
(下地図形)の色に対して、指定した透過率による透か
し処理(透過合成処理)が施される。透過モデルにおい
て、追加する図形(追加図形)の色の使用率を100%
(透過率100%という)とすればオペイクモデルと全
く同じ処理になるので、描画モデルとしては透過モデル
の方が高い汎用性を有していると言える。従来の透過合
成処理は特開平7−28986号公報に開示されている
ように、ラスター上で行うようになっている。
In recent years, computer graphics (C
G) and desktop publishing (DTP)
There is a move to adopt a transmission model. For example, Quick
DrawGX (a trademark of Apple Inc.) employs a transmission model. When a figure is drawn using the transmission model, a watermark process (a transmission synthesis process) using a specified transmittance is performed on the color of the lower figure (base pattern) that has been overwritten and deleted in the opaque model. In the transparent model, the color usage rate of the figure to be added (additional figure) is 100%
If the transmittance is 100%, the processing is exactly the same as that of the opaque model. Therefore, it can be said that the transmission model has higher versatility as a drawing model. Conventional transmission synthesis processing is performed on a raster as disclosed in Japanese Patent Application Laid-Open No. 7-28986.

【0004】[0004]

【発明が解決しようとする課題】従って、従来の描画処
理装置では、文字やグラフィックスのようなラスター以
外のPDLの描画要素に透過合成処理を行う場合であっ
ても、ラスターデータを生成してからでないと透過合成
処理を行うことができない。そのため従来の描画処理装
置では、第1に、ラスター上で処理するための大容量の
メモリを必要とする、第2に、データ転送量がページメ
モリの容量を超えてしまう、第3に、透過合成処理の処
理速度が遅くなってしまう、等の問題点を有している。
Therefore, the conventional drawing processing apparatus generates raster data even when performing transparent synthesis processing on PDL drawing elements other than raster, such as characters and graphics. The transmission synthesis process cannot be performed unless it is from the beginning. Therefore, in the conventional drawing processing apparatus, firstly, a large-capacity memory for processing on a raster is required. Second, the data transfer amount exceeds the capacity of the page memory. There is a problem that the processing speed of the combining process is reduced.

【0005】本発明の目的は、ラスターデータを生成す
る前の段階で透過合成処理を行うことができ、しかも高
速に透過合成処理を行える描画処理装置を提供すること
にある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a drawing processing apparatus capable of performing a transparent combining process at a stage before generating raster data and performing the transparent combining process at a high speed.

【0006】[0006]

【課題を解決するための手段】上記目的は、下地図形に
追加した追加図形を通して下地図形の色を所定の透過率
で透過させる透過合成機能を有する描画処理装置であっ
て、下地図形及び追加図形の描画データをランレングス
型データと所定の透過率データとで表現し、下地図形と
追加図形のランレングス型データを合成し、透過率デー
タに基づいて結果図形のランレングス型データ及び透過
率データを生成する透過合成処理手段と、結果図形のラ
ンレングス型データ及び透過率データを記憶する記憶手
段と、結果図形のランレングス型データに基づいて結果
図形をラスター型データにして出力する出力手段とを備
えることを特徴とする描画処理装置によって達成され
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a drawing processing apparatus having a transparency synthesizing function for transmitting the color of a base figure at a predetermined transmittance through an additional figure added to the base figure. Is represented by run-length type data and predetermined transmittance data, the run-length type data of the base figure and the additional figure are combined, and the run-length type data and transmittance data of the resultant figure are based on the transmittance data. And a storage unit for storing run-length data and transmittance data of the resulting graphic, and an output unit for outputting the resulting graphic as raster-type data based on the run-length data of the resulting graphic. This is achieved by a drawing processing device characterized by comprising:

【0007】上記描画処理装置において、ランレングス
型データのデータ表現は、描画図形のスキャンライン上
の始点、幅、及び色値を含むようにする。また、結果図
形のランレングス型データの色値は、追加図形の色値に
追加図形の透過率αを乗じた値と下地図形の色値に(1
−α)を乗じた値とを加えた値である。
In the above-described drawing processing apparatus, the data representation of the run-length type data includes a starting point, a width, and a color value on a scan line of a drawing figure. In addition, the color value of the run-length type data of the result graphic is obtained by multiplying the color value of the additional graphic by the transmittance α of the additional graphic and the color value of the base graphic by (1).
−α) and a value obtained by adding the multiplied value.

【0008】また上記目的は、下地図形に追加した追加
図形を通して下地図形の色を所定の透過率で透過させる
透過合成機能を有する描画処理装置であって、描画デー
タがベクターデータと所定の透過率データとで表現され
た下地図形及び追加図形を記憶する記憶手段と、記憶手
段から下地図形と追加図形のベクターデータをスキャン
ライン毎に取り出して、所定の透過率データに基づき透
過合成データを生成する透過合成処理手段と、透過合成
データに基づいてラスターデータを生成して出力する出
力手段とを備えることを特徴とする描画処理装置によっ
て達成される。
Another object of the present invention is to provide a drawing processing apparatus having a transmission synthesizing function for transmitting the color of a base figure at a predetermined transmittance through an additional figure added to the base figure, wherein the drawing data is vector data and a predetermined transmittance. A storage unit for storing a base figure and an additional figure expressed by data; and extracting vector data of the base figure and the additional figure from the storage unit for each scan line, and generating transparent composite data based on predetermined transmittance data. The present invention is attained by a drawing processing apparatus comprising: a transmission synthesis processing unit; and an output unit configured to generate and output raster data based on the transmission synthesis data.

【0009】本発明によれば、ランレングス型のデー
タ、或いはベクターデータにより塗りつぶし処理時に透
過合成処理を行うことができるようになるので、透過合
成処理に必要なメモリ量を削減し、且つ高速に透過合成
処理を行うことができるようになる。
According to the present invention, it is possible to perform transparent composition processing at the time of filling processing with run-length type data or vector data, so that the amount of memory required for transparent composition processing can be reduced and high-speed processing can be achieved. It becomes possible to perform transmission synthesis processing.

【0010】[0010]

【発明の実施の形態】本発明の第1の実施の形態による
描画処理装置を図1乃至図13を用いて説明する。まず
初めに本実施の形態における透過合成処理を図2を用い
て説明する。色コンポーネントが三原色の青(B)、緑
(G)、赤(R)とし、先に描画される下地図形の色を
(Bu)、(Gu)、(Ru)とする。また、下地図形
の上に重ねて描画される追加図形の色を(Bo)、(G
o)、(Ro)とし、追加図形の透過率をαとする。透
過合成処理の結果としての結果図形(Br)、(G
r)、(Rr)は図2に示すような式で表される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A drawing processing apparatus according to a first embodiment of the present invention will be described with reference to FIGS. First, the transmission synthesis processing according to the present embodiment will be described with reference to FIG. The color components are three primary colors, blue (B), green (G), and red (R), and the colors of the base figure drawn first are (Bu), (Gu), and (Ru). In addition, the colors of the additional graphics drawn over the base graphics are (Bo), (G
o) and (Ro), and the transmittance of the additional figure is α. Result graphic (Br), (G
r) and (Rr) are represented by equations as shown in FIG.

【0011】すなわち、透過合成処理とは、 結果図形の色値 = 追加図形の色値×α+下地図形の
色値×(1−α) とする画像合成処理のことを言うものとする。
That is, the transparent combining process means an image combining process in which the color value of the resultant graphic = the color value of the additional graphic × α + the color value of the base graphic × (1−α).

【0012】本実施の形態の描画処理装置の主要部の構
成を図1を用いて説明する。まず、区間データ入力部2
で、描画すべき図形の区間データ及び当該図形の透過率
を受け取る。
The configuration of the main part of the drawing processing apparatus according to this embodiment will be described with reference to FIG. First, the section data input unit 2
Then, the section data of the figure to be drawn and the transmittance of the figure are received.

【0013】「区間データ」とは、図3に示すように、
ランレングス形式のデータ表現であり、描画すべき図形
をスキャンライン毎の始点と長さ(幅)で表現したもの
である。区間データは図中の左側からスキャンラインの
番号(Y座標値)、続いて当該スキャンラインでの図形
の始点となるX座標値、当該図形の幅、種別、及び色ま
たは色へのポインタで構成される。ここで種別は、種別
に続く次のフィールドが当該図形の色値自身を示してい
るのか、色データへのポインタを示しているのかを識別
するために用いられる。本実施の形態では、種別の値が
0の場合は次フィールドが色値自身を表し、種別の値が
1の場合は次フィールドが色データへのポインタを示し
ているものとしている。
As shown in FIG. 3, "section data"
This is a data expression in a run-length format, in which a figure to be drawn is represented by a start point and a length (width) for each scan line. The section data is composed of a scan line number (Y coordinate value) from the left side in the figure, an X coordinate value which is a starting point of a figure on the scan line, a width, a type, and a color or a pointer to a color of the figure. Is done. Here, the type is used to identify whether the next field following the type indicates the color value itself of the graphic or a pointer to color data. In this embodiment, when the type value is 0, the next field indicates the color value itself, and when the type value is 1, the next field indicates a pointer to the color data.

【0014】区間データの例を図4及び図5を用いて説
明する。図4に示す図形は内部が一定の色で塗られる三
角形形状でありスキャンラインY1〜Y7により描画さ
れる。図中X1〜X7は当該図形の各スキャンラインで
の始点となるX座標値を示している。L1〜L7はそれ
ぞれのスキャンライン上のX1〜X7からの幅である。
図5に図4の図形の区間データを示す。区間データによ
り、スキャンライン毎に図形の内部を表す領域が表現さ
れる。この例では、種別は0であり、従って種別の次の
フィールドには図形の色値自身が格納されている。
An example of the section data will be described with reference to FIGS. The figure shown in FIG. 4 has a triangular shape whose inside is painted with a fixed color, and is drawn by scan lines Y1 to Y7. In the figure, X1 to X7 indicate X coordinate values which are the starting points of the figure on each scan line. L1 to L7 are widths from X1 to X7 on each scan line.
FIG. 5 shows section data of the figure of FIG. The section data represents an area representing the inside of the figure for each scan line. In this example, the type is 0, so the field next to the type stores the color value of the figure itself.

【0015】区間データの別の例を図6及び図7を用い
て説明する。図6に示す図形は、図形の開始点のX座標
値がX1、幅が8であり、スキャンラインY1〜Y5で
描画される長方形形状である。図6ではラスターなどの
色値が画素毎に変化する場合を示している。図6の画像
の区間データは図7のように表現される。区間データの
種別は1であり、従って種別の次のフィールドには色デ
ータへのポインタが格納されている。そして、各区間デ
ータから参照されるポインタの先に、画素毎の色値が格
納されている。色値の参照時には、区間データのX座標
と連動してポインタ値を移動させれば、各画素の色値を
求めることができる。
Another example of the section data will be described with reference to FIGS. The graphic shown in FIG. 6 has a rectangular shape which has an X coordinate value X1 and a width of 8 at the start point of the graphic and is drawn by scan lines Y1 to Y5. FIG. 6 shows a case where a color value such as a raster changes for each pixel. The section data of the image in FIG. 6 is represented as shown in FIG. The type of the section data is 1, and therefore, a pointer to the color data is stored in the field next to the type. Then, a color value for each pixel is stored before the pointer referred to from each section data. When referring to the color value, the color value of each pixel can be obtained by moving the pointer value in conjunction with the X coordinate of the section data.

【0016】透過合成処理は、図1の透過合成処理部4
及び区間データ記憶部6内の区間データ上で行われる。
透過合成処理部4及び区間データ記憶部6については後
程詳細に説明する。
The transmission synthesis processing is performed by the transmission synthesis processing unit 4 shown in FIG.
And on the section data in the section data storage unit 6.
The transmission synthesis processing unit 4 and the section data storage unit 6 will be described later in detail.

【0017】図1の画像出力部8は、区間データ記憶部
6の区間データを読み出しながらビデオ信号等を生成し
て、所定の出力装置に対応したフォーマットで画像を出
力するようになっている。
The image output unit 8 shown in FIG. 1 generates a video signal or the like while reading the section data from the section data storage unit 6, and outputs an image in a format corresponding to a predetermined output device.

【0018】次に、図8を用いて本実施の形態の描画処
理装置による処理の概略の流れを説明する。まず、ステ
ップS1において、区間データ記憶部6の初期化を行
う。図9に区間データの初期化の例を示す。初期状態と
して区間データ記憶部6の区間データには全て白(透
明)の状態がセットされる。hは描画領域の高さを示し
ておりスキャンラインの番号に対応している。wは描画
領域の幅を示している。初期状態として区間データの始
点のX座標値には全て0が格納され、種別は0で次フィ
ールドには白を示す色値が格納されている。なお、この
ように本実施の形態では初期状態として描画領域全体を
白と定義しているが、何もない状態(無色)や、固有の
色を持つ状態を初期状態としても一向に差し支えない。
Next, a schematic flow of processing by the drawing processing apparatus according to the present embodiment will be described with reference to FIG. First, in step S1, the section data storage unit 6 is initialized. FIG. 9 shows an example of initialization of section data. As an initial state, all white (transparent) states are set in the section data of the section data storage unit 6. h indicates the height of the drawing area and corresponds to the number of the scan line. w indicates the width of the drawing area. As an initial state, all 0s are stored in the X coordinate value of the start point of the section data, the type is 0, and a color value indicating white is stored in the next field. As described above, in the present embodiment, the entire drawing area is defined as white as the initial state, but a state without any color (colorless) or a state having a unique color may be set as the initial state.

【0019】ステップS2において、区間データ記憶部
6に保持されている下地図形の区間データの中から、追
加図形の区間データと同じスキャンライン(走査線)上
の全ての下地図形の区間データが読み出される。
In step S2, from the section data of the base figure held in the section data storage section 6, the section data of all the base figures on the same scan line as the section data of the additional figure are read. It is.

【0020】ステップS3において、読み出した下地図
形の区間データと追加図形の区間データのX座標値及び
幅の値を用いて、以下に示す処理が行われる。 第1の処理: 追加図形の挿入位置の検索処理、 第2の処理: 追加図形が下地図形と重なる領域の色値
の計算処理、 第3の処理: 下地図形の分割、修正、及び追加図形の
追加処理 まず、第1の処理である追加図形の挿入位置の検索処理
では、下地図形の一つの区間データのX座標値と、追加
図形の区間データのX座標値と幅の値との和(X座標値
+幅の値)との比較を行う。
In step S3, the following process is performed using the read X-coordinate value and width value of the section data of the base figure and the section data of the additional figure. 1st processing: search processing of insertion position of additional graphic, 2nd processing: calculation processing of color value of area where additional graphic overlaps base graphic, 3rd processing: division, correction of base graphic, and Addition Processing First, in the first processing of searching for the insertion position of an additional graphic, the X coordinate value of one section data of the base graphic, the sum of the X coordinate value and the width value of the section data of the additional graphic ( (X coordinate value + width value).

【0021】この比較は図10に示す(a)〜(f)の
6通りに分類される。図10における記号、OSX、O
EX、USX、及びUEXはそれぞれ以下に示す意味で
用いる。 OSX: 追加図形の区間データにおけるX座標値 OEX: 追加図形の区間データにおける(X座標値+
幅−1)の値 USX: 下地図形の区間データにおけるX座標値 UEX: 下地図形の区間データにおける(X座標値+
幅−1)の値 さて、各スキャンラインにおける下地図形の区間データ
がX座標値の小さな順に並べられているとすれば、下地
図形の区間データを順次読み出しながら、以下のように
追加図形の挿入位置と重なり具合を知ることができる。
This comparison is classified into six types (a) to (f) shown in FIG. Symbols in FIG. 10, OSX, O
EX, USX, and UEX are used in the following meanings. OSX: X coordinate value in section data of additional figure OEX: (X coordinate value +
USX: X coordinate value in the section data of the base figure UEX: (X coordinate value +) in the section data of the base figure
Now, assuming that the section data of the base figure in each scan line is arranged in ascending order of the X coordinate value, while reading the section data of the base figure sequentially, the insertion of the additional figure is performed as follows. You can know the position and the degree of overlap.

【0022】図10(a)の場合は、OEX<USXで
あり、追加図形の終端より下地図形の前端の方がスキャ
ンライン上で後方に位置するので、結果図形において下
地図形と追加図形とは重ならない。従って、当該下地図
形の次の下地図形と追加図形との重なりを調べる必要は
ない。
In the case of FIG. 10A, since OEX <USX, and the front end of the base figure is located behind the end of the additional figure on the scan line, the base figure and the additional figure in the resultant figure are different from each other. Do not overlap. Therefore, it is not necessary to check the overlap between the base figure next to the base figure and the additional figure.

【0023】図10(b)の場合は、OSX<USX≦
OEX<UEXであり、下地図形の前方と追加図形の後
方と重なる結果図形となる。従って、次の下地図形と追
加図形との重なりを調べる必要はない。
In the case of FIG. 10B, OSX <USX ≦
OEX <UEX, and the resulting figure overlaps the front of the base figure and the back of the additional figure. Therefore, it is not necessary to check the overlap between the next base figure and the additional figure.

【0024】図10(c)の場合は、OSX<USX<
UEX<OEXであり、追加図形の内部に下地図形が完
全に重なる結果図形となる。従って、次の下地図形に対
して、追加図形のX座標値をOSX=UEX+1として
さらに比較を行う必要がある。
In the case of FIG. 10C, OSX <USX <
UEX <OEX, and the resulting figure completely overlaps the base figure inside the additional figure. Therefore, it is necessary to further compare the X-coordinate value of the additional figure with OSX = UEX + 1 for the next base figure.

【0025】図10(d)の場合は、USX≦OSX<
OEX≦UEXであり、追加図形が下地図形の内部に完
全に重なる結果図形となる。従って、次の下地図形と追
加図形の重なりを調べる必要はない。
In the case of FIG. 10D, USX ≦ OSX <
OEX ≦ UEX, and the additional graphic completely overlaps the inside of the base graphic, resulting in a graphic. Therefore, it is not necessary to check the overlap between the next base figure and the additional figure.

【0026】図10(e)の場合は、USX<OSX≦
UEX<OEXであり、下地図形の後方に追加図形の前
方が重なる結果図形となる。従って、次の下地図形に対
して追加図形のX座標値をOSX=UEX+1としてさ
らに比較を行う必要がある。
In the case of FIG. 10E, USX <OSX ≦
UEX <OEX, and the figure is a result figure in which the back of the base figure and the front of the additional figure overlap. Therefore, it is necessary to further compare the X-coordinate value of the additional figure with OSX = UEX + 1 for the next base figure.

【0027】図10(f)の場合は、UEX<OSXで
あり、追加図形の前端より下地図形の終端の方がスキャ
ンライン上で前方に位置するので、結果図形において下
地図形と追加図形とは重ならない。
In the case of FIG. 10 (f), UEX <OSX, and the end of the base figure is located ahead of the front end of the additional figure on the scan line. Do not overlap.

【0028】上記6種類の場合分けにより、追加図形の
挿入位置と重なり具合が求まる。図10(c)、
(e)、及び(f)の場合は、さらに次の下地図形の区
間データとの比較を行う。但し、図10(f)の場合に
あっては、次の下地図形の区間データがなければ処理を
終了させる。
By the above six types of cases, the insertion position and the degree of overlap of the additional graphic are determined. FIG. 10 (c),
In the cases of (e) and (f), comparison is made with the section data of the next base figure. However, in the case of FIG. 10F, if there is no section data of the next base figure, the processing is terminated.

【0029】次に第2の処理としての、追加図形が下地
図形と重なる領域の色値の計算処理は、下地図形と追加
図形との間に重なりが生じた場合、すなわち、図10
(b)、(c)、(d)、及び(e)の場合に必要とな
る。この場合は、図2で示した式により重なった領域の
色値の計算が行われる。
Next, in the second processing, the color value calculation processing of the area where the additional graphic overlaps with the base graphic is performed when the base graphic and the additional graphic overlap each other, that is, in FIG.
This is required in the cases of (b), (c), (d), and (e). In this case, the calculation of the color value of the overlapping area is performed by the equation shown in FIG.

【0030】次に第3の処理の下地図形の分割、修正、
及び追加図形の追加処理は、下地図形と追加図形との間
に重なりが生じた場合、すなわち、図10(b)、
(c)、(d)、及び(e)の場合に必要となる。本処
理により各図の結果図形に示すように区間データを分
割、修正して新たな区間データが合成される。
Next, division, correction,
The additional processing of the additional graphic is performed when the base graphic and the additional graphic overlap each other, that is, in FIG.
This is required in the cases of (c), (d), and (e). By this processing, the section data is divided and corrected as shown in the result figure of each figure, and new section data is synthesized.

【0031】上記6種類の場合分けにおける下地図形の
分割、修正、及び追加図形の追加処理(第3の処理)
は、以下のように行われる。図10(a)の場合は、最
初に読み出した下地図形の区間データの先頭に、追加す
る図形の区間データを追加する。
In the above-described six cases, the base figure is divided and modified, and additional figures are added (third processing).
Is performed as follows. In the case of FIG. 10A, the section data of the figure to be added is added to the head of the section data of the base figure read first.

【0032】図10(b)の場合は、下地図形の区間デ
ータと追加図形の区間データから3個の区間データが作
成される。各区間データの幅と色値は以下のようにな
る。なお、作成される区間データの幅を[始点,終点]
で示し、当該幅での色値を「:」の次に示している(以
下同じ)。 [OSX,USX−1]: 追加図形の色値 [USX,OEX] : 第2の処理で演算された色
値 [OEX+1,UEX]: 下地図形の色値
In the case of FIG. 10B, three section data are created from the section data of the base figure and the section data of the additional figure. The width and color value of each section data are as follows. The width of the created section data is [Start point, End point]
, And the color value in the width is shown after “:” (the same applies hereinafter). [OSX, USX-1]: Color value of additional figure [USX, OEX]: Color value calculated in the second process [OEX + 1, UEX]: Color value of base figure

【0033】図10(c)の場合は、3個の区間データ
が作成される。各区間データの幅と色値は以下のように
なる。 [OSX,USX−1]: 追加図形の色値 [USX,UEX] : 第2の処理で演算された色
値 [UEX+1,OEX]: 追加図形の色値 但し、[UEX+1,OEX]の区間データの幅及び色
値については、さらに次の下地区間データとの比較を行
う場合には変更され得る。
In the case of FIG. 10C, three section data are created. The width and color value of each section data are as follows. [OSX, USX-1]: Color value of additional graphic [USX, UEX]: Color value calculated in the second processing [UEX + 1, OEX]: Color value of additional graphic However, section data of [UEX + 1, OEX] Can be changed when further comparing with the next background section data.

【0034】図10(d)の場合は、2個の区間データ
から1乃至3個の区間データが作成される。すなわち、
USX=OSX、OEX=UEXの場合は下地の区間デ
ータの幅に追加図形の区間データの幅が一致して重なる
ので結果図形としての区間データは1個となる。また、
USX=OSX、或いはOEX=UEXのいずれかの場
合には、下地図形及び追加図形の前端又は終端が一致す
るので結果図形の区間データは2個になる。そして、追
加図形が下地図形の中に含まれる場合には結果図形の区
間データは3個になる。各区間データの幅と色値は以下
のようになる。 [USX,OSX−1]: 下地図形の色値(但し、U
SX<OSXの場合) [OSX,OEX] : 第2の処理で演算された色
値 [OEX+1,UEX]: 下地図形の色値(但し、O
EX<UEXの場合)
In the case of FIG. 10D, one to three pieces of section data are created from two pieces of section data. That is,
In the case of USX = OSX and OEX = UEX, the width of the section data of the additional figure coincides with the width of the section data of the background, so that there is only one section data as a result figure. Also,
In the case of either USX = OSX or OEX = UEX, the front end or the end of the base graphic and the additional graphic match, so that the number of section data of the resultant graphic is two. When the additional graphic is included in the base graphic, the number of section data of the resultant graphic is three. The width and color value of each section data are as follows. [USX, OSX-1]: Color value of base figure (however, U
SX <OSX) [OSX, OEX]: Color value calculated in the second process [OEX + 1, UEX]: Color value of base figure (however, O
EX <UEX)

【0035】図10(e)の場合は、2個の区間データ
から3個の区間データが作成される。各区間データの幅
と色値は以下のようになる。 [USX,OSX−1]: 下地図形の色値 [OSX,UEX] : 第2の処理で演算された色
値 [UEX+1,OEX]: 追加図形の色値 但し、[UEX+1,OEX]の幅及び色値について
は、さらに次の下地区間データとの比較が行われる場合
には変更され得る。
In the case of FIG. 10E, three section data are created from the two section data. The width and color value of each section data are as follows. [USX, OSX-1]: Color value of base figure [OSX, UEX]: Color value calculated in the second process [UEX + 1, OEX]: Color value of additional figure However, the width of [UEX + 1, OEX] and The color value can be changed when comparison is made with the next background section data.

【0036】図10(f)の場合は、最初に読み出した
下地図形の区間データの最後に、追加する図形の区間デ
ータを追加する。上記6種類の場合分けにより、区間デ
ータの分割、修正、追加の処理が行われる。これらの処
理結果は区間データ記憶部6に記憶される。
In the case of FIG. 10 (f), the section data of the figure to be added is added at the end of the section data of the base figure which is read first. The division, correction, and additional processing of the section data are performed by the above-described six types of case division. These processing results are stored in the section data storage unit 6.

【0037】図11及び図12を用いて、区間データの
分割、修正、追加処理の具体例を説明する。図11に示
す具体例は、下地図形として描画領域全体が白で塗られ
ており、Y1のスキャンラインにX座標値がXからLの
幅を持つ青色の図形が透過率50%で追加される場合で
ある。この場合は図10(d)の場合に該当し、図12
に示すように結果図形の区間データはY1のスキャンラ
イン上で3個の区間データに分割される。各区間データ
の幅と色値は以下のようになる。 [0,X−1] : 白 [X,X+L−1]: 水色 [X+L,W−1]: 白
With reference to FIGS. 11 and 12, a specific example of division, correction, and addition processing of section data will be described. In the specific example shown in FIG. 11, the entire drawing area is painted white as a base figure, and a blue figure having an X coordinate value in a range from X to L is added to the Y1 scan line with a transmittance of 50%. Is the case. This case corresponds to the case of FIG.
As shown in (1), the section data of the result graphic is divided into three section data on the scan line Y1. The width and color value of each section data are as follows. [0, X-1]: White [X, X + L-1]: Light blue [X + L, W-1]: White

【0038】図8におけるステップ2及びステップ3
は、追加される全ての区間データを処理し終わるまで続
けられる(ステップS4)。そして、全ての区間データ
が処理し終わった後に区間データ記憶部6に蓄積された
区間データが出力される(ステップS5)。
Step 2 and Step 3 in FIG.
Are continued until all the added section data have been processed (step S4). Then, after all the section data has been processed, the section data accumulated in the section data storage unit 6 is output (step S5).

【0039】ステップS5の処理を図13を用いてより
詳細に説明する。図13において、まず、出力装置に対
して出力開始命令を出力する(ステップS10)。次
に、区間データ記憶部6から現在のスキャンラインにお
ける区間データを読み込む(ステップS11)。区間デ
ータがあれば、1画素(ピクセル)分のビデオ信号を発
生し(ステップS14)、区間データの幅(rl)を1
画素分減らす(ステップS15)。この区間データにビ
デオ信号を発生させるべき画素のデータが残っているか
どうかを判断し(ステップS16)、データが残ってい
れば(rl>0)、区間データの種別を判定し(ステッ
プS17)、ラスターであれば色値のポインタを増加
(インクリメント)させる(ステップS18)。ステッ
プS14〜ステップS18までの処理を区間データにデ
ータがなくなるまで続ける。区間データがなくなればス
テップS16にてステップS11に戻り、次の区間デー
タを読み込んで同様の処理を行う。そして、全ての区間
データを処理し終わると(ステップS12)、出力装置
に出力終了命令を出力して(ステップS13)処理を終
了する。
The processing in step S5 will be described in more detail with reference to FIG. In FIG. 13, first, an output start command is output to the output device (step S10). Next, the section data for the current scan line is read from the section data storage unit 6 (step S11). If there is section data, a video signal for one pixel is generated (step S14), and the width (rl) of the section data is set to 1
It is reduced by the number of pixels (step S15). It is determined whether or not pixel data for generating a video signal remains in the section data (step S16). If data remains (rl> 0), the type of the section data is determined (step S17). If it is a raster, the color value pointer is increased (incremented) (step S18). The processing from step S14 to step S18 is continued until there is no data in the section data. If there is no section data, the process returns to step S11 in step S16, and the next section data is read and the same processing is performed. When all the section data has been processed (step S12), an output end command is output to the output device (step S13), and the process ends.

【0040】次に、本発明の第2の実施の形態による描
画処理装置を図14乃至図36を用いて説明する。図1
4に本発明の第2の実施の形態による描画処理装置の主
要部のブロック構成を示す。まず、ベクターデータ入力
部10で、描画すべき図形のベクター表現形式のデータ
と透過率及び描画属性値を受け取る。
Next, a drawing processing apparatus according to a second embodiment of the present invention will be described with reference to FIGS. FIG.
FIG. 4 shows a block configuration of a main part of a drawing processing apparatus according to a second embodiment of the present invention. First, the vector data input unit 10 receives data in a vector expression format of a figure to be drawn, transmittance, and a drawing attribute value.

【0041】ここでベクター表現形式のデータ(ベクタ
ーデータ)とは、図15に示すように、描画すべき図形
のアウトラインを向きを有する直線で表現したものであ
る。図15に示すベクターデータにおいて「ID」は描
画順序を表している。「X」は現在のスキャンラインを
横切るベクターのX切片の値を示す。「X変位」は次の
スキャンラインに処理が移動した場合のX切片の変化量
を示している。「Y変位」は当該ベクターに影響を受け
る残りのスキャンライン数を示している。「向き」は当
該ベクターの向きを示す。
Here, the data in the vector expression format (vector data) is, as shown in FIG. 15, an outline of a figure to be drawn expressed by a straight line having a direction. In the vector data shown in FIG. 15, “ID” indicates a drawing order. “X” indicates the value of the X intercept of the vector that crosses the current scan line. “X displacement” indicates the amount of change in the X intercept when the process moves to the next scan line. “Y displacement” indicates the number of remaining scan lines affected by the vector. "Direction" indicates the direction of the vector.

【0042】このようなベクター表現形式のデータの場
合、アウトラインの内部を判定するための規則が必要で
ある。内部/外部判定に用いる判定規則を図16に示
す。判定規則にはワインディング規則(NZ)と奇偶規
則(EO)との2種類がある。これらはいずれも複数の
外形(パス)で形成された一つの図形の内部を判定する
際に用いられる規則である。ワインディング規則及び奇
偶規則による内部判定方法を図17を用いて説明する。
図17(a)に示すワインディング規則は、図形22を
構成する外形がスキャンライン(走査線)20と交差す
る際の向きを考慮したものである。図17(a)では外
形がスキャンライン20を上向きに交差する場合を正、
下向きに交差する場合を負としている。走査方向に向か
って正の交差であれば1を加算し、負の交差であれば1
を減算することにし、合計値が0でなくなった点から0
に戻った点までが内部であると判定する。図17(b)
に示す奇偶規則は、スキャンライン20と交差するパス
の個数をカウントして、奇数の点から偶数の点までを内
部と判定することにしている。
In the case of such data in the vector expression format, a rule for determining the inside of the outline is required. FIG. 16 shows a determination rule used for the internal / external determination. There are two types of determination rules: a winding rule (NZ) and an odd-even rule (EO). These are all rules used when determining the inside of one figure formed by a plurality of outlines (paths). An internal determination method based on the winding rule and the odd / even rule will be described with reference to FIG.
The winding rule shown in FIG. 17A takes into account the direction in which the outline forming the figure 22 intersects the scan line (scan line) 20. In FIG. 17A, the case where the outer shape crosses the scan line 20 upward is positive,
The case of crossing downward is considered negative. If the intersection is positive in the scanning direction, 1 is added; if the intersection is negative, 1 is added.
Is subtracted from the point at which the total value is no longer 0.
It is determined that the point up to the point returned to is inside. FIG. 17 (b)
The odd / even rule shown in (1) counts the number of passes that intersect the scan line 20, and determines from the odd point to the even point to be internal.

【0043】図15に示すベクターデータを図18、図
19を用いてより具体的に説明する。図18において、
座標系は図面左上方を原点とし、従って図面の水平右方
向にX座標値は増加し、図面の垂直下方向にY座標値は
増加するものとする。
The vector data shown in FIG. 15 will be described more specifically with reference to FIGS. In FIG.
In the coordinate system, the origin is at the upper left of the drawing, so that the X coordinate value increases in the horizontal right direction of the drawing and the Y coordinate value increases in the vertical lower direction of the drawing.

【0044】図18に示すように一定の色で塗られる三
角形の場合を考える。この三角形を構成するベクターは
ベクター24、26、28である。ベクター24は始点
の座標が(X1,Y1)、スキャンラインY1でのX切
片の値を示す「X」はX1、次のスキャンラインに移動
した場合のX切片の変化量「X変位」は−1、残りのス
キャンライン数「Y変位」は7、となる。ベクターの
「向き」は座標系のY方向が増加する向きを1と定義
し、座標系のY方向が減少する向きを−1と定義する。
従って、ベクター24の「向き」は1である。この「向
き」はワインディング規則で内部/外部判定を行う際
に、どの向きでスキャンラインを横切るかを示す情報と
して用いられる。同様にしてベクター26は、スキャン
ラインY1でのX切片の値を示す「X」はX2、次のス
キャンラインに移動した場合のX切片の変化量「X変
位」は0、残りのスキャンライン数「Y変位」は7、
「向き」は−1を示している。
Consider the case of a triangle painted with a certain color as shown in FIG. The vectors that make up this triangle are vectors 24, 26, 28. In the vector 24, the coordinates of the starting point are (X1, Y1), "X" indicating the value of the X intercept at the scan line Y1 is X1, and the change amount "X displacement" of the X intercept when moving to the next scan line is-. 1, the number of remaining scan lines “Y displacement” is 7. The "direction" of the vector defines the direction in which the Y direction of the coordinate system increases as 1, and defines the direction in which the Y direction of the coordinate system decreases as -1.
Therefore, the “direction” of the vector 24 is 1. The “direction” is used as information indicating the direction in which the scan line is traversed when performing the internal / external determination according to the winding rule. Similarly, in the vector 26, “X” indicating the value of the X intercept at the scan line Y1 is X2, the change amount of the X intercept when moving to the next scan line “X displacement” is 0, and the number of remaining scan lines "Y displacement" is 7,
"Direction" indicates -1.

【0045】図18のベクター24、26は図19のよ
うに表現される。ベクターは、ベクターの「向き」を考
慮して必ず下向きに補正された状態でベクターの開始点
のY座標に結び付けられるので、ベクター26はスキャ
ンラインY1に結び付けられている。なお、スキャンラ
インと平行なベクター28は考慮する必要がないので除
外している。また、各ベクターの先頭のIDは図形毎の
描画順序を示すので、IDの値の小さい方が先に描画さ
れたものである。
The vectors 24 and 26 in FIG. 18 are represented as shown in FIG. Since the vector is linked to the Y coordinate of the starting point of the vector in a state where the vector is always corrected downward in consideration of the "direction" of the vector, the vector 26 is linked to the scan line Y1. The vector 28 parallel to the scan line is excluded because it is not necessary to consider it. Further, since the ID at the head of each vector indicates the drawing order for each figure, the one with the smaller ID value is drawn first.

【0046】このIDに基づいて色値などの描画属性値
が管理される。図20乃至図22にIDで管理された色
テーブル(図20)、透過率テーブル(図21)、内部
判定規則テーブル(図22)の例を示す。これらのテー
ブルはそれぞれIDに基づいて参照することができる。
さらに図23に示すように、図形の内部/外部を判定す
るためのワーク領域としての内部判定テーブルもIDか
ら参照できるように領域が確保される。
Drawing attribute values such as color values are managed based on the ID. 20 to 22 show examples of a color table (FIG. 20), a transmittance table (FIG. 21), and an internal determination rule table (FIG. 22) managed by ID. Each of these tables can be referred to based on the ID.
Further, as shown in FIG. 23, an area is secured so that the internal judgment table as a work area for judging the inside / outside of the figure can be referred to from the ID.

【0047】図14のベクターデータ記憶部12と透過
合成処理部14内で、ベクターデータによる透過合成処
理が行われる。この透過合成処理については後程詳細に
説明する。画像出力部16は、透過合成処理の終了した
領域から画像のビデオ信号を出力装置に対応したフォー
マットで出力するようになっている。
In the vector data storage unit 12 and the transmission synthesis processing unit 14 shown in FIG. 14, a transmission synthesis process using vector data is performed. This transmission synthesis processing will be described later in detail. The image output unit 16 outputs a video signal of an image in a format corresponding to the output device from the area where the transmission synthesis processing is completed.

【0048】次に図24に示すフローチャートを用い
て、本発明の第2の実施の形態による描画処理装置で行
われる透過合成処理の概略の流れを説明する。まずステ
ップS20で、ベクターデータ記憶部12内の対象とな
るスキャンラインの位置に描画する図形のベクターを登
録する。このとき図20乃至図22で示した色値等の属
性値はベクターのIDに基づいて登録され、図23で示
した内部判定用のワーク領域も確保される。ステップS
20は、全ての描画要秦(プリミティブ)の読み込みが
終了するまで続けられる(ステップS21)。
Next, with reference to the flowchart shown in FIG. 24, a schematic flow of the transmission synthesis processing performed by the drawing processing apparatus according to the second embodiment of the present invention will be described. First, in step S20, a vector of a figure to be drawn at the position of a target scan line in the vector data storage unit 12 is registered. At this time, the attribute values such as the color values shown in FIGS. 20 to 22 are registered based on the ID of the vector, and the work area for internal determination shown in FIG. 23 is also secured. Step S
Step 20 is continued until reading of all the drawing elements (primitives) is completed (step S21).

【0049】次のステップ22以降の処理の説明は、図
25に示す図形を実例に用いて説明する。図25はスキ
ャンラインとベクターとの関係を示している。図中縦方
向には複数のスキャンラインが並列しており、各ベクタ
ーに関係するスキャンラインに上方からY0〜Y9の番
号が付されている。ID=ID1である三角形は図形内
部が透過率0%の赤色で塗られている。
The processing after the next step 22 will be described by using the graphic shown in FIG. 25 as an example. FIG. 25 shows the relationship between scan lines and vectors. In the figure, a plurality of scan lines are arranged in parallel in the vertical direction, and numbers Y0 to Y9 are assigned to the scan lines related to each vector from above. In the triangle with ID = ID1, the inside of the figure is painted in red with a transmittance of 0%.

【0050】この三角形はベクター30とベクター32
により描画される。ベクター30の始点は、図示のよう
にスキャンラインY0のX座標値=X1であり、ベクタ
ー32の終点はスキャンラインY0のX座標値=X2で
ある。既に説明したように、ベクターはベクターの「向
き」を考慮して必ず下向きに補正された状態でベクター
の開始点のY座標に結び付けられる。従って、図26に
示すように、ベクター32はスキャンラインY0に結び
付けられる。結果として、スキャンラインY0にID1
の三角形を描画するベクター30、32が結び付けられ
ている。ベクター30のX切片はX1であり、X変位は
−1、Y変位は7、向きは1である。ベクター32のX
切片はX2であり、X変位は0、Y変位は7、向きは−
1である。
The triangles are the vectors 30 and 32
Is drawn by As shown, the start point of the vector 30 is the X coordinate value of the scan line Y0 = X1, and the end point of the vector 32 is the X coordinate value of the scan line Y0 = X2. As described above, the vector is linked to the Y coordinate of the starting point of the vector in a state where the vector is always corrected downward in consideration of the “direction” of the vector. Therefore, as shown in FIG. 26, the vector 32 is linked to the scan line Y0. As a result, ID1 is added to scan line Y0.
Vectors 30 and 32 that draw triangles are connected. The X intercept of the vector 30 is X1, the X displacement is -1, the Y displacement is 7, and the direction is 1. Vector 32 X
The intercept is X2, X displacement is 0, Y displacement is 7, direction is-
It is one.

【0051】図25のID2の長方形は図形内部が透過
率50%の青色で塗られている。この長方形はベクター
34とベクター36により描画される。ベクター36の
始点は、図示のようにスキャンラインY4のX座標値=
X4であり、ベクター34の終点はスキャンラインY4
のX座標値=X3である。従って、図26に示すよう
に、スキャンラインY4にID2の長方形を描画するベ
クター34、36が結び付けられている。ベクター34
のX切片はX3であり、X変位は0、Y変位は6、向き
は−1である。ベクター36のX切片はX4であり、X
変位は0、Y変位は6、向きは1である。また、ID1
<ID2なので下地図形が三角形であり、追加図形が長
方形である。
In the rectangle of ID2 in FIG. 25, the inside of the figure is painted blue with a transmittance of 50%. This rectangle is drawn by the vector 34 and the vector 36. The starting point of the vector 36 is, as shown, the X coordinate value of the scan line Y4 =
X4, and the end point of the vector 34 is the scan line Y4.
X coordinate value = X3. Therefore, as shown in FIG. 26, vectors 34 and 36 for drawing a rectangle of ID2 are connected to the scan line Y4. Vector 34
Is X3, X displacement is 0, Y displacement is 6, and direction is -1. The X section of vector 36 is X4, X
The displacement is 0, the Y displacement is 6, and the direction is 1. ID1
Since <ID2, the base figure is a triangle and the additional figure is a rectangle.

【0052】図25の図形の読み込みが終了した後で
は、図26に示すように色値、透過率、判定規則の各属
性値のテーブルがベクターのIDに基づいて登録され、
内部判定用のテーブルのワーク領域にもIDに基づいて
値が確保される。このような具体例に基づいて、図24
に戻って透過合成処理の流れのステップS22から説明
する。ステップS22では、ベクターデータ記憶部12
に登録されているベクターデータのうち、処理するスキ
ャンラインにかかるベクターを取り出し、アクティブテ
ーブルに登録する。
After the reading of the graphic in FIG. 25 is completed, a table of each attribute value of the color value, the transmittance, and the determination rule is registered based on the vector ID as shown in FIG.
A value is secured in the work area of the internal determination table based on the ID. Based on such a specific example, FIG.
Referring back to step S22 in the flow of the transmission combining process, the description will be continued. In step S22, the vector data storage unit 12
Out of the vector data registered in the active table, and registers the vector in the active table.

【0053】次にステップS23では、アクティブテー
ブルに登録されたベクターをソートする。これは、スキ
ャンライン間でベクターが交差するような場合には、当
該スキャンラインでのベクターの状態が前スキャンライ
ンでのベクターの状態とは異なるものとなるので、改め
て当該スキャンラインでの全ベクターのソートを行って
当該スキャンラインにかかるベクターを所定の順序で並
べ替えるために行われる。本例では、X座標値の小さい
順にソートするものとしている。従って、例えば図25
のスキャンラインY5でのソート結果は図27に示すよ
うにベクター34、ベクター30、ベクター32、ベク
ター36の順に並べられ、スキャンラインY6でのソー
ト結果は図28に示すようにベクター30、ベクター3
4、ベクター32、ベクター36の順に並べ替えられ
る。
Next, in step S23, the vectors registered in the active table are sorted. This is because if the vectors intersect between scan lines, the vector state on the scan line will be different from the vector state on the previous scan line, Is performed to sort the vectors on the scan line in a predetermined order. In this example, sorting is performed in ascending order of the X coordinate value. Therefore, for example, FIG.
Are sorted in the order of vector 34, vector 30, vector 32, and vector 36 as shown in FIG. 27, and the sorted result in scan line Y6 is vector 30, vector 3 as shown in FIG.
4, the vector 32, and the vector 36 are rearranged in this order.

【0054】次のステップS24では、ソートされたア
クティブテーブルからベクターを順次取り出して以下の
処理を行う。 第1の処理: 図形の内部判定処理 第2の処理: 内部判定された図形の登録と色の出力 第3の処理: 外部判定された図形の削除と色の出力 以上の処理は、アクティブテーブルからベクターがなく
なるまで続けられる。
In the next step S24, vectors are sequentially extracted from the sorted active tables and the following processing is performed. First processing: Internal determination processing of a figure Second processing: Registration of internally determined graphic and output of color Third processing: Deletion of externally determined graphic and output of color Continue until the vector is exhausted.

【0055】第1の処理である図形の内部判定処理は、
図29に示すフローチャートに従って、図形が内部状態
にあるかどうかを判定する。図29において、ベクター
のIDから、このベクターで構成される図形の内部判断
規則を取得する(ステップS30)。判定規則の種類が
NZ(ワインディング規則)であればステップS32へ
移行し、EO(奇偶規則)であればステップS37へ移
行する(ステップS31)。
The first process, that is, the internal judgment process of a figure, is as follows.
According to the flowchart shown in FIG. 29, it is determined whether the graphic is in the internal state. In FIG. 29, from the ID of the vector, the internal judgment rule of the graphic constituted by the vector is obtained (step S30). If the type of the determination rule is NZ (winding rule), the process proceeds to step S32, and if it is EO (odd / even rule), the process proceeds to step S37 (step S31).

【0056】判定規則がNZであれば、ベクターのID
から内部判定テーブル(図23)の値を取得し(ステッ
プS32)、当該値が0であるかどうかを判断する(ス
テップS33)。値が0であれば当該ベクターで構成さ
れる図形は必ず内部になる。従って、図23の内部判定
テーブルの当該ベクターのIDの位置にある値にベクタ
ーの向きを加えてから(ステップS34)、図31に示
す処理に移行する。取り出した値が0でない場合には、
図23の内部判定テーブルの当該ベクターのIDの位置
にある値にベクターの向きを加え(ステップS35)、
加えた結果が0であるかどうかを判断する(ステップS
36)。加えた結果が0であれば、図33に示す処理に
移行し、加えた結果が0以外の場合は、引き続き内部状
態が継続するので最初に戻る。
If the judgment rule is NZ, the vector ID
, The value of the internal determination table (FIG. 23) is obtained (step S32), and it is determined whether the value is 0 (step S33). If the value is 0, the figure constituted by the vector is always inside. Therefore, after the direction of the vector is added to the value at the position of the ID of the vector in the internal determination table of FIG. 23 (step S34), the processing shifts to the processing shown in FIG. If the extracted value is not 0,
The direction of the vector is added to the value at the position of the ID of the vector in the internal determination table in FIG. 23 (step S35),
It is determined whether the added result is 0 (step S
36). If the added result is 0, the processing shifts to the processing shown in FIG. 33. If the added result is other than 0, the internal state continues and the processing returns to the beginning.

【0057】ステップS31で判定規則がEOであると
判断されると、当該ベクターのIDから内部判定テーブ
ル(図23)の値を取得し、当該値を1だけ増加させて
から2の剰余を求める(ステップS37)。2の剰余の
値が1であれば判定結果は奇数となり(ステップS3
8)、図形の内部となるので図31に示した処理に移行
する。2の剰余が0であれば判定結果は偶数となり、図
形の外部になるので図33の処理に移行する。このよう
にして、第1の処理での内部判断処理が行われる。
If it is determined in step S31 that the determination rule is EO, the value of the internal determination table (FIG. 23) is obtained from the ID of the vector, the value is increased by 1, and the remainder of 2 is obtained. (Step S37). If the value of the remainder of 2 is 1, the determination result is an odd number (step S3).
8) Since it is inside the figure, the processing shifts to the processing shown in FIG. If the remainder of 2 is 0, the result of the determination is an even number, which is outside the figure. In this way, the internal judgment processing in the first processing is performed.

【0058】次に第2の処理である、内部判定された図
形の登録と色の出力の処理について、図30及び図31
を用いて説明する。図30は描画状態表を示す図であ
る。描画状態表は、現在処理対象としているスキャンラ
インのどこまでの描画が完了したかを保持する機能と、
現在内部状態にある描画図形を保持する機能とを有して
いる。図30に示すように描画状態表は「描画開始位
置」、「内部状態」、及び「色値」から構成される。
「描画開始位置」は、現在処理対象のスキャンラインに
おける次に塗りつぶしを開始させるX座標値が保持され
る。従って、描画開始位置より小さいX座標値の領域は
既に塗りが画定した領域である。「内部状態」は、内部
状態になった図形を登録する領域である。「色値」は、
内部状態にある図形に対して、透過合成の色値の計算を
IDの小さい方から順番に行った結果である。「内部状
態」と「色値」の情報は、図形のIDの大きい順に登録
される。
Next, the second processing of registering a figure determined internally and outputting the color will be described with reference to FIGS.
This will be described with reference to FIG. FIG. 30 shows a drawing state table. The drawing state table has a function to hold the drawing completion of the scan line currently being processed,
It has a function of holding the drawing figure currently in the internal state. As shown in FIG. 30, the drawing state table includes “drawing start position”, “internal state”, and “color value”.
The “drawing start position” holds the X coordinate value at which the next painting in the scan line to be currently processed is started. Therefore, the area of the X coordinate value smaller than the drawing start position is the area where the paint is already defined. The “internal state” is an area for registering a figure in an internal state. "Color value"
This is the result of calculating the color values of the transparent composition in order from the smallest ID for the figure in the internal state. The information of the “internal state” and the “color value” are registered in descending order of the graphic ID.

【0059】図31は、図29のステップS34又はス
テップS38で図形が内部状態となった場合における次
の処理を示すフローチャートである。まず、描画状態表
の「内部状態」が空であるかどうかを調べる(ステップ
S40)。描画状態表の「内部状態」が空であれば当該
ベクターから内部状態が開始するのでステップS46に
移行し、描画状態表の「描画開始位置」に当該ベクター
のX座標値を設定する。
FIG. 31 is a flow chart showing the next process when the graphic is in the internal state in step S34 or S38 in FIG. First, it is determined whether the “internal state” in the drawing state table is empty (step S40). If the “internal state” in the drawing state table is empty, the internal state starts from the vector, and the flow shifts to step S46 to set the X coordinate value of the vector in the “drawing start position” in the drawing state table.

【0060】描画状態表の「内部状態」が空でなけれ
ば、描画状態表のすでに内部と判定されたベクターのX
座標値(αとする)が「描画開始位置」にあるはずであ
るから、αから当該ベクターのX座標値−1までを「内
部状態」の先頭の色で塗る(ステップS41)。次に、
当該ベクターより小さいIDのベクターが描画状態表に
登録されているかどうかを調べる(ステップS42)。
当該ベクターより小さいIDのベクターが登録されてい
る場合には、当該ベクターの色値を当該ベクターの直下
にあるベクターの色値を用いて透過合成の色値の計算を
行う(ステップS43)。
If the “internal state” of the drawing state table is not empty, the X of the vector already determined to be internal in the drawing state table
Since the coordinate value (α) should be at the “rendering start position”, the area from α to the X coordinate value −1 of the vector is painted with the head color of the “internal state” (step S41). next,
It is checked whether a vector having an ID smaller than the vector is registered in the drawing state table (step S42).
When a vector having an ID smaller than the vector is registered, the color value of the vector is calculated using the color value of the vector immediately below the vector (step S43).

【0061】次に、当該ベクターのIDより大きいID
を持つベクターが、描画状態表の内部状態に登録されて
いるかどうかを調べる(ステップS44)。当該ベクタ
ーより大きいIDを持つベクターがあれば、IDが大き
い全てのベクターに対してIDの小さい順に透過合成の
色値の計算を行う(ステップS45)。次に、「描画開
始位置」を当該ベクターのX座標値に設定し(ステップ
S46)、描画状態表の「内部状態」にIDを上から大
きい順に並ぶように登録する(ステップS47)。以上
の処理で内部状態における透過合成処理を終了する。
Next, an ID larger than the ID of the vector
It is checked whether or not the vector having is registered in the internal state of the drawing state table (step S44). If there is a vector having an ID larger than the vector, the color values of the transmission synthesis are calculated for all the vectors having the larger IDs in ascending order of the ID (step S45). Next, the "drawing start position" is set to the X coordinate value of the vector (step S46), and IDs are registered in the "internal state" of the drawing state table so as to be arranged in descending order from the top (step S47). With the above processing, the transmission synthesis processing in the internal state ends.

【0062】図32を用いて上述の透過合成処理におけ
る描画状態表の変化を説明する。図32は図25のスキ
ャンラインY6のX3における描画状態表の変化を示し
ている。X座標値がX3においてID2の図形が内部状
態になる。すでに内部状態にある最大のIDはID1な
ので、スキャンラインY6でのベクター30のX座標値
X1−6からX3−1までが赤で塗られる。ID2の図
形を登録した後、描画開始位置をX3に変更し、ID2
の部分について色の再計算を行う。lD2の直下にある
のはlD1の赤であるから、ID2に対応する色は紫
(赤50%、青50%)となる。
A change in the drawing state table in the above-described transmission synthesis processing will be described with reference to FIG. FIG. 32 shows a change in the drawing state table at X3 of the scan line Y6 in FIG. When the X coordinate value is X3, the figure of ID2 is in the internal state. Since the maximum ID already in the internal state is ID1, the X coordinate values X1-6 to X3-1 of the vector 30 on the scan line Y6 are painted in red. After registering the figure of ID2, the drawing start position is changed to X3,
The color is recalculated for the part. Immediately below ID2 is red of ID1, so the color corresponding to ID2 is purple (red 50%, blue 50%).

【0063】次に第3の処理である外部判定された図形
の削除と色の出力の処理について図33を用いて説明す
る。図33は、図29のステップS36又はステップS
38で図形が外部状態となった場合における次の処理を
示すフローチャートである。まず、描画状態表の「描画
開始位置」から当該ベクターのX座標値−1まで、描画
状態表の「色値」の先頭の色で塗る(ステップS5
0)。次に、「描画開始位置」を当該ベクターのX座標
値に設定する(ステップS51)。次に、当該ベクター
を描画状態表から削除する(ステップS52)。そし
て、当該ベクターのIDより大きいIDを持つベクター
が描画状態表の「内部状態」に登録されているかどうか
を調べる(ステップS53)。当該ベクターより大きい
IDを持つベクターがあれば、IDが大きい全てのベク
ターに対してIDの小さい順に(内部状態の下方か
ら)、透過合成の色値の計算を行う(ステップS5
4)。この計算の際、図26に示した色テーブルと透過
率テーブルに格納されている元の色値と透過率を用いて
再計算を行う。
Next, the third processing of deleting a figure determined to be external and outputting a color will be described with reference to FIG. FIG. 33 is a flowchart showing step S36 or step S36 in FIG.
38 is a flowchart showing the next process when the graphic is in the external state at 38. First, from the “drawing start position” in the drawing state table to the X coordinate value −1 of the vector, painting is performed with the first color of the “color value” in the drawing state table (step S5).
0). Next, the “drawing start position” is set to the X coordinate value of the vector (step S51). Next, the vector is deleted from the drawing state table (step S52). Then, it is determined whether or not a vector having an ID larger than the ID of the vector is registered in the “internal state” of the drawing state table (step S53). If there is a vector having an ID larger than the vector, the color value of the transmission synthesis is calculated for all the vectors having the larger IDs in ascending order of the ID (from below the internal state) (step S5).
4). In this calculation, recalculation is performed using the original color values and the transmittance stored in the color table and the transmittance table shown in FIG.

【0064】図24に戻り、ステップS24の次の処理
として、ステップS24で計算された色値と領域の長さ
に基づいて、1スキャンラインの出力を行う(ステップ
S25)。出力方法は例えば第1の実施の形態で説明し
た区間データの形式を用いて1スキャンライン分のデー
タを蓄積して出力するようにしてもよい。例として図2
5に示した図形の区間データを図34に示す。図34の
区間データからスキャンライン毎の区間データを取り出
して、図13で説明した出力処理を行えば1スキャンラ
イン分の出力が行え、また、複数分蓄積してから出力装
置との同期をとりながら図13の処理を行えば複数ライ
ン分の出力を行うこともできる。
Returning to FIG. 24, as a process subsequent to step S24, one scan line is output based on the color value calculated in step S24 and the length of the area (step S25). As an output method, for example, data of one scan line may be accumulated and output using the section data format described in the first embodiment. Figure 2 as an example
FIG. 34 shows section data of the figure shown in FIG. If the section data for each scan line is extracted from the section data in FIG. 34 and the output processing described in FIG. 13 is performed, output for one scan line can be performed. However, if the processing in FIG. 13 is performed, output for a plurality of lines can be performed.

【0065】ステップS25での出力作業が終了する
と、アクティブテーブルを更新する(ステップS2
6)。アクティブテーブルに登録されている全てのベク
ターに対して、X=X+X変位、Y変位=Y変位−1の
演算を行い、Y変位が0になったベクターをアクティブ
テーブルから取り除く。これにより、次のスキャンライ
ンにおいてアクティブであるベクターだけを残すことが
できる。このステップS26のアクティブテーブルの更
新処理を行うと、例えば、図28に示したY6のスキャ
ンラインの処理が終了すると図35に示すようにY7の
スキャンラインの状態が整うようになる。図示の通り、
Y6にかかるベクターのうちベクター30とベクター3
2のY変位が1であるのでY7のスキャンラインではこ
れらベクター30、32は削除される。
When the output operation in step S25 is completed, the active table is updated (step S2).
6). An operation of X = X + X displacement and Y displacement = Y displacement−1 is performed for all the vectors registered in the active table, and the vector whose Y displacement becomes 0 is removed from the active table. As a result, only the vector that is active in the next scan line can be left. When the processing of updating the active table in step S26 is performed, for example, when the processing of the Y6 scan line shown in FIG. 28 is completed, the state of the Y7 scan line is set as shown in FIG. As shown,
Of the vectors related to Y6, vector 30 and vector 3
Since the Y displacement of 2 is 1, these vectors 30 and 32 are deleted in the scan line of Y7.

【0066】以上のステップS22からステップ26ま
での処理は、全てのスキャンラインに対して行われる
(ステップS27)。
The processing from step S22 to step S26 is performed for all scan lines (step S27).

【0067】以上の第1乃至第3の処理を図36を用い
て具体的に説明する。図36は図25のスキャンライン
Y6における描画状態表の変化を示す。まず始めに、I
D1の図形のベクター30が取得される。ベクター30
による内部判断処理によりID1の図形は内部と判断さ
れ、且つ現在「内部状態」には登録図形がないので、
「描画開始位置」には、ベクター30のスキャンライン
Y6でのX座標値X1−6がセットされる。また、「内
部状態」にID1がセットされ、色値として赤(R:1
00%)がセットされる。
The above-described first to third processes will be specifically described with reference to FIG. FIG. 36 shows a change in the drawing state table at the scan line Y6 in FIG. First, I
The vector 30 of the graphic of D1 is obtained. Vector 30
Since the figure of ID1 is determined to be internal by the internal determination processing by
In the “drawing start position”, an X coordinate value X1-6 on the scan line Y6 of the vector 30 is set. Also, ID1 is set in the “internal state”, and red (R: 1
00%) is set.

【0068】次に、ID2の図形のベクター34が取得
される。このときID2の図形は内部と判断される。
「内部状態」にはID1の図形が登録されているので、
スキャンラインY6のX1−6からX3−1まで赤
(R:100%)で塗られる。そして、ID2>ID1
なので、ID2の図形の色値は透過率をもとに、青
(B:50%)赤(R:50%)と計算される。ID2
より大きい図形は登録されていないので、「描画開始位
置」をベクター34のX座標値X3にセットし、「内部
状態」の先頭にID2の図形が登録される。
Next, the vector 34 of the figure of ID2 is obtained. At this time, the figure of ID2 is determined to be inside.
Since the figure of ID1 is registered in the "internal state",
The scan line Y6 from X1-6 to X3-1 is painted in red (R: 100%). And ID2> ID1
Therefore, the color value of the figure of ID2 is calculated as blue (B: 50%) and red (R: 50%) based on the transmittance. ID2
Since a larger figure is not registered, the "drawing start position" is set to the X coordinate value X3 of the vector 34, and the figure of ID2 is registered at the head of the "internal state".

【0069】次に、ID1のベクター32が取得され
る。このとき、ID1の図形は外部と判断されるので、
スキャンラインY6のX3からX2−1までを「内部状
態」の先頭の色である青(B:50%)赤(R:50
%)で塗る。そして、「描画開始位置」にはベクター3
2のX座標値X2がセットされ、ID1の図形は「内部
状態」から削除される。また、ID2>ID1であるの
で、ID2の図形の色値を再計算して青(B:50%)
がセットされる。ID1より大きいIDを持つ図形はI
D2だけなので、次の処理へ移る。次に、ID2のベク
ター36が取得される。このときID2の図形は外部と
判断されるので、スキャンラインY6のX2からX4−
1までが「内部状態」の先頭の色である青(B:50
%)で塗られる。ID2より大きい図形はないので、次
の処理に移る。
Next, the vector 32 of ID1 is obtained. At this time, since the figure of ID1 is determined to be external,
X3 to X2-1 of the scan line Y6 are blue (B: 50%) and red (R: 50) which are the head colors of the “internal state”.
%). And, in the "drawing start position", the vector 3
The X coordinate value X2 of 2 is set, and the graphic of ID1 is deleted from the “internal state”. Also, since ID2> ID1, the color value of the figure of ID2 is recalculated and blue (B: 50%)
Is set. Figures with IDs greater than ID1 are I
Since it is only D2, the process proceeds to the next process. Next, the vector 36 of ID2 is obtained. At this time, since the figure of ID2 is determined to be external, the scan line Y6 from X2 to X4-
Up to 1 is the first color of the “internal state” blue (B: 50
%). Since there is no figure larger than ID2, the process proceeds to the next processing.

【0070】以上のようにしてスキャンラインY6での
透過合成処理が終了し、図34でのスキャンラインY6
に示す結果を得ることができる。このように本実施の形
態によれば、従来ラスターデータ上で行っていた透過合
成処理を塗りつぶし処理時に行うことができるようにな
るので、透過合成処理に必要なメモリ量を削減し、且つ
高速に透過合成処理を行うことができるようになる。
As described above, the transmission synthesizing process on the scan line Y6 is completed, and the scan line Y6 in FIG.
Can be obtained. As described above, according to the present embodiment, the transparent synthesis processing that has been conventionally performed on the raster data can be performed at the time of the filling processing, so that the amount of memory required for the transparent synthesis processing can be reduced and the transmission synthesis processing can be performed at high speed. It becomes possible to perform transmission synthesis processing.

【0071】本発明は、上記実施の形態に限らず種々の
変形が可能である。例えば、上記実施の形態における描
画処理装置において、透過率αが0%、或いは100%
の場合には上記実施の形態で説明した透過合成処理を省
略させるようにしてもよい。
The present invention is not limited to the above embodiment, but can be variously modified. For example, in the drawing processing apparatus according to the above embodiment, the transmittance α is 0% or 100%.
In this case, the transmission synthesis processing described in the above embodiment may be omitted.

【0072】また、上記第1の実施の形態において、区
間データを始点と長さ(幅)で表現したが、始点と終点
で表現してもよい。さらに、透過率の定義を下地図形の
透過率をαとして、 結果図形の色値 = 追加図形の色値×(1−α)+下
地図形の色値×α のように変えてもよい。
In the first embodiment, the section data is represented by the start point and the length (width). However, the section data may be represented by the start point and the end point. Further, the definition of the transmittance may be changed as follows, where the transmittance of the underlying graphic is α, and the color value of the resultant graphic = the color value of the additional graphic × (1−α) + the color value of the underlying graphic × α.

【0073】[0073]

【発明の効果】以上の通り、本発明によれば、ランレン
グス型のデータ上、或いはベクターデータ上にて塗りつ
ぶし処理時に透過合成処理を行うことができるようにな
るので、透過合成処理に必要なメモリ量を削減し、且つ
高速に透過合成処理を行うことができるようになる。
As described above, according to the present invention, it is possible to perform the transparent synthesis processing at the time of the paint processing on the run-length type data or the vector data. This makes it possible to reduce the amount of memory and perform high-speed transparent synthesis processing.

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

【図1】本発明の第1の実施の形態による描画処理装置
の主要部を示すブロック図である。
FIG. 1 is a block diagram illustrating a main part of a drawing processing apparatus according to a first embodiment of the present invention.

【図2】透過合成処理における色値の計算式を示す図で
ある。
FIG. 2 is a diagram illustrating a formula for calculating a color value in a transmission synthesis process.

【図3】第1の実施の形態における区間データの説明図
である。
FIG. 3 is an explanatory diagram of section data according to the first embodiment.

【図4】区間データを具体的に説明する図である。FIG. 4 is a diagram specifically illustrating section data.

【図5】区間データを具体的に説明する図である。FIG. 5 is a diagram specifically illustrating section data.

【図6】区間データを他の例により説明する図である。FIG. 6 is a diagram illustrating section data using another example.

【図7】区間データを他の例により説明する図である。FIG. 7 is a diagram illustrating section data using another example.

【図8】本発明の第1の実施の形態における透過合成処
理の概略のフローチャートを示す図である。
FIG. 8 is a diagram illustrating a schematic flowchart of a transmission synthesis process according to the first embodiment of the present invention.

【図9】本発明の第1の実施の形態による描画処理装置
の区間データ記憶部の初期状態の例を示す図である。
FIG. 9 is a diagram illustrating an example of an initial state of a section data storage unit of the drawing processing apparatus according to the first embodiment of the present invention.

【図10】追加図形と下地図形の関係の分類を示す図で
ある。
FIG. 10 is a diagram illustrating a classification of a relationship between an additional graphic and a base graphic.

【図11】本発明の第1の実施の形態における透過合成
処理の具体例を示す図である。
FIG. 11 is a diagram illustrating a specific example of a transmission synthesis process according to the first embodiment of the present invention.

【図12】本発明の第1の実施の形態における透過合成
処理の具体例を示す図である。
FIG. 12 is a diagram illustrating a specific example of a transmission synthesis process according to the first embodiment of the present invention.

【図13】本発明の第1の実施の形態による描画処理装
置の出力処理部における処理のフローチャートを示す図
である。
FIG. 13 is a diagram illustrating a flowchart of processing in an output processing unit of the drawing processing apparatus according to the first embodiment of the present invention.

【図14】本発明の第2の実施の形態による描画処理装
置の主要部を示すブロック図である。
FIG. 14 is a block diagram illustrating a main part of a drawing processing apparatus according to a second embodiment of the present invention.

【図15】本発明の第2の実施の形態におけるベクター
表現形式のデータを示す図である。
FIG. 15 is a diagram showing data in a vector expression format according to the second embodiment of the present invention.

【図16】内部判定規則の種類を示す図である。FIG. 16 is a diagram showing types of internal determination rules.

【図17】内部判定の規則を説明する図である。FIG. 17 is a diagram illustrating rules for internal determination.

【図18】ベクターの向きとスキャンラインの関係を示
す図である。
FIG. 18 is a diagram showing a relationship between a vector direction and a scan line.

【図19】スキャンラインY1におけるベクターデータ
を示す図である。
FIG. 19 is a diagram showing vector data on a scan line Y1.

【図20】色テーブルの説明図である。FIG. 20 is an explanatory diagram of a color table.

【図21】透過率テーブルの説明図である。FIG. 21 is an explanatory diagram of a transmittance table.

【図22】内部判定規則テーブルの説明図である。FIG. 22 is an explanatory diagram of an internal determination rule table.

【図23】内部判定テーブルの説明図である。FIG. 23 is an explanatory diagram of an internal determination table.

【図24】本発明の第2の実施の形態にかかる透過合成
処理の概略のフローチャートを示す図である。
FIG. 24 is a diagram illustrating a schematic flowchart of a transmission synthesis process according to the second embodiment of the present invention;

【図25】本発明の第2の実施の形態における具体例の
説明図である。
FIG. 25 is an explanatory diagram of a specific example according to the second embodiment of the present invention.

【図26】図25に示す具体例における各属性値のテー
ブルの初期状態を示す図である。
26 is a diagram showing an initial state of a table of each attribute value in the specific example shown in FIG.

【図27】図25のスキャンラインY5におけるアクテ
ィブテーブルの状態図である。
FIG. 27 is a state diagram of an active table on a scan line Y5 in FIG. 25;

【図28】図25のスキャンラインY6におけるアクテ
ィブテーブルの状態図である。
FIG. 28 is a state diagram of an active table at a scan line Y6 in FIG. 25;

【図29】内部状態判定処理のフローチャートを示す図
である。
FIG. 29 is a diagram showing a flowchart of an internal state determination process.

【図30】描画状態表を説明する図である。FIG. 30 is a diagram illustrating a drawing state table.

【図31】図29で内部判定された場合のフローチャー
トを示す図である。
FIG. 31 is a view showing a flowchart in the case where an internal judgment is made in FIG. 29;

【図32】図25のスキャンラインY6のX座標値がX
3における状態の変化の説明図である。
FIG. 32 shows that the X coordinate value of scan line Y6 in FIG.
It is explanatory drawing of the change of the state in 3.

【図33】図29で外部判定された場合のフローチャー
トを示す図である。
FIG. 33 is a view showing a flowchart in the case where an external determination is made in FIG. 29;

【図34】図25の図形を区間データにより表現した図
である。
FIG. 34 is a diagram expressing the graphic of FIG. 25 by section data.

【図35】アクティブテーブルの状態の変化の説明図で
ある。
FIG. 35 is an explanatory diagram of a change in the state of the active table.

【図36】図25のスキャンラインY6における描画状
態表の変化を示す図である。
FIG. 36 is a diagram illustrating a change in a drawing state table on a scan line Y6 in FIG. 25;

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

2 区間データ入力部 4 透過合成処理部 6 区間データ記憶部 8 画像出力部 10 ベクターデータ入力部 12 ベクターデータ記憶部 14 透過合成処理部 16 画像出力部 20 スキャンライン 22 図形 24、26、28、ベクター 30、32、34、36 ベクター 2 Section data input section 4 Transmission synthesis processing section 6 Section data storage section 8 Image output section 10 Vector data input section 12 Vector data storage section 14 Transmission synthesis processing section 16 Image output section 20 Scan line 22 Figures 24, 26, 28, Vector 30, 32, 34, 36 Vector

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】下地図形に追加した追加図形を通して前記
下地図形の色を所定の透過率で透過させる透過合成機能
を有する描画処理装置であって、 前記下地図形及び前記追加図形の描画データをランレン
グス型データと所定の透過率データとで表現し、前記下
地図形と前記追加図形のランレングス型データを合成
し、前記透過率データに基づいて結果図形のランレング
ス型データ及び透過率データを生成する透過合成処理手
段と、 前記結果図形のランレングス型データ及び透過率データ
を記憶する記憶手段と、 前記結果図形のランレングス型データに基づいて前記結
果図形をラスター型データにして出力する出力手段とを
備えることを特徴とする描画処理装置。
1. A drawing processing apparatus having a transmission synthesizing function of transmitting a color of a base figure at a predetermined transmittance through an additional figure added to the base figure, wherein a drawing data of the base figure and the additional figure is run. Expressed by length-type data and predetermined transmittance data, synthesizes run-length data of the base figure and the additional figure, and generates run-length data and transmittance data of a result figure based on the transmittance data. Transmission synthesis processing means, storage means for storing the run-length data and transmittance data of the result graphic, and output means for converting the result graphic into raster-type data based on the run-length data of the result graphic A drawing processing device comprising:
【請求項2】請求項1記載の描画処理装置において、 前記透過合成処理手段の前記ランレングス型データのデ
ータ表現は、描画図形のスキャンライン上の始点、幅、
及び色値を含むことを特徴とする描画処理装置。
2. The drawing processing apparatus according to claim 1, wherein the data expression of the run-length type data of the transmission / synthesis processing means includes a starting point on a scan line of a drawing graphic, a width, and the like.
And a color processing device.
【請求項3】請求項2記載の描画処理装置において、 前記結果図形のランレングス型データの色値は、前記追
加図形の色値に前記追加図形の透過率αを乗じた値と前
記下地図形の色値に(1−α)を乗じた値とを加えた値
であることを特徴とする描画処理装置。
3. The drawing processing apparatus according to claim 2, wherein the color value of the run-length type data of the result graphic is a value obtained by multiplying the color value of the additional graphic by the transmittance α of the additional graphic. A value obtained by adding a value obtained by multiplying (1-α) to the color value of (1).
【請求項4】下地図形に追加した追加図形を通して前記
下地図形の色を所定の透過率で透過させる透過合成機能
を有する描画処理装置であって、 描画データがベクターデータと所定の透過率データとで
表現された前記下地図形及び前記追加図形を記憶する記
憶手段と、前記記憶手段から前記下地図形と前記追加図
形のベクターデータをスキャンライン毎に取り出して、
前記所定の透過率データに基づき透過合成データを生成
する透過合成処理手段と、 前記透過合成データに基づいてラスターデータを生成し
て出力する出力手段とを備えることを特徴とする描画処
理装置。
4. A drawing processing apparatus having a transmission synthesizing function for transmitting a color of a base figure at a predetermined transmittance through an additional figure added to the base figure, wherein the drawing data is vector data and predetermined transmittance data. A storage unit for storing the base figure and the additional figure represented by: extracting the vector data of the base figure and the additional figure from the storage unit for each scan line,
A drawing processing apparatus, comprising: transmission synthesis processing means for generating transmission synthesis data based on the predetermined transmittance data; and output means for generating and outputting raster data based on the transmission synthesis data.
JP19711296A 1996-07-08 1996-07-08 Drawing processor Expired - Fee Related JP3692639B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19711296A JP3692639B2 (en) 1996-07-08 1996-07-08 Drawing processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19711296A JP3692639B2 (en) 1996-07-08 1996-07-08 Drawing processor

Publications (2)

Publication Number Publication Date
JPH1020849A true JPH1020849A (en) 1998-01-23
JP3692639B2 JP3692639B2 (en) 2005-09-07

Family

ID=16368936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19711296A Expired - Fee Related JP3692639B2 (en) 1996-07-08 1996-07-08 Drawing processor

Country Status (1)

Country Link
JP (1) JP3692639B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008228168A (en) * 2007-03-15 2008-09-25 Fuji Xerox Co Ltd Image processing apparatus and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05211601A (en) * 1992-01-30 1993-08-20 Dainippon Screen Mfg Co Ltd Drawing line data composition device
JPH05244393A (en) * 1992-02-26 1993-09-21 Dainippon Screen Mfg Co Ltd Device for synthesizing line drawing data
JPH0728986A (en) * 1993-07-09 1995-01-31 Fuji Xerox Co Ltd Picture synthesis processor
JPH07282274A (en) * 1994-04-04 1995-10-27 Mitsubishi Electric Corp Graphic display device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05211601A (en) * 1992-01-30 1993-08-20 Dainippon Screen Mfg Co Ltd Drawing line data composition device
JPH05244393A (en) * 1992-02-26 1993-09-21 Dainippon Screen Mfg Co Ltd Device for synthesizing line drawing data
JPH0728986A (en) * 1993-07-09 1995-01-31 Fuji Xerox Co Ltd Picture synthesis processor
JPH07282274A (en) * 1994-04-04 1995-10-27 Mitsubishi Electric Corp Graphic display device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008228168A (en) * 2007-03-15 2008-09-25 Fuji Xerox Co Ltd Image processing apparatus and program
US8259347B2 (en) 2007-03-15 2012-09-04 Fuji Xerox Co., Ltd. Image processing apparatus and computer readable medium

Also Published As

Publication number Publication date
JP3692639B2 (en) 2005-09-07

Similar Documents

Publication Publication Date Title
JP3919754B2 (en) A method for reducing the number of compositing operations performed in a sequential pixel drawing system
JP4343344B2 (en) A high-speed image rendering method using raster graphic objects
US7023439B2 (en) Activating a filling of a graphical object
EP1847965A1 (en) Plotting device and plotting method
JPH0244482A (en) Raster conversion
JP5183286B2 (en) Character display device
KR100376196B1 (en) Outline smoothing method and system
JP3692639B2 (en) Drawing processor
JP2676116B2 (en) Image data processing method and apparatus
EP0670560B1 (en) A method for sorting polygon data, a video game machine employing the same and acomputer program performing the method
JP3375069B2 (en) Drawing processing device
JP2003099770A (en) Data converter, its method, and program using it
JP2782904B2 (en) Polygon fill method
JP2886702B2 (en) Outline font processor
JPH1021415A (en) Graphic processor and graphic processing method
JP3139805B2 (en) Image processing method and apparatus
JPH08305865A (en) Figure drawing device
JP3043234B2 (en) Graphic processing apparatus and method
JP5760728B2 (en) Image processing apparatus, image forming apparatus, and program
JPH06168337A (en) Paint-out processing method
JP2012133765A (en) Image processing device and image processing method
JPH0830795A (en) Outlining device for mask data
JPS6117189A (en) Graphic processor
JP2004086479A (en) Information processor for displaying graphic, information processing method, program for realizing same method, and recording medium with its program recorded
JP2001307115A (en) Image processor and image processing method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040511

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040708

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041207

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: 20050531

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050613

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: 20090701

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100701

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110701

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110701

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120701

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130701

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees