JP4946303B2 - Bitmap generation method, printing apparatus, integrated circuit, and bitmap generation apparatus - Google Patents

Bitmap generation method, printing apparatus, integrated circuit, and bitmap generation apparatus Download PDF

Info

Publication number
JP4946303B2
JP4946303B2 JP2006256168A JP2006256168A JP4946303B2 JP 4946303 B2 JP4946303 B2 JP 4946303B2 JP 2006256168 A JP2006256168 A JP 2006256168A JP 2006256168 A JP2006256168 A JP 2006256168A JP 4946303 B2 JP4946303 B2 JP 4946303B2
Authority
JP
Japan
Prior art keywords
character
character data
value
data
bits
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.)
Expired - Fee Related
Application number
JP2006256168A
Other languages
Japanese (ja)
Other versions
JP2008073960A (en
Inventor
利長 大月
祐樹 桑原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006256168A priority Critical patent/JP4946303B2/en
Publication of JP2008073960A publication Critical patent/JP2008073960A/en
Application granted granted Critical
Publication of JP4946303B2 publication Critical patent/JP4946303B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、文字が横向きかつ左右反転された2値の文字データを基に、印刷装置の印刷エンジンで処理可能な階調値で1ドットが表現された多値の文字データを生成するビットマップ生成方法、印刷装置、集積回路及びビットマップ生成装置に関する。   The present invention is a bitmap that generates multi-value character data in which one dot is expressed by a gradation value that can be processed by a print engine of a printing apparatus, based on binary character data obtained by horizontally and horizontally reversing characters. The present invention relates to a generation method, a printing apparatus, an integrated circuit, and a bitmap generation apparatus.

従来、印刷装置では、文字を印刷するときには印刷データとして文字コードが送られてくるため、文字コードから文字データを取得できるように文字データをROM等に記憶している(例えば特許文献1、2等)。例えば文字データは、キャラクタジェネレータに格納されており、印刷データ中の文字コードをキャラクタゲネレータに送出すると、該文字コードに対応する文字データがキャラクタゲネレータから与えられる。この文字データは出力バッファ(イメージバッファ)上にビットマップで展開された後、印刷エンジン(例えば印刷ヘッド駆動制御部)に送出され、該印刷エンジンによりビットマップデータに従って文字の印刷が行われるようになっている。   Conventionally, in a printing apparatus, when a character is printed, a character code is sent as print data. Therefore, character data is stored in a ROM or the like so that the character data can be acquired from the character code (for example, Patent Documents 1 and 2). etc). For example, character data is stored in a character generator. When a character code in print data is sent to a character generator, character data corresponding to the character code is given from the character generator. The character data is developed as a bitmap on an output buffer (image buffer) and then sent to a print engine (for example, a print head drive control unit) so that the character is printed according to the bitmap data by the print engine. It has become.

例えばドットインパクトプリンタには、文字データが備えられているが、その文字データは1ドットが2値(1ビット)で表現されている。一方、インクジェットプリンタは、近年、インク滴を複数サイズで吐出できる機種が登場している(特許文献3、4等)。この場合、ビットマップデータにおいて1ドットのビット数は、吐出/非吐出(印刷/非印刷)の情報の他、ドットサイズの違いを階調値で表現できるように2ビット以上に設定されている。例えば特許文献3では、1ドットが2ビットで表現され、「00」であれば吐出なし(非吐出)、「01」であれば小ドット、「10」であれば中ドット、「11」であれば大ドットとして表現されるようになっていた。
特開2001−138582号公報 特開平5−246078号公報 特開2004−314411号公報 特開2006−095863号公報
For example, a dot impact printer is provided with character data. In the character data, one dot is expressed in binary (1 bit). On the other hand, recently, inkjet printers that can eject ink droplets in a plurality of sizes have appeared (Patent Documents 3, 4, etc.). In this case, the bit number of 1 dot in the bitmap data is set to 2 bits or more so that the difference in dot size can be expressed by the gradation value in addition to the information of ejection / non-ejection (print / non-print). . For example, in Patent Document 3, one dot is expressed by 2 bits. If “00”, no ejection (non-ejection), “01” is a small dot, “10” is a medium dot, “11”. If there was, it was expressed as a large dot.
JP 2001-138582 A JP-A-5-246078 JP 2004-314411 A JP 2006-095863 A

ところで、インクジェット方式の印刷装置において文字データを用意する場合、インクジェット方式以外の他の記録方式の印刷装置(ドットインパクトプリンタ等)で使用されていた文字データを利用できれば、文字データを零から作成する必要がなく、しかもプリンタの開発速度を速められ効率的である。このためには、2値の文字データを基に印刷エンジンで処理可能な多値のビットマップデータを生成する必要があり、その生成のために好適な方法が要望されていた。   By the way, when preparing character data in an ink jet printing apparatus, if character data used in a printing apparatus other than the ink jet printing apparatus (such as a dot impact printer) can be used, the character data is created from scratch. There is no need, and the development speed of the printer can be increased and it is efficient. For this purpose, it is necessary to generate multi-valued bitmap data that can be processed by the print engine based on binary character data, and a suitable method for the generation has been desired.

本発明は、上記課題を解決するためになされたものであって、その目的は、文字が横向きかつ左右反転された2値の文字データを流用して、印刷エンジンで処理可能な階調値で1ドットが表現された多値の文字データを生成できるビットマップ生成方法、印刷装置、集積回路及びビットマップ生成装置を提供することにある。   The present invention has been made in order to solve the above-described problems, and an object of the present invention is to use tone data that can be processed by a print engine by using binary character data in which characters are horizontally and horizontally reversed. An object of the present invention is to provide a bitmap generation method, a printing apparatus, an integrated circuit, and a bitmap generation apparatus capable of generating multi-value character data in which one dot is expressed.

本発明は、1ドットが2値で表現されるとともに文字の縦方向が、読み出し方向と一致する向きで配置されかつ文字が左右反転された2値のビットマップデータからなる文字データを基に、印刷装置が有する印刷エンジンで処理可能な多値のビットマップデータを生成するビットマップ生成方法であって、前記文字データにおける文字の横方向のビット数である横ビット数と8との公倍数であってかつ該公倍数を該横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットの階調数を表現するビット数以上の値となる公倍数のうち最も小さい公倍数を選択し、1ドットを表現する2値を前記印刷エンジンで処理可能な1ドットの階調数を表現するビット数の多値に変換する多値化処理を行いつつ、前記文字の横方向のビット数が前記選択した公倍数に等しいビット数になるように前記文字データを文字の横方向に拡張する拡張処理を行う拡張ステップと、前記文字の横方向が前記読み出し方向に一致する文字の向きとすべく前記文字データを90度回転させる縦横変換ステップと、前記文字の左右を反転させる左右反転処理を前記文字データに施す左右反転ステップとを備え、前記各ステップを順不同に行うことを要旨とする。   The present invention is based on character data composed of binary bitmap data in which one dot is expressed by binary and the vertical direction of the character is arranged in a direction matching the reading direction and the character is horizontally reversed. A bitmap generation method for generating multi-value bitmap data that can be processed by a print engine of a printing apparatus, wherein the number of bits in the horizontal direction of characters in the character data is a common multiple of eight. The smallest common multiple is selected from the common multiples in which the expansion ratio, which is a value obtained by dividing the common multiple by the horizontal bit number, is equal to or greater than the number of bits representing the number of gradations of one dot that can be processed by the print engine. And performing a multi-value conversion process for converting a binary value representing one dot into a multi-value value representing the number of gradations of one dot that can be processed by the print engine, An expansion step of expanding the character data in the horizontal direction of the character so that the number of bits is equal to the selected common multiple, and the direction of the character in which the horizontal direction of the character matches the reading direction A vertical and horizontal conversion step for rotating the character data by 90 degrees, and a horizontal reversal step for applying a horizontal reversal process for reversing the left and right of the character to the character data, and performing the steps in random order. To do.

これによれば、文字の横方向のビット数と8との公倍数であってかつ該公倍数を該横ビット数で割った値である拡張倍率が印刷エンジンで処理可能な1ドットの階調数を表現するビット数以上の値をとる公倍数のうち最も小さい公倍数が選択される。この公倍数の選択は、予め選択したものを予め設定しておくこともできるし、その都度、計算して算出する構成も可能である。処理対象である2値の文字データに対し、拡張ステップ、縦横変換ステップ、左右反転ステップが順不同に施される。拡張ステップでは、1ドットを表現する2値を、印刷エンジンで処理可能な多値に変換する多値化処理を行いつつ、文字の横方向のビット数が選択された公倍数に等しいビット数になるように、文字データを文字の横方向に拡張する拡張処理が行われる。また、縦横変換ステップでは、文字の横方向が読み出し方向に一致する文字の向きとすべく文字データを90度回転させる。また、左右反転ステップでは、文字の左右を反転させる左右反転処理が文字データに施される。この結果、縦横反転(90度回転)、左右反転していた2値の文字データを、印刷エンジンで処理可能な多値の文字データに変換できる。しかも、変換された多値の文字データは、読み出し方向が文字の横方向(ラスタ方向)となる配列で、かつ読み出し方向(文字の横方向)のビット数が8の倍数となるような多値の文字データとして生成できる。   According to this, the number of gradations of one dot that can be processed by the print engine is an expansion ratio that is a common multiple of the number of bits in the horizontal direction of the character and 8 and that is obtained by dividing the common multiple by the number of horizontal bits. The smallest common multiple is selected from the common multiples having a value greater than the number of bits to be expressed. For the selection of the common multiple, a pre-selected one can be set in advance, or a configuration can be calculated and calculated each time. An expansion step, a vertical / horizontal conversion step, and a horizontal reversal step are performed in random order on the binary character data to be processed. In the expansion step, the number of bits in the horizontal direction of the character is equal to the selected common multiple while performing a multi-value conversion process that converts a binary value representing one dot into a multi-value that can be processed by the print engine. As described above, the expansion processing for expanding the character data in the horizontal direction of the characters is performed. In the vertical / horizontal conversion step, the character data is rotated by 90 degrees so that the horizontal direction of the character is the direction of the character that matches the reading direction. In the left / right reversing step, the character data is subjected to left / right reversing processing for reversing the left / right of the character. As a result, binary character data that has been reversed vertically and horizontally (rotated 90 degrees) and horizontally reversed can be converted into multi-value character data that can be processed by the print engine. Moreover, the converted multi-value character data is an array in which the reading direction is the horizontal direction (raster direction) of the character, and the number of bits in the reading direction (the horizontal direction of the character) is a multiple of 8. Can be generated as character data.

本発明のビットマップ生成方法においては、前記拡張ステップでは、前記選択された公倍数は、該公倍数を前記横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットを表現するビット数に等しくなることを満たすことが好ましい。   In the bitmap generation method of the present invention, in the expansion step, the selected common multiple represents one dot that can be processed by the print engine, with the expansion magnification being a value obtained by dividing the common multiple by the horizontal bit number. It is preferable to satisfy that it is equal to the number of bits to be performed.

これによれば、1ドットを2値の表現から印刷エンジンで処理可能な多値の表現に変換する多値化処理を行えば、文字の横方向のビット数が、選択された公倍数に等しいビット数になるように、文字データが文字の横方向に拡張される。つまり、文字データが文字の横方向に、選択された公倍数を横ビット数で割った値である拡張倍率で拡張される。よって、多値化処理が拡張処理を兼ねることになるので、拡張処理において多値化処理以外の余分の処理が不要になる。   According to this, if multi-value processing is performed to convert one dot into a multi-value representation that can be processed by the print engine from a binary representation, the number of bits in the horizontal direction of the character is equal to the selected common multiple. The character data is expanded in the horizontal direction of the characters so as to be a number. That is, the character data is expanded in the horizontal direction of the character at an expansion ratio that is a value obtained by dividing the selected common multiple by the horizontal bit number. Therefore, since the multi-value processing also serves as the expansion processing, extra processing other than the multi-value processing is not necessary in the expansion processing.

本発明のビットマップ生成方法では、前記文字データは、前記横ビット数と8との最小公倍数を前記横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットのビット数と一致する条件を満たす横ビット数を有する2値の文字データであり、前記拡張ステップでは、前記選択された公倍数が最小公倍数であることが好ましい。   In the bit map generation method of the present invention, the character data is a 1-dot bit that can be processed by the print engine with an expansion ratio that is a value obtained by dividing the least common multiple of the number of horizontal bits and 8 by the number of horizontal bits. Preferably, the character data is binary character data having a horizontal bit number that satisfies a condition that matches the number, and in the expansion step, the selected common multiple is a least common multiple.

これによれば、拡張後のビット数を規定する選択された公倍数が最小公倍数であり、しかも印刷エンジンで処理可能な1ドットのビット数に変換するのに必要なビット数分だけ拡張される。よって、2値の文字データから変換して生成した多値の文字データを、極力小さなデータサイズに抑えることができる。   According to this, the selected common multiple that defines the number of bits after expansion is the least common multiple and is expanded by the number of bits necessary for conversion into the number of bits of 1 dot that can be processed by the print engine. Therefore, multi-value character data generated by conversion from binary character data can be suppressed to a data size as small as possible.

本発明のビットマップ生成方法では、前記拡張ステップでは、前記選択された公倍数を前記横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットのビット数に2以上の自然数を乗じた値である場合は、前記拡張処理において、前記多値化処理によって前記文字の横方向に多値表現で配列されるドット間に相当する位置に記録なしを意味するドットの階調値を追加する処理が行われることが好ましい。   In the bitmap generation method of the present invention, in the expansion step, an expansion ratio that is a value obtained by dividing the selected common multiple by the number of horizontal bits is 2 or more in the number of bits of 1 dot that can be processed by the print engine. If the value is a value obtained by multiplying by a natural number, the gradation of dots in the expansion process means no recording at a position corresponding to a position between dots arranged in a multi-value expression in the horizontal direction of the character by the multi-value processing. It is preferable that a process of adding a value is performed.

これによれば、選択された公倍数を横ビット数で割った値である拡張倍率が、印刷エンジンで処理可能な1ドットを表現するビット数に等しくなくても、当該ビット数に2以上の自然数を乗じた値である場合は、印刷エンジンで処理可能な文字データとして生成できる。すなわち、拡張処理において、多値化処理によって文字の横方向に配列される多値のドット間に相当する位置に記録なしを意味するドットの階調値が追加される。これにより、生成された文字データは、1ドットを印刷エンジンで処理可能な多値で表現されるうえ、選択された公倍数から規定される拡張倍率で文字データを文字の横方向に拡張したものとなって、読み出し方向(文字の横方向)のビット数が8の倍数となる。しかも、ドット間に追加された階調値は、記録なしを意味するので、印刷エンジンが記録処理を行うときには記録されず、本来のドットのみが記録の対象となる。   According to this, even if the expansion magnification, which is a value obtained by dividing the selected common multiple by the number of horizontal bits, is not equal to the number of bits representing one dot that can be processed by the print engine, the number of bits is a natural number of 2 or more. Can be generated as character data that can be processed by the print engine. That is, in the expansion process, a gradation value of a dot meaning no recording is added at a position corresponding to between multi-value dots arranged in the horizontal direction of the character by the multi-value conversion process. As a result, the generated character data is expressed by multiple values that can be processed by the print engine in one dot, and the character data is expanded in the horizontal direction of the character at an expansion ratio defined by the selected common multiple. Thus, the number of bits in the reading direction (the horizontal direction of the character) is a multiple of eight. In addition, since the gradation value added between the dots means that there is no recording, it is not recorded when the print engine performs the recording process, and only the original dots are to be recorded.

本発明は、印刷装置であって、印刷エンジンと、該印刷エンジンが処理可能であるとともに上記発明のビットマップ生成方法を用いて生成された多値の文字データを記憶する文字記憶部と、前記文字記憶部から前記多値の文字データを読み出して展開処理して前記印刷エンジンに送出する展開処理手段とを備えたことを要旨とする。   The present invention is a printing apparatus, a print engine, a character storage unit that can be processed by the print engine and stores multi-value character data generated by using the bitmap generation method of the invention, and A gist is provided with a development processing unit that reads out the multi-value character data from a character storage unit, performs a development process, and sends the developed data to the print engine.

これによれば、印刷装置内の文字記憶部には、上記発明のビットマップ生成方法を用いて生成された多値の文字データが予め記憶されている。文字記憶部から読み出した多値の文字データは印刷エンジンが処理可能な文字データであるので、そのまま展開処理手段により展開させればよいので、印刷エンジンへ送出する前の処理を簡単に済ませられる。   According to this, multi-value character data generated by using the bitmap generation method of the present invention is stored in advance in the character storage unit in the printing apparatus. Since the multivalued character data read from the character storage unit is character data that can be processed by the print engine, it can be expanded as it is by the expansion processing means, so that the processing prior to transmission to the print engine can be easily completed.

本発明は、印刷装置であって、印刷エンジンと、前記2値の文字データを記憶する文字記憶部と、前記文字記憶部から前記文字データを読み出すとともに上記発明のビットマップ生成方法を用いて前記2値の文字データから前記印刷エンジンが処理可能な多値の文字データを生成するとともに該多値の文字データを展開して前記印刷エンジンに送出するビットマップ生成手段とを備えたことを要旨とする。   The present invention is a printing apparatus, comprising: a print engine; a character storage unit that stores the binary character data; the character data is read from the character storage unit; and the bitmap generation method according to the invention is used to read the character data. And a bitmap generation unit that generates multi-value character data that can be processed by the print engine from binary character data, and that develops the multi-value character data and sends it to the print engine. To do.

これによれば、印刷装置内の文字記憶部には、2値の文字データが記憶されており、ビットマップ生成手段は、文字記憶部から読み出された2値の文字データを基に、上記発明のビットマップ生成方法を用いて、印刷エンジンで処理可能な多値の文字データを生成する。そして、生成された多値の文字データは印刷エンジンに送出される。このように2値の文字データが記憶された文字記憶部をそのまま用いて、印刷装置内で2値の文字データを多値の文字データに変換できる。   According to this, binary character data is stored in the character storage unit in the printing apparatus, and the bitmap generation unit performs the above-described processing based on the binary character data read from the character storage unit. Using the bitmap generation method of the invention, multi-value character data that can be processed by a print engine is generated. The generated multi-value character data is sent to the print engine. In this way, the binary character data can be converted into multi-valued character data in the printing apparatus by using the character storage unit in which the binary character data is stored as it is.

本発明は、集積回路であって、上記発明のビットマップ生成方法を実行するプログラムが形成された電気回路部を有することを要旨とする。
これによれば、集積回路を印刷装置に内蔵して用いることにより、文字記憶部に2値の文字データが記憶されていても、印刷装置内で2値の文字データを多値の文字データに変換することが可能になる。
The gist of the present invention is an integrated circuit having an electric circuit section in which a program for executing the bit map generation method of the present invention is formed.
According to this, by using the integrated circuit built in the printing apparatus, even if binary character data is stored in the character storage unit, the binary character data is converted into multi-value character data in the printing apparatus. It becomes possible to convert.

本発明は、1ドットが2値で表現されるとともに文字の縦方向が、読み出し方向と一致する向きで配置されかつ文字が左右反転された2値のビットマップデータからなる文字データを基に、印刷装置が有する印刷エンジンで処理可能な多値のビットマップデータを生成するビットマップ生成装置であって、前記文字データにおける文字の横方向のビット数である横ビット数と8との公倍数であってかつ該公倍数を該横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットの階調数を表現するビット数以上の値となる公倍数のうち最も小さい公倍数を選択し、1ドットを表現する2値を前記印刷エンジンで処理可能な1ドットの階調数を表現するビット数の多値に変換する多値化処理を行いつつ、前記文字の横方向のビット数が前記選択した公倍数に等しいビット数になるように前記文字データを文字の横方向に拡張する拡張処理を行う拡張手段と、前記文字の横方向が前記読み出し方向に一致する文字の向きとすべく前記文字データを90度回転させる縦横変換手段と、前記文字の左右を反転させる左右反転処理を前記文字データに施す左右反転手段とを備えたことを要旨とする。この構成によれば、上記ビットマップ生成方法の発明と同様の効果が得られる。   The present invention is based on character data composed of binary bitmap data in which one dot is expressed by binary and the vertical direction of the character is arranged in a direction matching the reading direction and the character is horizontally reversed. A bitmap generation device that generates multi-value bitmap data that can be processed by a print engine included in a printing device, and is a common multiple of 8 and the number of horizontal bits that are the number of bits in the horizontal direction of characters in the character data. The smallest common multiple is selected from the common multiples in which the expansion ratio, which is a value obtained by dividing the common multiple by the horizontal bit number, is equal to or greater than the number of bits representing the number of gradations of one dot that can be processed by the print engine. And performing a multi-value conversion process for converting a binary value representing one dot into a multi-value value representing the number of gradations of one dot that can be processed by the print engine, Extending means for expanding the character data in the horizontal direction of the character so that the number of bits is equal to the selected common multiple, and the direction of the character in which the horizontal direction of the character matches the reading direction The gist of the present invention is that it includes vertical / horizontal conversion means for rotating the character data by 90 degrees, and left / right reversing means for applying left / right reversal processing for reversing the left / right of the character to the character data. According to this configuration, the same effect as the invention of the bitmap generation method can be obtained.

以下、本発明を具体化したビットマップ生成方法及びビットマップ生成装置の一実施形態を、図1〜図9に従って説明する。まず、本実施形態のビットマップ生成方法により生成された多値のビットマップデータからなる文字データ(キャラクタデータ)を用いて印刷処理を行う印刷装置について説明する。   Hereinafter, an embodiment of a bitmap generation method and a bitmap generation apparatus embodying the present invention will be described with reference to FIGS. First, a printing apparatus that performs print processing using character data (character data) including multi-value bitmap data generated by the bitmap generation method of the present embodiment will be described.

図1は、印刷装置の基本構成を示す斜視図である。図1に示すように、印刷装置11は、同図における上方及び手前方向に向かって開放された略長四角箱状の本体ケース12を備える。本体ケース12の同図における左右側壁間には所定長さを有するガイド軸13が架設されている。ガイド軸13が挿通された状態にあるキャリッジ14は、ガイド軸13の軸方向に移動可能に設けられている。本体ケース12の内側背面側には、無端状のタイミングベルト15が主走査方向Xに張設された状態で回転可能に支持されており、キャリッジ14の背面側の一箇所はタイミングベルト15の所定箇所に固定されている。キャリッジ14はタイミングベルト15を回転駆動させるキャリッジモータ16の駆動軸に対してタイミングベルト15を介して動力伝達可能に連結されている。キャリッジモータ16が正逆転駆動されてタイミングベルト15が正転・逆転することによって、キャリッジ14は主走査方向Xに往復移動するように構成されている。   FIG. 1 is a perspective view illustrating a basic configuration of a printing apparatus. As shown in FIG. 1, the printing apparatus 11 includes a substantially rectangular box-shaped main body case 12 that is open toward the upper side and the near side in the drawing. A guide shaft 13 having a predetermined length is installed between the left and right side walls of the main body case 12 in FIG. The carriage 14 in which the guide shaft 13 is inserted is provided so as to be movable in the axial direction of the guide shaft 13. An endless timing belt 15 is rotatably supported on the inner back side of the main body case 12 while being stretched in the main scanning direction X, and one position on the back side of the carriage 14 is a predetermined portion of the timing belt 15. It is fixed in place. The carriage 14 is connected to a drive shaft of a carriage motor 16 that rotationally drives the timing belt 15 via the timing belt 15 so that power can be transmitted. The carriage 14 is configured to reciprocate in the main scanning direction X when the carriage motor 16 is driven forward and backward and the timing belt 15 rotates forward and backward.

キャリッジ14の下部には、インクジェット方式の記録ヘッド17が設けられており、その下面は、液体としてのインクを噴射するノズル18が開口するノズル形成面17a(いずれも図3に示す(但し、図3ではインク色と同数あるノズル列のうち1色分の1列のみ図示))となっている。本体ケース12内において記録ヘッド17の印刷時の移動経路と対向する位置には、記録ヘッド17と用紙Pとの間隔を規定するプラテン19が設けられている。また、キャリッジ14の上部には、記録ヘッド17にインクを供給するブラックのインクカートリッジ20、および例えばシアン、マゼンタ、イエローの3色のインクが個別に収容されたカラー用のインクカートリッジ21が着脱可能に装填されている。これら各インクカートリッジ20,21より記録ヘッド17に対してインクが供給され、記録ヘッド17はノズル形成面17aの各ノズル18からインクを噴射(吐出)可能となっている。   An ink jet recording head 17 is provided below the carriage 14, and a lower surface of the recording head 17 is a nozzle formation surface 17 a (both shown in FIG. 3). 3, only one column for one color is shown))). A platen 19 that defines the interval between the recording head 17 and the paper P is provided in the main body case 12 at a position facing the movement path of the recording head 17 during printing. A black ink cartridge 20 that supplies ink to the recording head 17 and a color ink cartridge 21 that individually contains, for example, three colors of cyan, magenta, and yellow are detachable on the carriage 14. Is loaded. Ink is supplied from the ink cartridges 20 and 21 to the recording head 17, and the recording head 17 can eject (discharge) ink from the nozzles 18 on the nozzle forming surface 17a.

また、本体ケース12の図1における右端下部には、紙送りモータ22が配設されている。紙送りモータ22が駆動されて、用紙搬送経路上において記録ヘッド17を前後に挟んだ両側に配設された紙送りローラ及び排紙ローラ(図示せず)が回転駆動されることにより、用紙Pは副走査方向Yに搬送される。そして、キャリッジ14を主走査方向Xに往復動させながら記録ヘッド17のノズル18から用紙Pにインクを吐出する記録動作と、用紙Pを副走査方向Yに所定の搬送量(紙送り量)で搬送する紙送り動作とを交互に繰り返すことで、用紙Pに印刷が施される。なお、キャリッジ14の移動経路上の一端位置(図1における右端位置)は、キャリッジ14が印刷作業をしないときに待機する待機位置(ホームポジション)となっている。本体ケース12内において待機位置に配置されたキャリッジ14の直下に相当する位置には、記録ヘッド17のメンテナンスをするメンテナンス装置23が装備されている。   A paper feed motor 22 is disposed at the lower right end of the main body case 12 in FIG. The paper feed motor 22 is driven, and paper feed rollers and paper discharge rollers (not shown) disposed on both sides of the recording head 17 on the paper transport path are driven to rotate. Are conveyed in the sub-scanning direction Y. Then, a recording operation for ejecting ink from the nozzles 18 of the recording head 17 to the paper P while reciprocating the carriage 14 in the main scanning direction X, and a predetermined transport amount (paper feed amount) of the paper P in the sub-scanning direction Y. Printing is performed on the paper P by alternately repeating the paper feeding operation. Note that one end position (the right end position in FIG. 1) on the movement path of the carriage 14 is a standby position (home position) for waiting when the carriage 14 does not perform printing work. A maintenance device 23 that performs maintenance of the recording head 17 is installed at a position corresponding to a position immediately below the carriage 14 disposed at the standby position in the main body case 12.

図2は、印刷装置の基本的な電気的構成を示すブロックである。図2に示すように、印刷装置11は、インターフェイス部30(I/F部)、受信部31、解釈部32、制御部33、イメージ生成部34、キャラクタジェネレータ35(CG−ROM)及び印刷エンジン37を備える。印刷エンジン37は、記録ヘッド17の吐出駆動制御を行う印刷駆動回路38を備え、該印刷駆動回路38の他、記録ヘッド17、キャリッジモータ16、紙送りモータ22、各モータ16,22を駆動制御する各種モータ駆動回路(図示省略)などから構成される。なお、印刷装置11は、CPU、ASIC39(Application Specific IC(特定用途向けIC)),ROM、RAMを備える。解釈部32は解釈処理を実行するCPUにより構成され、イメージ生成部34はキャラクタジェネレータ35から取得した文字データ(キャラクタデータ)や印刷データから取得した画像データをイメージバッファ36上に展開する展開処理を実行する電子回路を内蔵するASIC39により構成されている。さらに受信部31及びイメージバッファ36は、それぞれRAMにより構成されている。もちろん、CPUおよびASIC39は、印刷エンジン37の制御をはじめとするその他の各種機能も果たす構成となっている。   FIG. 2 is a block diagram illustrating a basic electrical configuration of the printing apparatus. As shown in FIG. 2, the printing apparatus 11 includes an interface unit 30 (I / F unit), a reception unit 31, an interpretation unit 32, a control unit 33, an image generation unit 34, a character generator 35 (CG-ROM), and a print engine. 37. The print engine 37 includes a print drive circuit 38 that performs ejection drive control of the recording head 17. In addition to the print drive circuit 38, the print engine 37, the carriage motor 16, the paper feed motor 22, and the motors 16 and 22 are driven and controlled. And various motor drive circuits (not shown). The printing apparatus 11 includes a CPU, an ASIC 39 (Application Specific IC), a ROM, and a RAM. The interpretation unit 32 is configured by a CPU that executes interpretation processing, and the image generation unit 34 performs development processing for developing character data (character data) acquired from the character generator 35 and image data acquired from print data on the image buffer 36. The ASIC 39 includes an electronic circuit to be executed. Further, the receiving unit 31 and the image buffer 36 are each constituted by a RAM. Of course, the CPU and the ASIC 39 are configured to perform various other functions including control of the print engine 37.

ホスト装置(図示せず)から印刷装置11がインターフェイス部30を通じて入力した印刷データは、受信部31に一時蓄積された後、解釈部32に送られる。解釈部32は印刷データを解釈して、印刷データをヘッダやフッタからなる部分と記録データとに分離し、記録データをイメージ生成部34(ASIC39)へ転送する。記録データは、画像データや文字コードを含むデータからなる。イメージ生成部34は画像データの展開処理を行う。また、イメージ生成部34は、文字コードをキャラクタジェネレータ35に送出することにより、その文字コードに対応する文字データをキャラクタジェネレータ35から取得する。   Print data input from the host device (not shown) through the interface unit 30 by the printing apparatus 11 is temporarily stored in the reception unit 31 and then sent to the interpretation unit 32. The interpretation unit 32 interprets the print data, separates the print data into a portion including a header and a footer, and print data, and transfers the print data to the image generation unit 34 (ASIC 39). The recording data consists of data including image data and character codes. The image generation unit 34 performs image data expansion processing. Further, the image generation unit 34 acquires character data corresponding to the character code from the character generator 35 by sending the character code to the character generator 35.

本実施形態では、キャラクタジェネレータ35に格納されている文字データの種類に応じて、キャラクタジェネレータ35には2通りの構成がある。すなわち、キャラクタジェネレータ35が、ドットインパクトプリンタ用の2値の文字データが記憶されているものである場合と、印刷エンジン37で処理可能な多値の文字データが記憶されているものである場合とがある。ドットインパクト用の文字データは、1ドットが2値(1ビット)で表現される2値データからなるとともに、文字が90度回転した横向きに配置されかつ文字が左右で反転した文字データからなり、そのままではインクジェット用の印刷エンジン37では処理不能である。   In the present embodiment, the character generator 35 has two configurations depending on the type of character data stored in the character generator 35. That is, the character generator 35 stores binary character data for a dot impact printer, and the character generator 35 stores multi-value character data that can be processed by the print engine 37. There is. The character data for dot impact is composed of binary data in which one dot is expressed in binary (1 bit), and is composed of character data in which characters are arranged in a horizontal direction rotated 90 degrees and characters are reversed left and right. As it is, the inkjet print engine 37 cannot perform processing.

そのため、キャラクタジェネレータ35が前者の構成である場合、イメージ生成部34は、取得したドットインパクト用の文字データを基に、印刷エンジン37で処理可能な多値の文字データを生成する。このイメージ生成部34を有するASIC39は、本発明のビットマップ生成方法を実行可能なプログラムが電子回路の形でハードウェアとして作り込まれた回路部を有する集積回路を構成する。一方、キャラクタジェネレータ35が後者の構成である場合、ドットインパクト用の文字データを基に生成された多値の文字データが予めキャラクタジェネレータ35に格納されている。この場合、イメージ生成部34は、公知の展開処理のみ行う。   Therefore, when the character generator 35 has the former configuration, the image generation unit 34 generates multi-value character data that can be processed by the print engine 37 based on the acquired dot impact character data. The ASIC 39 having the image generation unit 34 constitutes an integrated circuit having a circuit unit in which a program capable of executing the bitmap generation method of the present invention is built as hardware in the form of an electronic circuit. On the other hand, when the character generator 35 has the latter configuration, multi-value character data generated based on dot impact character data is stored in the character generator 35 in advance. In this case, the image generation unit 34 performs only a known development process.

イメージ生成部34は、文字コードを送出することでキャラクタジェネレータ35から文字データを読み出してイメージバッファ36上に展開する。このとき、イメージ生成部34は、多値の文字データを所定バイト幅(本実施形態では2バイト幅)で文字の横方向に複数に分割するとともに分割した各データ列を1列に並べた読み出し順になるように該文字データを展開する縦展開を行う。この展開(縦展開)によって、文字データは、記録ヘッド17が主走査方向Xに移動するときに副走査方向Yに並ぶ複数個のノズル18からインクが吐出される吐出順序に合わせてデータが並び替えられる。展開されたデータはイメージバッファ36から印刷エンジン37の印刷駆動回路38へ、1ビット列ずつシリアル転送されるか、又は所定バイト単位(1バイト又は2バイト単位)でパラレル転送される。これらのいずれの方式で転送されても、転送されたデータは印刷駆動回路38内の所定格納領域にバイト単位で格納される。なお、本実施形態では、印刷エンジン37という場合、特に断らない限り、文字データを基に印刷処理(吐出処理)を行う印刷駆動回路38を含む吐出処理部分を指すものとする。   The image generation unit 34 reads out character data from the character generator 35 by sending a character code, and develops it on the image buffer 36. At this time, the image generation unit 34 divides multi-value character data into a plurality of characters in the horizontal direction with a predetermined byte width (in this embodiment, 2 byte width) and reads out the divided data strings in one line. The vertical expansion is performed to expand the character data in order. By this development (vertical development), the character data is arranged in accordance with the ejection order in which ink is ejected from the plurality of nozzles 18 arranged in the sub-scanning direction Y when the recording head 17 moves in the main scanning direction X. Be replaced. The expanded data is serially transferred bit by bit from the image buffer 36 to the print drive circuit 38 of the print engine 37, or is transferred in parallel in a predetermined byte unit (1 byte unit or 2 byte unit). Regardless of the transfer method, the transferred data is stored in a predetermined storage area in the print drive circuit 38 in units of bytes. In the present embodiment, the print engine 37 refers to a discharge processing portion including a print drive circuit 38 that performs print processing (discharge processing) based on character data unless otherwise specified.

イメージ生成部34がイメージバッファ36上に展開する文字データは、1ドットが2ビット(4階調)で表現される多値のビットマップデータである。この多値の文字データの転送先である印刷エンジン37は、大中小の3種類のサイズでインク滴を打ち分けることが可能であり、そのインク滴サイズの打ち分けを1ドットが4階調の多値で表現される階調値に基づいて行う構成となっている。ドットの階調値に応じてインク滴の吐出の有無、及び吐出されるインク滴のサイズ(ドットサイズ)が決められる。すなわち、多値の文字データでは、1ドットが階調値「00」「01」「10」「11」の4種類で表現される。そして、印刷エンジン37は、1ドットが4階調で表現される多値の文字データを処理可能に構成され、例えば「00」であれば吐出なし、「01」であれば小ドット、「10」であれば中ドット、「11」であれば大ドットのインク滴を吐出するような吐出処理を行う。   The character data developed on the image buffer 36 by the image generation unit 34 is multi-value bitmap data in which one dot is expressed by 2 bits (4 gradations). The print engine 37, which is the transfer destination of this multi-valued character data, can divide ink droplets in three types of large, medium and small sizes. The configuration is based on gradation values expressed in multiple values. Whether or not ink droplets are ejected and the size (dot size) of the ejected ink droplets are determined according to the tone value of the dots. That is, in multi-valued character data, one dot is expressed by four types of gradation values “00”, “01”, “10”, and “11”. The print engine 37 is configured to be able to process multi-value character data in which one dot is expressed by four gradations. For example, “00” indicates no discharge, “01” indicates a small dot, and “10 "Is a medium dot, and" 11 "is a discharge process that discharges a large dot ink droplet.

図3は、印刷制御回路の構成を示す。印刷駆動回路38は、電圧波形の異なる1組(例えば2つ)の電圧パルスからなる吐出駆動信号DSを出力する駆動信号生成回路40、シフトレジスタ41、ラッチ回路42、レベルシフタ43、スイッチ素子44を、吐出駆動素子45ごとに備えている。吐出駆動素子45は、記録ヘッド17のノズル18毎に一つずつ設けられており、本実施形態では圧電振動子により構成されている。もちろん、吐出駆動素子45は、インクジェット方式の記録ヘッドに使用可能な素子であれば足り、圧電振動子の他、例えば静電駆動素子又は発熱素子などを用いて構成することもできる。   FIG. 3 shows the configuration of the print control circuit. The print drive circuit 38 includes a drive signal generation circuit 40 that outputs a discharge drive signal DS composed of one set (for example, two) of voltage pulses having different voltage waveforms, a shift register 41, a latch circuit 42, a level shifter 43, and a switch element 44. , Each ejection drive element 45 is provided. One ejection driving element 45 is provided for each nozzle 18 of the recording head 17, and in this embodiment, the ejection driving element 45 is constituted by a piezoelectric vibrator. Of course, it is sufficient that the ejection driving element 45 is an element that can be used in an ink jet recording head, and it can be configured using, for example, an electrostatic driving element or a heating element in addition to the piezoelectric vibrator.

駆動信号生成回路40は、制御部33からの制御信号に基づき、印刷実行時にインクを吐出するときにはその吐出タイミングに同期して、吐出駆動信号DSを生成して出力する。   Based on the control signal from the control unit 33, the drive signal generation circuit 40 generates and outputs an ejection drive signal DS in synchronization with the ejection timing when ink is ejected during printing.

各シフトレジスタ41には、発振回路(図示せず)からのクロック信号CKに同期したドットデータSI(例えば2ビットの階調値データ「00」「01」「10」「11」のうちいずれか)がそれぞれ入力される。各シフトレジスタ41はドットデータのうち、まず上位ビットのデータを順次セットする。   Each shift register 41 has dot data SI (for example, any one of 2-bit gradation value data “00” “01” “10” “11”) synchronized with a clock signal CK from an oscillation circuit (not shown). ) Is entered. Each shift register 41 first sets the upper bit data of the dot data sequentially.

ラッチ回路42は、上位ビットのデータが各シフトレジスタ41にセットされると、所定のタイミングで入力されるラッチ信号LATに基づきシフトレジスタ41にセットされたデータをラッチする。   When the upper bit data is set in each shift register 41, the latch circuit 42 latches the data set in the shift register 41 based on a latch signal LAT input at a predetermined timing.

レベルシフタ43は、データが「1」である場合に、ラッチされたデータを所定の電圧値(例えば数十ボルト)まで昇圧し、この昇圧したデータによってスイッチ素子44が接続状態となる。一方、データが「0」である場合、各レベルシフタ43はデータの昇圧を実行せず、スイッチ素子44が非接続状態となる。   When the data is “1”, the level shifter 43 boosts the latched data to a predetermined voltage value (for example, several tens of volts), and the switch element 44 is connected by the boosted data. On the other hand, when the data is “0”, each level shifter 43 does not boost the data, and the switch element 44 is disconnected.

スイッチ素子44は、駆動信号生成回路40から図3に示す吐出駆動信号DSを入力している。吐出駆動信号DSは、第1パルスCOM1と第2パルスCOM2からなる。上位ビット「1」に基づきスイッチ素子44が接続状態となるタイミングで、吐出駆動信号DSのうち第1パルスCOM1が各スイッチ素子44に印加される。そして、上位ビットのデータが出力されると、次にドットデータが下位ビットのデータにシフトされ、下位ビット「1」に基づきスイッチ素子44が接続状態となるタイミングで、第2パルスCOM2が各スイッチ素子44に印加される。   The switch element 44 receives the ejection drive signal DS shown in FIG. 3 from the drive signal generation circuit 40. The ejection drive signal DS includes a first pulse COM1 and a second pulse COM2. The first pulse COM1 of the ejection drive signal DS is applied to each switch element 44 at the timing when the switch element 44 is connected based on the upper bit “1”. When the upper bit data is output, the dot data is then shifted to the lower bit data, and at the timing when the switch element 44 is connected based on the lower bit “1”, the second pulse COM2 is switched to each switch. Applied to the element 44.

すなわち、「01」のドットデータが出力されたとき、吐出駆動信号DSのうち第2パルスC0M2だけが吐出駆動素子45に印加されて小ドットのインクが吐出される。また、「10」のドットデータSIが出力されたとき、吐出駆動信号DSのうち第1パルスCOM1だけが吐出駆動素子45に印加されて中ドットのインクが吐出され、「11」のドットデータが出力されたとき、第1パルスCOM1と第2パルスCOM2が共に吐出駆動素子45に印加されて大ドットのインクが吐出される。このように、吐出駆動信号DSのうちドットデータSIの階調値に応じて選択された電圧パルスが吐出駆動素子45に印加されることにより、与えられた電圧パルスに応じた強さで吐出駆動素子45が吐出駆動し、ノズル18から階調値に応じた大きさのインク滴が吐出される。なお、図3における吐出駆動信号DSの電圧波形は、インク滴を大中小に打ち分ける構成を説明する模式図であり、個々のパルスの電圧波形やその組合せは、使用されるインクのインク特性(粘性等)や記録ヘッドの吐出特性などに応じて適切なドットサイズにインク滴を打ち分けられうるように適宜変更できる。   That is, when dot data of “01” is output, only the second pulse C0M2 of the ejection drive signal DS is applied to the ejection drive element 45, and small dots of ink are ejected. In addition, when the dot data SI of “10” is output, only the first pulse COM1 of the ejection drive signal DS is applied to the ejection drive element 45 to eject the medium dot ink, and the dot data of “11”. When output, both the first pulse COM1 and the second pulse COM2 are applied to the ejection drive element 45, and large dots of ink are ejected. As described above, the voltage pulse selected according to the gradation value of the dot data SI in the ejection drive signal DS is applied to the ejection drive element 45, so that the ejection drive is performed with the intensity according to the applied voltage pulse. The element 45 is driven to discharge, and an ink droplet having a size corresponding to the gradation value is discharged from the nozzle 18. Note that the voltage waveform of the ejection drive signal DS in FIG. 3 is a schematic diagram for explaining a configuration in which ink droplets are divided into large, medium, and small, and the voltage waveform of each pulse and the combination thereof are the ink characteristics ( The ink droplets can be appropriately changed so that the ink droplets can be divided into an appropriate dot size according to the viscosity of the recording head and the ejection characteristics of the recording head.

次に、上記の印刷装置11に適用され、ドットインパクト用の2値のビットマップデータからなる文字データを基に、インクジェット用の多値のビットマップデータからなる文字データを生成するビットマップ生成装置について説明する。図4はビットマップ生成装置の電気的構成を示すブロック図である。   Next, a bitmap generation device that is applied to the printing apparatus 11 and generates character data composed of multi-value bitmap data for inkjet based on character data composed of binary bitmap data for dot impact. Will be described. FIG. 4 is a block diagram showing an electrical configuration of the bitmap generation apparatus.

図4に示すように、ビットマップ生成装置50は、主制御部51、メモリ52、演算部53、左右反転部54、縦横変換部55、拡張処理部56及びインターフェイス57を備えている。主制御部51は、各部52〜57に指示を出して所定の処理を行わせることにより、ドットインパクト用の文字データを基にインクジェット用の文字データを生成するビットマップ生成処理を行う。主制御部51が各部52〜56に指示して実行されるビットマップ生成処理は、図5に示すフローチャートで示される。このビットマップ生成処理においては、左右反転処理、縦横変換処理、拡張処理などが行われる。ここで、ビットマップ生成処理について詳述する前に、まずドットインパクト用の文字データについて説明する。   As shown in FIG. 4, the bitmap generation device 50 includes a main control unit 51, a memory 52, a calculation unit 53, a horizontal inversion unit 54, a vertical / horizontal conversion unit 55, an extension processing unit 56, and an interface 57. The main control unit 51 performs a bitmap generation process for generating character data for ink-jet based on character data for dot impact by instructing the respective units 52 to 57 to perform predetermined processing. The bitmap generation process executed by the main control unit 51 instructing each of the units 52 to 56 is shown in the flowchart of FIG. In this bitmap generation processing, left / right inversion processing, vertical / horizontal conversion processing, expansion processing, and the like are performed. Here, before describing the bitmap generation processing in detail, first, character data for dot impact will be described.

図6は、2値の文字データを示す。図6(a)は、ドットインパクト用の文字データを示し、図6(b)は左右反転処理後の文字データを示す。また、図6(c)は、図6(a),(b)における文字データ中の1升分の領域(1バイト領域)を詳細に示したデータ図である。なお、図6(a),(b)における文字データ中で升内に付与された数字はデータの読み出し順(アドレス順序)を示す。   FIG. 6 shows binary character data. FIG. 6A shows the character data for dot impact, and FIG. 6B shows the character data after the horizontal reversal process. FIG. 6C is a data diagram showing in detail an area (1 byte area) corresponding to 1 升 in the character data in FIGS. 6A and 6B. In FIG. 6 (a) and FIG. 6 (b), the numbers given in the boxes indicate the data reading order (address order).

図6(a)に示すドットインパクト用の文字データCD1は、文字「A」の文字データであり、同図における升内の数字の順番で示される読み出し方向(同図における左から右への方向)が文字の縦方向となる向きで、かつ文字が左右(図6(a)では上下)で反転された状態でキャラクタジェネレータ35(CG−ROM)に格納されている。図6における縦方向がノズル配列方向(ドットインパクトプリンタにおけるインパクトワイヤ配列方向)となっており、横方向(左右方向)が主走査方向Xのドット列の方向であるラスタ方向となっている。   The character data CD1 for dot impact shown in FIG. 6A is the character data of the character “A”, and the reading direction (the direction from the left to the right in FIG. ) In the character generator 35 (CG-ROM) with the orientation being the vertical direction of the character and the character being reversed left and right (up and down in FIG. 6A). The vertical direction in FIG. 6 is the nozzle arrangement direction (impact wire arrangement direction in the dot impact printer), and the horizontal direction (left-right direction) is the raster direction that is the direction of the dot row in the main scanning direction X.

ここで、図6では、文字データCD1は、ノズル配列方向である同図における縦方向がビット(bit)で表現され、ラスタ方向である同図における横方向(左右方向)がバイト(byte)で表現されている。すなわち、同図における文字データCD1の1升は、図6(c)に示すように、1バイトに相当し、8個の2値データがラスタ方向に並ぶ8ビットで構成されている。1ドットが1ビットで表現される2値の文字データCD1は、ノズル配列方向(図6(a)の縦方向)に36ビット、ラスタ方向(図6(a)の横方向)に6バイト(48ビット)で表現されている。文字の縦方向と横方向の各ドット数がそれぞれ48ドット、36ドットであり、その文字データCD1のドットサイズは、縦×横=48×36ドットとなっている。   Here, in FIG. 6, the character data CD1 is represented by bits in the vertical direction in the figure, which is the nozzle arrangement direction, and in the horizontal direction (left-right direction) in the figure, which is the raster direction, in bytes. It is expressed. That is, 1 升 of the character data CD1 in the figure corresponds to 1 byte as shown in FIG. 6C, and is composed of 8 bits in which 8 binary data are arranged in the raster direction. The binary character data CD1 in which one dot is expressed by 1 bit is 36 bits in the nozzle arrangement direction (vertical direction in FIG. 6A) and 6 bytes in the raster direction (horizontal direction in FIG. 6A). 48 bits). The number of dots in the vertical and horizontal directions of the character is 48 dots and 36 dots, respectively, and the dot size of the character data CD1 is vertical × horizontal = 48 × 36 dots.

ここで、1ドットを1ビット(2値)で表現している図6に示す文字データCD1では、縦方向の36ドットは、ドットインパクトプリンタの記録ヘッドのインパクトワイヤの本数が副走査方向に36本(36ドット)あることに依拠している。このように文字データCD1は、縦×横が48×36ビットの画像サイズを有する2値データからなり、かつ解像度が360dpi(dot per inch)(1inchは2.54cm)となっている。文字「A」が描かれた領域(灰色領域)は値「1」をとり、文字の背景領域(白抜き領域)は値「0」をとる。なお、図6に示す文字データCD1において灰色で表現された文字は、1升である1バイト中に「1」となるビットが存在する場合にそのバイトの升を灰色で表現することによりバイト単位で2値表現したものであり、そのため文字の輪郭にギザギザ感があるが、実際のビット単位で2値表現された文字はその輪郭が滑らかなものとなっている。   Here, in the character data CD1 shown in FIG. 6 in which one dot is expressed by one bit (binary value), the number of impact wires of the print head of the dot impact printer is 36 in the sub-scanning direction. Rely on books (36 dots). Thus, the character data CD1 is composed of binary data having an image size of 48 × 36 bits in the vertical and horizontal directions, and the resolution is 360 dpi (dot per inch) (1 inch is 2.54 cm). The area where the character “A” is drawn (gray area) takes the value “1”, and the background area of the character (outline area) takes the value “0”. The character expressed in gray in the character data CD1 shown in FIG. 6 is expressed in units of bytes by expressing the font of the byte in gray when there is a bit of “1” in 1 byte of 1 升. Therefore, the contour of the character has a jagged feeling, but the character that is binary-expressed in actual bit units has a smooth contour.

図4に戻って、ビットマップ生成装置50を構成する各部53〜56の構成を、以下、順番に説明する。左右反転部54は、ドットインパクトプリンタ用に左右反転された文字を、インクジェットプリンタ用に左右反転されていない文字に戻すべく、文字データCD1を文字の左右に反転させる左右反転処理を行う。左右反転処理が施されると、例えば図6(a)に示す文字データCD1は、図6(b)に示すように文字が左右で反転されていない正規の文字データCD2に変換される。   Returning to FIG. 4, the configurations of the respective units 53 to 56 configuring the bitmap generation device 50 will be described below in order. The left-right reversing unit 54 performs a left-right reversing process for reversing the character data CD1 to the left and right of the character so as to return the character left-right reversed for the dot impact printer to a character that is not left-right reversed for the ink jet printer. When the left / right reversal processing is performed, for example, the character data CD1 shown in FIG. 6A is converted into regular character data CD2 in which the characters are not reversed left and right as shown in FIG. 6B.

縦横変換部55は、文字の横方向(図6における縦方向(ノズル配列方向))がバイトで表現される読み出し方向(図6における左右方向(ラスタ方向))となるように、文字データの縦と横を入れ替えて文字を90度回転させる縦横変換を行う。   The vertical / horizontal conversion unit 55 converts the vertical direction of the character data so that the horizontal direction (the vertical direction (nozzle arrangement direction) in FIG. 6) is the reading direction (the horizontal direction (raster direction) in FIG. 6) represented by bytes. The horizontal and vertical conversion is performed by rotating the character 90 degrees by switching the horizontal direction.

拡張処理部56は、文字データの縦方向と横方向のうち所定の一方向におけるビット数が元のビット数の所定数(2以上の自然数)倍となるように、文字データを拡張する拡張処理を行う。このとき、1ドットを表現する2値(1ビット)は、印刷エンジン37で処理可能な階調数である4階調を表現できる2ビットの値に変換する。すなわち、1ドットを表現する1ビットの値のうち「0」を「00」に、「1」を「11」に変換する。これは、文字を印刷する場合、インク滴を異なるサイズに打ち分けることはしておらず、吐出するか吐出しないかの2通りしかなく、吐出しないときにはそれを意味する「00」、吐出するときには大ドットを打つことを意味する「11」にしている。もちろん、吐出する場合に大ドットにすることは必須でなく、例えば「1」を、中ドットを意味する「10」や、小ドットを意味する「01」に変換してもよい。   The extension processing unit 56 extends the character data so that the number of bits in a predetermined one of the vertical and horizontal directions of the character data is a predetermined number (a natural number of 2 or more) times the original number of bits. I do. At this time, a binary value (1 bit) representing one dot is converted into a 2-bit value capable of representing four gradations, which is the number of gradations that can be processed by the print engine 37. That is, “0” is converted into “00” and “1” is converted into “11” among 1-bit values representing one dot. This means that when printing characters, the ink droplets are not divided into different sizes, and there are only two ways of discharging or not discharging, which means “00” when not discharging, and when discharging It is set to “11” which means to hit a large dot. Of course, it is not essential to make a large dot when ejecting. For example, “1” may be converted to “10” meaning a medium dot or “01” meaning a small dot.

演算部53は、拡張処理部56がビット数を拡張すべき拡張後のビット数を算出する。本実施形態では、拡張後のビット数の値として、文字データCD1のノズル配列方向に相当する縦方向(文字の横方法)のビット数Nb(本例では36ビット)と、1バイトのビット数である「8」との最小公倍数を算出する。文字データの縦方向のビット数Nbが「36」であるので、「36」と「8」との最小公倍数「72」が拡張後のビット数として算出される。もちろん、2値の文字データのサイズ及び多値の文字データのサイズがそれぞれ決まっている場合は、予め算出した最小公倍数を拡張後のビット数として設定しおき、拡張後のビット数を計算する演算を省くこともできる。   The computing unit 53 calculates the number of bits after expansion that the expansion processing unit 56 should expand the number of bits. In the present embodiment, as the value of the number of bits after expansion, the bit number Nb (36 bits in this example) in the vertical direction (character horizontal method) corresponding to the nozzle arrangement direction of the character data CD1 and the bit number of 1 byte. The least common multiple of “8” is calculated. Since the number of bits Nb in the vertical direction of the character data is “36”, the least common multiple “72” of “36” and “8” is calculated as the number of bits after expansion. Of course, when the size of binary character data and the size of multi-valued character data are determined, an operation for setting the least common multiple calculated in advance as the number of bits after expansion and calculating the number of bits after expansion Can be omitted.

本実施形態では、ビット数Nbが「36」であるので「8」との最小公倍数を算出する構成としている。拡張後に読み出し方向がバイト単位で表現されるように8の倍数となるビット数に拡張でき、しかも拡張した場合に1ドットを表現する1ビットが、印刷エンジン37が1ドットを表現する階調数を表すことができるビット数(本例では2ビット)に変換できる条件を満たす拡張後のビット数を求める必要がある。本実施形態のように、ビット数Nb(=「36」)が4の倍数でありかつ8の倍数でなく(つまり2倍すれば8との公倍数となり)、かつ1ドットを表現するビット数が1ビットから2ビットへ変換される場合(ビット数を2倍にすればよい場合)は、ビット数Nbと「8」との最小公倍数を、拡張後のビット数とすればよい。   In this embodiment, since the bit number Nb is “36”, the least common multiple of “8” is calculated. The number of gradations that can be expanded to a bit number that is a multiple of 8 so that the reading direction is expressed in bytes after expansion, and one bit that represents one dot when the expansion is expanded is the number of gradations that the print engine 37 represents one dot. It is necessary to obtain the number of bits after expansion that satisfies the condition that can be converted into the number of bits that can represent (2 bits in this example). As in the present embodiment, the number of bits Nb (= “36”) is a multiple of 4 and not a multiple of 8 (that is, a double is a common multiple of 8), and the number of bits representing one dot is When converting from 1 bit to 2 bits (when the number of bits only needs to be doubled), the least common multiple of the number of bits Nb and “8” may be used as the number of bits after expansion.

但し、本実施形態のような上記の条件を満たす文字データ以外の文字データをも扱う可能性がある場合は、次のような処理を行う。まず、ビット数Nbと「8」との公倍数を小さい方から順次算出する。そして公倍数Jのとき、その公倍数Jをビット数Nbで割った値である拡張倍率Qが、印刷エンジン37が処理可能な階調数を表現するビット数Kと一致するか否かを判断する。拡張倍率Qとビット数Kが一致すればそのときの公倍数Jを、拡張処理後のビット数として採用する。一方、拡張倍率Qとビット数Kが一致しない場合は、Q>Kが成立するか否かを判断する。Q>Kが不成立である場合は、1つ大きな次の公倍数に変更して、その公倍数Jについて同様の処理をする。一方、Q>Kが成立する場合は、既に印刷エンジン37で処理可能なビット数Kで1ドットを表現するのに必要なビット数を超えるビット数に拡張可能なので、その公倍数Jを拡張後のビット数として採用する。   However, when there is a possibility that character data other than the character data satisfying the above conditions as in this embodiment may be handled, the following processing is performed. First, the common multiple of the bit number Nb and “8” is sequentially calculated from the smaller one. In the case of the common multiple J, it is determined whether or not the expansion magnification Q, which is a value obtained by dividing the common multiple J by the bit number Nb, matches the bit number K that represents the number of gradations that can be processed by the print engine 37. If the expansion magnification Q and the number of bits K match, the common multiple J at that time is adopted as the number of bits after the expansion processing. On the other hand, if the expansion magnification Q does not match the number of bits K, it is determined whether or not Q> K is satisfied. When Q> K is not established, the next common multiple is changed to the next larger common multiple, and the same processing is performed for the common multiple J. On the other hand, if Q> K is established, the number of bits that can be processed by the print engine 37 can be expanded to a number of bits that exceeds the number of bits necessary to represent one dot. Adopted as the number of bits.

次に、主制御部51が各部53〜56に処理を行わせて実行するビットマップ生成処理について、図6〜図8の図面を用いつつ、図5に示すフローチャートに従って説明する。なお、図7に示す文字データも、図6と同様に、図における横方向である読み出し方向はバイトで表現されており、升内の数字はデータの読み出し順を示す。   Next, bitmap generation processing executed by the main control unit 51 by causing the units 53 to 56 to perform processing will be described with reference to the flowcharts shown in FIGS. Similarly to FIG. 6, the character data shown in FIG. 7 is expressed in bytes in the reading direction, which is the horizontal direction in the figure, and the numbers in the boxes indicate the reading order of the data.

主制御部51は、文字データが与えられる度に文字データの一つひとつについてビットマップ生成処理を施す。もちろん、処理後の文字の位置・向きを把握しつつ複数の文字データにビットマップ生成処理を一度に施す方法も実施可能である。ここでは、いずれの方法であるにせよ、一つの文字データに着目してビットマップ生成処理を説明する。   The main control unit 51 performs a bitmap generation process for each character data each time the character data is given. Of course, it is possible to implement a method of performing bitmap generation processing on a plurality of character data at a time while grasping the position and orientation of the processed character. Here, regardless of which method is used, the bitmap generation process will be described focusing on one character data.

まずステップS1では、処理の対象となる文字データCD1を取得する。すなわち、文字データCD1を読み出してメモリ52の作業領域に書き込む。例えばインターフェイス57を介して外部から文字データをメモリ52の作業領域へ読み込んでもよいし、予めメモリ52の他の格納領域に格納された文字データを、該メモリ52の作業領域へ読み込んでも構わない。後者の場合、メモリ52は、文字データ格納用のROM又はフラッシュメモリと、作業領域用のRAM又はフラッシュメモリとから構成されてもよいし、1つフラッシュメモリ内に文字データ格納領域と作業領域とが用意された構成でもよい。また、例えば外部から文字データを読み込む構成としては、ビットマップ生成装置50と通信可能に接続されたキャラクタジェネレータ35に文字コードを送出することによりインターフェイス57を通じて文字データCD1を取得する構成が挙げられる。   First, in step S1, character data CD1 to be processed is acquired. That is, the character data CD1 is read and written in the work area of the memory 52. For example, character data may be read from the outside into the work area of the memory 52 via the interface 57, or character data previously stored in another storage area of the memory 52 may be read into the work area of the memory 52. In the latter case, the memory 52 may be composed of a ROM or flash memory for storing character data and a RAM or flash memory for a work area, or a character data storage area and a work area in one flash memory. May be provided. For example, as a configuration for reading character data from the outside, there is a configuration in which the character data CD1 is acquired through the interface 57 by sending a character code to the character generator 35 that is communicably connected to the bitmap generation device 50.

ステップS2では、文字データのノズル配列方向(縦方向)のビット数Nb(本例では「36」)と「8」との最小公倍数を算出する。この最小公倍数の算出処理は、主制御部51の指示に従って演算部53が実行する。最小公倍数は「72」と算出され、この値「72」はメモリ52の所定記憶領域に一時記憶される。なお、前述のごとく、扱う文字データ及び変換後の文字データの各サイズが予め決まっている場合は、予め最小公倍数「72」を算出して設定しておくことにより、当該ステップの演算を省くこともできる。   In step S2, the least common multiple of the number of bits Nb in the nozzle arrangement direction (vertical direction) of character data (in this example, “36”) and “8” is calculated. The calculation process of the least common multiple is executed by the calculation unit 53 in accordance with an instruction from the main control unit 51. The least common multiple is calculated as “72”, and this value “72” is temporarily stored in a predetermined storage area of the memory 52. As described above, when the sizes of the character data to be handled and the character data after conversion are determined in advance, the calculation of the step is omitted by calculating and setting the least common multiple “72” in advance. You can also.

また、本実施形態では、ビット数Nbが4の倍数でありかつ8の倍数ではない値であり、かつK=2であることから、ビット数Nbと「8」との最小公倍数を算出する構成としている。もちろん、処理対象である2値の文字データのビット数Nbが4の倍数でなく、かつ印刷エンジン37で処理可能な1ドットを表現できるビット数Kが「2」でない場合もありうる。このような場合にも対応できるためには、次の2つの条件を満たすような公倍数J(拡張倍率Q)を求める。すなわち、(1)ビット数Nbと「8」との公倍数J(又はQ=J/Nb)であり、かつ(2)拡張倍率Qで拡張した際に印刷エンジン37で処理可能な階調値表現ができるように1ドットをKビットで表現するために必要なビット数(=Nb×K)が確保されうる条件Q≧Kを満たすことである。つまり、条件J/Nb≧Kを満たす公倍数J(又は拡張倍率Q(=J/Nb))を定めればよい。   In the present embodiment, since the bit number Nb is a multiple of 4 and not a multiple of 8, and K = 2, the least common multiple of the bit number Nb and “8” is calculated. It is said. Of course, there may be a case where the bit number Nb of the binary character data to be processed is not a multiple of 4, and the bit number K that can represent one dot that can be processed by the print engine 37 is not “2”. In order to cope with such a case, a common multiple J (expansion magnification Q) that satisfies the following two conditions is obtained. That is, (1) a common multiple J (or Q = J / Nb) of the number of bits Nb and “8”, and (2) gradation value expression that can be processed by the print engine 37 when expanded at the expansion magnification Q In other words, the condition Q ≧ K that can ensure the number of bits (= Nb × K) necessary for expressing one dot with K bits is satisfied. That is, a common multiple J (or expansion magnification Q (= J / Nb)) that satisfies the condition J / Nb ≧ K may be determined.

具体的には次の処理を実行する。まず、ビット数Nbと「8」との公倍数を小さい方から順次算出する。最初の公倍数を算出すると、その公倍数J(本例では「72」)をビット数Nbで割った拡張倍率Qが、印刷エンジン37で処理可能な階調数を表現できるビット数K(本例では「2」)と一致するか否かを判断する。拡張倍率Qとビット数Kが一致すれば、拡張後のビット数としてその公倍数Jを採用する。先の最小公倍数を算出する方法は、最初の公倍数J(つまり最小公倍数)に対応する拡張倍率QがKに一致した場合に該当する。一方、拡張倍率Qとビット数Kが一致しない場合は、Q>Kが成立するか否かを判断する。Q>Kが不成立の場合は、1つ大きな次の公倍数に変更して、その公倍数Jについて同様の処理をする。一方、Q>Kが成立する場合は、既に印刷エンジン37で処理可能なビット数Kで1ドットを表現するのに必要なビット数を超えるビット数への拡張が可能なので、拡張後のビット数としてその公倍数Jを採用する。採用する公倍数Jはメモリ52の所定記憶領域に一時記憶される。   Specifically, the following processing is executed. First, the common multiple of the bit number Nb and “8” is sequentially calculated from the smaller one. When the first common multiple is calculated, the expansion factor Q obtained by dividing the common multiple J (in this example, “72”) by the number of bits Nb represents the number of bits K (in this example) that can represent the number of gradations that can be processed by the print engine 37. “2”) is determined. If the expansion magnification Q and the number of bits K match, the common multiple J is adopted as the number of bits after expansion. The method for calculating the least common multiple corresponds to the case where the expansion factor Q corresponding to the first common multiple J (that is, the least common multiple) matches K. On the other hand, if the expansion magnification Q does not match the number of bits K, it is determined whether or not Q> K is satisfied. When Q> K is not established, the next common multiple is changed to the next larger common multiple, and the same processing is performed for the common multiple J. On the other hand, if Q> K is satisfied, the number of bits after expansion can be increased to the number of bits exceeding the number of bits necessary to represent one dot with the number of bits K that can be processed by the print engine 37. The common multiple J is adopted. The common multiple J to be adopted is temporarily stored in a predetermined storage area of the memory 52.

ステップS3では、与えられた文字データCD1に文字の左右を反転させる左右反転処理を施す。この左右反転処理は、主制御部51の指示に従って左右反転部54が実行する。この左右反転処理は、文字データにおいて文字の左右方向の両側のデータを入れ替える処理を両端から内側へ向かって順次行う。この結果、文字データCD1の左右が反転されて、図6(b)に示すように、文字が左右(横方向)で反転されていない正規の文字データCD2が得られる。   In step S3, a left / right reversing process is performed on the given character data CD1 to reverse the left / right of the character. This left / right reversing process is executed by the left / right reversing unit 54 in accordance with an instruction from the main control unit 51. In the left-right reversal process, the process of exchanging data on both sides of the character in the left-right direction is sequentially performed from both ends inward. As a result, the left and right of the character data CD1 are inverted, and as shown in FIG. 6B, regular character data CD2 in which the characters are not inverted left and right (horizontal direction) is obtained.

次のステップS4では、文字データを縦横変換・拡張処理する。この縦横変換処理は、主制御部51の指示に従って縦横変換部55が実行する。メモリ52に格納された左右反転後の文字データCD2をメモリ52の格納領域における縦方向(ノズル配列方向)に読み出し、その読み出したデータをメモリ52の元の格納領域に横方向(読み出し方向)に書き込む処理を行う。この縦横変換処理の過程では、読み出したデータを、書込み方向を90度変えて書き込むが、その書込みをする前に、その読み出したデータに拡張処理を施す。なお、縦横変換処理は、横方向(読み出し方向)に読み出して、縦方向(ノズル配列方向)に書き込む処理としてもよい。   In the next step S4, the character data is subjected to vertical / horizontal conversion / extension processing. This vertical / horizontal conversion processing is executed by the vertical / horizontal conversion unit 55 in accordance with an instruction from the main control unit 51. The horizontally inverted character data CD2 stored in the memory 52 is read in the vertical direction (nozzle arrangement direction) in the storage area of the memory 52, and the read data is read horizontally in the original storage area of the memory 52 (reading direction). Perform the writing process. In the process of the vertical / horizontal conversion process, the read data is written with the writing direction changed by 90 degrees, but before the writing, the read data is extended. The vertical / horizontal conversion process may be a process of reading in the horizontal direction (reading direction) and writing in the vertical direction (nozzle arrangement direction).

この拡張処理は、主制御部51の指示に従って拡張処理部56が実行する。この拡張処理では、まず先に算出した(あるいは予め設定された)最小公倍数の値をメモリ52の所定記憶領域から読み出し、文字の横方向(ラスタ方向)のビット数が、その読み出した最小公倍数に等しいビット数となるように、文字データをラスタ方向に拡張する。詳しくは、縦横変換処理の過程で読み出した文字データに対し、1ドットを表現する1ビットの値(2値)を、4階調で表現できる2ビット(多値)に変換する多値化処理を施す。本実施形態では、図7(b)に示すように、「0」を「00」に、「1」を「11」に変換する。吐出なしを意味する「0」は、4階調で吐出なしを意味する「00」に変換され、一方、吐出ありを意味する「1」は、4階調で大ドットでの吐出ありを意味する「11」に変換される。そして、この多値化処理されたデータをメモリ52の格納領域に、読み出し方向と90度向きを変えた横方向(ラスタ方向)に書き込む。この結果、図7(a)に示すように、文字データの縦横が変換されて文字の横方向が読み出し方向と一致するとともに、読み出し方向(文字の横方向)のビット数が、元の36ビット(36ドット)の2倍である72ビット(9バイト)に拡張される。拡張処理後の文字データでは、1ドットが2ビットで表現されているので、拡張倍率Q=2で拡張されても、文字の横方向のドット数は36ドットで、ドット数に変更はない。   This expansion processing is executed by the expansion processing unit 56 in accordance with an instruction from the main control unit 51. In this expansion processing, first, the value of the least common multiple previously calculated (or preset) is read from a predetermined storage area of the memory 52, and the number of bits in the horizontal direction (raster direction) of the character is set to the read least common multiple. The character data is expanded in the raster direction so that the number of bits is equal. Specifically, multi-value conversion processing for converting 1-bit value (2 values) expressing 1 dot into 2 bits (multi-value) that can be expressed in 4 gradations for character data read in the process of vertical / horizontal conversion processing Apply. In the present embodiment, as shown in FIG. 7B, “0” is converted to “00” and “1” is converted to “11”. “0”, meaning no ejection, is converted to “00”, meaning no ejection at 4 gradations, while “1”, meaning ejection, means ejection with large dots at 4 gradations. Is converted to “11”. Then, the multivalued data is written in the storage area of the memory 52 in the horizontal direction (raster direction) which is different from the read direction by 90 degrees. As a result, as shown in FIG. 7A, the vertical and horizontal directions of the character data are converted so that the horizontal direction of the characters matches the reading direction, and the number of bits in the reading direction (the horizontal direction of the characters) is the original 36 bits. It is expanded to 72 bits (9 bytes), which is twice (36 dots). In the character data after the expansion process, one dot is represented by 2 bits. Therefore, even if the character is expanded at the expansion magnification Q = 2, the number of dots in the horizontal direction of the character is 36 dots and the number of dots is not changed.

また、ステップS2において、ビット数Nbと「8」との公倍数を小さい方から順次算出し、公倍数Jをビット数Nbで割った値である拡張倍率Qが、印刷エンジン37で処理可能な階調数を表現できるビット数Kと一致するか否かを判断する処理を行った場合、拡張処理は以下のように行われる。拡張倍率Q(=J/Nb)とビット数Kとが一致したときの公倍数Jを採用した場合、文字データを拡張方向(本例では文字の横方向)に、拡張後のビット数が公倍数Jに等しい値になるように拡張処理を行う。すなわち、多値化処理において、吐出しないを意味する「0」を吐出しないを意味するK(=Q)ビットの値に変換し、吐出することを意味する「1」を大ドット(又は最大ドット)で吐出することを意味するKビットの値に変換する。ビット数Nbが8の倍数でない場合、Qがとりうる値としては「2」「4」「6」「8」が挙げられる。また、ビット数Nbが8の倍数である場合、Qがとりうる値としては、Kの値に等しい2以上の自然数(=2,3,4,5,…,8)が挙げられる。なお、インクジェットの場合、1ドットを表現するビット数Kが「8」を超える用途での使用は考えられにくいので、ここではQの値は最大「8」としている。   In step S2, the common multiple of the bit number Nb and “8” is calculated sequentially from the smaller one, and the expansion magnification Q, which is a value obtained by dividing the common multiple J by the bit number Nb, is a gradation that can be processed by the print engine 37. When the process of determining whether or not the number of bits K that can represent the number is coincident is performed, the extension process is performed as follows. When the common multiple J when the expansion magnification Q (= J / Nb) matches the number of bits K is used, the character data is expanded in the expansion direction (the horizontal direction of the character in this example), and the number of bits after expansion is the common multiple J. The expansion process is performed so that the value becomes equal to. That is, in multi-value processing, “0” meaning no ejection is converted to a K (= Q) bit value meaning no ejection, and “1” meaning ejection is a large dot (or the maximum dot) ) Is converted into a K-bit value meaning discharge. When the bit number Nb is not a multiple of 8, possible values for Q include “2”, “4”, “6”, and “8”. In addition, when the bit number Nb is a multiple of 8, possible values of Q include two or more natural numbers equal to the value of K (= 2, 3, 4, 5,..., 8). In the case of inkjet, it is difficult to consider use in applications where the number of bits K representing one dot exceeds “8”, so the Q value is set to “8” at the maximum here.

一方、拡張倍率Qとビット数Kが一致せず、より大きな公倍数に順次変更していって、初めてQ>Kが成立したときの公倍数Jを採用した場合は、多値化変換において、「0」を吐出なしを意味するKビットの値に変換し、「1」を大ドット(又は最大ドット)で吐出することを意味するKビットの値に変換する。Q>KとなるQとKとの組合せとしては、(Q,K)=(4,2)、(4,3)、(6,2)、(6,3)、(6,4)、(6,5)、(8,2)、(8,3)…(8,7)が挙げられる。Q>KとなるQとKの組合せについては、余分に拡張されたビット((Q−K)ビット分)は、元々存在するドット間に相当する位置に追加する。この場合、ドット間に追加したビット数(Q−K)がKの自然数倍の値でなくても、後述する解像度調整を行うときにその余分に追加されたビットを解像度調整用の新たなドット(但し、吐出なしを意味する値)として利用したり、印刷エンジン37(印刷制御回路38)側で記録時に余分なビットを間引きしながら印刷処理を行ったりすればよい。   On the other hand, when the expansion factor Q and the number of bits K do not match and are sequentially changed to a larger common multiple and the common multiple J when Q> K is established for the first time is adopted, “0” "Is converted into a K-bit value meaning no ejection, and" 1 "is converted into a K-bit value meaning ejection with a large dot (or the maximum dot). As a combination of Q and K satisfying Q> K, (Q, K) = (4,2), (4,3), (6,2), (6,3), (6,4), (6, 5), (8, 2), (8, 3)... (8, 7). For the combination of Q and K where Q> K, the extra extended bits ((Q−K) bits) are added at positions corresponding to the dots that originally exist. In this case, even if the number of bits added between dots (Q−K) is not a value that is a natural number multiple of K, the extra bits added when performing the resolution adjustment described later are used as a new resolution adjustment. What is necessary is just to use as a dot (however, a value meaning no discharge), or to perform print processing while thinning out extra bits at the time of recording on the print engine 37 (print control circuit 38) side.

また、Q>KとなるQとKとの組合せのうち、QがKの2以上の自然数倍(N倍)である場合、具体的には、(Q,K)=(4,2)、(6,3)、(8,2)、(8,4)の場合は、元々存在するドット間に相当する位置に、同じKビットで表現されるドットを(N−1)個追加することができる。そして、ドット間に追加した(N−1)個のドットを表現するKビットの値を、吐出なしを意味する値(例えば「00」、「000」、「0000」)にする。こうすれば印刷エンジン37で処理可能な階調表現ができるうえ、余分に拡張されたビットにはドットが記録されない。特にQ=2Kである場合、具体的には(Q,K)=(4,2)、(6,3)、(8,4)の場合は、元々存在するドット間に相当する位置に、吐出なしを意味するKビットの値(例えば「00」、「000」、「0000」)を1個追加するだけで済む。このように余分な(Q−K)分のビットを、ドットの階調値として追加できる場合は、印刷エンジン37側での記録実行時に余分なビットを間引く間引き処理を採用しない構成も実現可能になる。   Further, in the combination of Q and K where Q> K, when Q is a natural number multiple of 2 or more (N times) of K, specifically, (Q, K) = (4, 2) , (6, 3), (8, 2), and (8, 4), (N−1) dots represented by the same K bits are added at positions corresponding to the original existing dots. be able to. Then, the value of the K bit representing (N−1) dots added between the dots is set to a value meaning no ejection (for example, “00”, “000”, “0000”). In this way, gradation expression that can be processed by the print engine 37 can be achieved, and dots are not recorded in the extra extended bits. In particular, when Q = 2K, specifically, when (Q, K) = (4, 2), (6, 3), (8, 4), the positions corresponding to the positions between the originally existing dots are as follows. It is only necessary to add one K-bit value (for example, “00”, “000”, “0000”) meaning no discharge. When extra bits (Q−K) can be added as dot gradation values in this way, it is possible to realize a configuration that does not employ thinning-out processing for thinning out extra bits when printing is performed on the print engine 37 side. Become.

ステップS5では、処理すべき全ての文字データについて処理を終了したか否かを判断し、未処理の文字データがあれば処理対象を次の文字データに切り替えて(S6)、ステップS1〜S4の各処理を実行する。文字データ毎にステップS1〜S4の各処理を実行し、ステップS5において全ての文字データについて処理を終了したと判断すると、当該ビットマップ生成処理を終了する。なお、本実施形態では、左右反転処理を行うステップS3が左右反転ステップに相当する。また、ステップS4における拡張処理(多値化処理)が「拡張ステップ」に相当し、ステップS4における縦横変換処理が「縦横変換ステップ」に相当する。   In step S5, it is determined whether or not processing has been completed for all character data to be processed. If there is unprocessed character data, the processing target is switched to the next character data (S6), and steps S1 to S4 are performed. Execute each process. The processing of steps S1 to S4 is executed for each character data, and when it is determined that the processing has been completed for all the character data in step S5, the bitmap generation processing is terminated. In the present embodiment, step S3 for performing the left / right inversion processing corresponds to the left / right inversion step. Further, the expansion process (multi-value process) in step S4 corresponds to an “expansion step”, and the vertical / horizontal conversion process in step S4 corresponds to a “vertical / horizontal conversion step”.

こうして360dpiの2値データからなるドットインパクト用の文字データCD1は、360dpiの多値データからなるインクジェット用の文字データCD3に変換される。つまり、ビットマップ生成装置50により、ドットインパクト用の2値のビットマップデータからなる文字データCD1を基に、インクジェット用の多値のビットマップデータである文字データCD3が生成される。   In this way, dot impact character data CD1 composed of binary data of 360 dpi is converted into ink jet character data CD3 composed of 360 dpi multi-value data. That is, the bitmap generation device 50 generates character data CD3, which is multi-value bitmap data for inkjet, based on the character data CD1 composed of binary bitmap data for dot impact.

ところで、図4に示すビットマップ生成装置50は、例えばパーソナルコンピュータやワークステーション等のコンピュータにより構成することができる。この場合、図5にフローチャートで示されたビットマップ生成処理用のプログラムをコンピュータのCPUが実行することにより、図4における各部51,53〜56は構築される。例えば印刷装置11のキャラクタジェネレータ35にビットマップ生成処理後の図7に示す文字データCD3を予め格納しておく場合は、上記のごとく、コンピュータによりビットマップ生成装置50を構築して、文字データCD1にビットマップ生成処理を施して、文字データCD3を取得し、取得した文字データCD3をキャラクタジェネレータ35に格納する。   Incidentally, the bitmap generation apparatus 50 shown in FIG. 4 can be configured by a computer such as a personal computer or a workstation. In this case, the units 51 and 53 to 56 in FIG. 4 are constructed by the CPU of the computer executing the bitmap generation processing program shown in the flowchart of FIG. For example, when the character data CD3 shown in FIG. 7 after the bitmap generation processing is stored in the character generator 35 of the printing apparatus 11 in advance, as described above, the bitmap data generation device 50 is constructed by the computer, and the character data CD1. Is subjected to bitmap generation processing to obtain character data CD3, and the obtained character data CD3 is stored in the character generator 35.

一方、図4に示すビットマップ生成装置50は、例えばASIC39により構成することもできる。この場合、図5にフローチャートで示されたビットマップ生成処理のプログラムが電子回路の形態で作り込まれた集積回路部をASIC39は内蔵する。すなわち、ASIC39に内蔵された集積回路部(つまりイメージ生成部34)は、図4に示すビットマップ生成装置50を構成し、主制御部51、演算部53、左右反転部54、縦横変換部55、拡張処理部56を備える。例えば印刷装置11のキャラクタジェネレータ35にドットインパクト用の文字データCD1を格納しておく場合は、上記のごとく、ASIC39によりビットマップ生成装置50を構築する。そして、印刷装置11の内部でイメージ生成部34がキャラクタジェネレータ35から取得した文字データCD1にビットマップ生成処理を施して、文字データCD3を取得し、それをイメージバッファ36上に展開する。なお、扱われる2値の文字データ及び多値の文字データの各サイズが決まっていて、拡張処理部に予め決まった最小公倍数(又は公倍数)を設定しておく構成で実現した場合は、拡張後のビット数を求める演算が不要なので、演算部は廃止できる。   On the other hand, the bitmap generation device 50 shown in FIG. 4 can also be configured by the ASIC 39, for example. In this case, the ASIC 39 incorporates an integrated circuit portion in which the bitmap generation processing program shown in the flowchart of FIG. 5 is created in the form of an electronic circuit. That is, the integrated circuit unit (that is, the image generation unit 34) built in the ASIC 39 constitutes the bitmap generation device 50 shown in FIG. 4, and includes a main control unit 51, a calculation unit 53, a horizontal inversion unit 54, and a vertical / horizontal conversion unit 55. The expansion processing unit 56 is provided. For example, when character data CD1 for dot impact is stored in the character generator 35 of the printing apparatus 11, the bitmap generation apparatus 50 is constructed by the ASIC 39 as described above. Then, the image generation unit 34 performs a bitmap generation process on the character data CD 1 acquired from the character generator 35 in the printing apparatus 11 to acquire character data CD 3, and develops it on the image buffer 36. In addition, when each character size of binary character data and multi-value character data to be handled is determined, and a configuration in which a predetermined least common multiple (or common multiple) is set in the expansion processing unit is realized, Since the calculation for obtaining the number of bits is unnecessary, the calculation unit can be eliminated.

印刷装置11において、イメージ生成部34は上記のいずれかの処理によって結果的に文字データCD3を取得すると、必要に応じて解像度調整処理を行う。解像度調整処理は、印刷エンジン37の印刷解像度に文字データCD3の解像度を合わせる処理である。本実施形態では、印刷エンジン37の印刷解像度が720dpiに設定されているので、ラスタ方向(読み出し方向)に解像度を2倍にして、360dpiを720dpiに解像度変換する。つまり、図8に示すように、ラスタ方向(同図における左右方向)において元々存在するドットD1(同図における黒丸でその値は大ドットの吐出を意味する「11」の例)間に1個ドットD2(同図における白丸)を追加するとともに、その追加したドットD2の値を吐出なしを意味する「00」とすることにより、360dpiから720dpiに解像度を変換する。そして、解像度を高めた720dpiの文字データCD4をイメージバッファ36上に展開する。なお、印刷エンジン37の仕様に応じて、ノズル配列方向に解像度を増やす解像度調整を行ってもよい。   In the printing apparatus 11, when the image generation unit 34 acquires the character data CD3 as a result of any of the above processes, the image generation unit 34 performs a resolution adjustment process as necessary. The resolution adjustment process is a process for adjusting the resolution of the character data CD3 to the print resolution of the print engine 37. In this embodiment, since the print resolution of the print engine 37 is set to 720 dpi, the resolution is doubled in the raster direction (reading direction) and the resolution is converted from 360 dpi to 720 dpi. That is, as shown in FIG. 8, there is one dot D1 that originally exists in the raster direction (the left-right direction in the figure) (a black circle in the figure, the value of which is an example of “11” meaning large dot ejection). The resolution is converted from 360 dpi to 720 dpi by adding the dot D2 (white circle in the figure) and setting the value of the added dot D2 to “00” meaning no ejection. Then, the 720 dpi character data CD4 with an increased resolution is developed on the image buffer 36. Note that resolution adjustment that increases the resolution in the nozzle arrangement direction may be performed according to the specifications of the print engine 37.

イメージ生成部34は、展開処理として、文字データを縦方向に展開する縦展開処理を行う。縦展開処理は、記録ヘッド17を走査して印刷をするときにノズル18からインク滴を吐出する順番に合わせてデータの順序を並び替える処理である。図9は縦展開処理後の文字データを示す。同図に示すように、文字データをラスタ方向(同図における左右方向)に所定バイト幅(本実施形態では2バイト幅)ずつ分割し、文字の縦方向(ノズル配列方向)と平行かつ所定バイト幅のデータ列を、文字の読み出し方向(ラスタ方向)の順番に順次イメージバッファ36上に縦列に並べる書き込みを行って縦展開処理は実施される。図9において縦展開処理後の文字データCD5における升内の数字は、ドットデータの並び順を示し(但し同図における横方向はバイト表現)、太線で分断された2バイト幅のデータ列は、実際にはドットデータの順番でイメージバッファ36上に縦列に格納される。   The image generation unit 34 performs vertical expansion processing for expanding character data in the vertical direction as expansion processing. The vertical development process is a process of rearranging the data order in accordance with the order in which ink droplets are ejected from the nozzles 18 when the recording head 17 is scanned and printed. FIG. 9 shows the character data after the vertical development process. As shown in the figure, the character data is divided by a predetermined byte width (2 bytes width in this embodiment) in the raster direction (left and right direction in the figure), and parallel to the vertical direction (nozzle arrangement direction) of the character and predetermined bytes. The vertical development process is performed by writing the data string having the width in the vertical direction on the image buffer 36 in order of the character reading direction (raster direction). In FIG. 9, the numbers in 升 in the character data CD5 after the vertical development process indicate the arrangement order of the dot data (however, the horizontal direction in the figure is byte representation), and the 2-byte-width data string divided by the bold line is Actually, the dot data is stored in a vertical row on the image buffer 36.

図9に示すように、文字データを2バイト幅で縦方向に展開する場合、一文字分のラスタ方向の幅が9バイトと奇数バイト幅であるので、最後の書込みアドレスが9バイト目となる。イメージ生成部34は、イメージバッファ36への書込みアドレスをカウンタで管理しており、奇数バイト目(例えば1バイト目)のアドレスから奇数バイト幅(9バイト幅)の文字データを書き込んだ場合、奇数アドレス境界が後端で発生する。次に、例えば文字「B」を書き込む場合、前の文字データが9バイトの幅なので、奇数アドレス境界が先端で発生する。そのため、文字「B」の文字データのうちその1バイト目を、文字「A」の最後の書込みアドレス(9バイト目)と2バイト幅のデータ列を形成するように次のアドレスである10バイト目のバイト列に書き込む。すなわち、次の文字を展開するときに最後に書き込まれたバイト列を示すアドレスが奇数バイト目であるときは、次の文字データをカウンタの奇数値に「1」を加えた偶数番目のバイト列から書込みを開始する。なお、図9は、解像度調整を行わなかった文字データを展開した例である。   As shown in FIG. 9, when the character data is expanded in the vertical direction with a width of 2 bytes, since the width in the raster direction for one character is 9 bytes and an odd byte width, the last write address is the 9th byte. The image generation unit 34 manages the write address to the image buffer 36 with a counter, and when character data having an odd byte width (9 byte width) is written from an odd byte address (for example, the first byte), An address boundary occurs at the trailing edge. Next, for example, when writing the character “B”, since the previous character data is 9 bytes wide, an odd address boundary occurs at the tip. Therefore, the first byte of the character data of the character “B” is the 10 bytes that are the next address so as to form the last write address (9th byte) of the character “A” and a 2-byte wide data string. Write to the byte sequence of the eye. That is, when the address indicating the last written byte sequence when the next character is expanded is the odd number byte, the even number byte sequence obtained by adding “1” to the odd value of the counter is added to the next character data. Start writing from. FIG. 9 shows an example in which character data that has not been subjected to resolution adjustment is developed.

こうして2バイト幅のデータ列ずつイメージバッファ36の領域上に1列に縦展開されたデータは、ドット形成順序でイメージバッファ36から印刷エンジン37の印刷駆動回路38へ転送される。   The data vertically developed in one column on the area of the image buffer 36 for each 2-byte width data column is transferred from the image buffer 36 to the print drive circuit 38 of the print engine 37 in the dot formation order.

以上詳述したように、本実施形態によれば、以下の効果を得ることができる。
(1)文字の横方向のビット数Nbと「8」との最小公倍数であって、その最小公倍数をビット数Nbで割った値である拡張倍率Qが印刷エンジン37で処理可能な1ドットを表現するビット数に等しくなるような最小公倍数を設定した。そして、文字データを拡張方向に設定した最小公倍数と等しいビット数となるように拡張する拡張ステップ、縦横変換ステップ、左右反転ステップを、ドットインパクト用の2値の文字データに施して、印刷エンジン37で処理可能な多値の文字データを生成した。よって、ドットインパクト用の2値の文字データを基に、読み出し方向が文字の横方向(ラスタ方向)となる向きでその読み出し方向(文字の横方向)のビット数が8の倍数となり、かつ1ドットが印刷エンジン37で処理可能に階調値表現された多値の文字データを生成できる。
As described above in detail, according to the present embodiment, the following effects can be obtained.
(1) One dot that can be processed by the print engine 37 is the least common multiple of the number of bits Nb in the horizontal direction of the character and “8”, and the expansion magnification Q that is the value obtained by dividing the least common multiple by the number of bits Nb. The least common multiple is set to be equal to the number of bits to be expressed. The binary character data for dot impact is subjected to an expansion step for expanding the character data so that the number of bits is equal to the least common multiple set in the expansion direction, a vertical / horizontal conversion step, and a horizontal reversal step. Multi-valued character data that can be processed with. Therefore, based on binary character data for dot impact, the number of bits in the reading direction (the horizontal direction of the character) is a multiple of 8 in the direction in which the reading direction is the horizontal direction (raster direction) of the character, and 1 It is possible to generate multi-value character data in which dots are expressed as gradation values so that the print engine 37 can process them.

(2)拡張ステップでは、ビット数Nbと「8」との公倍数のうち選択した公倍数Jから定まる拡張倍率Q(=J/Nb)が、印刷エンジン37で処理可能な1ドットを表現するビット数「2」に等しい。言い換えれば、選択した公倍数Jは、ビット数Nbに印刷エンジン37で処理可能な1ドットを表現するビット数「2」を乗じた値に等しい。よって、1ドットを2値の表現から印刷エンジン37で処理可能な多値の表現に変換する多値化処理を行えば、文字の横方向のビット数が選択された公倍数になるように、文字データが拡張方向(文字の横方向)に拡張される。すなわち、多値化処理が拡張処理を兼ねるので、処理が少なく済む。   (2) In the expansion step, the expansion ratio Q (= J / Nb) determined from the common multiple J selected from the common multiples of the number of bits Nb and “8” is the number of bits representing one dot that can be processed by the print engine 37. Equal to “2”. In other words, the selected common multiple J is equal to a value obtained by multiplying the bit number Nb by the bit number “2” representing one dot that can be processed by the print engine 37. Therefore, if a multivalue conversion process is performed in which one dot is converted from a binary expression into a multivalue expression that can be processed by the print engine 37, the character is set so that the number of bits in the horizontal direction becomes the selected common multiple. Data is expanded in the expansion direction (the horizontal direction of characters). That is, since the multi-value processing also serves as the expansion processing, the processing can be reduced.

(3)選択された公倍数から定まる拡張倍率Qが、印刷エンジン37で処理可能な1ドットを表現するビット数に2以上の自然数を乗じた値である場合は、拡張処理において、多値化処理によって文字の横方向(ラスタ方向)に多値表現で配列されるドット間に相当する位置に記録なしを意味するドットの階調値を追加するようにした。このため、拡張倍率Qが、印刷エンジン37で処理可能な1ドットを表現するビット数Kに等しくなくても、その拡張倍率Qが、1ドットを表現するビット数Kに2以上の自然数を乗じた値である場合は、印刷エンジン37が処理可能な文字データを生成できる。この生成された文字データは、1ドットを印刷エンジン37で処理可能な多値で表現されるうえ、設定された公倍数(拡張ビット数)から定まる拡張倍率Qで文字データを文字の横方向(ラスタ方向)に拡張したものとなって、読み出し方向(文字の横方向)のビット数が8の倍数となる。しかも、ドット間に追加された階調値は、記録なしを意味するので、印刷エンジン37が記録処理を行うときには記録されず、本来のドットのみを記録対象とすることができる。   (3) When the expansion magnification Q determined from the selected common multiple is a value obtained by multiplying the number of bits representing one dot that can be processed by the print engine 37 by a natural number of 2 or more, multi-value processing is performed in the expansion processing. Thus, the tone value of a dot meaning no recording is added at a position corresponding to the space between dots arranged in a multi-value expression in the horizontal direction (raster direction) of the character. For this reason, even if the expansion magnification Q is not equal to the number of bits K representing one dot that can be processed by the print engine 37, the expansion magnification Q multiplies the number of bits K representing one dot by a natural number of 2 or more. If the value is a character value, character data that can be processed by the print engine 37 can be generated. The generated character data is expressed by a multi-value that can be processed by the print engine 37 for one dot, and the character data is converted to the horizontal direction (raster of the character) with an expansion magnification Q determined from a set common multiple (expansion bit number). The number of bits in the reading direction (character horizontal direction) is a multiple of eight. Moreover, since the gradation value added between the dots means that there is no recording, it is not recorded when the print engine 37 performs the recording process, and only original dots can be recorded.

(4)2値の文字データとして文字の横方向のビット数Nbと「8」との最小公倍数から定まる拡張倍率Qが、印刷エンジン37で処理可能な1ドットのビット数Kと一致する条件を満たすビット数Nbをもつ文字データCD1を採用した。よって、拡張ステップで拡張処理後のビット数として最小公倍数を採用でき、2値の文字データCD1から変換して生成した多値の文字データCD3を、極力小さなデータサイズに抑えることができる。   (4) The condition that the expansion ratio Q determined from the least common multiple of the horizontal number of bits Nb and “8” as binary character data matches the number of bits K of 1 dot that can be processed by the print engine 37 The character data CD1 having the bit number Nb to be satisfied was adopted. Therefore, the least common multiple can be adopted as the number of bits after the expansion process in the expansion step, and the multi-value character data CD3 generated by conversion from the binary character data CD1 can be suppressed to a small data size as much as possible.

(5)拡張処理を縦横変換処理の過程で実施したので、読出し書込回数を相対的に減らして、比較的高速にビットマップ生成処理を実行できる。
(6)パーソナルコンピュータ等を用いてビットマップ生成方法により生成した多値の文字データCD3を予めキャラクタジェネレータ35に記憶し、展開処理手段としてのイメージ生成部34が、キャラクタジェネレータ35から取得した多値の文字データを展開処理して印刷エンジン37に送出する構成を提供した。よって、印刷装置11の内部では、キャラクタジェネレータ35から取得した多値の文字データを展開処理するだけでよいので、印刷装置11内の処理を簡単に済ませられる。
(5) Since the expansion process is performed in the process of the vertical / horizontal conversion process, the number of read / write operations can be relatively reduced, and the bitmap generation process can be executed at a relatively high speed.
(6) The multi-value character data CD3 generated by the bitmap generation method using a personal computer or the like is stored in the character generator 35 in advance, and the multi-value acquired from the character generator 35 by the image generation unit 34 as the expansion processing means. The character data is expanded and sent to the print engine 37. Therefore, since only the multivalued character data acquired from the character generator 35 needs to be expanded in the printing apparatus 11, the processing in the printing apparatus 11 can be completed easily.

(7)印刷装置11内のキャラクタジェネレータ35に2値の文字データを記憶しておき、イメージ生成部34がキャラクタジェネレータ35から読み出された2値の文字データを基に、ビットマップ生成方法を用いて多値の文字データを生成する構成を提供した。よって、ドットインパクト用の文字データが格納されたキャラクタジェネレータ35をそのまま用いて、印刷装置11内でインクジェット用の多値の文字データを取得できる。   (7) Binary character data is stored in the character generator 35 in the printing apparatus 11, and the bitmap generation method is performed based on the binary character data read from the character generator 35 by the image generation unit 34. A configuration for generating multi-valued character data by using was provided. Therefore, it is possible to acquire inkjet multi-value character data in the printing apparatus 11 using the character generator 35 in which character data for dot impact is stored as it is.

(8)ASIC39は、本実施形態のビットマップ生成方法を実行するプログラムが作り込まれた電気回路部(集積回路部)を有する。このため、ASIC39を印刷装置11に内蔵することにより、2値の文字データが記憶されたキャラクタジェネレータ35を実装する印刷装置11内で、2値の文字データを多値の文字データに変換することが可能になる。   (8) The ASIC 39 includes an electric circuit unit (integrated circuit unit) in which a program for executing the bitmap generation method of the present embodiment is built. Therefore, by incorporating the ASIC 39 in the printing apparatus 11, the binary character data is converted into multi-valued character data in the printing apparatus 11 that implements the character generator 35 in which the binary character data is stored. Is possible.

なお、前記実施形態に限定されず、以下の形態も実施することもできる。
(変形例1)前記実施形態では、ドットインパクト用の文字データはノズル配列方向(インパクトワイヤ配列方向)のドット数(ビット数Nb)が36ドット(36ビット)であったが、これに限定されない。文字データにおけるノズル配列方向のドット数(ビット数Nb)の値は特に限定されない。ビット数Nbは、例えば28、52、76、100ビットなどでもよい。これらの場合、「8」との最小公倍数から定まる拡張倍率Qは、いずれも多値の文字データの1ドットを表現するビット数Kに等しく「2」であり、多値に変換した後の文字データの文字の横方向(読み出し方向)のバイト数は、それぞれ、「7」「13」「19」「25」となる。
In addition, it is not limited to the said embodiment, The following forms can also be implemented.
(Modification 1) In the above embodiment, the dot impact character data has 36 dots (36 bits) in the nozzle arrangement direction (impact wire arrangement direction) in the number of dots (bit number Nb). However, the present invention is not limited to this. . The number of dots (number of bits Nb) in the nozzle arrangement direction in the character data is not particularly limited. The number of bits Nb may be 28, 52, 76, 100 bits, for example. In these cases, the expansion magnification Q determined from the least common multiple of “8” is “2”, which is equal to the number K of bits representing one dot of the multi-value character data, and is the character after being converted to multi-value. The number of bytes in the horizontal direction (reading direction) of the data characters is “7”, “13”, “19”, and “25”, respectively.

(変形例2)前記実施形態では、ドットインパクト用の文字データを、処理対象の元データとしたが、処理対象はドットインパクト用の文字データに限定されない。要するに、印刷装置11の印刷エンジン37で処理可能な文字データとするために、縦横変換、左右反転、拡張処理(多値化処理)が必要となる2値の文字データであれば足りる。このような文字データであれば、元々適用されていた印刷装置の記録方式は特に限定されない。例えばレーザープリンタ用の文字データであっても構わない。   (Modification 2) In the above embodiment, the character data for dot impact is the original data to be processed, but the processing target is not limited to character data for dot impact. In short, binary character data that requires vertical / horizontal conversion, left / right reversal, and expansion processing (multi-value processing) is sufficient to obtain character data that can be processed by the print engine 37 of the printing apparatus 11. If it is such character data, the recording method of the printing apparatus originally applied is not particularly limited. For example, it may be character data for a laser printer.

(変形例3)左右反転ステップ、拡張ステップ、縦横変換ステップは、前記実施形態における順序に限定されず、適宜順序を変更できる。すなわち、これら各ステップは順不同に実施してよい。前記実施形態では、縦横変換処理と拡張処理を一緒に行ったが、読出・書込回数が増えはするものの、それぞれ個別の処理として実施してよい。この場合、例えば左右反転ステップをα、縦横変換ステップをβ、拡張ステップをγとすると、以下のいずれの順番も採用できる。(1番目,2番目,3番目)=(α,β,γ)、(α,γ,β)、(β,α,γ)、(β,γ,α)、(γ,α,β)、(γ,β,α)。また、拡張処理を左右反転処理の過程で行うこともできる。   (Modification 3) The horizontal reversal step, the expansion step, and the vertical / horizontal conversion step are not limited to the order in the embodiment, and the order can be changed as appropriate. That is, these steps may be performed in any order. In the above-described embodiment, the vertical / horizontal conversion process and the expansion process are performed together. However, although the number of times of reading / writing increases, they may be performed as individual processes. In this case, for example, if the horizontal reversal step is α, the vertical / horizontal conversion step is β, and the expansion step is γ, any of the following orders can be adopted. (First, second, third) = (α, β, γ), (α, γ, β), (β, α, γ), (β, γ, α), (γ, α, β) , (Γ, β, α). Further, the extension process can be performed in the process of the left-right reversal process.

(変形例4)前記実施形態では、印刷装置内でビットマップ生成処理を実施する構成として、ビットマップ生成装置をASIC39に電子回路部として内蔵し、キャラクタジェネレータ35から読み出した文字データCD1をASIC39内のイメージ生成部34がビットマップ生成処理を行う構成とした。これに替えて、キャラクタジェネレータ35内にビットマップ生成装置の電子回路部を組み込んで、キャラクタジェネレータ35からビットマップ生成処理後の多値の文字データを取得する構成も採用できる。   (Modification 4) In the above-described embodiment, as a configuration for performing the bitmap generation process in the printing apparatus, the bitmap generation apparatus is built in the ASIC 39 as an electronic circuit unit, and the character data CD1 read from the character generator 35 is stored in the ASIC 39. The image generation unit 34 performs a bitmap generation process. Instead, it is also possible to adopt a configuration in which the electronic circuit unit of the bitmap generation device is incorporated in the character generator 35 and multi-value character data after the bitmap generation processing is acquired from the character generator 35.

(変形例5)前記実施形態では、ASIC39内の電子回路部にビットマップ生成方法のプログラム(図5)を作り込むことでハードウェアにより実現したが、例えば印刷装置11内のCPUがビットマップ生成方法のプログラムを実行することでソフトウェアにより実現することもできる。さらにハードウェアとソフトウェアとの協働によりビットマップ生成装置を実現することもできる。   (Modification 5) In the above embodiment, the bit map generation method program (FIG. 5) is implemented in the electronic circuit unit in the ASIC 39 by hardware. However, for example, the CPU in the printing apparatus 11 generates the bit map. It can also be realized by software by executing the method program. Furthermore, a bitmap generation device can be realized by cooperation of hardware and software.

(変形例6)前記実施形態では、キャラクタジェネレータ35に格納された文字データ(フォントデータ)は、ビットマップフォントであったが、アウトラインフォントでもよい。例えばアウトラインフォントから既存のラスタライザにより生成したビットマップフォントを処理対象として、本発明のビットマップ生成方法を適用することもできる。   (Modification 6) In the above embodiment, the character data (font data) stored in the character generator 35 is a bitmap font, but it may be an outline font. For example, the bitmap generation method of the present invention can be applied to a bitmap font generated from an outline font by an existing rasterizer as a processing target.

(変形例7)前記実施形態では、印刷動作と紙送り動作を交互に行って印刷を行うシリアルプリンタに適用したが、シリアルプリンタに限定されない。ページプリンタに適用することもできる。この場合、レーザープリンタ、最大用紙幅の全域に渡りノズルを有するラインヘッド型の記録ヘッドを有するインクジェット式の印刷装置などに適用できる。   (Modification 7) In the above embodiment, the present invention is applied to a serial printer that performs printing by alternately performing a printing operation and a paper feeding operation. However, the present invention is not limited to a serial printer. It can also be applied to a page printer. In this case, the present invention can be applied to a laser printer, an ink jet printing apparatus having a line head type recording head having nozzles over the entire maximum sheet width.

以下、前記実施形態および各変形例から把握される技術的思想を記載する。
(1)前記文字データの解像度を前記印刷エンジンの印刷解像度に変換する解像度変換ステップを更に備えたことを特徴とする請求項1乃至5のいずれか一項に記載のビットマップ生成方法。これによれば、文字データの解像度を印刷エンジンの印刷解像度に合わせることができる。
Hereinafter, the technical idea grasped | ascertained from the said embodiment and each modification is described.
(1) The bitmap generation method according to any one of claims 1 to 5, further comprising a resolution conversion step of converting the resolution of the character data into a print resolution of the print engine. According to this, the resolution of the character data can be matched with the print resolution of the print engine.

(2)前記拡張手段において前記選択された公倍数は、該公倍数を文字の横方向のビット数で割った値である拡張倍率が前記印刷エンジンで処理可能な1ドットを表現するビット数に等しいことを特徴とする請求項8に記載のビットマップ生成装置。   (2) The common multiple selected in the expansion means is equal to the number of bits representing one dot that can be processed by the print engine, with an expansion ratio obtained by dividing the common multiple by the number of bits in the horizontal direction of the character. The bitmap generation device according to claim 8.

(3)前記多値化処理では、2値で表現された記録なしを意味する値を、多値で表現された記録なしを意味する値に変換するとともに、2値で表現された記録ありを意味する値を、多値で表現された記録ありを意味する値に変換することを特徴とする請求項1乃至4及び前記技術的思想(1)、(2)のうちいずれか一項に記載のビットマップ生成方法。   (3) In the multi-value processing, a value representing no record expressed in binary is converted into a value meaning no record expressed in multi-value, and there is a record expressed in binary The meaning value is converted into a value meaning that there is a recording expressed in multiple values, and the technical ideas (1) and (2) according to any one of claims 1 to 4, Bitmap generation method.

(4)前記縦横変換ステップと前記左右反転ステップは、読み出した文字データを読み出し位置と異なる位置へ書き込むことにより該当する縦横変換処理と左右反転処理をそれぞれ行い、前記拡張ステップは、前記縦横変換ステップと前記左右反転ステップのうち一方のステップにおいて読み出した文字データに対して書き込み前に拡張処理を施すことにより行われることを特徴とする請求項1乃至4、及び前記技術的思想(1)乃至(3)のうちいずれか一項に記載のビットマップ生成方法。   (4) The vertical / horizontal conversion step and the horizontal / horizontal reversal step perform the corresponding vertical / horizontal conversion processing and horizontal / horizontal reversal processing by writing the read character data in a position different from the read position, and the expansion step includes the vertical / horizontal conversion step. And the technical idea (1) to (5), wherein the character data read in one of the left and right reversing steps is subjected to an extension process before writing. The bitmap generation method according to any one of 3).

一実施形態における印刷装置の斜視図。1 is a perspective view of a printing apparatus according to an embodiment. 印刷装置の電気的構成を示すブロック図。FIG. 2 is a block diagram illustrating an electrical configuration of the printing apparatus. 印刷駆動回路の電気的構成を示すブロック図。FIG. 3 is a block diagram showing an electrical configuration of a print drive circuit. ビットマップ生成装置の電気的構成を示すブロック図。The block diagram which shows the electric constitution of a bitmap production | generation apparatus. ビットマップ生成処理を示すフローチャート。The flowchart which shows a bitmap production | generation process. (a)(b)2値の文字データを示すデータ図、(c)1バイトを示す模式図。(A) (b) Data diagram showing binary character data, (c) Schematic diagram showing 1 byte. (a)多値の文字データを示すデータ図、(b)多値化処理の説明図。(A) Data diagram showing multi-value character data, (b) Explanatory drawing of multi-value processing. 解像度変換処理の説明図。Explanatory drawing of a resolution conversion process. 展開処理を説明するデータ図。The data figure explaining an expansion | deployment process.

符号の説明Explanation of symbols

11…印刷装置、16…キャリッジモータ、17…記録ヘッド、18…ノズル、22…紙送りモータ、31…受信部、32…解釈部、33…制御部、34…展開処理手段としてのイメージ生成部、35…文字記憶部としてのキャラクタジェネレータ、36…イメージバッファ、37…印刷エンジン、38…印刷駆動回路、39…集積回路としてのASIC、45…吐出駆動素子、50…ビットマップ生成手段としてのビットマップ生成装置、51…主制御部、52…メモリ、53…演算部、54…左右反転部、55…縦横変換部、56…拡張処理部、J…公倍数、Nb…横ビット数としてのビット数、K…印刷エンジンで処理可能な1ドットを表現するビット数、Q…拡張倍率、CD1…2値の文字データ、CD3…多値の文字データ。   DESCRIPTION OF SYMBOLS 11 ... Printing apparatus, 16 ... Carriage motor, 17 ... Recording head, 18 ... Nozzle, 22 ... Paper feed motor, 31 ... Reception part, 32 ... Interpretation part, 33 ... Control part, 34 ... Image generation part as an expansion | deployment process means 35 ... Character generator as a character storage unit, 36 ... Image buffer, 37 ... Print engine, 38 ... Print drive circuit, 39 ... ASIC as an integrated circuit, 45 ... Discharge drive element, 50 ... Bit as bitmap generation means Map generation device 51 ... Main control unit 52 ... Memory 53 ... Calculation unit 54 ... Horizontal reversal unit 55 ... Vertical / horizontal conversion unit 56 ... Extended processing unit J ... Common multiple Nb ... Number of bits as horizontal bit number , K: the number of bits representing one dot that can be processed by the print engine, Q: expansion magnification, CD1, binary character data, CD3: multivalue character data.

Claims (8)

1ドットが2値で表現されるとともに文字の縦方向が、読み出し方向と一致する向きで配置されかつ文字が左右反転された2値のビットマップデータからなる文字データを基に、印刷装置が有する印刷エンジンで処理可能な多値のビットマップデータを生成するビットマップ生成方法であって、
前記文字データにおける文字の横方向のビット数である横ビット数と8との公倍数であってかつ該公倍数を該横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットの階調数を表現するビット数以上の値となる公倍数のうち最も小さい公倍数を選択し、1ドットを表現する2値を前記印刷エンジンで処理可能な1ドットの階調数を表現するビット数の多値に変換する多値化処理を行いつつ、前記文字の横方向のビット数が前記選択した公倍数に等しいビット数になるように前記文字データを文字の横方向に拡張する拡張処理を行う拡張ステップと、
前記文字の横方向が前記読み出し方向に一致する文字の向きとすべく前記文字データを90度回転させる縦横変換ステップと、
前記文字の左右を反転させる左右反転処理を前記文字データに施す左右反転ステップとを備え、
前記各ステップを順不同に行うことを特徴とするビットマップ生成方法。
The printing apparatus has character data composed of binary bitmap data in which one dot is expressed by binary values and the vertical direction of the characters is arranged in a direction that coincides with the reading direction and the characters are horizontally reversed. A bitmap generation method for generating multi-value bitmap data that can be processed by a print engine,
An expansion magnification that is a common multiple of the horizontal bit number that is the number of bits in the horizontal direction of the character in the character data and 8 and that is a value obtained by dividing the common multiple by the horizontal bit number is 1 that can be processed by the print engine. A bit that represents the number of gradations of one dot that can be processed by the print engine by selecting the smallest common multiple among the common multiples that are equal to or greater than the number of bits that represent the number of gradations of dots. An expansion process for expanding the character data in the horizontal direction of the character so that the number of bits in the horizontal direction of the character is equal to the selected common multiple while performing a multi-value conversion process for converting the number into a multi-value. Expansion steps to perform,
A vertical / horizontal conversion step of rotating the character data by 90 degrees so that the horizontal direction of the character is the direction of the character matching the reading direction;
A left-right reversing step for performing a left-right reversing process for reversing the left and right of the character on the character data,
A bitmap generation method, wherein the steps are performed in random order.
前記拡張ステップでは、前記選択された公倍数は、前記拡張倍率が、前記印刷エンジンで処理可能な1ドットを表現するビット数に等しくなることを満たすことを特徴とする請求項1に記載のビットマップ生成方法。   2. The bitmap according to claim 1, wherein in the expansion step, the selected common multiple satisfies that the expansion magnification is equal to the number of bits representing one dot that can be processed by the print engine. Generation method. 前記文字データは、前記横ビット数と8との最小公倍数を前記横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットのビット数と一致する条件を満たす横ビット数を有する2値の文字データであり、前記拡張ステップでは、前記選択された公倍数が最小公倍数であることを特徴とする請求項1又は2に記載のビットマップ生成方法。   The character data includes a horizontal bit that satisfies a condition that an expansion ratio, which is a value obtained by dividing the least common multiple of the horizontal bit number and 8 by the horizontal bit number, matches the number of bits of one dot that can be processed by the print engine. 3. The bitmap generation method according to claim 1, wherein the character data is binary character data having a number, and in the expansion step, the selected common multiple is a least common multiple. 4. 前記拡張ステップでは、前記選択された公倍数を前記横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットのビット数に2以上の自然数を乗じた値である場合は、前記拡張処理において、前記多値化処理によって前記文字の横方向に多値表現で配列されるドット間に相当する位置に記録なしを意味するドットの階調値を追加する処理が行われることを特徴とする請求項1に記載のビットマップ生成方法。   In the expansion step, when the expansion magnification that is a value obtained by dividing the selected common multiple by the number of horizontal bits is a value obtained by multiplying the number of bits of 1 dot that can be processed by the print engine by a natural number of 2 or more. In the expansion process, a process of adding a tone value of a dot meaning no recording is performed at a position corresponding to a position between dots arranged in a multi-value expression in the horizontal direction of the character by the multi-value process. The bitmap generation method according to claim 1, wherein: 印刷エンジンと、該印刷エンジンが処理可能であるとともに請求項1乃至4のいずれか一項に記載のビットマップ生成方法を用いて生成された多値の文字データを記憶する文字記憶部と、前記文字記憶部から前記多値の文字データを読み出して展開処理して前記印刷エンジンに送出する展開処理手段とを備えたことを特徴とする印刷装置。   A character storage unit that stores the multi-value character data that can be processed by the print engine and that is generated by using the bitmap generation method according to any one of claims 1 to 4; A printing apparatus, comprising: expansion processing means for reading out the multi-value character data from a character storage unit, performing expansion processing, and sending the expanded data to the print engine. 印刷エンジンと、前記2値の文字データを記憶する文字記憶部と、前記文字記憶部から前記文字データを読み出すとともに請求項1乃至4のいずれか一項に記載のビットマップ生成方法を用いて前記2値の文字データから前記印刷エンジンが処理可能な多値の文字データを生成するとともに該多値の文字データを展開して前記印刷エンジンに送出するビットマップ生成手段とを備えたことを特徴とする印刷装置。   5. The print engine, a character storage unit that stores the binary character data, the character data is read from the character storage unit, and the bitmap generation method according to claim 1 is used. And a bitmap generation unit that generates multi-value character data that can be processed by the print engine from binary character data, and that develops the multi-value character data and sends it to the print engine. Printing device to do. 請求項1乃至4のいずれか一項に記載のビットマップ生成方法を実行するプログラムが形成された電気回路部を有することを特徴とする集積回路。   5. An integrated circuit, comprising: an electric circuit portion in which a program for executing the bitmap generation method according to claim 1 is formed. 1ドットが2値で表現されるとともに文字の縦方向が、読み出し方向と一致する向きで配置されかつ文字が左右反転された2値のビットマップデータからなる文字データを基に、印刷装置が有する印刷エンジンで処理可能な多値のビットマップデータを生成するビットマップ生成装置であって、
前記文字データにおける文字の横方向のビット数である横ビット数と8との公倍数であってかつ該公倍数を該横ビット数で割った値である拡張倍率が、前記印刷エンジンで処理可能な1ドットの階調数を表現するビット数以上の値となる公倍数のうち最も小さい公倍数を選択し、1ドットを表現する2値を前記印刷エンジンで処理可能な1ドットの階調数を表現するビット数の多値に変換する多値化処理を行いつつ、前記文字の横方向のビット数が前記選択した公倍数に等しいビット数になるように前記文字データを文字の横方向に拡張する拡張処理を行う拡張手段と、
前記文字の横方向が前記読み出し方向に一致する文字の向きとすべく前記文字データを90度回転させる縦横変換手段と、
前記文字の左右を反転させる左右反転処理を前記文字データに施す左右反転手段と
を備えたことを特徴とするビットマップ生成装置。
The printing apparatus has character data composed of binary bitmap data in which one dot is expressed by binary values and the vertical direction of the characters is arranged in a direction that coincides with the reading direction and the characters are horizontally reversed. A bitmap generation device that generates multi-value bitmap data that can be processed by a print engine,
An expansion magnification that is a common multiple of the horizontal bit number that is the number of bits in the horizontal direction of the character in the character data and 8 and that is a value obtained by dividing the common multiple by the horizontal bit number is 1 that can be processed by the print engine. A bit that represents the number of gradations of one dot that can be processed by the print engine by selecting the smallest common multiple among the common multiples that are equal to or greater than the number of bits that represent the number of gradations of dots. An expansion process for expanding the character data in the horizontal direction of the character so that the number of bits in the horizontal direction of the character is equal to the selected common multiple while performing a multi-value conversion process for converting the number into a multi-value. Expansion means to perform,
Vertical / horizontal conversion means for rotating the character data by 90 degrees so that the horizontal direction of the characters corresponds to the direction of the characters matching the reading direction;
A bit map generating apparatus comprising: a left / right reversing unit that performs left / right reversing processing for reversing the left / right of the character on the character data.
JP2006256168A 2006-09-21 2006-09-21 Bitmap generation method, printing apparatus, integrated circuit, and bitmap generation apparatus Expired - Fee Related JP4946303B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006256168A JP4946303B2 (en) 2006-09-21 2006-09-21 Bitmap generation method, printing apparatus, integrated circuit, and bitmap generation apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006256168A JP4946303B2 (en) 2006-09-21 2006-09-21 Bitmap generation method, printing apparatus, integrated circuit, and bitmap generation apparatus

Publications (2)

Publication Number Publication Date
JP2008073960A JP2008073960A (en) 2008-04-03
JP4946303B2 true JP4946303B2 (en) 2012-06-06

Family

ID=39346517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006256168A Expired - Fee Related JP4946303B2 (en) 2006-09-21 2006-09-21 Bitmap generation method, printing apparatus, integrated circuit, and bitmap generation apparatus

Country Status (1)

Country Link
JP (1) JP4946303B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0825313B2 (en) * 1987-04-09 1996-03-13 セイコーエプソン株式会社 Print control device
DE69733915T2 (en) * 1996-04-23 2006-03-02 Canon K.K. Recording device and recording method
JP2002240370A (en) * 2001-02-22 2002-08-28 Canon Inc Recording apparatus and data converting method therein
JP4373630B2 (en) * 2001-09-17 2009-11-25 セイコーエプソン株式会社 Dot printer

Also Published As

Publication number Publication date
JP2008073960A (en) 2008-04-03

Similar Documents

Publication Publication Date Title
JP2005169754A (en) Ink jet recorder and ink jet recording method
JP2005313570A (en) Recorder and recording method
JP4386531B2 (en) Printing with different color materials
JP4784106B2 (en) Droplet discharge head and image recording apparatus
JP3634355B2 (en) Liquid ejector
JP4946303B2 (en) Bitmap generation method, printing apparatus, integrated circuit, and bitmap generation apparatus
JP2001315324A (en) Ink jet recorder
JP2006116975A (en) Printing system for continuous printing
JP2006341534A (en) Recorder
JP2010155470A (en) Inkjet printer
JP2005081565A (en) Liquid injection apparatus
JP4048677B2 (en) Printing that changes the number of nozzles used according to printing conditions
JP5194341B2 (en) Recording device
JP2006247843A (en) Recording apparatus
JP2007131012A (en) Recording apparatus
JP5125642B2 (en) Liquid ejector
JP3562409B2 (en) Position shift adjustment in printing using multiple types of drive signals
JP3837975B2 (en) Print processing using multiple types of drive signals
JP2009292102A (en) Recording device and its method
JP4622456B2 (en) Print control apparatus, print control method, and computer-readable recording medium
JP2004066821A (en) Ink jet recording device, ink jet recording method, and program
JP2002240370A (en) Recording apparatus and data converting method therein
JP5960104B2 (en) Image processing apparatus and image processing method
JP2015063144A (en) Printing to surface layer of data recording medium
JP2013101747A (en) Printing to surface layer of data recording medium

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20090728

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090811

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20090811

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120207

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120220

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150316

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees