JPH0451668A - Printing device - Google Patents

Printing device

Info

Publication number
JPH0451668A
JPH0451668A JP2158695A JP15869590A JPH0451668A JP H0451668 A JPH0451668 A JP H0451668A JP 2158695 A JP2158695 A JP 2158695A JP 15869590 A JP15869590 A JP 15869590A JP H0451668 A JPH0451668 A JP H0451668A
Authority
JP
Japan
Prior art keywords
color
pattern
printing
background
information
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.)
Granted
Application number
JP2158695A
Other languages
Japanese (ja)
Other versions
JP2771680B2 (en
Inventor
Yuichi Higuchi
雄一 樋口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2158695A priority Critical patent/JP2771680B2/en
Publication of JPH0451668A publication Critical patent/JPH0451668A/en
Application granted granted Critical
Publication of JP2771680B2 publication Critical patent/JP2771680B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PURPOSE:To improve the efficiency of the designation of a background color and the color of a character to be stored there by printing and outputting the remarked pattern of the color obtained in conformity to inputted selection information with each inputted area for a background. CONSTITUTION:Information to designate the areas capable of being superimposed to each other and the background color of each of these areas is inputted, and simultaneously, the information to select one background color of the area to be superimposed at a position where the pattern is to be printed as the color of the prescribed pattern to be recorded is inputted as well. Then, it is analyzed what background color of the area superimposed at the position of the remarked pattern the printing color of that pattern is made in conformity to the selection information inputted before. Further, the remarked pattern of the color obtained based on the this analyzed result is printed and outputted with each area inputted before for the background. Thus, the background color and the color of the character to be recorded there can be efficiently designated.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

本発明は印刷装置、特に印刷情報を入力し、当該印刷情
報に基づくカラー画像を印刷出力する印刷装置に関する
ものである。
The present invention relates to a printing device, and particularly to a printing device that inputs printing information and prints out a color image based on the printing information.

【従来の技術】[Conventional technology]

従来のこの種の装置においては、複数の背景色があって
、そこに抜き文字を印字させるようにする場合、その抜
き文字内部に反映される背景色の色をその都度指定する
ことで行っていた。
In conventional devices of this kind, when there are multiple background colors and you want to print cutout characters on those, you specify the background color that will be reflected inside the cutout characters each time. Ta.

【発明が解決しようとしている課題】[Problem to be solved by the invention]

しかしながら、従来例では、抜き文字を行なう都度、抜
かれる背景を調べなければならず、また色指定のコマン
ドを出すめため作業量並びにデータ量が増加するという
欠点があった。 これは、成る色を背景にして文字等を印刷させる場合に
も同様である。 本発明はかかる従来技術に鑑みなされたものであり、背
景色とそこに記録される文字の色の指定を効率良(する
ことが可能な印刷装置を提供しようとするものである。
However, in the conventional example, the background to be extracted must be checked every time a character is extracted, and a command for specifying a color must be issued, which increases the amount of work and data. This also applies when printing characters etc. on a background of different colors. The present invention has been made in view of such prior art, and it is an object of the present invention to provide a printing device that can efficiently designate the background color and the color of characters recorded therein.

【課題を解決するための手段] この課題を解決する本発明の印刷装置は以下に示す構成
を備える。すなわち、 印刷情報を入力し、当該印刷情報に基づくカラー画像を
印刷8カする印刷装置において、互いに重畳可能な領域
及び当該各領域の背景色を指定するための情報を入力す
る第1の入力手段と、記録すべき所定パターンの色とし
て、当該パターンが印刷される位置に重畳される前記領
域の1つの背景色を選択するような情報を入力する第2
の入力手段と、前記パターン自体の印刷色として、前記
第2の入力手段より入力した選択情報に従って当該注目
パターンの位置に重畳された前記領域のどの背景色とす
るかを解析して求める解析手段と、該解析手段で得られ
た色の注目パターンを前記第1の入力手段で入力された
各々の領域を背景にして印刷出力する出力手段とを備え
る。 または、印刷情報を入力し、当該印刷情報に基づくカラ
ー画像を印刷8カする印刷装置において、背景色と当該
背景色に対してのパターンの色の組み合せデータを入力
する第1の入力手段と、互いに重畳可能な領域及び当該
領域の背景色を入力する第2の入力手段と、前記印刷情
報に基づいて得られた印刷対象のパターンの印刷色を、
前記第1.第2の入力手段より入力された情報に基づい
て解析し求める解析手段と、前記印刷情報に基づいて得
られた印刷対象のパターンを該解析手段により得られた
印刷色とし、前記第2の入力手段より入力した個々の背
景色を持つ各領域に重畳するように印刷出力する出力手
段とを備える。 【作用】 かかる本発明の構成において、例えば第1の発明は、先
ず、互いに重畳可能な領域及び当該各領域の背景色を指
定する情報を入力すると共に、記録すべき所定パターン
の色として、当該パターンが印刷される位置に重畳され
る前記領域の1つの背景色を選択するような情報も入力
する。そして、そのパターンの印刷色を、先に入力した
選択情報に従い、その注目パターンの位置に重畳された
領域のどの背景色とするかを解析する。そして、この解
析結果に基づいて得られた色の注目パターンを、先に入
力された各々の領域を背景にして印刷出力する。
[Means for Solving the Problem] A printing apparatus of the present invention that solves this problem has the configuration shown below. That is, in a printing device that inputs printing information and prints a color image based on the printing information, a first input means that inputs information for specifying areas that can be superimposed on each other and the background color of each area. and a second step of inputting information for selecting, as the color of the predetermined pattern to be recorded, the background color of one of the areas superimposed on the position where the pattern is printed.
an input means, and an analysis means for analyzing and determining which background color of the area superimposed on the position of the pattern of interest should be used as the printing color of the pattern itself according to selection information input from the second input means. and an output means for printing out the color pattern of interest obtained by the analysis means with each region input by the first input means as a background. Alternatively, in a printing device that inputs printing information and prints a color image based on the printing information, a first input means that inputs a background color and color combination data of a pattern for the background color; a second input means for inputting an area that can be superimposed on each other and a background color of the area, and a printing color of a pattern to be printed obtained based on the printing information,
Said 1st. an analysis means for analyzing and obtaining information based on the information inputted from the second input means; and a printing color obtained by the analysis means for the pattern to be printed obtained based on the printing information; and output means for printing and outputting so as to be superimposed on each area having an individual background color inputted from the means. [Operation] In the configuration of the present invention, for example, the first invention first inputs information specifying areas that can be superimposed on each other and the background color of each area, and then inputs information specifying the color of the predetermined pattern to be recorded. Information such as selecting the background color of one of the areas to be superimposed on the position where the pattern is printed is also entered. Then, it is analyzed which background color of the area superimposed on the position of the pattern of interest should be used as the print color of the pattern, according to the selection information input earlier. Then, the color pattern of interest obtained based on this analysis result is printed out using each of the previously input regions as a background.

【実施例】【Example】

以下、添付図面に従って本発明に係る実施例を詳細に説
明する。 第1図は実施例における印刷装置のブロック構成図であ
る。 図中、100は印刷装置を出力して(るホストコンピュ
ータ等のデータ源である。101は本実施例における印
刷装置本体であり、以下に示すような構成要素を備える
。 102はデータ源100よりの印刷データの受信及びそ
の受信データを一時格納する入力バッファ、103は入
力データの演算・解析及び装置全体の制御を司るCPU
である。104はCPU 103の動作手順(第6図或
いは第13図のフローチャート)を記憶しているROM
、105はcpU103が演算等の処理中にワークエリ
アとなるRAMである。106〜108はイメージメモ
リであって、各々3原色(Y、M、C)の1つの色成分
のイメージを展開するためのものである。109は各色
毎の文字パターンを記憶しているパターンメモリ、11
0はイメージメモリ106〜108に展開された各色成
分のイメージデータなプリンタエンジン111へ出力す
るための創面を行なうプリンタインタフェースである。 プリンタエンジン111は例えばY、M、C各々の色成
分の画像を同一記録紙に重畳するように印刷するもので
あれば良(、実施例ではレーザビームプリンタとした。 第2図は矩形領域に対しての色指定を行うために、デー
タ源100より送られてくる情報のフォーマットを示し
ている。 図中、201は以降制御命令であることを示すESCコ
ード、202は本命令が矩形領域であることを示す識別
コードBX、203,205,207.209,211
はそれぞれパラメータの区切りを示すセパレータ、20
4は背景色(矩形内部)の色番号、206は矩形領域の
開始水平位置座標、208は開始垂直位置座標、210
は終了水平位置座標、212は終了垂直位置座標、21
3は命令の終りを示すデリミツタ−である。 第3図は上述した矩形領域の印刷色指定のデータを順次
受けて、CPU103がRAM105上に作成する管理
テーブル(図示の符号30)を示している。 図示の管理テーブル30において、符号301で示す“
登録順”は領域設定がされた順を示しており、番号が小
さいほど先に設定されていることを示している。符号3
02の“矩形開始位置”にはその矩形の左上点の座標位
置、符号303の“矩形終了位置”にはその右下点の座
標位置がそれぞれ(X、Y)形式のデータで格納される
。そして、符号304の“色”には、その矩形内の印字
色を特定するための色コードが格納される。 尚、管理テーブル30の欄301の“登録順”に“0”
が格納されている場合、それ以降には有効なデータが存
在しないことを示している。従つて、図示の場合には、
現在3つの矩形領域に対する背景色の指定がなされてい
ることになる。 第4図はデータ源100より送られてくる、抜き文字を
行なう場合の命令の一例を示した模式図である。 図示において、401は以降制御命令であることを示す
ESCコード、402は本命令が抜き文字指定命令であ
ることを示す識別コードBK、403はパラメータの区
切りを示すセパレータ、404は何段階の背景まで抜く
かを指定する階層番号、405は命令の終了を示すデリ
ミツタ−である。 第5図は第3図のテーブルに基づく実際の出力イメージ
例を示している。 領域501は最も基本的な部分で、実際の紙面に相当し
、テーブル30によれば色コード“O”のデータで埋め
られている。領域502は登録順2番により指定された
領域であり、背景色は色コード”8”である。そして、
領域503は登録順3番により指定された領域であり背
景色は色コード“4”である。504は領域503に抜
き文字を出力した例を示している。文字の色は、第4図
における符号404で示される階層の欄に格納された値
に依存する。すなわち、この値が“1”である場合には
1つ前の背景色である領域502の背景色で、“2”で
ある場合には2つ前の領域501の背景色でその文字が
印字される。 第6図は本実施例の処理の流れを示すフローチャートで
ある。以下、その処理内容を説明するが、データ源10
0よりデータが送られてきたとき、実施例ではCPU1
03に発生する割り込み信号が発生するものとする。そ
して、CPUIO3はこの割り込み信号を受けることで
起動する割り込みルーチン(図示せず)で大力バッファ
102にその受信データを取り込む処理を行うものとす
る。 さて、処理が開始されると、ステップS1からステップ
S2に進んで入力バッファ102よりデータを入力し、
次のステップS3でその入力データが制御命令か否かを
判断する。制御命令であると判断した場合はステップS
5に進み、それが矩形領域に対する背景色設定に係る制
御命令であるかを判断する。この判断で、“YES”で
あると判断した場合には、ステップS6に進んで、背景
色設定に係るテーブル30を作成する処理を行うと共に
、その設定矩形領域に対応するイメージメモリ106〜
108内の領域を設定した色になるデータでペイントす
る。例えば、第3図の管理テーブル30において、今、
“登録順”として“3”のテーブルを作成した場合には
、イメージメモリ106〜108それぞれの座標(60
,60)及び座標(1350,100)で特定される矩
形領域内を所定のデータで埋めることで、色コード“4
”になるようにする。 また、ステップS5の判断が“No″の場合、すなわち
、入力した制御命令が矩形領域に対する背景色設定でな
いと判断した場合には、ステップS7に進み、それが抜
き文字指定に係る命令か否かを判断する。抜き文字指定
であると判断した場合、ステップS8に進み、現在の文
字の展開位置を示すポインタの座標位置と管理テーブル
30とを比較することで、何色の文字になるかを解析し
、その結果得られた文字色をRAM105の所定アドレ
ス位置に格納する。但し、抜き文字指定が解除された場
合に備えて、直前までデータ源100より指定されてい
た文字の色も、併せてRAM105上の所定アドレス位
置に退避しておく。 抜き文字命令でない場合、ステップS9において、改頁
命令であるかどうかを判断する。改頁命令でない、つま
り、上述した制御命令以外の命令であると判断した場合
(例えば、文字色指定命令や書式に係る命令等) ステ
ップSIOにおいて、その命令を解析し対応する処理を
実行する。 改頁命令であると判断した場合、ステップS12に進み
、それまでにイメージメモリ106〜108に展開され
たイメージをプリンタエンジン111に出力することで
カラー印刷を実行させる。 一方、入力バッファ102より入力したデータが制御命
令ではない、つまり、文字コード等であると判断した場
合には、ステップS4に進む。ここでは、そのとき設定
されている印字色になるような文字パターンをパターン
メモリ109より読み出し、イメージメモリ106〜1
08に展開する。勿論、このときに展開位置は、その時
点における文字パターン展開位置を示すポインタに従っ
て展開する。但し、1つの文字パターン展開が終了する
と、次の文字パターンの展開に備えて、そのポインタの
値を更新する。 こうして、順次文字パターンをそのときに指定された印
字色になるようにイメージメモリに展開していくが、こ
の処理はステップSllで次のデータが無いと判断され
るまで、或いはイメージメモリ106〜108のいずれ
かが一杯になったと判断されるまで繰り返される。 そして、次のデータがないと判断した場合には、ステッ
プS12に進んで印刷を行う。 尚、実施例では、階層指定が実際の階層を越えた場合の
処理が無いが、それは予め設定しておけばよい。また、
抜き文字終了指定は特に説明をしていないが、解除命令
により元の文字色に戻るのは当然である。特に白抜き文
字においては、該当する文字パターンをイメージメモリ
より消すことで可能である。 以上説明した様に本実施例によれば、文字指定に階層値
を設定することにより、自動的に文字色が決定できるの
で、データ量及び作業量ともに減することが可能となる
。 く第2の実施例の説明〉 次に第2の実施例を説明する。 尚、装置構成については、第1の実施例と同様であるの
でその詳述はしない。本第2の実施例における基本的な
動作概念は、最初に背景色とその背景色に重畳して記録
する文字列の色の組み合せを設定しておくものである。 つまり、特定の矩形領域に対しての色を設定した後は、
その矩形領域に展開される文字の色は最初に設定した相
関関係に基づいて自動的に決定されるというものである
。換言すれば、文字の色はその文字の展開する背景色に
依存する。 第7図に本第2の実施例における背景色と文字色との関
係設定命令(文字色設定命令)に係るデータフォーマッ
トを示す。このデータがデータ源100より送られて(
る。 図示において、701は以降制御命令であることを示す
ESCコード、702は背景色と文字色の設定命令であ
ることを示す識別コードBXである。704,706,
708はそれぞれデータの区切りを示すためのセパレー
タである。そして、703は1つの背景色を示し、70
5はその背景色(符号703)に対する文字の色を示し
ている。同様に、707の背景色に対しては、符号70
9で示す色の文字が設定しである。簡単に説明すると、
符号703で特定しである背景色に対する文字の色は自
動的に符号705で特定した色になることを示している
。尚、710は上述した背景色と印字文字との関係設定
に係るデータの終りを示すデリミツタである。 本第2の実施例においては、こうして受信した文字色設
定命令における背景色と文字色との関係テーブル(図示
せず)をRAM105の所定アドレスに作成させる。 第8図は1ページ(記録紙全体)の基本背景色を設定す
る命令を示すフォーマットである。 図示の如(、先ずESCコード801に続いて、基本背
景色を設定するための識別コード802、実際の背景色
803、そして、最後にデリミツタ804がくる。基本
背景色は原則として記録紙全体に対するものであるので
、矩形領域を特定する座標データは不要となる。 第9図は1ページ内の特定領域の背景色を設定する命令
フォーマットし示すものである。 先ず、制御命令であることを示すESCコード901の
後に、枠指定であること示すBXコード902が(る。 この後、セパレータ904等で区切ることで、その矩形
領域の左上点の座標と右下点の座標がきて、そして、そ
の矩形領域に対する色指定コードが(る。最後にデリミ
ツタコード912が来るのは先の説明と同様である。 CPUは、以上のような制御命令が(ると、第10図に
示すような管理テーブル31を順次追加作成する。 図示において、印字類として“1”とあるのは、第8図
に示す命令で設定された文字色及び基本背景色との関係
を示したものである。但し、座標として(0,O)、(
2700,1880)とあるのは、その記録紙(この場
合はA4サイズ)に対しての記録可能範囲を示している
。図示では、この有効範囲に対する背景色として色コー
ド”0”、そしてその背景色に対する文字の色として色
コード“8”の関係があることを示している。 また、“印字類”として“2”とあるのは、第9図に示
すような命令を受けたときに作成される。図示では、座
標(100,100)、(2600,300)で特定さ
れる矩形領域内の波形色を色コード″2”、及びそこに
記録される文字の色として色コード“0”が設定される
ことを示している。 繰り返すが、背景色とその背景色に記録される文字の色
の関係は第7図に示す制御命令データに基づく。 尚、第1の実施例と同様、“印字類”に“O”がある場
合には、それ以降にはデータが存在しないことを示す。 第11図は実際の出力例を、第12図はその出力結果を
得るためのデータ源100よりのデータの流れを示して
いる。尚、第12図におけるここのデータの意味は第7
図〜第9図で説明した通りである。但し、“SO議事”
における”SO”は漢字出力を行うための命令である。 図示において、1100は記録紙の記録可能範囲を示し
、ここには第8図に示す制御命令で設定された基本背景
色が記録される。1102は枠指定命令により指定され
た矩形領域であり、この領域内の背景色はその指定命令
中に含まれる色指定コードに従う。領域1102内の文
字列1103はその範囲内における背景色に対応する色
が自動的に選択される。同様に、文字列1104は基本
背景色上に描かれているので、その背景色に対応する文
字の色が自動的に選択される。 本第2の実施例における動作処理手順を第13図に基づ
いて説明する。 処理が開始されると、ステップS21からステップS2
2に進んで大力バッファ102よりデータを入力し、次
のステップS23でその入力データが制御命令か否かを
判断する。制御命令であると判断した場合には、ステッ
プS26に進み、それが文字色設定命令(第7図参照)
であるかを判断する。文字色設定命令であると判断した
場合には、ステップS27に進み、背景色とその背景色
に対する文字の色との関係テーブルをRAMIO3内に
作成する。 また、文字色設定命令ではなく、枠指定命令であると判
断した場合には、ステップ328からステップS29に
進み、第10図に示すようなページメモリ構成を特定す
る管理テーブル31を作成する。 また、基本背景色設定命令であると判断した場合には、
ステップS30からステップS31に進み、“印字順”
として“1”の管理テーブル31を作成する。 更には、改頁命令であると判断した場合いは、ステップ
S35に進み、その時点でイメージメモリ106〜10
8に展開されている画像に従って印刷を行う。尚、それ
以外の制御命令であると判断した場合には、その命令を
解析し、その結果に応じた処理を実行する(ステップ5
33)。 一方、大力バッファ102より入力したデータが制御命
令ではない、つまり、文字コード等であると判断した場
合には、ステップS24に進む。 ここでは、その文字コードに対応する文字パターンの展
開位置と、それまでに作成された管理テーブル31とを
比較することで、その文字の印字色を決定する。そして
、次のステップS25で、その色に対応する文字パター
ンをイメージメモリ106〜108に展開する。勿論、
このときに展開位置は、その時点における文字パターン
展開位置を示すポインタに従って展開する。但し、1つ
の文字パターン展開が終了すると、次の文字パターンの
展開に備えて、そのポインタの値を更新する。 こうして、順位文字パターンをそのときの管理テーブル
31に基づく色に従ってイメージメモリ106〜108
に展開していくが、この処理はステップS25で次のデ
ータが無いと判断されるまで、或いはイメージメモリ1
06〜108のいずれかが一杯になったと判断されるま
で繰り返される。そして、次のデータがないと判断した
場合には、ステップS35に進んで印刷を行う。 本第2の実施例においても、物理的な記録紙面に対して
矩形領域を設定したが、これを論理的なページとしてと
らえ、1物理的ページに対して複数の論理ページを定義
し、それぞれに背景色を持たせても良いことは勿論であ
る。 以上説明したように本第2の実施例によれば、予め背景
色と文字色との関係を登録しておくことにより、文字色
の指定の命令な省(ことが可能となる。特に、最初の設
定において、背景色と文字色とが異なるように設定しお
きさえすれば、成る背景色の場所に同じ色の文字を印字
してしまって判読できないといったことが完全になくな
る。 【発明の効果] 以上説明したように本第1.第2の発明によれば、背景
色とそこに記録される文字の色とを効率良(指定するこ
とが可能となる。
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. FIG. 1 is a block diagram of a printing apparatus in an embodiment. In the figure, 100 is a data source such as a host computer that outputs the printing device. 101 is the main body of the printing device in this embodiment, which includes the following components. 102 is a data source from the data source 100. 103 is an input buffer for receiving print data and temporarily storing the received data, and 103 is a CPU for calculating and analyzing input data and controlling the entire device.
It is. 104 is a ROM that stores the operating procedure of the CPU 103 (flowchart in FIG. 6 or FIG. 13).
, 105 is a RAM that serves as a work area for the CPU 103 during processing such as arithmetic operations. Reference numerals 106 to 108 are image memories, each for developing an image of one color component of the three primary colors (Y, M, C). 109 is a pattern memory that stores character patterns for each color; 11
0 is a printer interface for outputting the image data of each color component developed in the image memories 106 to 108 to the printer engine 111. The printer engine 111 may be one that prints images of Y, M, and C color components so as to be superimposed on the same recording paper (in this embodiment, a laser beam printer is used. The figure shows the format of the information sent from the data source 100 in order to specify the color for the area. Identification code BX indicating that there is, 203, 205, 207. 209, 211
are separators each indicating a parameter delimiter, 20
4 is the color number of the background color (inside the rectangle), 206 is the starting horizontal position coordinate of the rectangular area, 208 is the starting vertical position coordinate, 210
is the end horizontal position coordinate, 212 is the end vertical position coordinate, 21
3 is a delimiter indicating the end of the instruction. FIG. 3 shows a management table (indicated by reference numeral 30 in the figure) created by the CPU 103 on the RAM 105 in response to sequentially receiving data specifying print colors for the rectangular area described above. In the illustrated management table 30, “
"Registration order" indicates the order in which the area was set, and the smaller the number, the earlier it is set. Code 3
The coordinate position of the upper left point of the rectangle is stored in the "rectangle start position" 02, and the coordinate position of the lower right point is stored in the "rectangle end position" 303 as (X, Y) format data. A color code for specifying the print color within the rectangle is stored in "color" 304. In addition, “0” is set in “Registration order” in column 301 of management table 30.
If is stored, it indicates that there is no valid data after that point. Therefore, in the case shown,
This means that the background colors for three rectangular areas have now been specified. FIG. 4 is a schematic diagram illustrating an example of a command sent from the data source 100 for cutting out characters. In the illustration, 401 is an ESC code indicating that this command is a control command, 402 is an identification code BK indicating that this command is an extraction character specification command, 403 is a separator indicating a parameter division, and 404 is a background level A layer number 405 designating whether to remove the command is a delimiter indicating the end of the command. FIG. 5 shows an example of an actual output image based on the table of FIG. 3. Area 501 is the most basic part and corresponds to the actual paper surface, and according to table 30, it is filled with data of color code "O". The area 502 is the area specified by the second registration order, and the background color is the color code "8". and,
Area 503 is the area specified by registration number 3, and the background color is color code "4". 504 shows an example in which cutout characters are output in the area 503. The color of the characters depends on the values stored in the hierarchy column indicated by reference numeral 404 in FIG. In other words, if this value is "1", the character is printed with the background color of the area 502, which is the previous background color, and if it is "2", the character is printed with the background color of the area 501, which is the two previous background color. be done. FIG. 6 is a flowchart showing the flow of processing in this embodiment. The details of the processing will be explained below.
When data is sent from CPU 1 in the embodiment,
It is assumed that an interrupt signal occurs at 03. It is assumed that the CPUIO 3 performs a process of loading the received data into the power buffer 102 using an interrupt routine (not shown) activated by receiving this interrupt signal. Now, when the process starts, the process advances from step S1 to step S2, where data is input from the input buffer 102, and
In the next step S3, it is determined whether the input data is a control command. If it is determined that it is a control command, step S
Proceeding to step 5, it is determined whether the command is a control command related to background color setting for a rectangular area. If this judgment is "YES", the process advances to step S6 to create a table 30 related to the background color setting, and also perform processing to create a table 30 related to the setting rectangular area.
The area within 108 is painted with data that becomes the set color. For example, in the management table 30 of FIG.
If you create a table with "3" as the "registration order", the coordinates of each of image memories 106 to 108 (60
, 60) and coordinates (1350, 100) with specified data, the color code "4" is set.
”. Furthermore, if the judgment in step S5 is “No”, that is, if it is judged that the input control command does not set the background color for the rectangular area, the process proceeds to step S7, and if it is It is determined whether the command is related to designation. If it is determined that the command is an extraction character designation, the process proceeds to step S8 and compares the coordinate position of the pointer indicating the current character expansion position with the management table 30. The character color obtained as a result is stored in a predetermined address location of the RAM 105.However, in case the extraction character designation is canceled, the character color that has been specified by the data source 100 until just before is stored. The color of the character entered is also saved at a predetermined address location on the RAM 105. If it is not a character extraction command, it is determined in step S9 whether or not it is a page break command. If it is determined that it is a command other than a control command (for example, a text color specification command or a command related to formatting, etc.), the command is analyzed in step SIO and the corresponding processing is executed. If it is determined that it is a page break command , the process advances to step S12, and the images developed in the image memories 106 to 108 are output to the printer engine 111 to execute color printing.On the other hand, if the data input from the input buffer 102 is not a control command, that is, , a character code, etc., the process proceeds to step S4.Here, a character pattern that results in the print color set at that time is read from the pattern memory 109, and the character pattern is read from the image memory 106 to 1.
Expanded on 08. Of course, at this time, the development position is developed according to the pointer indicating the character pattern development position at that time. However, when the expansion of one character pattern is completed, the value of the pointer is updated in preparation for the expansion of the next character pattern. In this way, the character pattern is sequentially developed into the image memory so that the print color specified at that time is obtained. This is repeated until one of them is determined to be full. If it is determined that there is no next data, the process advances to step S12 and printing is performed. In the embodiment, there is no processing when the hierarchy specification exceeds the actual hierarchy, but this can be set in advance. Also,
Although there is no particular explanation for specifying the end of character extraction, it is natural that the character color returns to the original color when a cancellation command is issued. Especially for white characters, this is possible by erasing the corresponding character pattern from the image memory. As explained above, according to this embodiment, the text color can be automatically determined by setting a hierarchy value in the text specification, making it possible to reduce both the amount of data and the amount of work. Description of Second Embodiment> Next, a second embodiment will be described. Note that the device configuration is the same as that of the first embodiment, so a detailed description thereof will not be given. The basic operating concept of the second embodiment is to first set a combination of a background color and a color of a character string to be recorded superimposed on the background color. In other words, after setting the color for a specific rectangular area,
The color of the characters developed in the rectangular area is automatically determined based on the initially set correlation. In other words, the color of a character depends on the background color on which the character develops. FIG. 7 shows a data format related to a command for setting a relationship between a background color and a character color (character color setting command) in the second embodiment. This data is sent from the data source 100 (
Ru. In the figure, 701 is an ESC code indicating that this is a control command, and 702 is an identification code BX indicating that this is a background color and text color setting command. 704,706,
708 is a separator for indicating the division of data. And 703 indicates one background color, 70
5 indicates the color of the characters relative to the background color (code 703). Similarly, for a background color of 707, the code 70
The characters in the color indicated by 9 are the settings. To explain briefly,
This indicates that the color of the characters for the background color specified by reference numeral 703 automatically becomes the color specified by reference numeral 705. Note that 710 is a delimiter indicating the end of the data related to the above-mentioned relationship setting between the background color and printed characters. In the second embodiment, a relationship table (not shown) between the background color and the font color in the received font color setting command is created at a predetermined address in the RAM 105. FIG. 8 is a format showing a command for setting the basic background color of one page (the entire recording paper). As shown in the figure (first, an ESC code 801 is followed by an identification code 802 for setting the basic background color, an actual background color 803, and finally a delimiter 804. In principle, the basic background color is for the entire recording paper. Therefore, coordinate data for specifying a rectangular area is not required. Figure 9 shows the format of an instruction to set the background color of a specific area within one page. First, indicate that it is a control instruction. After the ESC code 901, there is a BX code 902 indicating that it is a frame specification. After this, by separating it with a separator 904 etc., the coordinates of the upper left point and the lower right point of the rectangular area come, and then The color specification code for the rectangular area is ().The delimiter code 912 comes at the end, as in the previous explanation. The table 31 is added and created one after another. In the illustration, "1" as the printing type indicates the relationship between the character color and the basic background color set by the command shown in FIG. 8. However, As the coordinates (0, O), (
2700, 1880) indicates the printable range for the recording paper (A4 size in this case). The illustration shows that there is a relationship between the color code "0" as the background color for this effective range and the color code "8" as the character color for the background color. Further, "2" as "print type" is created when a command as shown in FIG. 9 is received. In the illustration, the color code "2" is set as the waveform color in the rectangular area specified by the coordinates (100, 100) and (2600, 300), and the color code "0" is set as the color of the characters recorded there. Which indicates that. To repeat, the relationship between the background color and the color of the characters recorded on the background color is based on the control command data shown in FIG. Note that, similarly to the first embodiment, if "O" is included in "print type", it indicates that there is no data after that. FIG. 11 shows an actual output example, and FIG. 12 shows the flow of data from the data source 100 to obtain the output result. The meaning of the data here in Figure 12 is the 7th
This is as explained in FIGS. However, “SO agenda”
"SO" in is a command for outputting kanji characters. In the figure, 1100 indicates the recordable range of the recording paper, in which the basic background color set by the control command shown in FIG. 8 is recorded. 1102 is a rectangular area designated by a frame designation command, and the background color within this region follows the color designation code included in the designation command. For the character string 1103 within the area 1102, a color corresponding to the background color within that range is automatically selected. Similarly, since the character string 1104 is drawn on the basic background color, the character color corresponding to the background color is automatically selected. The operation processing procedure in the second embodiment will be explained based on FIG. 13. When the process starts, steps S21 to S2
2, data is input from the power buffer 102, and in the next step S23 it is determined whether the input data is a control command. If it is determined that it is a control command, the process proceeds to step S26, where it is determined that it is a font color setting command (see Figure 7).
Determine whether If it is determined that it is a text color setting command, the process advances to step S27, and a relationship table between background colors and text colors relative to the background colors is created in the RAMIO3. If it is determined that the command is not a character color setting command but a frame designation command, the process advances from step 328 to step S29, and a management table 31 for specifying the page memory configuration as shown in FIG. 10 is created. Also, if it is determined that it is a basic background color setting command,
Proceeding from step S30 to step S31, "Print order"
A management table 31 of "1" is created as follows. Furthermore, if it is determined that it is a page break command, the process advances to step S35, and at that point the image memories 106 to 10 are
Printing is performed according to the image developed in 8. If it is determined that the command is another control command, the command is analyzed and processing is executed according to the result (step 5).
33). On the other hand, if it is determined that the data input from the power buffer 102 is not a control command, that is, it is a character code or the like, the process advances to step S24. Here, the printing color of the character is determined by comparing the development position of the character pattern corresponding to the character code with the management table 31 created up to that point. Then, in the next step S25, a character pattern corresponding to that color is developed in the image memories 106-108. Of course,
At this time, the development position is developed according to the pointer indicating the character pattern development position at that time. However, when the expansion of one character pattern is completed, the value of the pointer is updated in preparation for the expansion of the next character pattern. In this way, the ranked character pattern is stored in the image memories 106 to 108 according to the color based on the management table 31 at that time.
However, this process continues until it is determined in step S25 that there is no next data, or the image memory 1
This process is repeated until any one of 06 to 108 is determined to be full. If it is determined that there is no next data, the process advances to step S35 and printing is performed. In the second embodiment, a rectangular area is also set on the physical recording paper surface, but this is treated as a logical page, and multiple logical pages are defined for one physical page, and each Of course, it is also possible to have a background color. As explained above, according to the second embodiment, by registering the relationship between the background color and the font color in advance, it becomes possible to omit the instruction to specify the font color. As long as the background color and text color are set to be different, it is completely possible to prevent characters of the same color from being printed on different background colors and become illegible.[Effect of the invention] ] As explained above, according to the first and second aspects of the present invention, it becomes possible to efficiently (specify) the background color and the color of characters recorded therein.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は実施例における印、刷装置のブロック構成図、 第2図は第1の実施例における矩形領域指定命令のデー
タフォーマットを示す図、 第3図は第1の実施例において作成される管理テーブル
を示す図、 第4図は第1の実施例における抜き文字指定命令のデー
タフォーマットを示す図、 第5図は実際のイメージ出力の一例を示した図、 第6図は第1の実施例のおける処理内容を示すフローチ
ャート、 第7図は第2の実施例における文字色指定命令のデータ
フォーマットを示す図、 第8図は第2の実施例における基本背景色指定命令のデ
ータフォーマットを示す図、 第9図は第2の実施例における枠指定命令のデータフォ
ーマットを示す図、 第10図は第2の実施例において作成される管理テーブ
ルを示す図、 第11図は第2の実施例におけるイメージ出力の一例を
示した図、 第12図は第2の実施例におけるデータ送信内容の一例
を示す図、 第13図は第2の実施例のおける処理内容を示すフロー
チャートである。 図中、30及び31・・・管理テーブル、100・・・
データ源、101・・・印刷装置本体、102・・・入
力バッファ、103・・・CPU1104・・・ROM
、105・・・RAM% 106〜108・・・イメー
ジメモリ、109・・・パターンメモリ、110・・・
プリンタインタフェース、111・・・プリンタエンジ
ンである。 第11図 第12図
FIG. 1 is a block configuration diagram of the printing device in the embodiment, FIG. 2 is a diagram showing the data format of the rectangular area designation command in the first embodiment, and FIG. 3 is created in the first embodiment. FIG. 4 is a diagram showing the data format of the extraction character designation command in the first embodiment. FIG. 5 is a diagram showing an example of actual image output. FIG. 6 is a diagram showing the first embodiment. Flowchart showing the processing contents in the example. FIG. 7 is a diagram showing the data format of the text color designation command in the second embodiment. FIG. 8 is a diagram showing the data format of the basic background color designation command in the second embodiment. Figure 9 is a diagram showing the data format of a frame designation command in the second embodiment, Figure 10 is a diagram showing a management table created in the second embodiment, and Figure 11 is a diagram showing the data format of the frame designation command in the second embodiment. FIG. 12 is a diagram showing an example of data transmission contents in the second embodiment. FIG. 13 is a flowchart showing processing contents in the second embodiment. In the figure, 30 and 31... management table, 100...
Data source, 101...printing device main body, 102...input buffer, 103...CPU 1104...ROM
, 105... RAM% 106-108... Image memory, 109... Pattern memory, 110...
Printer interface, 111: Printer engine. Figure 11 Figure 12

Claims (2)

【特許請求の範囲】[Claims] (1)印刷情報を入力し、当該印刷情報に基づくカラー
画像を印刷出力する印刷装置において、互いに重畳可能
な領域及び当該各領域の背景色を指定するための情報を
入力する第1の入力手段と、 記録すべき所定パターンの色として、当該パターンが印
刷される位置に重畳される前記領域の1つの背景色を選
択するような情報を入力する第2の入力手段と、 前記パターン自体の印刷色として、前記第2の入力手段
より入力した選択情報に従つて当該注目パターンの位置
に重畳された前記領域のどの背景色とするかを解析して
求める解析手段と、 該解析手段で得られた色の注目パターンを前記第1の入
力手段で入力された各々の領域を背景にして印刷出力す
る出力手段とを備えることを特徴とする印刷装置。
(1) In a printing device that inputs printing information and prints out a color image based on the printing information, a first input means that inputs information for specifying areas that can be overlapped with each other and the background color of each area. a second input means for inputting information such as selecting a background color of one of the areas superimposed on the position where the pattern is printed as the color of the predetermined pattern to be recorded; and printing of the pattern itself. an analysis means for analyzing and determining which background color of the area superimposed on the position of the pattern of interest is to be used as the color according to selection information input from the second input means; and output means for printing out a pattern of interest in a different color with each region inputted by the first input means as a background.
(2)印刷情報を入力し、当該印刷情報に基づくカラー
画像を印刷出力する印刷装置において、背景色と当該背
景色に対してのパターンの色の組み合せデータを入力す
る第1の入力手段と、互いに重畳可能な領域及び当該領
域の背景色を入力する第2の入力手段と、 前記印刷情報に基づいて得られた印刷対象のパターンの
印刷色を、前記第1、第2の入力手段より入力された情
報に基づいて解析し求める解析手段と、 前記印刷情報に基づいて得られた印刷対象のパターンを
該解析手段により得られた印刷色とし、前記第2の入力
手段より入力した個々の背景色を持つ各領域に重畳する
ように印刷出力する出力手段とを備えることを特徴とす
る印刷装置。
(2) in a printing device that inputs printing information and prints out a color image based on the printing information, a first input means that inputs a background color and color combination data of a pattern for the background color; a second input means for inputting an area that can be superimposed on each other and a background color of the area; and inputting a printing color of a pattern to be printed obtained based on the printing information from the first and second input means. an analysis means that analyzes and obtains the print color based on the information obtained by the analysis; and an analysis means that uses the pattern of the printing object obtained based on the print information as the print color obtained by the analysis means, and uses the individual background inputted from the second input means as the print color obtained by the analysis means. 1. A printing device comprising: output means for printing and outputting in a manner superimposed on each area having a color.
JP2158695A 1990-06-19 1990-06-19 Output device Expired - Fee Related JP2771680B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2158695A JP2771680B2 (en) 1990-06-19 1990-06-19 Output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2158695A JP2771680B2 (en) 1990-06-19 1990-06-19 Output device

Publications (2)

Publication Number Publication Date
JPH0451668A true JPH0451668A (en) 1992-02-20
JP2771680B2 JP2771680B2 (en) 1998-07-02

Family

ID=15677340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2158695A Expired - Fee Related JP2771680B2 (en) 1990-06-19 1990-06-19 Output device

Country Status (1)

Country Link
JP (1) JP2771680B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6809741B1 (en) 1999-06-09 2004-10-26 International Business Machines Corporation Automatic color contrast adjuster

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5997165A (en) * 1982-11-26 1984-06-04 Hitachi Ltd Control device for color signal of color printer
JPS61147669A (en) * 1984-12-21 1986-07-05 Toray Ind Inc Color signal control system of color printer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5997165A (en) * 1982-11-26 1984-06-04 Hitachi Ltd Control device for color signal of color printer
JPS61147669A (en) * 1984-12-21 1986-07-05 Toray Ind Inc Color signal control system of color printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6809741B1 (en) 1999-06-09 2004-10-26 International Business Machines Corporation Automatic color contrast adjuster

Also Published As

Publication number Publication date
JP2771680B2 (en) 1998-07-02

Similar Documents

Publication Publication Date Title
JPH0883337A (en) Trap method of graphic object in desktop publication program
JP2898889B2 (en) Plate making process
JP2000083161A (en) Image processing unit, its method and image processing system
JPH11268371A (en) Image processor, processing method, and memory medium
JPH08160934A (en) Character information processor
JPS58208865A (en) Document producing device
JP2845380B2 (en) Printing apparatus and control method thereof
JPH0451668A (en) Printing device
JP3636891B2 (en) Color image output method
JP3118310B2 (en) Print processing method of page printer
JPH09267518A (en) Color printer
JPH0911552A (en) Page printer
JPH0939312A (en) Printer, printing method and printing mechanism
JPH03147017A (en) Image processor
JPH086542A (en) Character font and method and device for pattern expansion of same
JPH1051653A (en) Information processing unit and its method
JPH08335249A (en) Document reader
JPH1075352A (en) Print control method and its device, and print system including the device
JPH0444869A (en) Multicolor printing device
JPH10119384A (en) Image forming apparatus
JPH09174943A (en) Method for designating color attribute in color printer
JPH05212914A (en) Image processor
JPH08300766A (en) Image forming apparatus and control thereof
JPS63252755A (en) Character output apparatus
JPH0624106A (en) Drawing data re-output method and printer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees