JP4075546B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP4075546B2
JP4075546B2 JP2002273515A JP2002273515A JP4075546B2 JP 4075546 B2 JP4075546 B2 JP 4075546B2 JP 2002273515 A JP2002273515 A JP 2002273515A JP 2002273515 A JP2002273515 A JP 2002273515A JP 4075546 B2 JP4075546 B2 JP 4075546B2
Authority
JP
Japan
Prior art keywords
raster data
character
image
data
pixel
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
JP2002273515A
Other languages
Japanese (ja)
Other versions
JP2004104735A (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 JP2002273515A priority Critical patent/JP4075546B2/en
Publication of JP2004104735A publication Critical patent/JP2004104735A/en
Application granted granted Critical
Publication of JP4075546B2 publication Critical patent/JP4075546B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、ページ記述言語の形で提供される文書データからラスタデータを生成して印刷を行なう印刷装置に関する。
【0002】
【従来の技術】
従来から、パーソナルコンピュータやディジタルカメラ等のホストコンピュータで作成した文書データには、文字,画像,表などの様々な種類の文書構成要素が存在していた。プリンタは、パーソナルコンピュータなどから文書データを受信すると、そのような文書構成要素の区別を考慮することなく、ページごとに1つの画像として、印刷用のラスタデータを生成していた。プリンタは、印刷用のデータに、解像度変換,色変換,ハーフトーン処理などの処理をほどこし、印刷データ(いわゆるロウデータ)を生成し、印刷を行なっていた。
【0003】
【特許文献1】
特開2000−354165号公報
【0004】
【発明が解決しようとする課題】
しかしながら、従来の方法でラスタデータを生成したのでは、文書構成要素ごとの特徴を活かした処理をすることができなかった。例えば、1つの画像内における文字データは、一般に画像データよりもデータサイズが小さく、扱いも簡単であるが、画像データとあわせて1つの文書として取り扱われていたために、文字データのみの圧縮などの処理をほどこすことができなかった。
【0005】
本発明は、上記した問題点を解決するためになされたものであり、文書構成要素ごとの特徴を活かして、印刷データを生成する技術を提供することを目的とする。
【0006】
【課題を解決するための手段およびその作用・効果】
上記課題を解決すべく、本発明に係る画像処理装置は、文字ラスタデータと画像ラスタデータとをそれぞれ別個に生成して合成するものであり、文字ラスタデータを生成する文字生成部と、生成された文字ラスタデータを格納する文字プレーンと、画像ラスタデータを生成する画像生成部と、生成された画像ラスタデータを格納する画像プレーンと、画像合成部とを備えている。そして、画像合成部は、文字プレーンが画像プレーンに優先するように画像合成の優先度が予め設定されている。
【0007】
ここで、本明細書にいう「ラスタデータ」とは、ラスタ走査可能に展開されたビットマップデータを意味する。
【0008】
文字プレーンを画像プレーンに優先するようにして画像合成を行うように予め設定してあるので、文字と画像の重なり合う部分のドットの階調や色彩を、文字優先で決定することができる。即ち、文字と画像の重なり合う部分では、文字の階調及び色彩が優先され、画像の階調及び色彩を無視することができ、容易に画像合成を行うことができる。
【0009】
具体的には、文字プレーンを構成する各ピクセルは、nビットで表現される複数の値のうちいずれか1つの値を設定可能であり、かつ複数の値のうちいずれか1つが透過色として設定されており、画像プレーンを構成する各ピクセルは、mビットで表現される複数の色を設定可能であり、透過係数を設定するための情報を有さない構成とすることができる。
【0010】
文字プレーンの各ピクセル(文字ピクセルとも呼ぶ)は、例えば、2ビット、3ビット、4ビット等のように比較的少ないデータ量で記述することができ、いずれか1つの値を各ピクセルに設定することができる。仮にn=1とすると、文字プレーンの各ピクセルは、「0」又は「1」のいずれかの値をとる。
【0011】
そして、「0」又は「1」のいずれかの値を予め透過色として設定する(ここでは説明の便宜上、「1」を特定色、「0」を透過色とする)。これにより、文字部分を特定の色で表示し、残余の部分が透明となった文字プレーンを生成することができる。この文字プレーンを画像プレーンに重ねると、文字プレーンで「1」がセットされたピクセルでは、対応する画像プレーンのピクセル(画像ピクセルとも呼ぶ)の値に関係なく、文字色が表示される。
【0012】
一方、文字プレーンで「0」がセットされたピクセルは透過色であるから、mビットで表現される画像ピクセルの色がそのまま表示される。文字と画像が重なり合う部分では文字が優先されて文字ピクセルが表示され、それ以外の部分では画像のピクセルがそのまま表示されるので、画像ピクセルの透明度を考慮する余地はない。従って、透過係数を規定する属性情報を画像ラスタデータが備える必要はなく、画像データのデータサイズを低減することができる。
【0013】
本発明の一態様では、複数の値のうち透過色が割り当てられた値を除くその他の値と任意の文字色とを対応付ける文字色制御テーブルを更に設け、該文字色制御テーブルで設定された文字色により文字プレーンの各ピクセルの色を決定するようになっている。
【0014】
例えば、文字プレーンのピクセルが透過色に設定されている値以外の値を取る場合、その値で文字色制御テーブルを参照することにより、予め設定された任意の色で表示させることができる。具体的には、例えば、文字ピクセルの値「1」に文字色「000000」を割り当てれば、当該ピクセルを黒色表示することができ、また、文字色「F00000」を割り当てれば、値「1」を取る文字ピクセルを赤く表示させることができる。
【0015】
本発明の一態様では、さらに、第1のデータ処理装置及び第2のデータ処理装置を備え、第1のデータ処理装置は、文字生成部と画像生成部を含んでなり、第2のデータ処理装置は、画像合成部を含んでなる。そして、文字プレーン及び画像プレーンは、第1のデータ処理装置と第2のデータ処理装置に共有されるバッファメモリに格納され、バッファメモリを介してラスタデータの受け渡しを行うようになっている。
【0016】
第1,第2のデータ処理装置としては、代表的にはCPUを挙げることができるが、CPU単体に限る意味ではなく、ROM,RAM、入出力ポート等を含んだものであってもよい。
【0017】
第1のデータ処理装置は文字ラスタデータ及び画像ラスタデータの生成を行って、各ラスタデータをバッファメモリの各プレーンにそれぞれ格納する。第2のデータ処理装置は、バッファメモリから各プレーンのデータを読み出して、文字ラスタデータと画像ラスタデータの合成を行う。このように、各データ処理装置間で機能を分散させることにより、いずれか一方のデータ処理装置に過度の負担がかかるのを防止することができる。
【0018】
また、バッファメモリには、複数の共有バッファ領域を設け、各共有バッファ領域を切り替えて使用してもよい。
【0019】
本発明の一態様では、第1のデータ処理装置と第2のデータ処理装置とで複数のデータ処理機能を分担して実行することにより、入力された印刷データに基づいて印刷用イメージデータを生成し、プリントエンジンにより印刷させるプリンタにおいて、第1のデータ処理装置は、少なくとも印刷データ中の文字データを文字ラスタデータに変換する文字生成機能及び印刷データ中の画像データを画像ラスタデータに変換する画像生成機能を実行し、第2のデータ処理装置は、少なくとも文字ラスタデータと画像ラスタデータとを合成する合成機能と、合成されたラスタデータを色変換する色変換機能と、色変換されたラスタデータをハーフトーニング処理するハーフトーニング機能及びプリントエンジンを制御するエンジン制御機能とを実行し、第1のデータ処理装置と第2のデータ処理装置とは、互いに共有するバッファメモリを介してデータの受け渡しを行い、さらに、文字プレーンを構成する各ピクセルは、nビットで表現される複数の値のうちいずれか1つの値を設定可能であり、かつ複数の値のうちいずれか1つが透過色として設定されており、画像プレーンを構成する各ピクセルは、mビットで表現される複数の色を設定可能であり、透過係数を設定するための情報を有さない構成となっている。
【0020】
印刷データは、例えば、ポストスクリプトやXHTML-print(拡張可能なハイパーテキストマークアップ言語で記述された印刷コマンド)等の高級な印刷言語で作成される。従って、印刷データの各印刷コマンドを解釈してラスタデータを生成するには、高度なデータ処理を必要とする。一方、ラスタデータを印刷用イメージデータに変換するのは、既に形成された各ドットパターンを色変換したり、ハーフトーニング処理等するだけでよく、機械的な処理となる。そこで、ラスタデータ生成までを第1のデータ処理装置で実行させ、ラスタデータ生成後の処理を第2のデータ処理装置で行わせることにより、各データ処理装置の負荷を分散させる。
【0021】
具体的には、高度な処理を要するデータ処理機能には、印刷データ中の文字データを文字ラスタデータに変換する文字生成機能と、印刷データ中の画像データを画像ラスタデータに変換する画像生成機能とが含まれており、それ以外のデータ処理機能には、文字ラスタデータと画像ラスタデータとを合成する合成機能と、合成されたラスタデータを色変換する色変換機能と、色変換されたラスタデータをハーフトーニング処理するハーフトーニング機能及びプリントエンジンを制御するエンジン制御機能とを含めることができる。
【0022】
そして、第1のデータ処理装置と第2のデータ処理装置とは、互いに共有するバッファメモリを介してデータの受け渡しを行う。即ち、パラレルインターフェースやシリアルインターフェース等を用いてデータ通信を行うのではなく、両データ処理装置により共有されるバッファメモリを介して、ラスタデータの受け渡しを行う。ここで、ラスタデータはビットマップデータを意味し、バンド状のデータである必要はない。従って、例えば、インクジェットプリンタ等のシリアルプリンタに限らず、レーザプリンタ等のページプリンタにも適用可能である。
【0023】
なお、他の観点に従えば、第1のラスタデータと第2のラスタデータとをそれぞれ別個に生成して合成する画像処理装置において、第1のラスタデータを生成する第1生成部と、生成された第1のラスタデータを格納する第1のプレーンと、第2のラスタデータを生成する第2生成部と、生成された第2のラスタデータを格納する第2のプレーンと、第1のプレーンが第2のプレーンに優先するように画像合成の優先度が予め設定されている画像合成部とを備えたことを特徴とする画像処理装置を得る。
【0024】
例えば、第1のラスタデータとして256色を表現可能な低階調の画像ラスタデータを、第2のラスタデータとしてRGB各8ビット階調で表現可能な高階調の画像ラスタデータをそれぞれ用い、色数の少ない画像ラスタデータを色数の多い画像ラスタデータに優先させて重ね合わせることもできる。
【0025】
本発明は、画像処理方法、画像処理装置を制御するためのプログラムとしても把握することができる。プログラムは、例えば、CD-ROMや光磁気ディスク、メモリ等の各種記録媒体に格納して配布することができるほか、通信ネットワークを介して配信することもできる。
【0026】
上記課題の少なくとも一部を解決する本発明の生成装置は、
文書データからラスタデータを生成する生成装置であって、
複数の異なる文書構成要素を含んだ前記文書データである対象文書データを入力する入力部と、
前記対象文書データを文書構成要素に応じて分割する分割部と、
前記分割された文書構成要素に対応したラスタデータを作成するラスタデータ作成部と、
前記ラスタデータ作成部が作成した複数のラスタデータを出力する出力部と
を備えることを特徴とする。
【0027】
本発明の生成装置によれば、文書構成要素ごとにラスタデータを作成することが可能となる。文書構成要素には、文字,画像,表などを含むので、例えば、文字と画像からなる文書データから、文字のみのラスタデータと画像のみのラスタデータを作成することができる。このような文書構成要素ごとのラスタデータには、文書構成要素に適した処理をほどこすことが可能である。
【0028】
また、分割部は、文書構成要素ごとに文書データを分割しなくてもよい。例えば、文字と画像と表からなる文書データを、文字のみと、画像と表に分割し、それぞれのラスタデータを作成してもよい。つまり、文字のみのラスタデータと、画像と表からなるラスタデータを作成するようにしてもよい。
【0029】
このような生成装置は、文書データを生成する装置に内蔵してもよいし、文書データを出力する装置に内蔵してもよいし、外付けにしてもよい。文書データを生成する装置には、パーソナルコンピュータやビデオゲーム機などのコンピュータ機器、デジタルカメラ,DVDプレーヤ,ビデオデッキ,ビデオカメラ,テレビ,セットトップボックス等の映像出力機器が挙げられる。更に、BS/CS/地上波デジタル放送対応のテレビやチューナも文書データを生成する機器である。文書データを出力する装置としては、例えば、プリンタやパーソナルコンピュータなどが存在する。
【0030】
また、文書データは、XML,HTML,XHTMLなどのマークアップ言語により記述されたデータなどがあげられる。
【0031】
前記ラスタデータ作成部が作成した複数のラスタデータに対して、各々ラスタデータのデータサイズを小さくする変換処理を行なう変換部を備え、
前記出力部は前記変換部が変換した複数のラスタデータを出力するような構成としても良い。
【0032】
このような変換部を備えることで、サイズが小さくなったラスタデータを出力することが可能となる。特に、文字のみで構成されるラスタデータは、データサイズを小さくすることが容易である。
【0033】
前記変換処理は、色の表現方法の変換および/または圧縮変換であってもよい。
【0034】
色の表現方法を変換したり、圧縮変換をしたりすると、ラスタデータのデータサイズを小さくして出力することができる。文字データは、1色で表現されることが多いので色の表現方法を変換することは有効である。
【0035】
前記文書構成要素は、文字と画像の2種類であってもよい。
【0036】
文書データは、主に文字と画像の2種類の文書構成要素から構成されている。この2種類のデータは区別が容易であり、文書構成要素ごとに分割しやすい。
【0037】
前記ラスタデータ作成部は、異なる解像度で、各ラスタデータを作成してもよい。
【0038】
そうすれば、各文書構成要素の特徴に応じた解像度のラスタデータを作成することが可能となる。
【0039】
一方、上記課題の少なくとも一部を解決する本発明の印刷装置は、
ラスタデータから印刷データを生成する印刷装置であって、
同一のページに印刷されるべき複数のラスタデータを入力するラスタデータ入力部と、
前記ラスタデータ入力部が入力した複数のラスタデータの各画素における階調値に基づき、印刷用のラスタデータの階調値を1画素ごとに決定する階調決定部と、
前記決定された階調値に基づき、所定の処理をほどこして印刷データを作成する印刷データ作成部と、
前記印刷データ作成部が作成した印刷データを出力する印刷データ出力部と
を備えることを特徴とする。
【0040】
本発明の印刷装置によれば、少ないメモリで高速に、複数のラスタデータから1つの画像を、所定の処理をほどこしつつ印刷データとして合成することができる。階調値を決定する方法としては、複数のラスタデータのうちいずれか1つの階調値を選択してもよい。選択の際には、文書構成要素ごとに優先順位が決められていることが好ましい。また、各階調値に基づく演算(平均を求めるなど)を行なって階調値を決定してもよい。その際には、重みを考慮してもよい。
【0041】
また、上記課題の少なくとも一部を解決する本発明の印刷装置は、
ラスタデータから印刷データを生成する印刷装置であって、
前記出力部が出力した複数のラスタデータを入力するラスタデータ入力部と、
ラスタデータ入力部が入力した複数のラスタデータに対して個別に所定の処理をほどこすラスタデータ処理部と、
前記処理がほどこされた後の各画素における階調値に基づき、印刷データを1画素ごとに生成する印刷データ生成部と、
前記印刷データ生成部が生成した印刷データを出力する印刷データ出力部と
を備えるものとして構成してもよい。
【0042】
本発明の印刷装置によれば、複数のラスタデータに個別に所定の処理をほどこしてから、1つの画像を合成することが可能となる。処理をほどこしてから合成するので、各文書構成要素の画質を向上することができる。
【0043】
前記印刷データ作成部がほどこす所定の処理は、ハーフトーン処理,RGB表色系で記述された色のデータをCMY表色系の色のデータに変換する色変換処理,解像度変換処理のうち少なくとも1つであるものとしてもよい。
【0044】
これらの処理を適宜行なうことによって、印刷データを作成することができる。
【0045】
前記ラスタデータ入力部が入力した複数のラスタデータに対してデータ形式を統一するための所定の前処理を個別に行なう処理部を備えるものとしてもよい。
【0046】
このようにすれば、入力したラスタデータに任意の処理がなされていても、印刷データを作成することが可能となる。
【0047】
前記処理部が行なう所定の前処理は、色の表現方法の変換,圧縮の解除,複数のラスタデータの解像度を統一する解像度変換のうち少なくとも1つとしてもよい。
【0048】
このようにすれば、入力したラスタデータの色の表現方法が変換されていたり、圧縮変換をされていたりしても、印刷データを作成することが可能となる。また、複数のラスタデータ間で解像度がそろってない場合に、解像度をそろえることもできる。
【0049】
前記印刷データ生成部は、解像度を変換しながら前記印刷データを生成するものとしてもよい。
【0050】
こうすれば、複数のラスタデータを1つの画像に合成する際に、解像度を変換することが可能となる。
【0051】
本発明は、上述した生成装置,印刷装置として構成する他、ラスタデータの生成方法,印刷データの生成方法,印刷方法など種々の態様で構成可能である。コンピュータによって、ラスタデータの生成,印刷データの生成,印刷装置の制御を行なわせるためのコンピュータプログラムとして構成してもよい。また、かかるコンピュータプログラムを記録したコンピュータ読み取り可能な記録媒体として構成してもよい。ここで、記録媒体としては、フレキシブルディスクやCD−ROM,光磁気ディスク,DVD,ICカード,ROMカートリッジ,パンチカード,バーコードなどの符号が印刷された印刷物,コンピュータの内部記憶装置(RAMやROMなどのメモリ)および外部記憶装置など、コンピュータが読み取り可能な種々の媒体を利用できる。
【0052】
【発明の実施の形態】
以下、本発明の実施の形態について、以下の項目に分けて説明する。
A.第一実施例:
A1.全体構成:
A2.機能ブロック:
A3.ラスタデータ:
A4.処理:
A5.効果:
B.第二実施例:
B1.処理:
B2.効果:
C.変形例:
【0053】
A.第一実施例:
A1.全体構成:
図1は、本発明の実施の形態の全体構成図である。コンピュータ20は、例えば、XHTML-print等の印刷言語によって文書データを生成するものである。コンピュータ20としては、例えば、パーソナルコンピュータ、ディジタルカメラ、携帯情報端末、携帯電話、衛星放送等を受信してディスプレイ装置に表示等させるためのセットトップボックス(STB)等を挙げることができる。
【0054】
プリンタ25は、パーソナルコンピュータを介さずに周辺機器から入力された文書データに基づいて印刷を行うことができるいわゆるダイレクト印刷可能なプリンタとして構成されている。プリンタ25は、後述のように、生成装置として機能するメインCPU,印刷装置として機能するサブCPU,共有バッファ及びプリントエンジンを備えている。
【0055】
A2.機能ブロック:
図2は、プリンタ25の機能ブロック図である。プリンタ25は、生成装置30,印刷エンジン35,共有バッファ40を備えている。生成装置30は、入力部45,分割部50,ラスタデータ作成部55,変換部57,圧縮部59,通信部60により構成されている。
【0056】
入力部45は、コンピュータ20から文書データを受信する。分割部50は、入力部45が受信した文書データのコマンドを解析し、文字を表示するためのコマンドと画像を表示するためのコマンドに分割する。文書データがXHTMLやXML(Extensible Markup Language)等で記述される場合、分割部50は、XHTMLやXMLを解釈する機能を備える。
【0057】
ラスタデータ作成部55は、文字を表示するためのコマンドから文字のラスタデータ(以下、文字ラスタデータとよぶ)を、画像を表示するためのコマンドから画像のラスタデータ(以下、画像ラスタデータとよぶ)を、それぞれ作成する。文字を表示するためのコマンドから文字のラスタデータを作成する際には、フォントメモリ等を参照する。画像のラスタデータの作成は、画像を表示するためのコマンドに従い、指定の画像を指定箇所に配置して行なう。
【0058】
変換部57は、文字ラスタデータの色の表現方法を変換する。圧縮部59は、画像ラスタデータと文字ラスタデータを圧縮する。通信部60は、作成した画像ラスタデータ及び文字ラスタデータを共有バッファ40の所定領域に書き込みしたり、印刷エンジン35に印刷コマンドを送信したりするなど、印刷エンジン35や共有バッファ40と通信する。
【0059】
印刷エンジン35は、コマンド解析部63,ラスタデータ入力部65,圧縮解除部70,解像度変換部73,選択部75,形式変換部77,印刷データ作成部80及び印刷データ出力部85を備えている。印刷データ作成部80には、色変換部81,H/T処理部82,インタレース処理部83が備わっている。
【0060】
コマンド解析部63は、生成装置30から入力された印刷コマンドを解釈する。ここで解釈されるコマンドとしては、例えば、印刷部数、拡大や縮小の指定等を挙げることができる。ラスタデータ入力部65は、共有バッファ40から生成装置30が保存した複数のラスタデータを入力する。
【0061】
圧縮解除部70は、圧縮されたラスタデータの圧縮を解除する。解像度変換部73は、解像度を変換する。選択部75は、1画素ごとに画像ラスタデータと文字ラスタデータから、どちらかを選択する。形式変換部77は、変換部57により変換された色の表現方法を元に戻す。
【0062】
印刷データ作成部80は、ラスタデータから印刷データを作成する。すなわち、色変換部81はRGB表色系等で記述された色をCMY表色系のデータに変換し、H/T処理部82は多階調データを面積階調に変換し、インタレース処理部83は、インタレース方式で印刷データを出力するための変換を行なう。印刷データ出力部85は、印刷データをプリンタエンジンに出力する。
【0063】
共有バッファ40は、生成装置30と印刷エンジン35に共有されるメモリである。生成装置30が共有バッファ40の所定領域に文字ラスタデータ及び画像ラスタデータを書き込むと、印刷エンジン35は、書き込まれた文字ラスタデータ及び画像ラスタデータを読み出して、両ラスタデータに対して処理を行う。
【0064】
A3.ラスタデータ:
図3は、処理対象の文書データによって表わされる文書87を表わした説明図である。文書87は「EP」「FH」などの文字と、背景画像の重ねあわせで構成されている。このような文書87を所定の幅毎に分け、その1つを1バンドとよぶ。バンドは処理単位を表わし、バッファサイズや処理速度に応じて任意に設定可能である。本実施例では、処理の迅速化を図るために、バンド単位で処理を行なう。
【0065】
図4は、図3の文書87の1バンドの文字ラスタデータ90を表わす説明図である。文字ラスタデータ90は単色のため、変換部57により、各ドットが「0」又は「1」のいずれかの値を取るように、色の表現方法が変換されている。値「1」をとるドットは、文字色制御テーブルT1により指定される任意の1色、例えば「黒」を表現するように設定されている。値「0」のドットは、「透過色」として設定されている。
【0066】
一方、図5は図3の文書87の1バンドの画像ラスタデータ95を表わす説明図である。画像ラスタデータ95は、各ドットがRGB各8ビット,合計24ビットの階調値をとるように構成されている。
【0067】
図6は、共有バッファ40の構成を示す模式図である。図6に示すように、共有バッファ40には、入力バッファB0と入力バッファB1の2つのバッファが設けられている。各入力バッファB0,B1は、印刷ジョブ毎にサイズが決定され、確保されるようになっている。そして、一方のバッファにラスタデータを書き込んでいる間に、他方のバッファからラスタデータを読み出して処理を行うというダブルバッファ方式を採用する。
【0068】
また、入力バッファB0には、文字ラスタデータ90を格納するためのバッファである文字プレーンCP0と、画像ラスタデータ95を格納するためのバッファである画像プレーンPP0が、設けられている。文字プレーンCP0,画像プレーンPP0は、印刷の横幅とバンド高さで決定される所定の大きさを有する。入力バッファB1に関しても同様である。
【0069】
A4.処理:
図7は、文書データから印刷データを生成し、出力するまでの処理を表わすフローチャートである。左側のフローチャートが生成装置30のフローチャートであり、右側のフローチャートが印刷エンジン35のフローチャートである。生成装置30の入力部45は、コンピュータ20から文書データを入力する(ステップS27)。分割部50は、入力部45が入力した文書データのコマンドを解析し、文字を表示するためのコマンドと画像を表示するためのコマンドに分割する(ステップS29)。
【0070】
ラスタデータ作成部55は、分割部50が分割した、文字を表示するためのコマンドから文字ラスタデータ90を、画像を表示するためのコマンドから画像ラスタデータ95を、それぞれ作成する(ステップS30)。その際、文字ラスタデータ90の解像度は720dpiで、画像ラスタデータ95の解像度は360dpiで作成する。
【0071】
変換部57は、文字ラスタデータ90の色の表現方法をデータサイズが小さくなるように変換する(ステップS32)。圧縮部59は、文字ラスタデータ90と画像ラスタデータ95を圧縮する(ステップS34)。通信部60は、ラスタデータ作成部55が作成した画像ラスタデータ95及び文字ラスタデータ90を共有バッファ40に出力し(ステップS35)、印刷コマンドを印刷エンジン35に送信する(ステップS37)。
【0072】
コマンド解析部63は、生成装置30から印刷コマンドを受信する(ステップS40)。ラスタデータ入力部65は、コマンド解析部63からの指示を受け、共有バッファ40から生成装置30が保存した文字ラスタデータ90と画像ラスタデータ95を入力する(ステップS42)。圧縮解除部70は、入力した文字ラスタデータ90と画像ラスタデータ95の圧縮を解除する(ステップS45)。解像度変換部73は、文字ラスタデータ90と画像ラスタデータ95の解像度を720dpiに統一する(ステップS47)。
【0073】
選択部75は、文字ラスタデータ90の1画素の値が1であるかどうか調べる。1である場合は(ステップS55)、その画素に文字が描かれていることを意味するため、文字ラスタデータ90の画素を選択する(ステップS60)。そして、形式変換部77は変換部57により変換された色の表現方法を元に戻す(ステップS62)。1ではない場合は(ステップS55)、その画素に文字は描かれていないことを意味するため、画像ラスタデータ95の画素を選択する(ステップS65)。このように選択することにより、画像の上に文字を重ねた状態のラスタデータを生成することができる。
【0074】
解像度変換部73は、選択した画素の解像度を2倍にする(ステップS67)。つまり、文字ラスタデータ90と画像ラスタデータ95から得られるラスタデータ(以下、合成ラスタデータ100とよぶ)の解像度は1440dpiとなる。
【0075】
印刷データ作成部80は、解像度変換部73が解像度変換した後の画素から印刷データを作成する(ステップS70)。具体的には、色変換、つまりRGB表色系等で記述された色をCMY表色系のデータに変換し、H/T処理を行ない、インタレース処理を行なう。印刷データ出力部85は、印刷データ作成部80が作成した印刷データをプリントエンジンに出力する(ステップS75)。ステップS55〜S75までの処理は、ラスタデータの画素すべてに対して行なわれる。
【0076】
図8は、印刷エンジン35で行なわれる処理の様子を表わした説明図である。文字ラスタデータ90は720dpiで作成されており、画像ラスタデータ95は360dpiで作成されている。画像ラスタデータ95の解像度を720dpiに変更して、各画素について画像ラスタデータ95か文字ラスタデータ90を選択する。選択した画素について解像度を2倍にしていき、1440dpiの合成ラスタデータ100が得られる。この処理においては、図8に示すように、文字ラスタデータ90における値「1」の画素は黒になり、文字ラスタデータ90における値「0」の画素では画像ラスタデータ95のRGB24ビットの階調値をとる。
【0077】
本実施の形態では、透過係数又は不透明度をドット毎に設定してなるアルファチャネルを備えず、文字ラスタデータ90の値が「0」であるか「1」であるかにより合成ラスタデータ100の階調値及び色が定まる。各ラスタデータの透過係数を考慮して合成ラスタデータ100の階調値及び色彩を定めるのではなく、文字ラスタデータ90を優先し、画像ラスタデータ95は透過係数を有していない。ただし、アルファチャネルを備えるように構成してもよいし、文字ラスタデータ90,画像ラスタデータ95の双方の値を用いて合成ラスタデータ100を生成してもよい。
【0078】
次に、生成装置30と共有バッファ40と印刷エンジン35間の印刷コマンドやラスタデータのやりとり(以下、受け渡し処理とよぶ)について説明する。図9と図10は、受け渡し処理を示すフローチャートである。
【0079】
まず、生成装置30は、印刷サイズや印刷解像度等の印刷設定を含む印刷タスク情報を共有バッファ40の所定領域に書き込み(ステップS1)、印刷タスクの実行を要求するコマンドを印刷エンジン35のレジスタに書き込む(ステップS2)。
【0080】
印刷エンジン35は、印刷タスク実行コマンドを受けると、共有バッファ40の所定領域にアクセスして印刷タスク情報を読出し(ステップS3)、印刷サイズ等の情報に基づいて各入力バッファB0,B1の大きさを決定する。そして、入力バッファB0,B1を共有バッファ40内に確保し、確保した入力バッファB0,B1の情報(例えば、各バッファの先頭アドレス及びデータサイズ)を共有バッファ40の所定領域に書き込む(ステップS4)。
【0081】
印刷エンジン35は、入力バッファB0,B1を確保した後、生成装置30のレジスタに印刷タスク応答コマンドを書き込む(ステップS5)。なお、各入力バッファB0,B1の確保は生成装置30が行ってもよい。
【0082】
次に、生成装置30は、共有バッファ40から入力バッファ情報を読み込んで、文字ラスタデータ90及び画像ラスタデータ95を格納する入力バッファの位置を把握する(ステップS6)。そして、ページの先頭のバンドから文字ラスタデータ90及び画像ラスタデータ95をそれぞれ別個に形成し、第1の入力バッファB0の文字プレーンCP0,画像プレーンPP0にそれぞれ格納する(ステップS7)。
【0083】
先頭バンドの文字及び画像のラスタデータを格納した後、生成装置30は、印刷エンジン35のレジスタに、第1の入力バッファB0に格納されたラスタデータの印刷要求コマンドを書き込む(ステップS8)。これにより、印刷エンジン35は、第1の入力バッファB0にアクセスして、先頭バンドの文字ラスタデータ90及び画像ラスタデータ95を読出し(ステップS9)、色変換処理、ハーフトーン処理等を行って印刷する。
【0084】
なお、図中「ラスタデータ形成0」とあるのは、第1の入力バッファB0に書き込む文字及び画像のラスタデータを形成することを意味し、「ラスタデータ形成1」とあるのは、第2の入力バッファB1に書き込む文字及び画像のラスタデータを形成することを意味する。同様に、「印刷0」とは、第1の入力バッファB0に格納されたラスタデータを読み出して印刷処理を行うことを意味し、「印刷1」とは第2の入力バッファB1からラスタデータを読み出して印刷処理を行うことを意味する。
【0085】
印刷エンジン35が第1の入力バッファB0から読み出したラスタデータの印刷処理を行っている間も、これに並行して生成装置30は、次のバンドのラスタデータを生成している。次バンドのラスタデータは、第2の入力バッファB1に格納される(ステップS10)。第2の入力バッファB1の各文字プレーンCP1,画像プレーンPP1にラスタデータをそれぞれ格納した後、生成装置30は印刷エンジン35に対して、第2の入力バッファB1のラスタデータを印刷処理するように要求する(ステップS11)。
【0086】
印刷エンジン35は、先頭バンドの印刷を終えると、第1の入力バッファB0のラスタデータの印刷が完了したことを生成装置30に通知する(ステップS12)。これにより、生成装置30は、第3番目のバンドのラスタデータを生成して第1の入力バッファB0に格納する(ステップS13)。
【0087】
以下、同様に、生成装置30は、使用する入力バッファを切り替えながらラスタデータを印刷エンジン35に受け渡し、印刷エンジン35は各バンドの印刷を終えるたびに印刷完了を報告する(ステップS14〜S24(図9,図10参照))。
【0088】
そして、生成装置30は、ページの最終バンドのラスタデータを印刷エンジン35に印刷指示した後、印刷タスクの終了を応答するように印刷エンジン35に要求する(ステップS25)。印刷エンジン35は、最終バンドの印刷を終えると、ページ印刷が完了した旨を生成装置30に通知する(ステップS26)。
【0089】
A5.効果:
このように構成される本実施の形態によれば、印刷データを解釈してバンド毎のラスタデータを生成するためのデータ処理機能(文字ラスタデータ90生成、画像ラスタデータ95生成及びバンド制御)を生成装置30で実行させると共に、バンド単位のラスタデータ生成後に行われるその他の処理(解像度変換,色変換,H/T処理など)を印刷エンジン35で実行させるため、生成装置30,印刷エンジン35のいずれか一方に過大な負荷がかかるのを防止することができる。
【0090】
また、共有バッファ40に確保される複数の入力バッファB0,B1を介してラスタデータを受け渡すため、一方の入力バッファ内のラスタデータが印刷エンジン35によって印刷処理されている間、生成装置30は他方の入力バッファに新たなバンドのラスタデータを書き込むことができ、生成装置30と印刷エンジン35とを並列動作させて高速な印刷を行うことができる。
【0091】
さらに、各入力バッファB0,B1には、文字ラスタデータ90を格納するための文字プレーンCPと画像ラスタデータ95を格納するための画像プレーンPPをそれぞれ形成するため、生成装置30は、文字ラスタデータ90と画像ラスタデータ95とをそれぞれ別個に生成することができ、両ラスタデータから合成ラスタデータ100を得る処理を印刷エンジン35によって行わせることができる。
【0092】
また、文字ラスタデータ90が画像ラスタデータ95に優先するようにラスタデータ間の優先度を予め設定し、文字ラスタデータ90上で透過色が設定されている画素のみ画像ラスタデータ95の画素を選択するため、文字ラスタデータ90と画像ラスタデータ95から容易に合成ラスタデータ100を得ることができる。
【0093】
また、文字ラスタデータ90を優先し、画像ラスタデータ95にはアルファチャネルのような透明度の情報を設けない場合には、画像ラスタデータ95のデータサイズを低減することができる。
【0094】
更に、ラスタデータのデータサイズを小さくする変換部57や圧縮部59を設けることにより、データサイズをさらに小さくすることが可能となる。
【0095】
B.第二実施例:
B1.処理:
第二実施例では、文字ラスタデータ90と画像ラスタデータ95から、それぞれ印刷データを作成してから、画素を選択する。図11は、第二実施例における、文書データから印刷データを生成し出力するまでの処理を表わすフローチャートである。左側のフローチャートが生成装置30のフローチャートであり、右側のフローチャートが印刷エンジン35のフローチャートである。生成装置30は文字ラスタデータ90の解像度は720dpiで、画像ラスタデータ95の解像度は360dpiで作成する。印刷エンジン35の圧縮解除部70は、入力した文字ラスタデータ90と画像ラスタデータ95の圧縮を解除し(ステップS108)、形式変換部77は、文字ラスタデータ90の色の表現方法を元に戻す(ステップS110)。更に解像度変換部73は、文字ラスタデータ90と画像ラスタデータ95の解像度を720dpiに統一する(ステップS112)。
【0096】
印刷データ作成部80が、文字ラスタデータ90と画像ラスタデータ95の各画素から、一旦個別に印刷データを作成する(ステップS120)。作成された印刷データを、それぞれ文字印刷データ105、画像印刷データ110とよぶ。次に、選択部75が、文字印刷データ105の1画素の値が、ドットを形成することを示しているかどうか調べる。ドットを形成する場合は(ステップS125)、文字印刷データ105の画素を選択する(ステップS130)。ドットを形成しない場合は(ステップS125)、画像印刷データ110の画素を選択する(ステップS135)。更に、解像度変換部73は、選択した画素の解像度を2倍にする(ステップS137)。つまり、合成の印刷データ(以下、合成印刷データ115とよぶ)の解像度は1440dpiとなる。
【0097】
図12は、第二実施例における印刷エンジン35で行なわれる処理の様子を表わした説明図である。文字ラスタデータ90は720dpiで作成されており、画像ラスタデータ95は360dpiで作成されている。画像ラスタデータ95の解像度を720dpiに変更して、各ラスタデータについて印刷データを作成する。次に、画素ごとに、文字印刷データ105か画像印刷データ110を選択する。選択した画素について解像度を2倍にしていき、1440dpiの合成印刷データ115が得られる。
【0098】
B2.効果:
このように構成される本実施の形態によれば、印刷データを作成した後に画素を選択するので、より鮮明な印刷データを得ることが可能である。
【0099】
C.変形例:
なお、上述した本発明の各実施の形態は、本発明の説明のための例示であり、本発明の範囲をそれらの実施形態にのみ限定する趣旨ではない。当業者は、本発明の要旨を逸脱することなく、他の様々な態様で本発明を実施できる。
【0100】
例えば、文字ラスタデータ90は、「1」又は「0」のいずれかを取る2値データとして構成する場合を述べたが、これに限らず、文字ラスタデータ90を3ビット以上に形成してもよい。文字ラスタデータ90の画素を3ビット表現する場合、例えば、「000」は透過色、「001」は黒、「010」は赤、「011」は青、「110」は緑、「111」は白のように、複数の文字色で文字を印刷することができる。
【0101】
また、画像処理装置としてプリンタ25を例示したが、本発明はこれに限らず、例えば、複写機、ファクシミリ装置、複合機(複写機能や印刷機能を備えるもの)等の他の画像処理装置にも適用可能である。また、インクジェットプリンタ等のシリアルプリンタに限定されず、レーザプリンタ等のページプリンタにも適用可能である。
【0102】
さらに、文字ラスタデータ90を画像ラスタデータ95に優先させて、画像の画素の値を文字の画素の値で置き換える場合を例示したが、これに限らず、例えば、256色の画像ラスタデータ95とそれ以上の色数を表現可能な画像ラスタデータ95から合成ラスタデータ100を得る等のように、階調数の低い画像ラスタデータ95を優先させて、階調数の高い画像ラスタデータ95の値を、階調数の低い画像ラスタデータ95の値で置き換える場合にも適用できる。
【0103】
また、印刷エンジン35内の各処理はASICとして構成してもよい。ラスタデータ生成後の各処理は、高度なコマンド解釈等を行う必要がなく、機械的に定型処理を行うだけであるから、各部の機能を容易にハードウェア化することができる。
【0104】
圧縮処理や色の表現方法を変える処理は、必ずしも必要ではなく、データサイズを小さくしたいときのみ行なえばよい。画素選択後の解像度変換も必ずしも必要ではない。更に、文字ラスタデータ90と画像ラスタデータ95の解像度が一致するように生成装置30がラスタデータを作成すれば、文字ラスタデータ90と画像ラスタデータ95の解像度をそろえる処理も必要がなくなる。
【0105】
また、各処理の順序は適宜変更可能である。つまり、文字ラスタデータ90と画像ラスタデータ95の解像度をそろえる処理は、画素を選択する前に行なえばよいし、文字ラスタデータ90の色の表現方法を元に戻す処理は、印刷データ作成前に行なえばよい。
【図面の簡単な説明】
【図1】 本発明の実施の形態の全体構成図である。
【図2】 プリンタ25の機能ブロック図である。
【図3】 処理対象の文書87を表わした説明図である。
【図4】 文字ラスタデータ90を表わす説明図である。
【図5】 画像ラスタデータ95を表わす説明図である。
【図6】 共有バッファ40の構成を示す模式図である。
【図7】 第一実施例における、文書データから印刷データを生成し出力するまでの処理を表わすフローチャートである。
【図8】 第一実施例における、印刷エンジン35で行なわれる処理の様子を表わした説明図である。
【図9】 生成装置30と共有バッファ40と印刷エンジン35間の受け渡し処理を示すフローチャートである。
【図10】 生成装置30と共有バッファ40と印刷エンジン35間の受け渡し処理を示すフローチャートである。
【図11】 第二実施例における、文書データから印刷データを生成し出力するまでの処理を表わすフローチャートである。
【図12】 第二実施例における、印刷エンジン35で行なわれる処理の様子を表わした説明図である。
【符号の説明】
20…コンピュータ
25…プリンタ
30…生成装置
35…印刷エンジン
40…共有バッファ
45…入力部
50…分割部
55…ラスタデータ作成部
57…変換部
59…圧縮部
60…通信部
63…コマンド解析部
65…ラスタデータ入力部
70…圧縮解除部
73…解像度変換部
75…選択部
77…形式変換部
80…印刷データ作成部
81…色変換部
82…H/T処理部
83…インタレース処理部
85…印刷データ出力部
87…文書
90…文字ラスタデータ
95…画像ラスタデータ
100…合成ラスタデータ
105…文字印刷データ
110…画像印刷データ
115…合成印刷データ
B0…第1の入力バッファ
B1…第2の入力バッファ
CP…文字プレーン
CP0…文字プレーン
CP1…文字プレーン
PP…画像プレーン
PP0…画像プレーン
PP1…画像プレーン
T1…文字色制御テーブル
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printing apparatus that generates raster data from document data provided in a page description language and performs printing.
[0002]
[Prior art]
Conventionally, document data created by a host computer such as a personal computer or a digital camera has various types of document components such as characters, images, and tables. When the printer receives document data from a personal computer or the like, it generates raster data for printing as one image for each page without considering such distinction of document components. The printer performs processing such as resolution conversion, color conversion, and halftone processing on the print data to generate print data (so-called row data) and perform printing.
[0003]
[Patent Document 1]
JP 2000-354165 A
[0004]
[Problems to be solved by the invention]
However, if raster data is generated by a conventional method, it has not been possible to perform processing that makes use of the characteristics of each document component. For example, character data in one image is generally smaller in data size and easier to handle than image data, but since it was handled as one document together with image data, compression of only character data, etc. The process could not be applied.
[0005]
The present invention has been made to solve the above-described problems, and an object thereof is to provide a technique for generating print data by utilizing the characteristics of each document component.
[0006]
[Means for solving the problems and their functions and effects]
In order to solve the above problems, an image processing apparatus according to the present invention generates character raster data and image raster data separately and combines them, and a character generation unit that generates character raster data. A character plane for storing the character raster data, an image generation unit for generating the image raster data, an image plane for storing the generated image raster data, and an image composition unit. In the image composition unit, the priority of image composition is set in advance so that the character plane has priority over the image plane.
[0007]
Here, “raster data” in the present specification means bitmap data developed so as to be raster-scannable.
[0008]
Since the character plane is set in advance so that the image plane is prioritized over the image plane, the tone and color of the dot where the character and the image overlap can be determined with priority on the character. That is, in a portion where a character and an image overlap, priority is given to the gradation and color of the character, the gradation and color of the image can be ignored, and image composition can be easily performed.
[0009]
Specifically, each pixel constituting the character plane can set any one of a plurality of values represented by n bits, and any one of the plurality of values can be set as a transparent color. Each pixel constituting the image plane can set a plurality of colors expressed by m bits, and can be configured to have no information for setting a transmission coefficient.
[0010]
Each pixel of the character plane (also referred to as a character pixel) can be described with a relatively small amount of data, such as 2 bits, 3 bits, 4 bits, etc., and any one value is set for each pixel. be able to. If n = 1, each pixel of the character plane takes a value of “0” or “1”.
[0011]
Then, either “0” or “1” is set in advance as a transparent color (here, for convenience of explanation, “1” is a specific color and “0” is a transparent color). As a result, it is possible to generate a character plane in which the character portion is displayed in a specific color and the remaining portion is transparent. When this character plane is overlaid on the image plane, the character color is displayed for pixels for which “1” is set in the character plane, regardless of the value of the corresponding image plane pixel (also referred to as an image pixel).
[0012]
On the other hand, since the pixel in which “0” is set in the character plane is a transparent color, the color of the image pixel expressed by m bits is displayed as it is. In the part where the character and the image overlap, the character is prioritized and the character pixel is displayed. In the other part, the image pixel is displayed as it is, so there is no room for considering the transparency of the image pixel. Therefore, it is not necessary for the image raster data to include attribute information that defines the transmission coefficient, and the data size of the image data can be reduced.
[0013]
In one aspect of the present invention, there is further provided a character color control table that associates an arbitrary character color with other values excluding a value to which a transparent color is assigned among a plurality of values, and the character set in the character color control table The color of each pixel of the character plane is determined by the color.
[0014]
For example, when a pixel of a character plane takes a value other than the value set for the transparent color, it can be displayed in an arbitrary color set in advance by referring to the character color control table with that value. Specifically, for example, if the character color “000000” is assigned to the value “1” of the character pixel, the pixel can be displayed in black, and if the character color “F00000” is assigned, the value “1” is displayed. Can be displayed in red.
[0015]
In one aspect of the present invention, the data processing device further includes a first data processing device and a second data processing device, the first data processing device including a character generation unit and an image generation unit, and a second data processing unit. The apparatus includes an image composition unit. The character plane and the image plane are stored in a buffer memory shared by the first data processing apparatus and the second data processing apparatus, and raster data is transferred via the buffer memory.
[0016]
A typical example of the first and second data processing devices is a CPU. However, the first and second data processing devices are not limited to a single CPU, and may include a ROM, a RAM, an input / output port, and the like.
[0017]
The first data processing device generates character raster data and image raster data, and stores each raster data in each plane of the buffer memory. The second data processing apparatus reads the data of each plane from the buffer memory and synthesizes character raster data and image raster data. In this way, by distributing the functions among the data processing devices, it is possible to prevent an excessive burden on any one of the data processing devices.
[0018]
In addition, a plurality of shared buffer areas may be provided in the buffer memory, and the shared buffer areas may be switched and used.
[0019]
In one aspect of the present invention, the first data processing device and the second data processing device share and execute a plurality of data processing functions to generate print image data based on the input print data. In the printer to be printed by the print engine, the first data processing device includes at least a character generation function for converting character data in the print data into character raster data and an image for converting image data in the print data into image raster data. The second data processing device executes the generation function, and combines the raster function that combines at least the character raster data and the image raster data, the color conversion function that performs color conversion on the combined raster data, and the color-converted raster data. Executes halftoning function for halftoning and engine control function for controlling print engine The first data processing device and the second data processing device exchange data via a shared buffer memory, and each pixel constituting the character plane has a plurality of n bits. Any one of the values can be set, and any one of the plurality of values is set as a transparent color, and each pixel constituting the image plane has a plurality of colors expressed by m bits. Can be set, and the information for setting the transmission coefficient is not included.
[0020]
The print data is created in a high-level print language such as Postscript or XHTML-print (print command written in an extensible hypertext markup language). Therefore, high-level data processing is required to interpret each print command of print data and generate raster data. On the other hand, converting raster data into image data for printing is a mechanical process that only requires color conversion of each already formed dot pattern, halftoning process, or the like. Therefore, the first data processing apparatus executes the processes up to raster data generation, and the second data processing apparatus performs processing after the raster data generation, thereby distributing the load on each data processing apparatus.
[0021]
Specifically, data processing functions that require advanced processing include a character generation function that converts character data in print data into character raster data, and an image generation function that converts image data in print data into image raster data. Other data processing functions include a composition function for combining character raster data and image raster data, a color conversion function for color conversion of the combined raster data, and a color converted raster. A halftoning function for halftoning data and an engine control function for controlling the print engine can be included.
[0022]
Then, the first data processing device and the second data processing device exchange data via a buffer memory shared by the first data processing device and the second data processing device. That is, data communication is not performed using a parallel interface, a serial interface, or the like, but raster data is transferred via a buffer memory shared by both data processing apparatuses. Here, the raster data means bitmap data and does not have to be band-shaped data. Therefore, for example, the present invention can be applied not only to a serial printer such as an inkjet printer but also to a page printer such as a laser printer.
[0023]
According to another aspect, in an image processing apparatus that separately generates and combines first raster data and second raster data, a first generation unit that generates first raster data, A first plane for storing the generated first raster data, a second generation unit for generating the second raster data, a second plane for storing the generated second raster data, An image processing apparatus is provided that includes an image composition unit in which a priority of image composition is set in advance so that a plane has priority over a second plane.
[0024]
For example, low-tone image raster data that can represent 256 colors is used as the first raster data, and high-tone image raster data that can be represented by 8-bit RGB colors as the second raster data. It is also possible to superimpose image raster data having a small number in preference to image raster data having a large number of colors.
[0025]
The present invention can also be understood as a program for controlling an image processing method and an image processing apparatus. For example, the program can be distributed by being stored in various recording media such as a CD-ROM, a magneto-optical disk, and a memory, and can also be distributed via a communication network.
[0026]
The generation apparatus of the present invention that solves at least a part of the above problems is as follows.
A generation device for generating raster data from document data,
An input unit for inputting target document data which is the document data including a plurality of different document components;
A dividing unit that divides the target document data according to document components;
A raster data creation unit for creating raster data corresponding to the divided document components;
An output unit for outputting a plurality of raster data created by the raster data creation unit;
It is characterized by providing.
[0027]
According to the generation apparatus of the present invention, it is possible to create raster data for each document component. Since the document component includes characters, images, tables, and the like, for example, character-only raster data and image-only raster data can be created from document data consisting of characters and images. Such raster data for each document component can be subjected to processing suitable for the document component.
[0028]
Further, the dividing unit may not divide the document data for each document constituent element. For example, document data composed of characters, images, and tables may be divided into only characters, images, and tables to create respective raster data. That is, raster data including only characters and raster data including an image and a table may be created.
[0029]
Such a generation device may be built in a device that generates document data, may be built in a device that outputs document data, or may be externally attached. Examples of devices that generate document data include computer devices such as personal computers and video game machines, and video output devices such as digital cameras, DVD players, video decks, video cameras, televisions, and set-top boxes. Furthermore, BS / CS / terrestrial digital broadcast compatible televisions and tuners are devices that generate document data. As an apparatus that outputs document data, for example, a printer, a personal computer, and the like exist.
[0030]
The document data includes data described in a markup language such as XML, HTML, XHTML, and the like.
[0031]
A plurality of raster data created by the raster data creation unit, each comprising a conversion unit for performing a conversion process to reduce the data size of the raster data;
The output unit may be configured to output a plurality of raster data converted by the conversion unit.
[0032]
By providing such a conversion unit, raster data having a reduced size can be output. In particular, raster data composed only of characters can be easily reduced in data size.
[0033]
The conversion process may be a color expression method conversion and / or compression conversion.
[0034]
If the color expression method is converted or compression-converted, the raster data can be output with a reduced data size. Since character data is often expressed in one color, it is effective to convert the color expression method.
[0035]
The document component may be of two types: characters and images.
[0036]
The document data is mainly composed of two types of document components, that is, characters and images. These two types of data are easy to distinguish and are easily divided into document components.
[0037]
The raster data creation unit may create each raster data with different resolutions.
[0038]
By doing so, it is possible to create raster data with a resolution corresponding to the characteristics of each document component.
[0039]
On the other hand, the printing apparatus of the present invention that solves at least a part of the above problems is as follows.
A printing apparatus that generates print data from raster data,
A raster data input unit for inputting a plurality of raster data to be printed on the same page;
A gradation determining unit that determines gradation values of raster data for printing for each pixel based on gradation values in each pixel of a plurality of raster data input by the raster data input unit;
A print data creation unit that creates print data by performing predetermined processing based on the determined gradation value;
A print data output unit for outputting the print data created by the print data creation unit;
It is characterized by providing.
[0040]
According to the printing apparatus of the present invention, it is possible to combine one image from a plurality of raster data as print data while performing predetermined processing at high speed with a small memory. As a method for determining the gradation value, any one of the plurality of raster data may be selected. At the time of selection, it is preferable that a priority order is determined for each document component. Further, the gradation value may be determined by performing an operation based on each gradation value (such as obtaining an average). In that case, you may consider a weight.
[0041]
Moreover, the printing apparatus of the present invention that solves at least a part of the above problems is as follows.
A printing apparatus that generates print data from raster data,
A raster data input unit for inputting a plurality of raster data output by the output unit;
A raster data processing unit that individually performs predetermined processing on a plurality of raster data input by the raster data input unit;
A print data generation unit that generates print data for each pixel based on a gradation value in each pixel after the processing is performed;
A print data output unit for outputting the print data generated by the print data generation unit;
You may comprise as what is provided.
[0042]
According to the printing apparatus of the present invention, it is possible to synthesize one image after performing predetermined processing individually on a plurality of raster data. Since composition is performed after processing, the image quality of each document component can be improved.
[0043]
The predetermined process performed by the print data creation unit includes at least a halftone process, a color conversion process for converting color data described in the RGB color system to color data in the CMY color system, and a resolution conversion process. It may be one.
[0044]
By appropriately performing these processes, print data can be created.
[0045]
A processing unit that individually performs predetermined preprocessing for unifying the data format for a plurality of raster data input by the raster data input unit may be provided.
[0046]
In this way, print data can be created even if arbitrary processing is performed on the input raster data.
[0047]
The predetermined preprocessing performed by the processing unit may be at least one of conversion of a color expression method, cancellation of compression, and resolution conversion for unifying the resolution of a plurality of raster data.
[0048]
In this way, print data can be created even if the color representation method of the input raster data is converted or compression-converted. Further, when the resolution is not uniform among a plurality of raster data, the resolution can be uniformed.
[0049]
The print data generation unit may generate the print data while converting the resolution.
[0050]
By doing so, it is possible to convert the resolution when combining a plurality of raster data into one image.
[0051]
The present invention can be configured in various modes such as a raster data generation method, print data generation method, and printing method, in addition to the above-described generation device and printing device. You may comprise as a computer program for performing the production | generation of raster data, the production | generation of print data, and control of a printing apparatus by computer. Moreover, you may comprise as a computer-readable recording medium which recorded such a computer program. Here, as a recording medium, a flexible disk, a CD-ROM, a magneto-optical disk, a DVD, an IC card, a ROM cartridge, a punch card, a printed matter on which a code such as a barcode is printed, a computer internal storage device (RAM or ROM) Etc.) and various media that can be read by a computer, such as an external storage device.
[0052]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in the following items.
A. First embodiment:
A1. overall structure:
A2. Function block:
A3. Raster data:
A4. processing:
A5. effect:
B. Second embodiment:
B1. processing:
B2. effect:
C. Variation:
[0053]
A. First embodiment:
A1. overall structure:
FIG. 1 is an overall configuration diagram of an embodiment of the present invention. The computer 20 generates document data in a printing language such as XHTML-print, for example. Examples of the computer 20 include a set top box (STB) for receiving a personal computer, a digital camera, a portable information terminal, a mobile phone, a satellite broadcast, etc. and displaying them on a display device.
[0054]
The printer 25 is configured as a so-called direct printable printer that can perform printing based on document data input from a peripheral device without using a personal computer. As will be described later, the printer 25 includes a main CPU that functions as a generation device, a sub CPU that functions as a printing device, a shared buffer, and a print engine.
[0055]
A2. Function block:
FIG. 2 is a functional block diagram of the printer 25. The printer 25 includes a generation device 30, a print engine 35, and a shared buffer 40. The generation device 30 includes an input unit 45, a division unit 50, a raster data creation unit 55, a conversion unit 57, a compression unit 59, and a communication unit 60.
[0056]
The input unit 45 receives document data from the computer 20. The dividing unit 50 analyzes the command of the document data received by the input unit 45 and divides it into a command for displaying characters and a command for displaying images. When the document data is described in XHTML, XML (Extensible Markup Language) or the like, the dividing unit 50 has a function of interpreting XHTML or XML.
[0057]
The raster data creation unit 55 calls character raster data (hereinafter referred to as character raster data) from a command for displaying characters, and image raster data (hereinafter referred to as image raster data) from a command for displaying images. ). When creating character raster data from a command for displaying characters, a font memory or the like is referred to. Image raster data is created by placing a designated image at a designated location in accordance with a command for displaying the image.
[0058]
The conversion unit 57 converts the color rendering method of the character raster data. The compression unit 59 compresses image raster data and character raster data. The communication unit 60 communicates with the print engine 35 and the shared buffer 40 such as writing the created image raster data and character raster data in a predetermined area of the shared buffer 40 and transmitting a print command to the print engine 35.
[0059]
The print engine 35 includes a command analysis unit 63, a raster data input unit 65, a decompression unit 70, a resolution conversion unit 73, a selection unit 75, a format conversion unit 77, a print data creation unit 80, and a print data output unit 85. . The print data creation unit 80 includes a color conversion unit 81, an H / T processing unit 82, and an interlace processing unit 83.
[0060]
The command analysis unit 63 interprets the print command input from the generation device 30. Examples of the command interpreted here include the number of copies to be printed, enlargement / reduction designation, and the like. The raster data input unit 65 inputs a plurality of raster data stored by the generation device 30 from the shared buffer 40.
[0061]
The decompression unit 70 decompresses the compressed raster data. The resolution conversion unit 73 converts the resolution. The selection unit 75 selects either image raster data or character raster data for each pixel. The format conversion unit 77 restores the color expression method converted by the conversion unit 57.
[0062]
The print data creation unit 80 creates print data from raster data. That is, the color conversion unit 81 converts colors described in the RGB color system or the like into CMY color system data, and the H / T processing unit 82 converts multi-gradation data into area gradations, and performs interlace processing. Unit 83 performs conversion for outputting print data in an interlaced manner. The print data output unit 85 outputs the print data to the printer engine.
[0063]
The shared buffer 40 is a memory shared by the generation device 30 and the print engine 35. When the generation device 30 writes the character raster data and the image raster data in a predetermined area of the shared buffer 40, the print engine 35 reads out the written character raster data and the image raster data, and processes both the raster data. .
[0064]
A3. Raster data:
FIG. 3 is an explanatory diagram showing the document 87 represented by the document data to be processed. The document 87 is formed by superimposing characters such as “EP” and “FH” and a background image. Such a document 87 is divided into predetermined widths, and one of them is called one band. The band represents a processing unit and can be arbitrarily set according to the buffer size and the processing speed. In this embodiment, processing is performed in band units in order to speed up processing.
[0065]
FIG. 4 is an explanatory diagram showing 1-band character raster data 90 of the document 87 of FIG. Since the character raster data 90 is a single color, the color representation method is converted by the conversion unit 57 so that each dot takes a value of “0” or “1”. The dot having the value “1” is set so as to represent any one color designated by the character color control table T1, for example, “black”. The dot with the value “0” is set as “transparent color”.
[0066]
On the other hand, FIG. 5 is an explanatory diagram showing 1-band image raster data 95 of the document 87 of FIG. The image raster data 95 is configured such that each dot takes a gradation value of 24 bits in total, 8 bits for each of RGB.
[0067]
FIG. 6 is a schematic diagram showing the configuration of the shared buffer 40. As shown in FIG. 6, the shared buffer 40 is provided with two buffers, an input buffer B0 and an input buffer B1. The sizes of the input buffers B0 and B1 are determined and secured for each print job. Then, a double buffer method is employed in which raster data is read from the other buffer and processed while raster data is being written to one buffer.
[0068]
The input buffer B0 is provided with a character plane CP0 that is a buffer for storing the character raster data 90 and an image plane PP0 that is a buffer for storing the image raster data 95. The character plane CP0 and the image plane PP0 have a predetermined size determined by the printing width and band height. The same applies to the input buffer B1.
[0069]
A4. processing:
FIG. 7 is a flowchart showing processing from generation of print data from document data to output. The flowchart on the left side is a flowchart of the generation apparatus 30, and the flowchart on the right side is a flowchart of the print engine 35. The input unit 45 of the generation device 30 inputs document data from the computer 20 (step S27). The dividing unit 50 analyzes the command of the document data input by the input unit 45 and divides the command into a command for displaying characters and a command for displaying images (step S29).
[0070]
The raster data creating unit 55 creates the character raster data 90 from the command for displaying characters and the image raster data 95 from the command for displaying images divided by the dividing unit 50 (step S30). At this time, the resolution of the character raster data 90 is created at 720 dpi, and the resolution of the image raster data 95 is created at 360 dpi.
[0071]
The conversion unit 57 converts the color rendering method of the character raster data 90 so that the data size is reduced (step S32). The compression unit 59 compresses the character raster data 90 and the image raster data 95 (step S34). The communication unit 60 outputs the image raster data 95 and the character raster data 90 created by the raster data creation unit 55 to the shared buffer 40 (step S35), and transmits a print command to the print engine 35 (step S37).
[0072]
The command analysis unit 63 receives a print command from the generation device 30 (step S40). The raster data input unit 65 receives an instruction from the command analysis unit 63 and inputs the character raster data 90 and the image raster data 95 stored by the generation device 30 from the shared buffer 40 (step S42). The decompression unit 70 decompresses the input character raster data 90 and image raster data 95 (step S45). The resolution conversion unit 73 unifies the resolutions of the character raster data 90 and the image raster data 95 to 720 dpi (step S47).
[0073]
The selection unit 75 checks whether the value of one pixel of the character raster data 90 is 1. If it is 1 (step S55), it means that a character is drawn on the pixel, and therefore a pixel of the character raster data 90 is selected (step S60). Then, the format converter 77 restores the color expression method converted by the converter 57 (step S62). If it is not 1 (step S55), it means that no character is drawn on the pixel, and therefore the pixel of the image raster data 95 is selected (step S65). By selecting in this way, raster data in a state where characters are superimposed on the image can be generated.
[0074]
The resolution conversion unit 73 doubles the resolution of the selected pixel (step S67). That is, the resolution of raster data obtained from the character raster data 90 and the image raster data 95 (hereinafter referred to as composite raster data 100) is 1440 dpi.
[0075]
The print data creation unit 80 creates print data from the pixels after the resolution conversion unit 73 performs resolution conversion (step S70). Specifically, color conversion, that is, a color described in the RGB color system is converted into CMY color system data, H / T processing is performed, and interlace processing is performed. The print data output unit 85 outputs the print data created by the print data creation unit 80 to the print engine (step S75). The processing from steps S55 to S75 is performed for all the pixels of the raster data.
[0076]
FIG. 8 is an explanatory diagram showing the state of processing performed by the print engine 35. The character raster data 90 is created at 720 dpi, and the image raster data 95 is created at 360 dpi. The resolution of the image raster data 95 is changed to 720 dpi, and the image raster data 95 or the character raster data 90 is selected for each pixel. The resolution is doubled for the selected pixel, and 1440 dpi composite raster data 100 is obtained. In this processing, as shown in FIG. 8, the pixel having the value “1” in the character raster data 90 is black, and the pixel having the value “0” in the character raster data 90 is RGB 24-bit gradation of the image raster data 95. Takes a value.
[0077]
In the present embodiment, an alpha channel in which a transmission coefficient or opacity is set for each dot is not provided, and the composite raster data 100 is determined depending on whether the value of the character raster data 90 is “0” or “1”. The gradation value and color are determined. The character raster data 90 is prioritized and the image raster data 95 does not have a transmission coefficient, instead of determining the gradation value and color of the combined raster data 100 in consideration of the transmission coefficient of each raster data. However, it may be configured to include an alpha channel, or the combined raster data 100 may be generated using the values of both the character raster data 90 and the image raster data 95.
[0078]
Next, exchange of print commands and raster data (hereinafter referred to as delivery processing) among the generation apparatus 30, the shared buffer 40, and the print engine 35 will be described. 9 and 10 are flowcharts showing the delivery process.
[0079]
First, the generation device 30 writes print task information including print settings such as print size and print resolution in a predetermined area of the shared buffer 40 (step S1), and a command for requesting execution of the print task is stored in the register of the print engine 35. Write (step S2).
[0080]
Upon receiving the print task execution command, the print engine 35 accesses a predetermined area of the shared buffer 40 to read the print task information (step S3), and based on the information such as the print size, the size of each of the input buffers B0 and B1 To decide. Then, the input buffers B0 and B1 are secured in the shared buffer 40, and information of the secured input buffers B0 and B1 (for example, the start address and data size of each buffer) is written in a predetermined area of the shared buffer 40 (step S4). .
[0081]
After securing the input buffers B0 and B1, the print engine 35 writes a print task response command in the register of the generation device 30 (step S5). The generation apparatus 30 may secure the input buffers B0 and B1.
[0082]
Next, the generation device 30 reads the input buffer information from the shared buffer 40 and grasps the position of the input buffer that stores the character raster data 90 and the image raster data 95 (step S6). Then, the character raster data 90 and the image raster data 95 are separately formed from the first band of the page, and stored in the character plane CP0 and the image plane PP0 of the first input buffer B0 (step S7).
[0083]
After storing the character of the first band and the raster data of the image, the generating device 30 writes the print request command for the raster data stored in the first input buffer B0 into the register of the print engine 35 (step S8). As a result, the print engine 35 accesses the first input buffer B0, reads the character raster data 90 and the image raster data 95 of the first band (step S9), performs color conversion processing, halftone processing, etc., and prints. To do.
[0084]
In the figure, “raster data formation 0” means that character and image raster data to be written to the first input buffer B0 is formed, and “raster data formation 1” means that the second The character and image raster data to be written to the input buffer B1 are formed. Similarly, “print 0” means that the raster data stored in the first input buffer B0 is read and printing processing is performed, and “print 1” means that raster data is received from the second input buffer B1. It means reading and printing.
[0085]
While the print engine 35 is printing the raster data read from the first input buffer B0, the generation device 30 generates raster data of the next band in parallel with this. The raster data of the next band is stored in the second input buffer B1 (step S10). After storing the raster data in each of the character plane CP1 and the image plane PP1 of the second input buffer B1, the generation device 30 prints the raster data of the second input buffer B1 to the print engine 35. A request is made (step S11).
[0086]
When the print engine 35 finishes printing the first band, the print engine 35 notifies the generating device 30 that the printing of the raster data in the first input buffer B0 has been completed (step S12). Thereby, the generation device 30 generates raster data of the third band and stores it in the first input buffer B0 (step S13).
[0087]
Similarly, the generation device 30 passes raster data to the print engine 35 while switching the input buffer to be used, and the print engine 35 reports the completion of printing each time printing of each band is completed (steps S14 to S24 (FIG. 9, see FIG. 10)).
[0088]
Then, after generating the raster data of the last band of the page to the print engine 35, the generation apparatus 30 requests the print engine 35 to respond to the end of the print task (step S25). When the print engine 35 finishes printing the last band, the print engine 35 notifies the generation device 30 that page printing is complete (step S26).
[0089]
A5. effect:
According to this embodiment configured as described above, a data processing function (character raster data 90 generation, image raster data 95 generation and band control) for interpreting print data and generating raster data for each band is provided. In addition to being executed by the generation device 30, other processing (resolution conversion, color conversion, H / T processing, etc.) performed after generation of raster data in band units is executed by the print engine 35. It is possible to prevent an excessive load from being applied to either one.
[0090]
In addition, since the raster data is transferred via the plurality of input buffers B0 and B1 secured in the shared buffer 40, the generation device 30 is in a state where the raster data in one input buffer is being printed by the print engine 35. Raster data of a new band can be written in the other input buffer, and the generation apparatus 30 and the print engine 35 can be operated in parallel to perform high-speed printing.
[0091]
Further, in each of the input buffers B0 and B1, a character plane CP for storing the character raster data 90 and an image plane PP for storing the image raster data 95 are formed. 90 and the image raster data 95 can be generated separately, and the print engine 35 can perform processing for obtaining the combined raster data 100 from both raster data.
[0092]
Further, priorities between raster data are set in advance so that the character raster data 90 has priority over the image raster data 95, and only pixels for which the transparent color is set on the character raster data 90 are selected. Therefore, the synthesized raster data 100 can be easily obtained from the character raster data 90 and the image raster data 95.
[0093]
In addition, when the character raster data 90 is given priority and the image raster data 95 is not provided with transparency information such as an alpha channel, the data size of the image raster data 95 can be reduced.
[0094]
Furthermore, the data size can be further reduced by providing the conversion unit 57 and the compression unit 59 that reduce the data size of the raster data.
[0095]
B. Second embodiment:
B1. processing:
In the second embodiment, print data is created from character raster data 90 and image raster data 95, respectively, and then a pixel is selected. FIG. 11 is a flowchart showing the processing until print data is generated from document data and output in the second embodiment. The flowchart on the left side is a flowchart of the generation apparatus 30, and the flowchart on the right side is a flowchart of the print engine 35. The generating apparatus 30 creates the character raster data 90 with a resolution of 720 dpi and the image raster data 95 with a resolution of 360 dpi. The compression release unit 70 of the print engine 35 releases the compression of the input character raster data 90 and the image raster data 95 (step S108), and the format conversion unit 77 restores the color expression method of the character raster data 90. (Step S110). Further, the resolution conversion unit 73 unifies the resolutions of the character raster data 90 and the image raster data 95 to 720 dpi (step S112).
[0096]
The print data creation unit 80 creates print data once individually from each pixel of the character raster data 90 and the image raster data 95 (step S120). The created print data is called character print data 105 and image print data 110, respectively. Next, the selection unit 75 checks whether the value of one pixel of the character print data 105 indicates that a dot is to be formed. When forming a dot (step S125), the pixel of the character print data 105 is selected (step S130). If no dot is formed (step S125), the pixel of the image print data 110 is selected (step S135). Further, the resolution conversion unit 73 doubles the resolution of the selected pixel (step S137). That is, the resolution of the composite print data (hereinafter referred to as composite print data 115) is 1440 dpi.
[0097]
FIG. 12 is an explanatory diagram showing the state of processing performed by the print engine 35 in the second embodiment. The character raster data 90 is created at 720 dpi, and the image raster data 95 is created at 360 dpi. The resolution of the image raster data 95 is changed to 720 dpi, and print data is created for each raster data. Next, the character print data 105 or the image print data 110 is selected for each pixel. The resolution is doubled for the selected pixel, and 1440 dpi composite print data 115 is obtained.
[0098]
B2. effect:
According to the present embodiment configured as described above, since the pixels are selected after the print data is created, clearer print data can be obtained.
[0099]
C. Variation:
Each embodiment of the present invention mentioned above is an illustration for explaining the present invention, and does not mean that the scope of the present invention is limited only to the embodiment. Those skilled in the art can implement the present invention in various other modes without departing from the gist of the present invention.
[0100]
For example, the case where the character raster data 90 is configured as binary data that takes either “1” or “0” has been described. However, the present invention is not limited to this, and the character raster data 90 may be formed with 3 bits or more. Good. When expressing the pixel of the character raster data 90 in 3 bits, for example, “000” is a transparent color, “001” is black, “010” is red, “011” is blue, “110” is green, and “111” is Characters can be printed with multiple character colors, such as white.
[0101]
The printer 25 is exemplified as the image processing apparatus. However, the present invention is not limited to this, and other image processing apparatuses such as a copying machine, a facsimile machine, and a multifunction machine (having a copying function and a printing function) may be used. Applicable. Further, the present invention is not limited to a serial printer such as an ink jet printer, and can also be applied to a page printer such as a laser printer.
[0102]
Further, the case where the character raster data 90 is prioritized over the image raster data 95 and the pixel value of the image is replaced with the value of the pixel of the character is exemplified. However, the present invention is not limited to this. The value of the image raster data 95 having a high gradation number is given priority by giving priority to the image raster data 95 having a low gradation number, such as obtaining the composite raster data 100 from the image raster data 95 capable of expressing more colors. Is also applicable to the case where the value is replaced with the value of the image raster data 95 having a low gradation number.
[0103]
Each process in the print engine 35 may be configured as an ASIC. Each process after the raster data generation does not require high-level command interpretation or the like, and merely performs standard processing mechanically. Therefore, the function of each unit can be easily implemented as hardware.
[0104]
The compression process and the process of changing the color expression method are not necessarily required, and may be performed only when it is desired to reduce the data size. Resolution conversion after pixel selection is not always necessary. Furthermore, if the generating device 30 creates raster data so that the resolutions of the character raster data 90 and the image raster data 95 match, it is not necessary to perform a process for matching the resolutions of the character raster data 90 and the image raster data 95.
[0105]
Moreover, the order of each process can be changed suitably. In other words, the processing for matching the resolutions of the character raster data 90 and the image raster data 95 may be performed before selecting the pixels, and the processing for restoring the color expression method of the character raster data 90 is performed before the print data is created. Just do it.
[Brief description of the drawings]
FIG. 1 is an overall configuration diagram of an embodiment of the present invention.
FIG. 2 is a functional block diagram of a printer 25. FIG.
FIG. 3 is an explanatory diagram showing a document 87 to be processed.
FIG. 4 is an explanatory diagram showing character raster data 90;
FIG. 5 is an explanatory diagram showing image raster data 95;
6 is a schematic diagram showing a configuration of a shared buffer 40. FIG.
FIG. 7 is a flowchart showing processing until print data is generated from document data and output in the first embodiment.
FIG. 8 is an explanatory diagram showing a state of processing performed by the print engine in the first embodiment.
FIG. 9 is a flowchart illustrating a transfer process among the generation apparatus 30, the shared buffer 40, and the print engine 35.
FIG. 10 is a flowchart illustrating a transfer process among the generation apparatus 30, the shared buffer 40, and the print engine 35.
FIG. 11 is a flowchart showing processing until print data is generated from document data and output in the second embodiment.
FIG. 12 is an explanatory diagram showing a state of processing performed by the print engine in the second embodiment.
[Explanation of symbols]
20 ... Computer
25 ... Printer
30 ... Generator
35 ... Print engine
40 ... Shared buffer
45 ... Input section
50: Dividing part
55 ... Raster data creation section
57: Conversion unit
59 ... Compression section
60 ... Communication Department
63: Command analysis unit
65: Raster data input section
70: Compression release unit
73 ... Resolution converter
75 ... Selection part
77 ... Format converter
80: Print data creation section
81 ... color conversion unit
82 ... H / T processing section
83. Interlace processing section
85: Print data output section
87 ... Document
90 ... character raster data
95: Image raster data
100: Composite raster data
105: Character print data
110: Image print data
115 ... Composite print data
B0: First input buffer
B1 ... second input buffer
CP: Character plane
CP0 ... character plane
CP1 ... Character plane
PP: Image plane
PP0: Image plane
PP1 ... Image plane
T1 ... Character color control table

Claims (7)

文字ラスタデータと画像ラスタデータとをそれぞれ別個に生成して合成する画像処理装置において、
文字ラスタデータを生成する文字生成部と、
前記生成された文字ラスタデータを格納する文字プレーンと、
画像ラスタデータを生成する画像生成部と、
前記生成された画像ラスタデータを格納する画像プレーンと
前記文字ラスタデータと前記画像ラスタデータとを合成する画像合成部と、
え、
前記文字生成部は、
前記文字ラスタデータに含まれる各ピクセルに、nビットで表現される複数の値のうちのいずれか1つの値を割り当て、
前記複数の値のうちの特定の値は、透過を示し、前記複数の値のうちの前記特定の値以外の値は、文字色を示し、
前記画像合成部は、
前記文字ラスタデータのピクセルに前記特定の値以外の値が割り当てられている場合に、前記文字ラスタデータのピクセルを選択し、前記文字ラスタデータのピクセルに前記特定の値が割り当てられている場合に、前記画像ラスタデータのピクセルを選択することによって、前記文字ラスタデータと前記画像ラスタデータとを合成することを特徴とする画像処理装置。
In an image processing apparatus that generates and synthesizes character raster data and image raster data separately,
A character generator for generating character raster data;
A character plane for storing the generated character raster data;
An image generator for generating image raster data;
An image plane for storing the generated image raster data ;
And images synthesizing unit for synthesizing said image raster data and the character raster data,
Bei to give a,
The character generator is
Assigning to each pixel included in the character raster data one of a plurality of values represented by n bits,
A specific value of the plurality of values indicates transparency, and a value other than the specific value of the plurality of values indicates a character color,
The image composition unit
When the pixel of the character raster data is assigned a value other than the specific value, the pixel of the character raster data is selected, and when the specific value is assigned to the pixel of the character raster data , by selecting a pixel of the image raster data, the image processing apparatus characterized that you synthesized with the character raster data and the image raster data.
記画像ラスタデータに含まれる各ピクセルは、mビットで表現される複数の色のうちのいずれかを示し、透過係数を設定するための情報を有さない、請求項1に記載の画像処理装置。 Each pixel included in the prior Kiga image raster data indicate any of a plurality of colors represented by m bits, have a have information for setting the transmission coefficient, according to Motomeko 1 Image processing apparatus. 前記特定の値以外の値と前記文字色とが対応付けられた文字色制御テーブルを更に備える、請項1または2に記載の画像処理装置。 The particular value other than the further to include the character color control table and character color is kicked pair応付image processing apparatus according to billed to claim 1 or 2. さらに、第1のデータ処理装置及び第2のデータ処理装置を備え、
前記第1のデータ処理装置は、前記文字生成部と前記画像生成部を含んでなり、
前記第2のデータ処理装置は、前記画像合成部を含んでなり、
前記文字プレーン及び前記画像プレーンは、前記第1のデータ処理装置と前記第2のデータ処理装置に共有されるバッファメモリに格納され、
前記バッファメモリを介してラスタデータの受け渡しを行うようになっている請求項1ないし3のいずれかに記載の画像処理装置。
And a first data processing device and a second data processing device,
The first data processing device includes the character generation unit and the image generation unit,
The second data processing device includes the image composition unit,
The character plane and the image plane are stored in a buffer memory shared by the first data processing device and the second data processing device,
4. The image processing apparatus according to claim 1, wherein raster data is transferred via the buffer memory.
前記バッファメモリには、複数の共有バッファ領域が設けられ、該各共有バッファ領域を切り替えて使用する請求項4に記載の画像処理装置。  The image processing apparatus according to claim 4, wherein the buffer memory includes a plurality of shared buffer areas, and the shared buffer areas are switched and used. 文字ラスタデータと画像ラスタデータとをそれぞれ別個に生成して合成する画像処理方法において、
文字ラスタデータを生成するステップと、
前記生成された文字ラスタデータを文字プレーンに格納させるステップと、
画像ラスタデータを生成するステップと、
前記生成された画像ラスタデータを画像プレーンに格納させるステップと
前記文字ラスタデータと前記画像ラスタデータとを合成するステップと
を含み、
前記文字ラスタデータ生成ステップは、
前記文字ラスタデータに含まれる各ピクセルに、nビットで表現される複数の値のうちのいずれか1つの値を割り当るステップであって、前記複数の値のうちの特定の値は、透過を示し、前記複数の値のうちの前記特定の値以外の値は、文字色を示す、割り当てステップを含み、
前記合成ステップは、
前記文字ラスタデータのピクセルに前記特定の値以外の値が割り当てられている場合に、前記文字ラスタデータのピクセルを選択し、前記文字ラスタデータのピクセルに前記特 定の値が割り当てられている場合に、前記画像ラスタデータのピクセルを選択することによって、前記文字ラスタデータと前記画像ラスタデータとを合成するステップを含むことを特徴とする画像処理方法。
In an image processing method for generating and combining character raster data and image raster data separately,
Generating character raster data; and
Storing the generated character raster data in a character plane;
Generating image raster data;
Storing the generated image raster data in an image plane ;
Comprising the steps of synthesis and the image raster data and the character raster data,
Including
The character raster data generation step includes:
Assigning to each pixel included in the character raster data one of a plurality of values represented by n bits, wherein the specific value of the plurality of values is transparent; A value other than the specific value of the plurality of values includes an assigning step indicating a character color;
The synthesis step includes
If it assigned a value other than the character raster data pixel to the specific value, the character and select the pixel of the raster data, when said value of said on character raster data pixel particular is assigned to, by selecting a pixel of the image raster data, images processing method characterized by comprising the step of combining the said character raster data and the image raster data.
文字ラスタデータと画像ラスタデータとをそれぞれ別個に生成して合成する画像処理装置を制御するプログラムにおいて、
文字ラスタデータを生成させる機能と、
前記生成された文字ラスタデータを文字プレーンに格納させる機能と、
画像ラスタデータを生成させる機能と、
前記生成された画像ラスタデータを画像プレーンに格納させる機能と
前記文字ラスタデータと前記画像ラスタデータとを合成する機能と、
を前記画像処理装置に現させ、
前記文字ラスタデータ生成機能は、
前記文字ラスタデータに含まれる各ピクセルに、nビットで表現される複数の値のうちのいずれか1つの値を割り当る機能であって、前記複数の値のうちの特定の値は、透過を示し、前記複数の値のうちの前記特定の値以外の値は、文字色を示す、割り当て機能を含み、
前記合成機能は、
前記文字ラスタデータのピクセルに前記特定の値以外が割り当てられている場合に、前記文字ラスタデータのピクセルを選択し、前記文字ラスタデータのピクセルに前記特定の値が割り当てられている場合に、前記画像ラスタデータのピクセルを選択することによって、前記文字ラスタデータと前記画像ラスタデータとを合成する機能を含むことを特徴とするプログラム。
In a program for controlling an image processing apparatus that generates and synthesizes character raster data and image raster data separately,
A function to generate character raster data;
A function of storing the generated character raster data in a character plane;
A function to generate image raster data;
A function of storing the generated image raster data in an image plane ;
A function of synthesis and the image raster data and the character raster data,
Was revealed real to the image processing apparatus,
The character raster data generation function is
A function of allocating any one of a plurality of values represented by n bits to each pixel included in the character raster data, wherein the specific value of the plurality of values is transparent. A value other than the specific value of the plurality of values includes an assignment function indicating a character color;
The synthesis function is
When a pixel other than the specific value is assigned to the pixel of the character raster data, the pixel of the character raster data is selected, and when the specific value is assigned to the pixel of the character raster data, by selecting the pixels of the image raster data, programs, characterized in that it comprises a function of combining the said character raster data and the image raster data.
JP2002273515A 2002-07-17 2002-09-19 Image processing device Expired - Fee Related JP4075546B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002273515A JP4075546B2 (en) 2002-07-17 2002-09-19 Image processing device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002207731 2002-07-17
JP2002273515A JP4075546B2 (en) 2002-07-17 2002-09-19 Image processing device

Publications (2)

Publication Number Publication Date
JP2004104735A JP2004104735A (en) 2004-04-02
JP4075546B2 true JP4075546B2 (en) 2008-04-16

Family

ID=32300270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002273515A Expired - Fee Related JP4075546B2 (en) 2002-07-17 2002-09-19 Image processing device

Country Status (1)

Country Link
JP (1) JP4075546B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006082527A (en) * 2004-09-17 2006-03-30 Sony Corp Color printer, print controller, image processor, print control method and program
JP2006264055A (en) * 2005-03-23 2006-10-05 Seiko Epson Corp Printing system, printing method and printing controller
JP2006264054A (en) * 2005-03-23 2006-10-05 Seiko Epson Corp Printing system, printing method and printing controller
JP4502908B2 (en) * 2005-08-30 2010-07-14 株式会社沖データ Image processing apparatus and image processing system
JP2008252680A (en) * 2007-03-30 2008-10-16 Omron Corp Program for portable terminal device, and the portable terminal device
JP5173578B2 (en) * 2008-05-15 2013-04-03 キヤノン株式会社 Image processing method, printing apparatus, and control method thereof
JP2010183436A (en) * 2009-02-06 2010-08-19 Seiko Epson Corp Apparatus, system, method and program for image processing
JP5929431B2 (en) 2012-03-30 2016-06-08 ブラザー工業株式会社 Image recording apparatus, control method for image recording apparatus, and control program
JP5597272B2 (en) * 2013-03-11 2014-10-01 キヤノン株式会社 Arithmetic method, arithmetic device, image processing device, and program
JP2018206001A (en) * 2017-06-02 2018-12-27 株式会社Amazing Day Print server, printed matter constituting method, and program

Also Published As

Publication number Publication date
JP2004104735A (en) 2004-04-02

Similar Documents

Publication Publication Date Title
JP4217398B2 (en) Image data processing method, image data processing apparatus, storage medium, and program
JP3827049B2 (en) Printer control circuit, printer and printing system
EP0772117B1 (en) Printer driver architecture for reducing band memory
US20050243374A1 (en) Image processing method and image processing unit
US7864367B2 (en) Image processing system and image processing method
US20110007355A1 (en) Apparatus, method, system and storage medium for setting print status
JP3744808B2 (en) Image processing apparatus, image processing method, program, and recording medium
US7855809B2 (en) Image processing apparatus and method for executing a process of error diffusion
JP4075546B2 (en) Image processing device
US5828815A (en) High quality multilevel halftoning for color images with reduced memory requirements
JP2830690B2 (en) Image processing device
KR101369536B1 (en) Printing apparatus and control method and computer readable medium
US20090153887A1 (en) Apparatus for printing consistent spot colors
JP2001325087A (en) Command analysis utilizing rewritable command storing part
JP6882043B2 (en) Image processing equipment, programs and image processing methods
US11561749B2 (en) Print system, preview image display method, print job generating device, image forming device, storage medium storing print job generating program, and storage medium storing preview image display program
CN101346238A (en) Image processing apparatus, printer, and image processing method
JP2008113364A (en) Image processor, processing circuit, and processing method, and program
US8279478B2 (en) Printing system, printing apparatus and image-printing method for suppressing image quality degradation
US8830509B2 (en) Image processing apparatus, method, and medium for performing density adjustment
JP3550979B2 (en) Image processing device
JP2003319167A (en) Print processing method and apparatus therefor
JP3833170B2 (en) Gray line setting method, image processing apparatus and image processing method
JP2003316559A (en) Image data structure, image data preparing device and image output device
JP5299253B2 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050916

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070723

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070731

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070905

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080121

R150 Certificate of patent or registration of utility model

Ref document number: 4075546

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110208

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110208

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120208

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130208

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130208

Year of fee payment: 5

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