JPH0343282A - Printer control device - Google Patents
Printer control deviceInfo
- Publication number
- JPH0343282A JPH0343282A JP1181240A JP18124089A JPH0343282A JP H0343282 A JPH0343282 A JP H0343282A JP 1181240 A JP1181240 A JP 1181240A JP 18124089 A JP18124089 A JP 18124089A JP H0343282 A JPH0343282 A JP H0343282A
- Authority
- JP
- Japan
- Prior art keywords
- data
- font
- pseudo
- memory
- image
- 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 122
- 238000000034 method Methods 0.000 abstract description 8
- 230000008569 process Effects 0.000 abstract description 7
- 238000012545 processing Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 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
- 101100450705 Caenorhabditis elegans hif-1 gene Proteins 0.000 description 1
- 235000002597 Solanum melongena Nutrition 0.000 description 1
- 244000061458 Solanum melongena Species 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 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
- 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
- 150000003839 salts Chemical class 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
- Fax Reproducing Arrangements (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、プリンタの制御装置に関し、例えばドツトプ
リンタ用のイメージデータを出力する2f。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a printer control device, for example, a 2f device that outputs image data for a dot printer.
ストコンピュータにページプリンタを接続してプリント
する場合に利用される。It is used when printing by connecting a page printer to a storage computer.
〔従来の技術]
レーザビームと電子写真プロセスとを利用したレーザプ
リンタは、高速且つ高密度の印字又は画像記録が行える
ため、コンピュータを使用した各種データ処理システム
や画像作成システムの出力装置として広い用途を有して
いる。[Prior Art] 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. have.
レーザプリンタは、複数ビットからなるイメージデータ
を含んだ多数の画像データを画像イメージに応じて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 into a bitmap memory, reads it out, and prints out 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 corresponding to the image itself to be recorded, the image data is read from the font memory and written to a predetermined position on the bitmap memory. 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 in which a plurality of wire bins, such as four wire bins, are arranged vertically, and while moving the recording head in the horizontal direction, the plurality of wire bins 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 bins. 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.
しかし、レーザプリンタの価格が低下してきたことから
、ワイヤドツトプリンタとそれに適応するホストコンピ
ュータとからなる記録用のシステムにおいても、レーザ
プリンタを接続して使用したいという要望が多くなって
きた。そのため、ホストコンピュータとレーザプリンタ
との間に接続するための制御装置(インタフェース装置
)、又はレーザプリンタ内に組み込んでレーザプリンタ
をホストコンピュータに直接に接続可能とするための制
御装置が必要である。However, as the price of laser printers has declined, there has been an increasing desire to connect and use laser printers in recording systems consisting of wire dot printers and compatible host computers. Therefore, a control device (interface device) for connecting between the host computer and the laser printer, or a control device built into the laser printer so that the laser printer can be directly connected to the host computer is required.
このような制御装置として、全構成をハードウェアによ
って実現することが考えられるが、その場合には、単一
のプロトコルに対応させるにもハードウェアの追加によ
るコストアップを招来する虞があり、また、多種類のプ
ロトコルに対応させるためには、各プロトコル専用のハ
ードウェアが必要となり、構成の複雑化や甚大なコスト
アップを招来する虞がある。It is conceivable to realize the entire configuration of such a control device using hardware, but in that case, there is a risk of increasing costs due to the addition of hardware even if it is compatible with a single protocol. In order to support multiple types of protocols, dedicated hardware for each protocol is required, which may result in a more complex configuration and a significant increase in cost.
したがって、コスト的に有利に且つ多種類のプロトコル
にも容易に対応できるようにするためには、データの処
理過程の変更だけでそれらへの対処が可能なプロトコル
変換用のエミュレータによって、ソフト的に制御装置を
実現する必要がある。Therefore, in order to be cost-effective and easily compatible with a wide variety of protocols, a software-based emulator for protocol conversion that can handle them simply by changing the data processing process is needed. It is necessary to realize a control device.
また、ページプリンタにおいては、−a的にドツト密度
(画素密度)がワイヤドツトプリンタに比べて高いため
、ワイヤドツトプリンタ用のデータを単にビット単位で
対応するように変換しただけでは、ページプリンタによ
り形成される画像が必要とする画像のサイズよりも小さ
なサイズのものしか得られないという問題も生しる。Also, in page printers, the dot density (pixel density) is higher than that in wire dot printers, so simply converting data for wire dot printers so that they correspond bit by bit will not work. Another problem 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 makes it possible to use a page printer instead of a wire dot printer, and moreover, is capable of high-speed recording, and is capable of setting various image sizes. is intended to provide.
本発明は、上述の課題を解決するため、複数ビットから
なるイメージデータを含んだ多数の画像データを画像イ
メージに応じてビットマツプメモリに展開して書き込み
、該ビットマップメモリに書き込まれたデータを走査し
て読み出すようにしたプリンタの制御装置において、種
々のイメージデータについて、それぞれのイメージデー
タのイメージに対応じて構成された疑似フォントデータ
を多数格納した疑似フォントメモリと、イメージデータ
に対応した疑似フォントデータを前記疑似フォントメモ
リから読み出すIJ(14フォント読出し手段と、前記
ビットマツプメモリへの書き込み位置を指定するための
ポインタを当該ビットマツプメモリ上で縦方向に順次上
から下に向かって移動させて、前記疑似フォント読出し
手段により読み出された疑似フォントデータを当該ビッ
トマツプメモリへ書き込む疑似フォントデータ書込み手
段と、イメージデータを前記疑似フォント読出し手段に
送るとともに、画像イメージに応じて前記ポインタを制
御する制御情報を前記疑似フォントデータ書込み手段に
送るビットマツプ制御手段とを有してなることを特徴と
して構成される。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 control device that scans and reads out various image data, a pseudo font memory stores a large amount of pseudo font data configured corresponding to the image of each image data, and a pseudo font memory corresponding to the image data. An IJ (14 font reading means) for reading font data from the pseudo font memory and a pointer for specifying a writing position to the bitmap memory are sequentially moved vertically from top to bottom on the bitmap memory. pseudo font data writing means for writing the pseudo font data read by the pseudo font reading means into the bitmap memory; and sending image data to the pseudo font reading means and controlling the pointer according to the image. and bitmap control means for sending control information to the pseudo font data writing means.
疑似フォントメモリは、種々のイメージデータについて
、それぞれのイメージデータのイメージに対応じて構成
された疑似フォントデータを多数格納している。The pseudo font memory stores a large amount of pseudo font data of various types of image data configured in correspondence with the image of each image data.
疑似フォント読出し手段は、ビットマツプ制御手段から
送られてくるイメージデータに対応した疑似フォントデ
ータを疑似フォントメモリから読み出す。The pseudo font reading means reads pseudo font data corresponding to the image data sent from the bitmap control means from the pseudo font memory.
疑似フォントデータ書込み手段は、ビットマツプメモリ
への書き込み位置を指定するためのポインタを当該ビッ
トマツプメモリ上で縦方向に順次上から下に向かって移
動させて、疑似フォント読出し手段により読み出された
疑似フォントデータを当該ビットマンツブメモリへ書き
込む。このとき、ポインタは、ピントマツプ制御手段か
ら送られてくる制御情報によっても制御される。したが
って疑似フォントデータは、画像イメージに応した回数
だけ縦方向に連続して順次書き込まれ、且つ横方向に順
次書き込まれる。The pseudo font data writing means sequentially moves a pointer for specifying the writing position to the bitmap memory in the vertical direction from top to bottom on the bitmap memory, and the pseudo font data reading means reads out the data. Write pseudo font data to the bitman tube memory. At this time, the pointer is also controlled by control information sent from the focus map control means. Therefore, the pseudo font data is sequentially written in the vertical direction a number of times corresponding to the image, and is written sequentially in the horizontal direction.
ビットマツプ制御手段は、イメージデータを疑似フォン
ト読出し手段に送るとともに、画像イメージに応じてポ
インタを制御するための制御情報を疑似フォントデー、
夕書込み手段に送る。The bitmap control means sends the image data to the pseudo font reading means, and also sends control information for controlling the pointer according to the image to the pseudo font data.
Send it to the evening writing means.
以下、本発明の実施例を図面を参照しつつ説明する。 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 control 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 a control device according to the present invention.
第1図に示すように、ホストコンピュータIからの記録
情報は、ケーブル2を介してレーザプリンタLPに人力
される。As shown in FIG. 1, recorded information from a host computer I is manually 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. The print controller 4 serves as a control device for controlling the printing process.
記録部3へは、プリントコントローラ4からデータバス
5を介して記録情報が伝送されるととちに、それら両者
の間で、コマンドバス6を介して記録制御用の情報が相
互に伝送されるように構成されている。Recording information is transmitted from the print controller 4 to the recording unit 3 via the data bus 5, and information for recording control is mutually transmitted between the two via the command bus 6. It is configured as follows.
プリントコントローラ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 a 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 made up of hardware such as a central processing unit such as a microcomputer, memories such as ROM and RAM, programs stored therein, peripheral devices thereof, and other logic elements. It consists of 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を走査して記録情報
をI+li次読み出し、データバス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, and the bitmap reading section 4C completes writing of the recorded information into the bitmap memory 4A. After that, in response to a print start command from the focus map control section 4D, the bit map memory 4A is scanned to read out the recorded information I+li times, and the data is sent to the recording section 3 via the data bus 5.
Output to.
ビットマツプ読書部4Cは、ヒフ1フフ111フ18部
インタフェース11、データ書込部12、プリントヘッ
ド制御部インタフェース13、フォントメモリインタフ
ェース14などから構成されている。The bitmap reading section 4C is composed of a HIF 1 FF 111 FF 18 interface 11, a data writing section 12, a print head control section 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からの記録情報の読み出
しと、プリントヘッド制?21部3aへの出力とを行う
。The print head control unit interface 13 reads recorded information from the bitmap memory 4A and controls the print head according to a print start command sent as print control data. 21 section 3a.
データ書込部工2は、記録情報に応じてビットマツプメ
モリ4Aの仮想行列上の所定の位置に書き込む。The data writing section 2 writes data to a predetermined position on the virtual matrix of the bitmap memory 4A according to the recording information.
ところで、ホストコンピュータlから送られる記録情報
には2種類ある。その一つは、画像を構成する文字の集
合として送られて来る文字情報であり、通常、1バイト
単位のASCIIコードと呼ばれるキャラクタコードと
して送られて来る。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 an ASCII code in units of one byte.
他の一つは、画像そのものを分解した画素の集合として
送られて来る画像情報である。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 recording information is image information, it is determined by the bitmap control unit 4D, and the image information is written to bits by the data writing unit 12 via the bitmap@control unit interface 11 of the bitmap reading unit 4C. Data are sequentially written starting from a predetermined position in the map memory 4A.
他方、入力された記録情報が文字情報である場合には、
通常はその文字情報であるキャラクタコードに先立って
コマンドコードが送られて来るので、ビットマツプ制御
部4Dによってそれが判別され、その判別結果に基づい
て、データ書込部I2がフォントメモリインタフェース
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 I2 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 above-mentioned font memory 4B 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 this is well known, a 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 writing area on memory 4A with a pointer,
The read font data is written into the bitmap memory 4A.
ホストコンピュータ1からの文字情報としての複数のキ
ャラクタコードは、複数行からなる記録の各行が上から
下に並ぶ順序で、かつ、複数の文字からなる各行におい
て各文字が左から右に並ぶ順序で送られて来る。したが
って、データ書込部12は、キャラクタコードに対して
は、各キャラクタコードに対応するフォントデータが、
ビットマツプメモリ4Aの仮想行列上において、左から
順に右に向かって並ぶ集合が、上から順に下に向かって
並ぶ状態となるよう、各フォントデータの書き込み位置
を指示するポインタを制御するように構成されている。A plurality of character codes as character information from the host computer 1 are arranged in the order in which each line of a record consisting of a plurality of lines is arranged from top to bottom, and in the order in which each character in each line consisting of a plurality of characters is arranged from left to right. It will be sent to you. Therefore, the data writing unit 12 writes the font data corresponding to each character code to the character code.
It is configured to control the pointer indicating the write position of each font data so that the sets arranged from left to right are arranged from top to bottom on the virtual matrix of bitmap memory 4A. has been done.
具体的には、キャラクタコードに対してデータ書込部1
2により制御されるポインタは、あるフォントデータの
1行1列目のドツトデータの書き込み位i1i!(以下
、先頭アドレス位置と言う)を指示するだけであり、そ
のフォントデータの残りのドツトデータは自動的に書き
込まれるように構成されている。そして、複数のフォン
トデータを上述した順序でビットマツプメモリ4Aに格
納するにあたっては、ポインタをフォントデータの大き
さに相当する分だけ増加させる(プラスの行方向に移動
させる)ことで行うように構成されている。Specifically, the data writing section 1
The pointer controlled by 2 points to the writing position i1i! of the dot data in the 1st row and 1st column of certain font data. (hereinafter referred to as the start address position), the remaining dot data of the font data is automatically written. When storing a plurality of font data in the bitmap memory 4A in the above-described order, the pointer is increased by an amount corresponding to the size of the font data (moved in the positive row direction). has been done.
上述のように、プリントコントローラ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と、
それ専用のホストコンピュータ1とを組み合わせたもの
である。しかし、記録用のシステムには、従来から多用
されているワイヤドツトプリンタと、それに対して専用
のホストコンピュータとを組み合わせたものもある。ワ
イヤドツトプリンタ専用のホストコンピュータからの記
録情報は、画像情報であるイメージデータの場合、ワイ
ヤビンの個数に対応するビット数のデータを、記録ヘッ
ドの横方向の移動に対応するように順次シリアルに出力
するように構成されている。The above-mentioned recording system includes a laser printer LP,
It is combined with a dedicated host computer 1. However, some recording systems combine a conventionally widely used wire dot printer 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, the laser beam printer cannot be used as it is as an output terminal for a host computer dedicated to wire dot blinking.
本実施例は、レーザプリンタLPをワイヤドツトプリン
タ専用のホストコンピュータに対する出力端末機として
使用することを可能にするとともに、イメージデータD
を処理するときはビットマツプメモリ4Aへのデータの
書き込みモードを縦方向書き込みモードに設定し、この
種のページプリンタが本来的に備えている機能を有効利
用して、より高速に且つコスト的に有利に実現できるよ
うに構成したものである。これについて以下説明する。This embodiment enables the laser printer LP to be used as an output terminal for a host computer dedicated to a wire dot printer, and also allows image data D
When processing data, set the data write mode to the bitmap memory 4A to vertical write mode, and effectively utilize the functions inherent in this type of page printer to achieve higher speed and lower cost. This is a configuration that 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バイト単位の連
続する3AllのシリアルデータBlO〜17.B20
〜27.B30〜37は、ワイヤドツトプリンタにおい
ては、記録ヘッドHDのそれぞれ8個づつ合計24個の
ワイヤピンWo〜7、W8〜15.W16〜23に対応
するように構成されている。As shown in FIG. 7, the dot host computer 1a
3 All consecutive serial data BIO~17. in units of 1 byte are transmitted via the cable 2a from BIO to 17. B20
~27. In the wire dot printer, B30-37 are wire pins Wo-7, W8-15.B, which are 8 wire pins each, 24 in total, of the recording head HD. It is configured to correspond to W16 to W23.
一方、前述したレーザプリンタLPにおいて′G1上述
した1バイトづつのシリアルデータBIO〜B 37
カFt1方向に並ぶ24個のワイヤビンWO〜W23に
対応したものであることから、そのシ1.′アルデータ
が画像情報としてのイメージデータ]ある場合に、文字
情報を扱う場合と同様の扱いマイメージデータをビット
マツプメモリ4A上に居間するために、ビットマツプ制
御部4Dは、イメージデータを上述したキャラクタコー
ドと同様C構成の疑似キャラクタコードとしてプリント
コ〉トローラ4のビットマツプ読書部4Cに出力すZよ
うに構成されている。On the other hand, in the laser printer LP described above, 'G1' serial data BIO to B 37 of 1 byte each as described above.
Since it corresponds to the 24 wire bins WO to W23 lined up in the Ft1 direction, the 1. In some cases, the bitmap control unit 4D handles the image data in the bitmap memory 4A in the same manner as when handling character information. Like the character code, it is configured to be outputted to the bitmap reading section 4C of the print controller 4 as a pseudo character code having a C configuration.
ビットマツプ制御部4Dでは、先に説明したオストコン
ピュータ1からキャラクタコードが入丈された場合と同
様に、ドツト用ホストコンピュータ1aからのイメージ
データをテキストバッファ4Eを用いて仮編集する。ま
た、ビットマツプ啜書部4Cにおいても、ピントマツプ
制御部4Dからの仮編集後のイメージデータを用いて、
ビットマツプメモリ4Aへの記録用のドツトデータの書
き込みを行う。The bitmap control section 4D temporarily edits the image data from the dot host computer 1a using the text buffer 4E, as in the case where the character code is input from the host computer 1 described above. In addition, the bitmap writing unit 4C also uses the image data after temporary editing from the focusmap control unit 4D.
Dot data for recording is written into the bitmap memory 4A.
つまり、ビットマツプ制御部4Dを経たイメージデータ
は、1バイト毎にひとまとまりになっているので、その
1バイトのイメージデータの集合を、恰もそれがキャラ
クタコードであるかのように扱い、その疑似キャラクタ
コードに対応する疑似フォントデータを用意しておくこ
とで、ドツト用ホストコンピュータIaからの画像情報
であるイメージデータをビットマツプメモリ4Aに書き
込むに際して、キャラクタコードが入力された場合と同
様の処理を行うこととし、この種のプリンタが本来的に
備えているa能を有効利用してコスト的に有利になるよ
う構成しているのである。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 Ia, 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 capabilities.
そのため、前述したフォントメモリ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.
疑似フォントデータ書込み部22では、疑似フォントデ
ータFDを元の真偽イメージと一致するようビットマツ
プメモリ4Aに効率よく高速に書き込むために、ポイン
タを、ビットマツプメモリ4A上で縦方向に順次上から
下に向かって移動させるようになっている。In the pseudo font data writing section 22, in order to write the pseudo font data FD into the bitmap memory 4A efficiently and quickly so that it matches the original true/false image, the pointer is moved vertically from the top on the bitmap memory 4A. It is designed to move downward.
つまり、データ書込部12では、ビットマツプメモリ4
Aへの書き込みモードとして、横方向書き込みモード(
横方向印字モード)と縦方向書き込みモード(縦方向印
字モード)とを選択することが可能に構成されている。That is, in the data writing section 12, the bitmap memory 4
As the write mode to A, horizontal write mode (
It is configured such that it is possible to select between a horizontal direction printing mode (horizontal direction printing mode) and a vertical direction writing mode (vertical direction printing mode).
横方向書き込みモードでは、ビットマツプメモリ4A上
を左から右へ且つ上から下へポインタを移動させてデー
タを書き込む、これに対して縦方向書き込みモードでは
ビットマツプメモリ4A上を上から下へ且つ左から右へ
ポインタを移動させるとともに、書き込むべきデータ(
疑似フォントデータ)を右方向へ90度回転させて書き
込む、横方向書き込みモードと縦方向書き込みモードと
は、ビットマツプIII御部4Dから送られてくる制御
情報によって選択されて設定される。したがって、疑似
フォントデータ書込み部22は、データ書込部12にお
いて縦方向書き込みモードが選択されたときに実現され
る機能であるといえる。In the horizontal write mode, data is written by moving the pointer from left to right and from top to bottom on the bitmap memory 4A, whereas in the vertical write mode, data is written by moving the pointer from top to bottom on the bitmap memory 4A. Move the pointer from left to right and select the data to be written (
A horizontal writing mode and a vertical writing mode in which the pseudo font data (pseudo font data) are rotated 90 degrees to the right and written are selected and set by control information sent from the bitmap III control unit 4D. Therefore, it can be said that the pseudo font data writing section 22 is a function that is realized when the vertical writing mode is selected in the data writing section 12.
そして、ビットマツプ制御部4Dは、入力データがイメ
ージデータである場合に、イメージデータに先立って縦
方向書き込みモードを設定する制御情報を、イメージデ
ータの終了後に縦方向書き込みモードを解除して横方向
書き込みモードに戻す制御情報を、それぞれデータ書込
部12へ送るとともに、疑似フォントデータを画像イメ
ージにしたがってビットマツプメモリ4Aに書き込むこ
とができるように、ポインタを制御する制御情報を疑似
フォントデータ書込み部22へ送る機能を有している。Then, when the input data is image data, the bitmap control unit 4D transmits control information for setting the vertical write mode prior to the image data, and cancels the vertical write mode and writes the horizontal direction after the image data is completed. Control information for returning to the mode is sent to the data writing section 12, and control information for controlling the pointer is sent to the pseudo font data writing section 22 so that the pseudo font data can be written into the bitmap memory 4A according to the image. It has a function to send to.
つまり、横方向書き込みモードでは、ビットマツプ制御
部4Dからデータ書込部12ヘイメージデークDを送る
毎に(つまりデータ書込部12で疑似フォントデータF
Dの書き込みを行う毎に)、ポインタを制御するための
制御情報を送らなければならないが、縦方向書き込みモ
ードとすることによって、ポインタの制御情報を毎回送
る必要がなくなる。これによって、ビットマツプ制御部
4Dからデータ書込部12(疑似フォントデータ書込み
部22)へ送る制御情報のデータ量が減少し、データ書
込部12での制御情報の解析及びその実行のための時間
が減少し、全体として処理時間が低減して高速な書き込
みが行える。That is, in the horizontal writing mode, every time the bitmap control unit 4D sends the image data D to the data writing unit 12 (that is, the data writing unit 12
Although it is necessary to send control information for controlling the pointer each time D is written, by using the vertical write mode, it is no longer necessary to send pointer control information every time. As a result, the amount of control information sent from the bitmap control unit 4D to the data writing unit 12 (pseudo font data writing unit 22) is reduced, and the time required for analysis and execution of the control information in the data writing unit 12 is reduced. , the overall processing time is reduced, and high-speed writing is possible.
次に、疑似フォントメモリ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)に示す行ベクトルbO〜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 third row vector is the same as that row vector.
The row vector bO~7 shown in Figure (b) is doubled in the column direction (vertical direction) and 2.5 times in the row direction (horizontal direction) to constitute a virtual matrix, as shown in Figure 3 (C). This is 40 dot data.
疑似フォントデータFDについてさらに説明すると、ド
ツト用ホストコンピュータlaからのイメージデータは
、解像度(ドツト密度)が120dpiのワイヤドツト
プリンタを対象とするものである。一方、本実施例のレ
ーザプリンタLPの解像度は300dp iである。そ
のため、ワイヤドツトプリンタ用のイメージデータ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 dpi. Therefore, when pseudo font data is constructed from the eight dot data forming the line vector shown in FIG. 3(b) for the line vector formed by the image data D for wire dot printers, The image obtained using this method is 2.5 times smaller in both the horizontal and vertical directions than the required image size.
そこで、疑似フォントデータとして、両プリンタの解像
度の比であるr 2.5Jを倍数として、上述の行ベク
トルを行方向(横方向)及び列方向(縦方向)に拡大し
たものを用意しておけば、はぼ同じサイズの画像を得る
ことができる。Therefore, as pseudo font data, prepare the above-mentioned row vector expanded in the row direction (horizontal direction) and column direction (vertical direction) using r 2.5J, which is the ratio of the resolutions of both printers, as a multiple. For example, you can get images of approximately the same size.
しかし具体的には、列方向には端数を近似させることが
できないので2倍とし、行方向には端数も含めて2.5
倍としである。However, specifically, since it is not possible to approximate the fraction in the column direction, it is doubled, and in the row direction, including the fraction, it is 2.5.
It's double.
すなわち、疑似フォントデータFDの行方向の構成は、
第3図(c)に括弧で括って示しであるように、行ベク
トルの奇数列に対しては行方向に2倍するとともに偶数
列に対しては行方向に3倍することによって、全体とし
て、この疑似フォントデータFDが行ベクトルを行方向
に2.5倍したものに近似させである。In other words, the configuration of the pseudo font data FD in the row direction is as follows:
As shown in parentheses in Figure 3(c), by doubling the row vector in the row direction for odd columns and multiplying it by 3 in the row direction for the even columns, the total , this pseudo font data FD approximates the row vector multiplied by 2.5 in the row direction.
また、列方向については、疑似フォントデータFDが上
述のように行ベクトルを2倍したものであるので、後述
するビットマツプメモリ4Aへ書き込む際に、第2図(
C)に示すように、疑似フォントデータFDを右方向へ
90度回転させるとともに、ビットマツプメモリ4A上
での横方向(したがって、元の疑似フォントデータFD
での列方向)の偶数番目に書き込む疑似フォントデータ
FDについてはその横方向の3列目に再書き込みを行う
ことによって、全体として元の画像の2゜5倍の解像度
の画像が得られるようにしである。In addition, in the column direction, since the pseudo font data FD is the row 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), the pseudo font data FD is rotated 90 degrees to the right, and the original pseudo font data FD is
By rewriting the pseudo font data FD written in the even-numbered position (column direction) in the third horizontal column, an image with an overall resolution 2.5 times that of the original image can be obtained. It is.
第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)に示すr3CH,のイメージデ
ータDが送られてくるが、このイメージデータr3CH
,に対しては、第4図(C)に示す疑似フォントデータ
FD3Cが用意されている。Image data D of r3CH shown in FIG. 4(b) is sent corresponding to wire bin WO~7 in the bit state shown in FIG. 4(a), but this image data r3CH
, pseudo font data FD3C shown in FIG. 4(C) is prepared.
但し、実際には、疑似フォントメモリ4Hは行方向にバ
イト単位で構成されることが多いから、その場合には、
各疑似フォントデータFDに対して3バイトのメモリ領
域を与えるように構成される。したがって、疑似フォン
トメモリ4Hから読み出されるデータは、第4図(d)
に示すように、24×2ドツトのデータである。このデ
ータから上述の疑似フォントデータFD3Cを得るため
には、例えば右の4列をマスクした状態でビットマップ
メモリ4Aに書き込むこととなる。However, in reality, the pseudo font memory 4H is often configured in byte units in the row direction, so in that case,
It is configured to provide a 3-byte memory area for each pseudo font data FD. Therefore, the data read from the pseudo font memory 4H is as shown in FIG. 4(d).
As shown in the figure, it is data of 24×2 dots. In order to obtain the above-mentioned pseudo font data FD3C from this data, for example, the four columns on the right are masked and written into the bitmap memory 4A.
さて、ビットマツプ制御部4Dでは、ドツト用ホストコ
ンピュータlaから送られてくる記録情報を受は取り、
シリアルデータよりも先の先頭部分に付されたコマンド
データによって、以後のシリアルデータがワイヤドツト
プリンタ用のプロトコルのイメージデータDであると判
別する。Now, the bitmap control section 4D receives the recorded information sent from the dot host computer la, and
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 memory 4D determines that the subsequent serial data is the 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.
疑似フォントデータ書込み部22は、書き込み位置を示
すポインタを、1個の疑似フォントデータFDの書き込
みが終了する毎に、縦方向(列方向)のプラス方向(上
から下へ向く方向)に、疑似フォントデータFDの行方
向のドツト数(以下、このドツト数を1フオントという
ことがある)である20ドツトを移動させる。ピントマ
ツプメモIJ 4 Aの縦方向の1列に書き込みが終了
すると、そこで改行を行い、ポインタを最上の行へ戻す
とともに横方向へ疑似フォントデータFDの列方向のド
ツト数である2ドツトを自動的に移動させる。The pseudo font data writing unit 22 moves the pointer indicating the write position in the positive direction (direction from top to bottom) in the vertical direction (column direction) every time writing of one pseudo font data FD is completed. 20 dots, which is the number of dots in the row direction of the font data FD (hereinafter, this number of dots may be referred to as 1 font), are moved. When writing is completed in one vertical column of focus map memo IJ4A, a line feed is performed there, the pointer is returned to the top row, and two dots, which is the number of dots in the column direction of the pseudo font data FD, are automatically written horizontally. move the target.
しかし、ポインタは、ビットマツプ制御部4Dからの制
?11情報によっても制御4される。However, is the pointer controlled by the bitmap control unit 4D? 11 information is also controlled 4.
つまり、ビットマツプ制御部4Dからは、3個のイメー
ジデータDを送る毎に、つまり3個の疑似フォントデー
タFDの書き込みが終了する毎に、ポインタを横方向に
2ドツト移動させ且つ縦方向に3フォント戻す(マイ、
ナス3フオント移動させる)ための制御情報を送る。In other words, the bitmap control unit 4D moves the pointer two dots horizontally and three dots vertically every time three pieces of image data D are sent, that is, every time writing of three pseudo font data FD is completed. Restore font (My,
control information to move the eggplant 3 fonts).
また、横方向に偶数番目に書き込まれる疑似フォントデ
ータFDを再書き込みするために、ポインタを縦方向に
マイナス1フオント移動させ且つ横方向へ1ドツト移動
させるための制御情報を送る。これによって、ポインタ
は疑似フォントデータFDを1回目に書き込んだときよ
りも行方向に1ドツト移動し、その位置に同し疑似フォ
ントデータFDで2回目の書き込みが行われ、その結果
として疑似フォントデータFDが3列に渡って書き込ま
れる。この再書き込みによって、ビットマツプメモリ4
A上において横方向にも2.5倍としたドツトデータが
得られる。Furthermore, in order to rewrite the even-numbered pseudo font data FD written in the horizontal direction, control information is sent to move the pointer minus one font in the vertical direction and one dot in the horizontal direction. As a result, the pointer moves one dot in the row direction compared to when the pseudo font data FD was written the first time, and the same pseudo font data FD is written at that position for the second time, and as a result, the pseudo font data The FD is written in three columns. By this rewriting, bitmap memory 4
On A, dot data magnified by 2.5 in the horizontal direction can also be obtained.
また、横方向の偶数番目では疑似フォントデータFDの
再書き込みによってポインタが横方向に1ドツト分進み
過ぎるので、次の疑似フォントデータFD、つまり2個
目又は3個目の疑似フォントデータFDの書き込みのた
めに、ポインタを横方向にマイナス1ドツト移動させる
制御情報を送つまり、データ書込部12は、ビットマツ
プ制御部4Dから1バイトづつのイメージデータが人力
されるのに伴って、各イメージデータDを疑似キャラク
タコードとしてそれに対応する疑似フォントデータFD
を疑似フォントメモリ4Hから読み出し、読み出した疑
似フォントデータFDを、ビットマツプメモリ4A上に
おいて、縦方向に3段となるように順次上から下へ向か
い、且つ左から右へと行方向に沿って隙間なく並ぶよう
に展開して書き込む。In addition, since the pointer advances one dot in the horizontal direction due to the rewriting of the pseudo font data FD in the even-numbered horizontal direction, the next pseudo font data FD, that is, the second or third pseudo font data FD, is written. Therefore, the data writing section 12 sends control information to move the pointer by minus one dot in the horizontal direction.In other words, the data writing section 12 writes each image data as each byte of image data is manually inputted from the bitmap control section 4D. Pseudo font data FD corresponding to D as a pseudo character code
is read from the pseudo font memory 4H, and the read pseudo font data FD is placed on the bitmap memory 4A in three stages vertically from top to bottom and from left to right along the row direction. Expand and write so that they line up without any gaps.
なお、ポインタの移動のプラスマイナスは、上述のよう
にビットマップメモリ4Aに対して通常の読み書きのた
めに走査する方向がプラス、その逆方向がマイナスであ
る。本実施例では、上がら下へ向かう方向及び右から左
へ向かう方向がプラスである。Note 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 top to bottom and the direction from right to left are positive.
また、1バイトのイメージデータDを迂似キャラクタコ
ードに対応させるにあたっては、「o。In addition, in making the 1-byte image data D correspond to the pseudo character code, "o.
H」からrlFHJまでのコードは、プリンタ制御コー
ドとして用いられるため、入力された1バイトのイメー
ジデータDに「20H」を加えて疑似キャラクタコード
として扱うように構成されている。Since the codes from "H" to rlFHJ are used as printer control codes, "20H" is added to the input 1-byte image data D and the codes are treated as pseudo character codes.
次頁に示す第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.
(以下余白)
第
裏
なお、イメージデータDのrEOH」から「FFHJに
ついては、上述のように疑似キャラクタコードとしてr
ooH,からrlFHJまでが使えないことで単一の疑
似フォントデータFDでは対応できない関係上、2個の
疑似フォントデータFDをビットマツプメモリ4Aの同
じ位置に重ねて書き込むことで対処するようになってい
る。(The following is a blank space) On the back side, rEOH" to "FFHJ" of image data D are used as pseudo character codes
Since ooH, to rlFHJ cannot be used, a single pseudo font data FD cannot be used, so the solution was to write two pseudo font data FDs at the same location in the bitmap memory 4A in an overlapping manner. There is.
例えば、rFFH」のイメージデータDに対する疑似フ
ォントデータFDFFを得るためには、第5図に示すよ
うに、r80 HJの擬似フォントデータ(疑似キャラ
クタコードとしてはrA。For example, to obtain pseudo font data FDFF for image data D of "rFFH", as shown in FIG. 5, pseudo font data of r80HJ (rA as a pseudo character code) is obtained.
H,)FD80と、r7FH,の疑似フォントデータ(
疑似キャラクタコードとしてはr9FHJ)FD7Fと
を用い、擬似フォントデータFD80を書き込んだ後で
、ポインタを縦方向にマイナス1フオントf多動させ(
これによってポインタは同じ位置を指示する)、次に疑
似フォントデータFD7 Fを書き込む。これによって
、これら2個の疑似フォントデータFD80.FD7F
が重ねて書き込まれ、rFFHJのイメージデータDに
対する疑似フォントデータFDFFが得られる。H, ) FD80 and r7FH, pseudo font data (
Use r9FHJ)FD7F as the pseudo character code, and after writing the pseudo font data FD80, move the pointer vertically by -1 font f (
(This causes the pointer to point to the same position), and then pseudo font data FD7F is written. As a result, these two pseudo font data FD80. FD7F
are written in an overlapping manner, and pseudo font data FDFF for image data D of rFFHJ 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
への書き込み動作、特に、ピントマツプ制御部4D及び
疑似フォントデータ書込み部22によるポインタの制御
について、第2図(a)〜(c)により具体的に説明す
る。Next, the bitmap memory 4A by the data writing section 12
The writing operation, particularly the pointer control by the focus map control section 4D and the pseudo font data writing section 22, will be explained in detail with reference to FIGS. 2(a) to 2(c).
第2図(a)は、元の画像、すなわち再現しようとする
画像FMを示す図である。FIG. 2(a) is a diagram showing the original image, that is, the image FM to be reproduced.
画像FMは、8×24ビツトの画素から構成されており
、横方向にはlビット毎に8分割され、縦方向には8ピ
ント毎に3分割され、分割されたそれぞれの部分がイメ
ージデータDとしてドツト用ホストコンピュータ1aか
ら送られてくる。The image FM is composed of 8 x 24 bit pixels, horizontally divided into 8 parts every l bit, vertically divided into 3 parts every 8 points, and each divided part is image data D. It is sent from the dot host computer 1a as a.
第2図(b)は、画像FMのイメージデータDl〜24
を示す図である。なお、第2図(b)では、各イメージ
データD1〜24を縦方向に表示しである。FIG. 2(b) shows image data Dl~24 of image FM.
FIG. In FIG. 2(b), each image data D1 to D24 is displayed vertically.
イメージデータ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は
、ポインタを縦方向書き込みモードによって自動的に進
めるとともに、さらにビットマツプ制御部4Dからの制
御情報によってポインタを移動させ、疑似フォントデー
タFD1〜24をビットマツプメモリ4Aに書き込む。The pseudo font data writing section 22 of the data writing section 12 automatically advances the pointer in the vertical writing mode, further moves the pointer according to control information from the bitmap control section 4D, and writes the pseudo font data FD1 to FD24 in bits. Write to map memory 4A.
第2図(C)は、ビットマツプメモリ4Aに書き込まれ
た疑似フォントデータFD1〜24を示す図である。FIG. 2(C) is a diagram showing pseudo font data FD1-FD24 written in the bitmap memory 4A.
疑似フォントデータFDの書き込みは、各疑似フォント
データFDの先頭ドツト(第20行第1列のドツト)を
書き込む位置をポインタで指示した状態で、後述のフロ
ーチャートで述べるデータ書込ルーチンを実行すること
によって行われる。To write the pseudo font data FD, execute the data write 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. carried out by
このデータ書込ルーチンを実行すると、疑似フォントデ
ータFDが右方向へ90度回転された状態でその全ての
ドツトデータが所定の位置に書き込まれ、書き込みが終
了したときには、ポインタは縦方向へ1フオント自動的
に移動した状態となる。When this data writing routine is executed, the pseudo font data FD is rotated 90 degrees to the right and all of its dot data is written to the predetermined position, and when writing is completed, the pointer moves one font vertically. It will automatically move.
したがって、1番目の疑似フォントデータFD1の書き
込みにあたっては、ポインタにより先頭アドレス位置P
1を指示する。1番目の疑似フォントデータFDIが書
き込まれると、ポインタは、位置P1から縦方向へ1フ
オント移動した位置P2を指示した状態となる。Therefore, when writing the first pseudo font data FD1, the pointer is used to write the first address position P.
Instruct 1. When the first pseudo font data FDI is written, the pointer is in a state pointing to position P2, which is moved one font vertically from position P1.
2番目の疑似フォントデータFD2は、ポインタが位置
P2を指示したそのままの状態で書き込まれる。2番目
の疑似フォントデータFD2が書き込まれると、ポイン
タは、位置P2から縦方向へlフォント移動した位置P
3を指示した状態となる。The second pseudo font data FD2 is written with the pointer pointing to position P2 as it is. When the second pseudo font data FD2 is written, the pointer moves l fonts vertically from position P2 to position P.
3 is specified.
3番目の疑似フォントデータFD3は、ポインタが位I
FP3を指示したそのままの状態で書き込まれる。3番
目の疑似フォントデータFD3が書き込まれると、ポイ
ンタは、位fP3から縦方向へ1フオント移動した位置
P4を指示した状態となる。The third pseudo font data FD3 has the pointer at position I.
It is written in the same state as the FP3 was specified. When the third pseudo font data FD3 is written, the pointer points to position P4, which is moved one font vertically from position fP3.
次に、4番目の疑似フォントデータFD4の書き込みに
あたっては、ポインタの位置P4から、縦方向へマイナ
ス37オンl動し且つ横方向へ2ドント移動した位置P
5をポインタで指示して書き込む、さらに、同じ4番目
の疑似フォントデータFD4をその3列目にも書き込む
ため、1回目の書き込みが終了したときのポインタの位
置P6から、縦方向へマイナス1フオント移動し且つ横
方向へ1ドツト移動した位置P7を指示して2回目の書
き込みを行う。4番目の疑似フォントデータFD3が書
き込まれると、ポインタは、位置P7から縦方向へlフ
ォント移動した位置P8を指示した状態となる。Next, when writing the fourth pseudo font data FD4, the pointer is moved from the pointer position P4 by -37 onl in the vertical direction and moved by 2 donts in the horizontal direction to a position P4.
5 with the pointer and write it.Furthermore, in order to write the same fourth pseudo font data FD4 in the third column as well, write minus one font in the vertical direction from the pointer position P6 when the first writing is completed. The second writing is performed by specifying a position P7 which is moved one dot laterally. When the fourth pseudo font data FD3 is written, the pointer is in a state pointing to position P8, which is moved by one font in the vertical direction from position P7.
5番目の疑似フォントデータFD5の書き込みにあたっ
ては、ポインタの位置P8から、横方向へマイナス1ド
ツト移動させる。その後、4番目の疑似フォントデータ
FD4と同様に、1回目及び2回目の書き込みを行う、
6番目の疑似フォントデータFD6の書き込みにあたっ
ても同様である。When writing the fifth pseudo font data FD5, the pointer is moved horizontally by minus one dot from position P8. After that, similarly to the fourth pseudo font data FD4, the first and second writing is performed.
The same goes for writing the sixth pseudo font data FD6.
7番目の疑似フォントデータFD7の書き込みにあたっ
ては、6番目の疑似フォントデータFD6の書き込みが
終了したときのポインタの位置P12から、縦方向へマ
イナス3フオント移動し且つ横方向へ2ドツト移動した
位置P13を指示して、書き込みを行う、以降は、上述
と同様にポインタにより書き込み位置を指示して順次書
き込んでいく。When writing the seventh pseudo font data FD7, the pointer is moved from the pointer position P12 at the end of writing the sixth pseudo font data FD6 by -3 fonts in the vertical direction and by 2 dots in the horizontal direction to a position P13. After that, similarly to the above, the writing position is designated with the pointer and writing is performed sequentially.
これによって、元の画像FMと同じ画像イメージの配置
で、且つ2.5倍の解像度で、疑似フォントデータFD
1〜24がビットマツプメモリ4A上に展開される。As a result, the pseudo font data FD is created with the same image arrangement as the original image FM and with 2.5 times the resolution.
1 to 24 are developed on 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. Since they 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).
ドツト用ホストコンピュータlaからの画像情報は、通
常、最初の1バイトがデータの種類を示すビットイメー
ジ指定コマンドで、次の1バイトがイメージデータのデ
ータ数を示すイメージサイズデータであり、その後に複
数のイメージデータが続くというフォーマットで送られ
て来る。The image information from the dot host computer la is usually a bit 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 It is sent in a format in which the image data follows.
なお、第6図のフローチャートにおいては、キャラクタ
コードの展開のように本発明に直接関係のない動作につ
いては、説明を簡略化又は省略しである。また、このフ
ローチャートの処理動作はビットマツプ制御部4Dによ
って実行される。したがって、フローチャートの中でポ
インタの移動に関して記述されている部分は、そのよう
にポインタを移動させるための制御を行う、という意味
である。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. Further, the processing operations in this flowchart are executed by the bitmap control section 4D. Therefore, a portion of the flowchart that describes the movement of the pointer means that control is performed to move the pointer in that manner.
まず、イメージデータDの処理中であるときにセットさ
れる処理フラグG−MODE、イメージデータDの数を
カウントするデータカウンタG−COUNT、及び疑似
フォントデータFDの書き込みが縦方向へ何個目かを示
すデータカウンタG−VARをそれぞれ「0」にリセッ
トし、疑似フォントデータFDの書き込みが横方向へ何
個目かを示すデータカウンタG−HOLを「l」にセッ
トするなど、各種フラグやカウンタなどの初期設定を行
い(ステップ#10)、その後、バイト単位でデータの
入力を行う(ステップ#12)。First, the processing flag G-MODE, which is set when image data D is being processed, the data counter G-COUNT, which counts the number of image data D, and the number of pieces of pseudo font data FD written in the vertical direction. various flags and counters, such as resetting the data counter G-VAR that indicates the Initial settings such as the following 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 corresponding 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 manually input.
ステップ#84で、入力データがビットイメージ指定コ
マンドであると判断された場合には、まず処理フラグG
−MODEをセットしくステップ#86)、次に現在選
択されているフォント塩を退避する(ステップ#8B)
。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 (step #8B)
.
このフォント塩とは、フォントメモリ4Bが字体等の異
なる複数のフォントに対応するフォントデータを格納し
ている場合には各フォント毎に付けられた識別用名称で
あり、また、フォントメモI74 Bが単一のフォント
に対応するフォントデータのみを格納している場合には
そのフォントメモIJ 4 B自身を識別するための名
称である。This font salt is an identification name given to each font when the font memory 4B stores font data corresponding to multiple fonts with different fonts, etc. If only font data corresponding to a single font is stored, this is a name for identifying the font memo IJ4B itself.
次にデータカウンタC−H0Lを「1」にセントしてお
く(ステップ#89)。これは、ビットイメージ指定コ
マンドが受信される毎に、つまりイメージデータDの処
理中となる毎に、データカウンタG−HOLが初期値か
らカウントを行うようにするためである。Next, the data counter C-H0L is set to "1" (step #89). This is so that the data counter G-HOL counts from the initial value each time a bit image designation command is received, that is, each time image data D is being processed.
そして、疑似フォントメモリ4Hを選択しくステップ#
90)、縦方向書き込みモードを指定しくステップ#9
1Lその後、ステップ#12に戻って次のデータを入力
する。Then select pseudo font memory 4H in step #
90), specify vertical writing mode Step #9
1L After that, 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に戻って次のデータを入力する。When the data counter G-COUNT is "0", for example, immediately after starting data input,
The image size data, which is the 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−H○Lが偶数であるか否
かを判断する(ステップ#18)。At step #16, the data counter G-COUNT is set to “0”.
'', it is determined whether the data counter GH○L that counts the number of data in the horizontal 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バイトのデー
タがrEOHJよりも大きいか否かを判断する。これは
、先に説明したように、「00H」からrlFHJまで
をプリンタ制御コードとして使用しているため、疑似フ
ォントデータFDの重ね書込みが必要かどうかを判断す
るためのものである。Next, in step #22, it is determined whether the input 1-byte data is larger than rEOHJ. This is to determine whether it is necessary to overwrite the pseudo font data FD, since as described above, "00H" to rlFHJ are used as printer control codes.
入力データがrEOH,よりも小さい場合には、疑似フ
ォントデータFDの重ね書込みは不要であるため、入力
データにr20HJを加えて疑似キャラクタコードを作
り(ステップ#34)、その疑似キャラクタコードに基
づいてデータ書込みを行うため、データ書込ルーチンを
コールする(ステップ#36)。If the input data is smaller than rEOH, there is no need to overwrite pseudo font data FD, so r20HJ is added to the input data to create a pseudo character code (step #34), and based on the pseudo character code In order to write data, a data write routine is called (step #36).
図示は省略したが、データ書込ルーチンでは、その疑似
キャラクタコードに対応する疑似フォントデータFDを
疑似フォントメモリ4Hから読み出し、読み出した疑似
フォントデータFDをポインタの示す位置に書き込む、
その後、ポインタを縦方向へ20ドツト(擬似フォント
データFDの縦方向のサイズに相当)移動する。Although not shown, in the data writing routine, pseudo font data FD corresponding to the pseudo character code is read from the pseudo font memory 4H, and the read pseudo font data FD is written at the position indicated by the pointer.
Thereafter, the pointer is moved vertically by 20 dots (corresponding to the vertical size of the pseudo font data FD).
人力データがrEOH,よりも大きい場合には、疑似フ
ォントデータFDの重ね書込みが必要であるため、重ね
書込み用の第1の疑似キャラクタコードを作るべく、入
力データからr60H,(r80Hj−r20H,で求
められる)を凍算しくステップ#24)、上述と同じデ
ータ書込ルーチンをコールする(ステップ#26)。If the human data is larger than rEOH, it is necessary to overwrite the pseudo font data FD, so in order to create the first pseudo character code for overwriting, r60H, (r80Hj-r20H, Step #24), and calls the same data write routine as described above (Step #26).
そして、ポインタを縦方向へマイナス20ドツト移動さ
せ(ステップ428) 、重ね書込み用の第2の疑似キ
ャラクタコードとしてrAOHJをセントシ(ステップ
#30)、上述と同じデータ書込ルーチンを再びコール
する(ステップ#32)。Then, the pointer is moved vertically by -20 dots (step 428), rAOHJ is set as the second pseudo-character code for overwriting (step #30), and the same data writing routine as described above is called again (step #30). #32).
次に、ステップ#38では、再書込フラグC−BACK
をチエツクする。Next, in step #38, the rewrite flag C-BACK
Check.
再書込フラグC−BACKがセットされていれば(ステ
ップ#38でノー)、ポインタを縦方向へマイナス20
ドツト、横方向へlドツト移動させ(ステップ#70)
、再書込フラグC−BACKをリセットしくステップ#
72Lステップ#22以降の処理を行う、これによって
、横方向の偶数番目に書き込まれる疑似フォントデータ
FDの3列目に、同じ疑似フォントデータFDの再書込
みが行われ、全体として元の画像に対して行方向に2.
5倍の解像度となる。If the rewrite flag C-BACK is set (No in step #38), move the pointer vertically by -20.
Move the dot horizontally (Step #70)
, reset the rewrite flag C-BACK in step #
72L Perform the processing from step #22 onwards. As a result, the same pseudo font data FD is rewritten in the third column of the even-numbered pseudo font data FD in the horizontal direction, and the original image as a whole is changed. 2 in the row direction.
The resolution will be 5 times higher.
再書込フラグC−BACKがセットされていなければ、
データカウンタG−COUNTをデクリメントしくステ
ップ#40)、その後、データカウンタG−MARが「
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-MAR is
2" (step #42), thereby determining whether the pseudo font data FD has been written in the third column in the vertical direction.
データカウンタG−VARが「2」でないとき(ステッ
プ#42でノー)、データカウンタG−HOLが偶数か
否かを判断しくステップ#50)、偶数である場合には
、ポインタを横方向へマイナス1ドツト移動させ(ステ
ップ#51)、次の疑似フォントデータFDの書き込み
に備える。その後、データカウンタG−VARをインク
リメントする(ステップ#53)。偶数でない場合には
、ステップ#51をジャンプしてすぐにステンブ#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 horizontally to the negative value. It is moved by one dot (step #51) to prepare for writing the next pseudo font data FD. Thereafter, the data counter G-VAR is incremented (step #53). If the number is not even, jump to step #51 and immediately move to step #53.
Proceed to.
データカウンタG−VARが「2」であるとき(ステッ
プ#42でイエス)、ポインタを縦方向へマイナス60
ドント(擬イ以フォントデータFDの縦方向のサイズに
相当)、横方向へ2ドツト、それぞれ移動しくステップ
#44Lデータカウンタ(1,−VARをリセットしく
ステップ#46)、データカウンタC,−H0Lをイン
クリメントする(ステップ648) 。When the data counter G-VAR is "2" (YES in step #42), move the pointer vertically by -60.
Don't (corresponds to the vertical size of the font data FD), move 2 dots horizontally, step #44L data counter (1, reset -VAR step #46), data counter C, -H0L is incremented (step 648).
次に、データカウンタG−COUNTがrQJになった
か否か、つまり全てのデータが入力完了したか否かを判
断する(ステップ#54)。Next, it is determined whether the data counter G-COUNT has reached rQJ, that is, whether all data has 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の処理が完了したと判断され
れば、ステップ#88で退避したフォント名を再び選択
しくステップ#56)、処理フラグG−MODEをリセ
ットしくステップ#58)、縦方向書き込みモードを解
除しくステップ#59)、ステップ#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 #88 is selected again (step #56), and the processing flag G - Reset the MODE step #58), cancel the vertical write mode step #59), 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を2行20列の40個のドツトデータから構成したが
、先にも述べたように、この疑似フォントデータFDを
格納する疑似フォントメモリ4Hの格納領域の大きさは
任意にとることができる。(1) In the above embodiment, the pseudo font data F
Although D is composed of 40 dot data arranged in 2 rows and 20 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列の仮想行列の19行目と20行目
とに疑似フォントデータFDを格納しておき、ビットマ
ツプメモリ4Aに書き込む際に18行目以前をマスクす
るようにしてもよい。For example, the pseudo font data FD may be stored in the 19th and 20th rows of a virtual matrix of 20 rows and 20 columns, and the 18th and previous rows may be masked when writing to the bitmap memory 4A.
このようにすることによって、フォントメモリ4Bのフ
ォントデータが20X20ドツトで構成される場合に、
疑似フォントメモリ4Hの構成をフォントメモリ4Bと
全く同一にすることができる。また、フォントデータの
1列目と2列目が全てブランクであるようなフォントメ
モリ4Bを、疑似フォントメモリ4Hに兼用することが
でき、フォントデータ及び疑似フォントデータFDのた
めのメモリ領域を削減することが可能である。By doing this, when the font data in the font memory 4B is composed of 20x20 dots,
The configuration of the pseudo font memory 4H can be made completely the same as the font memory 4B. 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 record 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, line vector bO is used as pseudo font data FD. ~
7 in both the row and column directions by an integer (including the same size)
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 bit configuration is configured in bytes has been described, other bit configurations may be used, and the pseudo font memory 4H may be configured accordingly.
また、ビット構成の異なる複数種類の疑似フォントメモ
リ4Hを準備しておき、それらを適宜選択して用いるこ
ととしてもよい。その場合に、疑似フォントメモリ4H
の選択は、手動により、又は記録情報に含まれるコマン
ドデータを判別して自動的に切り替えるように構成する
ことができる。Alternatively, a plurality of types of pseudo font memories 4H having different bit configurations may be prepared, and one of them may be selected and used as appropriate. In that case, pseudo font memory 4H
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 control device of the present invention has been described, but instead of this, the control 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, and 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 or one-third of a page, or conversely, two
It may be multiple pages, such as one page or three pages.
(′7)疑似フォントメモリ4H及びフォントメモリ4
Bは、ROMカートリッジ式に構成して制御装置に対し
て着脱可能とし、制御装置のメモリ容量を増大させるこ
となく、種々の疑似フォントデータFD又はフォントデ
ータを使用することができるようにしてもよい。('7) Pseudo font memory 4H and font memory 4
B may be constructed in the form of a ROM cartridge and made removable from the control device, so that various pseudo font data FD or font data can be used without increasing the memory capacity of the control 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.
本発明によると、ワイヤドツトプリンタの代わりに容易
にページプリンタを使用することが可能となり、しかも
ページプリンタの高速性を生かした高速な記録が可能で
あり、また、ページプリンタによって形成される画像の
大きさを種々設定することが可能である。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 values.
第1図は本発明に係る制御装置を用いた記録用のシステ
ムを示すブロック図、第2図(a)は元の画像を示す図
、第2図(b)は第2図(a)に示す元の画像のイメー
ジデータを示す図、第2図(C)は第2図(b)のイメ
ージデータによってビットマツプメモリに書き込まれた
疑似フォントデータを示す図、第3図(a)〜(C)は
イメージデータと疑似フォントデータとの対応関係を示
す図、第4図(a)〜(d)はイメージデータと疑似フ
ォントデータとの具体的な対応関係の例を示す図、第5
図は重ね書込みによって合成された疑似フォントデータ
を示す図、第6図(a)及び(b)はイメージデータの
処理動作を示すフローチャート、第7図はワイヤドツト
プリンタ用の記録情報の構成を示す図である。
4・・・プリントコントローラ(制御装置)、4A・・
・ビットマツプメモリ、4D・・・ピントマツプ制御部
(ビットマツプ制御手段)、4H・・・疑似フォントメ
モリ、21・・・疑似フォント読出し部(疑似フォント
読出し手段)、22・・・疑似フォントデータ書込み部
(疑似フォントデータ書込み手段)、D・・・イメージ
データ、FD・・・疑似フォントデータ。
第
図
(a)
(b)
第
2
図
(C)
第
図
第
図
(a)FIG. 1 is a block diagram showing a recording system using a control device according to the present invention, FIG. 2(a) is a diagram showing the original image, and FIG. 2(b) is a diagram showing the original image. FIG. 2(C) is a diagram showing the pseudo font data written to the bitmap memory by the image data of FIG. 2(b), and FIG. 3(a)-( C) is a diagram showing the correspondence relationship between image data and pseudo font data, FIGS. 4(a) to (d) are diagrams showing examples of specific correspondence relationships between image data and pseudo font data, and FIG.
The figure shows pseudo font data synthesized by overwriting, FIGS. 6(a) and (b) are flowcharts showing image data processing operations, and FIG. 7 shows the structure of recorded information for a wire dot printer. It is. 4...Print controller (control device), 4A...
・Bitmap memory, 4D... Focus map control unit (bitmap control means), 4H... Pseudo font memory, 21... Pseudo font reading unit (pseudo font reading unit), 22... Pseudo font data writing unit (pseudo font data writing means), D...image data, FD...pseudo font data. Figure (a) (b) Figure 2 (C) Figure (a)
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 control device, for various image data, a pseudo font memory that stores a large number of pseudo font data configured corresponding to the image of each image data, and reading pseudo font data corresponding to the image data from the pseudo font memory. A pseudo font reading means and a pointer for specifying a writing position to the bitmap memory are sequentially moved in a vertical direction from top to bottom on the bitmap memory, and the pseudo font reading means reads out the font. pseudo font data writing means for writing pseudo font data into the bitmap; and sending image data to the pseudo font reading means, and sending control information for controlling the pointer according to the image to the pseudo font data writing means. 1. A printer control device comprising: bitmap control means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1181240A JPH0343282A (en) | 1989-07-12 | 1989-07-12 | Printer control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1181240A JPH0343282A (en) | 1989-07-12 | 1989-07-12 | Printer control device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0343282A true JPH0343282A (en) | 1991-02-25 |
Family
ID=16097247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1181240A Pending JPH0343282A (en) | 1989-07-12 | 1989-07-12 | Printer control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0343282A (en) |
-
1989
- 1989-07-12 JP JP1181240A patent/JPH0343282A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4745561A (en) | Character font pattern editing system for modification of font patterns | |
US5104245A (en) | Printing apparatus with form editor | |
JPS633500B2 (en) | ||
JPS6136869A (en) | Raster information generation | |
JPH0345076A (en) | Processing system for picture data | |
JPH0378651B2 (en) | ||
US4879666A (en) | Information output device having data buffer for performing both character positioning and character expansion/compression | |
JPS5936778B2 (en) | data printing device | |
JPH0343282A (en) | Printer control device | |
JPH02500695A (en) | Horizontal line processor for data printed dot-sequentially | |
JPH0243067A (en) | Interface device of printer | |
JPS63139751A (en) | Printing method in printing system | |
JPH0343281A (en) | Printer control device | |
JPH0243068A (en) | System for writing data in bit map memory | |
JP2636312B2 (en) | Printer interface device | |
JPH01237162A (en) | Interface device of printer | |
JP3053196B2 (en) | Image data raster converter | |
JP3546527B2 (en) | Image data rotation processing device | |
JP2699386B2 (en) | Image recording device | |
JP2743727B2 (en) | Array data display method by debugger | |
JPH0361212B2 (en) | ||
JPS607274B2 (en) | display device | |
JP2784823B2 (en) | Image editing printing method of printer | |
JPH07115493B2 (en) | Aspect conversion printing method | |
JPS6364474A (en) | Picture memory controller |