JP3612909B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP3612909B2
JP3612909B2 JP34412696A JP34412696A JP3612909B2 JP 3612909 B2 JP3612909 B2 JP 3612909B2 JP 34412696 A JP34412696 A JP 34412696A JP 34412696 A JP34412696 A JP 34412696A JP 3612909 B2 JP3612909 B2 JP 3612909B2
Authority
JP
Japan
Prior art keywords
clip
area
data
image processing
storage means
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.)
Expired - Fee Related
Application number
JP34412696A
Other languages
Japanese (ja)
Other versions
JPH10187376A (en
Inventor
政彦 原田
和仁 今野
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
Fujifilm Business Innovation Corp
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, Fujifilm Business Innovation Corp 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

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
この発明は、文字や図形の塗り潰し処理に伴うクリッピングを行う画像処理装置に関する。
【0002】
【従来の技術】
従来より、PostscriptのようなPDLを受信し、該PDLを解釈して、文字やグラフィック、イメージを描画する画像処理装置では、予め設定された描画領域とは別にマスキング処理を行うために、ユーザが任意の領域をクリップ領域として設定することが可能となっている。ここで、図9は、従来の画像処理装置によるマスキング処理を説明するための概念図である。
【0003】
上記画像処理装置では、図6に示すように、元の描画データ(文字やグラフィック、イメージ)1と、ユーザによって指定されたクリップ領域2に関するクリップデータ(大きさ、形状、位置等)と基づいて、描画データ1とクリップ領域2との重なり領域3を算出し、どの部分を描画し、どの部分をマスキングするかを、自動的に判定して所定部分のみを描画するようになっている。したがって、ユーザは、クリップ領域2の内/外判定について計算したり、指定したりする必要がないというメリットがある。しかしながら、上記描画データ1とクリップ領域2との重なり領域3を算出するには複雑な演算を行う必要があり、処理の高速化を妨げていた。なお、上記重なり領域3が最終的に描画される部分である。
【0004】
そこで、上記問題を解決するために、例えば特開平8−63609号公報では、図7に示す構成の画像処理装置が開示されている。図において、コマンド処理手段10は、入力されるPDLデータを解釈し、文字やグラフィック、イメージ等のデータを輪郭図形のベクタデータとして描画手段11に供給し、クリップ領域のデータをクリップ領域描画手段15に供給する。描画手段11は、コマンドをコマンドFIFO12に供給し、上記ベクタデータから座標データを算出することにより、ビットマップデータを生成し、該ビットマップデータをデータFIFO13に供給する。コマンドFIFO12およびデータFIFO13は、いわゆるバッファであり、コマンドFIFO12は、順次、コマンドを画像合成制御手段14に供給し、データFIFO13は、順次、ビットマップデータを画像合成制御手段14に供給する。
【0005】
また、クリップ領域描画手段15は、上記クリップ領域のデータに従って、クリップ領域からビットマップデータを生成し、クリップ・バッファ制御手段16に供給する。クリップ・バッファ制御手段16は、上記描画されたクリップ領域のビットマップデータをクリップ・バッファ17に書き込む。
【0006】
画像合成制御手段14は、上記コマンドに従って、描画データのビットマップデータと、クリップ・バッファ17に格納されているクリップのビットマップデータとの論理積をとり、マスキングをかけるか否かを選択し、描画すべき部分におけるビットマップデータのみをフレーム・バッファ制御手段18に供給する。フレーム・バッファ制御手段18は、上記描画すべきビットマップデータをフレーム・バッファ19に書き込む。該フレーム・バッファ19に書き込まれた最終的なビットマップデータは、画像データを出力するための出力装置20に供給される。
【0007】
ここで、図8および図9は、従来の画像処理装置の動作を説明するためのフローチャートである。まず、クリップコマンドを受信した場合の動作について図8を参照して説明する。上記画像処理装置は、PostscriptなどのPDLデータを受信した際、ステップSa1で、コマンド処理手段10により、クリップコマンドを受信すると、ステップSa2で、受信したクリップコマンドをクリップ領域描画手段15に供給し、クリップ領域を指定する。次に、ステップSa3で、クリップ領域描画手段15により、クリップ領域に外接する矩形領域の座標値(Xmin、Ymin)、(Xmax、Ymax)を算出した後、ステップSa4で、上記クリップ領域が長方形か否かを判断する。そして、クリップ領域が長方形でなければ、ステップSa5に進み、クリップ・バッファ17を参照中であるか否かを判断する。
【0008】
ここで、クリップ・バッファ17を参照していなければ、ステップSa6に進み、クリップ領域に対応するクリップ・バッファ17の位置に「1」を書き込むことにより、クリップ領域を描画し、当該処理を終了する。一方、クリップ領域が長方形でなければ、ステップSa7に進み、クリップ・バッファ17を使用するか否かを示す参照フラグをオフとし、クリップ・バッファ17を使用しないように設定し、当該処理を終了する。
【0009】
次に、描画コマンドを受信した場合の動作について図9を参照して説明する。画像処理装置は、PostscriptなどのPDLデータを受信した際、ステップSb1で、コマンド処理手段10により、描画コマンドを受信すると、ステップSb2で、描画領域に外接する矩形領域の座標値(X’min、Y’min)、(X’max、Y’max)を算出した後、ステップSb3で、先にクリップ・バッファ17に描画したクリップ領域と上記描画データの矩形領域とが重なるか否かを判断する。重なっていなければマスキングする必要がないので、何もせずに当該処理を終了する。
【0010】
一方、クリップ領域と上記描画データの矩形領域とが重なった場合には、ステップSb4に進み、描画処理の実行コマンドを発行し、ステップSb5で、クリップ・バッファ参照フラグがオンであるか否かを判断する。そして、クリップ・バッファ参照フラグがオンである場合には、ステップSb6で、クリップ・バッファ参照モードで処理を実行する。すなわち、画像合成制御手段14によって、ビットマップデータに変換された描画データと、該描画データの描画座標に対応する座標のクリップ・バッファ17のデータとの論理積(AND)をとった後、フレーム・バッファ19に書き込む。
【0011】
一方、クリップ・バッファ参照フラグがオフである場合には、ステップSb7で、クリップ・バッファ非参照モードで処理を実行する。すなわち、この場合、クリップ領域が長方形でないので、クリップ・バッファ17を参照することなく、描画データをフレーム・バッファ19に書き込む。
【0012】
このように、上述した従来の画像処理装置では、クリップのビットマップデータをクリップ・バッファ19に書き込む一方、文字やグラフィックスなどの描画データを描画手段11によりビットマップデータに変換した後、画像合成制御手段14によって、ビットマップデータに変換された描画データと、該描画データの描画座標に対応する座標のクリップ・バッファ17のデータとの論理積(AND)をとった後、フレーム・バッファ19に書き込む。この結果、クリップ・バッファ17に描画されているクリップ領域のマスキングを、複雑な演算を必要とせずに高速に行うことができる。
【0013】
【発明が解決しようとする課題】
ところで、ユーザが複数のクリップ領域2a,2bを明示的に初期化せずに設定した場合、Postscriptでは、図10に示すように、クリップ領域2a,2bとが重なる重なり領域が新たなクリップ領域2cとなる(以下、この状況を「多重クリップ」という)。しかしながら、上述した従来の画像処理装置では、多重クリップによる新たなクリップ領域2cを設定するには、クリップ・バッファ17に描画した最初のクリップデータを消去して、クリップ領域2a,2b同士の重なりを算出し、再び、その新たなクリップ領域2cをクリップ・バッファ17に書き込む必要があり、結局、複雑な演算が必要となり、処理の高速化を妨げるという問題があった。
【0014】
この発明は上述した事情に鑑みてなされたもので、互いに重なり合う複数のクリップ領域が設定された場合であっても、多重クリップによる描画処理を高速で実行することができる画像処理装置を提供することを目的としている。
【0015】
【課題を解決するための手段】
上述した問題点を解決するために、請求項1の発明では、クリップ領域と描画データとの重なり部分を抽出し、該重なり部分の描画データを描画する画像処理装置において、前記クリップ領域を格納する格納手段と、前記格納手段に格納されている第1のクリップ領域に第1のデータを書き込む第1のデータ書込手段と、第2のクリップ領域以降のクリップ領域の外側に対して、前記格納手段に前記第1のデータとは異なる第2のデータを上書きする第2のデータ書込手段と、前記第2のデータ書込手段による前記格納手段へのデータ書き込み結果に基づいて、描画データに対してクリップ処理を施すクリップ処理手段とを具備することを特徴とする。
【0016】
また、請求項2記載の発明では、請求項1記載の画像処理装置において、前記格納手段に格納されているクリップ領域と前記第2のクリップ領域以降のクリップ領域の各々とを重ね合わせた場合における外接矩形領域を算出する演算手段を具備し、前記第2のデータ書込手段は、前記演算手段によって算出された外接矩形領域内であって、第2のクリップ領域以降のクリップ領域の外側に対して、前記格納手段に前記第1のデータとは異なる第2のデータを上書きすることを特徴とする。
【0017】
この発明によれば、格納手段に格納されている第1のクリップ領域に対しては、第1のデータ書込手段により第1のデータを書き込み、第2のクリップ領域以降のクリップ領域に対しては、第2のデータ書込手段により、その外側に対して、前記格納手段に前記第1のデータとは異なる第2のデータを上書きし、クリップ処理手段により、前記第2のデータ書込手段による前記格納手段へのデータ書き込み結果に基づいて、描画データに対してクリップ処理を施すようにしたので、互いに重なり合う複数のクリップ領域が設定された場合であっても、互いに重なり合った場合の最終的なクリップ領域を取得することが可能になるとともに、多重クリップによる描画処理を高速で実行することが可能となる。
【0018】
【発明の実施の形態】
次に図面を参照してこの発明の実施形態について説明する。
A.実施形態の構成
A−1.画像処理装置の構成
図1は、本発明の一実施形態による画像処理装置の構成を示すブロック図である。なお、図7に対応する部分には同一の符号を付けて説明を省略する。図において、多重クリップ判定手段25は、重なり合ったクリップ領域が複数設定されているか否かを判定する。外接矩形領域データ格納手段26は、クリップ領域描画手段15により描画されたクリップ領域の輪郭に外接する矩形領域の座標データ(クリップパスという)を格納する。次に、クリップバッファ・アクセスデータ制御手段27は、多重クリップ判定手段25の判定結果が多重クリップであると判定された場合、複数のクリップ領域が重なった部分を新たなクリップ領域として生成する。すなわち、クリップバッファ・アクセスデータ制御手段27は、外接矩形領域データ格納手段26に格納されている複数のクリップパス(設定された複数のクリップ領域の輪郭に外接する矩形領域の輪郭)のうち、該当する2つのクリップパスの外接矩形領域座標データのX/Y軸の最小値/最大値に従って、重なり部分(論理和)の矩形領域(新たなクリップ領域)を設定し、その矩形領域の内部で、かつ対応するクリップパスの外側の領域をデータ「0」とするようにアクセスすべく、クリップ領域描画手段15を制御する。
【0019】
B.実施形態の動作
次に、本実施形態による画像処理装置の動作について説明する。ここで、図2は、画像処理装置の動作を説明するためのフローチャートである。画像処理装置は、PostscriptなどのPDLデータを受信した際、ステップSc1で、コマンド処理手段10により、クリップコマンドを受信すると、ステップSc2で、多重クリップ判定手段25により、多重クリップであるか否か、言い換えると、2度目以降のクリップコマンドであるか否かを判断する。
【0020】
そして、多重クリップでない場合、すなわち、1番目のクリップコマンドである場合には、ステップSc3に進み、受信したクリップコマンドをクリップ領域描画手段15に供給し、クリップ領域C1を指定する(図1の▲1▼)。ここで、上記1番目のクリップ領域C1が図3(a)に示すような位置および形状であるとする。次に、ステップSc4で、クリップ領域描画手段15により、図3(b)に示すように、クリップ領域C1に外接する矩形領域S1の座標値(Xmin、Ymin)、(Xmax、Ymax)を算出する。該矩形領域S1の座標値は、外接矩形領域データ格納手段26に格納される(図1の▲2▼)。その後、ステップSc5で、上記クリップ領域C1を囲む矩形領域S1が長方形か否かを判断する。そして、クリップ領域C1を囲む矩形領域C1が長方形でなければ、ステップSc6に進み、クリップ・バッファ17を参照中であるか否かを判断する。
【0021】
ここで、クリップ・バッファ17を参照していなければ、ステップSc7に進み、クリップ領域C1に対応するクリップ・バッファ17の位置に「1」データを書き込むことにより、すなわち、クリップ領域C1の内部に「1」データを書き込み、クリップ領域C1を描画し、当該処理を終了する。一方、クリップ領域C1を囲む矩形領域S1が長方形でなければ、ステップSc8に進み、クリップ・バッファ17を使用するか否かを示す参照フラグをオフとし、クリップ・バッファ17を使用しないように設定し、当該処理を終了する。
【0022】
一方、受信したクリップコマンドが多重クリップである場合、すなわち2度目以降のクリップコマンドである場合には、ステップSc9に進み、クリップ領域描画手段15により、外接矩形領域データ格納手段から前のクリップ領域C1の矩形領域S1の座標値を読み出す(図1の▲2▼)。なお、ここで、ページ設定の初期化や明示的なクリップ・バッファ17のクリア指示があった場合には、クリップ・バッファ17の内容を消去する。次に、ステップSc10で、図4(a)に示すように、前のクリップ領域C1と今回のクリップ領域C2とを囲む矩形領域S2の座標値(Xmin、Ymin’)、(Xmax’、Ymax)を算出する。実際には、今回のクリップ領域C2のベクトルデータから該クリップ領域C2に外接する矩形領域を求め、該矩形領域と上記矩形領域S1との論理和をとり、新たな矩形領域S2を算出する。該矩形領域S2の座標値は、外接矩形領域データ格納手段26に供給され、データが更新される(図1の▲2▼)。そして、多重クリップ判定手段25は、クリップバッファ・アクセスデータ制御部27に多重クリップであることを知らせる(図1の▲3▼)。
【0023】
多重クリップ判定手段25から多重クリップであるという報告を受けたクリップバッファ・アクセスデータ制御部27は、ステップSc5で、上記矩形領域S2の内部で、かつ今回のクリップ領域C2の外側を、図4(b)に示すように、「0」データで、クリップ・バッファに描画することにより、クリップ領域C1において重なっていない部分を消去し、重なっている領域を残す。この結果、図5に示すように、前のクリップ領域C1と今回のクリップ領域C2との重なり部分のみが「1」となって残る。そして、該重なり部分が新たなクリップ領域CNEWとなり、該クリップ領域CNEWを囲む矩形領域が外接矩形領域データ格納手段26に格納される。
【0024】
また、引き続いてコマンド処理手段10がクリップコマンドを受信した場合は、上述した処理を繰り返し実行する。このとき、前のクリップ領域としては、上記新たなクリップ領域CNEWを用いるようにする。この結果、クリップコマンドを受信する度にクリップ領域が更新される。
【0025】
そして、描画コマンドを受信した場合には、前述した従来の画像処理装置と同様に、図9に示すフローチャートの処理を実行する。すなわち、画像合成制御手段14によって、ビットマップデータに変換された描画データと、クリップ・バッファ17に描画されたクリップデータとの論理積(AND)をとった後、フレーム・バッファ19に書き込む。このように、複数のクリップ領域が設定された場合であっても、簡単な処理(演算)で、最終的なクリップ領域を生成することができるので、マスキング処理を高速で実行することができる。
【0026】
なお、上述した実施形態では、出力装置を印刷装置として説明したが、これに限らず、ワークステーションやパソコン等のディスプレイに、例えばDTPのように高品位なフォントや複雑な図形およびそのクリッピングを高速に表示する場合に適用しても有効である。
【0027】
【発明の効果】
以上、説明したように、この発明によれば、請求項1記載の発明によれば、格納手段に格納されている第1のクリップ領域に対しては、第1のデータ書込手段により第1のデータを書き込み、第2のクリップ領域以降のクリップ領域に対しては、第2のデータ書込手段により、その外側に対して、前記格納手段に前記第1のデータとは異なる第2のデータを上書きし、クリップ処理手段により、前記第2のデータ書込手段による前記格納手段へのデータ書き込み結果に基づいて、描画データに対してクリップ処理を施すようにしたので、互いに重なり合う複数のクリップ領域が設定された場合であっても、互いに重なり合った場合の最終的なクリップ領域を取得することができるとともに、多重クリップによる描画処理を高速で実行することができるという利点が得られる。
【0028】
また、請求項2記載の発明によれば、請求項1記載の画像処理装置において、前記格納手段に格納されているクリップ領域と前記第2のクリップ領域以降のクリップ領域の各々とを重ね合わせた場合における外接矩形領域を演算手段によって算出し、前記第2のデータ書込手段によって、前記演算手段によって算出された外接矩形領域内であって、第2のクリップ領域以降のクリップ領域の外側に対して、前記格納手段に前記第1のデータとは異なる第2のデータを上書きするようにしたので、互いに重なり合う複数のクリップ領域が設定された場合であっても、互いに重なり合った場合の最終的なクリップ領域を取得することができるとともに、多重クリップによる描画処理を高速で実行することができるという利点が得られる。
【図面の簡単な説明】
【図1】本発明の実施形態による画像処理装置の構成を示すブロック図である。
【図2】本実施形態による画像処理装置の動作を説明するためのフローチャートである。
【図3】本実施形態による画像処理装置の動作を説明するための概念図である。
【図4】本実施形態による画像処理装置の動作を説明するための概念図である。
【図5】本実施形態による画像処理装置の動作を説明するための概念図である。
【図6】単一のクリップ領域を指定した場合におけるマスキング処理の動作を説明するための概念図である。
【図7】従来の画像処理装置の構成を示すブロック図である。
【図8】従来の画像処理装置の動作を説明するためのフローチャートである。
【図9】従来の画像処理装置の動作を説明するためのフローチャートである。
【図10】複数のクリップ領域を指定した場合におけるマスキング処理を説明するための概念図である。
【符号の説明】
11 描画手段
14 画像合成制御手段(クリップ処理手段)
15 クリップ領域描画手段(第1のデータ書込手段、演算手段)
17 クリップ・バッファ(格納手段)
19 フレーム・バッファ
25 多重クリップ判定手段(判定手段)
26 外接矩形領域データ格納手段(外接矩形領域格納手段)
27 クリップバッファ・アクセスデータ制御部(第2のデータ書込手段)
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus that performs clipping associated with a process of painting characters or figures.
[0002]
[Prior art]
Conventionally, in an image processing apparatus that receives a PDL such as Postscript, interprets the PDL, and draws characters, graphics, and images, the user performs masking processing separately from a preset drawing area. Any area can be set as a clip area. Here, FIG. 9 is a conceptual diagram for explaining masking processing by a conventional image processing apparatus.
[0003]
In the image processing apparatus, as shown in FIG. 6, based on the original drawing data (characters, graphics, images) 1 and clip data (size, shape, position, etc.) relating to the clip area 2 designated by the user. The overlap area 3 between the drawing data 1 and the clip area 2 is calculated, and it is automatically determined which part is drawn and which part is masked, and only a predetermined part 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, in order to calculate the overlap region 3 between the drawing data 1 and the clip region 2, it is necessary to perform a complicated calculation, which hinders the speeding up of the processing. Note that the overlapping region 3 is a portion finally drawn.
[0004]
In order to solve the above problem, for example, Japanese Patent Laid-Open No. 8-63609 discloses an image processing apparatus having the configuration shown in FIG. In the figure, command processing means 10 interprets input PDL data, supplies data such as characters, graphics, and images to drawing means 11 as contour graphic vector data, and clip area data as clip area drawing means 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. The command FIFO 12 and the data FIFO 13 are so-called buffers. The command FIFO 12 sequentially supplies commands to the image composition control unit 14, and the data FIFO 13 sequentially supplies bitmap data to the image composition control unit 14.
[0005]
Further, the clip area drawing unit 15 generates bitmap data from the clip area according to the data of the clip area and supplies it to the clip buffer control unit 16. The clip buffer control unit 16 writes the bitmap data of the drawn clip area into the clip buffer 17.
[0006]
In accordance with the above command, the image composition control means 14 performs a logical product of the bitmap data of the drawing data and the bitmap data of the clip stored in the clip buffer 17, and selects whether or not to perform masking. Only the bitmap data in the portion to be 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]
Here, FIGS. 8 and 9 are flowcharts for explaining the operation of the conventional image processing apparatus. First, the operation when a clip command is received will be described with reference to FIG. When the PDL data such as Postscript is received, the image processing apparatus receives the clip command by the command processing means 10 in step Sa1, and supplies the received clip command to the clip area drawing means 15 in step Sa2. Specify the clip area. Next, after calculating the coordinate values (Xmin, Ymin) and (Xmax, Ymax) of the rectangular area circumscribing the clip area by the clip area drawing means 15 in step Sa3, in step Sa4, whether the clip area is rectangular or not. Judge whether or not. If the clip area is not rectangular, the process proceeds to step Sa5 to determine whether or not the clip buffer 17 is being referred to.
[0008]
If the clip buffer 17 is not referred to, the process proceeds to step Sa6, where “1” is written in the position of the clip buffer 17 corresponding to the clip area, thereby drawing the clip area and terminating the processing. . On the other hand, if the clip area is not rectangular, the process proceeds to step Sa7, the reference flag indicating whether or not the clip buffer 17 is used is turned off, the clip buffer 17 is set not to be used, and the process is terminated. .
[0009]
Next, an operation when a drawing command is received will be described with reference to FIG. When the image processing apparatus receives PDL data such as Postscript and receives a drawing command from the command processing means 10 in step Sb1, the image processing apparatus receives coordinate values (X′min, After calculating Y′min) and (X′max, Y′max), it is determined in step Sb3 whether the clip area previously drawn in the clip buffer 17 overlaps the rectangular area of the drawing data. . If it does not overlap, there is no need to mask, so the process is terminated without doing anything.
[0010]
On the other hand, if the clip area overlaps the rectangular area of the drawing data, the process proceeds to step Sb4 to issue a drawing process execution command. In step Sb5, it is determined whether or not the clip buffer reference flag is on. to decide. If the clip buffer reference flag is on, processing is executed in the clip buffer reference mode in step Sb6. That is, the image composition control means 14 takes a logical product (AND) of the drawing data converted into the bitmap data and the data in the clip buffer 17 at the coordinates corresponding to the drawing coordinates of the drawing data, and then the frame. Write to buffer 19
[0011]
On the other hand, if the clip buffer reference flag is off, processing is executed in the clip buffer non-reference mode in step Sb7. That is, in this case, since the clip area is not rectangular, the drawing data is written into the frame buffer 19 without referring to the clip buffer 17.
[0012]
As described above, in the conventional image processing apparatus described above, 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, and then the image composition is performed. The control means 14 calculates the logical product (AND) of the drawing data converted into bitmap data and the data in the clip buffer 17 at the coordinates corresponding to the drawing coordinates of the drawing data, and then stores them in the frame buffer 19. Write. As a result, the masking of the clip area drawn in the clip buffer 17 can be performed at high speed without requiring a complicated operation.
[0013]
[Problems to be solved by the invention]
By the way, when the user sets a plurality of clip areas 2a and 2b without explicitly initializing, in Postscript, as shown in FIG. 10, an overlapping area overlapping the clip areas 2a and 2b is a new clip area 2c. (This situation is hereinafter referred to as “multiple clips”). However, in the above-described conventional image processing apparatus, in order to set a new clip area 2c by multiple clips, the first clip data drawn in the clip buffer 17 is deleted, and the clip areas 2a and 2b overlap each other. There is a problem in that it is necessary to calculate and write the new clip area 2c again into the clip buffer 17, which eventually necessitates a complicated operation and hinders the speeding up of processing.
[0014]
The present invention has been made in view of the above-described circumstances, and provides an image processing apparatus capable of executing drawing processing by multiple clips at high speed even when a plurality of overlapping clip areas are set. It is an object.
[0015]
[Means for Solving the Problems]
In order to solve the above-described problems, in the first aspect of the present invention, an overlapping portion between a clip area and drawing data is extracted, and the clip area is stored in an image processing apparatus that draws the drawing data of the overlapping portion. The storage means, the first data writing means for writing the first data in the first clip area stored in the storage means, and the storage outside the clip area after the second clip area Second data writing means for overwriting the second data different from the first data in the means, and the drawing data based on the result of data writing to the storage means by the second data writing means And clip processing means for performing a clip process.
[0016]
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 after the second clip area are overlapped. Computation means for calculating a circumscribed rectangular area is provided, wherein the second data writing means is within the circumscribed rectangular area calculated by the computing means and is outside the clip area after the second clip area. The storage means overwrites second data different from the first data.
[0017]
According to the present invention, the first data is written to the first clip area stored in the storage means by the first data writing means, and the clip areas after the second clip area are written. The second data writing means overwrites the storage means with second data different from the first data on the outside by the second data writing means, and the second data writing means by the clip processing means. Since the clip processing is performed on the drawing data based on the result of writing the data to the storage means according to the above, even when a plurality of clip areas that overlap each other are set, It is possible to acquire a clear clip area and to perform drawing processing by multiple clips at high speed.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
Next, an embodiment of the present invention will be described with reference to the drawings.
A. Configuration of Embodiment A-1. Configuration of Image Processing Device FIG. 1 is a block diagram showing the configuration of an image processing device according to an embodiment of the present invention. It should be noted that portions corresponding to those in FIG. In the figure, multiple clip determination means 25 determines whether or not a plurality of overlapping clip areas are set. The circumscribed rectangle area data storage means 26 stores coordinate data (referred to as a clip path) of a rectangle area circumscribing the outline of the clip area drawn by the clip area drawing means 15. Next, when it is determined that the determination result of the multiple clip determination unit 25 is a multiple clip, the clip buffer / access data control unit 27 generates a portion where a plurality of clip areas overlap as a new clip area. In other words, the clip buffer / access data control unit 27 corresponds to the corresponding one of the plurality of clip paths (the outlines of the rectangular areas circumscribing the set outlines of the plurality of clip areas) stored in the circumscribed rectangular area data storage means 26. In accordance with the X / Y axis minimum / maximum values of the circumscribing rectangular area coordinate data of the two clip paths to be performed, a rectangular area (new clip area) of the overlapping portion (logical sum) is set, and inside the rectangular area, In addition, the clip area drawing unit 15 is controlled so as to access the area outside the corresponding clip path so that the data is set to “0”.
[0019]
B. Operation of Embodiment Next, the 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. When the image processing apparatus receives PDL data such as Postscript and receives a clip command by the command processing means 10 in step Sc1, the image processing apparatus determines whether or not the clip is a multiple clip by the multiple clip determination means 25 in step Sc2. In other words, it is determined whether or not the clip command is for the second time or later.
[0020]
If it is not a multiple clip, that is, if it is the first clip command, the process proceeds to step Sc3, the received clip command is supplied to the clip area drawing means 15, and the clip area C1 is designated (▲ in FIG. 1). 1 ▼). Here, it is assumed that the first clip region C1 has a position and shape as shown in FIG. Next, in step Sc4, as shown in FIG. 3B, the clip area drawing means 15 calculates the coordinate values (Xmin, Ymin), (Xmax, Ymax) of the rectangular area S1 circumscribing the clip area C1. . The coordinate value of the rectangular area S1 is stored in the circumscribed rectangular area data storage means 26 ((2) in 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 to determine whether or not the clip buffer 17 is being referred to.
[0021]
If the clip buffer 17 is not referred to, the process proceeds to step Sc7, where “1” data is written in the position of the clip buffer 17 corresponding to the clip area C1, that is, “inside the clip area C1”. 1 ”data is written, the clip area C1 is drawn, and the process ends. On the other hand, if the rectangular area S1 surrounding the clip area C1 is not rectangular, the process proceeds to step Sc8, the reference flag indicating whether or not the clip buffer 17 is used is turned off, and the clip buffer 17 is set not to be used. Then, the process ends.
[0022]
On the other hand, if the received clip command is a multiple clip, that is, if it is the second or subsequent clip command, the process proceeds to step Sc9, where the clip area drawing means 15 causes the circumscribed rectangular area data storage means to move to the previous clip area C1. The coordinate value of the rectangular area S1 is read ((2) in FIG. 1). Here, when there is a page setting initialization or an explicit instruction to clear the clip buffer 17, the contents of the clip buffer 17 are deleted. Next, at step Sc10, as shown in FIG. 4A, the coordinate values (Xmin, Ymin ′), (Xmax ′, Ymax) of the rectangular area S2 surrounding the previous clip area C1 and the current clip area C2 are displayed. Is calculated. Actually, a rectangular area circumscribing the clip area C2 is obtained from the vector data of the current clip area C2, and a logical sum of the rectangular area and the rectangular area S1 is calculated to calculate a new rectangular area S2. The coordinate value of the rectangular area S2 is supplied to the circumscribed rectangular area data storage means 26, and the data is updated ((2) in FIG. 1). Then, the multiple clip determination unit 25 notifies the clip buffer / access data control unit 27 that the clip is a multiple clip ((3) in FIG. 1).
[0023]
The clip buffer / access data control unit 27 that has received the report indicating that it is a multiple clip from the multiple clip determination means 25 shows the inside of the rectangular area S2 and the outside of the current clip area C2 in step Sc5 as shown in FIG. As shown in b), by drawing in the clip buffer with “0” data, the non-overlapping portion in the clip area C1 is erased, and the overlapping area remains. As a result, as shown in FIG. 5, only the overlapping portion of the previous clip area C1 and the current clip area 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 rectangle area data storage means 26.
[0024]
If the command processing unit 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, the clip area is updated every time a clip command is received.
[0025]
When a drawing command is received, the process of the flowchart shown in FIG. 9 is executed in the same manner as the conventional image processing apparatus described above. That is, the image composition control means 14 takes a 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 it in the frame buffer 19. As described above, even when a plurality of clip areas are set, the final clip area can be generated by a simple process (calculation), so that the masking process can be executed at high speed.
[0026]
In the above-described embodiments, the output device has been described as a printing device. However, the present invention is not limited to this, and high-quality fonts and complex graphics such as DTP and clipping thereof are displayed on a display such as a workstation or a personal computer at high speed. It is effective even if it is applied to the display.
[0027]
【The invention's effect】
As described above, according to the present invention, according to the present invention, the first clip area stored in the storage means is first processed by the first data writing means. The second data different from the first data is stored in the storage means by the second data writing means for the clip area after the second clip area. And the clip processing means performs the clip processing on the drawing data based on the data writing result to the storage means by the second data writing means. Even if is set, the final clip area when they overlap each other can be acquired, and drawing processing with multiple clips can be executed at high speed An advantage in that it is obtained.
[0028]
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 after the second clip area are overlapped. The circumscribed rectangular area in the case is calculated by the calculating means, and the second data writing means is within the circumscribed rectangular area calculated by the calculating means and is outside the clip area after the second clip area. Since the second data different from the first data is overwritten in the storage means, even if a plurality of clip areas that overlap each other are set, the final data when they overlap each other is set. There are advantages that a clip area can be acquired and that drawing processing by multiple clips can be executed at high speed.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention.
FIG. 2 is a flowchart for explaining the operation of the image processing apparatus according to the present embodiment;
FIG. 3 is a conceptual diagram for explaining the operation of the image processing apparatus according to the present embodiment.
FIG. 4 is a conceptual diagram for explaining the operation of the image processing apparatus according to the present embodiment.
FIG. 5 is a conceptual diagram for explaining the operation of the image processing apparatus according to the present embodiment;
FIG. 6 is a conceptual diagram for explaining an operation of a masking process when a single clip area is designated.
FIG. 7 is a block diagram illustrating a configuration of a conventional image processing apparatus.
FIG. 8 is a flowchart for explaining the operation of a conventional image processing apparatus.
FIG. 9 is a flowchart for explaining the operation of a conventional image processing apparatus.
FIG. 10 is a conceptual diagram for explaining masking processing when a plurality of clip areas are designated.
[Explanation of symbols]
11 Drawing means 14 Image composition 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 Multiple clip determination means (determination means)
26 circumscribed rectangular area data storage means (circumscribed rectangular area storage means)
27 Clip buffer access data control unit (second data writing means)

Claims (4)

クリップ領域と描画データとの重なり部分を抽出し、該重なり部分の描画データを描画する画像処理装置において、
前記クリップ領域を格納する格納手段と、
前記格納手段に格納されている第1のクリップ領域に第1のデータを書き込む第1のデータ書込手段と、
第2のクリップ領域以降のクリップ領域の外側に対して、前記格納手段に前記第1のデータとは異なる第2のデータを上書きする第2のデータ書込手段と、
前記第2のデータ書込手段による前記格納手段へのデータ書き込み結果に基づいて、描画データに対してクリップ処理を施すクリップ処理手段と
を具備することを特徴とする画像処理装置。
In an image processing apparatus that extracts an overlapping portion between a clip area and drawing data and draws the drawing data of the overlapping portion,
Storage means for storing the clip area;
First data writing means for writing first data to a first clip area stored in the storage means;
Second data writing means for overwriting the storage means with second data different from the first data outside the clip area after the second clip area;
An image processing apparatus comprising: clip processing means for performing clip processing on drawing data based on a result of data writing to the storage means by the second data writing means.
前記格納手段に格納されているクリップ領域と前記第2のクリップ領域以降のクリップ領域の各々とを重ね合わせた場合における外接矩形領域を算出する演算手段を具備し、
前記第2のデータ書込手段は、前記演算手段によって算出された外接矩形領域内であって、第2のクリップ領域以降のクリップ領域の外側に対して、前記格納手段に前記第1のデータとは異なる第2のデータを上書きすることを特徴とする請求項1記載の画像処理装置。
Computation means for calculating a circumscribed rectangular area when the clip area stored in the storage means and each of the clip areas after the second clip area are overlaid,
The second data writing means includes the first data in the storage means within the circumscribed rectangular area calculated by the computing means and outside the clip area after the second clip area. The image processing apparatus according to claim 1, wherein different second data is overwritten.
前記格納手段に格納されているクリップ領域の外接矩形領域を格納する外接矩形領域格納手段を具備し、
前記演算手段は、前記外接矩形領域格納手段に格納されている外接矩形領域と、現在注目しているクリップ領域の外接矩形領域との論理和をとることにより、双方を重ね合わせた場合における外接矩形領域を取得することを特徴とする請求項2記載の画像処理装置。
A circumscribed rectangle area storing means for storing a circumscribed rectangle area of the clip area stored in the storage means;
The arithmetic means calculates a logical sum of the circumscribed rectangular area stored in the circumscribed rectangular area storage means and the circumscribed rectangular area of the clip area of interest, so that the circumscribed rectangle in the case where both are superimposed The image processing apparatus according to claim 2, wherein an area is acquired.
前記クリップ領域が複数供給された場合、該複数のクリップ領域が互いに重なり合う多重クリップであるか否かを判定する判定手段を具備することを特徴とする請求項1ないし3いずれかに記載の画像処理装置。4. The image processing according to claim 1, further comprising: a determination unit configured to determine whether or not the plurality of clip areas are multiple clips that overlap each other when the plurality of clip areas are supplied. 5. apparatus.
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 JPH10187376A (en) 1998-07-14
JP3612909B2 true 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
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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3754975B2 (en) 2003-11-18 2006-03-15 キヤノン株式会社 Information processing apparatus and information processing method

Cited By (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

Also Published As

Publication number Publication date
JPH10187376A (en) 1998-07-14

Similar Documents

Publication Publication Date Title
CN111798372B (en) Image rendering method, device, equipment and readable medium
JP2585515B2 (en) Drawing method
US6952217B1 (en) Graphics processing unit self-programming
JP3845045B2 (en) Image processing apparatus, image processing method, image forming apparatus, printing apparatus, and host PC
JP2631946B2 (en) Knit design system
JP3612909B2 (en) Image processing device
EP0749099B1 (en) Blend control system
US8605112B2 (en) Graphics drawing apparatus, method, and program and recording medium on which the program is recorded
JP2704010B2 (en) Display system, bold line display method, and information processing device
US5227770A (en) Electronic boundary generation
JPH0567216A (en) Graphic painting-out device
JPH0812692B2 (en) Image processing device
JP3202535B2 (en) Image synthesis device
JP3129717B2 (en) Image processing apparatus and image processing method
JP2747055B2 (en) Graphic display device
JP3553249B2 (en) Image generating apparatus and image generating method
JPH0721155A (en) Central arithmetic processor
JP3238188B2 (en) Frame memory control device and frame memory control method
JP2714114B2 (en) Graphic processing method and graphic system
JP2956692B1 (en) Graphics display device
JPH0969166A (en) Information processor, its method and storage medium
JP2664948B2 (en) Image processing apparatus and image processing method
JP2787487B2 (en) Circuit for determining the position of a line segment displayed and operated on a computer system
JP2006031160A (en) Graphic object processing method
JP2595884B2 (en) Rubber band frame display device

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