JP3800095B2 - Printer driver and print data generation method - Google Patents

Printer driver and print data generation method Download PDF

Info

Publication number
JP3800095B2
JP3800095B2 JP2002011838A JP2002011838A JP3800095B2 JP 3800095 B2 JP3800095 B2 JP 3800095B2 JP 2002011838 A JP2002011838 A JP 2002011838A JP 2002011838 A JP2002011838 A JP 2002011838A JP 3800095 B2 JP3800095 B2 JP 3800095B2
Authority
JP
Japan
Prior art keywords
data
halftone
raster
white
raster data
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
JP2002011838A
Other languages
Japanese (ja)
Other versions
JP2003216369A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002011838A priority Critical patent/JP3800095B2/en
Publication of JP2003216369A publication Critical patent/JP2003216369A/en
Application granted granted Critical
Publication of JP3800095B2 publication Critical patent/JP3800095B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Facsimiles In General (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、プリンタに供給する印刷データを生成するためにコンピュータ上で実行されるプリンタドライバと、印刷データを生成するための印刷データ生成方法とに、関する。
【0002】
【従来の技術】
インクジェットプリンタの中には、描画を行う必要がないライン(全ピクセルが白ピクセルであるライン)に関するデータを含まない印刷データに基づいて印刷を行うものが、存在している。
【0003】
以下、図5を用いて、そのようなインクジェットプリンタ用の既存のプリンタドライバ80の構成及び動作を、説明する。
【0004】
図示したように、このプリンタドライバ80には、生成すべき印刷物のRGBイメージデータを生成するイメージ化モジュールと、イメージ化モジュールにより生成されたRGBイメージデータ内の各ラスタデータのハーフトーンデータを生成するハーフトーンモジュールと、ハーフトーンモジュールにより生成されたハーフトーンデータ群に基づいて実際の描画(インク滴の吐出)が不必要なハーフトーンデータ(以下、白ハーフトーンデータと表記する)を含まない印刷データを生成する出力モジュールとが、含まれている。なお、ラスタデータとは、1ライン分のRGBイメージデータのことである。また、ハーフトーンデータとは、インクジェットプリンタ内の印字ヘッドの1ライン分の描画内容を規定するデータ(印字ヘッドの各色のドットのON/OFFデータの集合)のことである。このハーフトーンデータの生成は、ラスタデータを構成している各RGBピクセルデータを、ルックアップテーブル(LUT)を利用してハーフトーンピクセルデータ(印字ヘッドが吐出可能な各色のインクのON/OFFデータ)に変換することにより、行われている。
【0005】
すなわち、このプリンタドライバ80は、印刷時に、全てのラスタデータについてハーフトーンデータが生成された後に、各ハーフトーンデータが白ハーフトーンデータであるか否かが判断されることにより、白ハーフトーンデータを含まない印刷データが生成されるものとなっている。
【0006】
【発明が解決しようとする課題】
上記説明から明らかなように、プリンタドライバ80は、印刷時に、実際には使用されないラスターデータ(白ラスタデータ)を生成する処理、換言すれば、無駄な処理が、行われるものとなっている。
【0007】
そこで、本発明の課題は、上記のような無駄な処理が伴わない手順で印刷データを生成することができるプリンタドライバ及び印刷データ生成方法を、提供することにある。
【0008】
【課題を解決するための手段】
上記課題を解決するために、本発明のプリンタドライバは、コンピュータに、生成すべき印刷物の内容を表す複数のラスタデータに対して、各ラスタデータが全てのピクセルが白であることを表している白ラスタデータであるか否かを判断する判断ステップと、この判断ステップにより白ラスタデータではないと判断された各ラスタデータに所定の処理を施すことによりハーフトーンデータを生成するハーフトーンデータ生成ステップと、ハーフトーンデータ生成ステップにて生成されたハーフトーンデータ群と各ハーフトーンデータが描画内容を表しているラインの位置を示す情報とを含む印刷データを生成する印刷データ生成ステップとを実行させることが出来るように、かつ、ハーフトーンデータ生成ステップが、判断ステップにより或るラスタデータが白ラスタデータではないと判断された場合に、そのラスタデータに所定の処理を施すことによりハーフトーンデータを生成する第1処理ステップと、判断ステップにより或るラスタデータが白ラスタデータであると判断された場合に、印刷データ生成ステップへの供給が完了していないハーフトーンデータの有無を判断し、印刷データ生成ステップへの供給が完了していないハーフトーンデータがなかった場合には、空白ライン数を“1”カウントアップし、印刷データ生成ステップへの供給が完了していないハーフトーンデータがあった場合には、当該ハーフトーンデータとその時点における空白ライン数とを印刷データ生成ステップに供給した後に、空白ライン数を“1”とする第2処理ステップとを、含むステップであり、印刷データ生成ステップが、供給された空白ライン数を、それまでの処理により内容が確定している部分の直後に位置する描画を行う必要がない連続したラインの数として取り扱うとともに、供給された幾つかのハーフトーンデータをその描画を行う必要がない連続したラインの直後に位置する連続したラインに関するデータとして取り扱うステップであるように、作成される。
【0009】
すなわち、本発明のプリンタドライバを用いた場合、各ラスタデータ(1ライン分のイメージデータ)がハーフトーンデータの生成が必要なデータであるかが判断されて、ハーフトーンデータの生成が必要なラスタデータに対してのみ、ハーフトーンデータを生成する処理が行われる。従って、本発明のプリンタドライバを用いれば、ハーフトーンデータの生成が省略されることがある分、ハーフトーンデータの生成後に各ハーフトーンデータが白ハーフトーンデータであるか否かが判断されている既存のプリンタドライバよりも、高速に印刷データを生成できることになる。
【0010】
なお、本発明のプリンタドライバを実現する際には、白ラスタデータではないと判断したラスタデータに関しては白ではないピクセルが最初に現れる位置を特定する判断ステップを採用し、判断ステップにより白ラスタデータではないと判断された各ラスタデータのハーフトーンデータを生成する際に、各ラスタデータ内の,判断ステップにて特定された位置のピクセル以降のピクセル群に関するデータに対してのみハーフトーン化処理を行うハーフトーンデータ生成ステップを採用しておくことが出来る。
【0011】
判断ステップ、ハーフトーンデータ生成ステップとして、このようなステップを採用したプリンタドライバによれば、各ラインの先頭部分に存在する連続した白ピクセル群に対して、その実行に或る程度の時間が必要とされるハーフトーン化処理が行われなくなる分、高速に印刷データの生成が完了することになる。
【0013】
そして、本発明の印刷データ生成方法は、生成すべき印刷物の内容を表す複数のラスタデータに対して、各ラスタデータが全てのピクセルが白であることを表している白ラスタデータであるか否かを判断する判断ステップと、この判断ステップにより白ラスタデータではないと判断された各ラスタデータに所定の処理を施すことによりハーフトーンデータを生成するハーフトーンデータ生成ステップと、このハーフトーンデータ生成ステップにて生成されたハーフトーンデータ群と各ハーフトーンデータが描画内容表しているラインの位置を示す情報とを含む印刷データを生成する印刷データ生成ステップとを含む方法であると共に、ハーフトーンデータ生成ステップが、判断ステップにより或るラスタデータが白ラスタデータではないと判断された場合に、そのラスタデータに所定の処理を施すことによりハーフトーンデータを生成する第1処理ステップと、判断ステップにより或るラスタデータが白ラスタデータであると判断された場合に、印刷データ生成ステップへの供給が完了していないハーフトーンデータの有無を判断し、印刷データ生成ステップへの供給が完了していないハーフトーンデータがなかった場合には、空白ライン数を“1”カウントアップし、印刷データ生成ステップへの供給が完了していないハーフトーンデータがあった場合には、当該ハーフトーンデータとその時点における空白ライン数とを印刷データ生成ステップに供給した後に、空白ライン数を“1”とする第2処理ステップとを、含むステップであり、印刷データ生成ステップが、供給された空白ライン数を、それまでの処理により内容が確定している部分の直後に位置する描画を行う必要がない連続したラインの数として取り扱うとともに、供給された幾つかのハーフトーンデータをその描画を行う必要がない連続したラインの直後に位置する連続したラインに関するデータとして取り扱うステップである方法となっている。
【0014】
すなわち、本発明の印刷データ生成方法は、本発明のプリンタドライバが実行されたコンピュータにおける印刷データの生成手順と同じ手順で印刷データが生成される方法となっている。従って、この印刷データ生成方法を用いれば、実際の描画を必要としないハーフトーンデータを含まない印刷データを従来よりも高速に生成できることになる。
【0015】
【発明の実施の形態】
以下、本発明の実施の形態を、図面を参照して詳細に説明する。
【0016】
図1に模式的に示したように、本発明の一実施形態に係るプリンタドライバ10は、インクジェットプリンタ50を利用するホストコンピュータ60にインストールされるプログラムである。なお、プリンタドライバ10のユーザへの提供は、CD−ROM等の可搬型記録媒体20に記録された形や、Webサイトからのダウンロード(図示せず)によって、行われる。
【0017】
また、本実施形態のプリンタドライバ10には、既に説明した既存のプリンタドライバ80(図5参照)と同様に、イメージ化モジュール、ハーフトーンモジュール及び出力モジュールが、含まれている。ただし、プリンタドライバ10に含まれるハーフトーンモジュールは、プリンタドライバ80に含まれるハーフトーンモジュールとは異なる手順で、ハーフトーンデータを生成するものとなっている。
【0018】
具体的には、ハーフトーンモジュールは、図2及び図3にその手順を示したハーフトーンデータ生成処理を、イメージ化モジュールによってバンド毎に生成されるRGBイメージデータ(以下、バンド単位イメージデータと表記する)に対して実行することにより、1ページ分のハーフトーンデータを生成するものとなっている。
【0019】
すなわち、或るバンド単位イメージデータの処理を開始したハーフトーンモジュールは、まず、そのバンド単位イメージデータ内の最初のラスタデータ(1ライン分のRGBイメージデータ)を処理対象ラスタデータとして取得する(ステップS101)。
【0020】
次いで、ハーフトーンモジュールは、処理対象ラスタデータ内の最初(或いは次)のピクセルデータを取得(ステップS102)して、当該ピクセルデータが、ピクセルが白であることを示している白ピクセルデータであるか否かを判断する(ステップS103)。
【0021】
そして、ハーフトーンモジュールは、取得したピクセルデータが白ピクセルデータであった場合(ステップS103;YES)には、処理対象ラスタデータ内の全ピクセルデータに対する処理が完了したか否かを判断する(ステップS104)。そして、ハーフトーンモジュールは、処理対象ラスタデータ内の全ピクセルデータに対する処理が完了していなかった場合(ステップS104;NO)には、ステップS102に戻って、処理対象ラスタデータ内の次のピクセルデータが白ピクセルデータであるか否かのチェックを行う。
【0022】
このような処理(ステップS102〜S104の処理)を繰り返している間に、白ピクセルデータではないピクセルデータ(以下、非白ピクセルデータと表記する)を見出した場合(ステップS103;NO)、ハーフトーンモジュールは、処理対象ラスタデータからハーフトーンデータを生成する処理(ステップS105)を実行する。この処理時、ハーフトーンモジュールは、見出した非白ピクセルデータ以降のピクセルデータ群に対してのみ、実際のハーフトーン化処理(LUTを参照してRGBピクセルデータをハーフトーンピクセルデータに変換する処理)を行い、見出した非白ピクセルデータよりも前のピクセルデータ群(すなわち、白ピクセルデータ群)に対しては、各ピクセルデータを白を意味するハーフトーンピクセルデータに変換する処理を行う。
【0023】
ステップS105の処理の終了後、ハーフトーンモジュールは、出力モジュールに未だ渡していないハーフトーンデータ(以下、未提供ハーフトーンデータと表記する)の数が予め定められている規定数に達したか否かを判断する(ステップS106)。そして、ハーフトーンモジュールは、未提供ハーフトーンデータの数が規定数に達していなかった場合(ステップS106;NO)には、1バンド分のラスタデータの処理が完了したか否かを判断(ステップS111)し、1バンド分のラスタデータの処理が完了していなかった場合(ステップS111;NO)には、処理を行っているバンド単位イメージデータ内の次のラスタデータに対して、ステップS101からの処理を実行する。
【0024】
一方、未提供ハーフトーンデータの数が規定数となっていた場合(ステップS106;YES)、ハーフトーンモジュールは、その規定数のラスタデータと空白ラスタ数とを出力モジュールに渡した後に空白ラスタ数を“0”とする処理(ステップS107)を行う。このステップS107で出力モジュールに渡される空白ラスタ数は、それと同時に出力モジュールに渡されるラスタデータ群の前に存在していた連続した白ラスタデータの総数を示す情報である。なお、この空白ラスタ数の変更(カウント)は、後述するステップS110(図3)にて行われる。また、流れ図への表記は省略してあるが、ハーフトーンモジュールは、ページの先頭部分に関するバンド単位イメージデータに対するハーフトーンデータ生成処理の開始時に、空白ラスタ数を、“0”或いは当該バンド単位イメージデータの開始位置(当該バンド単位イメージデータと印字領域の先頭との間に存在するライン数)を示す値に初期化する。
【0025】
ステップS102〜S104の処理を処理対象ラスタデータ内の最終のピクセルデータまで行っても非白ピクセルデータが見出せなかった場合(ステップS104;YES)、ハーフトーンモジュールは、未提供ハーフトーンデータが残っているか否かを判断する(図3:ステップS108)。そして、ハーフトーンモジュールは、未提供ハーフトーンデータが残っていた場合(ステップS108;YES)には、それらの未提供ハーフトーンデータと空白ラスタ数とを出力モジュールに渡した後に空白ラスタ数を“1”に変更する処理(ステップS109)を行う。その後、ハーフトーンモジュールは、ステップS111(図2)以降の処理を実行する。一方、未提供ハーフトーンデータが残っていなかった場合(ステップS108;NO)、ハーフトーンモジュールは、空白ラスタ数を“1”インクリメント(ステップS110)した後に、ステップS111以降の処理を実行する。
【0026】
そして、1バンド分のラスタデータについてステップS101〜S110の処理が完了したとき(ステップS111;YES)に、ハーフトーンモジュールは、未提供ハーフトーンデータが残っているか否かを判断(ステップS112)し、残っていなかった場合(ステップS112;NO)には、即座に、処理対象となっているバンド単位イメージデータに対するハーフトーンデータ生成処理を終える。
【0027】
また、未提供ハーフトーンデータが残っていた場合(ステップS112;YES)、ハーフトーンモジュールは、未提供ハーフトーンデータと空白ラスタ数とを出力モジュールに渡した後に空白ラスタ数を“0”とする処理(ステップS113)を行ってから、処理対象となっているバンド単位イメージデータに対するハーフトーンデータ生成処理を終える。
【0028】
一方、プリンタドライバ10に含まれる出力モジュールは、ハーフトーンモジュールから、空白ラスタ数と幾つか(規定数以下)のハーフトーンデータとを渡されたとき、渡された幾つかのハーフトーンデータを、自身が確保し管理しているバッファ(メモリの一記憶領域)に記憶する。この際、出力モジュールは、ハーフトーンモジュールから渡された空白ラスタ数を、それまでの処理により内容が確定しているラインの後方に位置する描画を行う必要がない連続したラインの数として取り扱うとともに、ハーフトーンモジュールから渡された幾つかのラスタデータをその描画を行う必要がない連続したラインの直後に位置するライン群に関するデータとして取り扱う。要するに、出力モジュールは、ハーフトーンモジュールから渡された空白ラスタ数に基づき、それと同時に渡されたハーフトーンデータ群がどのラインから始まるライン群に関するデータであるかを把握する。
【0029】
そして、出力モジュールは、当該バッファに記憶されているハーフトーンデータ群、すなわち、非白ハーフトーンデータ群を、それらの位置情報と共に含む印刷データを生成してインクジェットプリンタ50に供給する。
【0030】
以上、説明したように、本プリンタドライバ10には、白ハーフトーンデータを出力モジュールに渡さないハーフトーンモジュールと、ハーフトーンモジュールから渡されたハーフトーンデータ群(非白ハーフトーンデータ群)に基づき、各ハーフトーンデータが白ハーフトーンデータであるか否かをチェックすることなく、印刷データを生成する出力モジュールとが、含まれている。
【0031】
このため、本プリンタドライバ10を用いれば、従来のプリンタドライバ80を用いた場合には、図4(A)に模式的に示した手順で生成されていた印刷データが、図4(B)に模式的に示した手順で生成されることになる。
【0032】
すなわち、従来のプリンタドライバ10では、図4(A)に示してあるように、全てのラスタデータについてハーフトーンデータが生成されてから、各ラスタデータが白ハーフトーンデータであるか非白ハーフトーンデータであるかがチェックされていたが、本プリンタドライバ10では、図4(B)に示してあるように、各ラスタデータがハーフトーンデータの生成が必要な非白ラスタデータであるか否かがチェックされた後に、非白ラスタデータに対してのみ、ハーフトーンデータを生成する処理が行われる。
【0033】
そして、ラスタデータが白ラスタデータであるか非白ラスタデータであるかのチェックは、ハーフトーンデータが白ハーフトーンデータであるか非白ハーフトーンデータであるかのチェックと同程度の時間で終了するので、結局、本プリンタドライバ10を用いれば、白ハーフトーンデータの生成が省略され、かつ、出力モジュールに渡されるデータ量が少なくなる分、従来のプリンタドライバ80よりも短時間で(高速に)印刷データの生成が完了することになる。従って、本プリンタドライバ10を用いれば、実際に描画が必要な部分の少ない印刷物の印刷を特に高速に行えることになる。
【0034】
<変形形態>
本発明の一実施形態として説明したプリンタドライバ10は、コンピュータにインストールされる,インクジェットプリンタ50用のプログラムであったが、本発明の実現方法は、上記したものに限られない。例えば、プリンタドライバ10を、インクジェットプリンタ50以外のプリンタ用のものに変形しても良い。また、コンピュータに装着される拡張ボードとして、プリンタドライバ10と同じ手順の処理を実行するものを製造することにより、本発明の実現しても良く、プリンタドライバ10と同じ手順の処理が、ハードウェア或いはソフトウェアにより、プリンタ側で行われるようにすることによって、本発明を実現しても良い。
【0035】
【発明の効果】
本発明のプリンタドライバ、印刷データ生成方法を用いれば、ハーフトーンデータを含まない印刷データを高速に生成できるので、実際に描画が必要な部分の少ない印刷物の印刷を特に高速に行えることになる。
【図面の簡単な説明】
【図1】 本発明の一実施形態に係るプリンタドライバの使用形態の説明図である。
【図2】 実施形態に係るプリンタドライバに含まれるハーフトーンモジュールにより実行されるハーフトーンデータ生成処理の流れ図である。
【図3】 実施形態に係るプリンタドライバに含まれるハーフトーンモジュールにより実行されるハーフトーンデータ生成処理の流れ図である。
【図4】 実施形態に係るプリンタドライバによる印刷データ生成手順(B)と、従来のプリンタドライバによる印刷データ生成手順(A)との違いを説明するための図である。
【図5】 従来のプリンタドライバによる印刷データ生成手順の説明図である。
【符号の説明】
10 プリンタドライバ
20 可搬型記録媒体
50 インクジェットプリンタ
60 ホストコンピュータ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printer driver executed on a computer to generate print data to be supplied to a printer, and a print data generation method for generating print data.
[0002]
[Prior art]
Some inkjet printers perform printing based on print data that does not include data related to lines that do not need to be drawn (lines in which all pixels are white pixels).
[0003]
The configuration and operation of such an existing printer driver 80 for an ink jet printer will be described below with reference to FIG.
[0004]
As shown in the figure, the printer driver 80 generates an imaging module that generates RGB image data of a printed material to be generated, and halftone data of each raster data in the RGB image data generated by the imaging module. Printing that does not include halftone data (hereinafter referred to as white halftone data) that does not require actual drawing (ink droplet ejection) based on the halftone module and the halftone data group generated by the halftone module And an output module for generating data. The raster data is RGB image data for one line. The halftone data is data (a set of ON / OFF data of dots of each color of the print head) that defines the drawing contents for one line of the print head in the inkjet printer. This halftone data is generated by converting each RGB pixel data constituting the raster data into halftone pixel data (ON / OFF data of each color ink that can be ejected by the print head) using a lookup table (LUT). ) Is done by converting to
[0005]
That is, the printer driver 80 determines whether each halftone data is white halftone data after printing halftone data for all raster data at the time of printing. The print data that does not include is generated.
[0006]
[Problems to be solved by the invention]
As is apparent from the above description, the printer driver 80 performs processing for generating raster data (white raster data) that is not actually used during printing, in other words, wasteful processing.
[0007]
SUMMARY OF THE INVENTION An object of the present invention is to provide a printer driver and a print data generation method that can generate print data in a procedure that does not involve such wasteful processing as described above.
[0008]
[Means for Solving the Problems]
In order to solve the above problem, the printer driver of the present invention indicates to a computer that each raster data is white with respect to a plurality of raster data representing the contents of printed matter to be generated. A determination step for determining whether or not the data is white raster data, and a halftone data generation step for generating halftone data by performing predetermined processing on each raster data determined not to be white raster data by this determination step And a print data generation step for generating print data including the halftone data group generated in the halftone data generation step and information indicating the position of the line in which each halftone data represents the drawing content. And the halftone data generation step depends on the judgment step. When it is determined that the raster data to be processed is not white raster data, a predetermined process is performed on the raster data to generate halftone data. When it is determined that there is halftone data that has not been supplied to the print data generation step, and there is no halftone data that has not been supplied to the print data generation step Counts up the number of blank lines by “1”, and if there is halftone data that has not been supplied to the print data generation step, the halftone data and the number of blank lines at that time are printed. A second processing step of setting the number of blank lines to “1” after being supplied to the generation step Yes, the print data generation step treats the supplied number of blank lines as the number of continuous lines that do not need to be drawn immediately after the portion whose contents have been determined by the previous processing, and is supplied It is created so that some halftone data is treated as data relating to a continuous line located immediately after the continuous line that does not need to be drawn.
[0009]
That is, when the printer driver of the present invention is used, it is determined whether each raster data (image data for one line) is data that needs to generate halftone data, and the raster that needs to generate halftone data. Only the data is processed to generate halftone data. Therefore, if the printer driver of the present invention is used, it is determined whether each halftone data is white halftone data after the halftone data is generated because generation of halftone data may be omitted. Print data can be generated faster than existing printer drivers.
[0010]
When the printer driver according to the present invention is realized, a determination step for specifying a position where a non-white pixel first appears is adopted for raster data determined not to be white raster data. When generating halftone data for each raster data determined not to be, halftoning processing is performed only on data relating to the pixel group after the pixel at the position specified in the determination step in each raster data. The halftone data generation step to be performed can be employed.
[0011]
According to a printer driver that employs such steps as a determination step and a halftone data generation step, a certain amount of time is required for execution on a continuous white pixel group existing at the head of each line. Therefore, the generation of the print data is completed at a high speed because the halftoning process is not performed.
[0013]
In the print data generation method of the present invention, with respect to a plurality of raster data representing the contents of the printed matter to be generated, each raster data is white raster data indicating that all pixels are white. A halftone data generation step for generating halftone data by performing predetermined processing on each raster data determined not to be white raster data by the determination step, and the halftone data generation A halftone data including a print data generation step for generating print data including the halftone data group generated in the step and information indicating the position of the line representing the drawing contents of each halftone data. The generation step determines that the raster data is not white raster data by the determination step. If it is determined that the raster data is white raster data by the first processing step of generating halftone data by performing predetermined processing on the raster data and the determination step, the print data It is determined whether there is halftone data that has not been supplied to the generation step. If there is no halftone data that has not been supplied to the print data generation step, the number of blank lines is incremented by “1”. If there is halftone data that has not been supplied to the print data generation step, the halftone data and the number of blank lines at that time are supplied to the print data generation step, and then the number of blank lines is set. Including a second processing step of “1”, and a print data generation step is supplied. The number of white lines is treated as the number of continuous lines that do not need to be drawn immediately after the part whose contents have been determined by the processing so far, and some supplied halftone data are drawn. This method is a step that is handled as data relating to a continuous line located immediately after a continuous line that does not need to be performed.
[0014]
In other words, the print data generation method of the present invention is a method in which print data is generated by the same procedure as the print data generation procedure in the computer in which the printer driver of the present invention is executed. Therefore, if this print data generation method is used, print data not including halftone data that does not require actual drawing can be generated at a higher speed than in the prior art.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0016]
As schematically shown in FIG. 1, the printer driver 10 according to an embodiment of the present invention is a program installed in a host computer 60 that uses an inkjet printer 50. The printer driver 10 is provided to the user by a form recorded on a portable recording medium 20 such as a CD-ROM or by downloading from a website (not shown).
[0017]
Further, the printer driver 10 of the present embodiment includes an imaging module, a halftone module, and an output module, as with the existing printer driver 80 (see FIG. 5) already described. However, the halftone module included in the printer driver 10 generates halftone data in a different procedure from the halftone module included in the printer driver 80.
[0018]
More specifically, the halftone module performs the halftone data generation process whose procedure is shown in FIGS. 2 and 3 as RGB image data (hereinafter referred to as band unit image data) generated for each band by the imaging module. To generate halftone data for one page.
[0019]
That is, the halftone module that has started processing a certain band-unit image data first acquires the first raster data (one-line RGB image data) in the band-unit image data as the processing target raster data (step). S101).
[0020]
Next, the halftone module acquires the first (or next) pixel data in the processing target raster data (step S102), and the pixel data is white pixel data indicating that the pixel is white. Whether or not (step S103).
[0021]
Then, if the acquired pixel data is white pixel data (step S103; YES), the halftone module determines whether or not the processing for all the pixel data in the processing target raster data has been completed (step S103). S104). Then, when the processing for all the pixel data in the processing target raster data is not completed (step S104; NO), the halftone module returns to step S102, and the next pixel data in the processing target raster data. It is checked whether or not is white pixel data.
[0022]
When pixel data that is not white pixel data (hereinafter referred to as non-white pixel data) is found while repeating such processing (steps S102 to S104) (step S103; NO), halftone The module executes processing for generating halftone data from the processing target raster data (step S105). At this time, the halftone module performs an actual halftoning process only on the pixel data group after the found non-white pixel data (process for converting RGB pixel data into halftone pixel data with reference to the LUT). The pixel data group (that is, the white pixel data group) preceding the found non-white pixel data is converted into halftone pixel data representing white.
[0023]
After the process of step S105 is completed, the halftone module determines whether the number of halftone data that has not yet been passed to the output module (hereinafter referred to as unprovided halftone data) has reached a predetermined number. Is determined (step S106). If the number of unprovided halftone data has not reached the specified number (step S106; NO), the halftone module determines whether the processing of raster data for one band has been completed (step S106). S111), and if the processing of raster data for one band has not been completed (step S111; NO), from step S101 on the next raster data in the band-unit image data being processed. Execute the process.
[0024]
On the other hand, if the number of unprovided halftone data is a specified number (step S106; YES), the halftone module passes the specified number of raster data and the number of blank rasters to the output module and then outputs the number of blank rasters. Is performed (step S107). The number of blank rasters passed to the output module in step S107 is information indicating the total number of continuous white raster data existing before the raster data group handed over to the output module at the same time. Note that the change (count) of the number of blank rasters is performed in step S110 (FIG. 3) described later. Although not shown in the flowchart, the halftone module sets the number of blank rasters to “0” or the band unit image at the start of the halftone data generation process for the band unit image data related to the head portion of the page. It is initialized to a value indicating the data start position (the number of lines existing between the band unit image data and the head of the print area).
[0025]
If the non-white pixel data cannot be found even after performing the processing of steps S102 to S104 up to the final pixel data in the processing target raster data (step S104; YES), the halftone module has left unprovided halftone data. It is determined whether or not (FIG. 3: Step S108). Then, when the unprovided halftone data remains (step S108; YES), the halftone module passes the unprovided halftone data and the number of blank rasters to the output module, and then sets the number of blank rasters to “ A process of changing to 1 ″ (step S109) is performed. Thereafter, the halftone module executes the processing after step S111 (FIG. 2). On the other hand, when there is no unprovided halftone data (step S108; NO), the halftone module increments the number of blank rasters by “1” (step S110), and then executes the processing after step S111.
[0026]
When the processing of steps S101 to S110 is completed for one band of raster data (step S111; YES), the halftone module determines whether unprovided halftone data remains (step S112). If not (step S112; NO), the halftone data generation process for the band-unit image data to be processed is immediately finished.
[0027]
If unprovided halftone data remains (step S112; YES), the halftone module passes the unprovided halftone data and the number of blank rasters to the output module, and then sets the number of blank rasters to “0”. After performing the process (step S113), the halftone data generation process for the band-unit image data to be processed ends.
[0028]
On the other hand, when the output module included in the printer driver 10 receives the number of blank rasters and some (less than the specified number) halftone data from the halftone module, It is stored in a buffer (one storage area of the memory) secured and managed by itself. At this time, the output module treats the number of blank rasters passed from the halftone module as the number of continuous lines that do not need to be drawn behind the line whose contents are determined by the previous processing. Some raster data passed from the halftone module is handled as data relating to a group of lines located immediately after a continuous line that does not need to be drawn. In short, based on the number of blank rasters passed from the halftone module, the output module grasps from which line the halftone data group passed at the same time is data relating to the line group.
[0029]
Then, the output module generates print data including the halftone data group stored in the buffer, that is, the non-white halftone data group together with the position information thereof, and supplies the print data to the inkjet printer 50.
[0030]
As described above, the printer driver 10 is based on a halftone module that does not pass white halftone data to the output module and a halftone data group (non-white halftone data group) passed from the halftone module. And an output module that generates print data without checking whether each halftone data is white halftone data.
[0031]
Therefore, if this printer driver 10 is used, when the conventional printer driver 80 is used, the print data generated by the procedure schematically shown in FIG. 4A is shown in FIG. 4B. It is generated by the procedure schematically shown.
[0032]
That is, in the conventional printer driver 10, as shown in FIG. 4A, after halftone data is generated for all raster data, each raster data is white halftone data or non-white halftone. Whether or not the data is data has been checked. In the printer driver 10, as shown in FIG. 4B, whether or not each raster data is non-white raster data that requires generation of halftone data. Is checked, halftone data is generated only for non-white raster data.
[0033]
The check whether the raster data is white raster data or non-white raster data is completed in about the same time as the check whether the halftone data is white halftone data or non-white halftone data. Therefore, in the end, if this printer driver 10 is used, the generation of white halftone data is omitted and the amount of data passed to the output module is reduced. ) Generation of print data is completed. Therefore, if this printer driver 10 is used, it is possible to print a printed matter with few portions that actually require drawing at a particularly high speed.
[0034]
<Deformation>
The printer driver 10 described as an embodiment of the present invention is a program for the ink jet printer 50 installed in a computer, but the implementation method of the present invention is not limited to the above. For example, the printer driver 10 may be modified for a printer other than the ink jet printer 50. Further, the present invention may be realized by manufacturing an expansion board mounted on a computer that executes the same procedure as that of the printer driver 10. Alternatively, the present invention may be realized by being performed on the printer side by software.
[0035]
【The invention's effect】
By using the printer driver and the print data generation method of the present invention, print data that does not include halftone data can be generated at a high speed, so that it is possible to print a printed matter with few portions that actually need to be drawn at a particularly high speed.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram of a usage pattern of a printer driver according to an embodiment of the present invention.
FIG. 2 is a flowchart of halftone data generation processing executed by a halftone module included in the printer driver according to the embodiment.
FIG. 3 is a flowchart of halftone data generation processing executed by a halftone module included in the printer driver according to the embodiment.
FIG. 4 is a diagram for explaining a difference between a print data generation procedure (B) by a printer driver according to an embodiment and a print data generation procedure (A) by a conventional printer driver.
FIG. 5 is an explanatory diagram of a print data generation procedure by a conventional printer driver.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 Printer driver 20 Portable recording medium 50 Inkjet printer 60 Host computer

Claims (4)

印刷データを生成してプリンタに供給するためのプリンタドライバであって、
コンピュータに、
生成すべき印刷物の内容を示す複数のラスタデータに対して、各ラスタデータが全てのピクセルが白であることを示す白ラスタデータであるか否かを判断する判断ステップと、
この判断ステップにより白ラスタデータではないと判断された各ラスタデータに対して所定の処理を施すことにより各ラスタデータのハーフトーンデータを生成するハーフトーンデータ生成ステップと、
前記ハーフトーンデータ生成ステップにて生成されたハーフトーンデータ群と各ハーフトーンデータが描画内容を表している位置を示す情報とを含む印刷データを生成する印刷データ生成ステップ
とを、実行させ、
前記ハーフトーンデータ生成ステップが、
前記判断ステップにより或るラスタデータが白ラスタデータではないと判断された場合に、そのラスタデータに前記所定の処理を施すことによりハーフトーンデータを生成する第1処理ステップと、
前記判断ステップにより或るラスタデータが白ラスタデータであると判断された場合に、前記印刷データ生成ステップへの供給が完了していないハーフトーンデータの有無を判断し、前記印刷データ生成ステップへの供給が完了していないハーフトーンデータがなかった場合には、空白ライン数を“1”カウントアップし、印刷データ生成ステップへの供給が完了していないハーフトーンデータがあった場合には、当該ハーフトーンデータとその時点における空白ライン数とを前記印刷データ生成ステップに供給した後に、空白ライン数を“1”とする第2処理ステップとを、含むステップであり、
前記印刷データ生成ステップが、
供給された空白ライン数を、それまでの処理により内容が確定している部分の直後に位置する描画を行う必要がない連続したラインの数として取り扱うとともに、供給された幾つかのハーフトーンデータをその描画を行う必要がない連続したラインの直後に位置する連続したラインに関するデータとして取り扱うステップである
ことを特徴とするプリンタドライバ。
A printer driver for generating print data and supplying it to a printer,
On the computer,
A determination step for determining whether or not each raster data is white raster data indicating that all pixels are white with respect to a plurality of raster data indicating the contents of the printed matter to be generated;
A halftone data generation step of generating halftone data of each raster data by performing a predetermined process on each raster data determined not to be white raster data by this determination step;
A print data generation step of generating print data including the halftone data group generated in the halftone data generation step and information indicating a position where each halftone data represents the drawing content;
The halftone data generation step includes:
A first processing step for generating halftone data by performing the predetermined processing on the raster data when it is determined by the determination step that the raster data is not white raster data;
When it is determined in the determination step that certain raster data is white raster data, it is determined whether there is halftone data that has not been supplied to the print data generation step, and the process proceeds to the print data generation step. If there is no halftone data that has not been supplied, the number of blank lines is incremented by “1”. If there is halftone data that has not been supplied to the print data generation step, A second processing step in which the number of blank lines is set to “1” after the halftone data and the number of blank lines at that time are supplied to the print data generation step.
The print data generation step includes
Handles the number of supplied blank lines as the number of consecutive lines that do not need to be drawn immediately after the portion whose contents have been determined by the previous processing, and also handles some of the supplied halftone data. A printer driver characterized in that it is a step of handling as data relating to a continuous line located immediately after a continuous line that does not need to be drawn.
前記判断ステップは、白ラスタデータではないと判断したラスタデータについては、白ではない最初のピクセルの位置を特定し、
前記ハーフトーンデータ生成ステップは、前記判断ステップにより白ラスタデータではないと判断された各ラスタデータのハーフトーンデータを生成する際に、各ラスタデータ内の,前記判断ステップにて特定された位置のピクセル以降のピクセル群に関するデータに対してのみハーフトーン化処理を行う
ことを特徴とする請求項1記載のプリンタドライバ。
For the raster data determined not to be white raster data, the determination step specifies the position of the first pixel that is not white,
In the halftone data generation step, when generating halftone data of each raster data determined not to be white raster data by the determination step, the position of the position specified in the determination step in each raster data is generated. The printer driver according to claim 1, wherein the halftoning process is performed only on data relating to a pixel group after the pixel.
印刷のために使用される印刷データを生成するための印刷データ生成方法であって、
生成すべき印刷物の内容を表す複数のラスタデータに対して、各ラスタデータが全てのピクセルが白であることを表している白ラスタデータであるか否かを判断する判断ステップと、
この判断ステップにより白ラスタデータではないと判断された各ラスタデータに所定の処理を施すことによりハーフトーンデータを生成するハーフトーンデータ生成ステップと、
前記ハーフトーンデータ生成ステップにて生成されたハーフトーンデータ群と各ハーフトーンデータが描画内容を表しているラインの位置を示す情報とを含む印刷データを生成する印刷データ生成ステップ
とを含み、
前記ハーフトーンデータ生成ステップが、
前記判断ステップにより或るラスタデータが白ラスタデータではないと判断された場合に、そのラスタデータに前記所定の処理を施すことによりハーフトーンデータを生成する第1処理ステップと、
前記判断ステップにより或るラスタデータが白ラスタデータであると判断された場合に、前記印刷データ生成ステップへの供給が完了していないハーフトーンデータの有無を判断し、前記印刷データ生成ステップへの供給が完了していないハーフトーンデータがなかった場合には、空白ライン数を“1”カウントアップし、印刷データ生成ステップへの供給が完了していないハーフトーンデータがあった場合には、当該ハーフトーンデータとその時点における空白ライン数とを前記印刷データ生成ステップに供給した後に、空白ライン数を“1”とする第2処理ステップとを、含むステップであり、
前記印刷データ生成ステップが、
供給された空白ライン数を、それまでの処理により内容が確定している部分の直後に位置する描画を行う必要がない連続したラインの数として取り扱うとともに、供給された幾つかのハーフトーンデータをその描画を行う必要がない連続したラインの直後に位置する連続したラインに関するデータとして取り扱うステップである
ことを特徴とする印刷データ生成方法。
A print data generation method for generating print data used for printing,
A determination step of determining whether or not each raster data is white raster data indicating that all pixels are white for a plurality of raster data representing the contents of the printed matter to be generated;
A halftone data generation step of generating halftone data by performing predetermined processing on each raster data determined not to be white raster data by this determination step;
A print data generation step for generating print data including the halftone data group generated in the halftone data generation step and information indicating the position of the line in which each halftone data represents the drawing content;
The halftone data generation step includes:
A first processing step for generating halftone data by performing the predetermined processing on the raster data when it is determined by the determination step that the raster data is not white raster data;
When it is determined in the determination step that certain raster data is white raster data, it is determined whether there is halftone data that has not been supplied to the print data generation step, and the process proceeds to the print data generation step. If there is no halftone data that has not been supplied, the number of blank lines is incremented by “1”. If there is halftone data that has not been supplied to the print data generation step, A second processing step in which the number of blank lines is set to “1” after the halftone data and the number of blank lines at that time are supplied to the print data generation step.
The print data generation step includes
Handles the number of supplied blank lines as the number of consecutive lines that do not need to be drawn immediately after the portion whose contents have been determined by the previous processing, and also handles some of the supplied halftone data. A print data generation method characterized in that it is a step of handling as data relating to a continuous line positioned immediately after a continuous line that does not need to be drawn.
前記判断ステップは、白ラスタデータではないと判断したラスタデータに関しては、白ではない最初のピクセルの位置を特定し、
前記ハーフトーンデータ生成ステップは、前記判断ステップにより白ラスタデータではないと判断された各ラスタデータのハーフトーンデータを生成する際に、各ラスタデータ内の,前記判断ステップにて特定された位置のピクセル以降のピクセル群に関するデータに対してのみハーフトーン化処理を行う
ことを特徴とする請求項3記載の印刷データ生成方法。
For the raster data determined to be not white raster data, the determining step specifies the position of the first pixel that is not white,
In the halftone data generation step, when generating halftone data of each raster data determined not to be white raster data by the determination step, the position of the position specified in the determination step in each raster data is generated. The print data generation method according to claim 3, wherein the halftoning process is performed only on data relating to a pixel group after the pixel.
JP2002011838A 2002-01-21 2002-01-21 Printer driver and print data generation method Expired - Fee Related JP3800095B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002011838A JP3800095B2 (en) 2002-01-21 2002-01-21 Printer driver and print data generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002011838A JP3800095B2 (en) 2002-01-21 2002-01-21 Printer driver and print data generation method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2006019402A Division JP2006202300A (en) 2006-01-27 2006-01-27 Printer driver and print data generating method

Publications (2)

Publication Number Publication Date
JP2003216369A JP2003216369A (en) 2003-07-31
JP3800095B2 true JP3800095B2 (en) 2006-07-19

Family

ID=27649220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002011838A Expired - Fee Related JP3800095B2 (en) 2002-01-21 2002-01-21 Printer driver and print data generation method

Country Status (1)

Country Link
JP (1) JP3800095B2 (en)

Also Published As

Publication number Publication date
JP2003216369A (en) 2003-07-31

Similar Documents

Publication Publication Date Title
JP4487894B2 (en) Printing device
JP3829508B2 (en) Image processing apparatus, image processing method, and printing apparatus
JP2006315411A (en) Printing device, program for controlling printing device, method of controlling printing device, printing data creating device, program for creating printing data and method of creating printing data
US20030011814A1 (en) Print data providing service through network
JP2010130303A (en) Print controller, printing apparatus, print control method, and computer program
JP2005001202A (en) Inkjet printer and inkjet printing system
JP3800095B2 (en) Printer driver and print data generation method
JP2007219813A (en) Printing system and printing process
JP2011143623A (en) Printer, printing method, and computer program
JP5644371B2 (en) Image processing apparatus and computer program
JP2003011458A (en) Printer being set with print mode depending on information contained in image data
JP2006116975A (en) Printing system for continuous printing
US6091509A (en) Printer system and method for sending data hints of upcoming data
JP2006202300A (en) Printer driver and print data generating method
JP2006205616A (en) Image forming device, image processing method, and program
JP2009039880A (en) Image processor and its method
JP3915521B2 (en) Printing that suppresses blurring of contours
JP2006224569A (en) Image forming device, image processor, image processing method and program
JP2007015336A (en) Apparatus, method and program for image processing
JP5807444B2 (en) Print control apparatus and print control method
JP4561414B2 (en) Print control apparatus, print control method, and print control program
JP4041954B2 (en) Printing control apparatus, printing control method, printing system, and printing control program
JP2006240143A (en) Ink jet recorder and its control method and controller
JP4325170B2 (en) Printing in different modes depending on the image size
JP2009278416A (en) Image printing system, image printing method, and computer-readable medium

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20031224

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051129

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060127

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060417

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100512

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110512

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120512

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130512

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140512

Year of fee payment: 8

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees