JPH0243067A - Interface device of printer - Google Patents
Interface device of printerInfo
- Publication number
- JPH0243067A JPH0243067A JP19414888A JP19414888A JPH0243067A JP H0243067 A JPH0243067 A JP H0243067A JP 19414888 A JP19414888 A JP 19414888A JP 19414888 A JP19414888 A JP 19414888A JP H0243067 A JPH0243067 A JP H0243067A
- Authority
- JP
- Japan
- Prior art keywords
- data
- font
- pseudo
- image
- memory
- 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
Links
- 230000015654 memory Effects 0.000 claims abstract description 113
- 238000012545 processing Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 12
- 238000000034 method Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 108091008695 photoreceptors Proteins 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Laser Beam Printer (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、プリンタのインタフェース装置に関し、例え
ばドツトプリンタ用のイメージデータを出力するホスト
コンピュータにページプリンタを接続してプリントする
場合に利用される。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer interface device, and is used, for example, when printing by connecting a page printer to a host computer that outputs image data for a dot printer.
レーザビームと電子写真プロセスとを利用したレーザプ
リンタは、高速且つ高密度の印字又は画像記録が行える
ため、コンピュータを使用した各種データ処理システム
や画像作成システムの出力装置として広い用途を有して
いる。Laser printers that utilize laser beams and electrophotographic processes are capable of high-speed, high-density printing or image recording, and are therefore widely used as output devices for various data processing systems and image creation systems that use computers. .
レーザプリンタは、複数ビットからなるイメージデータ
を含んだ多数の画像データを画像イメージに応じて2次
元の仮想画面であるビットマツプメモリに展開して書き
込み、その後、ビットマップメモリを走査してデータを
読み出し画像形成を行うようになっている。ビ・シトマ
ツプメモリに1ペ一ジ分の画像を書き込み、これを読み
出して1ペ一ジ単位で印字を行うため、ページプリンタ
とも呼ばれている。但し、1ペ一ジ単位ではなく、2ペ
一ジ単位や半ページ単位、その他のページ単位であって
もページプリンタという。A laser printer develops and writes a large amount of image data including image data consisting of multiple bits into a bitmap memory, which is a two-dimensional virtual screen, according to the image, and then scans the bitmap memory to write the data. Readout image formation is performed. It is also called a page printer because it writes an image for one page in the bi-sitomap memory, reads it out, and prints one page at a time. However, it is called a page printer even if it prints not only one page but two pages, half a page, or other pages.
ホストコンピュータからページプリンタへの記録情報は
、通常、1本の信号ラインを用いてシリアルデータとし
て送られてくる。そして、ホストコンピュータからの記
録情報をビットマツプメモリに展開して書き込むにあた
っては、その記録情報が記録すべき画像を構成する文字
に対応した文字情報としてのキャラクタコードである場
合には、各キャラクタコード毎のフォントデータをフォ
ントメモリから読み出してビットマツプ上の所定の位置
に書き込み、その記録情報が記録すべき画像そのものに
対応した画像情報としてのイメージデータである場合に
は、そのイメージデータをピントマツプメモリの所定の
領域に走査して書き込むように構成されている。Recording information from a host computer to a page printer is normally sent as serial data using one signal line. When the recorded information from the host computer is developed and written to the bitmap memory, if the recorded information is a character code as character information corresponding to the characters constituting the image to be recorded, each character code is If the recorded information is image data as image information corresponding to the image itself to be recorded, the image data is read out from the font memory and written to a predetermined position on the bitmap. The device is configured to scan and write to a predetermined area of the image.
ところで、画像情報や文字情報等の記録情報を記録する
ためのプリンタとしては、上述のページプリンタの他、
より普及しているインパクト式のワイヤドツトプリンタ
が知られている。By the way, in addition to the above-mentioned page printers, there are other printers for recording record information such as image information and character information.
Impact-type wire dot printers are known, which are more popular.
ワイヤドツトプリンタは、例えば8個、16個、又は2
4個など、複数個のワイヤピンを縦方向に配設した記録
ヘッドを持ち、この記録ヘッドを横方向に移動させなが
ら、記録情報に応じて複数個のワイヤピンを選択的にハ
ンマで打撃し、インクリボンを介して紙面に記録するよ
うにしたものである。したがって、ワイヤドツトプリン
タを出力端末機として用いる場合のホストコンピュータ
からの記録情報は、記録すべき画像そのものに対応した
イメージデータの場合、そのイメージデータは、ワイヤ
ピンの個数に対応するビット数のデータを、記録ヘッド
の横方向の移動に対応するように順次シリアルに出力す
るように構成されている。Wire dot printers may have 8, 16, or 2 wire dot printers, for example.
It has a recording head with a plurality of wire pins arranged vertically, such as four wire pins, and while moving the recording head in the horizontal direction, the plurality of wire pins are selectively hit with a hammer according to the recording information, and the ink is injected. It is designed to record on paper via a ribbon. Therefore, when the recorded information from the host computer when using a wire dot printer as an output terminal is image data corresponding to the image itself to be recorded, the image data is data with a number of bits corresponding to the number of wire pins. It is configured to sequentially and serially output data in response to the horizontal movement of the recording head.
このように、従来では、ホストコンピュータとそれの出
力末端機としてのプリンタとからなる記録用のシステム
は、それら同士の間で伝送される記録情報の構成(プロ
トコル)の違いから、それらの専用の組合わせをもって
構成されていた。Conventionally, a recording system consisting of a host computer and a printer as its output end device has a dedicated It was made up of combinations.
(発明が解決しようとする課題〕
しかし、レーザプリンタの価格が低下してきたことから
、ワイヤドツトプリンタとそれに適応するホストコンピ
ュータとからなる記録用のシステムにおいても、レーザ
プリンタを接続して使用したいという要望が多くなって
きた。そのため、ホストコンピュータとレーザプリンタ
との間に接続するためのインタフェース装置、又はレー
ザプリンタ内に組み込んでレーザプリンタをホストコン
ピュータに直接に接続可能とするためのインタフェース
装置が必要である。(Problem to be Solved by the Invention) However, as the price of laser printers has decreased, there has been a desire to connect and use laser printers even in recording systems consisting of wire dot printers and compatible host computers. Therefore, there is a need for an interface device to connect between a host computer and a laser printer, or an interface device to be built into a laser printer so that the laser printer can be directly connected to the host computer. be.
このようなインタフェース装置として、全構成をハード
ウェアによって実現することが考えられるが、その場合
には、単一のプロトコルに対応させるにもハードウェア
の追加によるコストアンプを招来する虞があり、また、
多種類のプロトコルに対応させるためには、各プロトコ
ル専用のハードウェアが必要となり、構成の複雑化や甚
大なコストアンプを招来する虞がある。It is conceivable that the entire configuration of such an interface device could be realized by hardware, but in that case, there is a risk that adding hardware to support a single protocol would increase costs, and ,
In order to support multiple types of protocols, dedicated hardware for each protocol is required, which may lead to a complicated configuration and a significant cost increase.
したがって、コスト的に有利に且つ多種類のプロトコル
にも容易に対応できるようにするためには、データの処
理過程の変更だけでそれらへの対処が可能なプロトコル
変換用のエミュレータによってソフト的にインタフェー
ス装置を実現する必要がある。Therefore, in order to be cost-effective and easily compatible with a wide variety of protocols, it is necessary to create a software interface using a protocol conversion emulator that can handle them simply by changing the data processing process. It is necessary to realize the device.
また、ページプリンタにおいては、−船釣にドツト密度
(画素密度)がワイヤドツトプリンタに比べて高いため
、ワイヤドツトプリンタ用のデータを単にビット単位で
対応するように変換しただけでは、ページプリンタによ
り形成される画像が必要とする画像のサイズよりも小さ
なサイズのものしか得られないという問題も生じる。In addition, since the dot density (pixel density) of page printers is higher than that of wire dot printers, simply converting the data for wire dot printers so that they correspond bit by bit will not allow the data formed by the page printer to be processed. A problem also arises in that only images of a smaller size than the required image size can be obtained.
そのため、たとえプロトコル変換用のエミュレータを用
意したとしても、上述のようにドツト密度の相違という
問題がある場合には、変換後のデータをさらに拡大処理
する等の後処理が必要となり、処理速度が大幅に低下す
る虞もある。Therefore, even if an emulator for protocol conversion is prepared, if there is a problem with the difference in dot density as described above, post-processing such as further enlargement of the converted data will be required, which will slow down the processing speed. There is also a risk that it will decline significantly.
本発明は、上述の問題に鑑み、ワイヤドツトプリンタの
代わりにページプリンタを使用することを可能にし、し
かも高速な記録が可能であり、画像の大きさを種々設定
することの可能なインタフェース装置を提供することを
目的としている。In view of the above-mentioned problems, the present invention provides an interface device that allows a page printer to be used instead of a wire dot printer, allows high-speed recording, and allows various image sizes to be set. It is intended to.
本発明は、上述の課題を解決するため、複数ビットから
なるイメージデータを含んだ多数の画像データを画像イ
メージに応じてビットマツプメモリに展開して書き込み
、該ビットマツプメモリに書き込まれたデータを走査し
て読み出すようにしたプリンタのインタフェース装置に
おいて、種々のイメージデータについて、それぞれのイ
メージデータのイメージに対応して構成された疑似フォ
ントデータを多数格納した疑似フォントメモリと、イメ
ージデータに対応した疑(以フォントデータを前記間(
以フォントメモリから読み出す疑似フォント読出し手段
と、前記疑似フォント読出し手段により読み出された疑
似フォントデータの書き込み位置を画像イメージに応じ
て指定し前記ビットマツプメモリへ書き込む疑似フォン
トデータ書込み手段と、を存してなることを特徴として
構成される。In order to solve the above-mentioned problems, the present invention develops and writes a large amount of image data including image data consisting of multiple bits into a bitmap memory according to the image image, and writes the data written into the bitmap memory. In a printer interface device that scans and reads out various image data, there is a pseudo font memory that stores a large amount of pseudo font data configured corresponding to the image of each image data, and a pseudo font memory that stores a large number of pseudo font data configured corresponding to the image of each image data. (Please input the font data between the above (
The present invention includes pseudo font reading means for reading from the font memory, and pseudo font data writing means for specifying a writing position of the pseudo font data read by the pseudo font reading means according to the image image and writing it into the bitmap memory. It is composed of the following characteristics:
疑似フォントメモリは、種々のイメージデータについて
、それぞれのイメージデータのイメージに対応して構成
された疑似フォントデータを多数格納している。The pseudo font memory stores a large number of pseudo font data configured to correspond to images of various image data.
疑似フォント読出し手段は、例えばホストコンピュータ
から出力されるバイト単位のイメージデータを、それが
あたかもキャラクタコードであるかのように取り扱い、
キャラクタコードに対応するフォントデータを読み出す
のと同様に、イメージデータに対応する疑(以フォント
データを疑似フォントメモリから読み出す。The pseudo font reading means handles byte unit image data output from a host computer, for example, as if it were a character code,
Similar to reading the font data corresponding to the character code, the pseudo font data corresponding to the image data is read from the pseudo font memory.
疑似フォントデータ書込み手段は、疑似フォント読出し
手段によって読み出された疑似フォントデータを、画像
イメージに応じて書き込み位置を指定し、ビットマツプ
メモリに書き込む。The pseudo font data writing means specifies a writing position of the pseudo font data read by the pseudo font reading means in accordance with the image, and writes the pseudo font data into the bitmap memory.
疑似フォントデータ書込み手段による書き込み位置の指
定は、イメージデータのビット構成、元の画像からのイ
メージデータの切り出し方、ビットマツプメモリの画素
数、画像の倍率、又は疑似フォントデータの大きさや構
成などに応じて決定される。The writing position specified by the pseudo font data writing means depends on the bit configuration of the image data, how the image data is extracted from the original image, the number of pixels in the bitmap memory, the magnification of the image, or the size and structure of the pseudo font data. Determined accordingly.
一例として、24個のワイヤピンを備えた記録ヘッドを
持つワイヤドツトプリンタに対応した1バイト毎のイメ
ージデータをシリアルに出力するホストコンピュータの
端末機として、本発明のインタフェース装置を有するペ
ージプリンタを用いた場合について、その作用を説明す
る。As an example, a page printer having an interface device of the present invention is used as a terminal of a host computer that serially outputs image data for each byte corresponding to a wire dot printer having a recording head equipped with 24 wire pins. We will explain its function.
この場合には、元の画像は、縦方向に1バイトづつに分
割され、その3バイト分毎に横方向に走査して切り出さ
れる。In this case, the original image is vertically divided into 1 byte units, and every 3 bytes are scanned and cut out in the horizontal direction.
1バイト毎のイメージデータがインタフェース装置に入
力されると、疑似フォント読出し手段によってイメージ
データに対応する疑似フォントデータが疑似フォントメ
モリから読み出され、疑似フォントデータ書込み手段に
よってビットマツプメモリに書き込まれる。When image data for each byte is input to the interface device, pseudo font data corresponding to the image data is read out from the pseudo font memory by the pseudo font reading means and written into the bitmap memory by the pseudo font data writing means.
例えば、ページプリンタの解像度(ドツト密度)がワイ
ヤドツトプリンタの解像度の2倍である場合において、
疑似フォントデータは、1バイトのイメージデータが行
ベクトルを構成するとした場合に、その行ベクトルに対
して転置行列の関係を有する列ベクトルを行方向及び列
方向にそれぞれ2倍した16行2列の仮想行列を構成す
る32個のドントデータを含んでいる。For example, when the resolution (dot density) of a page printer is twice that of a wire dot printer,
If 1-byte image data constitutes a row vector, the pseudo font data is 16 rows and 2 columns, which is obtained by doubling the column vector in the row and column directions, which has a transposed matrix relationship with respect to the row vector. It includes 32 pieces of don't data that constitute a virtual matrix.
疑似フォントデータ書込み手段は、例えば最初の疑似フ
ォントデータがビットマツプメモリの1行1列目から2
列16行目の間に、2個目の疑似フォントデータが17
行1列目から2列32行目の間に、3個目の疑似フォン
トデータが33行1列目から2列48行目の間に、4個
目の疑似フォントデータが1行3列目から4列16行目
の間に、というように、それぞれの疑似フォントデータ
が縦方向に並び、しかも縦方向に3段となるように順次
上から下へ向かい、且つ左から右へと行方向に沿って隙
間なく並ぶように展開する。For example, the pseudo font data writing means writes the first pseudo font data from the 1st row, 1st column to 2nd column of the bitmap memory.
The second pseudo font data is 17 between the 16th row and column.
The third pseudo font data is between the 33rd row and 1st column to the 2nd column and the 48th row, and the fourth pseudo font data is between the 1st row and 3rd column. , between the 4th column and 16th row, and so on, each pseudo font data is arranged vertically, and in order from top to bottom so that there are three columns vertically, and from left to right in the row direction. Expand them so that they are lined up without any gaps along the lines.
これによって、ホストコンピュータからの1バイトづつ
のイメージデータを受けたワイヤドツトプリンタが印字
するのと同じ画像イメージの配置で、且つ2倍の解像度
で、疑似フォントデータがビットマツプメモリの仮想行
列上に書き込まれる。As a result, pseudo font data is written onto the virtual matrix of bitmap memory with the same image layout as that printed by a wire dot printer that receives image data one byte at a time from the host computer, but with twice the resolution. It will be done.
ビットマツプメモリに書き込まれたデータは、行方向に
1行づつ走査されて読み出され、読み出されたデータが
、例えばレーザプリンタであればレーザビームを変調す
るための変調手段に出力されることによって、ワイヤド
ツトプリンタで印字した場合と同様の画像が得られる。The data written in the bitmap memory is read out by being scanned line by line in the row direction, and the read data is output to modulation means for modulating the laser beam in the case of a laser printer, for example. By doing this, an image similar to that printed by a wire dot printer can be obtained.
つまり、本発明によるプリンタのインタフェース装置に
よると、従来のページプリンタに疑慎フォントメモリを
追加し且つソフトウェアを変更することによって、記録
情報をワイヤドツトプリンタに対応するプロトコルで出
力するホストコンピュータの出力端末機として、そのペ
ージプリンタを使用することが可能となる。In other words, according to the printer interface device according to the present invention, by adding a suspicious font memory to a conventional page printer and changing the software, an output terminal of a host computer that outputs recorded information using a protocol compatible with a wire dot printer can be used. This makes it possible to use the page printer as a page printer.
そして、各疑似フォントデータは、入力される記録情報
の解像度とそれを印字するページプリンタの解像度との
比に基づいて予め拡大したものとして用意することがで
きるから、記録情報に対してそのデータを拡大する処理
を省略し、又は簡略化することができ、高速に処理を行
うことができる。Since each pseudo font data can be prepared in advance as an enlarged version based on the ratio of the resolution of the input recorded information and the resolution of the page printer that prints it, the data can be Enlargement processing can be omitted or simplified, and processing can be performed at high speed.
ホストコンビエータから出力される記録情報の中に、イ
メージデータのみでなくキャラクタコードをも含んでい
る場合には、適当な判別手段によってそれらを判別し、
それぞれビットマツプメモリに書き込めばよい。If the recorded information output from the host combinator includes not only image data but also character codes, distinguish them using an appropriate discrimination means,
Each can be written to the bitmap memory.
以下、本発明の実施例を図面を参照しつつ説明する。 Embodiments of the present invention will be described below with reference to the drawings.
まず、本発明に係るプリンタのインタフェース装置を含
めて、ホストコンピュータlからの記録情報に基づいて
実際に記録が行われるまでの、記録用のシステムの全体
の概略を説明する。First, an overview of the entire recording system including the printer interface device according to the present invention until actual recording is performed based on recording information from the host computer 1 will be explained.
第1図は、本発明に係るインタフェース装置を用いた記
録用のシステムを示すブロック図である。FIG. 1 is a block diagram showing a recording system using an interface device according to the present invention.
第1図に示すように、ホストコンピュータ1からの記録
情報は、ケーブル2を介してレーザプリンタLPに入力
される。As shown in FIG. 1, recording information from a host computer 1 is input to a laser printer LP via a cable 2. As shown in FIG.
レーザプリンタLPは、レーザビームにより感光体上に
形成した潜像を現像した後に記録紙上に転写し定着して
画像を得る記録部3と、記録情報を受けて記録部3での
記録動作を制御部するインタフェース装置としてのプリ
ントコントローラ4とから構成されている。The laser printer LP includes a recording section 3 that develops a latent image formed on a photoreceptor with a laser beam, and then transfers and fixes it onto recording paper to form an image, and a recording section 3 that receives recording information and controls recording operations in the recording section 3. A print controller 4 serves as an interface device for communicating with the printer.
記録部3へは、プリントコントローラ4からデータバス
5を介して記録情報が伝送されるとともに、それら両者
の間で、コマンドバス6を介して記録制御用の情報が相
互に伝送されるように構成されている。Recording information is transmitted from the print controller 4 to the recording unit 3 via a data bus 5, and recording control information is mutually transmitted between the two via a command bus 6. has been done.
プリントコントローラ4は、1頁に相当する容量の2次
元の仮想空間を有するビットマツプメモリ4Aと、フォ
ントデータを格納したフォントメモリ4Bと、ビットマ
ツプメモリ4Aに対する記録用のデータの書き込み及び
読み出しを行うビットマツプ読書部4Cと、ビットマツ
プメモリ4Aへのデータの書き込み及び記録動作を制御
するビットマツプ制御部4Dとを有している。The print controller 4 writes and reads recording data to and from a bitmap memory 4A having a two-dimensional virtual space with a capacity equivalent to one page, a font memory 4B storing font data, and the bitmap memory 4A. It has a bitmap reading section 4C and a bitmap control section 4D that controls data writing and recording operations to the bitmap memory 4A.
これらビットマツプ読書部4C及びビットマツプ制御部
4Dは、マイクロコンピュータなどからなる中央処理装
置、ROMやRAMなどのメモリ、これらに格納された
プログラム、′それらの周辺装置、及び、その他の論理
素子などのハードウェアから構成されている。また、図
示は省略したが、操作用のスイッチや表示灯、及び各種
制御機器が必要に応じて接続されている。These bitmap reading section 4C and bitmap control section 4D are connected to a central processing unit such as a microcomputer, memories such as ROM and RAM, programs stored therein, peripheral devices thereof, and hardware such as other logic elements. Consists of clothing. Further, although not shown, operation switches, indicator lights, and various control devices are connected as necessary.
ホストコンピュータlからの記録情報は、ビットマツプ
制御部4Dに入力される。ビットマツプ制御部4Dには
、記録の1頁に相当する容量のテキストバッファ4Eが
付設されており、ビットマツプ制御部4Dでは、入力さ
れた記録情報の1頁分を、テキストバッファ4Eを用い
て仮編集する。Recorded information from the host computer 1 is input to the bitmap control section 4D. A text buffer 4E with a capacity equivalent to one page of recording is attached to the bitmap control unit 4D, and the bitmap control unit 4D temporarily edits one page of input recording information using the text buffer 4E. do.
ビットマツプ読書部4Cは、ビットマツプ制御部4Dか
ら送られてくる仮編集後の記録情報を、ビットマツプメ
モリ4Aに書き込む。また、ビットマツプ読書部4Cは
、ビットマツプメモリ4Aへの記録情報の書き込みの完
了後、ビットマツプ制御部4Dからのプリント起動命令
を受けて、ビットマップメモリ4Aを走査して記録情報
を順次読み出し、データバス5を介して記録部3へ出力
する。The bitmap reading section 4C writes the temporarily edited recorded information sent from the bitmap control section 4D into the bitmap memory 4A. Further, after the writing of recorded information to the bitmap memory 4A is completed, the bitmap reading unit 4C receives a print start command from the bitmap control unit 4D, and scans the bitmap memory 4A to sequentially read the recorded information and data. It is output to the recording section 3 via the bus 5.
ビットマツプ読書部4Cは、ビットマツプ制御部インタ
フェース11、データ書込部12、プリントヘッド81
7m部インタフェース13、フォントメモリインタフェ
ース14などから構成されている。The bitmap reading section 4C includes a bitmap control section interface 11, a data writing section 12, and a print head 81.
It is composed of a 7m part interface 13, a font memory interface 14, and the like.
ビットマツプ制御部インタフェース11では、ビットマ
ツプ制御部4Dからの入力データを記録用データとプリ
ンタ制御用データとに分離し、記録用データはデータ書
込部12へ、プリンタ制御用データはプリントヘッド制
御部インタフェース13を介してプリントヘッド制御部
3aへ、それぞれ出力する。The bitmap control unit interface 11 separates the input data from the bitmap control unit 4D into recording data and printer control data, and sends the recording data to the data writing unit 12 and the printer control data to the print head control unit interface. 13 to the print head control section 3a.
プリントヘッド制御部インタフェース13は、プリン制
御用データとして送られてくるプリント起動命令に応じ
て、ビットマツプメモリ4Aからの記録情報の読み出し
と、プリントヘッド制御部3aへの出力とを行う。The print head control unit interface 13 reads recorded information from the bitmap memory 4A and outputs it to the print head control unit 3a in response to a print start command sent as print control data.
データ書込部12は、記録情報に応じてビットマツプメ
モリ4Aの仮想行列上の所定の位置に書き込む。The data writing section 12 writes data to a predetermined position on the virtual matrix of the bitmap memory 4A according to the recording information.
ところで、ホストコンピュータlから送られる記録情報
には2種類ある。その一つは、画像を構成する文字の集
合上して送られて来る文字情報であり、通常、1バイト
単位のAS(11コードと呼ばれるキャラクタコードと
して送られて来る。By the way, there are two types of recording information sent from the host computer l. One of them is character information that is sent as a set of characters that make up an image, and is usually sent as a character code called AS (11 code) in 1-byte units.
他の一つは、画像そのものを分解した画素の集合として
送られて来る画像情報である。The other type is image information that is sent as a set of pixels obtained by decomposing the image itself.
入力された記録情報が画像情報である場合には、ビット
マツプ制御部4Dによってそれが判別され、その画像情
報は、ビットマツプ読書部4Cのビットマツプ制御部イ
ンタフェース11を経て、データ書込部12によりビッ
トマツプメモリ4Aの所定の位置を先頭として順次書き
込まれて行く。If the input recorded information is image information, it is determined by the bitmap control section 4D, and the image information is written into a bitmap by the data writing section 12 via the bitmap control section interface 11 of the bitmap reading section 4C. The information is sequentially written starting from a predetermined position in the memory 4A.
他方、入力された記録情報が文字情報である場合には、
通常はその文字情報であるキャラクタコードに先立って
コマンドコードが送られて来るので、ビットマツプ制御
部4Dによってそれが判別され、その判別結果に基づい
て、データ書込部12がフォントメモリインタフェース
14を介してフォントメモリ4Bを参照し、その文字情
報に応じたフォントデータを読み出してビットマツプメ
モリ4Aに書き込んで行く。On the other hand, if the input record information is character information,
Normally, a command code is sent before the character code, which is the character information, so it is determined by the bitmap control section 4D, and based on the determination result, the data writing section 12 writes the command code via the font memory interface 14. font memory 4B, reads out font data corresponding to the character information, and writes it into bitmap memory 4A.
上述したフォントメモリ4Bの構成、及びデ−タ書込部
12によるフォントメモリ4Bからのフォントデータの
読み出しとビットマツプメモリ4Aへの書き込み動作に
ついては、例えば特開昭61−113089号公報に開
示されているように公知であるので、詳しい説明は省略
して概略のみを説明する。The configuration of the font memory 4B described above and the operation of reading font data from the font memory 4B and writing it to the bitmap memory 4A by the data writing section 12 are disclosed in, for example, Japanese Patent Laid-Open No. 113089/1989. Since it is well known, detailed explanation will be omitted and only an outline will be explained.
フォントメモリ4B内のフォントデータは、24行×2
4列の仮想行列上に、画像の明暗に応じて2値化された
データを配列して構成されている。The font data in font memory 4B is 24 lines x 2.
It is constructed by arranging binarized data according to the brightness and darkness of the image on a four-column virtual matrix.
データ書込部12においては、入力されたキャラクタコ
ードに基づいて、そのキャラクタコードに対応するフォ
ントメモリ4Bのアドレスを指定してそのフォントデー
タを読み出し、入力されたキャラクタコードの配列に基
づいてビットマツプメモリ4A上でのフォントデータの
書き込み領域の先頭アドレスをポインタにより指示し、
読み出したフォントデータをビットマツプメモリ4Aに
書き込む。In the data writing section 12, based on the input character code, the address of the font memory 4B corresponding to the character code is specified, the font data is read out, and a bit map is written based on the input character code arrangement. Indicates the start address of the font data write area on memory 4A with a pointer,
The read font data is written into the bitmap memory 4A.
ホストコンピュータ1からの文字情報としての複数のキ
ャラクタコードは、複数行からなる記録の各行が上から
下に並ぶ順序で、がっ、複数の文字からなる各行におい
て各文字が左がら右に並ぶ順序で送られて来る。したが
って、データ書込部12は、各キャラクタコードに対応
するフォントデータが、ビットマツプメモリ4Aの仮想
行列上において、左から順に右に向かって並ぶ集合が、
上から順に下に向かって並ぶ状態となるよう、各フォン
トデータの書き込み位置を指示するポインタを制御する
ように構成されている。The multiple character codes as character information from the host computer 1 are arranged in the order in which each line of a record consisting of multiple lines is arranged from top to bottom, and the order in which each character in each line consisting of multiple characters is arranged from left to right. It will be sent to you. Therefore, the data writing unit 12 creates a set in which font data corresponding to each character code is arranged from left to right on the virtual matrix of the bitmap memory 4A.
The configuration is such that a pointer indicating the writing position of each font data is controlled so that the font data are arranged in order from the top to the bottom.
具体的には、データ書込部12により制御されるポイン
タは、あるフォントデータの1行1列目のドツトデータ
の書き込み位置(以下、先頭アドレス位置と言う)を指
示するだけであり、そのフォントデータの残りのドツト
データは自動的に書き込まれるように構成されている。Specifically, the pointer controlled by the data writing unit 12 only indicates the write position of the dot data in the first row and first column of a certain font data (hereinafter referred to as the start address position), and The remaining dot data is configured to be written automatically.
そして、複数のフォントデータを上述した順序でビット
マツプメモリ4Aに格納するにあたっては、ポインタを
フォントデータの大きさに相当する分(24ビット分)
だけ増加させる(プラスの行方向に移動させる)ことで
行うように構成されている。When storing a plurality of font data in the bitmap memory 4A in the above-mentioned order, the pointer is moved for a length corresponding to the size of the font data (24 bits).
This is done by increasing the number by (moving in the positive row direction).
上述のように、プリントコントローラ4によりビットマ
ツプメモリ4Aに書き込まれたデータは、プリントヘッ
ド制御部インタフェース13によって、そのビットマツ
プメモリ4Aの仮想行列上を走査して読み出され、記録
部3のプリントヘッド制御部3aに出力される。プリン
トヘッド制御部3aは、ビットマツプメモリ4Aの読み
出しのための走査と同様に感光体上を走査されるレーザ
ビームを、読み出したデータに基づいて変調するように
構成されている。As described above, the data written in the bitmap memory 4A by the print controller 4 is read out by scanning the virtual matrix of the bitmap memory 4A by the print head control unit interface 13, and the data is read out by the print head control unit interface 13, and the data is read out by scanning the virtual matrix of the bitmap memory 4A. It is output to the head control section 3a. The print head control section 3a is configured to modulate the laser beam scanned on the photoreceptor based on the read data in the same manner as scanning for reading out the bitmap memory 4A.
上述した記録用のシステムは、レーザプリンタLPと、
それ専用のホストコンピュータlとを組み合わせたもの
である。しかし、記録用のシステムには、従来から多用
されているワイヤドツトプリンクと、それに対して専用
のホストコンピュータとを組み合わせたものもある。ワ
イヤドツトプリンタ専用のホストコンピュータからの記
録情報は、画像情報であるイメージデータの場合、ワイ
ヤビンの個数に対応するビット数のデータを、記録ヘッ
ドの横方向の移動に対応するように順次シリアルに出力
するように構成されている。The above-mentioned recording system includes a laser printer LP,
It is combined with a dedicated host computer l. However, some recording systems combine a conventionally widely used wire dot link with a dedicated host computer. If the recorded information from the host computer dedicated to the wire dot printer is image data, the data with the number of bits corresponding to the number of wire bins is sequentially output serially to correspond to the horizontal movement of the recording head. It is configured as follows.
そのため、レーザビームプリ〉′夕は、そのままでは、
ワイヤドツトプリンタ専用のホストコンピュータの出力
端末機として用いることができない。Therefore, if the laser beam pre-set is left as it is,
It cannot be used as an output terminal for a host computer dedicated to wire dot printers.
本実施例は、レーザプリンタLPをワイヤドツトプリン
タ専用のホストコンピュータに対する出力端末機として
使用することを可能にするとともに、この種のページプ
リンタが本来的に備えている機能を有効利用して、コス
ト的に有利に実現できるように構成したものである。こ
れについて以下説明する。This embodiment makes it possible to use the laser printer LP as an output terminal for a host computer dedicated to wire dot printers, and also effectively utilizes the functions inherent in this type of page printer to reduce costs. The structure is such that it can be realized advantageously. This will be explained below.
第7図は、ワイヤドツトプリンタ用の記録情報の構成を
示す図である。FIG. 7 is a diagram showing the structure of recorded information for a wire dot printer.
第7図に示すように、ドツト用ホストコンピュータ1a
からケーブル2aを介して伝送される1バイト単位の連
続する3&[IのシリアルデータB10〜IT、B20
〜27,830〜37は、ワイヤドツトプリンタにおい
ては、記録ヘッドHDのそれぞれ8個づつ合計24個の
ワイヤビンWO〜7、W8〜15.W16〜23に対応
するように構成されている。As shown in FIG. 7, the dot host computer 1a
Continuous 3&[I serial data B10 to IT, B20 in one-byte units transmitted via cable 2a from B10 to IT, B20
.about.27,830-37 are wire bins WO-7, W8-15., which have a total of 24 wire bins, 8 each of the recording head HD, in the wire dot printer. It is configured to correspond to W16 to W23.
一方、前述したレーザプリンタLPにおいては、上述し
た1バイトづつのシリアルデータBIO〜B37が縦方
向に並ぶ24個のワイヤビンWO〜W23に対応したも
のであることから、そのシリアルデータが画像情報とし
てのイメージデータである場合に、文字情報を扱う場合
と同様の扱いでイメージデータをビットマツプメモリ4
A上に展開するために、ビットマツプ制御部4Dは、イ
メージデータを上述したキャラクタコードと同様の構成
の疑似キャラクタコードとしてプリントコントローラ4
のビットマツプ読書部4Cに出力するように構成されて
いる。On the other hand, in the laser printer LP mentioned above, since the above-mentioned 1-byte serial data BIO to B37 correspond to the 24 wire bins WO to W23 arranged in the vertical direction, the serial data can be used as image information. If it is image data, the image data is stored in bitmap memory 4 in the same manner as character information.
In order to develop the image data on A, the bitmap control unit 4D converts the image data into a pseudo character code having the same structure as the character code described above and sends it to the print controller 4.
The bitmap reading section 4C is configured to output the data to the bitmap reading section 4C.
ビットマツプ制御部4Dでは、先に説明したホストコン
ピュータlからキャラクタコードが入力された場合と同
様に、ドツト用ホストコンピュータlaからのイメージ
データをテキストバッファ4Eを用いて仮編集する。ま
た、ビットマツプ読書部4Cにおいても、ビットマツプ
制御部4Dからの仮編集後のイメージデータを用いて、
ビットマツプメモリ4Aへの記録用のドツトデータの書
き込みを行う。The bitmap control section 4D temporarily edits the image data from the dot host computer la using the text buffer 4E, similar to the case where the character code is input from the host computer l described above. Further, the bitmap reading section 4C also uses the image data after temporary editing from the bitmap control section 4D.
Dot data for recording is written into the bitmap memory 4A.
つまり、ビットマツプ制御部4Dを経たイメージデータ
は、1バイト毎にひとまとまりになっているので、その
1バイトのイメージデータの集合を、恰もそれがキャラ
クタコードであるかのように扱い、その疑似キャラクタ
コードに対応する疑似フォントデータを用意しておくこ
とで、ドツト用ホストコンピュータ1aからの画像情報
であるイメージデータをビットマツプメモリ4Aに書き
込むに際して、キャラクタコードが入力された場合と同
様の処理を行うこととし、この種のプリンタが本来的に
備えている機能を有効利用してコスト的に有利になるよ
う構成しているのである。In other words, since the image data that has passed through the bitmap control unit 4D is grouped into 1-byte units, the set of 1-byte image data is treated as if it were a character code, and its pseudo-character By preparing pseudo font data corresponding to the code, when writing image data, which is image information from the dot host computer 1a, to the bitmap memory 4A, the same processing as when a character code is input is performed. In particular, this type of printer is designed to be advantageous in terms of cost by effectively utilizing its inherent functions.
そのため、前述したフォントメモリ4Bとほぼ同様の構
成の疑似フォントメモリ4Hを設けるとともに、データ
書込部12には、疑似フォントメモリ4Hから疑似フォ
ントデータを読み出すための疑似フォント読出し部21
と疑似フォントデータをビットマツプメモリ4Aへ書き
込むための疑似フォントデータ書込み部22とを設けて
いるのである。Therefore, a pseudo font memory 4H having almost the same configuration as the font memory 4B described above is provided, and the data writing section 12 includes a pseudo font reading section 21 for reading pseudo font data from the pseudo font memory 4H.
and a pseudo font data writing section 22 for writing pseudo font data into the bitmap memory 4A.
次に、疑似フォントメモリ4Hの構成を説明する。Next, the configuration of the pseudo font memory 4H will be explained.
第7図において明らかなように、ドツト用ホストコンピ
ュータ1aからのデータの構造は、1バイトのイメージ
データが、記録における縦方向に並ぶ8個のワイヤピン
に対応したものとなっている。As is clear from FIG. 7, the structure of the data from the dot host computer 1a is such that 1 byte of image data corresponds to eight wire pins arranged vertically in recording.
そこで、疑似フォントメモリ4Hに格納されたそれぞれ
の疑似フォントデータFDは、1バイトのイメージデー
タDが第3図(a)に示すように行ベクトルBIO〜1
7を構成するとした場合に、その行ベクトルに対して転
置行列の関係を有する第3図(b)に示す列ベクトルb
o〜7を、行方向(横方向)には2倍、列方向(縦方向
)には2゜5倍した仮想行列を構成する第3図(c)に
示す40個のドツトデータとしである。Therefore, each pseudo font data FD stored in the pseudo font memory 4H has 1-byte image data D as shown in FIG.
7, the column vector b shown in FIG. 3(b) has the relationship of a transposed matrix to the row vector.
The 40 dot data shown in Fig. 3(c) constitutes a virtual matrix in which o~7 is doubled in the row direction (horizontal direction) and 2.5 times in the column direction (vertical direction). .
疑似フォントデータFDについてさらに説明すると、ド
ツト用ホストコンピュータlaからのイメージデータは
、解像度(ドツト密度)が120dpiのワイヤドツト
プリンタを対象とするものである。一方、本実施例のレ
ーザプリンタLPの解像度は300dp tである。そ
のため、ワイヤドツトプリンタ用のイメージデータDが
構成する行ベクトルに対して転置行列の関係を有する第
3図(b)に示す列ベクトルを構成する8個のドツトデ
ータから疑似フォントデータを構成した場合には、この
疑似フォントデータを用いて得られる画像が、必要な画
像のサイズに対し横方向及び縦方向それぞれについて2
.5分の1のサイズになってしまう。To further explain the pseudo font data FD, the image data from the dot host computer la is intended for a wire dot printer with a resolution (dot density) of 120 dpi. On the other hand, the resolution of the laser printer LP of this embodiment is 300 dpt. Therefore, when pseudo font data is constructed from eight dot data forming the column vector shown in FIG. 3(b), which has a transposed matrix relationship with the row vector forming the image data D for wire dot printer The image obtained using this pseudo font data is 2 times larger in both the horizontal and vertical directions relative to the required image size.
.. It becomes one-fifth the size.
そこで、疑似フォントデータとして、両プリンタの解像
度の比である“2.5”を倍数として、上述の列ベクト
ルを行方向(横方向)及び列方向(縦方向)に拡大した
ものを用意しておけば、はぼ同じサイズの画像を得るこ
とができる。Therefore, as pseudo font data, we prepared the above column vector expanded in the row direction (horizontal direction) and column direction (vertical direction) using a multiple of "2.5", which is the ratio of the resolutions of both printers. By doing so, you can obtain images of approximately the same size.
しかし具体的には、行方向には端数を近似させることが
できないので2倍とし、列方向には端数も含めて2.5
倍としである。However, specifically, since it is not possible to approximate the fraction in the row direction, it is doubled, and in the column direction, including the fraction, it is 2.5.
It's double.
すなわち、疑(以フォントデータFDの列方向の構成は
、第3図(C)に括弧で括って示しであるように、列ベ
クトルの奇数行に対しては列方向に2倍するとともに偶
数行に対しては列方向に3倍することによって、全体と
して、この疑似フォントデータFDが列ベクトルを列方
向に2.5倍したものに近似させである。In other words, the structure of the font data FD in the column direction is as shown in parentheses in FIG. 3(C). By multiplying by 3 in the column direction, the pseudo font data FD as a whole approximates the column vector multiplied by 2.5 in the column direction.
また、行方向については、疑似フォントデータFDが上
述のように列ベクトルを2倍したものであるので、後述
するビットマツプメモリ4Aへ書き込む際に、第2図(
c)に示すように、行方向の偶数番目に書き込む疑似フ
ォントデータFDについてはその3列目に再書き込みを
行うことによって、全体として元の画像の2.5倍の解
像度の画像が得られるようにしである。これについては
後で詳述する。In addition, in the row direction, since the pseudo font data FD is the column vector doubled as described above, when writing to the bitmap memory 4A, which will be described later, the pseudo font data FD shown in FIG.
As shown in c), by rewriting the pseudo font data FD written in the even numbered position in the row direction in the third column, an image with an overall resolution 2.5 times that of the original image can be obtained. It's Nishide. This will be explained in detail later.
第4図(a)〜(d)は、イメージデータDと疑似フォ
ントデータFDとの具体的な対応関係の例を示す図であ
る。FIGS. 4(a) to 4(d) are diagrams showing specific examples of correspondence between image data D and pseudo font data FD.
第4図(a)に示すピント状態のワイヤピンWO〜7に
対応して、第4図(b)に示す“3CH″のイメージデ
ータDが送られてくるが、このイメージデータ“3CH
”に対しては、第4図(c)に示す疑似フォントデータ
FD3Cが用意されている。Image data D of "3CH" shown in FIG. 4(b) is sent corresponding to wire pins WO to 7 in the focused state shown in FIG. 4(a).
”, pseudo font data FD3C shown in FIG. 4(c) is prepared.
但し、実際には、疑似フォントメモリ4Hは、各疑似フ
ォントデータFDに対して行方向に1バイト単位のメモ
リ領域を与えるように構成されることが多いので、その
場合には、疑似フォントメモリ4Hから読み出されるデ
ータは、第4図(d)に示すように、8×20ドツトの
データである。したがって、このデータから上述の疑(
以フォントデータFD3Cを得るためには、例えば3列
目(左から3ドツト目)以下をマスクした状態でビット
マツプメモリ4Aに書き込むこととなる。However, in reality, the pseudo font memory 4H is often configured to provide a 1-byte memory area in the row direction for each pseudo font data FD, so in that case, the pseudo font memory 4H The data read out is 8×20 dot data, as shown in FIG. 4(d). Therefore, based on this data, the above suspicion (
In order to obtain the following font data FD3C, for example, the third column (three dots from the left) and below are masked and written into the bitmap memory 4A.
さて、ビットマツプ制御部4Dでは、ドツト用ホストコ
ンピュータ1aから送られてくる記録情報を受は取り、
シリアルデータよりも先の先頭部分に付されたコマンド
データによって、以後のシリアルデータがワイヤドツト
プリンタ用のプロトコルのイメージデータDであると判
別する。Now, the bitmap control section 4D receives and receives the recording information sent from the dot host computer 1a.
Based on the command data attached to the head portion before the serial data, it is determined that the subsequent serial data is image data D of the protocol for wired dot printers.
このビットマツプ制御部4Dで、以後のシリアルデータ
がワイヤドツトプリンタ用のプロトコルのイメージデー
タDであると判別されれば、データ書込部12が、読出
し対象として疑似フォントメモリ4Hを選択する。具体
的には、データ書込部12の疑似フォント読出し部21
のアクセスすべきアドレスを、疑似フォントメモリ4H
の中の、イメージデータDに対応した疑似キャラクタコ
ードによって決定されるアドレスに設定することで行わ
れる。If the bitmap control section 4D determines that the subsequent serial data is image data D of the wire dot printer protocol, the data writing section 12 selects the pseudo font memory 4H as the readout target. Specifically, the pseudo font reading unit 21 of the data writing unit 12
The address to be accessed is stored in the pseudo font memory 4H.
This is done by setting the address determined by the pseudo character code corresponding to the image data D in .
また、読み出した疑似フォントデータFDをビットマツ
プメモリ4Aに書き込むために、疑似フォントデータ書
込み部22はポインタによってその書き込み位置(アド
レス)を指示する。Furthermore, in order to write the read pseudo font data FD into the bitmap memory 4A, the pseudo font data writing section 22 indicates the write position (address) using a pointer.
具体的には、書き込み位置を示すポインタを、1個の疑
似フォントデータFDの書き込みが終了する毎に、縦方
向(列方向)のプラス方向(上から下へ向く方向)に疑
似フォントデータFDの列方向のドツト数(以下、この
ドツト数を1フオントということがある)である20ド
ツトを、横方向(行方向)のマイナス方向(右から左方
向)に疑似フォントデータFDの行方向のドツト数であ
る2ド・ントを、それぞれ移動させ、3個の疑似フォン
トデータFDの書き込みが終了する毎に、縦方向にマイ
ナス40ドツト(2フオント)移動させる。Specifically, each time writing of one pseudo font data FD is completed, the pointer indicating the writing position is moved in the positive direction (from top to bottom) of the pseudo font data FD in the vertical direction (column direction). 20 dots, which is the number of dots in the column direction (hereinafter, this number of dots may be referred to as one font), are added to the dots in the row direction of the pseudo font data FD in the negative direction (right to left) in the horizontal direction (row direction). Each time writing of three pseudo font data FD is completed, the number is moved by minus 40 dots (2 fonts) in the vertical direction.
また、横方向に偶数番目に書き込まれる疑似フォントデ
ータFDは、その1回目の書き込みが終了した後に、ポ
インタを横方向にマイナス1ドツト移動させて2回目の
書き込みを行い、その結果として疑似フォントデータF
Dが3列に渡って書き込まれる。この再書き込みによっ
て、ピントマツプメモリ4Aの仮想行列上において横方
向にも2.5倍としたドツトデータが得られる。In addition, for the pseudo font data FD that is written in the even numbered position in the horizontal direction, after the first writing is completed, the pointer is moved horizontally by minus one dot and the second writing is performed, and as a result, the pseudo font data F
D is written across three columns. By this rewriting, dot data can be obtained that is 2.5 times larger in the horizontal direction on the virtual matrix of the focus map memory 4A.
つまり、ビットマツプ制御部4Dから1バイトづつのイ
メージデータが入力されるのに伴って、ビットマツプ読
書部4Cのデータ書込部12は、各イメージデータDを
疑似キャラクタコードとしてそれに対応する疑似フォン
トデータFDを疑似フォントメモリ4Hから読み出し、
読み出した疑似フォントデータFDを、ビットマツプメ
モリ4Aの仮想行列上において、縦方向に3段となるよ
うに順次上から下へ向かい、且つ左から右へと行方向に
沿って隙間なく並ぶように展開して書き込む。That is, as each byte of image data is input from the bitmap control unit 4D, the data writing unit 12 of the bitmap reading unit 4C converts each image data D into a pseudo character code and writes the corresponding pseudo font data FD. is read from pseudo font memory 4H,
The read pseudo font data FD is arranged on the virtual matrix of the bitmap memory 4A so that there are three columns in the vertical direction from top to bottom and from left to right along the row direction without any gaps. Expand and write.
なお、ポインタの移動のプラスマイナスは、上述のよう
にビットマツプメモリ4Aに対して通常の読み書きのた
めに走査する方向がプラス、その逆方向がマイナスであ
る。本実施例では、右から左へ向かう方向及び上から下
へ向かう方向がプラスである。It should be noted that, as described above, the positive and negative directions of the pointer movement are positive in the direction in which the bitmap memory 4A is scanned for normal reading and writing, and negative in the opposite direction. In this embodiment, the direction from right to left and the direction from top to bottom are positive.
また、1バイトのイメージデータDを疑似キャラクタコ
ードに対応させるにあたっては、“OOH”から“IF
H”までのコードは、プリンタ制御コードとして用いら
れるため、入力された1バイトのイメージデータDに“
20H″を加えて疑似キャラクタコードとして扱うよう
に構成されている。In addition, in making the 1-byte image data D correspond to a pseudo character code, from "OOH" to "IF"
Since the codes up to “H” are used as printer control codes, “
20H'' is added to treat it as a pseudo character code.
次頁に示す第1表は、上位4ビツトと下位4ビツトとで
構成されるイメージデータDに対応する疑似キャラクタ
コードを示す表である。Table 1 shown on the next page shows pseudo character codes corresponding to image data D consisting of upper 4 bits and lower 4 bits.
(以下余白)
第 1 表
なお、イメージデータDの“EOH”からFFH”につ
いては、上述のように疑似キャラクタコードとして“O
OH”から“IFH”までが使えないことで単一の疑似
フォントデータFDでは対応できない関係上、2個の疑
似フォントデータFDをビットマツプメモリ4Aの同じ
位置に重ねて書き込むことで対処するようになっている
。(Left below) Table 1 Note that “EOH” to “FFH” of image data D is written as “O” as a pseudo character code as mentioned above.
Since ``OH'' to ``IFH'' cannot be used, a single pseudo font data FD cannot be used, so the solution is to write two pseudo font data FDs overlappingly at the same location in the bitmap memory 4A. It has become.
例えば、”FFH”のイメージデータDに対する疑似フ
ォントデータFDFFを得るためには、第5図に示すよ
うに、“80H″の擬似フォントデータ(疑(以キャラ
クタコードとしてはAOH”)FD80と、” 7 F
H″の疑似フォントデータ(疑イ以キャラクタコード
としては“9F)I”)FD7Fとを用い、擬似フォン
トデータFD80を書き込んだ後でポインタを横方向に
マイナス2ドツト移動し、次に疑似フォントデータFD
7Fを書き込む、これによって、これら2個の疑似フォ
ントデータFD80.FD7Fが重ねて書き込まれ、F
FH”のイメージデータDに対する疑似フォントデータ
FDFFが得られる。For example, to obtain the pseudo font data FDFF for the image data D of "FFH", as shown in FIG. 7F
After writing the pseudo font data FD80, move the pointer horizontally by -2 dots, and then write the pseudo font data. FD
7F, thereby writing these two pseudo font data FD80. FD7F is written overlapping and F
Pseudo font data FDFF for image data D of "FH" is obtained.
以上のようにして、ビットマツプメモリ4Aには、その
仮想行列上において元の画像と同様の配置となるように
、且つ元の画像の2.5倍の解像度となるように、画像
データ(ドツトデータ)が書き込まれることとなる。書
き込まれた後のプリントヘッド制御部3aの動作は、先
に説明したキャラクタコードの場合と同じである。As described above, the bitmap memory 4A stores image data (dots) so that they are arranged in the same way as the original image on the virtual matrix and have a resolution 2.5 times that of the original image. data) will be written. The operation of the print head control section 3a after writing is the same as in the case of the character code described above.
次に、データ書込部12によるビットマツプメモリ4A
への書き込み動作、特に疑似フォントデータ書込み部2
2によるポインタの制御について、第2図(a)〜(c
)により具体的に説明する。Next, the bitmap memory 4A by the data writing section 12
writing operation, especially pseudo font data writing section 2
Regarding pointer control according to 2, FIGS. 2(a) to (c)
) will be explained more specifically.
第2図(a)は、元の画像、すなわち再現しようとする
画像FMを示す図である。FIG. 2(a) is a diagram showing the original image, that is, the image FM to be reproduced.
画像FMは、8×24ビツトの画素から構成されており
、横方向には1ビツト毎に8分割され、縦方向には8ビ
ツト毎に3分割され、分割されたそれぞれの部分がイメ
ージデータDとしてドツト用ホストコンピュータ1aか
ら送られてくる。The image FM is composed of 8 x 24 bit pixels, and is divided horizontally into 8 parts for each 1 bit, vertically into 3 parts for each 8 bits, and each divided part is the image data D. It is sent from the dot host computer 1a as a.
第2図(b)は、画像FMのイメージデータD1〜24
を示す図である。FIG. 2(b) shows image data D1 to D24 of image FM.
FIG.
イメージデータD1〜24はそれぞれ1バイトで構成さ
れており、Dl、D2、D3・・・の順にデータ書込部
12へ入力される。The image data D1 to D24 each consist of one byte, and are input to the data writing section 12 in the order of D1, D2, D3, . . . .
データ書込部12では、疑似フォント読出し部21が、
入力されたイメージデータD1〜24に応じて、疑似フ
ォントメモリ4Hから疑似フォントデータFD1〜24
を読み出す。In the data writing section 12, the pseudo font reading section 21
Pseudo font data FD1-24 is generated from the pseudo font memory 4H according to the input image data D1-24.
Read out.
データ書込部12の疑似フォントデータ書込み部22は
、疑似フォントデータFD1〜24のビットマツプメモ
リ4Aへの書き込み位置を、ポインタによって指示して
書き込む。The pseudo font data writing section 22 of the data writing section 12 specifies and writes the writing position of the pseudo font data FD1 to FD24 into the bitmap memory 4A using a pointer.
第2図(C)は、ビットマツプメモリ4Aに書き込まれ
た疑似フォントデータFD1〜24を示す図である。FIG. 2(C) is a diagram showing pseudo font data FD1-FD24 written in the bitmap memory 4A.
各疑似フォントデータFDは、先に説明したように、イ
メージデータDに対して行方向に2倍、列方向に2.5
倍した2×20ドツトにより構成されている。As explained above, each pseudo font data FD is twice as large as the image data D in the row direction and 2.5 times as large in the column direction.
It is composed of 2×20 dots.
疑似フォントデータFDの書き込みは、各疑似フォント
データFDの先頭ドツト(20行1列目のドツト)を書
き込む位置をポインタで指示した状態で、後述のフロー
チャートで述べるデータ書込ルーチンを実行することに
よって行われる。このデータ書込ルーチンを実行すると
、疑似フォントデータFDの全てのドツトデータが所定
の位置に書き込まれ、書き込みが終了したときには、ポ
インタは行方向へ2ドツト自動的に移動した状態となる
。The pseudo font data FD is written by executing the data writing routine described in the flowchart below while pointing the pointer to the position where the first dot (the dot in the 20th row and 1st column) of each pseudo font data FD is to be written. It will be done. When this data writing routine is executed, all the dot data of the pseudo font data FD is written to a predetermined position, and when the writing is completed, the pointer is automatically moved two dots in the row direction.
したがって、1番目の疑似フォントデータFDlの書き
込みにあたっては、ポインタにより先頭アドレス位IP
Iを指示する。1番目の疑似フォントデータFDIが書
き込まれると、ポインタは、位置PIから行方向へ2ド
ツト移動した位置P2を指示した状態となる。Therefore, when writing the first pseudo font data FDl, the pointer is used to point to the starting address IP.
Indicate I. When the first pseudo font data FDI is written, the pointer is in a state pointing to position P2, which is moved two dots in the row direction from position PI.
2番目の疑(以フォントデータFD2の書き込みにあた
っては、ポインタが位置P3を指示するように、位置P
2から行方向へマイナス2ドツト、列方向へ1フオント
、それぞれ移動させる。3番目の疑似フォントデータF
D3の書き込みにあたっても同様である。Second suspicion (hereinafter, when writing font data FD2, set the position P so that the pointer points to position P3.
From 2, move minus 2 dots in the row direction and 1 font in the column direction. Third pseudo font data F
The same applies to writing D3.
4番目の疑似フォントデータFD4の書き込みにあたっ
ては、3番目の疑似フォントデータFD3の書き込みが
終了したときのポインタの位置P6から、列方向にマイ
ナス2フオント移動させ、ポインタで位置P2を指示し
て1回目の書き込みを行う、さらに、同じ4番目の疑似
フォントデータFD4をその3列目にも書き込むため、
1回目の書き込みが終了したときのポインタの位置P7
から、行方向にマイナス1ドツト移動させ、位置P8を
指示して2回目の書き込みを行う。To write the fourth pseudo font data FD4, move the pointer by -2 fonts in the column direction from the pointer position P6 when writing of the third pseudo font data FD3 is completed, point to position P2 with the pointer, and then press 1. To perform the second writing and further write the same fourth pseudo font data FD4 in the third column,
Pointer position P7 when the first write is completed
From there, it is moved by minus one dot in the row direction, and the second writing is performed by specifying position P8.
5番目の疑似フォントデータFD5の書き込みにあたっ
ては、4番目の疑似フォントデータFD4の書き込みが
終了したときのポインタの位置P9から、行方向へマイ
ナス3ドツト、列方向へ1フオント、それぞれ移動させ
る。6番目の疑似フォントデータFD6の書き込みにあ
たっても同様である。When writing the fifth pseudo font data FD5, the pointer is moved by minus three dots in the row direction and by one font in the column direction from the pointer position P9 when writing of the fourth pseudo font data FD4 is completed. The same goes for writing the sixth pseudo font data FD6.
7番目の疑似フォントデータFD7の書き込みにあたっ
ては、6番目の疑似フォントデータFD6の書き込みが
終了したときのポインタの位置P15から、列方向にマ
イナス2フオント移動させ、ポインタで位fiP9を指
示してその1回目の書き込みを行う。以降は、上述と同
様にポインタにより書き込み位置を指示して順次書き込
んでいく。To write the seventh pseudo font data FD7, move the pointer by -2 fonts in the column direction from the pointer position P15 when writing of the sixth pseudo font data FD6 is completed, point to fiP9 with the pointer, and then move the pointer to position P15. Perform the first write. From then on, as described above, the writing position is indicated by the pointer and writing is performed sequentially.
これによって、元の画像FMと同じ画像イメージの配置
で、且つ2.5倍の解像度で、疑似フォノ)データFD
1〜24がビットマツプメモリ4Aの仮想行列上に展開
される。As a result, pseudo phono) data FD can be created with the same image arrangement as the original image FM and with 2.5 times the resolution.
1 to 24 are developed on a virtual matrix in the bitmap memory 4A.
プリントヘッド制御部インタフェース13は、ビットマ
ツプメモリ4Aの仮想行列上を1行目から順に1行づつ
走査して読み出し、そのデータに基づいて記録部3によ
って記録紙上に画像を形成する。The print head control unit interface 13 scans and reads the virtual matrix of the bitmap memory 4A line by line starting from the first line, and based on the data, the recording unit 3 forms an image on the recording paper.
ビットマツプメモリ4Aに展開された画像の解像度が元
の画像FMの2.5倍であり、レーザプリンタLPの解
像度がドツト用ホストコンピュータ1aの対象としてい
たワイヤドツトプリンタの2゜5倍であり、これらが同
じ倍率であるため、レーザプリンタLPによって記録紙
上に形成された画像は、上述のワイヤドツトプリンタに
よって形成される画像と同一の大きさとなる。The resolution of the image developed in the bitmap memory 4A is 2.5 times that of the original image FM, and the resolution of the laser printer LP is 2.5 times that of the wire dot printer targeted by the dot host computer 1a. have the same magnification, the image formed on the recording paper by the laser printer LP has the same size as the image formed by the wire dot printer described above.
次に、レーザプリンタLPに入力されたイメージデータ
をビットマツプメモリ4A上に展開する動作を、第6図
(a)及び(b)に示すフローチャートに基づいて説明
する。Next, the operation of developing image data input to the laser printer LP onto the bitmap memory 4A will be explained based on the flowcharts shown in FIGS. 6(a) and 6(b).
ドツト用ホストコンピュータ1aからの画像情報は、通
常、最初の1バイトがデータの種類を示すピントイメー
ジ指定コマンドで、次の1バイトがイメージデータのデ
ータ数を示すイメージサイズデータであり、その後に複
数のイメージデータが続くというフォーマントで送られ
て来る。The image information from the dot host computer 1a is usually a focus image specification command in which the first byte indicates the type of data, the next byte is image size data indicating the number of image data, and then multiple The image data is sent in the following format.
なお、第6図のフローチャートにおいては、キャラクタ
コードの展開のように本発明に直接関係のない動作につ
いては、説明を簡略化又は省略しである。In the flowchart of FIG. 6, explanations of operations not directly related to the present invention, such as character code development, are simplified or omitted.
まず、イメージデータDの処理中であるときにセットさ
れる処理フラグG−MODE、イメージデータDの数を
カウントするデータカウンタG−COUNT、及び疑似
フォントデータFDの書き込みが列方向に何個目かを示
すデータカウンタG−MARをそれぞれ0”にリセット
し、疑似フォントデータFDの書き込みが行方向に何個
口かを示すデータカウンタG−HOLを′1”にセット
するなど、各種フラグやカウンタなどの初期設定を行い
(ステップ#10)、その後、バイト単位でデータの入
力を行う(ステップ#12)。First, there is a processing flag G-MODE that is set when image data D is being processed, a data counter G-COUNT that counts the number of image data D, and the number of columns in which pseudo font data FD has been written. Various flags and counters are reset, such as resetting the data counter G-MAR that indicates the Initial settings are performed (step #10), and then data is input in byte units (step #12).
次に、処理フラグG−MODEがセットされているか否
かを判断する(ステップ#14)。Next, it is determined whether the processing flag G-MODE is set (step #14).
処理フラグG−MODEがセットされていないとき、つ
まりイメージデータDの処理中でないときには、入力さ
れたデータがビットイメージ指定コマンドであるか否か
を判断する(ステップ#84)。When the processing flag G-MODE is not set, that is, when the image data D is not being processed, it is determined whether the input data is a bit image designation command (step #84).
人力データがビットイメージ指定コマンドでないと判断
されれば、そのコマンドに応じた処理を行う(ステップ
#92)。例えばキャラクタコード指定コマンドであっ
た場合には、フォントデータをビットマツプメモリ4A
上に展開する。その後、ステップ#12に戻って次のデ
ータを入力する。If it is determined that the human input data is not a bit image designation command, processing according to the command is performed (step #92). For example, if it is a character code specification command, the font data is stored in the bitmap memory 4A.
Expand on top. After that, the process returns to step #12 and the next data is input.
ステップ#84で、入力データがビットイメージ指定コ
マンドであると判断された場合には、まず処理フラグG
−MODEをセットしくステップ#86)、次に現在選
択されているフォント名を退避する(ステップ#88)
。If it is determined in step #84 that the input data is a bit image specification command, first the processing flag G
- Set MODE (step #86), then save the currently selected font name (step #88)
.
このフォント名とは、フォントメモリ4Bが字体等の異
なる複数のフォントに対応するフォントデータを格納し
ている場合には各フォント毎に付けられた識別用名称で
あり、また、フォントメモI74 Bが単一のフォント
に対応するフォントデータのみを格納している場合には
そのフォントメモU 4 B自身を識別するための名称
である。This font name is an identification name given to each font when the font memory 4B stores font data corresponding to multiple fonts with different fonts. If only font data corresponding to a single font is stored, this is a name for identifying the font memo U 4 B itself.
次にデータカウンタG−HOLを1”にセットしておく
(ステップ#89)。これは、ビットイメージ指定コマ
ンドが受信される毎に、つまりイメージデータDの処理
中となる毎に、データカウンタG−HOLが初期値から
カウントを行うようにするためである。Next, data counter G-HOL is set to 1" (step #89). This means that every time a bit image designation command is received, that is, every time image data D is being processed, - This is for HOL to count from the initial value.
そして、疑似フォントメモリ4Hを選択しくステップ#
90)、ステップ#12に戻って次のデータを入力する
。Then select pseudo font memory 4H in step #
90), return to step #12 and input the next data.
ステップ#14で処理フラグG−MODEがセットされ
ていると判断されれば、すなわちイメージデータDの処
理中であれば、まず、データカウンタG−COUNTを
チエツクする(ステップ#16)。If it is determined in step #14 that the processing flag G-MODE is set, that is, if image data D is being processed, first, the data counter G-COUNT is checked (step #16).
データカウンタG−COUNTが°“0″である場合、
例えばデータの入力を開始した直後である場合などでは
、入力データであるイメージサイズデータをデータカウ
ンタG−COUNTに格納しくステップ#80)、ステ
ップ#12に戻って次のデータを入力する。If the data counter G-COUNT is ° “0”,
For example, if the data input has just started, the image size data as input data is stored in the data counter G-COUNT (step #80), and the process returns to step #12 to input the next data.
ステップ#16でデータカウンタG−COUNTが“0
″でないと判断された場合には、行方向のデータ数をカ
ウントするデータカウンタG−HOLが偶数であるか否
かを判断する(ステップ#18)。At step #16, the data counter G-COUNT is “0”.
If it is determined not to be ``, it is determined whether the data counter G-HOL that counts the number of data in the row direction is an even number (step #18).
データカウンタG−HOLが偶数である場合には、再書
き込みを行うために再書込フラグC−BACKをセット
する(ステップ#20)。If the data counter G-HOL is an even number, a rewrite flag C-BACK is set to perform rewriting (step #20).
次に、ステップ#22では、入力された1バイトのデー
タが°″EOH”よりも大きいか否かを判断する。これ
は、先に説明したように、“00H”から“”I FH
”までをプリンタ制御コードとして使用しているため、
疑似フォントデータFDの重ね書込みが必要かどうかを
判断するためのものである。Next, in step #22, it is determined whether the input 1-byte data is larger than "EOH". As explained earlier, this ranges from “00H” to “IFH”.
” is used as the printer control code,
This is for determining whether overwriting of pseudo font data FD is necessary.
入力データが“EOH”よりも小さい場合には、疑似フ
ォントデータFDの重ね書込みは不要であるため、入力
データに“20H”を加えて疑似キャラクタコードを作
り(ステップ#34)、その疑似キャラクタコードに基
づいてデータ書込みを行うため、データ書込ルーチンを
コールする(ステップ#36)。If the input data is smaller than "EOH", there is no need to overwrite the pseudo font data FD, so "20H" is added to the input data to create a pseudo character code (step #34), and the pseudo character code is A data write routine is called to write data based on (step #36).
図示は省略したが、データ書込ルーチンでは、その疑似
キャラクタコードに対応する疑似フォントデータFDを
疑似フォントデータ4Hから読み出し、読み出した疑似
フォントデータFDをポインタの示す位置に書き込む、
その後、ポインタを行のプラス方向(右方向)へ2ドツ
ト分移動する。Although not shown, in the data writing routine, the pseudo font data FD corresponding to the pseudo character code is read from the pseudo font data 4H, and the read pseudo font data FD is written at the position indicated by the pointer.
Then, move the pointer two dots in the plus direction (to the right) of the line.
入力データが°’EOH″よりも大きい場合には、疑似
フォントデータFDの重ね書込みが必要であるため、重
ね書込み用の第1の疑似キャラクタコードを作るべく、
入力データから“60H″ (“80H″−“20H”
で求められる)を減算しくステップ#24)、上述と同
じデータ書込ルーチンをコールする(ステップ#26)
。If the input data is larger than °'EOH'', it is necessary to overwrite the pseudo font data FD, so in order to create the first pseudo character code for overwriting,
From input data “60H” (“80H”-“20H”
Step #24) and call the same data write routine as above (Step #26).
.
そして、ポインタを行のマイナス方向(左方向)へ2ド
ツト移動させ(ステップ42B)、重ね書込み用の第2
の疑似キャラクタコードとしてAOH”をセットしくス
テップ#30)、上述と同じデータ書込ルーチンを再び
コールする(ステップ#32)。Then, the pointer is moved two dots in the negative direction (to the left) of the line (step 42B), and the second
"AOH" is set as the pseudo character code of step #30), and the same data write routine as described above is called again (step #32).
次に、ステップ#38では、再書込フラグC−BACK
をチエツクする。Next, in step #38, the rewrite flag C-BACK
Check.
再書込フラグC−BACKがセットされていれば(ステ
ップ#38でノー)、ポインタを行方向へマイナス1ド
ツト移動させ(ステップ#70)、再書込フラグC−B
ACKをリセットしくステップ#72)、ステップ#2
2以降の処理を行う。If the rewrite flag C-BACK is set (No in step #38), the pointer is moved by minus one dot in the row direction (step #70), and the rewrite flag C-B is set.
Reset ACK Step #72), Step #2
Perform the processing from 2 onwards.
これによって、行方向の偶数番目に書き込まれる疑似フ
ォントデータFDの3列目に、同じ疑似フォントデータ
F[)の再書込みが行われ、全体として元の画像に対し
て行方向に2.5倍の解像度となる。As a result, the same pseudo font data F[) is rewritten in the third column of the even-numbered pseudo font data FD in the row direction, and the overall image is 2.5 times larger in the row direction than the original image. resolution.
再書込フラグC−BACKがセットされていなければ、
データカウンタG−COUNTをデクリメントしくステ
ップ#40)、その後、データカウンタG−VARが°
“2”であるか否かを判断する(ステップ#42)、こ
れによって、疑似フォントデータFDが列方向の3段目
に書き込まれたか否かを判断する。If the rewrite flag C-BACK is not set,
The data counter G-COUNT is decremented (step #40), and then the data counter G-VAR is
It is determined whether or not it is "2" (step #42), thereby determining whether or not the pseudo font data FD has been written in the third row in the column direction.
データカウンタG−VARが“2”でないとき(ステッ
プ#42でノー)、データカウンタG−HOLが偶数か
否かを判断しくステップ#50)、偶数である場合には
、ポインタを行方向へマイナス3ドツト、列方向へ1フ
オント、それぞれ移動させ(ステップ#51)、偶数で
ない場合には、ポインタを行方向へマイナス2ドツト、
列方向へ1フオント、それぞれ移動させ(ステップ#5
2)、次の疑似フォントデータFDの書き込みに備える
。その後、データカウンタG−VARをインクリメント
する(ステップ#53)。When the data counter G-VAR is not "2" (No in step #42), it is determined whether the data counter G-HOL is an even number (step #50), and if it is an even number, the pointer is moved backward in the row direction. Move the pointer 3 dots and 1 font in the column direction (step #51), and if the number is not even, move the pointer minus 2 dots in the row direction,
Move each font one font in the column direction (Step #5
2) Prepare for writing the next pseudo font data FD. Thereafter, the data counter G-VAR is incremented (step #53).
データカウンタG−VARが2″であるとき(ステップ
#42でイエス)、ポインタを列方向へマイナス2フオ
ント移動しくステップ#44)、データカウンタG−V
ARをリセットしくステップ#46)、データカウンタ
l:、−HoLをインクリメントする(ステップ#4B
)。When data counter G-VAR is 2'' (YES in step #42), move the pointer minus two fonts in the column direction (step #44), data counter G-V
To reset the AR (step #46), increment the data counter l:, -HoL (step #4B)
).
次に、データカウンタG−COUNTが0”になったか
否か、つまり全てのデータが入力完了したか否かを判断
する(ステップ#54)。Next, it is determined whether the data counter G-COUNT has reached 0'', that is, whether all data have been input (step #54).
データカウンタG−COUNTが“0”でないと判断さ
れれば、ステップ#12に戻って次のイメージデータD
を入力する。If it is determined that the data counter G-COUNT is not "0", the process returns to step #12 and the next image data D
Enter.
データカウンタC,−COUNTが“0”になった、す
なわち全イメージデータDの処理が完了したと判断され
れば、ステップ#8Bで退避したフォント名を再び選択
しくステップ#56)、処理フラグG−MODEをリセ
ットしくステップ#58)、ステップ#12に戻って次
のデータの入力に備える。When it is determined that the data counters C and -COUNT have become "0", that is, the processing of all image data D has been completed, the font name saved in step #8B is selected again (step #56), and the processing flag G -Reset the MODE (step #58), and return to step #12 to prepare for inputting the next data.
次に、上述した実施例に対する変形例について列挙する
。Next, modifications to the above-described embodiment will be listed.
(1)上述の実施例においては、疑似フォントデータF
Dを20行2列の40個のドツトデータから構成したが
、先にも述べたように、この疑似フォントデータFDを
格納する疑似フォントメモリ4Hの格納領域の大きさは
任意にとることができる。(1) In the above embodiment, the pseudo font data F
Although D is composed of 40 dot data arranged in 20 rows and 2 columns, as mentioned earlier, the size of the storage area of the pseudo font memory 4H that stores this pseudo font data FD can be arbitrarily set. .
例えば、20行20列の仮想行列の1列目と2列目とに
疑似フォントデータFDを格納しておき、ビットマツプ
メモリ4Aに書き込む際に3列目以降をマスクするよう
にしてもよい。又は、マスクすることなく20行20列
の全部のデータをビットマツプメモリ4Aに書き込み、
次の疑似フォントデータFDを先の疑似フォントデータ
FDの3列目から重ねて書き込んでもよい。For example, the pseudo font data FD may be stored in the first and second columns of a virtual matrix of 20 rows and 20 columns, and the third and subsequent columns may be masked when writing to the bitmap memory 4A. Alternatively, write all data in 20 rows and 20 columns to the bitmap memory 4A without masking,
The next pseudo font data FD may be written overlapping the previous pseudo font data FD from the third column.
このようにすることによって、フォントメモリ4Bのフ
ォントデータが20x20ド・ントで構成される場合に
、疑似フォントメモリ4Hの構成をフォントメモリ4B
と全く同一にすることができる。また、フォントデータ
の1列目と2列目が全てブランクであるようなフォント
メモリ4Bを、疑似フォントメモリ4Hに兼用すること
ができ、フォントデータ及び疑似フォントデータFDの
ためのメモリ領域を削減することが可能である。By doing this, when the font data of the font memory 4B is composed of 20x20 dots, the configuration of the pseudo font memory 4H is changed to the font memory 4B.
can be made exactly the same. In addition, the font memory 4B in which the first and second columns of font data are all blank can be used as the pseudo font memory 4H, reducing the memory area for font data and pseudo font data FD. Is possible.
(2)上述の実施例においては、解像度が120dpi
のワイヤドツトプリンタに適した記録情報を、解像度が
300dp iのレーザプリンタLPに適用させるよう
にした例を説明したが、解像度の比が整数倍である場合
には、疑似フォントデータFDとして列ベクトルbo〜
7を行方向および列方向にともに整数倍(等倍を含む)
したものを用意すればよく、且つビットマツプメモリ4
Aへの再書込みが不要となる。(2) In the above embodiment, the resolution is 120 dpi.
An example has been described in which recorded information suitable for a wire dot printer is applied to a laser printer LP with a resolution of 300 dpi. However, if the ratio of resolutions is an integral multiple, column vector bo is used as pseudo font data FD. ~
7 in the row and column directions by integral multiples (including equal magnification)
All you need to do is prepare a
Rewriting to A becomes unnecessary.
また、解像度の比が整数倍であるか否かに関係なく、疑
似フォントデータFDの行方向及び列方向の大きさをそ
れぞれ適当に設定し、且つビットマツプメモリ4Aへの
再書込みを適宜行うことによって、レーザプリンタLP
によって形成される画像の大きさを、元の画像に対して
任意のものとすることが可能である。したがって、元の
画像の大きさに対して、任意の倍率に拡大又は縮小する
ことが可能である。In addition, regardless of whether the resolution ratio is an integral multiple or not, the size of the pseudo font data FD in the row direction and column direction should be set appropriately, and the data should be rewritten to the bitmap memory 4A as appropriate. by Laser Printer LP
The size of the image formed can be made arbitrary with respect to the original image. Therefore, it is possible to enlarge or reduce the size of the original image to an arbitrary magnification.
(3)上述の実施例においては、イメージデータDが1
バイト単位で構成された例について説明したが、他のピ
ント構成であってもよく、それに応じて疑似フォントメ
モリ4Hを構成しておけばよい。(3) In the above embodiment, the image data D is 1
Although an example in which the focus is configured in byte units has been described, other focus configurations may be used, and the pseudo font memory 4H may be configured accordingly.
また、ビット構成の異なる複数種類の疑似フォントメモ
リ4Hを準備しておき、それらを適宜選択して用いるこ
ととしてもよい、その場合に、疑似フォントメモリ4H
の選択は、手動により、又は記録情報に含まれるコマン
ドデータを判別して自動的に切り替えるように構成する
ことができる。Furthermore, it is also possible to prepare a plurality of types of pseudo font memories 4H with different bit configurations and to select and use them as appropriate.
The selection can be made manually or automatically by determining the command data included in the recorded information.
(4)上述の実施例において、疑似フォントデータ書込
み部22によるビットマツプメモリ4Aへの書き込み動
作は、イメージデータD及び疑似フォントデータFDの
構成、ドツト用ホストコンピュータ1aの対象とするワ
イヤドツトプリンタの解像度又は構成、レーザプリンタ
LPの解像度又は構成、又は画像の倍率などに応じて、
種々変更することができ、上述のフローチャートも適宜
変更することができる。(4) In the above embodiment, the write operation by the pseudo font data writing unit 22 to the bitmap memory 4A is based on the configuration of the image data D and the pseudo font data FD, and the resolution of the wire dot printer targeted by the dot host computer 1a. Or depending on the configuration, resolution or configuration of the laser printer LP, or image magnification, etc.
Various changes can be made, and the above-described flowchart can also be changed as appropriate.
(5)上述の実施例においては、本発明のインタフェー
ス装置を内蔵したレーザプリンタLPについて説明した
が、これに代えて、インタフェース装置をドツト用ホス
トコンピュータ1aの出力部に持たせたり、又は、ドツ
ト用ホストコンピュータ1a及びレーザプリンタLPの
何れからも独立した単体の装置として構成してもよく、
その装置の形態や設置状態は任意である。(5) In the above embodiment, a laser printer LP incorporating the interface device of the present invention has been described, but instead of this, the interface device may be provided in the output section of the dot host computer 1a, or the dot It may be configured as a single device independent from both the host computer 1a and the laser printer LP.
The form and installation state of the device are arbitrary.
(6)上述の実施例において、ビットマツプメモリ4A
の容量は、半頁分や3分の1頁分てもよく、又は逆に2
頁分や3頁分等の複数頁分であってもよい。(6) In the above embodiment, the bitmap memory 4A
The capacity may be half a page, one-third of a page, or conversely, two
It may be multiple pages, such as one page or three pages.
(7)疑似フォントメモリ4H及びフォントメモリ4B
は、ROMカートリッジ式に構成してインタフェース装
置に対して着脱可能とし、インタフェース装置のメモリ
容量を増大させることなく、種々の疑似フォントデータ
FD又はフォントデータを使用することができるように
してもよい。(7) Pseudo font memory 4H and font memory 4B
may be constructed in the form of a ROM cartridge and made removable from the interface device, so that various pseudo font data FD or font data can be used without increasing the memory capacity of the interface device.
(8)上述の実施例においては、仮編集を行うためのテ
キストバッファ4Eを設け、記録のレイアウトや編集等
をより一層容易に行えるように構成したが、テキストバ
ッファ4Eを省略することも可能である。(8) In the above-described embodiment, the text buffer 4E for temporary editing is provided to facilitate recording layout and editing, but it is also possible to omit the text buffer 4E. be.
(9)上述の実施例においては、ページプリンタの一例
としてレーザプリンタLPを取り上げて説明したが、こ
れに代えて、LEDプリンタ、液晶プリンタ、サーマル
プリンタ、又はインクジェットプリンタなどの各種プリ
ンタに適用することが可能である。(9) In the above embodiment, the laser printer LP was explained as an example of a page printer, but instead, it can be applied to various printers such as an LED printer, a liquid crystal printer, a thermal printer, or an inkjet printer. is possible.
(発明の効果〕
本発明によると、ワイヤドツトプリンタの代わりに容易
にページプリンタを使用することが可能となり、しかも
ページプリンタの高速性を生かした高速な記録が可能で
あり、また、ページプリンタによって形成される画像の
大きさを種々設定することが可能である。(Effects of the Invention) According to the present invention, it is possible to easily use a page printer instead of a wire dot printer, and high-speed recording is possible by taking advantage of the high-speed performance of a page printer. It is possible to set various sizes of images.
第1図〜第6図は本発明の実施例を示し、第1図は本発
明に係るインタフェース装置を用いた記録用のシステム
を示すブロック図、第2図(a)は元の画像を示す回、
第2図(b)は第2図(a)に示す元の画像のイメージ
データを示す図、第2図(C)は第2図(b)のイメー
ジデータによってビットマツプメモリに書き込まれた疑
似フォントデータを示す図、第3図(a)〜(c)はイ
メージデータと疑似フォントデータとの対応関係を示す
図、第4図(a)〜(d)はイメージデータと疑似フォ
ントデータとの具体的な対応関係の例を示す図、第5図
は重ね書込みによって合成された疑似フォントデータを
示す図、第6図(a)及び(b)はイメージデータの処
理動作を示すフローチャート、第7図はワイヤド・ント
プリンタ用の記録情報の構成を示す図である。
4・・・プリントコントローラ(インタフェース装置)
、4A・・・ピントマツプメモリ、4H・・・疑似フォ
ントメモリ、21・・・疑似フォント読出し部(疑似フ
ォント読出し手段)、22・・・疑似フォントデータ書
込み部(疑似フォントデータ書込み手段)、D・・・イ
メージデータ、FD・・・疑似フォントデータ。1 to 6 show embodiments of the present invention, FIG. 1 is a block diagram showing a recording system using an interface device according to the present invention, and FIG. 2(a) shows an original image. times,
FIG. 2(b) is a diagram showing the image data of the original image shown in FIG. 2(a), and FIG. 2(C) is a diagram showing the image data of the original image shown in FIG. 2(b). Figures showing font data, Figures 3(a) to 3(c) are diagrams showing the correspondence between image data and pseudo font data, and Figures 4(a) to (d) are diagrams showing the correspondence between image data and pseudo font data. FIG. 5 is a diagram showing pseudo font data synthesized by overwriting, FIG. 6 (a) and (b) are flowcharts showing image data processing operations, and FIG. 7 is a diagram showing a specific example of correspondence. The figure shows the structure of recorded information for a wired printer. 4...Print controller (interface device)
, 4A... Focus map memory, 4H... Pseudo font memory, 21... Pseudo font reading section (pseudo font reading means), 22... Pseudo font data writing section (pseudo font data writing means), D ...Image data, FD...Pseudo font data.
Claims (1)
の画像データを画像イメージに応じてビットマップメモ
リに展開して書き込み、該ビットマップメモリに書き込
まれたデータを走査して読み出すようにしたプリンタの
インタフェース装置において、 種々のイメージデータについて、それぞれのイメージデ
ータのイメージに対応して構成された疑似フォントデー
タを多数格納した疑似フォントメモリと、 イメージデータに対応した疑似フォントデータを前記疑
似フォントメモリから読み出す疑似フォント読出し手段
と、 前記疑似フォント読出し手段により読み出された疑似フ
ォントデータの書き込み位置を画像イメージに応じて指
定し前記ビットマップメモリへ書き込む疑似フォントデ
ータ書込み手段と、 を有してなることを特徴とするプリンタのインタフェー
ス装置。(1) A printer that develops and writes a large amount of image data including image data consisting of multiple bits into a bitmap memory according to the image, and scans and reads out the data written in the bitmap memory. In the interface device, for various image data, a pseudo font memory stores a large number of pseudo font data configured corresponding to the image of each image data, and pseudo font data corresponding to the image data is read from the pseudo font memory. A pseudo font reading means; and a pseudo font data writing means for specifying a writing position of the pseudo font data read by the pseudo font reading means according to the image and writing it into the bitmap memory. Features: Printer interface device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19414888A JPH0243067A (en) | 1988-08-02 | 1988-08-02 | Interface device of printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19414888A JPH0243067A (en) | 1988-08-02 | 1988-08-02 | Interface device of printer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0243067A true JPH0243067A (en) | 1990-02-13 |
Family
ID=16319713
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP19414888A Pending JPH0243067A (en) | 1988-08-02 | 1988-08-02 | Interface device of printer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0243067A (en) |
-
1988
- 1988-08-02 JP JP19414888A patent/JPH0243067A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0703524B1 (en) | Variable data fields in a page description language | |
JP2790285B2 (en) | Full page graphics image display data compression method and apparatus | |
US5104245A (en) | Printing apparatus with form editor | |
JP3571735B2 (en) | Display graphic system for color laser copy machine | |
JPH0552274B2 (en) | ||
JPS6238734B2 (en) | ||
JPS5936778B2 (en) | data printing device | |
US5731800A (en) | Output method and apparatus | |
CA1286419C (en) | Horizontal line processor of data to be printed out sequentially | |
JPH0243067A (en) | Interface device of printer | |
JPH0243068A (en) | System for writing data in bit map memory | |
JP2636312B2 (en) | Printer interface device | |
JPH0343282A (en) | Printer control device | |
JPS59214967A (en) | Editing device of picture information | |
JPH0343281A (en) | Printer control device | |
JPH01237162A (en) | Interface device of printer | |
JPS5931752B2 (en) | printing device | |
JPS59181387A (en) | Graphic generator | |
JPS6273957A (en) | Image output device | |
JPS63233843A (en) | Bit map memory control device | |
JPS5990182A (en) | Information output device | |
JPS61156191A (en) | Character output system | |
JPS61156188A (en) | Character output system | |
JPH02125771A (en) | Recording apparatus | |
JPS6356476A (en) | Printer controller |