JPH09254445A - Printing controlling apparatus, printing system, printing controlling method, and memory - Google Patents

Printing controlling apparatus, printing system, printing controlling method, and memory

Info

Publication number
JPH09254445A
JPH09254445A JP8062830A JP6283096A JPH09254445A JP H09254445 A JPH09254445 A JP H09254445A JP 8062830 A JP8062830 A JP 8062830A JP 6283096 A JP6283096 A JP 6283096A JP H09254445 A JPH09254445 A JP H09254445A
Authority
JP
Japan
Prior art keywords
pattern
data
color
command
printing
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.)
Pending
Application number
JP8062830A
Other languages
Japanese (ja)
Inventor
Yasuhiro Hino
康弘 日野
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 JP8062830A priority Critical patent/JPH09254445A/en
Publication of JPH09254445A publication Critical patent/JPH09254445A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To allow drawing a pattern with three or more colors efficiently, with easy optional two-tone color designation and drawing by providing a means for developing an image based on a many-value pattern generated by a generating means and a letter or graphic drawing command. SOLUTION: At a command executing portion 1104, a many-value image is developed for a page memory 1105 based on a many-value pattern set to be plain and a letter-graphic drawing command. After finishing the development, data analysis processing is repeated. In the case the judgment is made to be a paper discharging command, an image transmission is outputted after converting the content of the page memory 1105 into a video signal for a printer engine portion 1400 at an output controlling portion 1300. At the printer engine portion 1400, a permanent visual, image of the received video signal is formed and printed on a recording paper. When the printed paper is discharged, the printing controlling processing for one page is finished.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、イメージを印刷可
能な印刷制御装置、印刷システム、及び、印刷制御方法
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print control device capable of printing an image, a print system, and a print control method.

【0002】[0002]

【従来の技術】ページプリンタなどのPDL(Page Disc
ription Language)を搭載する印刷装置においては、図
形や文字を描画する際に、線や塗りのパターンを指定す
ることができる。例えば、円を描画する前にハート型の
パターンを塗り潰しパターンに指定しておくことによっ
て、ハート型のパターンで塗りつぶされた円が描画され
る。このような方法によって、文字や図形に様々な模様
を容易につけることが可能である。
2. Description of the Related Art PDL (Page Disc
In a printing device equipped with a ription language), a line or fill pattern can be specified when drawing a figure or a character. For example, by designating a heart-shaped pattern as a filling pattern before drawing a circle, a circle filled with the heart-shaped pattern is drawn. By such a method, it is possible to easily attach various patterns to characters and figures.

【0003】従来の印刷装置においては、パターンには
通常1ピクセルを1ビットで表した(以下、「二値」と
記述)ものを使用しており、パターンに色やグレイスケ
ールをつけて描画する場合には、色やグレイスケールを
二値化したディザとパターンの論理積をとって描画して
いた。
In a conventional printing apparatus, a pattern usually uses one pixel represented by one bit (hereinafter referred to as "binary"), and the pattern is drawn with color or gray scale. In some cases, the colors and gray scales were binarized and the patterns were ANDed for drawing.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来例では、パターンのONビットにしか色をつけること
ができないため、パターンには一色しか色を指定するこ
とはできない。近年の高度化するアプリケーションソフ
トウエアでは、二色、あるいはそれ以上の色を使用した
パターンを使うものが増えており、一色しか指定のでき
ないパターンでは画面に忠実な印刷 を行なうことは難
しくなってきている。
However, in the above-mentioned conventional example, since only the ON bit of the pattern can be colored, only one color can be designated for the pattern. In recent years, more and more sophisticated application software uses patterns that use two or more colors, and it becomes difficult to print faithfully on the screen with patterns that can specify only one color. There is.

【0005】本発明は、上記従来例に鑑みて成されたも
のであり、任意のツートーンカラーのパターンを容易に
指定・描画することができ、また、三色以上のパターン
についても効率的な描画を可能とする印刷装置を提供す
ることを目的とする。
The present invention has been made in view of the above-mentioned conventional example, and it is possible to easily specify and draw an arbitrary two-tone color pattern, and to efficiently draw a pattern of three or more colors. An object of the present invention is to provide a printing device that enables the above.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するため
に本発明の印刷制御装置は、外部装置からの印刷データ
に基づいて、記録媒体への記録を制御する印刷制御装置
において、二値のパターンデータ、前景色、背景色を指
定するコマンドを受信する受信手段と、前記受信手段に
より受信した二値のパターンデータ、前景色、背景色を
指定するコマンドに基づいて多値パターンを生成する生
成手段と、前記生成手段により生成された多値パターン
と文字または図形描画コマンドに基づいてイメージを展
開する展開手段とを有することを特徴とする。
In order to solve the above problems, a print control apparatus according to the present invention is a print control apparatus for controlling recording on a recording medium based on print data from an external device. Receiving means for receiving a command for designating pattern data, foreground color and background color, and generation for generating a multi-valued pattern based on the binary pattern data, command for designating foreground color, background color received by the receiving means. It is characterized in that it has a means and a developing means for developing an image based on the multi-valued pattern generated by the generating means and a character or graphic drawing command.

【0007】また、本発明の印刷制御装置は、外部装置
からの印刷データに基づいて、記録媒体への記録を制御
する印刷制御装置において、インデックス形式のパター
ンデータを受信する受信手段と、インデックス番号に対
応した色データを複数記憶するカラーテーブルと、パタ
ーンを構成するインデックス番号とカラーテーブルに登
録されている色データとに基づいて多値パターンデータ
を生成する生成手段と、前記生成手段により生成された
多値パターンと文字または図形描画コマンドとに基づい
てイメージを展開する展開手段とを有する。
Further, the print control device of the present invention is a print control device for controlling recording on a recording medium based on print data from an external device, and a receiving means for receiving pattern data in an index format and an index number. A color table for storing a plurality of color data corresponding to the color data, a generation unit for generating multi-valued pattern data based on the index number forming the pattern and the color data registered in the color table; And a developing means for developing an image based on the multi-valued pattern and a character or graphic drawing command.

【0008】また、印刷システムは、アプリケーション
からの描画情報を印刷データに変換し、前記印刷制御装
置に転送する情報処理装置であって、二値のパターンデ
ータ、前景色、背景色を指定するコマンドを前記印刷制
御装置に送信する送信手段を有する情報処理装置と、請
求項1ないし3記載の印刷制御装置とを具備することを
特徴とする。
The printing system is an information processing device that converts drawing information from an application into print data and transfers the print data to the print control device, which is a command for specifying binary pattern data, foreground color, and background color. An information processing apparatus having a transmitting unit for transmitting the information to the print control apparatus, and the print control apparatus according to any one of claims 1 to 3.

【0009】また、印刷システムは、アプリケーション
からの描画情報を印刷データに変換し、前記印刷制御装
置に転送する情報処理装置であって、インデックス形式
のパターンデータを前記印刷制御装置に送信する送信手
段を有する情報処理装置と、請求項4ないし5記載の印
刷制御装置とを具備することを特徴とする印刷システ
ム。
The printing system is an information processing device for converting drawing information from an application into print data and transferring the print data to the print control device, and transmitting means for transmitting pattern data in the index format to the print control device. A printing system, comprising: an information processing apparatus having: and a print control apparatus according to claim 4.

【0010】また、印刷システムは、パターンを構成す
る色数を識別する識別手段と、前記識別手段による識別
に基づいて、二値のパターンデータ、前景色、背景色を
指定するコマンドを転送する第1のモード、あるいは、
インデックス形式のパターンデータを転送する第2のモ
ードを選択する選択手段と、前記選択手段により選択さ
れたモードで印刷データを転送することを特徴とする
印。
Further, the printing system transfers the command for designating the binary pattern data, the foreground color and the background color based on the identification means for identifying the number of colors forming the pattern and the identification means. 1 mode, or
A mark characterized by selecting means for selecting the second mode for transferring the pattern data in the index format, and transferring the print data in the mode selected by the selecting means.

【0011】また、本発明の印刷制御方法は、外部装置
からの印刷データに基づいて、記録媒体への記録を制御
する印刷制御方法において、二値のパターンデータ、前
景色、背景色を指定するコマンドを受信する受信工程
と、前記受信工程により受信した二値のパターンデー
タ、前景色、背景色を指定するコマンドに基づいて多値
パターンを生成する生成工程と、前記生成工程により生
成された多値パターンと文字または図形描画コマンドに
基づいてイメージを展開する展開工程とを有することを
特徴とする印刷制御方法。
The print control method of the present invention is a print control method for controlling recording on a recording medium based on print data from an external device, and specifies binary pattern data, foreground color, and background color. A reception step of receiving a command, a generation step of generating a multi-valued pattern based on a command that specifies the binary pattern data, the foreground color, and the background color received by the reception step; and a multi-valued pattern generated by the generation step. A printing control method comprising: a developing process for developing an image based on a value pattern and a character or graphic drawing command.

【0012】また、印刷制御方法は、外部装置からの印
刷データに基づいて、記録媒体への記録を制御する印刷
制御方法において、インデックス形式のパターンデータ
を受信する受信工程と、パターンを構成するインデック
ス番号とインデックス番号に対応した色データを複数記
憶するカラーテーブルに登録されている色データとに基
づいて多値パターンデータを生成する生成工程と、前記
生成手段により生成された多値パターンと文字または図
形描画コマンドとに基づいてイメージを展開する展開工
程とを有することを特徴とする。
The print control method is a print control method for controlling recording on a recording medium based on print data from an external device, and a receiving step of receiving pattern data in an index format and an index forming a pattern. Number and the color data registered in a color table storing a plurality of color data corresponding to the index number, a generation step of generating multi-valued pattern data, a multi-valued pattern and characters generated by the generation means, or And a development step of developing an image based on a graphic drawing command.

【0013】[0013]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(発明の実施の形態1)本発明の実施の形態の構成を説
明する前に、本発明の実施の形態を適用するに好適なレ
ーザービームプリンタ(以下「LBP」と記述)の構成
について図1を参照しながら説明する。なお、本発明の
実施の形態を適用するプリンタは、レーザビームプリン
タに限られるものではなく、他のプリント方式のプリン
タでも良いことは言うまでもない。以下、図面を参照し
て本発明の実施の形態を詳細に説明する。
(Embodiment 1 of the Invention) Before explaining the configuration of the embodiment of the present invention, a configuration of a laser beam printer (hereinafter referred to as "LBP") suitable for applying the embodiment of the present invention will be described with reference to FIG. Will be described with reference to. Needless to say, the printer to which the embodiment of the present invention is applied is not limited to the laser beam printer, and may be a printer of another printing method. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0014】図1は、本発明の実施の形態に適用される
レーザビームプリンタの内部構造を示す断面図で、この
LBPは不図示のデータ源から文字パターンの登録や定
型書式(フォームデータ)などの登録が行える。同図に
おいて、1000はLBP本体であり、外部に接続され
ているホストコンピュータから供給される文字情報(文
字コード)やフォーム情報あるいはマクロ命令などを入
力して記憶するとともに、それらの情報に従って対応す
る文字パターンやフォームパターンなどを作成し、記録
媒体である記録紙上に像を形成する。1012は操作の
ためのスイッチおよびLED表示器などが配されている
操作パネル、1001はLBP1000全体の制御およ
びホストコンピュータから供給される文字情報などを解
析するプリンタ制御ユニットである。この制御ユニット
1001は、主に文字情報を対応する文字パターンのビ
デオ信号に変換してレーザドライバ1002に出力す
る。レーザドライバ1002は半導体レーザ1003を
駆動するための回路であり、入力されたビデオ信号に応
じて半導体レーザ1003から発射されるレーザ光10
04をオンオフ切り替えする。
FIG. 1 is a cross-sectional view showing the internal structure of a laser beam printer applied to an embodiment of the present invention. This LBP is for registering character patterns from a data source (not shown), fixed form (form data), etc. Can be registered. In the figure, reference numeral 1000 denotes an LBP main body, which inputs and stores character information (character code) supplied from an externally connected host computer, form information, or a macro command, and responds in accordance with those information. A character pattern, a form pattern, etc. are created, and an image is formed on a recording medium which is a recording medium. An operation panel 1012 is provided with switches for operation and an LED display, and a printer control unit 1001 controls the entire LBP 1000 and analyzes character information supplied from the host computer. The control unit 1001 mainly converts character information into a video signal of a corresponding character pattern and outputs the video signal to the laser driver 1002. The laser driver 1002 is a circuit for driving the semiconductor laser 1003, and the laser light 10 emitted from the semiconductor laser 1003 according to an input video signal.
04 is turned on and off.

【0015】レーザ1004は回転多面鏡1005で左
右方向に振られ静電ドラム1006上を走査する。これ
により、静電ドラム1006上には文字パターンの静電
潜像が形成される。この潜像は、静電ドラム1006周
囲の現像ユニット1007により現像された後、記録紙
に転送される。この記録紙にはカットシートを用い、カ
ットシート記録紙はLBP1000に装着した用紙カセ
ット1008に収納され、給紙ローラ1009および搬
送ローラ1010と1011とにより装置内に取り込ま
れて、静電ドラム1006に供給される。
A laser 1004 is swung right and left by a rotary polygon mirror 1005 to scan on an electrostatic drum 1006. As a result, an electrostatic latent image of a character pattern is formed on the electrostatic drum 1006. This latent image is developed by a developing unit 1007 around the electrostatic drum 1006 and then transferred to a recording sheet. A cut sheet is used as the recording paper. The cut sheet recording paper is stored in a paper cassette 1008 mounted on the LBP 1000, is taken into the apparatus by a paper feed roller 1009 and transport rollers 1010 and 1011, and is transferred to an electrostatic drum 1006. Supplied.

【0016】図2は、本発明の実施の形態の印刷装置の
構成を示すブロック図である。
FIG. 2 is a block diagram showing the configuration of the printing apparatus according to the embodiment of the present invention.

【0017】図2において2000は印刷装置1000
に接続されたホストコンピュータであり、プリントデー
タ及び制御コードから成る印刷情報を印刷装置1000
に出力するものである。印刷装置1000は、大きく分
けてフォーマッタ制御部1100、インターフェース1
200、出力制御部1300、プリンタエンジン部14
00より構成されている。フォーマッタ制御部1100
は、受信バッファ1101、コマンド判別部1102、
コマンド解析部1103、コマンド実行部1104、ペ
ージメモリ1105、パターン制御部1106より構成
されている。受信バッファ1101は、ホストコンピュ
ータ2000から受信した印刷情報を一時的に保持する
記憶手段である。コマンド判別部1102は、各印刷制
御コマンドの判別を行なうものであり、印刷データは各
コマンドに応じてコマンド解析部1103において解析
される。コマンド解析部1103は各印刷制御コマンド
の解析を行なうものである。コマンド解析部1103で
解析されたコマンドは、印刷データの解析を行なった中
間的な結果でありコマンド実行部1104においてより
処理しやすい形式の中間コードの形に変換される。コマ
ンド解析部1103で解析されたコマンドがパターンを
必要とする描画であった場合には、パターン制御部11
06においてパターン描画の前処理が行なわれる。コマ
ンド実行部1104では、上記中間コードによって各コ
マンドを実行し、描画及び印字に関するコマンドはペー
ジメモリ1105に逐次展開されて行く。一方、データ
形式判定部1106において単純ビットマップであると
判定された場合は、イメージデータはそのままページメ
モリ1105に展開される。なお一般的には、フォーマ
ッタ制御部1100は、各種制御プログラムを記憶する
ROM、各種制御プログラムを実行するCPU、及び各
種ワークメモリ等に使用されるRAMなどを用いたコン
ピュータシステムによって構成されている。
In FIG. 2, reference numeral 2000 is a printing apparatus 1000.
Is a host computer connected to the printer 1000, and prints information including print data and control codes.
Is output to The printing apparatus 1000 is roughly divided into a formatter control unit 1100 and an interface 1.
200, output control unit 1300, printer engine unit 14
It is composed of 00. Formatter control unit 1100
Represents a reception buffer 1101, a command discrimination unit 1102,
The command analysis unit 1103, the command execution unit 1104, the page memory 1105, and the pattern control unit 1106 are included. The reception buffer 1101 is a storage unit that temporarily holds the print information received from the host computer 2000. The command discrimination unit 1102 discriminates each print control command, and the print data is analyzed by the command analysis unit 1103 according to each command. The command analysis unit 1103 analyzes each print control command. The command analyzed by the command analysis unit 1103 is an intermediate result of analysis of print data, and is converted into an intermediate code in a format that is easier to process in the command execution unit 1104. When the command analyzed by the command analysis unit 1103 is a drawing that requires a pattern, the pattern control unit 11
In 06, the preprocessing of pattern drawing is performed. The command execution unit 1104 executes each command by the above intermediate code, and the commands related to drawing and printing are sequentially expanded in the page memory 1105. On the other hand, when the data format determination unit 1106 determines that the image data is a simple bitmap, the image data is expanded in the page memory 1105 as it is. Note that generally, the formatter control unit 1100 is configured by a computer system using a ROM that stores various control programs, a CPU that executes various control programs, and a RAM used as various work memories and the like.

【0018】出力制御部1300は、ページメモリ11
05の内容をビデオ信号に変換処理し、プリンタエンジ
ン部1400へ画像転送を行なう。プリンタエンジン部
1400は受け取ったビデオ信号を記録紙に永久可視画
像形成するための印刷機構部である。
The output control unit 1300 includes a page memory 11
The contents of 05 are converted into a video signal, and the image is transferred to the printer engine unit 1400. The printer engine unit 1400 is a printing mechanism unit for forming a permanent visible image of the received video signal on recording paper.

【0019】次に、このように構成された印刷装置にお
いて、本発明の実施の形態における全体の印刷制御処理
手順を図3、図4、図5、図6に示すフローチャートを
参照しながら説明する。図3におけるS301〜S30
4、図4におけるS401〜S408、図5におけるS
501〜S510、図6におけるS601〜S608は
各処理ステップを示す。なお、図3、図4、図5、及
び、図6のフローチャートに係るプログラムは印刷装置
1000のROM13に記憶され、CPU12によって
処理される。
Next, an explanation will be given of the whole print control processing procedure in the embodiment of the present invention in the printing apparatus thus constructed with reference to the flow charts shown in FIGS. 3, 4, 5 and 6. . S301 to S30 in FIG.
4, S401 to S408 in FIG. 4, and S in FIG.
501 to S510, and S601 to S608 in FIG. 6 indicate processing steps. The programs according to the flowcharts of FIGS. 3, 4, 5, and 6 are stored in the ROM 13 of the printing apparatus 1000 and processed by the CPU 12.

【0020】図3は印刷装置1000の動作の開始から
終了までのメイン処理を示している。まずステップS3
01でホストコンピュータ2000から送られてくる印
刷データの受けとりを行ない、受信バッファ1101に
ストックする。次にステップS302で受信バッファに
ストックされた印刷データを読み出し、次にステップS
303で描画処理を行なう。その後、ステップS304
で印刷終了命令を受けとったか否か、または印刷データ
が終了したか否かを判断し、印刷終了であれば印刷動作
を終了する。印刷終了でなければステップS301から
の処理を繰り返す。
FIG. 3 shows the main processing from the start to the end of the operation of the printing apparatus 1000. First, step S3
At 01, the print data sent from the host computer 2000 is received and stocked in the reception buffer 1101. Next, the print data stocked in the reception buffer in step S302 is read out, and then in step S
At 303, drawing processing is performed. Then, step S304
Then, it is judged whether or not the print end command is received, or whether or not the print data is ended. If the print is ended, the print operation is ended. If the printing is not completed, the processing from step S301 is repeated.

【0021】図4は図3で用いた描画処理を示してい
る。この処理は実際に印刷処理を行う処理である。まず
ステップS401において、コマンド解析部1103で
データが排紙命令かどうかをチェックし、排紙命令の場
合はステップS406に進み処理を行う。また、ステッ
プS401において排紙命令でない場合は、次に解析し
たコマンドが文字印字または図形描画などページメモリ
への展開処理のコマンドかどうかを判別し(ステップS
402、そうでない場合はステップS405に進み、そ
のコマンドをただちに実行する。ステップS402から
ステップS409に進んだ場合は、パターン描画が必要
な描画であるか否かを判別し、必要であればステップS
410へ進みパターン設定処理を行なう。また、ステッ
プS409からステップS403に進んだ場合は、コマ
ンド実行処理がしやすい形の中間コードを生成する。こ
の中間コードを受けて、コマンド実行部1104では、
後述するプレーンにセットされた多値パターンと文字、
図形描画コマンドに基づきページメモリ1105への多
値イメージの展開処理を行い(ステップS404)、展
開処理終了後は図3のステップS302に戻り、データ
の解析処理を繰り返す。ステップS401において排紙
命令と判断された場合は、出力制御部1300において
ページメモリ1105の内容をプリンタエンジン部14
00に対するビデオ信号に変換して画像転送出力する
(ステップS406)。プリンタエンジン部1400で
は、受け取ったビデオ信号を記録紙に永久可視画像形成
し印刷を行う(ステップS407)。そしてステップS
408で印刷された結果を排紙すると1ページ当たりの
印刷制御処理は終了する。このような制御により、文字
や、図形にカラーの中塗りパターンを施して印字するこ
とができる。
FIG. 4 shows the drawing process used in FIG. This process is a process for actually performing a printing process. First, in step S401, the command analysis unit 1103 checks whether or not the data is a discharge command. If the data is a discharge command, the process advances to step S406 to perform processing. If it is not the paper discharge command in step S401, it is determined whether or not the command analyzed next is a command for expanding the page memory such as character printing or graphic drawing (step S401).
402, otherwise to step S405, the command is immediately executed. When the process proceeds from step S402 to step S409, it is determined whether or not pattern drawing is necessary, and if necessary, step S402 is performed.
In step 410, pattern setting processing is performed. If the process proceeds from step S409 to step S403, an intermediate code in a form that facilitates command execution processing is generated. Upon receiving this intermediate code, the command execution unit 1104
Multi-valued pattern and characters set in the plane described later,
Based on the figure drawing command, the multivalued image is expanded in the page memory 1105 (step S404), and after the completion of the expansion process, the process returns to step S302 in FIG. 3 to repeat the data analysis process. If it is determined in step S401 that the instruction is a paper discharge instruction, the output control unit 1300 changes the contents of the page memory 1105 to the printer engine unit 14
The image signal is converted into a video signal corresponding to 00 and the image is transferred and output (step S406). The printer engine unit 1400 forms a permanent visible image on the recording paper based on the received video signal and performs printing (step S407). And step S
When the result printed at 408 is discharged, the print control process for one page ends. By such control, characters and figures can be printed by applying a color intermediate coating pattern.

【0022】以上、印刷装置全体の動きを説明したが、
これらの処理はフォーマッタ制御部1100のコンピュ
ータシステムによって実現される。
The operation of the entire printing apparatus has been described above.
These processes are realized by the computer system of the formatter control unit 1100.

【0023】図5は図4で用いたパターン設定処理を示
している。この処理はパターン描画の前処理である。本
発明の実施の形態は、パターンに二色の色指定がある場
合、すなわちツートーンカラーのパターンを描画する場
合の例である。まずステップS501において現在設定
されている前景色(以下FCと記述)、背景色(以下B
Cと記述)を取得する。ここで、FCはパターンのON
ピクセルの色であり、BCはパターンのOFFピクセル
の色である。これらの色指定は、パターンを描画する前
に制御コマンドで指定されている。次にステップS50
2においてBCが白であるか否かを判断する。BCの初
期値は白であり、制御コマンドによる指定がなければ初
期値が設定されている。もしBCが白であれば、ステッ
プS503に進み、FCを置くプレーンが残っているか
否かを判断する。ここで、プレーンとは描画論理の演算
を行なう前の描画オブジェクトを置く仮想空間であり、
一般的にはハードウェアの構成上の制限を受けるため、
固定数である。そのため、例えば色を置くことができる
プレーンに、既に他の描画オブジェクト(例えばイメー
ジ)が置かれていれば、色を置くことができない。ステ
ップS503でプレーンが残っていれば(すなわちFC
を置くことができれば)、ステップS504においてF
Cをプレーンにセットする。すなわち、色をセットする
ことである。一方、ステップS502でBCが白以外の
場合、またはステップS503においてFCを置くプレ
ーンが残っていない場合にはステップS505に進む。
印刷装置に登録されている二値パターンはIDで管理さ
れており、ステップS505では、現在指定されている
二値パターンのIDを取得する。その後、ステップS5
06において、FC、BC、二値パターンのIDが以前
の描画で指定されたものと同じか否か、すなわち同じ条
件のパターンが描画されたか否かを判断する。もしF
C、BC、IDのいずれかが以前に指定されたものと異
なっていれば、ステップS507に進む。ステップ50
7では二値パターンのONピクセルにFCを、OFFピ
クセルにBCを当てはめたカラーパターンを作成(以
降、多値化と記述)する。多値化されたパターンは、ス
テップS510においてキャッシュメモリ(一時保持メ
モリ)に格納する。一方、ステップS506において以
前に描画したパターンと一致していたら、S508に進
み、キャッシュメモリから既に多値化されているパター
ンを取り出す。この後、ステップS509に進み、パタ
ーンをプレーンにセットして処理を終了する。このよう
に、このパターン設定処理でプレーンにセットされるパ
ターンは、S504の流れでは二値パターン、S505
〜S510の流れでは多値化されたパターンのいずれか
である。
FIG. 5 shows the pattern setting process used in FIG. This process is a pre-process for pattern drawing. The embodiment of the present invention is an example of a case in which two colors are designated in a pattern, that is, a two-tone color pattern is drawn. First, in step S501, the foreground color (hereinafter referred to as FC) and the background color (hereinafter referred to as B) that are currently set.
Get C). Here, FC is the pattern ON
Pixel color, BC is the OFF pixel color of the pattern. These color designations are designated by the control command before drawing the pattern. Next, step S50
In 2, it is determined whether BC is white. The initial value of BC is white, and the initial value is set unless specified by the control command. If BC is white, the process proceeds to step S503, and it is determined whether there is a plane in which FC is placed. Here, the plane is a virtual space in which the drawing object before the drawing logic operation is placed,
Generally, due to hardware configuration restrictions,
It is a fixed number. Therefore, for example, if another drawing object (for example, an image) is already placed on the plane on which the color can be placed, the color cannot be placed. If the plane remains in step S503 (that is, FC
If it can be put), in step S504, F
Set C to the plane. That is, to set the color. On the other hand, if BC is not white in step S502, or if there is no plane in which FC is placed in step S503, the process proceeds to step S505.
The binary pattern registered in the printing device is managed by the ID, and in step S505, the ID of the currently specified binary pattern is acquired. Then, step S5
At 06, it is determined whether or not the FC, BC, and binary pattern IDs are the same as those designated in the previous drawing, that is, whether or not the pattern of the same condition is drawn. If F
If any of C, BC, or ID is different from the previously designated one, the process proceeds to step S507. Step 50
In 7, a color pattern is created by applying FC to ON pixels of a binary pattern and BC to OFF pixels (hereinafter, referred to as multi-valued). The multi-valued pattern is stored in the cache memory (temporary holding memory) in step S510. On the other hand, if it matches with the previously drawn pattern in step S506, the process advances to step S508 to take out the already multi-valued pattern from the cache memory. After that, the process advances to step S509 to set the pattern on the plane, and the process ends. In this way, the pattern set on the plane in this pattern setting process is a binary pattern in the flow of S504, S505
In the flow from S510 to S510, it is one of the multi-valued patterns.

【0024】図6は図5で用いたパターン多値化処理を
示している。この処理はパターンとFC、BCを合成し
て多値(カラー)パターンを作成する処理である。まずス
テップS601において現在指定されている二値パター
ンデータを1バイト取得する。次にステップS602に
おいて最上位ビットがONビットか否かを判断し、ON
ビットであればFCの色データを(ステップS60
3)、OFFビットであればBCの色データ(ステップ
S604)を前述のフォーマッタ制御部内のバッファ
(RAM)に書き込む。その後、ステップS605でバ
ッファに書き込んだデータ量分だけポインタ(書き込み
先)を進め、ステップS606においてデータを1ビッ
トシフトする。そしてステップS607において8ビッ
ト、すなわち1バイト分ビットシフトを終了したか否を
判断し、終了していなければステップS602からの処
理を繰り返す。一方、8ビット分終了していればステッ
プS608に進み、ステップS601からの一連の処理
を二値パターンのサイズ(総バイト数)分終了したか否
か判定する。サイズ分終了していれば処理を終了し、そ
うでなければステップS601からの処理を繰り返す。
FIG. 6 shows the pattern multi-value quantization processing used in FIG. This processing is processing for synthesizing the pattern and FC and BC to create a multi-valued (color) pattern. First, in step S601, one byte of the currently designated binary pattern data is acquired. Next, in step S602, it is determined whether or not the most significant bit is the ON bit, and ON
If it is a bit, the color data of FC (step S60
3) If the bit is an OFF bit, the BC color data (step S604) is written to the buffer (RAM) in the formatter control unit. Then, the pointer (write destination) is advanced by the amount of data written in the buffer in step S605, and the data is shifted by 1 bit in step S606. Then, in step S607, it is determined whether or not the bit shift for 8 bits, that is, 1 byte, is completed. If not completed, the processes from step S602 are repeated. On the other hand, if 8 bits have been completed, the process proceeds to step S608, and it is determined whether or not the series of processes from step S601 has been completed for the size (total number of bytes) of the binary pattern. If the size has been completed, the processing is ended, and if not, the processing from step S601 is repeated.

【0025】次に、本発明の実施の形態におけるパター
ンデータの具体例を図8、図9を用いて説明する。8a
は転送される二値パターンであり、8bのようなパター
ンデータで表現される。8cは指定されるFC、BCの
色データであり、FCに黄、BCに赤を指定している。
ここでのデータ形式はRGB形式である。本発明の実施
の形態では、8bの二値パターンと8cの色指定からパ
ターンの多値化が行なわれ、8eのようなパターンデー
タが作成される。8eのパターンデータはRGB形式、
8ビット/ピクセルのデータであり、この印刷結果は8
dのようになる。なお、この場合のホストから転送され
る印刷制御コマンド例を9dに図示する。
Next, a specific example of the pattern data in the embodiment of the present invention will be described with reference to FIGS. 8 and 9. 8a
Is a binary pattern to be transferred and is represented by pattern data such as 8b. 8c is color data of designated FC and BC, and yellow is designated for FC and red is designated for BC.
The data format here is the RGB format. In the embodiment of the present invention, the pattern is multivalued from the binary pattern of 8b and the color designation of 8c, and pattern data such as 8e is created. 8e pattern data is in RGB format,
The data is 8 bits / pixel, and the print result is 8
It becomes like d. An example of the print control command transferred from the host in this case is illustrated in 9d.

【0026】(発明の実施の形態2)次に、本発明の実
施の形態におけるパターン設定処理手順を図7に示すフ
ローチャートを参照しながら説明する。この処理は図4
のステップS410にあたる処理であり、前後の処理は
発明の実施の形態1と同様であるのでここでは説明を省
略する。
(Second Embodiment of the Invention) Next, a pattern setting processing procedure in the embodiment of the present invention will be described with reference to a flow chart shown in FIG. This process is shown in FIG.
The process before and after step S410 is the same as that of the first embodiment of the invention, and therefore the description thereof is omitted here.

【0027】図7におけるS701〜S707は各処理
ステップを示す。本発明の実施の形態は、パターンに二
色以上の色が混在するパターンを描画する場合の例であ
る。発明の実施の形態1ではホストから二値パターンが
転送されたが、ここでのパターンは多値(カラー)のイン
デックスデータとしてホストから転送されている。イン
デックスデータとは、予めカラーテーブルに複数の色を
登録しておき、各画素に対応するビットが登録した番号
(複数ビットにより)で構成されたデータである。まず
ステップS701において、設定されている多値パター
ンを1バイト取得する。ここで、通常、パターンに用い
られる色は数色であるので、データは1ピクセル2〜3
ビット(つまり4〜8つのインデックス番号が指定可
能)あれば充分である。そこで、ステップS702にお
いてルックアップテーブル(LUT)方式でインデック
ス番号を取り出す。次にステップS703に進み、カラ
ーテーブルの該インデックス番号に登録されている色デ
ータを取得し、ステップS704に進む。ステップS7
04では取得した色データをバッファへ書き込み、バッ
ファポインタを進める。その後、ステップS705にお
いて指定されている多値パターンのサイズ分だけ、ここ
での処理を終了したか否かを判断し、終了していなけれ
ばステップS701からの処理を繰り返す。一方、終了
していればステップS706に進み、バッファに書き込
まれたパターンをプレーンにセットする。本発明の実施
の形態のように初めから多値パターンが転送された場合
には、発明の実施の形態1のFC、BCは必要ないた
め、ステップS707においてパターンの色指定(F
C、BC)を無効にするようフラグをセットして処理を
終了する。
S701 to S707 in FIG. 7 indicate processing steps. The embodiment of the present invention is an example of drawing a pattern in which two or more colors are mixed in the pattern. In the first embodiment of the invention, the binary pattern is transferred from the host, but the pattern here is transferred from the host as multi-value (color) index data. The index data is data configured by registering a plurality of colors in the color table in advance and registering the bit corresponding to each pixel (by a plurality of bits). First, in step S701, 1 byte of the set multi-valued pattern is acquired. Here, since the colors used for the pattern are usually several colors, the data is 1 pixel 2-3.
Bits (ie 4-8 index numbers can be specified) are sufficient. Therefore, in step S702, the index number is extracted by the look-up table (LUT) method. Next, proceeding to step S703, the color data registered in the index number of the color table is acquired, and proceeding to step S704. Step S7
In 04, the acquired color data is written in the buffer and the buffer pointer is advanced. After that, it is determined whether or not the process here is completed by the size of the multi-valued pattern designated in step S705, and if not completed, the processes from step S701 are repeated. On the other hand, if it has ended, the process advances to step S706, and the pattern written in the buffer is set in the plane. When the multi-valued pattern is transferred from the beginning as in the embodiment of the present invention, FC and BC of the first embodiment of the invention are not necessary, so the color designation (F) of the pattern is performed in step S707.
A flag is set so as to invalidate C, BC), and the processing is ended.

【0028】次に、本発明の実施の形態におけるパター
ンデータの具体例を図9を用いて説明する。9aは描画
される多値パターンであり、赤、青、黄の3色で構成さ
れている。このパターンは、実際には、9bのようなカ
ラーテーブルの登録と9cのようなデータ転送によって
実現される。9bはカラーテーブルへ登録される色デー
タであり、インデックス番号の1に黄、2に赤、3に青
を登録している。実際のデータ形式はRGB形式であ
る。9cは転送される多値パターンデータであり、1ピ
クセル2ビットで9bの1、2、3番のいずれかが指定
されている。なお、この場合のホストから転送される印
刷制御コマンド例を9eに図示する。
Next, a specific example of pattern data in the embodiment of the present invention will be described with reference to FIG. Reference numeral 9a is a multi-valued pattern to be drawn, which is composed of three colors of red, blue and yellow. This pattern is actually realized by registering a color table like 9b and transferring data like 9c. Reference numeral 9b is color data registered in the color table, in which index numbers 1 are yellow, 2 are red, and 3 is blue. The actual data format is RGB format. Reference numeral 9c denotes multi-valued pattern data to be transferred, and one pixel 2 bits designates any one of Nos. 1, 2, and 3 of 9b. An example of the print control command transferred from the host in this case is shown in 9e.

【0029】(発明の実施の形態3)図10は本発明の
実施の形態を示すプリンタ制御システムの構成を説明す
るブロック図である。ここでは、レーザビームプリンタ
(図1)を例にして説明する。なお、本発明は、複数の
機器から構成されるシステムに適用しても、1つの機器
からなる装置に適用しても良い。また、本発明はシステ
ム或は装置にプログラムを供給することによって実施さ
れる場合にも適用できることは言うまでもない。この場
合、本発明に係るプログラムを格納した記憶媒体が、本
発明を構成することになる。そして、該記憶媒体からそ
のプログラムをシステム或は装置に読み出すことによっ
て、そのシステム或は装置が、予め定められた仕方で動
作する。
(Third Embodiment of the Invention) FIG. 10 is a block diagram for explaining the configuration of a printer control system showing an embodiment of the present invention. Here, a laser beam printer (FIG. 1) will be described as an example. The present invention may be applied to a system including a plurality of devices or an apparatus including a single device. Further, it goes without saying that the present invention can be applied to the case where it is implemented by supplying a program to a system or an apparatus. In this case, the storage medium storing the program according to the present invention constitutes the present invention. Then, by reading the program from the storage medium to the system or device, the system or device operates in a predetermined manner.

【0030】図10において、3000はホストコンピ
ュータで、ROM3のプログラム用ROMに記憶された
文書処理プログラム等に基づいて図形,イメージ,文
字,表(表計算等を含む)等が混在した文書処理を実行
するCPU1を備え、システムデバイス4に接続される
各デバイスをCPU1が総括的に制御する。また、この
ROM3のプログラム用ROMには、CPU1の図1
1、図12に示すフローチャートに係るプログラムを含
む制御プログラム等を記憶し、ROM3のフォント用R
OMには上記文書処理の際に使用するフォントデ−タ等
を記憶し、ROM3のデ−タ用ROMは上記文書処理等
を行う際に使用する各種デ−タを記憶する。2はRAM
で、CPU1の主メモリ,ワークエリア等として機能す
る。5はキーボードコントローラ(KBC)で、キーボ
ード9や不図示のポインティングデバイスからのキー入
力を制御する。6はCRTコントローラ(CRTC)
で、CRTディスプレイ(CRT)10の表示を制御す
る。7はメモリコントローラ(MC)で、ブートプログ
ラム,種々のアプリケーション,フォントデータ,ユー
ザファイル,編集ファイル等を記憶するハードディスク
(HD)、フロッピーディスク(FD)等の外部メモリ
11とのアクセスを制御する。8はプリンタコントロー
ラ(PRTC)で、所定の双方向性インタフェース(イ
ンタフェース)21を介してプリンタ1000に接続さ
れて、プリンタ1000との通信制御処理を実行する。
なお、CPU1は、例えばRAM2上に設定された表示
情報RAMへのアウトラインフォントの展開(ラスタラ
イズ)処理を実行し、CRT10上でのWYSIWYG
を可能としている。また、CPU1は、CRT10上の
不図示のマウスカーソル等で指示されたコマンドに基づ
いて登録された種々のウインドウを開き、種々のデータ
処理を実行する。プリンタ1000において、12はプ
リンタCPUで、ROM13のプログラム用ROMに記
憶された制御プログラム等或いは外部メモリ14に記憶
された制御プログラム等に基づいてシステムバス15に
接続される各種のデバイスとのアクセスを総括的に制御
し、印刷部インタフェース16を介して接続される印刷
部(プリンタエンジン)17に出力情報としての画像信
号を出力する。また、このROM13のプログラムRO
Mには、発明の実施の形態1または発明の実施の形態2
のフローチャートで示されるようなCPU12の制御プ
ログラム等を記憶しても良い。ROM13のフォント用
ROMには上記出力情報を生成する際に使用するフォン
トデ−タ等を記憶し、ROM13のデ−タ用ROMには
ハードディスク等の外部メモリ14が無いプリンタの場
合には、ホストコンピュ−タ上で利用される情報等を記
憶している。CPU12は入力部18を介してホストコ
ンピュータとの通信処理が可能となっており、プリンタ
内の情報等をホストコンピュータ3000に通知可能に
構成されている。19はCPU12の主メモリ、ワーク
エリア等として機能するRAMで、図示しない増設ポー
トに接続されるオプションRAMによりメモリ容量を拡
張することができるように構成されている。なお、RA
M19は、出力情報展開領域、環境データ格納領域等に
用いられる。前述したハードディスク(HD)、ICカ
−ド等の外部メモリ14は、メモリコントローラ(M
C)20によりアクセスを制御される。外部メモリ14
は、オプションとして接続され、フォントデ−タ、エミ
ュレ−ションプログラム、フォ−ムデ−タ等を記憶す
る。また、18は前述した操作パネルで操作のためのス
イッチおよびLED表示器等が配されている。また、前
述した外部メモリは1個に限らず、少なくとも1個以上
備え、内蔵フォントに加えてオプションフォントカー
ド,言語系の異なるプリンタ制御言語を解釈するプログ
ラムを格納した外部メモリを複数接続できるように構成
されていても良い。さらに、図示しないNVRAMを有
し、操作パネル1012からのプリンタモード設定情報
を記憶するようにしても良い。
In FIG. 10, reference numeral 3000 denotes a host computer, which performs document processing in which graphics, images, characters, tables (including spreadsheets, etc.) are mixed based on a document processing program stored in the program ROM of the ROM 3. A CPU 1 that executes is provided, and the CPU 1 generally controls each device connected to the system device 4. In addition, the program ROM of the ROM 3 includes the CPU 1 shown in FIG.
1. R for fonts in the ROM 3 for storing control programs including the program according to the flowchart shown in FIG.
The OM stores font data and the like used in the document processing, and the data ROM of the ROM 3 stores various data used in the document processing and the like. 2 is RAM
Then, it functions as a main memory, a work area, etc. of the CPU 1. A keyboard controller (KBC) 5 controls a key input from a keyboard 9 or a pointing device (not shown). 6 is a CRT controller (CRTC)
Controls the display of the CRT display (CRT) 10. A memory controller (MC) 7 controls access to an external memory 11 such as a hard disk (HD) or a floppy disk (FD) that stores a boot program, various applications, font data, user files, edit files and the like. A printer controller (PRTC) 8 is connected to the printer 1000 via a predetermined bidirectional interface (interface) 21 and executes communication control processing with the printer 1000.
The CPU 1 executes, for example, a process (rasterize) of the outline font to the display information RAM set in the RAM 2, and the WYSIWYG on the CRT 10 is executed.
Is possible. Further, the CPU 1 opens various registered windows based on commands specified by a mouse cursor or the like (not shown) on the CRT 10 and executes various data processing. In the printer 1000, 12 is a printer CPU, which accesses various devices connected to the system bus 15 based on a control program stored in the program ROM of the ROM 13 or a control program stored in the external memory 14. The overall control is performed, and the image signal as output information is output to the printing unit (printer engine) 17 connected via the printing unit interface 16. The program RO of the ROM 13
M is the first embodiment of the invention or the second embodiment of the invention.
The control program of the CPU 12 as shown in the flowchart of FIG. The font ROM of the ROM 13 stores font data and the like used when generating the above output information, and in the case of a printer in which the data ROM of the ROM 13 does not have an external memory 14 such as a hard disk, the host computer is used. -It stores information used on the computer. The CPU 12 is capable of performing communication processing with the host computer via the input unit 18, and is configured to notify the host computer 3000 of information in the printer and the like. Reference numeral 19 denotes a RAM that functions as a main memory, a work area, etc. of the CPU 12, and is configured so that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown). Note that RA
M19 is used as an output information expansion area, environment data storage area, and the like. The external memory 14 such as the hard disk (HD) and IC card described above is a memory controller (M
C) Access is controlled by 20. External memory 14
Is optionally connected to store font data, emulation programs, form data, and the like. Reference numeral 18 denotes the above-mentioned operation panel, on which switches for operation, an LED display, and the like are arranged. Further, the above-mentioned external memory is not limited to one, but at least one external memory is provided, and in addition to the built-in font, an optional font card and a plurality of external memories storing programs for interpreting printer control languages of different languages can be connected. It may be configured. Further, an NVRAM (not shown) may be provided to store the printer mode setting information from the operation panel 1012.

【0031】図11は、ホストコンピュータ2000の
印刷動作の開始から終了までのメイン処理を示してい
る。この処理は、発明の実施の形態1に対応するホスト
コンピュータ側の処理である。まずステップS1101
でアプリケーションから描画データを受けとり、ステッ
プS1102でパターンを必要とする描画データである
か否かを判断する。もしパターンが必要でなければ、ス
テップS1108に進んでただちに印刷制御コマンドに
変換後、プリンタに転送する。一方、パターンが必要で
ある場合にはステップS1103に進み、以前にプリン
タ側へ登録したパターンと同じ二値パターンであるかど
うかを判定する。もし、同じパターンを以前に登録して
いればステップS1105に進み、登録していなければ
ステップS1104において該パターンデータをプリン
タに転送し、登録を行なう。ステップS1105では該
パターンを指定(すなわち、これから使用することを通
知)する制御コマンドをプリンタに転送する。ここまで
で二値パターンに対するプリンタへの指令を終えたこと
になる。次に、ステップS1106では指定した二値パ
ターンのFC、BCのペアが、以前指定したFC、BC
のペアと同じであるか否かを判断する。もし同じであれ
ばそのままステップS1108に進み、そうでなければ
ステップS1107においてFCおよびBCを指定する
制御コマンドをプリンタに転送する。ステップS110
8ではアプリケーションから受け取った描画データを印
刷制御コマンドに変換し、印刷装置へ転送する。その
後、ステップS1109においてアプリケーションから
の描画データが終了したか否かを判断し、終了であれば
処理を終了し、終了でなければステップS1101から
の処理を繰り返す。
FIG. 11 shows the main processing from the start to the end of the printing operation of the host computer 2000. This processing is processing on the host computer side corresponding to the first embodiment of the invention. First, step S1101
In step S1102, drawing data is received from the application, and it is determined in step S1102 whether the drawing data requires a pattern. If the pattern is not necessary, the process advances to step S1108 to immediately convert it into a print control command and then transfer it to the printer. On the other hand, if a pattern is required, the process advances to step S1103 to determine whether the pattern is the same binary pattern as the pattern previously registered on the printer side. If the same pattern has been previously registered, the process proceeds to step S1105, and if not registered, the pattern data is transferred to the printer and registered in step S1104. In step S1105, a control command designating the pattern (that is, notifying that it will be used) is transferred to the printer. Up to this point, the command to the printer for the binary pattern has been completed. Next, in step S1106, the FC, BC pair of the specified binary pattern is the FC, BC previously specified.
It is determined whether or not it is the same as the pair. If they are the same, the process proceeds directly to step S1108, and if not, the control command designating FC and BC is transferred to the printer in step S1107. Step S110
In 8, the drawing data received from the application is converted into a print control command and transferred to the printing device. Then, in step S1109, it is determined whether or not the drawing data from the application has ended. If the drawing data has ended, the processing ends, and if not ended, the processing from step S1101 is repeated.

【0032】図13は本発明の実施の形態におけるコマ
ンド転送の具体例である。13a、13b、13cのパ
ターンで塗りつぶした円を、順に描画するとするとプリ
ンタへ転送する制御コマンドは13dのようになる。
FIG. 13 shows a specific example of command transfer in the embodiment of the present invention. When the circles filled with the patterns 13a, 13b, and 13c are sequentially drawn, the control command transferred to the printer is as shown in 13d.

【0033】(発明の実施の形態4)図12は、ホスト
コンピュータ2000の印刷動作の開始から終了までの
メイン処理を示している。この処理は、発明の実施の形
態2に対応するホストコンピュータ側の処理である。ま
ずステップS1201でアプリケーションから描画デー
タを受けとり、ステップS1202でパターンを必要と
する描画データであるか否かを判断する。もしパターン
が必要でなければ、ステップS1208に進んでただち
に印刷制御コマンドに変換後、プリンタに転送する。一
方、パターンが必要である場合にはステップS1203
に進み、アプリケーションから受けとったパターンが以
前にプリンタ側へ登録したパターンと同じであるかどう
かを判定する。ここで、本発明の実施の形態では、アプ
リケーションから渡されるパターンはインデックス形式
で構成されており、各インデックスにはそれぞれ任意の
色が割り当てられているものとする。もし、同じパター
ンを以前に登録していればステップS1205に進み、
登録していなければステップS1204において該パタ
ーンデータをプリンタに転送し、登録を行なう。ステッ
プS1205では該パターンを指定(すなわち、これか
ら使用することを通知)する制御コマンドをプリンタに
転送する。ここまでで二値パターンに対するプリンタへ
の指令を終えたことになる。次に、ステップS1206
では指定したパターンを構成する(すなわち、インデッ
クスに割り当てられている)全ての色が、前回の色構成
と同じであるか否かを判断する。もし同じであればその
ままステップS1208に進み、そうでなければステッ
プS1207においてパターンを構成する色を順次プリ
ンタに転送し、プリンタ側のカラーテーブルに登録す
る。
(Fourth Embodiment of the Invention) FIG. 12 shows the main processing from the start to the end of the printing operation of the host computer 2000. This process is a process on the host computer side corresponding to the second embodiment of the invention. First, in step S1201, drawing data is received from the application, and in step S1202, it is determined whether the drawing data requires a pattern. If the pattern is not required, the process advances to step S1208 to immediately convert it into a print control command and transfer it to the printer. On the other hand, if a pattern is required, step S1203
Then, it is determined whether the pattern received from the application is the same as the pattern previously registered on the printer side. Here, in the embodiment of the present invention, it is assumed that the pattern passed from the application is configured in an index format, and an arbitrary color is assigned to each index. If the same pattern has been previously registered, the process proceeds to step S1205,
If not registered, the pattern data is transferred to the printer and registered in step S1204. In step S1205, a control command for designating the pattern (that is, notifying that it will be used) is transferred to the printer. Up to this point, the command to the printer for the binary pattern has been completed. Next, step S1206.
Then, it is determined whether or not all the colors forming the specified pattern (that is, assigned to the index) are the same as the previous color structure. If they are the same, the process directly proceeds to step S1208. If not, the colors forming the pattern are sequentially transferred to the printer in step S1207 and registered in the color table on the printer side.

【0034】ステップS1208ではアプリケーション
から受け取った描画データを印刷制御コマンドに変換
し、印刷装置へ転送する。その後、ステップS1209
においてアプリケーションからの描画データが終了した
か否かを判断し、終了であれば処理を終了し、終了でな
ければステップS1201からの処理を繰り返す。
In step S1208, the drawing data received from the application is converted into a print control command and transferred to the printing device. After that, step S1209
In, it is determined whether or not the drawing data from the application is finished. If it is finished, the processing is ended, and if it is not finished, the processing from step S1201 is repeated.

【0035】図13は本発明の実施の形態におけるコマ
ンド転送の具体例である。13a、13b、13cのパ
ターンで塗りつぶした円を、順に描画するとするとプリ
ンタへ転送する制御コマンドは13eのようになる。
FIG. 13 shows a specific example of command transfer in the embodiment of the present invention. When the circles filled with the patterns 13a, 13b, and 13c are sequentially drawn, the control command to be transferred to the printer is 13e.

【0036】(他の発明の実施の形態)発明の実施の形
態1、発明の実施の形態2ではパターンデータは外部装
置から転送されているが、プログラム上に内蔵されたパ
ターンデータであってもよい。
(Other Embodiments of the Invention) In the first and second embodiments of the invention, the pattern data is transferred from the external device, but the pattern data stored in the program may be used. Good.

【0037】さらに発明の実施の形態1、発明の実施の
形態2では図形の塗りつぶしに使用するパターンについ
て例を挙げたが、イメージデータについても同様の処理
を行なうことができる。一般にイメージデータはパター
ンデータに比べてサイズが大きいので、この場合の発明
の実施の形態1においてはキャッシュメモリへの登録を
省略することによってメモリ資源を節約することができ
る。
Furthermore, in the first and second embodiments of the present invention, an example is given of the pattern used for filling the figure, but the same processing can be performed on the image data. In general, the image data has a larger size than the pattern data. Therefore, in the first embodiment of the invention in this case, memory resources can be saved by omitting registration in the cache memory.

【0038】また、発明の実施の形態1において多値パ
ターンが指定されていたらFC、BCの指定を無視し、
発明の実施の形態2の処理に切替えることによって、効
率的な処理を行なうことができるのは言うまでもない。
If a multi-valued pattern is designated in the first embodiment of the invention, the designations of FC and BC are ignored,
It goes without saying that an efficient process can be performed by switching to the process of the second embodiment of the invention.

【0039】また、発明の実施の形態1では、パターン
多値化処理にビットシフトを用いていたが、この代わり
にルックアップテーブルを用いることにより処理を高速
化することが可能である。
Further, in the first embodiment of the invention, the bit shift is used for the pattern multi-valued processing, but the processing can be speeded up by using a lookup table instead.

【0040】逆に発明の実施の形態2では、インデック
ス番号の取り出しにルックアップテーブルを用いていた
が、この代わりにビットシフトを用いることによりプロ
グラムサイズを小さくすることが出来る。
On the contrary, in the second embodiment of the invention, the look-up table is used for extracting the index number. However, the program size can be reduced by using bit shift instead.

【0041】また、発明の実施の形態2ではパターンデ
ータにインデックス番号を用いているが、カラーテーブ
ルに登録したような色データを直接並べたデータ形式で
あってもよい。
Further, although the index number is used for the pattern data in the second embodiment of the invention, a data format in which the color data registered in the color table are directly arranged may be used.

【0042】発明の実施の形態3ではFCとBCの両方
をセットでプリンタに転送していたが、どちらかが前回
と同じであれば、その色転送を省略することもできる。
In the third embodiment of the invention, both FC and BC are transferred to the printer as a set, but if either one is the same as the previous one, the color transfer can be omitted.

【0043】さらに、発明の実施の形態4ではパターン
を構成する色が前回と違う場合には必ずカラーテーブル
への色登録を行なったが、プリンタ側にインデックスか
ら即値(RGBなど)に変換した多値パターンをキャッシュ
する機能がある場合には、以前に一度でも同じ構成の色
セットをカラーテーブルへ登録していれば、登録を行な
わずにパターンのIDを指定するようにすることもでき
る。
Further, in the fourth embodiment of the invention, when the color forming the pattern is different from the previous one, the color is always registered in the color table. However, on the printer side, the index is converted into an immediate value (RGB or the like) in many cases. If the value pattern is cached, if the color set having the same configuration is registered in the color table even once, the pattern ID can be designated without registration.

【0044】さらに、ホスト側でパターンを構成する色
数を識別し、パターンを構成する色が二色以下である場
合には発明の実施の形態3、三色以上である場合には発
明の実施の形態4の処理へ切替えることも可能であるこ
とは言うまでもない。
Further, the number of colors forming the pattern is identified on the host side, and when the number of colors forming the pattern is two or less, the third embodiment of the invention is carried out. When the number of colors forming the pattern is three or more, the invention is carried out. It goes without saying that it is also possible to switch to the processing of mode 4.

【0045】[0045]

【発明の効果】以上説明したように、二値パターン及び
前景色、背景色を指定するコマンドによって、最小限の
データ転送量で容易にツートーンカラーのパターンを印
刷することができ、また、多値パターンをインデックス
形式で処理することによって、効率的に三色以上のパタ
ーンを印刷することが可能となる。それ故、印刷処理を
高速化することができる。
As described above, the two-tone pattern can be easily printed with a minimum data transfer amount by the command for designating the binary pattern and the foreground color and the background color, and the multi-valued pattern can be obtained. By processing the patterns in the index format, it is possible to efficiently print patterns of three or more colors. Therefore, the printing process can be speeded up.

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

【図1】本発明の一実施例のレーザビームプリンタの構
造を示す側断面図である。
FIG. 1 is a side sectional view showing a structure of a laser beam printer according to an embodiment of the present invention.

【図2】発明の実施の形態1による印刷装置の基本構成
を示すブロック図である。
FIG. 2 is a block diagram showing the basic configuration of the printing apparatus according to the first embodiment of the invention.

【図3】発明の実施の形態1の印刷制御手順を示すフロ
ーチャートである。
FIG. 3 is a flowchart showing a print control procedure according to the first embodiment of the invention.

【図4】図3に示した描画処理の手順を示すフローチャ
ートである。
FIG. 4 is a flowchart showing a procedure of the drawing process shown in FIG.

【図5】図4に示したパターン設定処理の手順を示すフ
ローチャートである。
5 is a flowchart showing a procedure of pattern setting processing shown in FIG.

【図6】図5に示したパターン多値化処理の手順を示す
フローチャートである。
6 is a flowchart showing the procedure of the pattern multi-value quantization process shown in FIG.

【図7】発明の実施の形態2による印刷装置のパターン
設定処理を示すブロック図である。
FIG. 7 is a block diagram showing a pattern setting process of the printing apparatus according to the second embodiment of the invention.

【図8】発明の実施の形態1によるパターンデータの具
体例を示す図である。
FIG. 8 is a diagram showing a specific example of pattern data according to the first embodiment of the invention.

【図9】発明の実施の形態2によるパターンデータの具
体例を示す図である。
FIG. 9 is a diagram showing a specific example of pattern data according to the second embodiment of the invention.

【図10】発明の実施の形態2によるプリンタ制御シス
テムの構成を示すブロック図である。
FIG. 10 is a block diagram showing a configuration of a printer control system according to a second embodiment of the invention.

【図11】発明の実施の形態3の印刷制御コマンド転送
手順を示すフローチャートである。
FIG. 11 is a flowchart showing a print control command transfer procedure according to the third embodiment of the invention.

【図12】発明の実施の形態4の印刷制御コマンド転送
手順を示すフローチャートである。
FIG. 12 is a flowchart showing a print control command transfer procedure according to the fourth embodiment of the invention.

【図13】発明の実施の形態3、4におけるコマンド転
送の具体例を示す図である。
FIG. 13 is a diagram showing a specific example of command transfer in the third and fourth embodiments of the invention.

【符号の説明】[Explanation of symbols]

1 CPU 2 RAM 3 ROM 4 システムバス 5 KBC 6 CRTC 7 MC 8 PRTC 9 KB 10 CRT 11 外部メモリ 12 CPU 13 ROM 14 外部メモリ 15 システムバス 16 印刷部インターフェース 17 印刷部 18 入力部 19 RAM 20 MC 1012 操作部 1000 印刷装置 1002 レーザドライバ 1003 半導体レーザ 1004 レーザ光 1005 回転多面鏡 1006 静電ドラム 1007 現像ユニット 1008 用紙カセット 1009 給紙ローラ 1010 搬送ローラ 1011 搬送ローラ 1012 操作パネル 1100 フォーマッタ制御部 1101 受信バッファ 1102 コマンド判別部 1103 コマンド解析部 1104 コマンド実行部 1105 ページメモリ 1106 パターン制御部 1200 インターフェース 1300 出力制御部 1400 プリンタエンジン部 1500 二次記憶装置 2000 ホストコンピュータ 3000 ホストコンピュータ 1 CPU 2 RAM 3 ROM 4 system bus 5 KBC 6 CRTC 7 MC 8 PRTC 9 KB 10 CRT 11 external memory 12 CPU 13 ROM 14 external memory 15 system bus 16 printing unit interface 17 printing unit 18 input unit 19 RAM 20 MC 1012 operation Part 1000 Printing device 1002 Laser driver 1003 Semiconductor laser 1004 Laser light 1005 Rotating polygon mirror 1006 Electrostatic drum 1007 Developing unit 1008 Paper cassette 1009 Paper feed roller 1010 Transport roller 1011 Transport roller 1012 Operation panel 1100 Formatter controller 1101 Receive buffer 1102 Command discrimination Part 1103 Command analysis part 1104 Command execution part 1105 Page memory 1106 Pattern control part 120 Interface 1300 output control unit 1400 printer engine unit 1500 secondary storage device 2000 host computer 3000 host computer

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 外部装置からの印刷データに基づいて、
記録媒体への記録を制御する印刷制御装置において、 二値のパターンデータ、前景色、背景色を指定するコマ
ンドを受信する受信手段と、 前記受信手段により受信した二値のパターンデータ、前
景色、背景色を指定するコマンドに基づいて多値パター
ンを生成する生成手段と、 前記生成手段により生成された多値パターンと文字また
は図形描画コマンドに基づいてイメージを展開する展開
手段とを有することを特徴とする印刷制御装置。
1. Based on print data from an external device,
In a print control device for controlling recording on a recording medium, receiving means for receiving a command designating binary pattern data, foreground color, background color, and binary pattern data, foreground color received by the receiving means, It has a generation means for generating a multi-valued pattern based on a command designating a background color, and a development means for developing an image based on the multi-valued pattern generated by the generation means and a character or graphic drawing command. And a print control device.
【請求項2】 前記展開手段により展開されたイメージ
を印刷する印刷手段を有することを特徴とする請求項1
記載の印刷制御装置。
2. A printing means for printing the image developed by the developing means.
The printing control device according to the above.
【請求項3】 前記生成した多値パターンを記憶する記
憶手段を有し、 前記展開手段は、受信した二値のパターンデータ、前景
色、背景色を指定するコマンドが一致していれば前記記
憶手段に記憶された多値パターンを使用することを特徴
とする請求項1記載の印刷制御装置。
3. A storage unit for storing the generated multi-valued pattern, wherein the expansion unit stores the binary pattern data, the foreground color, and the background color if the received commands match each other. 2. The print control device according to claim 1, wherein a multi-valued pattern stored in the means is used.
【請求項4】 外部装置からの印刷データに基づいて、
記録媒体への記録を制御する印刷制御装置において、 インデックス形式のパターンデータを受信する受信手段
と、インデックス番号に対応した色データを複数記憶す
るカラーテーブルと、パターンを構成するインデックス
番号とカラーテーブルに登録されている色データとに基
づいて多値パターンデータを生成する生成手段と、前記
生成手段により生成された多値パターンと文字または図
形描画コマンドとに基づいてイメージを展開する展開手
段とを有することを特徴とする印刷制御装置。
4. Based on print data from an external device,
In a print control device that controls recording on a recording medium, a receiving unit that receives pattern data in an index format, a color table that stores a plurality of color data corresponding to index numbers, an index number that forms a pattern, and a color table It has a generation means for generating multi-valued pattern data based on the registered color data, and a development means for developing an image based on the multi-valued pattern generated by the generation means and a character or graphic drawing command. A print control device characterized by the above.
【請求項5】 前記展開手段により展開された多値イメ
ージを印刷する印刷手段とを有することを特徴とする請
求項5記載の印刷制御装置。
5. The printing control apparatus according to claim 5, further comprising a printing unit that prints the multi-valued image developed by the developing unit.
【請求項6】 アプリケーションからの描画情報を印刷
データに変換し、前記印刷制御装置に転送する情報処理
装置であって、二値のパターンデータ、前景色、背景色
を指定するコマンドを前記印刷制御装置に送信する送信
手段を有する情報処理装置と、 請求項1ないし3記載の印刷制御装置とを具備すること
を特徴とする印刷システム。
6. An information processing device for converting drawing information from an application into print data and transferring the print data to the print control device, wherein the print control command is a command for specifying binary pattern data, foreground color and background color. A printing system, comprising: an information processing apparatus having a transmission unit for transmitting to the apparatus; and the print control apparatus according to claim 1.
【請求項7】 アプリケーションからの描画情報を印刷
データに変換し、前記印刷制御装置に転送する情報処理
装置であって、インデックス形式のパターンデータを前
記印刷制御装置に送信する送信手段を有する情報処理装
置と、 請求項4ないし5記載の印刷制御装置とを具備すること
を特徴とする印刷システム。
7. An information processing apparatus for converting drawing information from an application into print data and transferring the print data to the print control apparatus, the information processing apparatus having a transmission unit for transmitting pattern data in an index format to the print control apparatus. A printing system comprising: an apparatus; and the printing control apparatus according to claim 4.
【請求項8】 パターンを構成する色数を識別する識別
手段と、 前記識別手段による識別に基づいて、二値のパターンデ
ータ、前景色、背景色を指定するコマンドを転送する第
1のモード、あるいは、インデックス形式のパターンデ
ータを転送する第2のモードを選択する選択手段と、 前記選択手段により選択されたモードで印刷データを転
送することを特徴とする印刷システム。
8. A discriminating means for discriminating the number of colors forming a pattern, and a first mode for transferring a command for designating binary pattern data, a foreground color and a background color on the basis of discrimination by the discriminating means. Alternatively, the printing system is characterized by selecting means for selecting the second mode for transferring the pattern data in the index format, and transferring the print data in the mode selected by the selecting means.
【請求項9】 外部装置からの印刷データに基づいて、
記録媒体への記録を制御する印刷制御方法において、 二値のパターンデータ、前景色、背景色を指定するコマ
ンドを受信する受信工程と、 前記受信工程により受信した二値のパターンデータ、前
景色、背景色を指定するコマンドに基づいて多値パター
ンを生成する生成工程と、 前記生成工程により生成された多値パターンと文字また
は図形描画コマンドに基づいてイメージを展開する展開
工程とを有することを特徴とする印刷制御方法。
9. Based on print data from an external device,
In a print control method for controlling recording on a recording medium, a receiving step of receiving a command designating binary pattern data, foreground color, and background color, and binary pattern data, foreground color received by the receiving step, It has a generation step of generating a multi-valued pattern based on a command designating a background color, and a development step of developing an image based on the multi-valued pattern generated by the generation step and a character or figure drawing command. Print control method.
【請求項10】 前記展開手段により展開されたイメー
ジを印刷する印刷工程を有することを特徴とする請求項
9記載の印刷制御方法。
10. The print control method according to claim 9, further comprising a printing step of printing the image developed by the developing means.
【請求項11】 前記生成した多値パターンを記憶する
記憶手段を利用し、 前記展開手段は、受信した二値のパターンデータ、前景
色、背景色を指定するコマンドが一致していれば前記記
憶手段に記憶された多値パターンを使用することを特徴
とする請求項9記載の印刷制御方法。
11. The storage means for storing the generated multi-valued pattern is used, and the expansion means stores the received binary pattern data, if the commands for designating the foreground color and the background color match. 10. The print control method according to claim 9, wherein a multi-valued pattern stored in the means is used.
【請求項12】 外部装置からの印刷データに基づい
て、記録媒体への記録を制御する印刷制御方法におい
て、 インデックス形式のパターンデータを受信する受信工程
と、パターンを構成するインデックス番号とインデック
ス番号に対応した色データを複数記憶するカラーテーブ
ルに登録されている色データとに基づいて多値パターン
データを生成する生成工程と、前記生成工程により生成
された多値パターンと文字または図形描画コマンドとに
基づいてイメージを展開する展開工程とを有することを
特徴とする印刷制御方法。
12. A print control method for controlling recording on a recording medium based on print data from an external device, comprising: a receiving step of receiving pattern data in an index format, and an index number and an index number forming a pattern. A generating step of generating multi-valued pattern data based on color data registered in a color table storing a plurality of corresponding color data, and a multi-valued pattern and a character or figure drawing command generated by the generating step. And a developing step of developing an image based on the image.
【請求項13】 前記展開手段により展開されたイメー
ジを印刷する印刷工程とを有することを特徴とする請求
項12記載の印刷制御方法。
13. The printing control method according to claim 12, further comprising a printing step of printing the image developed by the developing means.
【請求項14】 外部装置からの印刷データに基づい
て、記録媒体への記録を制御するプログラムを記憶する
マイクロプロセッサにアクセスされるメモリであって、 二値のパターンデータ、前景色、背景色を指定するコマ
ンドを受信する受信プログラムと、 前記受信プログラムにより受信した二値のパターンデー
タ、前景色、背景色を指定するコマンドに基づいて多値
パターンを生成する生成プログラムと、 前記生成プログラムにより生成された多値パターンと文
字または図形描画コマンドに基づいてイメージを展開す
る展開プログラムとを記憶することを特徴とするマイク
ロプロセッサにアクセスされるメモリ。
14. A memory which is accessed by a microprocessor which stores a program for controlling recording on a recording medium based on print data from an external device, and which stores binary pattern data, foreground color and background color. A reception program for receiving a command to specify, a generation program for generating a multi-valued pattern based on a command for specifying binary pattern data, foreground color, and background color received by the reception program; and a generation program generated by the generation program. A memory accessed by a microprocessor, which stores a multi-valued pattern and a development program for developing an image based on a character or graphic drawing command.
【請求項15】 外部装置からの印刷データに基づい
て、記録媒体への記録を制御するプログラムを記憶する
マイクロプロセッサにアクセスされるメモリであって、 インデックス形式のパターンデータを受信する受信プロ
グラムと、パターンを構成するインデックス番号とイン
デックス番号に対応した色データを複数記憶するカラー
テーブルに登録されている色データとに基づいて多値パ
ターンデータを生成する生成プログラムと、前記生成プ
ログラムにより生成された多値パターンと文字または図
形描画コマンドとに基づいてイメージを展開する展開プ
ログラムとを記憶することを特徴とするマイクロプロセ
ッサにアクセスされるメモリ。
15. A reception program for receiving pattern data in an index format, the memory being accessed by a microprocessor that stores a program for controlling recording on a recording medium based on print data from an external device, A generation program that generates multi-valued pattern data based on index numbers that form a pattern and color data registered in a color table that stores a plurality of color data corresponding to the index numbers, and a generation program that is generated by the generation program. A memory accessed by a microprocessor, which stores a development program for developing an image based on a value pattern and a character or graphic drawing command.
JP8062830A 1996-03-19 1996-03-19 Printing controlling apparatus, printing system, printing controlling method, and memory Pending JPH09254445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8062830A JPH09254445A (en) 1996-03-19 1996-03-19 Printing controlling apparatus, printing system, printing controlling method, and memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8062830A JPH09254445A (en) 1996-03-19 1996-03-19 Printing controlling apparatus, printing system, printing controlling method, and memory

Publications (1)

Publication Number Publication Date
JPH09254445A true JPH09254445A (en) 1997-09-30

Family

ID=13211639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8062830A Pending JPH09254445A (en) 1996-03-19 1996-03-19 Printing controlling apparatus, printing system, printing controlling method, and memory

Country Status (1)

Country Link
JP (1) JPH09254445A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2441826A (en) * 2006-09-15 2008-03-19 Cametrics Ltd Printing apparatus using video-converted print data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2441826A (en) * 2006-09-15 2008-03-19 Cametrics Ltd Printing apparatus using video-converted print data
GB2441826B (en) * 2006-09-15 2011-03-23 Cametrics Ltd Industrial ink jet printing methods and apparatus

Similar Documents

Publication Publication Date Title
EP0849701B1 (en) Print control apparatus and print control method
JP3815767B2 (en) Image forming apparatus, method, image processing apparatus, method, and recording medium
US7440122B2 (en) Image processing apparatus managing user profiles, image processing method managing user profiles, and storage medium thereof
JPH11170655A (en) Method and apparatus for outputting image
JPH10297050A (en) Output controller, output control method, image processor, image processing method, and recording medium
US6388757B1 (en) Printing apparatus, printing system, and a method for acquiring character resources of the printing system
JPH0937062A (en) Device and method for processing image
US6016155A (en) Character processing apparatus, character processing method, and memory
JP2001101431A (en) Device and method for processing image
US6310693B1 (en) Printing control apparatus and method, and printing system for reducing processing overhead
US6061070A (en) Character outputting
JPH09254445A (en) Printing controlling apparatus, printing system, printing controlling method, and memory
JP3542370B2 (en) Print control device and print control method
JP4086425B2 (en) Image processing apparatus and method
US7359089B2 (en) Image processing method and apparatus
JP4464313B2 (en) Print control apparatus, print control method, and print control program
JP2003051929A (en) Image processing method and apparatus
JP4325339B2 (en) Printing system, host computer and printer driver
JPH09190313A (en) Printer control device and method therefor
JP3576622B2 (en) Image output apparatus and method and printing system
JP3453398B2 (en) Image processing system and image processing method
JP3862460B2 (en) Information processing method and apparatus, and storage medium
JP2001347708A (en) Apparatus and method for outputting image and storage medium
JP3495876B2 (en) Character output device, character output method, and storage medium storing computer readable program
JPH10175332A (en) Equipment and method for controlling printing, and storage medium storing program which can be read by computer

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050531

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050801

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060404

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060620