JPH09191406A - Output device and method thereof - Google Patents

Output device and method thereof

Info

Publication number
JPH09191406A
JPH09191406A JP8018272A JP1827296A JPH09191406A JP H09191406 A JPH09191406 A JP H09191406A JP 8018272 A JP8018272 A JP 8018272A JP 1827296 A JP1827296 A JP 1827296A JP H09191406 A JPH09191406 A JP H09191406A
Authority
JP
Japan
Prior art keywords
code
output device
predetermined
memory
intermediate code
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
JP8018272A
Other languages
Japanese (ja)
Inventor
Masamizu Kurimoto
雅水 栗本
Atsushi Kashiwabara
淳 柏原
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 JP8018272A priority Critical patent/JPH09191406A/en
Publication of JPH09191406A publication Critical patent/JPH09191406A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an output device outputting data without deteriorating the dignity of printing and the like even if memories which can be used are not sufficient. SOLUTION: If printing information is inputted in a page buffer when printing information expressed by a page description language is transmitted from a host computer 3000 through an interface 21, a printer control unit 1001 analyzes printing information stored in the page buffer, generates an intermediate code and preserves it in an intermediate code memory. When a space does not exist in the intermediate code memory and the intermediate code expressing a binary image exists in the intermediate code memory, a closed area is divided into the block of 4×4. The number of black picture elements existing in the closed area of 4×4 is counted and an obtained counted value is converted into a prescribed code and the intermediate code memory is cleared. Printing can be executed without deteriorating printing dignity even if memories which can be used are not sufficient by analyzing the intermediate code and generating the printing image.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は出力装置に関する。TECHNICAL FIELD The present invention relates to an output device.

【0002】[0002]

【従来の技術】従来、プリンタなどの出力装置はビット
イメージ形式で2値画像を出力していた。
2. Description of the Related Art Conventionally, an output device such as a printer outputs a binary image in a bit image format.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例では、2値画像をそのままビットイメージ形式で取
り扱っているので、使用可能なメモリが十分にない場
合、例えば解像度を下げて出力するということで対応し
ており、印刷などの品位が低下してしまうといった問題
があった。
However, in the above-mentioned conventional example, since the binary image is handled as it is in the bit image format, if there is not enough available memory, for example, the resolution is reduced and output is performed. The problem is that the quality of printing is reduced.

【0004】そこで、本発明は使用可能なメモリが十分
にない場合でも印刷などの品位を下げることなく出力す
る出力装置を提供することを目的とする。
Therefore, it is an object of the present invention to provide an output device for outputting without degrading the quality such as printing even when there is not enough available memory.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明の請求項1に係る出力装置は、多値データに
基づいて2値画像を出力する出力装置において、前記2
値画像を所定の閉領域に分け、該閉領域内の黒画素の数
を計数する画素計数手段と、該計数値に応じて所定のコ
ードを生成するコード生成手段と、該生成されたコード
をメモリに保存するデータ保存手段と、該保存されたコ
ードを所定の前記多値データに変換するデータ変換手段
とを備えたことを特徴とする。
In order to achieve the above object, an output device according to claim 1 of the present invention is an output device which outputs a binary image based on multivalued data, wherein
The value image is divided into predetermined closed areas, the pixel counting means for counting the number of black pixels in the closed areas, the code generation means for generating a predetermined code according to the count value, and the generated code It is characterized in that it is provided with a data storage means for storing in the memory and a data conversion means for converting the stored code into the predetermined multi-valued data.

【0006】請求項2に係る出力装置では、ドットパタ
ーンに基づいて2値画像を出力する出力装置において、
前記2値画像を所定の閉領域に分け、該閉領域内の黒画
素の数を計数する画素計数手段と、該計数値に応じて所
定のコードを生成するコード生成手段と、該生成された
コードをメモリに保存するデータ保存手段と、該保存さ
れたコードを所定の前記ドットパターンに変換するデー
タ変換手段とを備えたことを特徴とする。
According to a second aspect of the present invention, in the output device for outputting a binary image based on the dot pattern,
The binary image is divided into a predetermined closed area, the pixel counting means for counting the number of black pixels in the closed area, the code generating means for generating a predetermined code according to the counted value, and the generated code. It is characterized in that it is provided with a data storage means for storing the code in the memory and a data conversion means for converting the stored code into the predetermined dot pattern.

【0007】請求項3に係る出力装置では、請求項1ま
たは請求項2に係る出力装置において前記コード生成手
段は、前記計数値をヒストグラム化するヒストグラム作
成手段を備え、該ヒストグラム化された前記計数値の偏
りに応じてコードを生成することを特徴とする。
According to a third aspect of the present invention, in the output device according to the first or second aspect, the code generating means includes a histogram generating means for converting the count value into a histogram, and the histogram-converted total value. The feature is that the code is generated according to the bias of the numerical values.

【0008】請求項4に係る出力装置では、請求項1に
係る出力装置において前記データ変換手段は前記変換さ
れた多値データをキャッシュメモリに保存することを特
徴とする。
According to a fourth aspect of the present invention, in the output device according to the first aspect, the data converting means stores the converted multi-valued data in a cache memory.

【0009】請求項5に係る出力装置では、請求項2に
係る出力装置において前記データ変換手段は前記変換さ
れたドットパターンをキャッシュメモリに保存すること
を特徴とする。
According to a fifth aspect of the present invention, in the output device according to the second aspect, the data conversion means stores the converted dot pattern in a cache memory.

【0010】請求項6に係る出力方法は、多値データま
たはドットパターンに基づいて2値画像を出力する出力
方法において、前記2値画像を所定の閉領域に分け、該
閉領域内の黒画素の数を計数し、該計数値に応じて所定
のコードを生成し、該生成されたコードをメモリに保存
し、該保存されたコードを所定の前記多値データまたは
ドットパターンに変換することを特徴とする。
According to a sixth aspect of the present invention, in the output method of outputting a binary image based on multi-valued data or dot patterns, the binary image is divided into predetermined closed areas, and black pixels in the closed areas are divided. Counting the number of the data, generating a predetermined code according to the count value, storing the generated code in a memory, and converting the stored code into the predetermined multi-valued data or dot pattern. Characterize.

【0011】[0011]

【発明の実施の形態】本発明の出力装置の実施の形態に
ついて説明する。本実施の形態における出力装置はレー
ザビームプリンタ(LBP)に適用される。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of an output device of the present invention will be described. The output device in this embodiment is applied to a laser beam printer (LBP).

【0012】[第1の実施の形態]図1はレーザビーム
プリンタの構成を示す断面図である。図において、10
00はLBP本体であり、外部に接続されているワーク
ステーション(WS)やパーソナルコンピュータ(P
C)から送出されるプリンタ固有の制御言語(以下、ペ
ージ記述言語という)で表現された印刷情報(文字コー
ド等)やフォーム情報あるいはマクロ命令等を受けて記
憶すると共に、それらの情報に基づき対応する文字パタ
ーンやフォームパターン等を作成し、記録媒体である記
録紙などに像を形成する。
[First Embodiment] FIG. 1 is a sectional view showing the arrangement of a laser beam printer. In the figure, 10
00 is an LBP main body, which is a workstation (WS) or a personal computer (P
The print information (character code, etc.) expressed in the control language (hereinafter referred to as page description language) peculiar to the printer sent from C) is received and stored, and the information is handled based on the information. A character pattern, a form pattern, or the like is created and an image is formed on a recording medium such as recording paper.

【0013】1012は操作スイッチおよびLED表示
器などが配されている操作部、1001はLBP本体1
000全体の制御およびホストコンピュータから供給さ
れる文字情報などを解析するプリンタ制御ユニットであ
る。このプリンタ制御ユニット1001は、主に文字情
報を対応する文字パターンのビデオ信号に変換してレー
ザドライバ1002に出力する。
Reference numeral 1012 is an operation section in which operation switches and LED indicators are arranged, and 1001 is an LBP main body 1.
000 is a printer control unit that analyzes the overall control and character information supplied from the host computer. The printer control unit 1001 mainly converts character information into a video signal of a corresponding character pattern and outputs the video signal to a laser driver 1002.

【0014】レーザドライバ1002は半導体レーザ1
003を駆動する回路であり、入力されたビデオ信号に
応じて半導体レーザ1003から発射されるレーザ光1
004のオンオフを切り替える。
The laser driver 1002 is a semiconductor laser 1
A laser light 1 emitted from the semiconductor laser 1003 according to an input video signal.
Switch 004 on and off.

【0015】レーザ光1004は回転多面鏡1005で
左右方向に振らされ静電ドラム1006上を走査して露
光する。これにより、静電ドラム1006上には文字パ
ターンの静電潜像が形成されることになる。この潜像
は、静電ドラム1006の周囲に配設された現像ユニッ
ト1007により現像された後、記録紙に転写される。
The laser beam 1004 is oscillated in the left-right direction by the rotary polygon mirror 1005 to scan the electrostatic drum 1006 for exposure. As a result, an electrostatic latent image having a character pattern is formed on the electrostatic drum 1006. This latent image is developed by a developing unit 1007 disposed around the electrostatic drum 1006 and then transferred to a recording sheet.

【0016】記録紙にはカットシートが用いられ、カッ
トシート記録紙はLBP本体1000に装着された用紙
カセット1008に収納され、給紙ローラ1009およ
び搬送ローラ1010と搬送ローラ1011とにより装
置内に取り込まれて、静電ドラム1006に供給され
る。
Cut sheets are used as the recording sheets, and the cut sheet recording sheets are stored in a sheet cassette 1008 mounted on the LBP main body 1000 and taken into the apparatus by a sheet feeding roller 1009, a conveying roller 1010 and a conveying roller 1011. And is supplied to the electrostatic drum 1006.

【0017】また、LBP本体1000には、図示しな
いカードスロットを少なくとも1個以上備え、内蔵フォ
ントに加えてオプションフォントカード、言語系の異な
る制御カード(エミュレーションカード)を接続できる
ように構成されている。
The LBP main body 1000 has at least one or more card slots (not shown) so that an optional font card and a control card (emulation card) having a different language can be connected in addition to the built-in fonts. .

【0018】図2はプリンタ制御システムの構成を示す
ブロック図である。プリンタ制御システムは、プリンタ
制御ユニット1001、およびこのプリンタ制御ユニッ
ト1001に所定のインターフェース21を介して接続
されたホストコンピュータ3000から構成されてい
る。
FIG. 2 is a block diagram showing the configuration of the printer control system. The printer control system includes a printer control unit 1001 and a host computer 3000 connected to the printer control unit 1001 via a predetermined interface 21.

【0019】ホストコンピュータ3000は、ROM3
のプログラム用ROMに記憶された文書処理プログラム
などに基づいて図形、イメージ、文字、表(表計算など
を含む)などが混在した文書処理を実行するCPU1を
有し、システムバス4に接続される各部を総括的に制御
する。
The host computer 3000 has a ROM 3
Has a CPU 1 for executing document processing in which graphics, images, characters, tables (including spreadsheets, etc.) are mixed based on a document processing program stored in the program ROM, and is connected to the system bus 4. Control each part as a whole.

【0020】ROM3のプログラム用ROMはCPU1
の制御プログラムなどを記憶し、ROM3のフォント用
ROMは文書処理の際に使用するフォントデータなどを
記憶し、ROM3のデータ用ROMは文書処理の際に使
用する各種データを記憶する。
The program ROM of the ROM 3 is the CPU 1
Of the control program, the font ROM of the ROM 3 stores font data used in the document processing, and the data ROM of the ROM 3 stores various data used in the document processing.

【0021】図において、2はCPU1の主メモリとし
てのRAMであり、ワークエリアなどとして機能する。
5はキーボードコントローラ(KBC)であり、キーボ
ード9や図示しないポインティングデバイスからのキー
入力を制御する。6はCRTコントーラ(CRTC)で
あり、CRTディスプレイ(CRT)10の表示を制御
する。7はメモリコントローラ(MC)であり、ブート
プログラム、種々のアプリケーション、フォントデー
タ、ユーザファイル、編集ファイルなどを記憶するハー
ドディスク(HD)、フロッピーディスク(FD)など
の外部メモリ11とのアクセスを制御する。8はプリン
タコントローラ(PRTC)であり、所定のインターフ
ェース21を介してLBP本体1000に接続されて、
プリンタ制御ユニット1001との通信制御処理を実行
する。
In the figure, reference numeral 2 is a RAM as a main memory of the CPU 1, which functions as a work area or the like.
A keyboard controller (KBC) 5 controls key inputs from the keyboard 9 and a pointing device (not shown). A CRT controller (CRTC) 6 controls the display of a 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 LBP main body 1000 via a predetermined interface 21,
A communication control process with the printer control unit 1001 is executed.

【0022】尚、CPU1は、例えばRAM2上に設定
された表示情報RAMへのアウトラインフォントの展開
(ラスタライズ)処理を実行し、CRT10上でのWY
SIWYGを可能としている。また、CPU1は、CR
T10上での図示しないマウスカーソルなどで指示され
たコマンドに基づいて登録された種々のウィンドウを開
き、種々のデータ処理を実行する。
The CPU 1 executes, for example, an outline font rasterizing process on the display information RAM set on the RAM 2, and the WY on the CRT 10 is executed.
SIWYG is possible. Further, the CPU 1
Various windows registered based on commands designated by a mouse cursor (not shown) on T10 are opened, and various data processes are executed.

【0023】プリンタ制御ユニット1001において、
12はプリンタCPUであり、ROM13のプログラム
用ROMに記憶された制御プログラムなど、あるいは外
部メモリ14に記憶された制御プログラムなどに基づい
てシステムバス15に接続される各部とのアクセスを総
括的に制御し、印刷部インターフェース16を介して接
続される印刷部(プリンタエンジン)17に出力情報と
しての画像信号を出力する。
In the printer control unit 1001,
A printer CPU 12 generally controls access to each unit 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. Then, the image signal as output information is output to the printing unit (printer engine) 17 connected via the printing unit interface 16.

【0024】また、ROM13のプログラムROMは、
CPU12の制御プログラムなどを記憶する。ROM1
3のフォントROMは、出力情報を生成する際に使用す
るフォントデータなどを記憶し、ROM13のデータR
OMはハードディスクなどの外部メモリ14が無いプリ
ンタの場合、ホストコンピュータ上で利用される情報な
どを記憶する。
The program ROM of the ROM 13 is
The control program of the CPU 12 and the like are stored. ROM1
The font ROM 3 stores the font data and the like used when generating output information, and the data R of the ROM 13
In the case of a printer without an external memory 14 such as a hard disk, the OM stores information used on the host computer.

【0025】CPU12は入力部18を介してホストコ
ンピュータ3000との通信処理が可能となっており、
プリンタ内の情報などをホストコンピュータ3000に
通知可能に構成されている。
The CPU 12 is capable of communicating with the host computer 3000 via the input unit 18.
The host computer 3000 can be notified of information in the printer and the like.

【0026】19はCPU12の主メモリとしてのRA
Mであり、ワークエリアなどとして機能する。また、図
示しない増設ポートに接続されるオプションRAMによ
りメモリ容量を拡張することができるように構成されて
いる。尚、RAM19は、出力情報展開領域、環境デー
タ格納領域、NVRAMなどに用いられる。
Reference numeral 19 denotes an RA as a main memory of the CPU 12.
M, which functions as a work area or the like. The memory capacity can be expanded by an optional RAM connected to an expansion port (not shown). The RAM 19 is used as an output information expansion area, environment data storage area, NVRAM, and the like.

【0027】前述のハードディスク(HD)、ICカー
ドなどの外部メモリ14は、メモリコントローラ(M
C)20によりアクセス制御される。外部メモリ14は
オプションとして接続され、フォントデータ、エミュレ
ーションプログラム、フォームデータなどを記憶する。
また、18は前述した操作パネルであり、操作スイッチ
およびLED表示器が配されている。
The external memory 14 such as the above-mentioned hard disk (HD) or IC card is a memory controller (M
C) Access is controlled by 20. The external memory 14 is connected as an option and stores font data, emulation programs, form data, and the like.
Reference numeral 18 denotes the above-described operation panel, on which operation switches and LED indicators are arranged.

【0028】また、前述した外部メモリは1個に限ら
ず、少なくとも1個以上備え、内蔵フォントに加えてオ
プションフォントカード、言語系の異なるプリンタ制御
言語を解釈するプログラムを格納した外部メモリを複数
接続できるように構成しても良い。さらに、図示しない
NVRAMを有し、操作パネル1012からのプリンタ
モード設定情報を記憶するようにしても良い。
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 are connected. It may be configured to be possible. Further, an NVRAM (not shown) may be provided to store the printer mode setting information from the operation panel 1012.

【0029】つぎに、上記構成を有するプリンタの動作
について説明する。図3はホストコンピュータ3000
からページ記述言語で表現された印刷情報がインターフ
ェース21を介して送出された場合、プリンタ制御ユニ
ット1001が行う制御処理手順を示すフローチャート
である。
Next, the operation of the printer having the above configuration will be described. FIG. 3 shows a host computer 3000.
6 is a flowchart showing a control processing procedure performed by the printer control unit 1001 when print information expressed in a page description language is sent from the printer via the interface 21.

【0030】まず、RAM19のページバッファ領域に
印刷情報が入っているか否かを判別する(ステップS1
0)。ページバッファに印刷情報が入っていない場合、
ページバッファの監視を続け、ページバッファに印刷情
報が入っている場合、ページバッファに格納された印刷
情報を解析する(ステップS11)。
First, it is determined whether or not print information is stored in the page buffer area of the RAM 19 (step S1).
0). If there is no print information in the page buffer,
Continuing to monitor the page buffer, if print information is stored in the page buffer, the print information stored in the page buffer is analyzed (step S11).

【0031】解析された印刷情報に基づいてページ印刷
のための中間コードを生成し、RAM19の中間コード
保存のために割り当てられた領域(以下、中間コードメ
モリという)に保存する(ステップS12)。
An intermediate code for printing a page is generated based on the analyzed print information, and is stored in an area (hereinafter referred to as an intermediate code memory) allocated for storing the intermediate code in the RAM 19 (step S12).

【0032】中間コードメモリを監視し(ステップS1
3)、中間コードメモリが空いていない場合、2値イメ
ージを表す中間コードが中間コードメモリに存在するか
否かを判別する(ステップS14)。2値イメージを表
す中間コードが中間コードメモリに存在した場合、ステ
ップS15以降の処理に移行する。
The intermediate code memory is monitored (step S1
3) If the intermediate code memory is not empty, it is determined whether or not the intermediate code representing the binary image exists in the intermediate code memory (step S14). If the intermediate code representing the binary image is present in the intermediate code memory, the process proceeds to step S15 and the subsequent steps.

【0033】ステップS15では、例えば、2値画像の
閉領域を4×4のブロックに分割する。4×4の閉領域
に存在する黒画素の個数を計数する(ステップS1
6)。さらに、得られた計数値を所定コードに変換する
(ステップS17)。通常、4×4=16ビット必要と
するが、計数値毎に多値データ(または、ドットパター
ン)を対応させた後、計数値をコード化して保存すれ
ば、計数値は0〜15であるので、00000〜100
00までの5ビットで表現でき、データを減らすことが
できる。これらの処理ルーチンは1ページ内にイメージ
領域が多く存在した場合に有効である。
In step S15, for example, the closed area of the binary image is divided into 4 × 4 blocks. The number of black pixels existing in the 4 × 4 closed area is counted (step S1).
6). Further, the obtained count value is converted into a predetermined code (step S17). Normally, 4 × 4 = 16 bits are required, but if the multivalued data (or dot pattern) is associated with each count value and then the count value is coded and stored, the count value is 0 to 15. So 0000-100
It can be expressed by 5 bits up to 00, and data can be reduced. These processing routines are effective when there are many image areas in one page.

【0034】一方、ステップS14で2値イメージを表
す中間コードが中間コードメモリに存在しない場合、つ
まり圧縮処理できない場合、中間コードメモリを空ける
ために作成された中間コードを解析し(ステップS1
8)、低解像度である1ページ分の印刷イメージ作成用
メモリを再マッピングして低解像度の印刷イメージを作
成する(ステップS19)。中間コードメモリを空ける
と(ステップS20)、ステップS13の処理に戻る。
On the other hand, if the intermediate code representing the binary image does not exist in the intermediate code memory in step S14, that is, if the compression process cannot be performed, the intermediate code created to free the intermediate code memory is analyzed (step S1.
8) Re-mapping the low-resolution print image creation memory for one page to create a low-resolution print image (step S19). When the intermediate code memory is opened (step S20), the process returns to step S13.

【0035】また、ステップS13で中間コードメモリ
が空いている場合、1ページ分の印刷イメージを作成す
るための中間コードが作成できたか否かを判別し(ステ
ップS21)、作成できない場合、ステップS10の処
理に戻る。一方、作成できた場合、印刷すべき1ページ
分の中間コードを解析する(ステップS22)。解析さ
れた中間コードに基づき印刷イメージを作成する(ステ
ップS23)。
If the intermediate code memory is empty in step S13, it is determined whether or not the intermediate code for creating the print image for one page has been created (step S21). If the intermediate code cannot be created, step S10 is executed. Return to processing. On the other hand, if it can be created, the intermediate code for one page to be printed is analyzed (step S22). A print image is created based on the analyzed intermediate code (step S23).

【0036】このとき、中間コードがステップS15〜
S17に示した一連のデータ圧縮処理を通して作成され
るものである場合、イメージを表す中間コードから印刷
イメージを作成するためには変換される中間コードは対
応する多値データ(または、ドットパターン)に戻され
る。
At this time, the intermediate code is from step S15.
In the case where the intermediate code representing the image is created through the series of data compression processing shown in S17, the intermediate code to be converted into the corresponding multi-valued data (or dot pattern) in order to create the print image. Will be returned.

【0037】尚、多値データに戻す際、戻された多値デ
ータをキャッシュメモリに保存しておくことにより再び
印刷イメージを作成する場合に高速化を図ることができ
る。
When returning to multi-valued data, the returned multi-valued data is stored in the cache memory, so that the speed can be increased when a print image is created again.

【0038】このように、本実施の形態における印刷装
置によれば、2値イメージを取り扱うことでデータ量を
減らすことができ、解像度を下げて印刷しなければなら
ない頻度を低減できる。
As described above, according to the printing apparatus of this embodiment, the amount of data can be reduced by handling the binary image, and the frequency of printing with reduced resolution can be reduced.

【0039】[第2の実施の形態]図4は第2の実施の
形態におけるプリンタ制御ユニット1001が行う制御
処理手順を示すフローチャートである。第2の実施の形
態では、前記第1の実施の形態と較べ、データ圧縮処理
において黒画素の計数値をコード化する方法が異なる。
[Second Embodiment] FIG. 4 is a flowchart showing a control processing procedure performed by the printer control unit 1001 according to the second embodiment. The second embodiment is different from the first embodiment in the method of encoding the count value of black pixels in the data compression processing.

【0040】前記第1の実施の形態と同一のステップ処
理には同一のステップ番号を付してその説明を省略す
る。ステップS17Aでは、計数値のヒストグラムを作
成する。ステップS17Bでは、ヒストグラム化された
各計数値の頻度を考慮してコード化する。
The same step number is assigned to the same step process as that of the first embodiment, and the description thereof is omitted. In step S17A, a histogram of count values is created. In step S17B, coding is performed in consideration of the frequency of each histogram-counted value.

【0041】図5は4×4の閉領域でステップS17
A、S17Bを実行したときの処理結果を示す説明図で
ある。ステップS17Aを実行することによりヒストグ
ラムが作成され、さらにステップS17Bでこの作成さ
れたヒストグラムで示された頻度によって頻度が高い計
数値には短い変換コードを割り当て、また頻度が低いも
のに関しては長いコードを割り当てることで、一般に等
長にコードを割り当てる場合よりデータが効率良く圧縮
される。
FIG. 5 shows a closed area of 4 × 4 in step S17.
It is explanatory drawing which shows the process result when A and S17B are performed. A histogram is created by executing step S17A, and a short conversion code is assigned to a count value having a high frequency according to the frequency shown in the created histogram in step S17B, and a long code is assigned to a count value having a low frequency. By allocating, the data is generally compressed more efficiently than in the case of allocating codes of equal length.

【0042】尚、本発明は複数の機器から構成されるシ
ステムに適用してもよいし、1つの機器からなる装置に
適用してもよい。また、本発明はシステムあるいは装置
にプログラムを供給することによって達成される場合に
も適用できることはいうまでもない。この場合、本発明
を達成するためのソフトウェアによって表されるプログ
ラムを格納した記憶媒体をシステムあるいは装置に読み
出すことによってそのシステムあるいは装置が本発明の
効果を享受することが可能となる。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus. In this case, by reading out a storage medium storing a program represented by software for achieving the present invention into a system or an apparatus, the system or the apparatus can enjoy the effects of the present invention.

【0043】[0043]

【発明の効果】本発明の請求項1に係る出力装置によれ
ば、多値データに基づいて2値画像を出力する際、画素
計数手段により前記2値画像を所定の閉領域に分け、該
閉領域内の黒画素の数を計数し、コード生成手段により
該計数値に応じて所定のコードを生成し、データ保存手
段により該生成されたコードをメモリに保存し、データ
変換手段により該保存されたコードを所定の前記多値デ
ータに変換するので、使用可能なメモリが十分にない場
合でも印刷などの品位を下げることなく出力できる。し
たがって、従来と同じ容量のメモリでも解像度を下げて
印刷する頻度を下げることができ、高品位な印字品質を
保つことができる。
According to the output device of the first aspect of the present invention, when a binary image is output based on multivalued data, the binary image is divided into predetermined closed regions by the pixel counting means, The number of black pixels in the closed area is counted, a predetermined code is generated by the code generation means according to the count value, the generated code is stored in the memory by the data storage means, and the stored by the data conversion means. Since the generated code is converted into the predetermined multi-valued data, it can be output without degrading the quality such as printing even when the available memory is insufficient. Therefore, even with a memory having the same capacity as the conventional one, it is possible to reduce the resolution and reduce the frequency of printing, and it is possible to maintain high-quality printing quality.

【0044】請求項2に係る出力装置によれば、ドット
パターンに基づいて2値画像を出力する際、画素計数手
段により前記2値画像を所定の閉領域に分け、該閉領域
内の黒画素の数を計数し、コード生成手段により該計数
値に応じて所定のコードを生成し、データ保存手段によ
り該生成されたコードをメモリに保存し、データ変換手
段により該保存されたコードを所定の前記ドットパター
ンに変換するので、ドットパターンで出力する際に使用
可能なメモリが十分にない場合でも印刷などの品位を下
げることなく出力できる。
According to the output device of the second aspect, when the binary image is output based on the dot pattern, the binary image is divided into predetermined closed regions by the pixel counting means, and the black pixels in the closed regions are divided. , The code generation means generates a predetermined code according to the counted value, the data storage means stores the generated code in a memory, and the data conversion means stores the stored code in a predetermined manner. Since the dot pattern is converted, it is possible to output without lowering the quality such as printing even when there is not enough available memory when outputting with the dot pattern.

【0045】請求項3に係る出力装置によれば、前記コ
ード生成手段は、前記計数値をヒストグラム化するヒス
トグラム作成手段を備え、該ヒストグラム化された前記
計数値の偏りに応じてコードを生成するので、ヒストグ
ラムで示される計数値の頻度によって、例えば頻度が高
い計数値には短い変換コードを割り当て、また頻度が低
いものに関しては長いコードを割り当てることで一般に
等長にコードを割り当てる場合よりデータを効率良く圧
縮できる。
According to the output device of the third aspect, the code generating means includes a histogram generating means for converting the count value into a histogram, and generates a code according to the bias of the histogram-ized count value. Therefore, depending on the frequency of the count value shown in the histogram, for example, assigning a short conversion code to a count value having a high frequency, and assigning a long code to a count value having a low frequency, the data is generally assigned in the same length. Can be compressed efficiently.

【0046】請求項4に係る出力装置によれば、前記デ
ータ変換手段は前記変換された多値データをキャッシュ
メモリに保存するので、キャッシュメモリに保存された
多値データを読み出すことにより高速化を図ることがで
きる。
According to the output device of the fourth aspect, the data converting means stores the converted multi-valued data in the cache memory. Therefore, the multi-valued data stored in the cache memory is read out to increase the speed. Can be planned.

【0047】請求項5に係る出力装置によれば、前記デ
ータ変換手段は前記変換されたドットパターンをキャッ
シュメモリに保存するので、キャッシュメモリに保存さ
れたドットパターンを読み出すことにより高速化を図る
ことができる。
According to the output device of the fifth aspect, since the data conversion means stores the converted dot pattern in the cache memory, the speed can be increased by reading the dot pattern stored in the cache memory. You can

【0048】請求項6に係る出力方法によれば、多値デ
ータまたはドットパターンに基づいて2値画像を出力す
る出力方法において、前記2値画像を所定の閉領域に分
け、該閉領域内の黒画素の数を計数し、該計数値に応じ
て所定のコードを生成し、該生成されたコードをメモリ
に保存し、該保存されたコードを所定の前記多値データ
またはドットパターンに変換するので、使用可能なメモ
リが十分にない場合でも印刷などの品位を下げることな
く出力できる。
According to the sixth aspect of the output method, in the output method of outputting a binary image based on multi-valued data or a dot pattern, the binary image is divided into predetermined closed regions, and within the closed regions. The number of black pixels is counted, a predetermined code is generated according to the count value, the generated code is stored in a memory, and the stored code is converted into the predetermined multi-valued data or dot pattern. Therefore, even if the available memory is insufficient, it is possible to output without degrading the quality such as printing.

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

【図1】レーザビームプリンタの構成を示す断面図であ
る。
FIG. 1 is a sectional view showing a configuration of a laser beam printer.

【図2】プリンタ制御システムの構成を示すブロック図
である。
FIG. 2 is a block diagram showing a configuration of a printer control system.

【図3】ホストコンピュータ3000からページ記述言
語で表現された印刷情報がインターフェース21を介し
て送出された場合、プリンタ制御ユニット1001が行
う制御処理手順を示すフローチャートである。
FIG. 3 is a flowchart showing a control processing procedure performed by a printer control unit 1001 when print information expressed in a page description language is sent from a host computer 3000 via an interface 21.

【図4】第2の実施の形態におけるプリンタ制御ユニッ
ト1001が行う制御処理手順を示すフローチャートで
ある。
FIG. 4 is a flowchart showing a control processing procedure performed by a printer control unit 1001 according to the second embodiment.

【図5】4×4の閉領域でステップS17A、S17B
を実行したときの処理結果を示す説明図である。
FIG. 5 shows steps S17A and S17B in a 4 × 4 closed region.
It is explanatory drawing which shows the process result at the time of performing.

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

12 CPU 13 ROM 19 RAM 1001 プリンタ制御ユニット 12 CPU 13 ROM 19 RAM 1001 Printer control unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 多値データに基づいて2値画像を出力す
る出力装置において、 前記2値画像を所定の閉領域に分け、該閉領域内の黒画
素の数を計数する画素計数手段と、 該計数値に応じて所定のコードを生成するコード生成手
段と、 該生成されたコードをメモリに保存するデータ保存手段
と、 該保存されたコードを所定の前記多値データに変換する
データ変換手段とを備えたことを特徴とする出力装置。
1. An output device for outputting a binary image based on multi-valued data, wherein the binary image is divided into predetermined closed regions, and pixel counting means for counting the number of black pixels in the closed regions, Code generation means for generating a predetermined code according to the count value, data storage means for storing the generated code in a memory, and data conversion means for converting the stored code into the predetermined multi-valued data. An output device comprising:
【請求項2】 ドットパターンに基づいて2値画像を出
力する出力装置において、 前記2値画像を所定の閉領域に分け、該閉領域内の黒画
素の数を計数する画素計数手段と、 該計数値に応じて所定のコードを生成するコード生成手
段と、 該生成されたコードをメモリに保存するデータ保存手段
と、 該保存されたコードを所定の前記ドットパターンに変換
するデータ変換手段とを備えたことを特徴とする出力装
置。
2. An output device for outputting a binary image based on a dot pattern, wherein the binary image is divided into predetermined closed regions, and pixel counting means for counting the number of black pixels in the closed regions, Code generation means for generating a predetermined code according to the count value, data storage means for storing the generated code in a memory, and data conversion means for converting the stored code into the predetermined dot pattern. An output device characterized by being provided.
【請求項3】 前記コード生成手段は、前記計数値をヒ
ストグラム化するヒストグラム作成手段を備え、 該ヒストグラム化された前記計数値の偏りに応じてコー
ドを生成することを特徴とする請求項1または請求項2
記載の出力装置。
3. The code generating means includes a histogram creating means for converting the count value into a histogram, and generates a code according to a bias of the histogram-ized count value. Claim 2
The output device described.
【請求項4】 前記データ変換手段は前記変換された多
値データをキャッシュメモリに保存することを特徴とす
る請求項1記載の出力装置。
4. The output device according to claim 1, wherein the data conversion means stores the converted multi-valued data in a cache memory.
【請求項5】 前記データ変換手段は前記変換されたド
ットパターンをキャッシュメモリに保存することを特徴
とする請求項2記載の出力装置。
5. The output device according to claim 2, wherein the data conversion unit stores the converted dot pattern in a cache memory.
【請求項6】 多値データまたはドットパターンに基づ
いて2値画像を出力する出力方法において、 前記2値画像を所定の閉領域に分け、該閉領域内の黒画
素の数を計数し、 該計数値に応じて所定のコードを生成し、 該生成されたコードをメモリに保存し、 該保存されたコードを所定の前記多値データまたはドッ
トパターンに変換することを特徴とする出力方法。
6. An output method for outputting a binary image based on multi-valued data or a dot pattern, dividing the binary image into predetermined closed regions, counting the number of black pixels in the closed regions, An output method, wherein a predetermined code is generated according to a count value, the generated code is stored in a memory, and the stored code is converted into the predetermined multi-valued data or dot pattern.
JP8018272A 1996-01-10 1996-01-10 Output device and method thereof Pending JPH09191406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8018272A JPH09191406A (en) 1996-01-10 1996-01-10 Output device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8018272A JPH09191406A (en) 1996-01-10 1996-01-10 Output device and method thereof

Publications (1)

Publication Number Publication Date
JPH09191406A true JPH09191406A (en) 1997-07-22

Family

ID=11967025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8018272A Pending JPH09191406A (en) 1996-01-10 1996-01-10 Output device and method thereof

Country Status (1)

Country Link
JP (1) JPH09191406A (en)

Similar Documents

Publication Publication Date Title
US6611347B1 (en) Print control apparatus, print control method, storage medium, and computer readable program performing a form overlay process
US6247028B1 (en) Controlling attributes of pre-registered form data to match those of data to be printed with the form data
JP3634447B2 (en) Image processing apparatus and method
US5522028A (en) Output apparatus
JPH06169405A (en) Method and device for data compressing/expanding
US6310693B1 (en) Printing control apparatus and method, and printing system for reducing processing overhead
JP3327650B2 (en) Recording device
JPH0916149A (en) Character processor, character processing method, and memory
US7787707B2 (en) Image-processing device performing image process on raster image data in response to received specific code
JPH09191406A (en) Output device and method thereof
JP3728083B2 (en) Image output apparatus and image output method
JP2001312383A (en) Printer, high speed printing method and storage medium
JP3792881B2 (en) Image processing apparatus, data processing method for image processing apparatus, and storage medium storing computer-readable program
JP4325339B2 (en) Printing system, host computer and printer driver
JP2972466B2 (en) Dot pattern compression method and apparatus and output method and apparatus
JP3927733B2 (en) Image processing apparatus and method
JP2002059596A (en) Data processing device, data processing system, data processing method, printing device, printing system, printing method and medium providing processing program
JP3327744B2 (en) Recording apparatus and method, and computer control apparatus
JP3098679B2 (en) PRINTING APPARATUS, PRINTING SYSTEM, AND PRINT CONTROL METHOD
JP2006159458A (en) Image output device
JP3428817B2 (en) Print control device and method
JPH11164127A (en) Image processor, and method and storage medium therefor
JP2000033730A (en) Printer, control thereof and printing system
JP2942117B2 (en) Output device
JPH1110965A (en) Image output system and image output method