JPH10187376A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH10187376A
JPH10187376A JP8344126A JP34412696A JPH10187376A JP H10187376 A JPH10187376 A JP H10187376A JP 8344126 A JP8344126 A JP 8344126A JP 34412696 A JP34412696 A JP 34412696A JP H10187376 A JPH10187376 A JP H10187376A
Authority
JP
Japan
Prior art keywords
clip
area
data
rectangular area
image processing
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
JP8344126A
Other languages
Japanese (ja)
Other versions
JP3612909B2 (en
Inventor
Masahiko Harada
政彦 原田
Kazuhito Konno
和仁 今野
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 JP34412696A priority Critical patent/JP3612909B2/en
Publication of JPH10187376A publication Critical patent/JPH10187376A/en
Application granted granted Critical
Publication of JP3612909B2 publication Critical patent/JP3612909B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute a plotting processing by multiple clip at a high speed even when plural overlapped clip areas are set. SOLUTION: A multiple clip judging means 25 receives a clip command, and judges whether or not it is a multiple clip. When it is the first clip command, a clip area plotting means 15 plots the inside part of a clip area as '1' in a clip buffer 17, calculates a rectangular area circumscribing the clip area, and when it is the second and later clip command, the clip area plotting means 15 calculates a new rectangular area surrounding the previous clip area and this time clip area. A clip buffer access data controlling part 27 controls the clip area plotting means 15 so that '0' data can be written outside this time clip area inside the new rectangular area, and leaves a part in which the both areas are overlapped as a new clip area.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、文字や図形の塗
り潰し処理に伴うクリッピングを行う画像処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for performing clipping in a process of filling characters and figures.

【0002】[0002]

【従来の技術】従来より、PostscriptのようなPDLを
受信し、該PDLを解釈して、文字やグラフィック、イ
メージを描画する画像処理装置では、予め設定された描
画領域とは別にマスキング処理を行うために、ユーザが
任意の領域をクリップ領域として設定することが可能と
なっている。ここで、図9は、従来の画像処理装置によ
るマスキング処理を説明するための概念図である。
2. Description of the Related Art Conventionally, an image processing apparatus that receives a PDL such as Postscript, interprets the PDL, and draws a character, graphic, or image performs a masking process separately from a preset drawing area. Therefore, the user can set an arbitrary area as a clip area. Here, FIG. 9 is a conceptual diagram for explaining masking processing by a conventional image processing apparatus.

【0003】上記画像処理装置では、図6に示すよう
に、元の描画データ(文字やグラフィック、イメージ)
1と、ユーザによって指定されたクリップ領域2に関す
るクリップデータ(大きさ、形状、位置等)と基づい
て、描画データ1とクリップ領域2との重なり領域3を
算出し、どの部分を描画し、どの部分をマスキングする
かを、自動的に判定して所定部分のみを描画するように
なっている。したがって、ユーザは、クリップ領域2の
内/外判定について計算したり、指定したりする必要が
ないというメリットがある。しかしながら、上記描画デ
ータ1とクリップ領域2との重なり領域3を算出するに
は複雑な演算を行う必要があり、処理の高速化を妨げて
いた。なお、上記重なり領域3が最終的に描画される部
分である。
In the above image processing apparatus, as shown in FIG. 6, original drawing data (characters, graphics, images)
1 and the clip data (size, shape, position, etc.) relating to the clip area 2 specified by the user, an overlapping area 3 between the drawing data 1 and the clip area 2 is calculated, which part is drawn, Whether to mask a portion is automatically determined, and only a predetermined portion is drawn. Therefore, there is an advantage that the user does not need to calculate or specify the inside / outside determination of the clip area 2. However, calculating the overlapping area 3 between the drawing data 1 and the clip area 2 requires a complicated operation, which hinders speeding up the processing. The overlapping area 3 is a part where the drawing is finally performed.

【0004】そこで、上記問題を解決するために、例え
ば特開平8−63609号公報では、図7に示す構成の
画像処理装置が開示されている。図において、コマンド
処理手段10は、入力されるPDLデータを解釈し、文
字やグラフィック、イメージ等のデータを輪郭図形のベ
クタデータとして描画手段11に供給し、クリップ領域
のデータをクリップ領域描画手段15に供給する。描画
手段11は、コマンドをコマンドFIFO12に供給
し、上記ベクタデータから座標データを算出することに
より、ビットマップデータを生成し、該ビットマップデ
ータをデータFIFO13に供給する。コマンドFIF
O12およびデータFIFO13は、いわゆるバッファ
であり、コマンドFIFO12は、順次、コマンドを画
像合成制御手段14に供給し、データFIFO13は、
順次、ビットマップデータを画像合成制御手段14に供
給する。
In order to solve the above problem, for example, Japanese Patent Application Laid-Open No. 8-63609 discloses an image processing apparatus having a configuration shown in FIG. In the figure, a command processing unit 10 interprets input PDL data, supplies data such as characters, graphics, and images to a drawing unit 11 as vector data of a contour figure, and outputs clip region data to a clip region drawing unit 15. To supply. The drawing unit 11 supplies a command to the command FIFO 12, calculates coordinate data from the vector data, generates bitmap data, and supplies the bitmap data to the data FIFO 13. Command FIF
The O12 and the data FIFO 13 are so-called buffers. The command FIFO 12 sequentially supplies commands to the image composition control means 14, and the data FIFO 13
The bitmap data is sequentially supplied to the image composition control means 14.

【0005】また、クリップ領域描画手段15は、上記
クリップ領域のデータに従って、クリップ領域からビッ
トマップデータを生成し、クリップ・バッファ制御手段
16に供給する。クリップ・バッファ制御手段16は、
上記描画されたクリップ領域のビットマップデータをク
リップ・バッファ17に書き込む。
[0005] The clip area drawing means 15 generates bitmap data from the clip area in accordance with the data of the clip area and supplies it to the clip buffer control means 16. The clip / buffer control means 16
The bitmap data of the drawn clip area is written to the clip buffer 17.

【0006】画像合成制御手段14は、上記コマンドに
従って、描画データのビットマップデータと、クリップ
・バッファ17に格納されているクリップのビットマッ
プデータとの論理積をとり、マスキングをかけるか否か
を選択し、描画すべき部分におけるビットマップデータ
のみをフレーム・バッファ制御手段18に供給する。フ
レーム・バッファ制御手段18は、上記描画すべきビッ
トマップデータをフレーム・バッファ19に書き込む。
該フレーム・バッファ19に書き込まれた最終的なビッ
トマップデータは、画像データを出力するための出力装
置20に供給される。
In accordance with the above command, the image composition control means 14 takes the logical product of the bitmap data of the drawing data and the bitmap data of the clip stored in the clip buffer 17 to determine whether or not to perform masking. Only the bitmap data in the portion to be selected and drawn is supplied to the frame buffer control means 18. The frame buffer control means 18 writes the bitmap data to be drawn into the frame buffer 19.
The final bitmap data written in the frame buffer 19 is supplied to an output device 20 for outputting image data.

【0007】ここで、図8および図9は、従来の画像処
理装置の動作を説明するためのフローチャートである。
まず、クリップコマンドを受信した場合の動作について
図8を参照して説明する。上記画像処理装置は、Postsc
riptなどのPDLデータを受信した際、ステップSa1
で、コマンド処理手段10により、クリップコマンドを
受信すると、ステップSa2で、受信したクリップコマ
ンドをクリップ領域描画手段15に供給し、クリップ領
域を指定する。次に、ステップSa3で、クリップ領域
描画手段15により、クリップ領域に外接する矩形領域
の座標値(Xmin、Ymin)、(Xmax、Ymax)を算出し
た後、ステップSa4で、上記クリップ領域が長方形か
否かを判断する。そして、クリップ領域が長方形でなけ
れば、ステップSa5に進み、クリップ・バッファ17
を参照中であるか否かを判断する。
FIGS. 8 and 9 are flowcharts for explaining the operation of the conventional image processing apparatus.
First, an operation when a clip command is received will be described with reference to FIG. The image processing device is a Postsc
When PDL data such as ript is received, step Sa1
When the clip command is received by the command processing means 10, the received clip command is supplied to the clip area drawing means 15 in step Sa2, and the clip area is designated. Next, in step Sa3, the coordinate values (Xmin, Ymin) and (Xmax, Ymax) of the rectangular area circumscribing the clip area are calculated by the clip area drawing means 15, and in step Sa4, whether the clip area is rectangular Determine whether or not. If the clip area is not rectangular, the process proceeds to step Sa5, where the clip buffer 17
Is being referred to.

【0008】ここで、クリップ・バッファ17を参照し
ていなければ、ステップSa6に進み、クリップ領域に
対応するクリップ・バッファ17の位置に「1」を書き
込むことにより、クリップ領域を描画し、当該処理を終
了する。一方、クリップ領域が長方形でなければ、ステ
ップSa7に進み、クリップ・バッファ17を使用する
か否かを示す参照フラグをオフとし、クリップ・バッフ
ァ17を使用しないように設定し、当該処理を終了す
る。
If the clip buffer 17 is not referred to, the flow advances to step Sa6 to write "1" at the position of the clip buffer 17 corresponding to the clip area, thereby rendering the clip area. To end. On the other hand, if the clip area is not rectangular, the process proceeds to step Sa7, in which the reference flag indicating whether or not to use the clip buffer 17 is turned off, the clip buffer 17 is set not to be used, and the process ends. .

【0009】次に、描画コマンドを受信した場合の動作
について図9を参照して説明する。画像処理装置は、Po
stscriptなどのPDLデータを受信した際、ステップS
b1で、コマンド処理手段10により、描画コマンドを
受信すると、ステップSb2で、描画領域に外接する矩
形領域の座標値(X’min、Y’min)、(X’max、
Y’max)を算出した後、ステップSb3で、先にクリ
ップ・バッファ17に描画したクリップ領域と上記描画
データの矩形領域とが重なるか否かを判断する。重なっ
ていなければマスキングする必要がないので、何もせず
に当該処理を終了する。
Next, an operation when a drawing command is received will be described with reference to FIG. The image processing device is Po
When PDL data such as stscript is received, step S
In step b1, when the command processing unit 10 receives a drawing command, in step Sb2, the coordinate values (X'min, Y'min), (X'max,
After calculating Y′max), it is determined in step Sb3 whether or not the clip area previously drawn in the clip buffer 17 and the rectangular area of the drawing data overlap. If they do not overlap, there is no need to perform masking, and the process ends without doing anything.

【0010】一方、クリップ領域と上記描画データの矩
形領域とが重なった場合には、ステップSb4に進み、
描画処理の実行コマンドを発行し、ステップSb5で、
クリップ・バッファ参照フラグがオンであるか否かを判
断する。そして、クリップ・バッファ参照フラグがオン
である場合には、ステップSb6で、クリップ・バッフ
ァ参照モードで処理を実行する。すなわち、画像合成制
御手段14によって、ビットマップデータに変換された
描画データと、該描画データの描画座標に対応する座標
のクリップ・バッファ17のデータとの論理積(AN
D)をとった後、フレーム・バッファ19に書き込む。
On the other hand, if the clip area and the rectangular area of the drawing data overlap, the process proceeds to step Sb4,
An execution command for the drawing process is issued, and in step Sb5,
It is determined whether or not the clip buffer reference flag is on. If the clip buffer reference flag is on, the process is executed in the clip buffer reference mode in step Sb6. That is, the logical product (AN) of the drawing data converted into the bitmap data by the image synthesis control means 14 and the data of the clip buffer 17 at the coordinates corresponding to the drawing coordinates of the drawing data.
After taking D), the data is written into the frame buffer 19.

【0011】一方、クリップ・バッファ参照フラグがオ
フである場合には、ステップSb7で、クリップ・バッ
ファ非参照モードで処理を実行する。すなわち、この場
合、クリップ領域が長方形でないので、クリップ・バッ
ファ17を参照することなく、描画データをフレーム・
バッファ19に書き込む。
On the other hand, if the clip buffer reference flag is off, the process is executed in a clip buffer non-reference mode in step Sb7. That is, in this case, since the clip area is not rectangular, the drawing data is stored in the frame data without referring to the clip buffer 17.
Write to buffer 19.

【0012】このように、上述した従来の画像処理装置
では、クリップのビットマップデータをクリップ・バッ
ファ19に書き込む一方、文字やグラフィックスなどの
描画データを描画手段11によりビットマップデータに
変換した後、画像合成制御手段14によって、ビットマ
ップデータに変換された描画データと、該描画データの
描画座標に対応する座標のクリップ・バッファ17のデ
ータとの論理積(AND)をとった後、フレーム・バッ
ファ19に書き込む。この結果、クリップ・バッファ1
7に描画されているクリップ領域のマスキングを、複雑
な演算を必要とせずに高速に行うことができる。
As described above, in the above-described conventional image processing apparatus, the bitmap data of the clip is written into the clip buffer 19, while the drawing data such as characters and graphics is converted into the bitmap data by the drawing means 11. After the image combining control unit 14 calculates the logical product (AND) of the drawing data converted into the bitmap data and the data of the clip buffer 17 at the coordinates corresponding to the drawing coordinates of the drawing data, Write to buffer 19. As a result, clip buffer 1
The masking of the clip region drawn in 7 can be performed at high speed without requiring a complicated operation.

【0013】[0013]

【発明が解決しようとする課題】ところで、ユーザが複
数のクリップ領域2a,2bを明示的に初期化せずに設
定した場合、Postscriptでは、図10に示すように、ク
リップ領域2a,2bとが重なる重なり領域が新たなク
リップ領域2cとなる(以下、この状況を「多重クリッ
プ」という)。しかしながら、上述した従来の画像処理
装置では、多重クリップによる新たなクリップ領域2c
を設定するには、クリップ・バッファ17に描画した最
初のクリップデータを消去して、クリップ領域2a,2
b同士の重なりを算出し、再び、その新たなクリップ領
域2cをクリップ・バッファ17に書き込む必要があ
り、結局、複雑な演算が必要となり、処理の高速化を妨
げるという問題があった。
By the way, when the user sets a plurality of clip areas 2a and 2b without explicitly initializing, as shown in FIG. 10, the clip areas 2a and 2b are not The overlapping area becomes the new clip area 2c (hereinafter, this situation is referred to as "multiple clip"). However, in the above-described conventional image processing apparatus, a new clip area 2c with multiple clips is used.
Is set, the first clip data drawn in the clip buffer 17 is deleted, and the clip areas 2a and 2
It is necessary to calculate the overlap between b and write the new clip area 2c to the clip buffer 17 again. As a result, a complicated operation is required, which hinders the processing speed.

【0014】この発明は上述した事情に鑑みてなされた
もので、互いに重なり合う複数のクリップ領域が設定さ
れた場合であっても、多重クリップによる描画処理を高
速で実行することができる画像処理装置を提供すること
を目的としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and provides an image processing apparatus capable of executing a drawing process using multiple clips at a high speed even when a plurality of overlapping clip regions are set. It is intended to provide.

【0015】[0015]

【課題を解決するための手段】上述した問題点を解決す
るために、請求項1の発明では、クリップ領域と描画デ
ータとの重なり部分を抽出し、該重なり部分の描画デー
タを描画する画像処理装置において、前記クリップ領域
を格納する格納手段と、前記格納手段に格納されている
第1のクリップ領域に第1のデータを書き込む第1のデ
ータ書込手段と、第2のクリップ領域以降のクリップ領
域の外側に対して、前記格納手段に前記第1のデータと
は異なる第2のデータを上書きする第2のデータ書込手
段と、前記第2のデータ書込手段による前記格納手段へ
のデータ書き込み結果に基づいて、描画データに対して
クリップ処理を施すクリップ処理手段とを具備すること
を特徴とする。
According to a first aspect of the present invention, there is provided an image processing apparatus for extracting an overlapping portion between a clip region and drawing data and drawing the drawing data of the overlapping portion. In the apparatus, storage means for storing the clip area, first data writing means for writing first data in a first clip area stored in the storage means, and a clip after a second clip area A second data writing unit that overwrites the storage unit with second data different from the first data outside the area, and a data stored in the storage unit by the second data writing unit. Clip processing means for performing a clip process on the drawing data based on the writing result.

【0016】また、請求項2記載の発明では、請求項1
記載の画像処理装置において、前記格納手段に格納され
ているクリップ領域と前記第2のクリップ領域以降のク
リップ領域の各々とを重ね合わせた場合における外接矩
形領域を算出する演算手段を具備し、前記第2のデータ
書込手段は、前記演算手段によって算出された外接矩形
領域内であって、第2のクリップ領域以降のクリップ領
域の外側に対して、前記格納手段に前記第1のデータと
は異なる第2のデータを上書きすることを特徴とする。
According to the second aspect of the present invention, the first aspect of the present invention is provided.
The image processing apparatus according to claim 1, further comprising: an arithmetic unit configured to calculate a circumscribed rectangular area when the clip area stored in the storage unit and each of the clip areas after the second clip area are superimposed. The second data writing unit stores the first data in the storage unit within a circumscribed rectangular area calculated by the calculation unit and outside a clip region after the second clip region. It is characterized in that different second data is overwritten.

【0017】この発明によれば、格納手段に格納されて
いる第1のクリップ領域に対しては、第1のデータ書込
手段により第1のデータを書き込み、第2のクリップ領
域以降のクリップ領域に対しては、第2のデータ書込手
段により、その外側に対して、前記格納手段に前記第1
のデータとは異なる第2のデータを上書きし、クリップ
処理手段により、前記第2のデータ書込手段による前記
格納手段へのデータ書き込み結果に基づいて、描画デー
タに対してクリップ処理を施すようにしたので、互いに
重なり合う複数のクリップ領域が設定された場合であっ
ても、互いに重なり合った場合の最終的なクリップ領域
を取得することが可能になるとともに、多重クリップに
よる描画処理を高速で実行することが可能となる。
According to the present invention, the first data is written by the first data writing means into the first clip area stored in the storage means, and the clip area after the second clip area is written. Is stored in the storage means to the outside by the second data writing means.
Overwriting second data that is different from the first data, and performing clip processing on the drawing data by the clip processing unit based on the result of writing the data to the storage unit by the second data writing unit. Therefore, even when a plurality of clip regions overlapping each other are set, it is possible to obtain a final clip region in the case where the clip regions overlap each other, and to execute a drawing process using multiple clips at a high speed. Becomes possible.

【0018】[0018]

【発明の実施の形態】次に図面を参照してこの発明の実
施形態について説明する。 A.実施形態の構成 A−1.画像処理装置の構成 図1は、本発明の一実施形態による画像処理装置の構成
を示すブロック図である。なお、図7に対応する部分に
は同一の符号を付けて説明を省略する。図において、多
重クリップ判定手段25は、重なり合ったクリップ領域
が複数設定されているか否かを判定する。外接矩形領域
データ格納手段26は、クリップ領域描画手段15によ
り描画されたクリップ領域の輪郭に外接する矩形領域の
座標データ(クリップパスという)を格納する。次に、
クリップバッファ・アクセスデータ制御手段27は、多
重クリップ判定手段25の判定結果が多重クリップであ
ると判定された場合、複数のクリップ領域が重なった部
分を新たなクリップ領域として生成する。すなわち、ク
リップバッファ・アクセスデータ制御手段27は、外接
矩形領域データ格納手段26に格納されている複数のク
リップパス(設定された複数のクリップ領域の輪郭に外
接する矩形領域の輪郭)のうち、該当する2つのクリッ
プパスの外接矩形領域座標データのX/Y軸の最小値/
最大値に従って、重なり部分(論理和)の矩形領域(新
たなクリップ領域)を設定し、その矩形領域の内部で、
かつ対応するクリップパスの外側の領域をデータ「0」
とするようにアクセスすべく、クリップ領域描画手段1
5を制御する。
Embodiments of the present invention will now be described with reference to the drawings. A. Configuration of Embodiment A-1. Configuration of Image Processing Apparatus FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention. Parts corresponding to those in FIG. 7 are denoted by the same reference numerals, and description thereof is omitted. In the figure, a multiple clip determination unit 25 determines whether a plurality of overlapping clip regions are set. The circumscribed rectangular area data storage means 26 stores coordinate data (referred to as a clip path) of a rectangular area circumscribing the outline of the clip area drawn by the clip area drawing means 15. next,
The clip buffer / access data control means 27 generates a portion where a plurality of clip areas overlap as a new clip area when the determination result of the multiplex clip determination means 25 is determined to be a multiplex clip. In other words, the clip buffer / access data control unit 27 determines the corresponding one of the plurality of clip paths (the outline of the rectangular region circumscribing the outline of the set clip regions) stored in the circumscribed rectangular region data storage unit 26. X / Y axis minimum value of circumscribed rectangular area coordinate data of two clip paths
According to the maximum value, a rectangular area (new clip area) of the overlapping portion (logical sum) is set, and inside the rectangular area,
The area outside the corresponding clip path is data "0".
So that the clip area drawing means 1
5 is controlled.

【0019】B.実施形態の動作 次に、本実施形態による画像処理装置の動作について説
明する。ここで、図2は、画像処理装置の動作を説明す
るためのフローチャートである。画像処理装置は、Post
scriptなどのPDLデータを受信した際、ステップSc
1で、コマンド処理手段10により、クリップコマンド
を受信すると、ステップSc2で、多重クリップ判定手
段25により、多重クリップであるか否か、言い換える
と、2度目以降のクリップコマンドであるか否かを判断
する。
B. Next, an operation of the image processing apparatus according to the present embodiment will be described. Here, FIG. 2 is a flowchart for explaining the operation of the image processing apparatus. Image processing device is Post
When receiving PDL data such as script, step Sc
In step Sc1, when the command processing unit 10 receives a clip command, in step Sc2, the multiplex clip determination unit 25 determines whether or not it is a multiplex clip, in other words, whether it is a second or later clip command. I do.

【0020】そして、多重クリップでない場合、すなわ
ち、1番目のクリップコマンドである場合には、ステッ
プSc3に進み、受信したクリップコマンドをクリップ
領域描画手段15に供給し、クリップ領域C1を指定す
る(図1の)。ここで、上記1番目のクリップ領域C
1が図3(a)に示すような位置および形状であるとす
る。次に、ステップSc4で、クリップ領域描画手段1
5により、図3(b)に示すように、クリップ領域C1
に外接する矩形領域S1の座標値(Xmin、Ymin)、
(Xmax、Ymax)を算出する。該矩形領域S1の座標値
は、外接矩形領域データ格納手段26に格納される(図
1の)。その後、ステップSc5で、上記クリップ領
域C1を囲む矩形領域S1が長方形か否かを判断する。
そして、クリップ領域C1を囲む矩形領域C1が長方形
でなければ、ステップSc6に進み、クリップ・バッフ
ァ17を参照中であるか否かを判断する。
If it is not a multiplex clip, that is, if it is the first clip command, the flow advances to step Sc3 to supply the received clip command to the clip area drawing means 15 and specify the clip area C1 (FIG. 1). Here, the first clip area C
Let 1 be the position and shape as shown in FIG. Next, in step Sc4, the clip area drawing means 1
5, as shown in FIG. 3B, the clip area C1
(Xmin, Ymin) of the rectangular area S1 circumscribing
(Xmax, Ymax) is calculated. The coordinate values of the rectangular area S1 are stored in the circumscribed rectangular area data storage means 26 (FIG. 1). Thereafter, in step Sc5, it is determined whether or not the rectangular area S1 surrounding the clip area C1 is a rectangle.
If the rectangular area C1 surrounding the clip area C1 is not rectangular, the process proceeds to step Sc6, and it is determined whether the clip buffer 17 is being referred to.

【0021】ここで、クリップ・バッファ17を参照し
ていなければ、ステップSc7に進み、クリップ領域C
1に対応するクリップ・バッファ17の位置に「1」デ
ータを書き込むことにより、すなわち、クリップ領域C
1の内部に「1」データを書き込み、クリップ領域C1
を描画し、当該処理を終了する。一方、クリップ領域C
1を囲む矩形領域S1が長方形でなければ、ステップS
c8に進み、クリップ・バッファ17を使用するか否か
を示す参照フラグをオフとし、クリップ・バッファ17
を使用しないように設定し、当該処理を終了する。
Here, if the clip buffer 17 is not referred to, the process proceeds to step Sc7, where the clip area C
By writing “1” data at the position of the clip buffer 17 corresponding to “1”,
"1" data is written inside the "1" and the clip area C1
Is drawn, and the process ends. On the other hand, the clip area C
If the rectangular area S1 surrounding No. 1 is not a rectangle, step S
Proceeding to c8, the reference flag indicating whether or not to use the clip buffer 17 is turned off.
Is set not to be used, and the process ends.

【0022】一方、受信したクリップコマンドが多重ク
リップである場合、すなわち2度目以降のクリップコマ
ンドである場合には、ステップSc9に進み、クリップ
領域描画手段15により、外接矩形領域データ格納手段
から前のクリップ領域C1の矩形領域S1の座標値を読
み出す(図1の)。なお、ここで、ページ設定の初期
化や明示的なクリップ・バッファ17のクリア指示があ
った場合には、クリップ・バッファ17の内容を消去す
る。次に、ステップSc10で、図4(a)に示すよう
に、前のクリップ領域C1と今回のクリップ領域C2と
を囲む矩形領域S2の座標値(Xmin、Ymin’)、(X
max’、Ymax)を算出する。実際には、今回のクリップ
領域C2のベクトルデータから該クリップ領域C2に外
接する矩形領域を求め、該矩形領域と上記矩形領域S1
との論理和をとり、新たな矩形領域S2を算出する。該
矩形領域S2の座標値は、外接矩形領域データ格納手段
26に供給され、データが更新される(図1の)。そ
して、多重クリップ判定手段25は、クリップバッファ
・アクセスデータ制御部27に多重クリップであること
を知らせる(図1の)。
On the other hand, if the received clip command is a multiplex clip, that is, if the received clip command is a second or subsequent clip command, the process proceeds to step Sc9, where the clip area drawing means 15 reads the previous circumscribed rectangular area data storage means from the circumscribed rectangular area data storage means. The coordinate value of the rectangular area S1 of the clip area C1 is read (FIG. 1). Here, when there is a page setting initialization or an explicit clearing instruction of the clip buffer 17, the contents of the clip buffer 17 are deleted. Next, in step Sc10, as shown in FIG. 4A, the coordinate values (Xmin, Ymin '), (Xmin, Ymin') of the rectangular area S2 surrounding the previous clip area C1 and the current clip area C2.
max ', Ymax). Actually, a rectangular area circumscribing the clip area C2 is obtained from the vector data of the current clip area C2, and the rectangular area and the rectangular area S1 are determined.
And a new rectangular area S2 is calculated. The coordinate value of the rectangular area S2 is supplied to the circumscribed rectangular area data storage means 26, and the data is updated (FIG. 1). Then, the multiplex clip determination unit 25 notifies the clip buffer / access data control unit 27 that the clip is a multiplex clip (FIG. 1).

【0023】多重クリップ判定手段25から多重クリッ
プであるという報告を受けたクリップバッファ・アクセ
スデータ制御部27は、ステップSc5で、上記矩形領
域S2の内部で、かつ今回のクリップ領域C2の外側
を、図4(b)に示すように、「0」データで、クリッ
プ・バッファに描画することにより、クリップ領域C1
において重なっていない部分を消去し、重なっている領
域を残す。この結果、図5に示すように、前のクリップ
領域C1と今回のクリップ領域C2との重なり部分のみ
が「1」となって残る。そして、該重なり部分が新たな
クリップ領域CNEWとなり、該クリップ領域CNEWを囲む
矩形領域が外接矩形領域データ格納手段26に格納され
る。
In step Sc5, the clip buffer / access data control unit 27, which has received a report indicating that the clip is a multiplex clip, from the multiplex clip determination unit 25, sets the inside of the rectangular area S2 and the outside of the current clip area C2. As shown in FIG. 4B, by drawing “0” data in the clip buffer, the clip area C1 is drawn.
The non-overlapping part is erased in step and the overlapping area is left. As a result, as shown in FIG. 5, only the overlapping portion between the previous clip region C1 and the current clip region C2 remains “1”. Then, the overlapping portion becomes a new clip area CNEW, and a rectangular area surrounding the clip area CNEW is stored in the circumscribed rectangular area data storage means 26.

【0024】また、引き続いてコマンド処理手段10が
クリップコマンドを受信した場合は、上述した処理を繰
り返し実行する。このとき、前のクリップ領域として
は、上記新たなクリップ領域CNEWを用いるようにす
る。この結果、クリップコマンドを受信する度にクリッ
プ領域が更新される。
If the command processing means 10 subsequently receives a clip command, the above-described processing is repeatedly executed. At this time, the new clip area CNEW is used as the previous clip area. As a result, each time a clip command is received, the clip area is updated.

【0025】そして、描画コマンドを受信した場合に
は、前述した従来の画像処理装置と同様に、図9に示す
フローチャートの処理を実行する。すなわち、画像合成
制御手段14によって、ビットマップデータに変換され
た描画データと、クリップ・バッファ17に描画された
クリップデータとの論理積(AND)をとった後、フレ
ーム・バッファ19に書き込む。このように、複数のク
リップ領域が設定された場合であっても、簡単な処理
(演算)で、最終的なクリップ領域を生成することがで
きるので、マスキング処理を高速で実行することができ
る。
When the drawing command is received, the processing of the flowchart shown in FIG. 9 is executed in the same manner as in the above-described conventional image processing apparatus. That is, the image composition control unit 14 calculates the logical product (AND) of the drawing data converted into the bitmap data and the clip data drawn in the clip buffer 17 and then writes the logical product into the frame buffer 19. As described above, even when a plurality of clip regions are set, a final clip region can be generated by simple processing (calculation), so that masking processing can be executed at high speed.

【0026】なお、上述した実施形態では、出力装置を
印刷装置として説明したが、これに限らず、ワークステ
ーションやパソコン等のディスプレイに、例えばDTP
のように高品位なフォントや複雑な図形およびそのクリ
ッピングを高速に表示する場合に適用しても有効であ
る。
In the above-described embodiment, the output device is described as a printing device. However, the present invention is not limited to this. For example, a DTP
It is also effective when applied to high-speed display of high-quality fonts and complicated figures and their clippings.

【0027】[0027]

【発明の効果】以上、説明したように、この発明によれ
ば、請求項1記載の発明によれば、格納手段に格納され
ている第1のクリップ領域に対しては、第1のデータ書
込手段により第1のデータを書き込み、第2のクリップ
領域以降のクリップ領域に対しては、第2のデータ書込
手段により、その外側に対して、前記格納手段に前記第
1のデータとは異なる第2のデータを上書きし、クリッ
プ処理手段により、前記第2のデータ書込手段による前
記格納手段へのデータ書き込み結果に基づいて、描画デ
ータに対してクリップ処理を施すようにしたので、互い
に重なり合う複数のクリップ領域が設定された場合であ
っても、互いに重なり合った場合の最終的なクリップ領
域を取得することができるとともに、多重クリップによ
る描画処理を高速で実行することができるという利点が
得られる。
As described above, according to the present invention, according to the first aspect of the present invention, the first data area is stored in the first clip area stored in the storage means. The first data is written by the writing means, and the second data writing means writes the first data to the storage means outside the clip area after the second clip area. Different second data is overwritten, and clip processing is performed on the drawing data by the clip processing means based on the data writing result to the storage means by the second data writing means. Even when multiple overlapping clip areas are set, it is possible to obtain the final clip area when they overlap each other, and to speed up the drawing process using multiple clips. Advantage that it is possible to perform is obtained.

【0028】また、請求項2記載の発明によれば、請求
項1記載の画像処理装置において、前記格納手段に格納
されているクリップ領域と前記第2のクリップ領域以降
のクリップ領域の各々とを重ね合わせた場合における外
接矩形領域を演算手段によって算出し、前記第2のデー
タ書込手段によって、前記演算手段によって算出された
外接矩形領域内であって、第2のクリップ領域以降のク
リップ領域の外側に対して、前記格納手段に前記第1の
データとは異なる第2のデータを上書きするようにした
ので、互いに重なり合う複数のクリップ領域が設定され
た場合であっても、互いに重なり合った場合の最終的な
クリップ領域を取得することができるとともに、多重ク
リップによる描画処理を高速で実行することができると
いう利点が得られる。
According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the clip area stored in the storage means and each of the clip areas subsequent to the second clip area are separated. The circumscribed rectangular area in the case of superimposition is calculated by the arithmetic means, and the second data writing means calculates the circumscribed rectangular area within the circumscribed rectangular area calculated by the arithmetic means and the clip area after the second clip area. Since the storage means is overwritten with the second data different from the first data on the outside, even when a plurality of clip areas overlapping with each other are set, even if a plurality of clip areas overlapping with each other are set, the storage means may be overwritten. The advantage is that the final clip area can be obtained, and the drawing processing using multiple clips can be executed at high speed. .

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

【図1】 本発明の実施形態による画像処理装置の構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】 本実施形態による画像処理装置の動作を説明
するためのフローチャートである。
FIG. 2 is a flowchart for explaining the operation of the image processing apparatus according to the embodiment;

【図3】 本実施形態による画像処理装置の動作を説明
するための概念図である。
FIG. 3 is a conceptual diagram for explaining the operation of the image processing apparatus according to the present embodiment.

【図4】 本実施形態による画像処理装置の動作を説明
するための概念図である。
FIG. 4 is a conceptual diagram for explaining the operation of the image processing apparatus according to the present embodiment.

【図5】 本実施形態による画像処理装置の動作を説明
するための概念図である。
FIG. 5 is a conceptual diagram for explaining the operation of the image processing apparatus according to the present embodiment.

【図6】 単一のクリップ領域を指定した場合における
マスキング処理の動作を説明するための概念図である。
FIG. 6 is a conceptual diagram illustrating an operation of a masking process when a single clip region is designated.

【図7】 従来の画像処理装置の構成を示すブロック図
である。
FIG. 7 is a block diagram illustrating a configuration of a conventional image processing apparatus.

【図8】 従来の画像処理装置の動作を説明するための
フローチャートである。
FIG. 8 is a flowchart illustrating an operation of a conventional image processing apparatus.

【図9】 従来の画像処理装置の動作を説明するための
フローチャートである。
FIG. 9 is a flowchart illustrating an operation of a conventional image processing apparatus.

【図10】 複数のクリップ領域を指定した場合におけ
るマスキング処理を説明するための概念図である。
FIG. 10 is a conceptual diagram illustrating a masking process when a plurality of clip regions are designated.

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

11 描画手段 14 画像合成制御手段(クリップ処理手段) 15 クリップ領域描画手段(第1のデータ書込手段、
演算手段) 17 クリップ・バッファ(格納手段) 19 フレーム・バッファ 25 多重クリップ判定手段(判定手段) 26 外接矩形領域データ格納手段(外接矩形領域格納
手段) 27 クリップバッファ・アクセスデータ制御部(第2
のデータ書込手段)
11 drawing means 14 image synthesis control means (clip processing means) 15 clip area drawing means (first data writing means,
Calculation means 17 clip buffer (storage means) 19 frame buffer 25 multiplex clip determination means (determination means) 26 circumscribed rectangular area data storage means (circumscribed rectangular area storage means) 27 clip buffer access data control section (second
Data writing means)

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI G09G 5/36 530 G06F 15/72 380 ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 6 Identification code FI G09G 5/36 530 G06F 15/72 380

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 クリップ領域と描画データとの重なり部
分を抽出し、該重なり部分の描画データを描画する画像
処理装置において、 前記クリップ領域を格納する格納手段と、 前記格納手段に格納されている第1のクリップ領域に第
1のデータを書き込む第1のデータ書込手段と、 第2のクリップ領域以降のクリップ領域の外側に対し
て、前記格納手段に前記第1のデータとは異なる第2の
データを上書きする第2のデータ書込手段と、 前記第2のデータ書込手段による前記格納手段へのデー
タ書き込み結果に基づいて、描画データに対してクリッ
プ処理を施すクリップ処理手段とを具備することを特徴
とする画像処理装置。
1. An image processing apparatus for extracting an overlapping portion between a clip region and drawing data and drawing drawing data of the overlapping portion, wherein the storing unit stores the clip region, and the storing unit stores the clip region. First data writing means for writing the first data in the first clip area; and a second data area different from the first data in the storage means for the outside of the clip area after the second clip area. A second data writing unit that overwrites the data, and a clip processing unit that performs a clip process on the drawing data based on a result of writing the data to the storage unit by the second data writing unit. An image processing apparatus comprising:
【請求項2】 前記格納手段に格納されているクリップ
領域と前記第2のクリップ領域以降のクリップ領域の各
々とを重ね合わせた場合における外接矩形領域を算出す
る演算手段を具備し、 前記第2のデータ書込手段は、前記演算手段によって算
出された外接矩形領域内であって、第2のクリップ領域
以降のクリップ領域の外側に対して、前記格納手段に前
記第1のデータとは異なる第2のデータを上書きするこ
とを特徴とする請求項1記載の画像処理装置。
2. An arithmetic unit for calculating a circumscribed rectangular area when a clip area stored in said storage means and each of clip areas subsequent to said second clip area are superimposed, The data writing means is different from the first data in the storage means in the circumscribed rectangular area calculated by the arithmetic means and outside the clip area after the second clip area. 2. The image processing apparatus according to claim 1, wherein data of the second data is overwritten.
【請求項3】 前記格納手段に格納されているクリップ
領域の外接矩形領域を格納する外接矩形領域格納手段を
具備し、 前記演算手段は、前記外接矩形領域格納手段に格納され
ている外接矩形領域と、現在注目しているクリップ領域
の外接矩形領域との論理和をとることにより、双方を重
ね合わせた場合における外接矩形領域を取得することを
特徴とする請求項2記載の画像処理装置。
3. A circumscribing rectangular area stored in the circumscribing rectangular area stored in the circumscribing rectangular area storing means, the circumscribing rectangular area being stored in the storing means. 3. The image processing apparatus according to claim 2, wherein a circumscribed rectangular area in a case where both are superimposed is obtained by calculating a logical sum of the circumscribed rectangular area of the clip area of interest.
【請求項4】 前記クリップ領域が複数供給された場
合、該複数のクリップ領域が互いに重なり合う多重クリ
ップであるか否かを判定する判定手段を具備することを
特徴とする請求項1ないし3いずれかに記載の画像処理
装置。
4. The apparatus according to claim 1, further comprising a determination unit configured to determine whether the plurality of clip areas are multiplex clips overlapping each other when a plurality of clip areas are supplied. An image processing apparatus according to claim 1.
JP34412696A 1996-12-24 1996-12-24 Image processing device Expired - Fee Related JP3612909B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34412696A JP3612909B2 (en) 1996-12-24 1996-12-24 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34412696A JP3612909B2 (en) 1996-12-24 1996-12-24 Image processing device

Publications (2)

Publication Number Publication Date
JPH10187376A true JPH10187376A (en) 1998-07-14
JP3612909B2 JP3612909B2 (en) 2005-01-26

Family

ID=18366844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34412696A Expired - Fee Related JP3612909B2 (en) 1996-12-24 1996-12-24 Image processing device

Country Status (1)

Country Link
JP (1) JP3612909B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7259770B2 (en) 2003-11-18 2007-08-21 Canon Kabushiki Kaisha Method and apparatus for processing information

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11039037B2 (en) * 2019-10-31 2021-06-15 Kyocera Document Solutions Inc. Image processing apparatus, image forming apparatus and image processing method for improving efficiency of clipping process

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7259770B2 (en) 2003-11-18 2007-08-21 Canon Kabushiki Kaisha Method and apparatus for processing information

Also Published As

Publication number Publication date
JP3612909B2 (en) 2005-01-26

Similar Documents

Publication Publication Date Title
US6339424B1 (en) Drawing processor
JPS6324419A (en) Composite document processor
JPH10188014A (en) Picture editing method and its device
JPH10187376A (en) Picture processor
EP0749099B1 (en) Blend control system
US6961059B2 (en) Graphics drawing device
JP3202535B2 (en) Image synthesis device
JPH0729021A (en) Picture output device
JPH03150680A (en) Display system, thick line displaying method, and information processor
JP2747055B2 (en) Graphic display device
JP3553249B2 (en) Image generating apparatus and image generating method
JP3238188B2 (en) Frame memory control device and frame memory control method
JPH06324669A (en) Device and method for composite display control
JP2006031160A (en) Graphic object processing method
JP5097685B2 (en) Image processing apparatus and image processing program
JPH03136092A (en) Display device
JPH0962849A (en) Printer device
JPH0969166A (en) Information processor, its method and storage medium
JP2000255132A (en) Data processing method and apparatus, and memory medium
JPH02273871A (en) Image display processor
JPH04239979A (en) Picture processor
JPS6336377A (en) Picture processor
JP2000235651A (en) Compiling method/device for raster data
JP2000306075A (en) Image input device and computer readable storage medium
JPS6180292A (en) Display cotnrol system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040823

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041018

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20081105

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091105

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101105

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111105

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111105

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121105

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121105

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20131105

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees