JP2004126939A - Picture forming device and its control method - Google Patents

Picture forming device and its control method Download PDF

Info

Publication number
JP2004126939A
JP2004126939A JP2002290150A JP2002290150A JP2004126939A JP 2004126939 A JP2004126939 A JP 2004126939A JP 2002290150 A JP2002290150 A JP 2002290150A JP 2002290150 A JP2002290150 A JP 2002290150A JP 2004126939 A JP2004126939 A JP 2004126939A
Authority
JP
Japan
Prior art keywords
smoothness
line
print data
graphic
shape
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2002290150A
Other languages
Japanese (ja)
Inventor
Hitomi Kimura
木村 仁美
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2002290150A priority Critical patent/JP2004126939A/en
Publication of JP2004126939A publication Critical patent/JP2004126939A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a picture forming device and its control method by which various rendering processing are available. <P>SOLUTION: The curve portion of a graphic provided by a rendering instruction in print data is provided with straight-line fitting with a first smoothness. The curve shape of the graphic at its line tip portion is provided with the straight-line approximating with a second smoothness. Where, the first smoothness and the second smoothness are separately specified. In addition, the curve shape of the graphic at its line connection portion is provided with the straight-line approximating with a separate specification-allowed third smoothness. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、画像形成装置およびその制御方法に関し、特に、ページ記述言語で記述されたプリントデータに基づいて画像形成装置における描画処理に関する。
【0002】
【従来の技術】
ページ記述言語で記述されたプリントデータに基づいて画像を形成する画像形成装置においては、供給されたプリントデータにおける描画命令で与えられる図形に曲線部分が含まれる場合には、そのプリントデータにおいて指定されている平滑度でもって、その曲線部分の直線近似が行われる。
【0003】
一方、上記図形の各ラインの先端部の形状を円弧状にする場合や、ライン同士の接続部の形状を丸める場合等、その曲線化のための直線近似は、上記した図形における曲線部分用の平滑度、あるいは画像形成装置にあらかじめ設定された平滑度でもって行っていた。
【0004】
【発明が解決しようとする課題】
しかしながら、上記のように図形曲線部用の平滑度による直線近似でラインの先端部の形状やライン同士の接続部の形状を曲線化する場合には、ページ記述言語の種類によっては予期しない描画結果が得られてしまうことがあった。
【0005】
また、画像形成装置にあらかじめ設定された平滑度による直線近似で各ラインの先端部の形状やライン同士の接続部の形状を曲線化する場合には、ページ記述言語の種類によってはその仕様で規定された出力が保証されないという問題があった。
【0006】
本発明はこのような問題点に鑑みてなされたものであり、多様な描画処理を行うことのできる画像形成装置およびその制御方法を提供することを目的とする。
【0007】
【課題を解決するための手段】
上記した目的を達成するために、例えば本発明の画像形成装置は以下の構成を備える。すなわち、ページ記述言語で記述されたプリントデータに基づいて画像を形成する画像形成装置であって、前記プリントデータにおける描画命令で与えられる図形の曲線部分を、第1の平滑度でもって直線近似する第1の近似手段と、前記図形のライン先端部の曲線形状を、第2の平滑度でもって直線近似する第2の近似手段とを有し、前記第1および第2の平滑度はそれぞれ別個に指定されうることを特徴とする。
【0008】
【発明の実施の形態】
以下、図面を参照して本発明の好適な実施の形態について詳細に説明する。
【0009】
本発明の実施の形態を適用可能な画像形成装置の一例としてレーザビームプリンタの構成例を説明する。なお、本実施形態は、レーザビームプリンタのみならず、例えばインクジェットプリンタ、MFP(Multi Function Printer)等、他の方式の画像形成装置にも適用可能である。
【0010】
図1は、実施形態における画像形成装置の構成を示すブロック図である。
【0011】
図1において、102がレーザビームプリンタ(以下、単に「プリンタ」という。)である。101はデータ処理装置で、例えばコンピュータであり、プリントデータの供給源、あるいはプリンタ102の制御装置として機能する。
【0012】
プリンタ102は、図示の如く、プリンタコントローラ103、パネル部104、プリンタエンジン105で構成される。
【0013】
プリンタコントローラ103は、データ処理装置101から供給されるページ記述言語(以下、「PDL」という。)で記述されたプリントデータに基づいて、ページ毎にビットマップデータを生成し、そのビットマップデータをプリンタエンジン105に送出する。
【0014】
プリンタエンジン105は、プリンタコントローラ103から供給されるビットマップデータに基づいて、感光ドラム上に潜像を形成し、いわゆる電子写真方式に従いその潜像を記録媒体上に転写・定着することにより画像を記録する。
【0015】
パネル部104は、ユーザインタフェースとして使用される。ユーザは、パネル部104を操作することにより、所望の動作を指示することができる。また、パネル部104には、プリンタ102の処理内容や、ユーザへの警告内容が表示される。
【0016】
図2は、プリンタ102の構成を示す図である。
【0017】
同図において、201はプリンタ筐体で、202はユーザが各種指示を与えるためのスイッチ、メッセージやプリンタの設定内容等を表示するLED表示器やLCD表示器等が配された操作パネルであり、図1に示すパネル部104に相当する。203はボード収容部であり、プリンタコントローラ103およびプリンタエンジン105の電子回路部分を構成するボードを収容する。
【0018】
220は用紙(記録媒体)Sを保持する用紙カセットであり、不図示の仕切り板によって電気的に用紙サイズを検知する機構を有する。221はカセットクラッチであり、用紙カセット220上に載置された用紙Sの最上位の一枚を取り出して、取り出した用紙Sを不図示の駆動手段から伝達される駆動力によって給紙ローラ222まで搬送するカムを有する。このカムは、給紙の度に間欠的に回転し、1回転に対応して1枚の用紙Sを給紙する。223は用紙検知センサで、それぞれ用紙カセット220に保持されている用紙Sの量を検知する。
【0019】
給紙ローラ222は用紙Sの先端部をレジストシャッタ224まで搬送するローラである。224はレジストシャッタであり、用紙Sを押圧することにより給紙を停止することができる。230は手差しトレイ、231は手差し給紙クラッチである。手差し給紙クラッチ231は用紙Sの先端を手差し給紙ローラ232まで搬送するために使用され、手差し給紙ローラ232は用紙Sの先端をレジストシャッタ224まで搬送するために使用される。画像記録に供する用紙Sは、用紙カセット220および手差しトレイ230のいずれかの給紙手段を選択して給紙される。
【0020】
プリンタエンジン105は、プリンタコントローラ103と所定の通信プロトコルにしたがって通信を行い、プリンタコントローラ103からの指示にしたがって用紙カセット220手差しトレイ230の中からいずれかの給紙手段を選択し、印刷の開始指示に応じて該当する給紙手段よりレジストシャッタ224まで用紙Sを搬送する。プリンタエンジン105は、上記したとおり、給紙手段、潜像の形成、転写、定着等の電子写真プロセスに関する機構、排紙手段およびそれらの制御手段を含む。
【0021】
204a、204b、204c、204dはそれぞれ、感光ドラム205a、205b、205c、205dやトナー保持部等を有する画像記録部であり、電子写真プロセスにより、用紙S上にトナー像を形成する。一方、206a、206b、206c、206dはレーザスキャナ部であり、対応する画像記録部にレーザビームによる画像情報を供給する。
【0022】
画像記録部204a、204b、204c、204dには、用紙Sを搬送する用紙搬送ベルト250が複数の回転ローラ251〜254によって用紙搬送方向(図の下から上方向)に扁平に張設され、その最上流部においては、バイアスを印加した吸着ローラ225によって、用紙を用紙搬送ベルト250に静電吸着させる。またこのベルト搬送面に対向して4個の感光ドラム205a、205b、205c、205dが直線状に配設されており、画像形成手段を構成している。画像記録部204a、204b、204c、204dのそれぞれには、感光ドラムの周辺近傍を順次取り囲んで、帯電器、現像器が配置されている。
【0023】
207a、207b、207c、207dはそれぞれ、レーザスキャナ部206a、206b、206c、206dにおけるレーザユニットであり、プリンタコントローラ103から送出される画像信号(/VIDEO信号)に応じて、内蔵の半導体レーザを駆動し、レーザビームを発射する。レーザユニット207a、207b、207c、207dから発せられたレーザビームはそれぞれ、ポリゴンミラー(回転多面鏡)208a、208b、208c、208dにより走査され、感光ドラム205a、205b、205c、205d上に潜像を形成する。
【0024】
260は定着器で、画像記録部204a、204b、204c、204dにより用紙Sに形成されたトナー画像を記録紙Sに熱定着させる。261は搬送ローラで、用紙Sを排紙搬送する。262は排紙センサで、用紙Sの排紙状態を検知する。263は排紙ローラ兼両面印刷用搬送路切替えローラで、用紙Sを排紙方向へ搬送し、用紙Sの搬送指示が排紙の場合はそのまま排紙トレイ264に排紙し、搬送指示が両面搬送の場合は、用紙Sの後端が排紙センサ262を通過した直後に回転方向を逆向きに変え、スイッチバックすることにより用紙Sを両面印刷用搬送路270へ搬送する。265は排紙積載量検知センサで、排紙トレイ264上に積載された用紙Sの積載量を検知する。
【0025】
270は両面印刷用搬送路であり、排紙ローラ兼両面印刷用搬送路切替えローラ263により両面印刷用に搬送された用紙Sは、両面搬送ローラ271〜274によって再びレジストシャッタ224まで搬送されて画像記録部204a、204b、204c、204dへの搬送指示を待つ。
【0026】
なお、プリンタ102には、さらにオプションカセットや封筒フィーダ等のオプションユニットを装備することができる。
【0027】
次に、プリンタコントローラ103の構成について図3を参照しながら説明する。
【0028】
プリンタコントローラ103は、データ処理装置101から送出されたプリントデータや装置の動作を指示する設定を入力する入力バッファ(図示せず)と、データ処理装置101へ送出する信号や機器情報データを含む出力データを一時的に保持する出力バッファ(図示せず)とが設けられているホストインタフェース(I/F)部302を有し、ホストI/F部302はデータ処理装置101との間でやりとりされる信号や通信パケットの入出力部を構成するとともに、データ処理装置101との間の通信制御を行う。
【0029】
ホストI/F部302を介して入力されるPDLで記述されたプリントデータは、画像データ発生部303に与えられる。画像データ発生部303は、入力されたプリントデータを解析(例えばPDL解析処理)し、その解析結果から中間言語である描画オブジェクトを生成し、更にプリンタエンジン105が処理可能なビットマップデータを生成する。具体的には、プリントデータの解析とその解析によるオブジェクト情報の作成を行うとともに、そのオブジェクト情報の作成と並行してラスタライズ処理を行う。このラスタライズ処理では、プリントデータに含まれる表示色RGB(加法混色)からプリンタエンジンが処理可能なYMCK(減法混色)への変換、プリントデータに含まれる文字コードから予め格納されているビットパターン、アウトラインフォントなどのフォントデータへの変換などを行い、ページ単位あるいはバンド単位でビットマップデータを作成し、このビットマップデータに対しディザパターンを用いる疑似階調処理を施し、プリンタエンジンにおいて印刷処理が可能なビットマップデータを生成する。
【0030】
この作成されたビットマップデータは、画像メモリ305に格納される。画像メモリ305に格納されているビットマップデータの読み出しはDMA制御部308で制御され、このDMA制御部308による画像メモリ305からのビットマップデータの読み出しに対する制御はCPU309からの指示に基づき行われる。
【0031】
画像メモリ305から読み出されたビットマップデータは、エンジンI/F部306を介してビデオ信号としてエンジン105に転送される。エンジンI/F部306には、エンジン105へ転送するビデオ信号を一時的に保持する出力バッファ(図示せず)と、エンジン105から送出された信号を一時的に保持する入力バッファ(図示せず)とが設けられ、エンジンI/F部306は、エンジン105との間でやりとりされる信号の入出力部を構成するとともに、エンジン105との間の通信制御を行う。
【0032】
パネル部104(図1を参照)から操作入力によって出されたモード設定に関する指示などは、パネルI/F部301を介して入力され、パネルI/F部301はパネル部104とCPU309との間のインタフェースを構成する(操作入力によって出されるモード設定などのプリンタに対する指示はデータ処理装置101と双方向の通信を行うホストI/F部302を介しても指示可能である。)。
【0033】
CPU309は、パネル部104もしくはデータ処理装置101から指示されたモードに応じて上述の各ブロックに対する制御を行い、この制御はROM304に格納されている制御プログラムに基づき実行される。このROM304に格納されている制御プログラムはシステムクロックによってタスクと称されるロードモジュール単位に時分割制御を行うためのOS(オペレーティングシステム)と、このOSによって機能単位に実行制御される複数のロードモジュールとから構成される。このロードモジュールを含む制御プログラムは必要に応じてEEPROM(不揮発性メモリ)310に格納される。
【0034】
CPU309による演算処理の作業領域としては、RAM307が使用される。上述のCPU309を含む各ブロックはシステムバス320に接続されている。システムバス320は、アドレスバスとシステムバスとから構成される。
【0035】
図4は、プリンタコントローラ103における入力データの処理経路を機能ブロック別に示す図である。
【0036】
データ処理装置101からホストI/F部302を介して入力されたプリントデータは画像データ発生部303に入力される。この画像データ発生部303に入力されたプリントデータは、PDL解析部(303a)によりコマンド解析され、次に描画オブジェクト生成部(303b)において描画オブジェクト(中間言語)として生成されRAM307上の作業メモリに一時的に記録される。
【0037】
そしてRAM307上の作業メモリから描画メモリを随時読み出しラスタライズ処理を行い(303c)、最終的に記録媒体に記録される画像データをビットマップイメージに展開し画像メモリ305に格納、エンジンI/F部306に対して出力を行い記録媒体への記録が行われる。
【0038】
さて、ページ記述言語で記述されたプリントデータに基づいて画像を形成する画像形成装置においては、従来より、供給されたプリントデータにおける描画命令で与えられる図形に曲線部分が含まれる場合には、そのプリントデータにおいて指定されている平滑度でもって、その曲線部分の直線近似が行われる。図10は、このような直線近似のようすを示す図である。描画命令で与えられるパス図形の曲線部分は、図示のような近似曲線で表現される。また、ここでいう平滑度とは、図示のように、理想曲線と近似曲線との距離を表すものである。
【0039】
そして一方、従来の画像形成装置においては、先に説明したとおり、上記図形の各ラインの先端部の形状を円弧状にする場合や、ライン同士の接続部の形状を丸める場合のその曲線部の直線近似は、上記した図形の曲線部分の直線近似用の平滑度、あるいは画像形成装置にあらかじめ設定された平滑度でもって行われていた。
【0040】
実施形態における図形描画処理を説明する前に、上記のような従来の図形描画処理について詳しく説明しておく。
【0041】
図5は、従来の図形描画処理を示すフローチャートである。
【0042】
まず、ホストI/Fを介して入力されPDL解析部により解析されたプリントデータが図形描画コマンドであった場合、パス図形における曲線部分の直線近似用の平滑度(例えばその図形描画コマンドに含まれる)を参照し(ステップS501)、与えられた平滑度でもってパス図形の曲線部分の直線近似を行う(ステップS502)。
【0043】
次に、図形描画コマンドの詳細がライン描画コマンドであるか否かを判断し(ステップS503)、ライン描画コマンドでない場合(例えばフィル描画コマンドであった場合)、ステップS502で生成された直線データをビットマップデータ生成処理(ステップS506)を行い処理が終了する。ステップS506では具体的には、ステップS502で生成された近似直線で囲まれた閉領域と印刷面をピクセル単位に区切った格子上の領域との重なりの有無を判定し、閉領域と重なるピクセルは黒、重ならないピクセルは白という判断を行い、プリンタエンジンへの出力データとしてのビットマップデータが生成される。
【0044】
一方、ステップS503で、ライン描画コマンドであると判定された場合には、ライン生成処理に必要な設定情報(例えば線幅、破線形状、先端形状、線接続形状など)を参照し(ステップS504)、その後、アウトライン生成処理が行われる(ステップS505)。このとき、アウトライン生成処理においては線幅、先端形状、線接続形状などの設定情報に従いラインを形成する閉領域を決定しているが、各ラインの先端形状やライン同士の接続部の形状(線接続形状)を生成する際にはステップS501で参照されたパス図形における曲線部分用の平滑度が使用される。そうして、ビットマップデータ生成処理を行い(ステップS506)処理が終了する。
【0045】
以上が従来の図形描画処理であるが、このように従来の画像形成装置では、先に説明したとおり、上記のようにパス図形における曲線部分用の平滑度による直線近似で各ラインの先端形状や線接続形状を曲線化する場合には、ページ記述言語の種類によっては予期しない描画結果が得られてしまうことがあった。また、画像形成装置にあらかじめ設定された平滑度による直線近似で各ラインの先端部の形状やライン同士の接続部の形状を曲線化する場合には、ページ記述言語の種類によってはその仕様で規定された出力が保証されないという問題があった。
【0046】
本発明はこの点を改良したものであり、以下、実施形態における図形描画処理を詳しく説明する。
【0047】
図6は、実施形態における図形描画処理を示すフローチャートである。このフローチャートに対応するプログラムはROM304に制御プログラムとして格納され、RAM307にロードされてCPU309によって実行されるものである。
【0048】
まず、ホストI/F302を介して入力されPDL解析部303aにより解析されたプリントデータが図形描画コマンドであった場合、パス図形における曲線部分用の第1の平滑度(例えばその図形描画コマンドに含まれる)を参照し(ステップS601)、与えられた第1の平滑度でもってパス図形における曲線部分の直線近似を行う(ステップS602)。
【0049】
次に、図形描画コマンドの詳細がライン描画コマンドであるか否かを判断し(ステップS603)、ライン描画コマンドでない場合(例えばフィル描画コマンドであった場合)、ステップS602で生成された近似直線についてのビットマップデータ生成を行い(ステップS608)、図形描画処理が終了する。ステップS608では具体的には、ステップS602で生成された近似直線で囲まれた閉領域と印刷面をピクセル単位に区切った格子上の領域との重なりの有無を判定し、閉領域と重なるピクセルは黒、重ならないピクセルは白という判断を行い、プリンタエンジンへの出力データとしてのビットマップデータが生成される。
【0050】
一方、ステップS603で、ライン描画コマンドであると判定された場合には、ライン生成処理に必要な設定情報(例えば線幅、破線形状、先端形状、線接続形状など)を参照し(ステップS604)、その後、先端形状として曲線の図形(円など)が指定されているか否かを判断する(ステップS605)。ここで、先端形状に曲線が指定されていない場合はステップS604で参照した設定情報に従いアウトライン生成処理(ステップS607)した後、ビットマップデータ生成処理(ステップS608)を行い図形描画処理が終了する。
【0051】
一方、ステップS605で、先端形状として曲線を含む図形が指定されていた場合、その先端形状の直線近似用の第2の平滑度を参照する(ステップS606)。この先端形状用の第2の平滑度は、例えばライン描画コマンドに含まれているものであり、上記したパス図形における曲線部分用の第1の平滑度とは別個に指定されうる。
【0052】
その後、アウトライン生成処理を行う(ステップS607)。このアウトライン生成処理においては、線幅、先端形状、接続点形状などの設定情報に従いラインを形成する閉領域を決定しているが、先端形状は、ステップS606で参照した先端形状用の第2の平滑度による直線近似で曲線化される。そして、その後ビットマップデータ生成処理を行い(ステップS608)、処理が終了する。
【0053】
以上の処理は、パス図形における曲線部分用の第1の平滑度とは別個に指定されうる、先端形状用の第2の平滑度による直線近似でラインの先端形状を曲線化するようにしたが、さらに、線接続形状用の第3の平滑度を別個に指定し、それによる直線近似で線接続形状を曲線化するようにしてもよい。
【0054】
図7は、さらに線接続形状用の第3の平滑度を別個に指定し、それによる直線近似で線接続形状を曲線化するようにした図形描画処理を示すフローチャートである。
【0055】
このフローチャートに示した処理内容は上述の図6のフローチャートに示した処理内容とほぼ同様であり、図7のフローチャートにおいては、図6のフローチャートにおける処理ステップと同様の処理ステップには共通の参照番号を付してある。相違する点は、図7の処理では、ステップS606とS607の間に、線接続形状として曲線の図形(円など)が指定されているか否かを判断するステップS701、ステップS701の判断結果がyesの場合に、線接続形状直線近似用の第3の平滑度を参照するステップS702が追加されている点である。この第3の平滑度は、例えばライン描画コマンドに含まれているものであり、上記したパス図形における曲線部分用の第1の平滑度、ラインの先端形状用の第2の平滑度とはそれぞれ別個に指定されうる。
【0056】
ステップS702の第3の平滑度の参照が行われた場合には、次のステップS607では、ライン同士の接続部における形状は第3の平滑度による直線近似で曲線化されることになる。
【0057】
図9は、以上説明した図7のフローチャートに従う図形描画処理の処理結果の一例を示す図である。図示のように、パス図形のラインは、その先端形状が第2の平滑度による直線近似で曲線化され、線接続部の形状が第3の平滑度による直線近似で曲線化される。
【0058】
以上説明したように、本実施形態によれば、パス図形のライン先端部の曲線形状は、パス図形の曲線部用の第1の平滑度とは別個に指定されうるライン先端部用の第2の平滑度でもって直線近似し、さらに、上記第1および第2の平滑度とは別個に指定されうる第3の平滑度でもってライン同士の接続部の曲線形状を直線近似するようにした。これによって多様な描画処理を実現でき、予期せぬ描画結果が得られることがなくなる。そして、ページ記述言語の仕様に規定された出力を保証することも可能になる。
【0059】
ところで、上述のような第2の平滑度、第3の平滑度はプリントデータにおける描画コマンドに含まれるものであるから、これらの第2および第3の平滑度を指定することができるかどうかはページ記述言語(PDL)の仕様に依存する。そこで、使用するPDLの種類に応じて、ライン先端や接続部の曲線形状の直線近似の平滑度を設定するようにしてもよい。
【0060】
例えば、図11に示すような構造の平滑度利用一覧を例えばろM304に記憶しておく。図11では、PDLの種類A,B,Cに対して、パス図形処理用の平滑度(第1の平滑度)、先端形状直線近似用平滑度(第2の平滑度)、線接続形状直線近似用平滑度(第3の近似度)のそれぞれについて、設定可否情報(設定可は○、設定不可は×で示される)、設定可であるときの設定値、ならびに初期値が記述されている。この図11の例によれば、プリンタ記述言語Aの場合には、第1,第2,第3の平滑度のいずれも設定可である。プリンタ記述言語Bでは、第1の平滑度しか設定することができない。また、プリンタ記述言語Cの場合には、第3の平滑度は設定できないことが理解されよう。
【0061】
そして、図形描画処理において、PDLの種類を判別し、上記の平滑度利用一覧を参照して、そのPDLの種類に対応する平滑度を求める。
【0062】
図8は、使用するPDLの種類に応じて、ライン先端や接続部の曲線形状の直線近似の平滑度を設定する図形描画処理の一例を示すフローチャートである。
【0063】
まず、ホストI/F302を介して入力されPDL解析部303aにより解析されたプリントデータが図形描画コマンドであった場合、パス図形における曲線部分用の第1の平滑度(例えばその図形描画コマンドに含まれる)を参照し(ステップS801)、与えられた第1の平滑度でもってパス図形における曲線部分の直線化近似を行う(ステップS802)。
【0064】
次に、図形描画コマンドの詳細がライン描画コマンドであるか否かを判断し(ステップS803)、ライン描画コマンドでない場合(例えばフィル描画コマンドであった場合)、ステップS802で生成された近似直線についてのビットマップデータ生成を行い(ステップS816)、図形描画処理が終了する。ステップS816では具体的には、ステップS802で生成された近似直線で囲まれた閉領域と印刷面をピクセル単位に区切った格子上の領域との重なりの有無を判定し、閉領域と重なるピクセルは黒、重ならないピクセルは白という判断を行い、プリンタエンジンへの出力データとしてのビットマップデータが生成される。
【0065】
一方、ステップS803で、ライン描画コマンドであると判定された場合には、ライン生成処理に必要な設定情報(例えば線幅、破線形状、先端形状、線接続形状など)を参照し(ステップS804)、その後、図形描画を実行するPDLの種類を確認する(ステップS805)。PDLの種類は例えば、与えられたプリントデータから自動的に判別することが可能である。次に、図11に示したような平滑度利用一覧を参照する(ステップS806)。
【0066】
そして、先端形状として曲線の図形(円など)が指定されているか否かを判断する(ステップS807)。ここで、先端形状として曲線が指定されていない場合は、ステップS810に進み、平滑度利用一覧から、ステップS805で確認したPDLの種類に対応する先端形状直線近似用平滑度(第2の平滑度)の初期値を参照し、ステップS811に進む。
【0067】
一方、ステップS807で、先端形状として曲線を含む図形が指定されていた場合はステップS808に進み、平滑度利用一覧から、ステップS805で確認したPDLの種類に対応する先端形状直線近似用平滑度(第2の平滑度)を設定可能かどうかを判断する。設定可能であれば対応する設定値を参照し(ステップS809)、設定不可であれば対応する初期値が参照される(ステップS810)。
【0068】
次に、線接続形状として曲線の図形(円など)が指定されているか否かを判断する(ステップS811)。ここで、線接続形状に曲線が指定されていない場合は、ステップS814に進み、平滑度利用一覧から、ステップS805で確認したPDLの種類に対応する線接続形状直線近似用平滑度(第3の平滑度)の初期値を参照し、ステップS815に進む。
【0069】
一方、ステップS811で、線接続形状として曲線を含む図形が指定されていた場合はステップS812に進み、平滑度利用一覧から、ステップS805で確認したPDLの種類に対応する線接続形状直線近似用平滑度(第3の平滑度)を設定可能かどうかを判断する。設定可能であれば対応する設定値を参照し(ステップS813)、設定不可であれば対応する初期値が参照される(ステップS814)。
【0070】
次に、アウトライン生成処理を行う(ステップS815)。このアウトライン生成処理においては線幅、先端形状、線接続形状などの設定情報に従いラインを形成する閉領域を決定しているが、各ラインの先端形状や線接続形状を生成する際にはステップS809、S810、S813、S814のいづれかで参照した平滑度が使用される。そうして、ビットマップデータ生成処理(ステップS816)を行い処理が終了する。
【0071】
以上の処理によれば、使用するPDLの種類に応じて、ライン先端や接続部の曲線形状の直線近似の平滑度を設定することができる。
【0072】
(他の実施形態)
以上、本発明の実施形態を詳述したが、本発明は、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用してもよい。
【0073】
なお、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラム(図6〜8のいずれかに示すフローチャートに対応したプログラム)を、システムあるいは装置に直接あるいは遠隔から供給し、そのシステムあるいは装置のコンピュータがその供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。その場合、プログラムの機能を有していれば、その形態はプログラムである必要はない。
【0074】
従って、本発明の機能処理をコンピュータで実現するために、そのコンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明の特許請求の範囲には、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。
【0075】
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。
【0076】
プログラムを供給するための記録媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。
【0077】
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、そのホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明のクレームに含まれるものである。
【0078】
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。
【0079】
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現され得る。
【0080】
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現される。
【0081】
【発明の効果】
本発明によれば、多様な描画処理を行うことのできる画像形成装置およびその制御方法を提供することを目的とする。ができる。
【図面の簡単な説明】
【図1】実施形態における画像形成装置の構成を示すブロック図である。
【図2】実施形態におけるプリンタの構成を示す図である。
【図3】実施形態におけるプリンタコントローラの構成を示す図である。
【図4】プリンタコントローラにおける入力データの処理経路を機能ブロック別に示した図である。
【図5】従来の図形描画処理を示すフローチャートである。
【図6】実施形態における図形描画処理を示すフローチャートである。
【図7】実施形態における別の態様の図形描画処理を示すフローチャートである。
【図8】実施形態における別の態様の図形描画処理を示すフローチャートである。
【図9】実施形態における図形描画処理の処理結果の一例を示す図である。
【図10】曲線形状の直線近似のようすを示す図である。
【図11】平滑度利用一覧の構造例を示す図である。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image forming apparatus and a control method thereof, and more particularly, to a drawing process in an image forming apparatus based on print data described in a page description language.
[0002]
[Prior art]
In an image forming apparatus that forms an image based on print data described in a page description language, if a figure given by a drawing command in supplied print data includes a curved portion, the image data is specified in the print data. The straight line approximation of the curve portion is performed with the given smoothness.
[0003]
On the other hand, when the shape of the leading end of each line of the figure is an arc, or when the shape of the connecting portion between the lines is rounded, the straight line approximation for the curve is performed for the curved part in the above figure. This is performed with the smoothness or the smoothness previously set in the image forming apparatus.
[0004]
[Problems to be solved by the invention]
However, if the shape of the end of a line or the shape of the connection between lines is curved by linear approximation using the smoothness for the figure curve part as described above, unexpected drawing results may occur depending on the type of page description language. Was sometimes obtained.
[0005]
Also, when the shape of the tip of each line or the shape of the connecting portion between lines is curved by linear approximation using a smoothness preset in the image forming apparatus, the specifications are defined depending on the type of page description language. There is a problem that the output is not guaranteed.
[0006]
The present invention has been made in view of such a problem, and has as its object to provide an image forming apparatus capable of performing various drawing processes and a control method thereof.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, for example, an image forming apparatus of the present invention has the following configuration. That is, an image forming apparatus for forming an image based on print data described in a page description language, wherein a curve portion of a graphic given by a drawing command in the print data is linearly approximated by a first smoothness. A first approximation unit, and a second approximation unit for linearly approximating the curve shape of the line tip of the figure with a second smoothness, wherein the first and second smoothnesses are respectively different from each other. It can be designated as.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.
[0009]
A configuration example of a laser beam printer will be described as an example of an image forming apparatus to which an embodiment of the present invention can be applied. Note that the present embodiment is applicable not only to a laser beam printer but also to other types of image forming apparatuses such as an inkjet printer and an MFP (Multi Function Printer).
[0010]
FIG. 1 is a block diagram illustrating a configuration of the image forming apparatus according to the embodiment.
[0011]
In FIG. 1, reference numeral 102 denotes a laser beam printer (hereinafter, simply referred to as “printer”). Reference numeral 101 denotes a data processing device, for example, a computer, which functions as a supply source of print data or a control device of the printer 102.
[0012]
The printer 102 includes a printer controller 103, a panel unit 104, and a printer engine 105 as illustrated.
[0013]
The printer controller 103 generates bitmap data for each page based on print data described in a page description language (hereinafter, referred to as “PDL”) supplied from the data processing apparatus 101, and generates the bitmap data. The data is sent to the printer engine 105.
[0014]
The printer engine 105 forms a latent image on a photosensitive drum based on the bitmap data supplied from the printer controller 103, and transfers and fixes the latent image on a recording medium according to a so-called electrophotographic method, thereby forming an image. Record.
[0015]
The panel unit 104 is used as a user interface. By operating the panel unit 104, the user can instruct a desired operation. The panel unit 104 displays processing contents of the printer 102 and warning contents to the user.
[0016]
FIG. 2 is a diagram illustrating a configuration of the printer 102.
[0017]
In the figure, reference numeral 201 denotes a printer housing; 202, an operation panel on which a switch for giving various instructions by a user, an LED display, an LCD display, and the like for displaying messages, printer settings, and the like are arranged; This corresponds to the panel unit 104 shown in FIG. Reference numeral 203 denotes a board accommodating unit, which accommodates a board constituting an electronic circuit portion of the printer controller 103 and the printer engine 105.
[0018]
Reference numeral 220 denotes a paper cassette for holding the paper (recording medium) S, and has a mechanism for electrically detecting the paper size by a partition plate (not shown). Reference numeral 221 denotes a cassette clutch, which takes out the topmost sheet of the paper S placed on the paper cassette 220 and transfers the taken out paper S to the paper feed roller 222 by a driving force transmitted from a driving unit (not shown). It has a cam to transport. This cam rotates intermittently each time paper is fed, and feeds one sheet of paper S corresponding to one rotation. A sheet detection sensor 223 detects the amount of the sheet S held in the sheet cassette 220.
[0019]
The paper feed roller 222 is a roller that conveys the leading end of the paper S to the registration shutter 224. Reference numeral 224 denotes a registration shutter, which can stop paper feeding by pressing the paper S. 230 is a manual feed tray, and 231 is a manual feed clutch. The manual paper feed clutch 231 is used to transport the leading edge of the paper S to the manual paper feed roller 232, and the manual paper feed roller 232 is used to transport the leading edge of the paper S to the registration shutter 224. The sheet S to be used for image recording is fed by selecting one of the sheet feeding means of the sheet cassette 220 and the manual feed tray 230.
[0020]
The printer engine 105 communicates with the printer controller 103 according to a predetermined communication protocol, selects one of the paper cassettes 220 from the manual feed tray 230 according to an instruction from the printer controller 103, and issues a print start instruction. The sheet S is conveyed from the corresponding sheet feeding means to the registration shutter 224 in accordance with. As described above, the printer engine 105 includes a paper feeding unit, a mechanism related to an electrophotographic process such as formation, transfer, and fixing of a latent image, a paper discharging unit, and a control unit therefor.
[0021]
Reference numerals 204a, 204b, 204c, and 204d denote image recording units having photosensitive drums 205a, 205b, 205c, and 205d and a toner holding unit, respectively, and form a toner image on the paper S by an electrophotographic process. On the other hand, reference numerals 206a, 206b, 206c, and 206d denote laser scanner units, which supply image information using laser beams to corresponding image recording units.
[0022]
In the image recording units 204a, 204b, 204c, and 204d, a paper transport belt 250 that transports the paper S is stretched flat by a plurality of rotating rollers 251 to 254 in the paper transport direction (upward from the bottom in the figure). In the most upstream portion, the paper is electrostatically attracted to the paper transport belt 250 by the attracting roller 225 to which the bias is applied. Also, four photosensitive drums 205a, 205b, 205c, 205d are arranged linearly in opposition to the belt conveying surface, and constitute an image forming means. In each of the image recording units 204a, 204b, 204c, and 204d, a charger and a developing device are arranged so as to sequentially surround the periphery of the photosensitive drum.
[0023]
Reference numerals 207a, 207b, 207c, and 207d denote laser units in the laser scanner units 206a, 206b, 206c, and 206d, respectively, which drive a built-in semiconductor laser according to an image signal (/ VIDEO signal) sent from the printer controller 103. And emits a laser beam. The laser beams emitted from the laser units 207a, 207b, 207c, 207d are respectively scanned by polygon mirrors (rotating polygon mirrors) 208a, 208b, 208c, 208d, and latent images are formed on the photosensitive drums 205a, 205b, 205c, 205d. Form.
[0024]
Reference numeral 260 denotes a fixing unit that thermally fixes the toner image formed on the sheet S by the image recording units 204a, 204b, 204c, and 204d onto the recording sheet S. A transport roller 261 discharges and transports the sheet S. A paper discharge sensor 262 detects the paper discharge state of the paper S. Reference numeral 263 denotes a paper discharge roller and a conveyance path switching roller for double-sided printing. The paper S is conveyed in the paper discharge direction. In the case of conveyance, the sheet S is conveyed to the conveyance path 270 for double-sided printing by changing the rotation direction to the opposite direction immediately after the rear end of the sheet S passes the sheet ejection sensor 262 and performing switchback. Reference numeral 265 denotes a discharged paper stacking amount detection sensor which detects the stacked amount of the paper S stacked on the discharge tray 264.
[0025]
Reference numeral 270 denotes a conveyance path for double-sided printing. The sheet S conveyed for double-sided printing by the discharge roller / double-sided printing conveyance path switching roller 263 is conveyed again to the registration shutter 224 by the double-sided conveyance rollers 271 to 274 to form an image. It waits for a transport instruction to the recording units 204a, 204b, 204c, 204d.
[0026]
The printer 102 can be further provided with optional units such as an optional cassette and an envelope feeder.
[0027]
Next, the configuration of the printer controller 103 will be described with reference to FIG.
[0028]
The printer controller 103 includes an input buffer (not shown) for inputting print data transmitted from the data processing apparatus 101 and settings for instructing operation of the apparatus, and an output including a signal transmitted to the data processing apparatus 101 and device information data. It has a host interface (I / F) unit 302 provided with an output buffer (not shown) for temporarily holding data, and the host I / F unit 302 is exchanged with the data processing device 101. It configures an input / output unit for signals and communication packets, and controls communication with the data processing device 101.
[0029]
Print data described in PDL input via the host I / F unit 302 is provided to the image data generation unit 303. The image data generation unit 303 analyzes the input print data (for example, PDL analysis processing), generates a drawing object as an intermediate language from the analysis result, and further generates bitmap data that can be processed by the printer engine 105. . Specifically, the print data is analyzed and the object information is created by the analysis, and the rasterizing process is performed in parallel with the creation of the object information. In the rasterizing process, the display colors RGB (additive color mixture) included in the print data are converted into YMCK (subtractive color mixture) that can be processed by the printer engine. Performs conversion to font data such as fonts, creates bitmap data in page units or band units, performs pseudo gradation processing using a dither pattern on this bitmap data, and enables printing processing in the printer engine Generate bitmap data.
[0030]
The created bitmap data is stored in the image memory 305. The reading of the bitmap data stored in the image memory 305 is controlled by the DMA control unit 308, and the control of the reading of the bitmap data from the image memory 305 by the DMA control unit 308 is performed based on an instruction from the CPU 309.
[0031]
The bitmap data read from the image memory 305 is transferred to the engine 105 as a video signal via the engine I / F unit 306. The engine I / F unit 306 includes an output buffer (not shown) for temporarily holding a video signal to be transferred to the engine 105, and an input buffer (not shown) for temporarily holding a signal sent from the engine 105. ) Are provided, and the engine I / F unit 306 constitutes an input / output unit of a signal exchanged with the engine 105 and controls communication with the engine 105.
[0032]
An instruction related to mode setting or the like issued by an operation input from the panel unit 104 (see FIG. 1) is input via the panel I / F unit 301, and the panel I / F unit 301 operates between the panel unit 104 and the CPU 309. (Instructions to the printer, such as a mode setting issued by an operation input, can also be issued via the host I / F unit 302 that performs bidirectional communication with the data processing apparatus 101.)
[0033]
The CPU 309 controls each block described above according to the mode instructed from the panel unit 104 or the data processing device 101, and this control is executed based on a control program stored in the ROM 304. The control program stored in the ROM 304 includes an OS (Operating System) for performing time-division control on a load module basis called a task by a system clock, and a plurality of load modules executed and controlled on a function basis by the OS. It is composed of The control program including the load module is stored in an EEPROM (non-volatile memory) 310 as needed.
[0034]
The RAM 307 is used as a work area for the arithmetic processing by the CPU 309. Each block including the CPU 309 is connected to the system bus 320. The system bus 320 includes an address bus and a system bus.
[0035]
FIG. 4 is a diagram showing a processing path of input data in the printer controller 103 for each functional block.
[0036]
Print data input from the data processing device 101 via the host I / F unit 302 is input to the image data generation unit 303. The print data input to the image data generation unit 303 is subjected to command analysis by a PDL analysis unit (303a), then generated as a drawing object (intermediate language) by a drawing object generation unit (303b), and stored in a work memory on a RAM 307. Recorded temporarily.
[0037]
Then, the drawing memory is read from the working memory on the RAM 307 at any time and rasterized (303 c), and the image data finally recorded on the recording medium is developed into a bitmap image and stored in the image memory 305, and the engine I / F unit 306 And output to the recording medium.
[0038]
Now, in an image forming apparatus that forms an image based on print data described in a page description language, conventionally, when a figure given by a drawing command in supplied print data includes a curved portion, With the smoothness specified in the print data, a straight line approximation of the curve portion is performed. FIG. 10 is a diagram illustrating a state of such a linear approximation. The curve portion of the path graphic given by the drawing command is represented by an approximate curve as shown. Further, the smoothness here indicates a distance between an ideal curve and an approximate curve as shown in the figure.
[0039]
On the other hand, in the conventional image forming apparatus, as described above, when the shape of the leading end of each line of the figure is an arc shape, or when the shape of the connecting portion between the lines is rounded, The straight line approximation has been performed with the smoothness for straight line approximation of the curved portion of the figure or the smoothness preset in the image forming apparatus.
[0040]
Before describing the graphic drawing processing in the embodiment, the conventional graphic drawing processing as described above will be described in detail.
[0041]
FIG. 5 is a flowchart showing a conventional graphic drawing process.
[0042]
First, when the print data input via the host I / F and analyzed by the PDL analysis unit is a graphic drawing command, the smoothness for linear approximation of a curved portion in the path graphic (for example, included in the graphic drawing command) ) (Step S501), and a straight line approximation of the curved portion of the path graphic is performed with the given smoothness (step S502).
[0043]
Next, it is determined whether or not the details of the graphic drawing command are line drawing commands (step S503). If the command is not a line drawing command (for example, if it is a fill drawing command), the straight line data generated in step S502 is The bitmap data generation process (step S506) is performed, and the process ends. Specifically, in step S506, it is determined whether or not the closed area surrounded by the approximate straight line generated in step S502 overlaps with the area on the grid that divides the print surface into pixels. It is determined that black and non-overlapping pixels are white, and bitmap data is generated as output data to the printer engine.
[0044]
On the other hand, if it is determined in step S503 that the command is a line drawing command, reference is made to setting information (for example, line width, broken line shape, tip shape, line connection shape, etc.) necessary for line generation processing (step S504). Then, an outline generation process is performed (step S505). At this time, in the outline generation processing, the closed area for forming the line is determined according to the setting information such as the line width, the tip shape, and the line connection shape. However, the tip shape of each line and the shape of the connection part between the lines (line When generating the connection shape), the smoothness for the curved part in the path graphic referred to in step S501 is used. Then, a bitmap data generation process is performed (step S506), and the process ends.
[0045]
The above is the conventional graphic drawing process. As described above, in the conventional image forming apparatus, as described above, the shape of the tip of each line is obtained by the linear approximation using the smoothness for the curved portion in the path graphic as described above. When the line connection shape is curved, an unexpected drawing result may be obtained depending on the type of the page description language. Also, when the shape of the tip of each line or the shape of the connecting portion between lines is curved by linear approximation using a smoothness preset in the image forming apparatus, the specifications are defined depending on the type of page description language. There is a problem that the output is not guaranteed.
[0046]
The present invention improves this point, and the graphic drawing processing in the embodiment will be described in detail below.
[0047]
FIG. 6 is a flowchart illustrating the graphic drawing processing according to the embodiment. A program corresponding to this flowchart is stored in the ROM 304 as a control program, loaded into the RAM 307, and executed by the CPU 309.
[0048]
First, when the print data input via the host I / F 302 and analyzed by the PDL analysis unit 303a is a graphic drawing command, the first smoothness for a curved portion in the path graphic (for example, included in the graphic drawing command) (Step S 601), and a straight line approximation of a curved portion in the path graphic is performed with the given first smoothness (step S 602).
[0049]
Next, it is determined whether or not the details of the graphic drawing command are a line drawing command (step S603). If the command is not a line drawing command (for example, if it is a fill drawing command), the approximate straight line generated in step S602 is determined. Is generated (step S608), and the graphic drawing processing ends. Specifically, in step S608, it is determined whether or not the closed area surrounded by the approximate straight line generated in step S602 overlaps with the area on the grid that divides the print surface into pixels. It is determined that black and non-overlapping pixels are white, and bitmap data is generated as output data to the printer engine.
[0050]
On the other hand, if it is determined in step S603 that the command is a line drawing command, reference is made to setting information (for example, line width, broken line shape, tip shape, line connection shape, etc.) necessary for line generation processing (step S604). Then, it is determined whether a curved figure (such as a circle) is designated as the tip shape (step S605). If no curve is specified for the tip shape, outline generation processing (step S607) is performed according to the setting information referred to in step S604, then bitmap data generation processing (step S608) is performed, and the graphic drawing processing ends.
[0051]
On the other hand, if a figure including a curve is designated as the tip shape in step S605, the second smoothness for linear approximation of the tip shape is referred to (step S606). The second smoothness for the tip shape is included in, for example, a line drawing command, and can be specified separately from the first smoothness for a curved portion in the above-described path graphic.
[0052]
After that, outline generation processing is performed (step S607). In this outline generation processing, the closed area for forming the line is determined according to the setting information such as the line width, the tip shape, and the connection point shape. However, the tip shape is the second shape for the tip shape referred to in step S606. A curve is formed by linear approximation using smoothness. Then, bitmap data generation processing is performed (step S608), and the processing ends.
[0053]
In the above processing, the tip shape of the line is curved by linear approximation using the second smoothness for the tip shape, which can be specified separately from the first smoothness for the curved portion in the path graphic. Further, the third smoothness for the line connection shape may be separately specified, and the line connection shape may be curved by linear approximation.
[0054]
FIG. 7 is a flowchart showing a graphic drawing process in which a third smoothness for a line connection shape is separately specified, and the line connection shape is curved by linear approximation.
[0055]
The processing contents shown in this flowchart are almost the same as the processing contents shown in the above-mentioned flowchart of FIG. 6, and in the flowchart of FIG. 7, the same reference numerals are given to the same processing steps as the processing steps in the flowchart of FIG. Is attached. The difference is that, in the processing of FIG. 7, between steps S606 and S607, it is determined whether or not a curved figure (such as a circle) is designated as the line connection shape, and the determination results of step S701 are yes. Is that a step S702 of referring to the third smoothness for line connection shape straight line approximation is added in the case of. The third smoothness is included in, for example, a line drawing command. The first smoothness for the curved portion in the path graphic and the second smoothness for the tip of the line are respectively described above. It can be specified separately.
[0056]
When the third smoothness is referred to in step S702, in the next step S607, the shape of the connecting portion between the lines is curved by linear approximation using the third smoothness.
[0057]
FIG. 9 is a diagram illustrating an example of a processing result of the graphic drawing processing according to the flowchart of FIG. 7 described above. As shown in the drawing, the tip of the line of the path graphic is curved by linear approximation based on the second smoothness, and the shape of the line connecting portion is curved by linear approximation based on the third smoothness.
[0058]
As described above, according to the present embodiment, the curve shape of the line tip of the path graphic can be specified separately from the first smoothness for the curve of the path graphic. The linear shape is approximated by the smoothness of, and the curved shape of the connecting portion between the lines is linearly approximated by the third smoothness that can be specified separately from the first and second smoothnesses. Accordingly, various drawing processes can be realized, and an unexpected drawing result is not obtained. Then, it is possible to guarantee the output specified in the specification of the page description language.
[0059]
By the way, since the above-described second smoothness and third smoothness are included in the drawing command in the print data, it is determined whether the second and third smoothness can be designated. It depends on the specification of page description language (PDL). Therefore, the smoothness of the linear approximation of the curve shape of the line tip or the connection portion may be set according to the type of the PDL to be used.
[0060]
For example, a smoothness utilization list having a structure as shown in FIG. 11 is stored in the filter M304, for example. In FIG. 11, for PDL types A, B, and C, smoothness for path graphic processing (first smoothness), smoothness for tip shape straight line approximation (second smoothness), line connection shape straight line For each of the approximation smoothness degrees (third degree of approximation), settable information (settable is indicated by 、, settable not indicated by x), set values when settable, and initial values are described. . According to the example of FIG. 11, in the case of the printer description language A, any of the first, second, and third smoothnesses can be set. In the printer description language B, only the first smoothness can be set. It will be understood that the third smoothness cannot be set in the case of the printer description language C.
[0061]
Then, in the graphic drawing processing, the type of the PDL is determined, and the smoothness corresponding to the type of the PDL is obtained with reference to the above-described list of use of the smoothness.
[0062]
FIG. 8 is a flowchart illustrating an example of a graphic drawing process for setting the smoothness of the linear approximation of the curved shape of the line tip or the connection portion according to the type of PDL to be used.
[0063]
First, when the print data input via the host I / F 302 and analyzed by the PDL analysis unit 303a is a graphic drawing command, the first smoothness for a curved portion in the path graphic (for example, included in the graphic drawing command) Is performed (step S801), and the linearized approximation of the curve portion in the path graphic is performed with the given first smoothness (step S802).
[0064]
Next, it is determined whether or not the details of the graphic drawing command are a line drawing command (step S803). If the command is not a line drawing command (for example, if it is a fill drawing command), the approximate straight line generated in step S802 is determined. Is generated (step S816), and the graphic drawing process ends. Specifically, in step S816, it is determined whether or not the closed region surrounded by the approximate straight line generated in step S802 overlaps with the region on the grid that divides the print surface into pixels. It is determined that black and non-overlapping pixels are white, and bitmap data is generated as output data to the printer engine.
[0065]
On the other hand, if it is determined in step S803 that the command is a line drawing command, reference is made to setting information (for example, line width, broken line shape, tip shape, line connection shape, etc.) necessary for line generation processing (step S804). Then, the type of the PDL for executing the graphic drawing is confirmed (step S805). The type of PDL can be automatically determined from the given print data, for example. Next, a smoothness utilization list as shown in FIG. 11 is referred to (step S806).
[0066]
Then, it is determined whether or not a curved figure (such as a circle) is designated as the tip shape (step S807). If no curve is specified as the tip shape, the process proceeds to step S810, and from the smoothness utilization list, the tip shape straight line approximation smoothness (second smoothness) corresponding to the type of PDL confirmed in step S805. ), The process proceeds to step S811.
[0067]
On the other hand, if it is determined in step S807 that a figure including a curve has been specified as the tip shape, the process proceeds to step S808, and from the smoothness use list, the tip shape straight line approximation smoothness (corresponding to the type of PDL confirmed in step S805) It is determined whether (second smoothness) can be set. If the setting is possible, the corresponding setting value is referred to (step S809). If the setting is not possible, the corresponding initial value is referred to (step S810).
[0068]
Next, it is determined whether a curved figure (such as a circle) is designated as the line connection shape (step S811). Here, if no curve is specified for the line connection shape, the process proceeds to step S814, and from the list of smoothness utilization, the line connection shape straight line approximation smoothness (third degree) corresponding to the type of PDL confirmed in step S805. The process proceeds to step S815 with reference to the initial value of (smoothness).
[0069]
On the other hand, in step S811, if a figure including a curve is specified as the line connection shape, the process proceeds to step S812, and from the list of smoothness utilization, the line connection shape straight line approximation corresponding to the type of PDL confirmed in step S805. It is determined whether the degree (third smoothness) can be set. If the setting is possible, the corresponding setting value is referred to (step S813). If the setting is not possible, the corresponding initial value is referred to (step S814).
[0070]
Next, outline generation processing is performed (step S815). In this outline generation processing, a closed area for forming a line is determined according to setting information such as a line width, a tip shape, and a line connection shape. However, when generating a tip shape or a line connection shape of each line, step S809 is performed. , S810, S813 and S814 are used. Then, a bitmap data generation process (step S816) is performed, and the process ends.
[0071]
According to the above processing, it is possible to set the smoothness of the linear approximation of the curve shape of the line tip or the connection portion according to the type of the PDL used.
[0072]
(Other embodiments)
As described above, the embodiments of the present invention have been described in detail. However, the present invention may be applied to a system including a plurality of devices, or may be applied to an apparatus including a single device.
[0073]
According to the present invention, a software program (a program corresponding to the flowchart shown in any of FIGS. 6 to 8) for realizing the functions of the above-described embodiments is supplied directly or remotely to a system or apparatus, and This includes the case where the processing is also achieved by the computer of the apparatus reading and executing the supplied program code. In that case, the form does not need to be a program as long as it has the function of the program.
[0074]
Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. That is, the claims of the present invention also include the computer program itself for implementing the functional processing of the present invention.
[0075]
In this case, any form of the program, such as an object code, a program executed by an interpreter, and script data supplied to the OS, is applicable as long as the program has the function of the program.
[0076]
As a recording medium for supplying the program, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD-R).
[0077]
In addition, as a method for supplying the program, a client computer connects to an Internet homepage using a browser, and downloads the computer program itself of the present invention or a compressed file including an automatic installation function to a recording medium such as a hard disk from the homepage. Can also be supplied. Further, the present invention can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. In other words, a WWW server that allows a plurality of users to download a program file for implementing the functional processing of the present invention on a computer is also included in the claims of the present invention.
[0078]
In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and downloaded to a user who satisfies predetermined conditions from a homepage via the Internet to download key information for decryption. It is also possible to execute the encrypted program by using the key information and install the program on a computer to realize the program.
[0079]
The functions of the above-described embodiments are implemented when the computer executes the read program, and the OS or the like running on the computer executes a part of the actual processing based on the instructions of the program. Alternatively, the functions of the above-described embodiments can be realized by performing the entire process.
[0080]
Further, after the program read from the recording medium is written into the memory provided in the function expansion board inserted into the computer or the function expansion unit connected to the computer, the function expansion board or the A CPU or the like provided in the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are also realized by the processing.
[0081]
【The invention's effect】
According to the present invention, it is an object to provide an image forming apparatus capable of performing various drawing processes and a control method thereof. Can be.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image forming apparatus according to an embodiment.
FIG. 2 is a diagram illustrating a configuration of a printer according to the embodiment.
FIG. 3 is a diagram illustrating a configuration of a printer controller according to the embodiment.
FIG. 4 is a diagram illustrating a processing path of input data in a printer controller for each functional block.
FIG. 5 is a flowchart showing a conventional graphic drawing process.
FIG. 6 is a flowchart illustrating a graphic drawing process according to the embodiment.
FIG. 7 is a flowchart illustrating another example of a graphic drawing process according to the embodiment;
FIG. 8 is a flowchart illustrating another example of the graphic drawing process in the embodiment.
FIG. 9 is a diagram illustrating an example of a processing result of the graphic drawing processing according to the embodiment.
FIG. 10 is a diagram showing a state of linear approximation of a curved shape.
FIG. 11 is a diagram illustrating a structure example of a smoothness utilization list.

Claims (6)

ページ記述言語で記述されたプリントデータに基づいて画像を形成する画像形成装置であって、
前記プリントデータにおける描画命令で与えられる図形の曲線部分を、第1の平滑度でもって直線近似する第1の近似手段と、
前記図形のライン先端部の曲線形状を、第2の平滑度でもって直線近似する第2の近似手段と、
を有し、
前記第1および第2の平滑度はそれぞれ別個に指定されうることを特徴とする画像形成装置。
An image forming apparatus that forms an image based on print data described in a page description language,
First approximation means for linearly approximating a curve portion of a graphic given by a drawing command in the print data with a first smoothness;
Second approximation means for linearly approximating the curve shape at the line tip of the figure with a second smoothness;
Has,
The image forming apparatus according to claim 1, wherein the first and second smoothness levels can be individually specified.
前記図形のライン同士の接続部の曲線形状を、前記第1および第2の平滑度とは別個に指定されうる第3の平滑度でもって直線近似する第3の近似手段を更に有することを特徴とする請求項1に記載の画像形成装置。And a third approximation unit for linearly approximating a curved shape of a connecting portion between the lines of the graphic with a third smoothness that can be specified separately from the first and second smoothness. The image forming apparatus according to claim 1. 更に、
前記プリントデータを記述するページ記述言語の種類を判別する判別手段と、
判別したページ記述言語の種類に応じて、前記第1および第2の平滑度を設定する設定手段と、
を有することを特徴とする請求項1に記載の画像形成装置。
Furthermore,
Determining means for determining the type of page description language that describes the print data;
Setting means for setting the first and second smoothness according to the determined type of the page description language;
The image forming apparatus according to claim 1, further comprising:
更に、
前記プリントデータを記述するページ記述言語の種類を判別する判別手段と、
判別したページ記述言語の種類に応じて、前記第1、第2、第3の平滑度を設定する設定手段と、
を有することを特徴とする請求項2に記載の画像形成装置。
Furthermore,
Determining means for determining the type of page description language that describes the print data;
Setting means for setting the first, second, and third smoothness according to the determined type of the page description language;
The image forming apparatus according to claim 2, further comprising:
ページ記述言語で記述されたプリントデータに基づいて画像を形成する画像形成装置の制御方法であって、
前記プリントデータにおける描画命令で与えられる図形の曲線部分を、第1の平滑度でもって直線近似する第1の近似ステップと、
前記図形のライン先端部の曲線形状を、前記第1の平滑度とは別個に指定されうる第2の平滑度でもって直線近似する第2の近似ステップと、
を有することを特徴とする画像形成装置の制御方法。
A method for controlling an image forming apparatus that forms an image based on print data described in a page description language,
A first approximation step of linearly approximating a curve portion of a graphic given by a drawing command in the print data with a first smoothness;
A second approximation step of linearly approximating the curved shape of the line tip of the figure with a second smoothness that can be specified separately from the first smoothness;
A method for controlling an image forming apparatus, comprising:
ページ記述言語で記述されたプリントデータに基づいて画像を形成する画像形成装置を制御するためのプログラムであって、
前記プリントデータにおける描画命令で与えられる図形の曲線部分を、第1の平滑度でもって直線近似する第1の近似ステップと、
前記図形のライン先端部の曲線形状を、前記第1の平滑度とは別個に指定されうる第2の平滑度でもって直線近似する第2の近似ステップ、
を実行させるためのプログラム。
A program for controlling an image forming apparatus that forms an image based on print data described in a page description language,
A first approximation step of linearly approximating a curve portion of a graphic given by a drawing command in the print data with a first smoothness;
A second approximation step of linearly approximating the curved shape of the line tip of the figure with a second smoothness that can be specified separately from the first smoothness;
The program to execute.
JP2002290150A 2002-10-02 2002-10-02 Picture forming device and its control method Withdrawn JP2004126939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002290150A JP2004126939A (en) 2002-10-02 2002-10-02 Picture forming device and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002290150A JP2004126939A (en) 2002-10-02 2002-10-02 Picture forming device and its control method

Publications (1)

Publication Number Publication Date
JP2004126939A true JP2004126939A (en) 2004-04-22

Family

ID=32282125

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002290150A Withdrawn JP2004126939A (en) 2002-10-02 2002-10-02 Picture forming device and its control method

Country Status (1)

Country Link
JP (1) JP2004126939A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011210163A (en) * 2010-03-30 2011-10-20 Fujifilm Corp Page description data processing apparatus, method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011210163A (en) * 2010-03-30 2011-10-20 Fujifilm Corp Page description data processing apparatus, method and program

Similar Documents

Publication Publication Date Title
JP4942179B2 (en) Print control apparatus, control method therefor, and device driver
JP4940110B2 (en) Image processing apparatus, control method therefor, program, and printer
JP4254806B2 (en) Image forming apparatus and recording medium
US20100020338A1 (en) Printing apparatus, control method, and storage medium
JP5173578B2 (en) Image processing method, printing apparatus, and control method thereof
JP2000324279A (en) Image processing method, printer and information processor
JP2005221760A (en) Image forming apparatus, and process method and program in image forming apparatus
JP2004054143A (en) Color printing device and color printing control method
JP4143397B2 (en) Control method for information processing apparatus
JP2004126939A (en) Picture forming device and its control method
JPH11353138A (en) Device and method for managing image information, and storage medium
JP2006164151A (en) Printing processing apparatus
JP2001080135A (en) Printing apparatus and method for controlling printing apparatus and memory medium, stored computer readable program
JP2010066299A (en) Printing control apparatus, printing control method, and program
JPH1063047A (en) Image forming device and controller and control method therefor
JP2007074522A (en) Color image processor and method
JP2006048215A (en) Method for improving picture quality of printing device
JP2005132030A (en) Color printer
JP2004090457A (en) Calibration method and printer
JP2006243908A (en) Image forming device
JP2005059550A (en) Image forming device and its controlling method
JP2005059974A (en) Image recording device, paper feed control method, recording medium storing computer-readable program, and program
JP2004358756A (en) Image outputting device and method
JP2010198443A (en) Image forming apparatus
JP2006302036A (en) Color processing mode switching method, information processor implementing the method, and control program thereof

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060110