JP4336470B2 - Drawing control apparatus, drawing control method and program - Google Patents

Drawing control apparatus, drawing control method and program Download PDF

Info

Publication number
JP4336470B2
JP4336470B2 JP2001392124A JP2001392124A JP4336470B2 JP 4336470 B2 JP4336470 B2 JP 4336470B2 JP 2001392124 A JP2001392124 A JP 2001392124A JP 2001392124 A JP2001392124 A JP 2001392124A JP 4336470 B2 JP4336470 B2 JP 4336470B2
Authority
JP
Japan
Prior art keywords
enlargement
reduction
image
unit
quality
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
JP2001392124A
Other languages
Japanese (ja)
Other versions
JP2003191535A (en
JP2003191535A5 (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.)
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 JP2001392124A priority Critical patent/JP4336470B2/en
Publication of JP2003191535A publication Critical patent/JP2003191535A/en
Publication of JP2003191535A5 publication Critical patent/JP2003191535A5/en
Application granted granted Critical
Publication of JP4336470B2 publication Critical patent/JP4336470B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、入力された描画コマンドを中間デーに変換し、当該中間データを描画することにより印刷画像を生成する画制御装置および描画制御方法およびプログラムに関するものである。
【0002】
【従来の技術】
従来の、入力された描画コマンドを解析し、中間データに変換する中間データ生成手段と、中間データを描画することにより、印刷画像を生成する画像生成手段とを有する描画制御装置では、拡大縮小処理はイメージデータを中間データに変換する際、または、中間データを描画し印刷画像を生成する際のどちらか一方でのみ行っており、条件によるどちらかの切り替えは行っていなかった。
【0003】
【発明が解決しようとする課題】
しかしながら、従来の入力された描画コマンドを解析し、中間データに変換する中間データ生成手段と、中間データを描画することにより、印刷画像を生成する画像生成手段とを有する描画制御装置では、拡大縮小処理はイメージデータを中間データに変換する際、または、中間データを描画し印刷画像を生成する際のどちらか一方でのみ行っており、条件によるどちらかの切り替えは行っていなかったため、データ内容、品位モードに適した処理選択や処理フローを制御不可能であったため、必ずしもユーザが望むようなデータ処理速度や画像品位の出力結果が得られない場合が生じてしまう等の問題点があった。
【0004】
本発明は、上記の問題点を解決するためになされたもので、本発明の目的は、入力された描画コマンドを間データに変換し、当該中間データを描画することにより印刷画像を生成する画制御装置において、画条件に従う画像品位を維持し、かつ、処理速度の低下をも防止して、ユーザが望む品位で大処理が施された出力結果を効率よく得ることができる描画処理環境を自在に構築することある。
【0005】
【課題を解決するための手段】
本発明は、入力された描画コマンドを中間データに変換し、当該中間データを描画することにより複数のうちの設定された印刷品位で印刷画像を生成する描画制御装置であって、前記描画コマンドとして入力されたイメージデータを中間データに変換する際に拡大する第1拡大処理を実行する第1の拡大手段と、前記中間データを描画し印刷画像を生成する際に拡大する第2拡大処理を実行する第2の拡大手段と、前記描画コマンドに基づく印刷処理を実行するために設定された印刷品位として高品位が指定されており、かつ、前記イメージデータのドット数から得られる当該イメージデータのサイズが第1の所定値よりも大きい場合、前記第1の拡大手段による前記第1拡大処理のみを実行させ、前記描画コマンドに基づく印刷処理を実行するために設定された印刷品位として高品位が指定されており、かつ、前記イメージデータのドット数から得られる当該イメージデータのサイズが前記第1の所定値よりも小さい場合、前記第2の拡大手段による前記第2拡大処理のみを実行させ、前記印刷品位として通常品位が指定されている場合、前記第2拡大処理のみを前記第2の拡大手段に実行させる制御手段とを有し、前記第1拡大処理により得られる画質は前記第2拡大処理により得られる画質よりも高画質であり、前記第2拡大処理の処理速度は前記第1拡大処理の処理速度よりも高速であり、前記第1の所定値は前記第1拡大処理を不要とするサイズであることを特徴とする。
【0073】
【発明の実施の形態】
〔第1実施形態〕
以下、本発明をレーザビームプリンタ(以下、LBPと略す)に適用し、図面を用いて更に詳細に説明する。
【0074】
本実施形態の構成を説明する前に、本実施形態を適用するLBPの構成を図1、図2を参照して説明する。
【0075】
図1は、本発明に係る印刷制御装置を適用可能なプリンタの構成を説明する断面図であり、例えばプリンタエンジンがレーザビームプリンタエンジンである場合に対応する。
【0076】
図において、100はLBP本体であり、外部に接続されているホストコンピュータ(図2に示すホストコンピュータ201)から供給される文字印字命令、各種図形描画命令、イメージ描画命令及び色指定命令等に従って対応する文字パターンや図形、イメージ等を作成し、記録媒体である記録用紙上に像を形成する。
【0077】
151は操作パネルで、操作のためのスイッチ及びプリンタの状態を表示するLED表示器やLCD表示器等が配されている。101はプリンタ制御ユニットで、LBP100全体の制御及びホストコンピュータから供給される文字印字命令等を解析する。
【0078】
なお、本実施形態におけるLBPはRGBの色情報をM(マゼンタ)C(シアン)Y(イエロー)K(クロ)に変換し、それらを並列で像形成・現像するため、MCYKそれぞれが像形成・現像機構を持つ。プリンタ制御ユニット101はMCYKそれぞれの印字イメージを生成し、ビデオ信号に変換してMCYKそれぞれのレーザドライバに出力する。
【0079】
M(マゼンタ)のレーザドライバ110は、半導体レーザ111を駆動するための回路であり、入力されたビデオ信号に応じて半導体レーザ111から発射されるレーザ光112をオン・オフ切り替えする。レーザ光112は回転多面鏡113で左右方向に振られて静電ドラム114上を走査する。これにより、静電ドラム114上には文字や図形のパターンの静電潜像が形成される。この潜像は静電ドラム114周囲の現像ユニット(トナーカートリッジ)115によって現像された後、記録用紙に転写される。
【0080】
また、C(シアン)のレーザドライバ120は、半導体レーザ121を駆動するための回路であり、入力されたビデオ信号に応じて半導体レーザ121から発射されるレーザ光122をオン・オフ切り替えする。レーザ光122は回転多面鏡123で左右方向に振られて静電ドラム124上を走査する。これにより、静電ドラム124上には文字や図形のパターンの静電潜像が形成される。この潜像は静電ドラム124周囲の現像ユニット(トナーカートリッジ)125によって現像された後、記録用紙に転写される。
【0081】
また、Y(イエロー)のレーザドライバ130は、半導体レーザ131を駆動するための回路であり、入力されたビデオ信号に応じて半導体レーザ131から発射されるレーザ光132をオン・オフ切り替えする。レーザ光132は回転多面鏡133で左右方向に振られて静電ドラム134上を走査する。これにより、静電ドラム134上には文字や図形のパターンの静電潜像が形成される。この潜像は静電ドラム134周囲の現像ユニット(トナーカートリッジ)135によって現像された後、記録用紙に転写される。
【0082】
また、B(ブラック)のレーザドライバ140は、半導体レーザ141を駆動するための回路であり、入力されたビデオ信号に応じて半導体レーザ141から発射されるレーザ光142をオン・オフ切り替えする。レーザ光142は回転多面鏡143で左右方向に振られて静電ドラム144上を走査する。これにより、静電ドラム144上には文字や図形のパターンの静電潜像が形成される。この潜像は静電ドラム144周囲の現像ユニット(トナーカートリッジ)145によって現像された後、記録用紙に転写される。
【0083】
なお、記録用紙にはカットシートを用い、カットシート記録紙はLBPに装着した給紙カセット102に収納されバネ103で一定の高さに保たれており、給紙ローラ104及び搬送ローラ105と106とにより装置内に取り込まれ、用紙搬送ベルト107に乗せられてMCYKの各像形成・現像機構を通過する。
【0084】
上記各色の画像形成により記録用紙に転写されたMCYKの各トナー(粉末インク)は、その後定着器108で熱と圧力により記録用紙に固定され、記録用紙は搬送ローラ109と搬送ローラ150によってLBP本体上部に出力される。
【0085】
図2は、図1に示したプリンタ制御ユニット101の概略構成を示すブロック図である。
【0086】
図2において、プリンタ制御ユニット101は、印刷情報の発生源である、ホストコンピュータ201より送られてきた文字、図形、イメージの各描画命令及び色情報等からなるデータ218を入力し、ページ単位で文書情報等を印刷するようにしている。
【0087】
202は入出力インターフェース部で、ホストコンピュータ201と各種情報をやりとりする。203は入力バッファメモリで、入出力インターフェース部202を介して入力された各種情報を一時記憶する。
【0088】
204は文字パターン発生器で、文字の幅や高さ等の属性や実際の文字パターンのアドレスが格納されているフォント情報部222、文字パターン自身が格納されている文字パターン部223、及びその読み出し制御プログラムから成る。読み出し制御プログラムはROM219に含まれ、文字コードを入力するとそのコードに対応する文字パターンのアドレスを算出するコード・コンバート機能をも有している。
【0089】
205はRAMで、文字パターン発生器204より出力された文字パターンを記憶するフォントキャッシュ領域207、ホストコンピュータ201より送られてきた外字フォントやフォーム情報及び現在の印字環境等を記憶する記憶領域206を含んでいる。
【0090】
このように、一旦文字パターンに展開したパターン情報をフォントキャッシュとしてフォントキャッシュ領域207に記憶しておくことにより、同じ文字を印刷する時に再度同じ文字を復号してパターン展開する必要がなくなるため、文字パターンへの展開が速くなる。
【0091】
208はプリンタの制御系全体を制御するためのCPUで、ROM219に記憶されたCPU208の制御プログラムにより装置全体の制御を行っている。209は入力データ218を元に生成される内部的なデータ群を格納する中間バッファである。
【0092】
210はレンダラで、1ページ分のデータの受信が完了し、それらがよりシンプルな中間データに変換されて中間バッファに蓄えられた後、数ライン単位でレンダリングして、印字イメージとしてバンドバッファ211に出力される。
【0093】
なお、レンダラ210は、数ライン単位にRGB各色8ビット/ピクセルの描画ビットマップイメージを生成することができる。
【0094】
また、バンドバッファ211には少なくとも8ライン分のRGB描画ビットマップイメージを記憶することができる。
【0095】
そして、バンドバッファ211に出力されたイメージは圧縮部212によりスキャンライン単位に圧縮され、ページメモリ213に格納される。
【0096】
次に、1ページ分の中間バッファメモリをレンダリング終了し、それらがページメモリ213に格納された後、伸長部214において数ライン単位で読み出され、伸長される。
【0097】
そして、伸長されたデータは色変換部215において、RGB各色8ビット/ピクセルのビットマップイメージをYMCK各色4ビット/ピクセルのビットマップイメージに変換される。
【0098】
次に、出力インターフェース部216でビデオ信号に変換されてプリンタ部217に出力される。217はプリンタ部で、出力インターフェース部216からのビデオ信号に基づいた画像情報を印刷するページプリンタの印刷機構部として機能をする。
【0099】
なお、上述したように本実施形態におけるLBPではMCYKの像形成・現像を並列で行うため、出力インターフェース部216はM出力インターフェース部、C出力インターフェース部、Y出力インターフェース部、K出力インターフェース部の4つのインターフェース部で構成され、それぞれが独立に色変換部215からドットデータを獲得し、ビデオ信号に変換して各プレーンのレーザドライバ110、120、130、140へ出力する。
【0100】
220は一般のEEPROM等で構成する不揮発性メモリであり、以後NVRAM(Non Volatile RAM)と称す。NVRAM220には操作パネル151で指定されるパネル設定値などが記憶される。221はLBPからホストコンピュータ201に送信されるデータである。
【0101】
なお、ROM219にはホストコンピュータ201から入力されるデータの解析、中間データの生成、ページメモリ213の制御プログラム、及びRGB色空間からMCYK色空間への色変換テーブル等も含まれる。
【0102】
なお、本実施形態では、印刷装置の一例としてカラーレーザプリンタで説明しているが、カラーインクジェットプリンタ、カラー熱転写プリンタ等のカラープリンタであっても良い。
【0103】
また、レンダラ210は、RGB各色8ビット/ピクセルの描画ビットマップイメージを生成するとしたが、YMCKであっても、グレイであっても良い。また、各色のビット/ピクセルはどのような値であっても良い。この場合、バンドバッファ211、圧縮部212、ページメモリ213、伸長部214は、レンダラ210が生成する色空間、ビット/ピクセルに対応していれば良い。
【0104】
さらに、伸長されたデータは色変換部215において、レンダラ210で生成されたデータを出力インターフェース部216に対応する色空間、ビット/ピクセルに変換するものであれば良い。
【0105】
図3は、図2に示した中間バッファ209に格納される中間データの例を示す図である。
【0106】
図3において、(a)は望まれる印字結果POUTであり、中間データ格納部(中間バッファ)209から読み出された、図3の(b)に示す中間データに基づいてプリンタ部217から出力される例に対応する。
【0107】
まず、入力コマンドが文字コマンドか、図形コマンドか、イメージコマンドかを判定し、中間データ格納部209に格納する中間データが図3の(b)に示すようにそれぞれのフラグを備えている。
【0108】
具体的には、object1として、属性:文字、印字位置(x、y)、フォント名、サイズ、文字コード、色を備え、object2として、属性:図形、印字位置(x、y)、形状(円)、半径、色を備え、object3として、属性:イメージ、印字位置(x、y)、イメージの幅、高さ、拡大率、イメージの実体へのポインタを備える。
【0109】
このように中間データは、それぞれの描画オブジェクトの形、色、印字位置の情報を含んでいる。
【0110】
中間データをレンダラ210により描画すると、図3の(a)に示すように望まれる印字結果POUTと同等の結果が得られる。
【0111】
図4は、本発明に係る印刷制御装置におけるイメージデータ処理の流れを説明するブロック図である。
【0112】
図4において、401はイメージ解析部であり、入力インターフェース部202から入力されたイメージコマンドをCPU208において解析を行う。402は、第1の拡大縮小部であり、CPU208において条件に従って所定の拡大率または縮小率で拡大縮小を行う。また、条件にしたがって選択された拡大縮小処理の方法で拡大縮小を行う。
【0113】
403は中間データであり、中間バッファ209にイメージおよび付随する情報を格納する。404は第2の拡大縮小部であり、レンダラ210において、特定の描画条件に従って所定の拡大率または縮小率で拡大縮小を行う。また、描画条件にしたがって選択された拡大縮小処理の方法で拡大縮小を行う。405はラスタメモリであり、描画されたイメージはバンドバッファ210に格納される。406は拡大縮小処理部で、図2に示したCPUにより実行される処理機能であって、詳細的には、図7〜図9に示す手順に従う拡大縮小切り替え制御を実行する。
【0114】
なお、拡大縮小処理部406は、入力される描画コマンドに従う描画条件に基づき、特定の拡大縮小切り替え制御を行う。
【0115】
具体的には、入力された描画コマンドを解析し、中間データに変換する中間データ生成手段と、中間データを描画することにより、印刷画像を生成する画像生成手段とを有する印刷制御装置および描画制御装置において、
イメージデータを中間データ403に変換する際に拡大または縮小を行う第1の拡大縮小部402と、中間データ403を描画し印刷画像を生成する際に拡大または縮小を行う第2の拡大縮小部404と、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを条件によって決定する拡大縮小処理部406とを有し、描画条件に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0116】
その際、拡大縮小処理部406は、入力されたイメージデータのサイズに従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、入力されたイメージデータのサイズに適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0117】
また、拡大縮小処理部406は、入力されたイメージの解像度と印刷画像の解像度との関係によって第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、入力されたイメージの解像度と印刷画像の解像度との関係に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0118】
さらに、拡大縮小処理部406は、入力されたイメージの各ピクセルあたりのビット深さと印刷画像の各ピクセルあたりのビット深さとの関係に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、入力されたイメージの各ピクセルあたりのビット深さと印刷画像の各ピクセルあたりのビット深さとの関係に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0119】
さらに、拡大縮小処理部406は、入力されたイメージデータの出力品位モードの設定に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、入力されたイメージデータの出力品位モードの設定に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0120】
さらに、拡大縮小処理部406は、入力されたイメージデータが再利用可能な形式であるか否かに従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、入力されたイメージデータが再利用可能な形式であるか否かに適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0121】
また、拡大縮小処理部406は、機器に搭載されたRAM205等のメモリ容量に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、機器に搭載されたメモリ容量に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0122】
さらに、拡大縮小処理部406は、入力された描画コマンドのPDLの種類に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、入力された描画コマンドのPDLの種類に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0123】
また、拡大縮小処理部406は、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小アクセラレータの有無に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小アクセラレータの有無に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0124】
さらに、拡大縮小処理部406は、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小処理の速度に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小処理の速度に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0125】
また、拡大縮小処理部406は、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小処理結果の品位に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小処理結果の品位に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0126】
さらに、拡大縮小処理部406は、入力された文字,図形,自然画を含むイメージデータの内容の種別に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、入力された文字,図形,自然画を含むイメージデータの内容の種別に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0127】
また、拡大縮小処理部406は、入力されたイメージデータに付属する切り替え指示、あるいは、機器のユーザインターフェースといったユーザ指定に従って、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、入力されたイメージデータに付属する切り替え指示、あるいは、機器のユーザインターフェースといったユーザ指定に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0128】
さらに、拡大縮小処理部406は、生成された印刷画像を1ページ分メモリに格納するか、生成された印刷画像をプリンタエンジンに同期して出力するかによって、第1の拡大縮小部402の拡大率または縮小率と、第2の拡大縮小部404の拡大率または縮小率とを決定することにより、生成された印刷画像を1ページ分メモリに格納するか、生成された印刷画像をプリンタエンジンに同期して出力するかに適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になる。
【0129】
また、入力された描画コマンドを解析し、中間データに変換する中間データ生成手段と、中間データを描画することにより、印刷画像を生成する画像生成手段とを有する描画制御装置において、描画コマンドとしてイメージデータが入力された場合、イメージデータを中間データに変換する際に拡大または縮小を行う第1の拡大縮小部402と、中間データを描画し印刷画像を生成する際に拡大または縮小を行う第2の拡大縮小部404と、第1の拡大縮小部402の拡大縮小処理の種類を複数の拡大縮小処理の中から一つを設定する機能処理と、第2の拡大縮小部404の拡大縮小処理の種類を複数の拡大縮小処理の中から一つを設定する機能処理と、描画条件によって第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替える機能処理とを行う拡大縮小処理部406とを備えることを特徴とするので、条件に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0130】
この際、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、入力されたイメージデータのサイズに従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、入力されたイメージデータのサイズに適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0131】
また、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、入力されたイメージの解像度と印刷画像の解像度との関係によって、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、入力されたイメージの解像度と印刷画像の解像度との関係に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0132】
さらに、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、入力されたイメージの各ピクセルあたりのビット深さと印刷画像の各ピクセルあたりのビット深さとの関係に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、入力されたイメージの各ピクセルあたりのビット深さと印刷画像の各ピクセルあたりのビット深さとの関係に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0133】
また、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、入力されたイメージデータの出力品位モードの設定に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、入力されたイメージデータの出力品位モードの設定に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0134】
さらに、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、入力されたイメージデータが再利用可能な形式であるか否かに従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、入力されたイメージデータが再利用可能な形式であるか否かに適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0135】
また、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、機器に搭載されたRAM205等のメモリ容量に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、機器に搭載されたメモリ容量に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0136】
さらに、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、入力された描画コマンドのPDLの種類に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、入力された描画コマンドのPDLの種類に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0137】
また、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小アクセラレータの有無に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小アクセラレータの有無に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0138】
さらに、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小処理の速度に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小処理の速度に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0139】
また、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小処理結果の品位に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、第1の拡大縮小部402と、第2の拡大縮小部404の拡大縮小処理結果の品位に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0140】
さらに、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、入力されたイメージデータの文字/図形/自然画といったイメージデータの内容の種別に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、入力されたイメージデータの文字,図形,自然画といったイメージデータの内容の種別に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0141】
また、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、入力されたイメージデータに付属する切り替え指示、あるいは、機器のユーザインターフェースといったユーザ指定に従って、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、入力されたイメージデータに付属する切り替え指示、あるいは、機器のユーザインターフェースといったユーザ指定に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0142】
さらに、拡大縮小処理切り替え機能処理を実行する拡大縮小処理部406は、生成された印刷画像を1ページ分メモリに格納するか、生成された印刷画像をプリンタエンジンに同期して出力するかによって、第1の拡大縮小部402で設定する処理と第2の拡大縮小部404で設定する処理を切り替えることにより、生成された印刷画像を1ページ分メモリに格納するか、生成された印刷画像をプリンタエンジンに同期して出力するかに適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0143】
また、描画コマンドとしてイメージデータが入力された場合、イメージデータを中間データに変換する際に拡大または縮小を行う第1の拡大縮小部402と、中間データを描画し印刷画像を生成する際に拡大または縮小を行う第2の拡大縮小部404と、入力されたイメージの解像度と印刷画像の解像度から、イメージの変倍率を算出する機能処理と、変倍率が縮小変倍なら、第1の拡大縮小部402に等倍まで縮小を行う縮小処理を設定し、第2の拡大縮小部404にコピーのみを行う無変倍処理を設定し、また、変倍率が拡大変倍なら、第1の拡大縮小部402にコピーのみを行う無変倍処理を設定し、第2の拡大縮小部404に等倍まで拡大を行う拡大処理を設定する機能処理を行う拡大縮小処理部406を備えることにより、拡大縮小率にしたがって、最適な変倍処理フローが選択可能になる。
【0144】
さらに、描画コマンドとしてイメージデータが入力された場合、イメージデータを中間データに変換する際に高品位に拡大または縮小を行う第1の拡大縮小部402と、中間データを描画し印刷画像を生成する際に通常品位に拡大または縮小を行う第2の拡大縮小部404と、入力されたイメージデータの出力品位モードの設定が高品位設定か否かを判定する機能処理と、該判定により品位指定が通常品位指定ならば、第2の拡大縮小部404を用いて拡大縮小を行い、品位指定が高品位指定ならば、第1の拡大縮小部402を用いて拡大縮小を行う機能処理を行う拡大縮小処理部406とを備えることにより、条件に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になり、描画条件に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0145】
また、この際、上記拡大縮小を行う機能処理を行う拡大縮小処理部406は品位指定が通常品位指定ならば、第2の拡大縮小部404を用いて拡大縮小を行い、品位指定が高品位指定の時は、入力されたイメージの解像度と印刷画像の解像度から、イメージの変倍率を算出し変倍率がある一定値Aよりも大きな拡大ならば、第1の拡大縮小部402に等倍まで拡大を行う拡大処理を設定し、第2の拡大縮小部402にコピーのみを行う無変倍処理を設定するとともに、変倍率がある一定値Aよりも小さな拡大ならば、第1の拡大縮小部402にコピーのみを行う無変倍処理を設定し、第2の拡大縮小部404に等倍まで拡大を行う拡大処理を設定することにより、描画条件に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になり、描画条件に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0146】
また、上記拡大縮小を行う機能処理を行う拡大縮小処理部406は品位指定が通常品位指定ならば、第2の拡大縮小部404を用いて拡大縮小を行い、品位指定が高品位指定の時は、入力されたイメージの解像度と印刷画像の解像度から、イメージの変倍率を算出し、変倍率がある一定値Aよりも大きな拡大ならば、第1の拡大縮小部404に拡大率Bまで拡大を行う拡大処理を設定し、第2の拡大縮小部404に残りの拡大率Cで等倍まで拡大を行う拡大処理を設定するとともに、変倍率がある一定値Aよりも小さな拡大ならば、第1の拡大縮小部402にコピーのみを行う無変倍処理を設定し、第2の拡大縮小部404に等倍まで拡大を行う拡大処理を設定することにより、描画条件に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小手部404で配分可能になり、条件に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小手部404で設定可能になる。
【0147】
さらに、描画コマンドとしてイメージデータが入力された場合、イメージデータを中間データに変換する際に拡大または縮小を行う第1の拡大縮小部402と、中間データを描画し印刷画像を生成する際に拡大または縮小を行う第2の拡大縮小部404と、第1の拡大縮小部402の拡大縮小処理の種類を複数の拡大縮小処理の中から一つを設定する第1の変倍設定機能処理と、第2の拡大縮小部404の拡大縮小処理の種類を複数の拡大縮小処理の中から一つを設定する第2の変倍設定機能処理と、描画条件によって第1,第2の変倍設定機能処理で設定する処理を切り替える機能処理を行う拡大縮小処理部406を備え、拡大縮小処理切り替えに際して、入力された文字,図形,自然画を含むイメージデータの内容の種別に従って、入力されたイメージの種別が文字または図形ならば拡大縮小処理としてエッジを保存する拡大縮小処理を採用し、入力されたイメージの種別がイメージならば拡大縮小処理として階調を保存する拡大縮小処理を採用する拡大縮小処理を切り替えることにより、描画条件に適した拡大率または縮小率を第1の拡大縮小部402と第2の拡大縮小部404で配分可能になり、描画条件に適した拡大処理または縮小処理を第1の拡大縮小部402と第2の拡大縮小部404で設定可能になる。
【0148】
図5は、本発明に係る印刷制御装置におけるイメージ演算処理を説明する図であり、例えば縮小処理の例である。
【0149】
図5において、(a)は縮小前のイメージであり、これを1/2に縮小すると、縮小したイメージ(b)が得られる。ここでは3種類の方法について述べ、比較する。
【0150】
単純サンプリング法(M1)
原画像を1画素、1ライン間隔でサブサンプリングし、面積で1/4の画像を得る。図5の例では、A=a,B=c,C=i,D=kとなる。
【0151】
平均化法(M2)
隣接する4画素を、その平均値の1画素に置換することにより、縮小画像を得る。図5の例では、
A=(a+b+e+f)/4,B=(c+d+g+h)/4となる。
【0152】
フィルタリング処理後サブサンプリングする方法(M3)
サブサンプリングにより発生するモアレ雑音を抑制するため、サンプリングを行う前に、図5に示す平滑化フィルタ(c)により平滑化フィルタリング処理を施す。そのあと(M1)と同様にサンプリングを行い、縮小画像を得る。
【0153】
処理速度的には、(M1)>(M2)>(M3)となり、M1がM2よりも高速であることを示す。
【0154】
一方、画質的には(M1)<(M2)<(M3)となり、M2がM1よりも高画質であることを示すという特徴を持つ。
【0155】
図6は、本発明に係る印刷制御装置におけるイメージ演算処理を説明する図であり、例えば拡大処理の例である。
【0156】
図6において、(a)は拡大前のイメージであり、これを2倍に拡大すると、拡大したイメージ(b)が得られる。ここでは2種類の方法について述べ、比較する。
【0157】
ここでは、単純拡大(ニアレストネイバー法)、線形補間法の2手法を2倍拡大の例で説明する。
【0158】
単純拡大(ニアレストネイバー法(M4))
原画像を1画素、1ライン間隔で繰り返し、面積で4倍の画像を得る。図6の例では、a=b=e=f=A,c=d=g=h=Bとなる。
【0159】
線形補間法(M5)
拡大前の画素を1画素1ライン間隔で配置し、その間の画素を平均値で求める。
【0160】
図6の例では、a=A,c=B,i=C,k=D,b=(A+B)/2,j=(C+D)/2,e=(A+C)/2,g=(B+D)/2,f=(A+B+C+D)/4となる。
【0161】
処理速度的には(M4)>(M5)となり、M4がM5よりも高速であることを示す。
【0162】
一方、画質的には(M4)<(M5)となり、M5がM4よりも高画質であることを示すという特徴を持つ。
【0163】
図7,図8は、本発明に係る印刷制御装置における第1のデータ処理手順の一例を示すフローチャートであり、プリンタ制御ユニット101のCPU208によるイメージデータ処理手順に対応する。なお、S701〜S717は各ステップを示し、該ステップに対応する制御プログラムは、図2に示すROM219に記憶されている。
【0164】
先ず、CPU208がイメージデータを受け取ると、ステップS701に進み、パネルまたはホストコンピュータ201からのデータ218経由で指定され、NVRAM220に格納されている印刷装置の品位モード(通常品位、高品位、超高品位)を判定して、通常品位であると判定した場合には、ステップS712へ進み、それ以外のモードであると判定した場合は、ステップS702へ進む。
【0165】
そして、ステップS702で、再度NVRAM220に格納されている印刷装置の品位モードが超高品位であるかどうかを判定して、超高品位モードであると判定した場合には、ステップS708に進み、高品位モードであると判定した場合には、ステップS703に進む。
【0166】
そして、ステップS703は、入力されたイメージデータのサイズがイメージの幅または高さが所定値N以下かどうかを判定して、イメージの幅または高さが所定値Nより小さいと判定した場合は、ステップS712へ進み、イメージの幅または高さが所定値Nより大きいと判定した場合には、ステップS704に進む。これは、例えば1×1ピクセルのイメージのようなあまりに小さなイメージは高品位変倍処理を不要と判断することを意味する。
【0167】
そして、ステップS704では、入力イメージの解像度と印刷画像の解像度から入力イメージを最終ラスタに印字する際の変倍率を算出し、変倍率が所定値Mより小さいかどうかを判定して、変倍率が所定値Mより小さいと判定した場合には、ステップS712へ進み、変倍率が所定値Mより大きいと判定した場合にはステップS705に進む。
【0168】
そして、ステップS705では、入力イメージの解像度と印刷画像の解像度から入力イメージを最終ラスタに印字する際の変倍率を算出し、変倍率が所定値Lより小さいかどうかを判定して、変倍率が所定値Lより小さいと判定した場合には、ステップS710に進み、それより大きいと判定した場合にはステップS706に進む。
【0169】
そして、ステップS706は、図4に示した中間データ作成前の第1の拡大縮小部402の変倍率と変倍方法を設定する。ここでは、変倍率をステップS704で算出した拡大率の「1/2」とし、変倍方法を「高品位」とする。
【0170】
次に、ステップS707は、図4に示した中間データ作成後の第2の拡大縮小部404の変倍率と変倍方法を設定する。ここでは、変倍率をステップS704で算出した拡大率の「1/2」とし、変倍方法を「通常品位」とする。
【0171】
一方、ステップS710では、図4に示した中間データ作成前の第1の拡大縮小部402の変倍率と変倍方法を設定する。ここでは、変倍率をステップS704で算出した拡大率とし、変倍方法を「高品位」とする。
【0172】
そして、ステップS711では、図4における中間データ作成後の第2の拡大縮小部404の変倍率と変倍方法を設定する。ここでは、変倍率を「等倍」とし、変倍方法を「通常品位」とする。
【0173】
ここで、例えば最終ラスタの解像度がそれぞれ、「300」、「600」、「1200」dpiの場合、上記M、Lの値は以下のように設定される。
【0174】
最終ラスタ解像度300DPI、M=1,L=2/最終ラスタ解像度600DPI、M=2,L=4/最終ラスタ解像度1200DPI、M=4,L=8である。
【0175】
これは最終ラスタ解像度「600」DPIの場合を例にとると、拡大率が2倍より小さい場合には、高品位拡大が不要と考え「通常品位」で描画し、拡大率が2倍より大きく4倍より小さい場合には、高品位拡大が必要と考え、「高品位」で拡大し、拡大率が4倍より大きい場合には全ての拡大を「高品位」で拡大すると、速度が遅いため拡大を2段階に分け、前半の拡大を高品位拡大し、後半の拡大を通常品位拡大することを示す。
【0176】
一方、ステップS702で「超高品位」であると判定された場合には、ステップS708で、図4における中間データ作成前の第1の拡大縮小部402の変倍率と変倍方法を設定する。ここでは、変倍率を入力イメージの解像度と印刷画像の解像度から入力イメージを最終ラスタに印字する際の変倍率を算出してその倍率値を設定するとともに、変倍方法を「超高品位」に設定する。
【0177】
そして、ステップS709で、図4における中間データ作成前の第2の拡大縮小部404の変倍率と変倍方法を設定する。ここでは、変倍率を等倍と設定し、変倍方法を通常品位とする。
【0178】
一方、ステップS712では、入力イメージの解像度と印刷画像の解像度から入力イメージを最終ラスタに印字する際の変倍率を算出し、変倍率が所定値Kより小さいかどうかを判定して、小さいと判定した場合はステップS715に進み、それより大きい場合にはステップS713に進む。
【0179】
なお、ここでKは1倍とする。すなわち、縮小ならば中間コード作成前に縮小し、拡大ならば中間コード作成後に拡大する。これにより、中間コードのデータ量を最低限の値にすることができる。
【0180】
そして、ステップS713は、図4における中間データ作成前の第1の拡大縮小部402の変倍率と変倍方法を設定する。ここでは、変倍率を「等倍」に設定し、変倍方法を「通常品位」に設定する。
【0181】
そして、ステップS714は、図4における中間データ作成後の第2の拡大縮小部404の変倍率と変倍方法を設定する。ここでは、変倍率をステップS712で算出した拡大率に設定し、変倍方法を「通常品位」に設定する。
【0182】
一方、ステップS712で、変倍率が所定値Kより大きいと判定した場合は、ステップS715で、図4における中間データ作成前の第1の拡大縮小部402の変倍率と変倍方法を設定する。ここでは、変倍率をステップS712で算出した縮小率とし、変倍方法を「通常品位」とする。そして、ステップS716は、図4における中間データ作成後の第2の拡大縮小部404の変倍率と変倍方法を設定する。ここでは、変倍率を「等倍」に設定し、変倍方法を「通常品位」に設定する。そして、ステップS717で、処理を続行する。
【0183】
図9は、本発明に係る印刷制御装置における第2のデータ処理手順の一例を示すフローチャートであり、プリンタ制御ユニット101のCPU208によるイメージデータ処理手順に対応する。なお、S1101〜S1107は各ステップを示し、該ステップに対応する制御プログラムは、図2に示すROM219に記憶されている。
【0184】
ステップS1101は、図7のステップS717以降の処理であり、第1の拡大縮小部402により、イメージデータは既に設定済みの拡大縮小率に従って拡大または縮小を行う。
【0185】
ステップS1102では、イメージを図3で示される中間データに変換し中間バッファ209に格納する。
【0186】
ステップS1103では、ホストコンピュータ201から入力されたデータが1ページ分処理されたか否かを判定する。
【0187】
もし1ページ分の処理がされていなければ、ステップS701に戻り、次のコマンドを解析する。
【0188】
もし1ページ分の処理がされていれば、ステップS1104に進む。
【0189】
ステップS1104では、レンダラ210により中間バッファ209のデータが読み出される。
【0190】
ステップS1105では、第2の拡大縮小部404により、イメージデータは既に設定済みの拡大縮小率に従って拡大または縮小を行う。
【0191】
ステップS1106では、データをバンドバッファ211に描画を行う。
【0192】
ステップS1107では、中間バッファ209から中間データが1ページ分処理されたか否かを判定する。
【0193】
もし1ページ分の処理がされていなければ、ステップS1104に戻り、次の中間データを解析する。
【0194】
もし1ページ分の処理がされていれば、処理を終了する。
【0195】
〔第2実施形態〕
第1実施形態では、品位モードによって処理分岐を行ったが、イメージコマンドとして概イメージが文字、図形、自然画といったイメージ内容を指定する情報を付随している場合それらの情報に従って処理を分岐しても良い。
【0196】
〔第3実施形態〕
第2実施形態では、イメージ内容を指定する情報がイメージコマンドとして付随するとしたが、イメージの内容を検索し、プリンタ内部においてイメージ内容を判別しても良い。
【0197】
〔第4実施形態〕
第1実施形態において、ステップS708で変倍方法を超高品位方法に設定するとしたが、イメージコマンドとして概イメージが文字、図形、自然画といったイメージ内容を指定する情報を付随している場合それらの情報に従って、文字、図形ならばエッジを保持する手法を選択し、自然画ならば階調を保持する手法を選択しても良い。
【0198】
〔第5実施形態〕
図10は、本発明に係る印刷制御装置における第3のデータ処理手順の一例を示すフローチャートである。なお、S718〜S726は各ステップを示す。
【0199】
先ず、ステップS718で、PDLの種類を判別しPDLの種類がPDL1であるかどうかを判定して、PDLの種類がPDL1であると判定した場合には、ステップS712へ進み、それ以外であると判定した場合には、ステップS719に進む。これは、高品位を必要としないPDLは速度を優先することを意味する。
【0200】
そして、ステップS719では、レンダラ210以降にページメモリ213を備えているか否かを判定して、備えていないと判定した場合は、ステップS720に進み、備えていると判定した場合はステップS725に進む。
【0201】
これは、ページメモリ213を備えていない場合は、プリンタエンジンのビデオ信号に同期してレンダリングを行う必要があり、レンダリングに割り当てられる処理時間に制限があることを示す。
【0202】
そして、ステップS725では、図4における中間データ作成前の第1の拡大縮小部402に変倍率と変倍方法を設定する。ここでは、変倍率を「等倍」に設定し、変倍方法を「通常品位」に設定する。
【0203】
次に、ステップS726では、図4における中間データ作成後の第2の拡大縮小部404に変倍率と変倍方法を設定する。ここでは、変倍率を入力イメージの解像度と印刷画像の解像度から入力イメージを最終ラスタに印字する際の変倍率を算出した値を設定し、変倍方法を「超高品位」に設定して、ステップS717へ進む。
【0204】
これは、ページメモリを備えている場合はレンダリングに十分な時間を配分可能なため第2の拡大縮小部404に遅い処理が設定可能であることを示す。
【0205】
一方、ステップ(719)で、レンダラ210以降にページメモリ213を備えていないと判定した場合は、ステップ(720)で、拡大縮小処理の品位と速度を判定して、第1の拡大縮小部402,第2の拡大縮小部404に適切な処理を割り当てるため、速度と品位を判定して第1の拡大縮小部402,第2の拡大縮小部404に対してステップS721〜S724でそれぞれ変倍率と変倍方法を割り当て設定して、ステップS717へ戻る。
【0206】
具体的には、ステップS720において、品位優先の場合には、ステップS721に進み、ステップS721において、第1の拡大縮小部402の変倍率Cを入力イメージの解像度と印刷画像の解像度から入力イメージを最終ラスタに印字する際の変倍率を算出した値を設定し、変倍方法Cを「超高品位」に設定する。そして、ステップS722において、第2の拡大縮小部404の変倍率Dを等倍に設定し、変倍方法Dを「通常品位」に設定する。次に、ステップS723において、速度品位優先の場合には、ステップS721に進み、以下の処理を行う。
【0207】
すなわち、変倍率を入力イメージの解像度と印刷画像の解像度から入力イメージを最終ラスタに印字する際の変倍率Xを算出する。
【0208】
次に、描画処理に割り当てられる時間Tから、変倍率Xでその時間を満足可能な最高品質の変倍処理を選択し、第2の拡大縮小部404に割り当てる。B=Xとなる。変倍率はA=等倍となる。
【0209】
そして、もし変倍率Xでその時間を満足可能な変倍処理が無い場合、変倍率をより高速に印字できる倍率Yに変更し、変倍率Yでその時間を満足可能な最高品質の変倍処理を選択し、第2の拡大縮小部404として割り当てる。変倍率はB=Yとなる。
【0210】
さらに変倍率Z=X/Yを第1の拡大縮小部402の変倍率A=Zとする。第1の拡大縮小部402の変倍方法は、拡大率に適したものを選択するなど可能である。
【0211】
さらに、変倍率Yでも描画処理に割り当てられる時間Tを満足できなければ上記処理を繰り返しても良い。
【0212】
このようにして、変倍率A、変倍率Bを決定する。
【0213】
〔第6実施形態〕
上記第5実施形態では、図10に示すステップS720で速度と品位により判定したが、中間バッファ209の容量によって分岐しても良い。
【0214】
この場合、中間バッファ209が少ない場合、ステップS723に進み、メモリが多い場合はステップS721に進む。
【0215】
拡大を例にとると、ステップS721では計算される拡大率で高品位拡大、ステップS722では等倍であり、ステップS723では等倍であり、ステップS724では計算される拡大率で高品位拡大を行うことが推奨される。
【0216】
〔第7実施形態〕
第5実施形態では、ステップS720で速度と品位により判定したが、入力イメージが再利用可能か否かによって分岐しても良い。
【0217】
この場合、再利用可能な場合、ステップS721に進み、不可能な場合はステップS723に進む。
【0218】
拡大処理を例にとると、ステップS721では計算される拡大率で高品位拡大を設定し、ステップS722では等倍を設定して、ステップS723では等倍であり、ステップS724では計算される拡大率で高品位拡大を行うことが推奨される。
【0219】
これにより、中間データを再利用する場合は、中間データ容量が増えても、再度拡大処理を行う時間が節約できるというメリットがある。
【0220】
以下、図11に示すメモリマップを参照して本発明に係る印刷制御装置を適用可能な印刷システムで読み出し可能なデータ処理プログラムの構成について説明する。
【0221】
図11は、本発明に係る印刷制御装置を適用可能な印刷システムで読み出し可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。
【0222】
なお、特に図示しないが、記憶媒体に記憶されるプログラム群を管理する情報、例えばバージョン情報,作成者等も記憶され、かつ、プログラム読み出し側のOS等に依存する情報、例えばプログラムを識別表示するアイコン等も記憶される場合もある。
【0223】
さらに、各種プログラムに従属するデータも上記ディレクトリに管理されている。また、各種プログラムをコンピュータにインストールするためのプログラムや、インストールするプログラムが圧縮されている場合に、解凍するプログラム等も記憶される場合もある。
【0224】
本実施形態における図7〜図10に示す機能が外部からインストールされるプログラムによって、ホストコンピュータにより遂行されていてもよい。そして、その場合、CD−ROMやフラッシュメモリやFD等の記憶媒体により、あるいはネットワークを介して外部の記憶媒体から、プログラムを含む情報群を出力装置に供給される場合でも本発明は適用されるものである。
【0225】
以上のように、前述した実施形態の機能を実現するソフトウエアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、本発明の目的が達成されることは言うまでもない。
【0226】
この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0227】
プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROM,EEPROM等を用いることができる。
【0228】
また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0229】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0230】
【発明の効果】
以上説明したように、本発明によれば、入力された描画コマンドを間データに変換し、当該中間データを描画することにより印刷画像を生成する画制御装置において、画条件に従う画像品位を維持し、かつ、処理速度の低下をも防止して、ユーザが望む品位で縮小拡大処理が施された出力結果を効率よく得ることができる描画処理環境を自在に構築することができるという効果を奏する。
【図面の簡単な説明】
【図1】本発明に係る印刷制御装置を適用可能なプリンタの構成を説明する断面図である。
【図2】図1に示したプリンタ制御ユニットの概略構成を示すブロック図である。
【図3】図2に示した中間バッファに格納される中間データの例を示す図である。
【図4】本発明に係る印刷制御装置におけるイメージデータ処理の流れを説明するブロック図である。
【図5】本発明に係る印刷制御装置におけるイメージ演算処理を説明する図である。
【図6】本発明に係る印刷制御装置におけるイメージ演算処理を説明する図である。
【図7】本発明に係る印刷制御装置における第1のデータ処理手順の一例を示すフローチャートである。
【図8】本発明に係る印刷制御装置における第1のデータ処理手順の一例を示すフローチャートである。
【図9】本発明に係る印刷制御装置における第2のデータ処理手順の一例を示すフローチャートである。
【図10】本発明に係る印刷制御装置における第3のデータ処理手順の一例を示すフローチャートである。
【図11】本発明に係る印刷制御装置を適用可能な印刷システムで読み出し可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。
【符号の説明】
201 ホストコンピュータ
202 ホストコンピュータとの入出力インターフェース部
203 入力バッファ
204 文字パターン発生器
205 RAM
208 CPU
210 レンダラ
211 バンドバッファ
212 圧縮部
213 ページメモリ
214 伸長部
215 色変換部
216 出力インターフェース部
217 印刷機構部
218 入力データ
219 ROM
220 NVRAM
221 データ
222 フォント情報部
223 文字パターン部
[0001]
BACKGROUND OF THE INVENTION
In the present invention, an input drawing command is transferred to intermediate data. T Conversion to And the concerned Generate a print image by rendering intermediate data Drawing Image control device And drawing control method and program It is about.
[0002]
[Prior art]
In a conventional drawing control apparatus having an intermediate data generation unit that analyzes an input drawing command and converts it into intermediate data, and an image generation unit that generates a print image by drawing the intermediate data, an enlargement / reduction process is performed. Is performed only when either the image data is converted into intermediate data or when the intermediate data is drawn and a print image is generated, and either one of the conditions is not switched.
[0003]
[Problems to be solved by the invention]
However, a conventional drawing control apparatus having an intermediate data generation unit that analyzes an input drawing command and converts it into intermediate data, and an image generation unit that generates a print image by drawing the intermediate data. Processing is performed only when converting image data into intermediate data, or when rendering intermediate data and generating a print image, and switching according to conditions has not been performed. Since it was impossible to control the processing selection and processing flow suitable for the quality mode, there was a problem that the output result of the data processing speed and the image quality desired by the user might not be obtained.
[0004]
The present invention has been made to solve the above problems, and the object of the present invention is to input an input drawing command. During ~ Convert between data And the concerned Generate a print image by rendering intermediate data Drawing In the image control device, Drawing Maintain the image quality according to the image conditions and prevent the processing speed from decreasing, Expansion Freely construct a drawing processing environment that can efficiently obtain output results that have undergone large processing so is there.
[0005]
[Means for Solving the Problems]
The present invention converts an input drawing command into intermediate data and draws the intermediate data. With the set print quality out of multiple A drawing control apparatus for generating a print image, wherein a first enlargement unit that executes a first enlargement process for enlarging the image data input as the drawing command when the image data is converted into intermediate data, and drawing the intermediate data And a second enlargement unit for executing a second enlargement process for enlarging when generating a print image, and a print process based on the drawing command. Print quality As High quality Is specified, and when the size of the image data obtained from the number of dots of the image data is larger than the first predetermined value, only the first enlargement process by the first enlargement unit is executed, High quality is specified as the print quality set to execute the printing process based on the drawing command, and When the size of the image data obtained from the number of dots of the image data is smaller than the first predetermined value, only the second enlargement process by the second enlargement unit is executed. When the normal quality is designated as the print quality, only the second enlargement process is executed by the second enlargement unit. The image quality obtained by the first enlargement process is higher than the image quality obtained by the second enlargement process, and the processing speed of the second enlargement process is the process of the first enlargement process. Faster than speed The first predetermined value is a size that does not require the first enlargement process. It is characterized by that.
[0073]
DETAILED DESCRIPTION OF THE INVENTION
[First Embodiment]
Hereinafter, the present invention is applied to a laser beam printer (hereinafter abbreviated as LBP) and will be described in more detail with reference to the drawings.
[0074]
Before describing the configuration of the present embodiment, the configuration of an LBP to which the present embodiment is applied will be described with reference to FIGS. 1 and 2.
[0075]
FIG. 1 is a cross-sectional view illustrating the configuration of a printer to which a print control apparatus according to the present invention can be applied. For example, this corresponds to a case where the printer engine is a laser beam printer engine.
[0076]
In the figure, reference numeral 100 denotes an LBP main body, which responds according to a character print command, various graphic drawing commands, image drawing commands, color designation commands, etc. supplied from an externally connected host computer (host computer 201 shown in FIG. 2). A character pattern, a figure, an image, and the like are created, and an image is formed on a recording sheet as a recording medium.
[0077]
Reference numeral 151 denotes an operation panel on which an operation switch, an LED display for displaying the status of the printer, an LCD display, and the like are arranged. A printer control unit 101 controls the entire LBP 100 and analyzes a character print command supplied from the host computer.
[0078]
The LBP in the present embodiment converts RGB color information into M (magenta) C (cyan) Y (yellow) K (black), and forms and develops them in parallel. Has a development mechanism. The printer control unit 101 generates MCYK print images, converts them into video signals, and outputs the video signals to the MCYK laser drivers.
[0079]
The M (magenta) laser driver 110 is a circuit for driving the semiconductor laser 111, and switches on and off the laser beam 112 emitted from the semiconductor laser 111 in accordance with an input video signal. The laser beam 112 is swung in the left-right direction by the rotary polygon mirror 113 to scan the electrostatic drum 114. As a result, an electrostatic latent image of a character or figure pattern is formed on the electrostatic drum 114. The latent image is developed by a developing unit (toner cartridge) 115 around the electrostatic drum 114 and then transferred to a recording sheet.
[0080]
The C (cyan) laser driver 120 is a circuit for driving the semiconductor laser 121, and switches on and off the laser light 122 emitted from the semiconductor laser 121 in accordance with the input video signal. The laser beam 122 is swung in the left-right direction by the rotary polygon mirror 123 to scan the electrostatic drum 124. As a result, an electrostatic latent image of a character or figure pattern is formed on the electrostatic drum 124. The latent image is developed by a developing unit (toner cartridge) 125 around the electrostatic drum 124 and then transferred to a recording sheet.
[0081]
The Y (yellow) laser driver 130 is a circuit for driving the semiconductor laser 131, and switches on / off the laser beam 132 emitted from the semiconductor laser 131 in accordance with the input video signal. The laser beam 132 is swung in the left-right direction by the rotary polygon mirror 133 to scan the electrostatic drum 134. As a result, an electrostatic latent image of a character or figure pattern is formed on the electrostatic drum 134. This latent image is developed by a developing unit (toner cartridge) 135 around the electrostatic drum 134 and then transferred to a recording sheet.
[0082]
The B (black) laser driver 140 is a circuit for driving the semiconductor laser 141, and switches on and off the laser light 142 emitted from the semiconductor laser 141 in accordance with the input video signal. The laser beam 142 is swung in the left-right direction by the rotary polygon mirror 143 to scan the electrostatic drum 144. As a result, an electrostatic latent image of a character or figure pattern is formed on the electrostatic drum 144. The latent image is developed by a developing unit (toner cartridge) 145 around the electrostatic drum 144 and then transferred to a recording sheet.
[0083]
Note that a cut sheet is used as the recording sheet, and the cut sheet recording sheet is stored in the sheet feeding cassette 102 mounted on the LBP and kept at a constant height by the spring 103. The sheet feeding roller 104 and the conveying rollers 105 and 106 are stored. Are taken into the apparatus, are placed on the sheet conveying belt 107, and pass through each image forming / developing mechanism of MCYK.
[0084]
The MCYK toner (powder ink) transferred to the recording paper by the image formation of each color is then fixed to the recording paper by heat and pressure by the fixing unit 108, and the recording paper is transferred to the LBP main body by the transport roller 109 and the transport roller 150. Output to the top.
[0085]
FIG. 2 is a block diagram showing a schematic configuration of the printer control unit 101 shown in FIG.
[0086]
In FIG. 2, the printer control unit 101 inputs data 218 composed of characters, graphics, image drawing commands, color information, and the like sent from the host computer 201, which is a generation source of print information, in units of pages. Document information and the like are printed.
[0087]
An input / output interface unit 202 exchanges various information with the host computer 201. An input buffer memory 203 temporarily stores various information input via the input / output interface unit 202.
[0088]
Reference numeral 204 denotes a character pattern generator, which includes a font information section 222 storing attributes such as character width and height and the address of the actual character pattern, a character pattern section 223 storing the character pattern itself, and reading out the font information section 222. Consists of a control program. The read control program is included in the ROM 219 and has a code conversion function for calculating the address of the character pattern corresponding to the character code when the character code is input.
[0089]
Reference numeral 205 denotes a RAM which has a font cache area 207 for storing character patterns output from the character pattern generator 204, and a storage area 206 for storing external character fonts and form information sent from the host computer 201 and the current printing environment. Contains.
[0090]
In this way, by storing the pattern information once developed into a character pattern in the font cache area 207 as a font cache, it is not necessary to decode the same character again and develop the pattern when printing the same character. Deployment to patterns is faster.
[0091]
Reference numeral 208 denotes a CPU for controlling the entire control system of the printer, and the entire apparatus is controlled by a control program of the CPU 208 stored in the ROM 219. An intermediate buffer 209 stores an internal data group generated based on the input data 218.
[0092]
A renderer 210 completes reception of data for one page, converts them into simpler intermediate data, stores them in the intermediate buffer, renders them in units of several lines, and outputs them to the band buffer 211 as a print image. Is output.
[0093]
The renderer 210 can generate a drawing bitmap image of 8 bits / pixel for each color of RGB in units of several lines.
[0094]
The band buffer 211 can store at least 8 lines of RGB drawing bitmap images.
[0095]
The image output to the band buffer 211 is compressed in units of scan lines by the compression unit 212 and stored in the page memory 213.
[0096]
Next, rendering of the intermediate buffer memory for one page is finished, and after the rendering is stored in the page memory 213, the decompression unit 214 reads and decompresses the data in units of several lines.
[0097]
The decompressed data is converted by the color conversion unit 215 from a bitmap image of 8 bits / pixel for each RGB color to a bitmap image of 4 bits / pixel for each YMCK color.
[0098]
Next, it is converted into a video signal by the output interface unit 216 and output to the printer unit 217. A printer unit 217 functions as a print mechanism unit of a page printer that prints image information based on a video signal from the output interface unit 216.
[0099]
As described above, in the LBP according to the present embodiment, MCYK image formation / development is performed in parallel. Therefore, the output interface unit 216 includes the M output interface unit, the C output interface unit, the Y output interface unit, and the K output interface unit. Each interface unit independently obtains dot data from the color conversion unit 215, converts it into a video signal, and outputs the video signal to the laser drivers 110, 120, 130, and 140 of each plane.
[0100]
Reference numeral 220 denotes a non-volatile memory composed of a general EEPROM or the like, and is hereinafter referred to as NVRAM (Non Volatile RAM). The NVRAM 220 stores panel setting values designated on the operation panel 151 and the like. Data 221 is transmitted from the LBP to the host computer 201.
[0101]
The ROM 219 includes analysis of data input from the host computer 201, generation of intermediate data, a control program for the page memory 213, a color conversion table from the RGB color space to the MCYK color space, and the like.
[0102]
In this embodiment, a color laser printer is described as an example of a printing apparatus. However, a color printer such as a color inkjet printer or a color thermal transfer printer may be used.
[0103]
The renderer 210 generates a rendering bitmap image of 8 bits / pixel for each color of RGB, but it may be YMCK or gray. Further, the bit / pixel of each color may be any value. In this case, the band buffer 211, the compression unit 212, the page memory 213, and the decompression unit 214 only need to correspond to the color space and bits / pixel generated by the renderer 210.
[0104]
Further, the decompressed data may be any data as long as the color conversion unit 215 converts the data generated by the renderer 210 into a color space and bits / pixels corresponding to the output interface unit 216.
[0105]
FIG. 3 is a diagram showing an example of intermediate data stored in the intermediate buffer 209 shown in FIG.
[0106]
3A shows a desired print result POUT, which is output from the printer unit 217 based on the intermediate data shown in FIG. 3B read from the intermediate data storage unit (intermediate buffer) 209. Corresponds to this example.
[0107]
First, it is determined whether the input command is a character command, a graphic command, or an image command, and the intermediate data stored in the intermediate data storage unit 209 has respective flags as shown in FIG.
[0108]
Specifically, the object 1 includes attributes: characters, printing positions (x, y), font names, sizes, character codes, and colors, and the objects 2 include attributes: graphics, printing positions (x, y), shapes (circles). ), Radius, and color, and object 3 includes attributes: image, print position (x, y), image width, height, enlargement ratio, and pointer to the entity of the image.
[0109]
Thus, the intermediate data includes information on the shape, color, and print position of each drawing object.
[0110]
When the intermediate data is rendered by the renderer 210, a result equivalent to the desired print result POUT is obtained as shown in FIG.
[0111]
FIG. 4 is a block diagram illustrating the flow of image data processing in the print control apparatus according to the present invention.
[0112]
In FIG. 4, reference numeral 401 denotes an image analysis unit, and the CPU 208 analyzes an image command input from the input interface unit 202. Reference numeral 402 denotes a first enlargement / reduction unit, which performs enlargement / reduction at a predetermined enlargement rate or reduction rate according to conditions in the CPU 208. Further, enlargement / reduction is performed by the method of enlargement / reduction processing selected according to the conditions.
[0113]
403 is intermediate data, and an image and accompanying information are stored in the intermediate buffer 209. Reference numeral 404 denotes a second enlargement / reduction unit, and the renderer 210 performs enlargement / reduction at a predetermined enlargement rate or reduction rate according to a specific drawing condition. Further, enlargement / reduction is performed by an enlargement / reduction processing method selected according to the drawing conditions. A raster memory 405 stores the drawn image in the band buffer 210. Reference numeral 406 denotes an enlargement / reduction processing unit, which is a processing function executed by the CPU shown in FIG. 2, and specifically executes enlargement / reduction switching control according to the procedure shown in FIGS.
[0114]
Note that the enlargement / reduction processing unit 406 performs specific enlargement / reduction switching control based on the drawing condition according to the input drawing command.
[0115]
Specifically, a print control apparatus and drawing control including an intermediate data generating unit that analyzes an input drawing command and converts it into intermediate data, and an image generating unit that generates a print image by drawing the intermediate data In the device
A first enlargement / reduction unit 402 that performs enlargement or reduction when converting image data into intermediate data 403, and a second enlargement / reduction unit 404 that performs enlargement or reduction when drawing intermediate data 403 and generating a print image. And an enlargement / reduction processing unit 406 that determines the enlargement / reduction rate of the first enlargement / reduction unit 402 and the enlargement / reduction rate of the second enlargement / reduction unit 404 according to conditions, and is suitable for the drawing conditions. The first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can distribute the enlargement rate or reduction rate.
[0116]
At that time, the enlargement / reduction processing unit 406 determines the enlargement rate or reduction rate of the first enlargement / reduction unit 402 and the enlargement rate or reduction rate of the second enlargement / reduction unit 404 according to the size of the input image data. By doing so, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can distribute an enlargement rate or reduction rate suitable for the size of the input image data.
[0117]
The enlargement / reduction processing unit 406 also determines the enlargement rate or reduction rate of the first enlargement / reduction unit 402 and the enlargement rate or reduction rate of the second enlargement / reduction unit 404 according to the relationship between the resolution of the input image and the resolution of the print image. By determining the reduction rate, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can allocate an enlargement rate or reduction rate suitable for the relationship between the resolution of the input image and the resolution of the print image. become.
[0118]
Further, the enlargement / reduction processing unit 406 determines the enlargement rate or reduction rate of the first enlargement / reduction unit 402 according to the relationship between the bit depth per pixel of the input image and the bit depth per pixel of the print image, By determining the enlargement rate or reduction rate of the second enlargement / reduction unit 404, an enlargement rate suitable for the relationship between the bit depth per pixel of the input image and the bit depth per pixel of the printed image, or The reduction ratio can be distributed between the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404.
[0119]
Furthermore, the enlargement / reduction processing unit 406 determines the enlargement rate or reduction rate of the first enlargement / reduction unit 402 and the enlargement rate or reduction rate of the second enlargement / reduction unit 404 according to the setting of the output quality mode of the input image data. Thus, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can allocate an enlargement rate or reduction rate suitable for setting the output quality mode of the input image data.
[0120]
Furthermore, the enlargement / reduction processing unit 406 determines the enlargement rate or reduction rate of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 according to whether or not the input image data is in a reusable format. By determining the enlargement rate or the reduction rate, the first enlargement / reduction unit 402 and the second enlargement / reduction rate can select an enlargement rate or reduction rate suitable for whether or not the input image data is in a reusable format. This can be distributed by the unit 404.
[0121]
The enlargement / reduction processing unit 406 also determines the enlargement rate or reduction rate of the first enlargement / reduction unit 402 and the enlargement rate or reduction rate of the second enlargement / reduction unit 404 according to the memory capacity of the RAM 205 or the like mounted on the device. Thus, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can distribute an enlargement rate or reduction rate suitable for the memory capacity mounted on the device.
[0122]
Furthermore, the enlargement / reduction processing unit 406 determines the enlargement rate or reduction rate of the first enlargement / reduction unit 402 and the enlargement rate or reduction rate of the second enlargement / reduction unit 404 according to the type of PDL of the input drawing command. By determining, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can distribute an enlargement rate or reduction rate suitable for the type of PDL of the input drawing command.
[0123]
In addition, the enlargement / reduction processing unit 406 includes the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 according to the presence / absence of the enlargement / reduction accelerator, By determining the enlargement rate or reduction rate of the enlargement / reduction unit 404, the first enlargement / reduction unit 402 and the enlargement / reduction rate suitable for the presence / absence of the enlargement / reduction accelerator of the second enlargement / reduction unit 404 are determined. Distribution can be made by one enlargement / reduction unit 402 and second enlargement / reduction unit 404.
[0124]
Further, the enlargement / reduction processing unit 406 includes the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 according to the enlargement / reduction processing speed of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 402. By determining the enlargement rate or reduction rate of the enlargement / reduction unit 404, the first enlargement / reduction unit 402 and the enlargement / reduction rate suitable for the speed of the enlargement / reduction process of the second enlargement / reduction unit 404 are determined. Distribution can be made by one enlargement / reduction unit 402 and second enlargement / reduction unit 404.
[0125]
Further, the enlargement / reduction processing unit 406 includes the first enlargement / reduction unit 402 and the enlargement / reduction rate of the first enlargement / reduction unit 402 according to the quality of the enlargement / reduction process result of the second enlargement / reduction unit 404, and the first By determining the enlargement rate or reduction rate of the second enlargement / reduction unit 404, the enlargement rate or reduction rate suitable for the quality of the first enlargement / reduction unit 402 and the enlargement / reduction processing result of the second enlargement / reduction unit 404 is determined. Can be distributed by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404.
[0126]
Further, the enlargement / reduction processing unit 406 determines the enlargement ratio or reduction rate of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 according to the type of the content of the image data including the input characters, graphics, and natural images. By determining the enlargement ratio or reduction ratio of the first enlargement / reduction section 402 and the second enlargement ratio, the enlargement ratio or reduction ratio suitable for the content type of the image data including the input characters, figures, and natural images is determined. Distribution is possible in the enlargement / reduction unit 404.
[0127]
In addition, the enlargement / reduction processing unit 406 performs the enlargement or reduction rate of the first enlargement / reduction unit 402 and the second enlargement according to a switching instruction attached to the input image data or a user designation such as a user interface of the device. By determining the enlargement ratio or reduction ratio of the reduction unit 404, the first enlargement / reduction is performed with an enlargement ratio or reduction ratio suitable for user designation such as a switching instruction attached to the input image data or a user interface of the device. Distribution is possible between the unit 402 and the second enlargement / reduction unit 404.
[0128]
Furthermore, the enlargement / reduction processing unit 406 enlarges the first enlargement / reduction unit 402 according to whether the generated print image is stored in the memory for one page or the generated print image is output in synchronization with the printer engine. By determining the rate or reduction rate and the enlargement rate or reduction rate of the second enlargement / reduction unit 404, the generated print image is stored in the memory for one page, or the generated print image is stored in the printer engine. The first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can distribute an enlargement rate or reduction rate suitable for output in synchronization.
[0129]
Further, in a drawing control apparatus having an intermediate data generation unit that analyzes an input drawing command and converts it into intermediate data, and an image generation unit that generates a print image by drawing the intermediate data, an image is used as a drawing command. When data is input, a first enlargement / reduction unit 402 that performs enlargement or reduction when converting image data into intermediate data, and a second that performs enlargement or reduction when drawing intermediate data and generating a print image Of the enlargement / reduction unit 404, the function of setting one of the enlargement / reduction processes of the first enlargement / reduction unit 402 from among a plurality of enlargement / reduction processes, and the enlargement / reduction process of the second enlargement / reduction unit 404 A function process that sets one of a plurality of enlargement / reduction processes, a process that is set by the first enlargement / reduction unit 402 according to a drawing condition, and a second enlargement / reduction unit 404 And an enlargement / reduction processing unit 406 that performs a function process for switching the processing to be determined. Therefore, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 perform the enlargement process or the reduction process suitable for the conditions. Can be set with.
[0130]
At this time, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function processing sets the processing set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 according to the size of the input image data. By switching the processing, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can set enlargement processing or reduction processing suitable for the size of the input image data.
[0131]
Further, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function process performs the processing set by the first enlargement / reduction unit 402 and the second enlargement according to the relationship between the resolution of the input image and the resolution of the print image. The first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 perform the enlargement process or reduction process suitable for the relationship between the resolution of the input image and the resolution of the print image by switching the process set by the reduction unit 404. Can be set with.
[0132]
Furthermore, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function processing is configured to display the first enlargement / reduction unit according to the relationship between the bit depth per pixel of the input image and the bit depth per pixel of the print image. By switching between the processing set in 402 and the processing set in the second enlargement / reduction unit 404, enlargement suitable for the relationship between the bit depth per pixel of the input image and the bit depth per pixel of the print image Processing or reduction processing can be set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404.
[0133]
Further, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function process performs processing set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 according to the setting of the output quality mode of the input image data. By switching the processing to be set in step 1, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can set enlargement processing or reduction processing suitable for setting the output quality mode of the input image data.
[0134]
Further, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function process performs the processing set by the first enlargement / reduction unit 402 and the second according to whether or not the input image data is in a reusable format. By switching the processing set by the enlargement / reduction unit 404, the first enlargement / reduction unit 402 and the second enlargement / reduction processing suitable for whether or not the input image data has a reusable format are performed. This can be set by the enlargement / reduction unit 404.
[0135]
In addition, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function process performs processing set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 according to the memory capacity of the RAM 205 or the like installed in the device. By switching the processing to be set, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can set enlargement processing or reduction processing suitable for the memory capacity mounted on the device.
[0136]
Further, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function processing is set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 according to the type of PDL of the input drawing command. By switching the processing to be performed, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can set enlargement processing or reduction processing suitable for the type of PDL of the input drawing command.
[0137]
Further, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function processing is performed by the first enlargement / reduction unit 402 according to the presence / absence of the enlargement / reduction accelerator of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404. By switching between setting processing and processing set by the second enlargement / reduction unit 404, enlargement processing or reduction processing suitable for the presence or absence of the enlargement / reduction accelerator of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 Can be set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404.
[0138]
Furthermore, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function processing is performed by the first enlargement / reduction unit 402 according to the speed of the enlargement / reduction processing of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404. By switching between setting processing and processing set by the second enlargement / reduction unit 404, enlargement processing or reduction processing suitable for the speed of enlargement / reduction processing of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 Can be set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404.
[0139]
Further, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function process, the first enlargement / reduction unit 402 according to the quality of the enlargement / reduction processing result of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404. By switching between the processing set in step 1 and the processing set in the second enlargement / reduction unit 404, the enlargement process suitable for the quality of the enlargement / reduction processing result of the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 or Reduction processing can be set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404.
[0140]
Further, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function processing is a process that is set by the first enlargement / reduction unit 402 in accordance with the type of image data content such as characters / graphics / natural images of the input image data. And the first enlargement / reduction process suitable for the type of content of the image data such as characters, graphics, and natural images of the input image data by switching the processing set by the second enlargement / reduction unit 404 Setting can be made by the unit 402 and the second enlargement / reduction unit 404.
[0141]
The enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function processing is set by the first enlargement / reduction unit 402 in accordance with a switching instruction attached to the input image data or a user designation such as a user interface of the device. By switching between the process and the process set by the second enlargement / reduction unit 404, the first enlargement process or reduction process suitable for user designation such as a switching instruction attached to the input image data or a user interface of the device is performed. Setting can be made by the enlargement / reduction unit 402 and the second enlargement / reduction unit 404.
[0142]
Further, the enlargement / reduction processing unit 406 that executes the enlargement / reduction processing switching function processing stores the generated print image in the memory for one page or outputs the generated print image in synchronization with the printer engine. By switching between the process set by the first enlargement / reduction unit 402 and the process set by the second enlargement / reduction unit 404, the generated print image is stored in the memory for one page, or the generated print image is stored in the printer. The first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can set enlargement processing or reduction processing suitable for output in synchronization with the engine.
[0143]
In addition, when image data is input as a drawing command, a first enlargement / reduction unit 402 that performs enlargement or reduction when converting the image data into intermediate data, and enlargement when drawing intermediate data and generating a print image Alternatively, a second enlargement / reduction unit 404 that performs reduction, a function process that calculates an image magnification from the resolution of the input image and the resolution of the print image, and the first enlargement / reduction if the magnification is a reduction / magnification A reduction process for reducing the image to the same magnification is set in the unit 402, a non-magnification process for copying only is set in the second enlargement / reduction unit 404, and the first enlargement / reduction is performed if the magnification is an enlargement / reduction. An enlargement / reduction processing unit 406 for performing a function process for setting an invariable magnification process for performing only copying in the unit 402 and setting an enlargement process for performing enlargement to the same magnification in the second enlargement / reduction unit 404 is provided According rate, optimal scaling process flow is available for selection.
[0144]
Further, when image data is input as a drawing command, a first enlargement / reduction unit 402 that performs high-quality enlargement or reduction when converting the image data into intermediate data, and draws the intermediate data to generate a print image. A second enlargement / reduction unit 404 that enlarges or reduces the image quality to normal quality, a function process for determining whether the output quality mode setting of the input image data is a high quality setting, and the quality designation by the determination If normal quality is designated, enlargement / reduction is performed using the second enlargement / reduction unit 404. If the quality designation is high quality, enlargement / reduction is performed using the first enlargement / reduction unit 402 to perform function processing. By providing the processing unit 406, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can distribute the enlargement rate or reduction rate suitable for the conditions, and the enlargement suitable for the drawing conditions. The physical or reduction processing in the first scaling section 402 will be set in the second scaling section 404.
[0145]
At this time, if the quality designation is the normal quality designation, the enlargement / reduction processing unit 406 that performs the function processing for performing the enlargement / reduction performs enlargement / reduction using the second enlargement / reduction unit 404, and the quality designation designates the high quality designation. In this case, the image magnification is calculated from the resolution of the input image and the resolution of the print image, and if the magnification is larger than a certain value A, the first enlargement / reduction unit 402 enlarges to the same magnification. Is set, the second enlargement / reduction unit 402 is set to a non-magnification process for performing only copying, and if the enlargement / reduction rate is smaller than a certain value A, the first enlargement / reduction unit 402 is set. Is set to the first enlargement ratio or the reduction ratio suitable for the drawing condition by setting an invariable magnification process for performing only copying and setting an enlargement process for enlarging to the same magnification in the second enlargement / reduction unit 404. Reduction unit 402 and second enlargement It enables apportioned small part 404, the enlargement processing or reduction processing suitable for drawing condition and the first scaling section 402 will be set in the second scaling section 404.
[0146]
In addition, if the quality designation is normal quality designation, the scaling processing unit 406 that performs the function processing for performing the above-described scaling performs enlargement / reduction using the second enlargement / reduction unit 404, and when the quality designation is high quality designation, The image magnification is calculated from the resolution of the input image and the resolution of the print image. If the magnification is larger than a certain value A, the first enlargement / reduction unit 404 enlarges the magnification to the magnification B. The enlargement process to be performed is set, and the second enlargement / reduction unit 404 is set to an enlargement process for enlarging up to the same magnification with the remaining enlargement ratio C. An enlargement / reduction ratio suitable for the drawing conditions is set by setting an invariable enlargement / reduction process for performing only copying in the enlargement / reduction unit 402 and setting an enlargement process for enlargement to the same magnification in the second enlargement / reduction part 404. The first enlargement / reduction unit 40 When enabled apportioned second scaling hand portion 404, the enlargement processing or reduction processing suitable conditions a first scaling unit 402 can be set in the second scaling hand portion 404.
[0147]
Further, when image data is input as a drawing command, a first enlargement / reduction unit 402 that performs enlargement or reduction when converting the image data into intermediate data, and enlargement when drawing the intermediate data and generating a print image Or a second enlargement / reduction unit 404 that performs reduction, and a first scaling setting function process that sets one of a plurality of enlargement / reduction processes as the type of enlargement / reduction process of the first enlargement / reduction unit 402; Second scaling setting function processing for setting one of a plurality of scaling processings as the type of scaling processing of the second scaling unit 404, and first and second scaling setting functions depending on drawing conditions An enlargement / reduction processing unit 406 that performs a function process for switching the process set by the process is provided, and when the enlargement / reduction process is switched, input is performed according to the type of content of image data including input characters, figures, and natural images. If the type of the image is text or graphic, an enlargement / reduction process that saves the edge is used as the enlargement / reduction process. If the input image type is an image, an enlargement / reduction process that saves the gradation is used as the enlargement / reduction process. By switching the enlargement / reduction processing to be performed, the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 can distribute an enlargement rate or reduction rate suitable for the drawing condition, and enlargement processing or reduction suitable for the drawing condition Processing can be set by the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404.
[0148]
FIG. 5 is a diagram for explaining image calculation processing in the print control apparatus according to the present invention, and is an example of reduction processing, for example.
[0149]
In FIG. 5, (a) is an image before reduction, and when this is reduced to ½, a reduced image (b) is obtained. Here, three types of methods are described and compared.
[0150]
Simple sampling method (M1)
The original image is sub-sampled by one pixel and one line interval to obtain an image of 1/4 in area. In the example of FIG. 5, A = a, B = c, C = i, and D = k.
[0151]
Averaging method (M2)
A reduced image is obtained by replacing four adjacent pixels with one pixel of the average value. In the example of FIG.
A = (a + b + e + f) / 4, B = (c + d + g + h) / 4.
[0152]
Sub-sampling after filtering (M3)
In order to suppress moire noise generated by sub-sampling, smoothing filtering processing is performed by the smoothing filter (c) shown in FIG. 5 before sampling. Thereafter, sampling is performed in the same manner as in (M1) to obtain a reduced image.
[0153]
In terms of processing speed, (M1)>(M2)> (M3), indicating that M1 is faster than M2.
[0154]
On the other hand, the image quality is (M1) <(M2) <(M3), which indicates that M2 has higher image quality than M1.
[0155]
FIG. 6 is a diagram for explaining image calculation processing in the print control apparatus according to the present invention, for example, an example of enlargement processing.
[0156]
In FIG. 6, (a) is an image before enlargement, and when this is enlarged twice, an enlarged image (b) is obtained. Here, two types of methods are described and compared.
[0157]
Here, two methods of simple enlargement (nearest neighbor method) and linear interpolation method will be described as an example of double enlargement.
[0158]
Simple enlargement (Nearest Neighbor Method (M4))
The original image is repeated with one pixel and one line interval, and an image four times larger in area is obtained. In the example of FIG. 6, a = b = e = f = A and c = d = g = h = B.
[0159]
Linear interpolation method (M5)
The pixels before enlargement are arranged at intervals of one line per pixel, and the pixels between them are obtained as an average value.
[0160]
In the example of FIG. 6, a = A, c = B, i = C, k = D, b = (A + B) / 2, j = (C + D) / 2, e = (A + C) / 2, g = (B + D ) / 2, f = (A + B + C + D) / 4.
[0161]
In terms of processing speed, (M4)> (M5), indicating that M4 is faster than M5.
[0162]
On the other hand, in terms of image quality, (M4) <(M5), and M5 has a characteristic that it shows higher image quality than M4.
[0163]
7 and 8 are flowcharts showing an example of the first data processing procedure in the print control apparatus according to the present invention, and correspond to the image data processing procedure by the CPU 208 of the printer control unit 101. FIG. Note that S701 to S717 indicate steps, and a control program corresponding to the steps is stored in the ROM 219 shown in FIG.
[0164]
First, when the CPU 208 receives image data, the process proceeds to step S701, where the printing device quality mode (normal quality, high quality, ultra high quality) designated via the data 218 from the panel or host computer 201 and stored in the NVRAM 220 is entered. ), And if it is determined that the quality is normal, step S7 12 If it is determined that the other mode is selected, the process proceeds to step S702.
[0165]
In step S702, it is determined whether the quality mode of the printing apparatus stored in the NVRAM 220 is the super high quality mode again. If it is determined that the quality mode is the super high quality mode, the process proceeds to step S708. If it is determined that the mode is the quality mode, the process proceeds to step S703.
[0166]
In step S703, if the size of the input image data determines whether the width or height of the image is equal to or smaller than a predetermined value N, and if it is determined that the width or height of the image is smaller than the predetermined value N, Proceeding to step S712, if it is determined that the width or height of the image is greater than the predetermined value N, the process proceeds to step S704. This means that a too small image such as a 1 × 1 pixel image is judged as not requiring high-quality scaling.
[0167]
In step S704, a scaling factor for printing the input image on the final raster is calculated from the resolution of the input image and the resolution of the print image, and it is determined whether the scaling factor is smaller than a predetermined value M. If it is determined that it is smaller than the predetermined value M, the process proceeds to step S712, and if it is determined that the scaling factor is larger than the predetermined value M, the process proceeds to step S705.
[0168]
In step S705, a scaling factor for printing the input image on the final raster is calculated from the resolution of the input image and the resolution of the print image, and it is determined whether the scaling factor is smaller than a predetermined value L. If it is determined that the value is smaller than the predetermined value L, the process proceeds to step S710. If it is determined that the value is larger than the predetermined value L, the process proceeds to step S706.
[0169]
In step S706, the scaling factor and scaling method of the first enlargement / reduction unit 402 before creating the intermediate data shown in FIG. 4 are set. Here, the scaling factor is set to “½” of the enlargement ratio calculated in step S704, and the scaling method is set to “high quality”.
[0170]
In step S707, the scaling factor and scaling method of the second enlargement / reduction unit 404 after creating the intermediate data shown in FIG. 4 are set. Here, the scaling factor is set to “½” of the enlargement ratio calculated in step S704, and the scaling method is set to “normal quality”.
[0171]
On the other hand, in step S710, the scaling factor and scaling method of the first enlargement / reduction unit 402 before creating the intermediate data shown in FIG. 4 are set. Here, the scaling factor is the magnification calculated in step S704, and the scaling method is “high quality”.
[0172]
In step S711, the scaling factor and scaling method of the second enlargement / reduction unit 404 after creation of the intermediate data in FIG. 4 are set. Here, the scaling factor is “same size”, and the scaling method is “normal quality”.
[0173]
Here, for example, when the resolution of the final raster is “300”, “600”, and “1200” dpi, the values of M and L are set as follows.
[0174]
Final raster resolution 300 DPI, M = 1, L = 2 / final raster resolution 600 DPI, M = 2, L = 4 / final raster resolution 1200 DPI, M = 4, L = 8.
[0175]
Taking the case of the final raster resolution “600” DPI as an example, if the enlargement ratio is smaller than twice, drawing with “normal quality” is considered that high-quality enlargement is unnecessary, and the enlargement ratio is larger than twice. If it is smaller than 4 times, it is necessary to increase the quality of the image, and it will be expanded with “high quality”. If the expansion rate is larger than 4 times, if all the images are expanded with “high quality”, the speed will be slow. The expansion is divided into two stages, showing that the first half of the expansion is of high quality and the latter half of the expansion is of normal quality.
[0176]
On the other hand, if it is determined in step S702 that it is “super high quality”, in step S708, the scaling factor and scaling method of the first enlargement / reduction unit 402 before creating intermediate data in FIG. 4 are set. Here, the scaling factor is calculated from the resolution of the input image and the resolution of the print image, the scaling factor for printing the input image on the final raster is set, and the scaling value is set. Set.
[0177]
In step S709, the scaling factor and scaling method of the second enlargement / reduction unit 404 before creating intermediate data in FIG. 4 are set. Here, the scaling factor is set to the same magnification, and the scaling method is the normal quality.
[0178]
On the other hand, in step S712, a scaling factor for printing the input image on the final raster is calculated from the resolution of the input image and the resolution of the print image, and it is determined whether or not the scaling factor is smaller than a predetermined value K. If so, the process proceeds to step S715; otherwise, the process proceeds to step S713.
[0179]
Here, K is set to 1 time. That is, if it is reduced, it is reduced before creating the intermediate code, and if it is enlarged, it is enlarged after creating the intermediate code. As a result, the data amount of the intermediate code can be minimized.
[0180]
In step S713, a scaling factor and a scaling method of the first enlargement / reduction unit 402 before creating the intermediate data in FIG. 4 are set. Here, the scaling factor is set to “same size”, and the scaling method is set to “normal quality”.
[0181]
In step S714, a scaling factor and a scaling method of the second enlargement / reduction unit 404 after creating the intermediate data in FIG. 4 are set. Here, the scaling factor is set to the enlargement ratio calculated in step S712, and the scaling method is set to “normal quality”.
[0182]
On the other hand, if it is determined in step S712 that the scaling factor is greater than the predetermined value K, in step S715, the scaling factor and scaling method of the first enlargement / reduction unit 402 before creating intermediate data in FIG. 4 are set. Here, the scaling factor is the reduction rate calculated in step S712, and the scaling method is “normal quality”. In step S716, a scaling factor and a scaling method of the second enlargement / reduction unit 404 after creating the intermediate data in FIG. 4 are set. Here, the scaling factor is set to “same size”, and the scaling method is set to “normal quality”. In step S717, the process is continued.
[0183]
FIG. 9 is a flowchart showing an example of a second data processing procedure in the print control apparatus according to the present invention, and corresponds to the image data processing procedure by the CPU 208 of the printer control unit 101. S1101 to S1107 indicate each step, and a control program corresponding to the step is stored in the ROM 219 shown in FIG.
[0184]
Step S1101 is processing after step S717 in FIG. 7, and the first enlargement / reduction unit 402 enlarges or reduces the image data according to the already set enlargement / reduction ratio.
[0185]
In step S 1102, the image is converted into intermediate data shown in FIG. 3 and stored in the intermediate buffer 209.
[0186]
In step S1103, it is determined whether data input from the host computer 201 has been processed for one page.
[0187]
If one page has not been processed, the process returns to step S701 to analyze the next command.
[0188]
If one page has been processed, the process proceeds to step S1104.
[0189]
In step S1104, the renderer 210 reads the data in the intermediate buffer 209.
[0190]
In step S1105, the second enlargement / reduction unit 404 enlarges or reduces the image data according to the already set enlargement / reduction ratio.
[0191]
In step S1106, data is drawn in the band buffer 211.
[0192]
In step S1107, it is determined whether intermediate data for one page has been processed from the intermediate buffer 209 or not.
[0193]
If one page has not been processed, the process returns to step S1104 to analyze the next intermediate data.
[0194]
If one page has been processed, the process ends.
[0195]
[Second Embodiment]
In the first embodiment, the processing branch is performed according to the quality mode. However, when the image is accompanied by information specifying image contents such as characters, figures, and natural images as an image command, the processing is branched according to the information. Also good.
[0196]
[Third Embodiment]
In the second embodiment, the information specifying the image content is attached as the image command. However, the image content may be searched for and the image content determined in the printer.
[0197]
[Fourth Embodiment]
In the first embodiment, the scaling method is set to the ultra-high quality method in step S708. However, if the image is accompanied by information specifying the image content such as characters, graphics, and natural images as an image command, those In accordance with the information, a method for retaining an edge may be selected for a character or graphic, and a method for retaining a gradation may be selected for a natural image.
[0198]
[Fifth Embodiment]
FIG. 10 is a flowchart showing an example of a third data processing procedure in the print control apparatus according to the present invention. Note that S718 to S726 indicate each step.
[0199]
First, in step S718, the type of PDL is determined to determine whether the type of PDL is PDL1, and if it is determined that the type of PDL is PDL1, the process proceeds to step S712, and otherwise. If so, the process proceeds to step S719. This means that PDL that does not require high quality gives priority to speed.
[0200]
In step S719, it is determined whether or not the page memory 213 is provided after the renderer 210. If it is determined that the page memory 213 is not provided, the process proceeds to step S720. If it is determined that the page memory 213 is provided, the process proceeds to step S725. .
[0201]
This indicates that when the page memory 213 is not provided, rendering needs to be performed in synchronization with the video signal of the printer engine, and the processing time allocated for rendering is limited.
[0202]
In step S725, a scaling factor and a scaling method are set in the first enlargement / reduction unit 402 before intermediate data creation in FIG. Here, the scaling factor is set to “same size”, and the scaling method is set to “normal quality”.
[0203]
Next, in step S726, a scaling factor and a scaling method are set in the second enlargement / reduction unit 404 after creating the intermediate data in FIG. Here, the scaling factor is set to the value that calculates the scaling factor when printing the input image on the final raster from the resolution of the input image and the resolution of the print image, the scaling method is set to `` super high quality '', The process proceeds to step S717.
[0204]
This indicates that when the page memory is provided, a sufficient time can be allocated for rendering, so that the second enlargement / reduction unit 404 can set a slow process.
[0205]
On the other hand, if it is determined in step (719) that the page memory 213 is not provided after the renderer 210, the quality and speed of the enlargement / reduction process are determined in step (720), and the first enlargement / reduction unit 402 is determined. In order to assign appropriate processing to the second enlargement / reduction unit 404, the speed and quality are determined, and the first enlargement / reduction unit 402 and the second enlargement / reduction unit 404 are respectively changed in magnification and magnification in steps S721 to S724. The scaling method is assigned and set, and the process returns to step S717.
[0206]
Specifically, if quality priority is given in step S720, the process proceeds to step S721. In step S721, the scaling factor C of the first enlargement / reduction unit 402 is changed from the resolution of the input image and the resolution of the print image. A value obtained by calculating a scaling factor for printing on the final raster is set, and a scaling method C is set to “super high quality”. In step S722, the scaling factor D of the second enlargement / reduction unit 404 is set to the same magnification, and the scaling method D is set to “normal quality”. Next, in step S723, when speed quality is prioritized, the process proceeds to step S721 and the following processing is performed.
[0207]
That is, the magnification X when the input image is printed on the final raster is calculated from the magnification of the input image and the resolution of the print image.
[0208]
Next, from the time T assigned to the drawing process, a scaling process of the highest quality that can satisfy the time with the scaling ratio X is selected and assigned to the second enlargement / reduction unit 404. B = X. The scaling factor is A = same magnification.
[0209]
If there is no scaling process that can satisfy the time with the scaling ratio X, the scaling ratio is changed to a scaling ratio Y that can be printed at a higher speed, and the scaling process of the highest quality that can satisfy the time with the scaling ratio Y. Is selected and assigned as the second enlargement / reduction unit 404. The scaling factor is B = Y.
[0210]
Further, the variable magnification Z = X / Y is set as the variable magnification A = Z of the first enlargement / reduction unit 402. For the scaling method of the first enlargement / reduction unit 402, it is possible to select an appropriate scaling factor.
[0211]
Further, if the variable magnification Y does not satisfy the time T allocated to the drawing process, the above process may be repeated.
[0212]
In this way, the variable magnification A and the variable magnification B are determined.
[0213]
[Sixth Embodiment]
In the fifth embodiment, the determination is made based on the speed and quality in step S720 shown in FIG. 10, but it may be branched depending on the capacity of the intermediate buffer 209.
[0214]
In this case, if the number of intermediate buffers 209 is small, the process proceeds to step S723, and if the number of memories is large, the process proceeds to step S721.
[0215]
Taking enlargement as an example, in step S721, high-quality enlargement is performed with the calculated enlargement rate, in step S722 it is the same magnification, in step S723, it is the same magnification, and in step S724, high-quality enlargement is performed with the calculated enlargement rate. It is recommended.
[0216]
[Seventh Embodiment]
In the fifth embodiment, the determination is made based on the speed and quality in step S720. However, the process may be branched depending on whether the input image is reusable.
[0217]
In this case, if reusable, the process proceeds to step S721, and if not possible, the process proceeds to step S723.
[0218]
Taking the enlargement process as an example, high-quality enlargement is set at the calculated enlargement ratio in step S721, equal magnification is set in step S722, equal magnification in step S723, and enlargement ratio calculated in step S724. It is recommended to increase the quality of the product.
[0219]
As a result, when the intermediate data is reused, there is an advantage that the time for performing the enlargement process again can be saved even if the intermediate data capacity increases.
[0220]
The configuration of a data processing program that can be read out by a printing system to which the printing control apparatus according to the present invention can be applied will be described below with reference to the memory map shown in FIG.
[0221]
FIG. 11 is a diagram for explaining a memory map of a storage medium that stores various data processing programs that can be read by a printing system to which the printing control apparatus according to the present invention can be applied.
[0222]
Although not particularly illustrated, information for managing a program group stored in the storage medium, for example, version information, creator, etc. is also stored, and information depending on the OS on the program reading side, for example, a program is identified and displayed. Icons may also be stored.
[0223]
Further, data depending on various programs is also managed in the directory. In addition, a program for installing various programs in the computer, and a program for decompressing when the program to be installed is compressed may be stored.
[0224]
The functions shown in FIGS. 7 to 10 in this embodiment may be performed by a host computer by a program installed from the outside. In this case, the present invention is applied even when an information group including a program is supplied to the output device from a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network. Is.
[0225]
As described above, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to the system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium in the storage medium. It goes without saying that the object of the present invention can also be achieved by reading and executing the programmed program code.
[0226]
In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.
[0227]
As a storage medium for supplying the program code, for example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, EEPROM, etc. Can be used.
[0228]
Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) or the like running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0229]
Further, after the program code read from the storage medium is written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the case where the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.
[0230]
【The invention's effect】
As described above, according to the present invention, an input drawing command can be input. During ~ Convert between data And the concerned Generate a print image by rendering intermediate data Drawing In the image control device, Drawing Freely construct a drawing processing environment that can maintain the image quality according to the image conditions and prevent the processing speed from decreasing, and efficiently obtain the output result that has been subjected to the reduction / enlargement processing at the quality desired by the user. There is an effect that can be.
[Brief description of the drawings]
FIG. 1 is a cross-sectional view illustrating a configuration of a printer to which a print control apparatus according to the invention can be applied.
FIG. 2 is a block diagram showing a schematic configuration of a printer control unit shown in FIG.
3 is a diagram illustrating an example of intermediate data stored in the intermediate buffer illustrated in FIG. 2; FIG.
FIG. 4 is a block diagram illustrating a flow of image data processing in the print control apparatus according to the present invention.
FIG. 5 is a diagram illustrating image calculation processing in the print control apparatus according to the present invention.
FIG. 6 is a diagram illustrating image calculation processing in the print control apparatus according to the present invention.
FIG. 7 is a flowchart illustrating an example of a first data processing procedure in the print control apparatus according to the present invention.
FIG. 8 is a flowchart illustrating an example of a first data processing procedure in the print control apparatus according to the present invention.
FIG. 9 is a flowchart illustrating an example of a second data processing procedure in the print control apparatus according to the present invention.
FIG. 10 is a flowchart illustrating an example of a third data processing procedure in the print control apparatus according to the present invention.
FIG. 11 is a diagram illustrating a memory map of a storage medium that stores various data processing programs that can be read by a printing system to which the printing control apparatus according to the invention can be applied.
[Explanation of symbols]
201 Host computer
202 Input / output interface with host computer
203 Input buffer
204 Character pattern generator
205 RAM
208 CPU
210 Renderer
211 band buffer
212 Compression unit
213 page memory
214 Extension
215 color converter
216 Output interface part
217 Printing mechanism
218 Input data
219 ROM
220 NVRAM
221 data
222 Font information section
223 Character pattern part

Claims (7)

入力された描画コマンドを中間データに変換し、当該中間データを描画することにより複数のうちの設定された印刷品位で印刷画像を生成する描画制御装置であって、
前記描画コマンドとして入力されたイメージデータを中間データに変換する際に拡大する第1拡大処理を実行する第1の拡大手段と、
前記中間データを描画し印刷画像を生成する際に拡大する第2拡大処理を実行する第2の拡大手段と、
前記描画コマンドに基づく印刷処理を実行するために設定された印刷品位として高品位が指定されており、かつ、前記イメージデータのドット数から得られる当該イメージデータのサイズが第1の所定値よりも大きい場合、前記第1の拡大手段による前記第1拡大処理のみを実行させ、
前記描画コマンドに基づく印刷処理を実行するために設定された印刷品位として高品位が指定されており、かつ、前記イメージデータのドット数から得られる当該イメージデータのサイズが前記第1の所定値よりも小さい場合、前記第2の拡大手段による前記第2拡大処理のみを実行させ、
前記印刷品位として通常品位が指定されている場合、前記第2拡大処理のみを前記第2の拡大手段に実行させる制御手段と
を有し、
前記第1拡大処理により得られる画質は前記第2拡大処理により得られる画質よりも高画質であり、前記第2拡大処理の処理速度は前記第1拡大処理の処理速度よりも高速であり、前記第1の所定値は前記第1拡大処理を不要とするサイズであることを特徴とする描画制御装置。
A drawing control apparatus that converts an input drawing command into intermediate data and draws the intermediate data to generate a print image with a set print quality among a plurality of settings,
First enlarging means for executing a first enlarging process for enlarging when the image data input as the drawing command is converted into intermediate data;
A second enlarging means for executing a second enlarging process for enlarging when the intermediate data is drawn and a print image is generated;
High quality is designated as the print quality set for executing the printing process based on the drawing command, and the size of the image data obtained from the number of dots of the image data is larger than the first predetermined value. If it is larger, only the first enlargement process by the first enlargement means is executed,
High quality is designated as the print quality set to execute the printing process based on the drawing command, and the size of the image data obtained from the number of dots of the image data is greater than the first predetermined value. Is smaller, only the second enlargement process by the second enlargement means is executed,
Control means for causing the second enlargement means to execute only the second enlargement process when normal quality is designated as the print quality,
The image quality obtained by the first enlargement process is higher than the image quality obtained by the second enlargement process, the processing speed of the second enlargement process is higher than the processing speed of the first enlargement process, The drawing control apparatus according to claim 1, wherein the first predetermined value is a size that does not require the first enlargement process.
前記制御手段は、前記設定された印刷品位が高品位であり、かつ、前記イメージデータのドット数から得られる当該イメージデータのサイズが第1の所定値よりも大きい場合において、解像度と指定された印刷画像の解像度とから導出された拡大率が第2の所定値よりも大きい場合、前記第1拡大処理のみを前記第1の拡大手段に実行させ、前記拡大率が前記第2の所定値よりも小さい場合、前記第2拡大処理のみを前記第2の拡大手段に実行させることを特徴とする請求項1に記載の描画制御装置。The control means is designated as a resolution when the set print quality is high quality and the size of the image data obtained from the number of dots of the image data is larger than a first predetermined value . When the enlargement ratio derived from the resolution of the print image is greater than a second predetermined value, the first enlargement unit is caused to execute only the first enlargement process, and the enlargement ratio is greater than the second predetermined value. 2. The drawing control apparatus according to claim 1, wherein the second enlargement unit executes only the second enlargement process when the second enlargement process is smaller. 前記制御手段は、前記印刷品位としてさらに超高品位を有し、前記超高品位が指定されている場合、前記イメージデータのドット数から得られる当該イメージデータのサイズを判定することなく、前記第1拡大処理のみを前記第1の拡大手段に実行させることを特徴とする請求項1または2に記載の描画制御装置。  The control means further has an ultra-high quality as the print quality, and when the ultra-high quality is designated, the control means does not determine the size of the image data obtained from the number of dots of the image data. The drawing control apparatus according to claim 1, wherein only the one enlargement process is executed by the first enlargement unit. 入力された描画コマンドを中間データに変換し、当該中間データを描画することにより複数のうちの設定された印刷品位で印刷画像を生成する描画制御装置における描画制御方法であって、
前記描画コマンドとして入力されたイメージデータを中間データに変換する際に拡大する第1拡大処理を実行する第1の拡大ステップと、
前記中間データを描画し印刷画像を生成する際に拡大する第2拡大処理を実行する第2の拡大ステップと、
前記描画コマンドに基づく印刷処理を実行するために設定された印刷品位として高品位が指定されており、かつ、前記イメージデータのドット数から得られる当該イメージデータのサイズが第1の所定値よりも大きい場合、前記第1の拡大ステップによる前記第1拡大処理のみを実行させ、
前記描画コマンドに基づく印刷処理を実行するために設定された印刷品位として高品位が指定されており、かつ、前記イメージデータのドット数から得られる当該イメージデータのサイズが前記第1の所定値よりも小さい場合、前記第2の拡大ステップによる前記第2拡大処理のみを実行させ、
前記印刷品位として通常品位が指定されている場合、前記第2拡大処理のみを前記第2の拡大手段に実行させる制御ステップと
を有し、
前記第1拡大処理により得られる画質は前記第2拡大処理により得られる画質よりも高画質であり、前記第2拡大処理の処理速度は前記第1拡大処理の処理速度よりも高速であり、前記第1の所定値は前記第1拡大処理を不要とするサイズであることを特徴とする描画制御方法。
A drawing control method in a drawing control apparatus that converts an input drawing command into intermediate data and generates a print image with a set print quality among a plurality by drawing the intermediate data,
A first enlargement step for executing a first enlargement process for enlarging the image data input as the drawing command when the image data is converted into intermediate data;
A second enlargement step for executing a second enlargement process for enlarging the intermediate data when generating the print image by drawing the intermediate data;
High quality is designated as the print quality set for executing the printing process based on the drawing command, and the size of the image data obtained from the number of dots of the image data is larger than the first predetermined value. If it is larger, only the first enlargement process by the first enlargement step is executed,
High quality is designated as the print quality set to execute the printing process based on the drawing command, and the size of the image data obtained from the number of dots of the image data is greater than the first predetermined value. Is also smaller, only the second enlargement process by the second enlargement step is executed,
A control step for causing the second enlargement means to execute only the second enlargement process when normal quality is designated as the print quality,
The image quality obtained by the first enlargement process is higher than the image quality obtained by the second enlargement process, the processing speed of the second enlargement process is higher than the processing speed of the first enlargement process, The drawing control method, wherein the first predetermined value is a size that does not require the first enlargement process.
前記制御ステップは、前記設定された印刷品位が高品位であり、かつ、前記イメージデータのドット数から得られる当該イメージデータのサイズが第1の所定値よりも大きい場合において、解像度と指定された印刷画像の解像度とから導出された拡大率が第2の所定値よりも大きい場合、前記第1拡大処理のみを前記第1の拡大ステップで実行させ、前記拡大率が前記第2の所定値よりも小さい場合、前記第2拡大処理のみを前記第2の拡大ステップで実行させることを特徴とする請求項4に記載の描画制御方法。The control step is designated as a resolution when the set print quality is high quality and the size of the image data obtained from the number of dots of the image data is larger than a first predetermined value . If the enlargement ratio derived from the resolution of the print image is greater than a second predetermined value, only the first enlargement process is executed in the first enlargement step, and the enlargement ratio is greater than the second predetermined value. 5. The drawing control method according to claim 4, wherein only the second enlargement process is executed in the second enlargement step when the value is smaller. 前記制御ステップは、前記印刷品位としてさらに超高品位を有し、前記超高品位が指定されている場合、前記イメージデータのドット数から得られる当該イメージデータのサイズを判定することなく、前記第1の拡大ステップによる前記第1拡大処理のみを実行させることを特徴とする請求項4または5に記載の描画制御方法。  The control step further has an ultra-high quality as the print quality, and when the ultra-high quality is designated, without determining the size of the image data obtained from the number of dots of the image data, 6. The drawing control method according to claim 4, wherein only the first enlargement process in one enlargement step is executed. 7. 請求項4〜6のいずれかに記載の描画制御方法をコンピュータに実行させるためのプログラム。  The program for making a computer perform the drawing control method in any one of Claims 4-6.
JP2001392124A 2001-12-25 2001-12-25 Drawing control apparatus, drawing control method and program Expired - Fee Related JP4336470B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001392124A JP4336470B2 (en) 2001-12-25 2001-12-25 Drawing control apparatus, drawing control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001392124A JP4336470B2 (en) 2001-12-25 2001-12-25 Drawing control apparatus, drawing control method and program

Publications (3)

Publication Number Publication Date
JP2003191535A JP2003191535A (en) 2003-07-09
JP2003191535A5 JP2003191535A5 (en) 2005-06-09
JP4336470B2 true JP4336470B2 (en) 2009-09-30

Family

ID=27599526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001392124A Expired - Fee Related JP4336470B2 (en) 2001-12-25 2001-12-25 Drawing control apparatus, drawing control method and program

Country Status (1)

Country Link
JP (1) JP4336470B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004264920A (en) * 2003-02-26 2004-09-24 Sony Corp Device and method for creating thumbnail image and improving quality of resized image
EP2487644A3 (en) * 2004-04-30 2012-10-31 Access Co., Ltd. Method for dynamic image enlarging/reducing display in browsing, terminal device, and program
JP2008252701A (en) * 2007-03-30 2008-10-16 Toshiba Corp Video signal processing apparatus, video display apparatus and video signal processing method
JP5457844B2 (en) * 2010-01-14 2014-04-02 株式会社沖データ Image processing device

Also Published As

Publication number Publication date
JP2003191535A (en) 2003-07-09

Similar Documents

Publication Publication Date Title
JP2014000753A (en) Image processing apparatus, image processing method, and program
JP3902907B2 (en) Image processing apparatus and method, and image forming apparatus
EP0575134B1 (en) Method and apparatus for printing according to a graphic language
JP4336470B2 (en) Drawing control apparatus, drawing control method and program
JP4323618B2 (en) Image processing apparatus and image processing method
JP3728183B2 (en) Printing control apparatus, drawing control apparatus, data processing method, and storage medium
JP4461361B2 (en) Drawing processing method and program, drawing command output device and image forming apparatus
JP2006327155A (en) Image processing device, its control method, and program
JP2006159738A (en) Print controller, its data processing method, and storage medium
JP4474487B2 (en) Image processing apparatus and image processing method
US6246795B1 (en) Image processing apparatus and method
JP2006140597A (en) Device and method for printing control, computer program, and storage medium
JP2007081886A (en) Drawing processing apparatus
JP3792881B2 (en) Image processing apparatus, data processing method for image processing apparatus, and storage medium storing computer-readable program
JPH10151815A (en) Printing-processing apparatus
JPH08130618A (en) Printer and print method
JPH10305639A (en) Print processor and processing method
JP2008173946A (en) Image processor, image processing method and image processing program
JP2004134962A (en) Image compression method
JPH0952392A (en) Image output apparatus
JP2022086187A (en) Image processing device, image processing device, image processing method, and program
JP2002096506A (en) Rasterizing method, print controller, print system, and medium having program recorded therein
JP4054661B2 (en) Print control method, print data processing method, print system, information processing apparatus, and control program
JPH10228361A (en) Device and method for decoding, and storage medium
JP2006235932A (en) Image processing system

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040826

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040826

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20080107

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080805

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081002

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081028

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081226

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090203

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090406

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20090417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090519

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090527

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090629

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

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4336470

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130703

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees