JPH09134423A - Character output device - Google Patents

Character output device

Info

Publication number
JPH09134423A
JPH09134423A JP7317161A JP31716195A JPH09134423A JP H09134423 A JPH09134423 A JP H09134423A JP 7317161 A JP7317161 A JP 7317161A JP 31716195 A JP31716195 A JP 31716195A JP H09134423 A JPH09134423 A JP H09134423A
Authority
JP
Japan
Prior art keywords
image
bitmap data
basic
character
size
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7317161A
Other languages
Japanese (ja)
Inventor
Atsuhiko Kurachi
敦彦 倉知
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP7317161A priority Critical patent/JPH09134423A/en
Publication of JPH09134423A publication Critical patent/JPH09134423A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To more beautifully output the bit map images of various kinds of characters without enlarging data storage quantity so much by setting the bit map image which is smaller than a maximum size of bit map images as a basic size image and providing a bit map data synthesis means, etc. SOLUTION: The bit map image which is smaller than a maximum size of bit map images is set as a basic size image 20. The bit map data (enlarged bit map data) 32 of the enlarged basic image 25 obtained by enlarging the basic size image 20 to a designated size and correction bit map data 31 are synthesized by the synthesizing method which is preliminarily fixed by a bit map data synthesis means and the bit map data is defined as the bit map data 33 of the final image 26 of a character. Based on the bit map data 33, the final image 26 of the character is outputted from an image output means.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、キャラクタのイメ
ージを、画素のオン/オフの情報で表したビットマップ
イメージとして出力するキャラクタ出力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character output device for outputting a character image as a bit map image represented by pixel on / off information.

【0002】[0002]

【従来の技術】従来、プリンタやディスプレイなどのキ
ャラクタ出力装置においては、各キャラクタのイメージ
データとして、マトリックス状に配置された各画素のオ
ン/オフ情報の集合として表すビットマップデータを使
用するものが広く知られている。
2. Description of the Related Art Conventionally, a character output device such as a printer or a display uses bitmap data represented as a set of ON / OFF information of each pixel arranged in a matrix as image data of each character. Widely known.

【0003】[0003]

【発明が解決しようとする課題】上記キャラクタ出力装
置において、ビットマップデータに基づくキャラクタの
イメージ(以下、ビットマップイメージという)を各種
サイズで出力したい場合、特定サイズのビットマップイ
メージを所望のサイズに単純に拡大ないし縮小して出力
すると、得られるビットマップイメージの輪郭部分にギ
ザギザ(ジャギー)が生じて、イメージの品質が損なわ
れる問題がある。従って、ジャギーのない美しいビット
マップイメージを複数サイズにより出力したい場合に
は、キャラクタの各サイズ毎に別々のビットマップデー
タを記憶しておかなければならず、データ記憶量が肥大
化する問題がある。
In the above character output device, when it is desired to output a character image based on bitmap data (hereinafter referred to as a bitmap image) in various sizes, the bitmap image of a specific size is set to a desired size. If the image is simply enlarged or reduced and output, there is a problem that jagged edges (jaggies) occur in the outline portion of the obtained bitmap image, and the image quality is impaired. Therefore, when a beautiful bitmap image without jaggies is to be output in a plurality of sizes, it is necessary to store separate bitmap data for each character size, which causes a problem in that the amount of data storage increases. .

【0004】本発明の課題は、データ記憶量をそれほど
肥大させることなく、各種キャラクタのビットマップイ
メージを複数サイズで美しく出力することができるキャ
ラクタ出力装置を提供することにある。
An object of the present invention is to provide a character output device capable of beautifully outputting bitmap images of various characters in a plurality of sizes without enlarging the amount of data storage.

【0005】[0005]

【課題を解決するための手段及び作用・効果】本発明
は、複数サイズのキャラクタのイメージを、画素のオン
/オフの情報で表したビットマップイメージとして出力
するキャラクタ出力装置に係るものであり、上述の課題
を解決するために、上記複数サイズのビットマップイメ
ージのうち、最大サイズのものよりも小さい所定のもの
が基本サイズイメージとして設定されるとともに、下記
の要件を備えて構成されることを特徴とする。 基本ビットマップデータ記憶手段:基本サイズイメー
ジのビットマップデータ(基本ビットマップデータ)を
記憶する。 拡大ビットマップデータ生成手段:基本サイズイメー
ジを指定されたサイズに拡大した場合の、その拡大され
た基本サイズイメージ(拡大基本イメージ)のビットマ
ップデータを、基本ビットマップデータに基づいて生成
する。 補正ビットマップデータ記憶手段:上記複数サイズの
うち、基本サイズよりも大きいものにそれぞれ対応して
設けられ、予め定められた方法に従い拡大基本イメージ
と合成されることにより、そのサイズにおいて最終的に
出力させるべきビットマップイメージ(最終イメージ)
を形成する補正ビットマップデータを記憶する。 ビットマップデータ合成手段:指定されたサイズにお
いて、拡大基本イメージのビットマップデータと対応す
る補正ビットマップデータとを合成する。 イメージ出力手段:その合成されたビットマップデー
タに基づいて、上記指定されたサイズの最終イメージを
出力する。
SUMMARY OF THE INVENTION The present invention relates to a character output device for outputting a character image of a plurality of sizes as a bit map image represented by pixel on / off information, In order to solve the above-mentioned problems, a predetermined one smaller than the maximum size of the bitmap images of the plurality of sizes is set as a basic size image, and is configured with the following requirements. Characterize. Basic bitmap data storage means: Stores basic size image bitmap data (basic bitmap data). Enlarged bitmap data generating means: Generates bitmap data of the enlarged basic size image (enlarged basic image) when the basic size image is enlarged to a specified size, based on the basic bitmap data. Corrected bitmap data storage means: Provided corresponding to each of the plurality of sizes larger than the basic size, and finally output in that size by combining with the enlarged basic image according to a predetermined method. Bitmap image to be made (final image)
The corrected bitmap data that forms Bitmap data synthesizing means: synthesizes the bitmap data of the enlarged basic image and the corresponding corrected bitmap data in the designated size. Image output means: Outputs the final image of the designated size based on the combined bitmap data.

【0006】すなわち、上記構成のキャラクタ出力装置
においては、基本サイズイメージを所望のサイズに拡大
して得られる拡大基本イメージのビットマップデータ
と、そのサイズに対応して用意された補正ビットマップ
データとを所定の方法により合成し、その合成データに
より該サイズの最終イメージが出力されるようになって
いるので、各種サイズにおいて美しいビットマップイメ
ージが得られる。また、各サイズ毎に用意されるデータ
は、拡大基本イメージとの合成を前提とした補正ビット
マップデータであるので、サイズ毎に完全なビットマッ
プデータを用意する構成に比べてデータ記憶量を削減で
きる利点を有する。
That is, in the character output device having the above-mentioned configuration, the bitmap data of the enlarged basic image obtained by enlarging the basic size image to a desired size, and the corrected bitmap data prepared corresponding to the size. Is synthesized by a predetermined method, and the final image of the size is output by the synthesized data, so that a beautiful bitmap image can be obtained in various sizes. In addition, the data prepared for each size is corrected bitmap data that is premised on composition with the enlarged basic image, so the amount of data storage is reduced compared to the configuration in which complete bitmap data is prepared for each size. It has the advantage that it can.

【0007】また、基本ビットマップデータ及び補正ビ
ットマップデータの、その少なくともいずれかが圧縮さ
れた状態で記憶されるように構成することができる。こ
の場合、その圧縮された基本ビットマップデータないし
補正ビットマップデータを、圧縮前の状態に復元する圧
縮解除手段とを設けることができる。この場合、基本ビ
ットマップデータ記憶手段ないし補正ビットマップデー
タ記憶手段は、その圧縮された基本ビットマップデータ
ないし補正ビットマップデータを記憶するものとされ
る。こうすればデータ記憶量をさらに少なくすることが
できる。なお、基本ビットマップデータ及び補正ビット
マップデータの少なくともいずれかを圧縮するデータ圧
縮手段を付加することもできる。
Further, at least one of the basic bitmap data and the corrected bitmap data can be stored in a compressed state. In this case, it is possible to provide a decompression means for restoring the compressed basic bitmap data or corrected bitmap data to the state before compression. In this case, the basic bitmap data storage means or the corrected bitmap data storage means stores the compressed basic bitmap data or the corrected bitmap data. In this way, the data storage amount can be further reduced. A data compression means for compressing at least one of the basic bitmap data and the corrected bitmap data may be added.

【0008】ここで、基本サイズイメージの拡大方法
を、キャラクタの種類と対応付けて複数設定することが
できる。この場合、拡大ビットマップデータ生成手段
は、指定されたキャラクタに対し、それら複数の拡大方
法のうち該キャラクタに対応する方法によりその基本サ
イズイメージを拡大して、その拡大基本イメージのビッ
トマップデータを生成するものとされる。このように構
成すれば、キャラクタの種類に適合した拡大方法を適宜
選択できるので、出力イメージの品質の向上をさせた
り、あるいは補正ビットマップデータの量を減らすこと
ができる等の利点がある。
Here, a plurality of basic size image enlarging methods can be set in association with the character type. In this case, the enlarged bitmap data generation means enlarges the basic size image of the designated character by a method corresponding to the character among the plurality of enlargement methods, and obtains the bitmap data of the enlarged basic image. It is supposed to be generated. According to this structure, an enlarging method suitable for the type of character can be selected as appropriate, so that there is an advantage that the quality of the output image can be improved or the amount of correction bitmap data can be reduced.

【0009】具体的には上記複数の拡大方法は、基本サ
イズイメージの拡大に際して、そのビットマップイメー
ジの輪郭部分を平滑化する処理(スムージング処理)を
行う第一の方法と、該スムージング処理を行わない第二
の方法とを含むものとすることができる。そして、これ
ら第一及び第二の方法のいずれかが、キャラクタの種類
に応じて選択されることとなる。すなわち、輪郭部分が
平滑化された高品質の最終イメージを出力することを前
提とした場合、基本サイズイメージの拡大時にスムージ
ング処理を施し、そのスムージング処理された拡大基本
イメージ側に輪郭部分の平滑化機能を主に持たせるよう
にする方式(第一の方法に対応)と、拡大時にはスムー
ジング処理を施さず、輪郭部分の平滑化機能を主として
補正ビットマップデータの側に持たせる方式(第二の方
法に対応)の2方式が可能である。そして、それら2方
式のうち、その補正ビットマップデータのデータ量がよ
り少なくなる方の方式をキャラクタ毎に選択して設定す
ることにより、補正ビットマップデータの量を効果的に
削減することができる。
Specifically, the plurality of enlargement methods include a first method for smoothing the outline portion of the bitmap image (smoothing processing) when enlarging the basic size image, and the smoothing processing. And a second method not included. Then, one of these first and second methods will be selected according to the type of character. That is, if it is assumed that a high-quality final image in which the contour portion is smoothed is output, smoothing processing is performed when the basic size image is enlarged, and the contour portion is smoothed on the smoothed enlarged basic image side. A method that mainly provides the function (corresponding to the first method) and a method that does not perform the smoothing process at the time of enlargement and that has the smoothing function of the contour portion mainly on the side of the correction bitmap data (the second method). (Corresponding to the method) is possible. The amount of the correction bitmap data can be effectively reduced by selecting and setting, for each character, one of the two systems, whichever has the smaller amount of the correction bitmap data. .

【0010】また、拡大基本イメージのビットマップデ
ータと補正ビットマップデータとを合成する合成方法
を、キャラクタの種類と対応付けて複数設定することが
できる。この場合、ビットマップデータ合成手段は、指
定されたキャラクタの拡大基本イメージのビットマップ
データと対応する補正ビットマップデータとを、それら
複数の合成方法のうち該キャラクタに対応する方法によ
り合成するものとされる。すなわち、キャラクタ毎に最
適の合成方法を考慮することにより、補正ビットマップ
データの量を効果的に削減することができる。
Further, a plurality of synthesizing methods for synthesizing the bitmap data of the enlarged basic image and the corrected bitmap data can be set in association with the character type. In this case, the bitmap data synthesizing means synthesizes the bitmap data of the enlarged basic image of the designated character and the corresponding correction bitmap data by a method corresponding to the character among the plurality of synthesizing methods. To be done. That is, it is possible to effectively reduce the amount of correction bitmap data by considering the optimal combining method for each character.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施の形態を、実
施例を参照しつつ図面に基づいて説明する。図1は、本
発明のキャラクタ出力装置の一構成例を示すブロック図
である。すなわち、キャラクタ出力装置1は、I/Oポ
ート4と、これに接続されたCPU5、ROM6、RA
M7等を含むコンピュータ本体2及びそのコンピュータ
本体2に接続されたディスク記憶装置8等を備える。ま
た、I/Oポート4には、イメージ出力手段としてのプ
リンタ3が接続されている。さらにI/Oポート4に
は、キーボード等の入力部9及び表示制御部10が接続
されており、表示制御部10にはCRTや液晶ディスプ
レイ等のモニタ11が接続されている。なお、上記CP
U5が拡大ビットマップデータ生成手段、ビットマップ
データ合成手段及び圧縮解除手段の主体をなす。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings and with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of a character output device of the present invention. That is, the character output device 1 includes the I / O port 4, the CPU 5, the ROM 6, and the RA connected to the I / O port 4.
The computer main body 2 including the M7 and the like, and the disk storage device 8 and the like connected to the computer main body 2 are provided. Further, the I / O port 4 is connected to the printer 3 as an image output means. Furthermore, an input unit 9 such as a keyboard and a display control unit 10 are connected to the I / O port 4, and a monitor 11 such as a CRT or a liquid crystal display is connected to the display control unit 10. The above CP
U5 is the main body of the expanded bitmap data generation means, the bitmap data synthesis means and the decompression means.

【0012】コンピュータ本体2のROM6には出力制
御プログラム記憶部6aが形成されており、ここに本実
施例で以下に説明するデータ出力処理を司るための出力
制御プログラムが記憶されている。また、RAM7に
は、ワークメモリ7a、テキストメモリ7b、イメージ
メモリ7f等が形成されている。ワークメモリ7aは、
CPU5がプログラムを実行する際に、必要なデータを
一時的に記憶するのに使用される。また、テキストメモ
リ7bは、入力部9から入力されたキャラクタのコード
やサイズ、及びキャラクタの回転や斜体あるいは上付き
・下付き文字などのキャラクタ修飾情報を記憶するため
のものである。
An output control program storage unit 6a is formed in the ROM 6 of the computer main body 2, and an output control program for controlling the data output processing described below in this embodiment is stored therein. Further, the RAM 7 is formed with a work memory 7a, a text memory 7b, an image memory 7f and the like. The work memory 7a is
It is used to temporarily store necessary data when the CPU 5 executes a program. The text memory 7b is for storing the character code and size input from the input unit 9 and the character modification information such as the character rotation, italics, and superscript / subscript.

【0013】一方、ディスク記憶装置8はハードディス
ク装置あるいは光磁気ディスク装置等で構成され、ここ
にキャラクタ記憶部8aが形成されている。キャラクタ
記憶部8aには、各種書体の文字や記号等の多数のキャ
ラクタに一対一に対応するキャラクタデータが、1キャ
ラクタ単位でランダムに読出し可能に記憶されている。
このディスク記憶装置8が、基本ビットマップデータ記
憶手段及び補正ビットマップデータ記憶手段を構成す
る。
On the other hand, the disk storage device 8 is composed of a hard disk device, a magneto-optical disk device or the like, and a character storage portion 8a is formed therein. In the character storage unit 8a, character data corresponding to a large number of characters such as characters and symbols of various typefaces in a one-to-one correspondence is stored so as to be randomly read in units of one character.
The disk storage device 8 constitutes a basic bitmap data storage means and a correction bitmap data storage means.

【0014】図2に示すように、キャラクタ記憶部8a
には、キャラクタ管理情報記憶部8bと圧縮ビットマッ
プデータ記憶部8cとが形成されている。キャラクタ管
理情報記憶部8b内には、各キャラクタのコードを格納
するコード格納エリアA1と、そのコードに対応する各
サイズのビットマップデータの管理情報を格納する管理
情報格納エリアA2が形成されている。ここで、管理情
報格納エリアA2には、各キャラクタの基本サイズイメ
ージ(後述)のビットマップデータを特定するための基
本パターンインデックス、キャラクタの各サイズに対応
する補正ビットマップデータ(後述)を特定するための
補正パターンインデックス、及び拡大方法フラグ及び合
成方法フラグが格納されている。一方、圧縮ビットマッ
プデータ記憶部8cには、各キャラクタの基本パターン
インデックスに対応する圧縮基本ビットマップデータ、
及び補正パターンインデックスに対応する圧縮補正ビッ
トマップデータが記憶されている。ここで、基本パター
ンインデックス及び補正パターンインデックスは、それ
ぞれ対応する圧縮ビットマップデータの格納エリアの番
地情報等で構成することができる。
As shown in FIG. 2, the character storage unit 8a.
A character management information storage unit 8b and a compressed bitmap data storage unit 8c are formed in the. In the character management information storage section 8b, a code storage area A1 for storing a code of each character and a management information storage area A2 for storing management information of bitmap data of each size corresponding to the code are formed. . Here, in the management information storage area A2, a basic pattern index for specifying bitmap data of a basic size image (described later) of each character, and corrected bitmap data (described later) corresponding to each size of the character are specified. A correction pattern index for, an enlargement method flag, and a combination method flag are stored. On the other hand, the compressed bitmap data storage unit 8c stores compressed basic bitmap data corresponding to the basic pattern index of each character,
Also, compression correction bitmap data corresponding to the correction pattern index is stored. Here, the basic pattern index and the correction pattern index can be configured by the address information of the storage area of the corresponding compressed bitmap data, or the like.

【0015】圧縮基本ビットマップデータは、例えば図
3に示すような、予め定められた基本サイズ(例えば最
小サイズ)のキャラクタのイメージ(基本サイズイメー
ジ)20のビットマップデータを、所定の方法で圧縮し
て得られるものである。その圧縮方法としては、例えば
図4に示すように、ビットマップデータのマトリックス
配列を所定の方向(例えばX方向)にスキャンした場合
に、そのオン状態の画素22とオフ状態の画素23の各
々の連続個数を、そのスキャン順に記憶することにより
データ圧縮を行う、いわゆるランレングス法を例示する
ことができる。
The compressed basic bitmap data is obtained by compressing bitmap data of a character image (basic size image) 20 having a predetermined basic size (for example, a minimum size) 20 as shown in FIG. 3 by a predetermined method. It is obtained by doing. As a compression method, for example, as shown in FIG. 4, when a matrix array of bitmap data is scanned in a predetermined direction (for example, the X direction), each of the pixel 22 in the ON state and the pixel 23 in the OFF state is scanned. It is possible to exemplify a so-called run length method in which data is compressed by storing the continuous number in the scan order.

【0016】一方、図5に示すように、スキャンされた
データを所定のビット数(本実施例では4ビット)ずつ
のビット列A〜D等に区切り、それら列毎のビットデー
タの組合せ(以下、ビットパターンという)を解析して
データ圧縮を行う方法を採用することもできる。例え
ば、同図(a)に示す方法は、同じビットパターンのビ
ット列が連続する場合には、最初のビット列のデータは
そのまま記憶し、以降のビット列を繰返し符号(本実施
例では「0」)で置き換えることにより、データの圧縮
を行うものである。一方、(b)に示す方法では、ビッ
トパターンを分類し、同じパターンを有するビット列に
は同じ分類符号を付与して、データの圧縮を行うように
なっている。(a)、(b)いずれの方法においても、
繰返し符号あるいは分類符号を各ビット列よりも少ない
ビット数のデータで構成することにより、データ量を減
少させる原理に基づいている。また、(c)に示すよう
に、分類されたビットパターンのそれぞれの出現頻度を
分析し、頻度の高いものほどビット数の少ない分類符号
を付与することで、データの圧縮率をさらに高めること
ができる。
On the other hand, as shown in FIG. 5, the scanned data is divided into bit strings A to D etc. each having a predetermined number of bits (4 bits in this embodiment), and a combination of bit data for each of these columns (hereinafter, It is also possible to adopt a method of analyzing data (referred to as a bit pattern) and performing data compression. For example, in the method shown in FIG. 7A, when the bit strings of the same bit pattern are continuous, the data of the first bit string is stored as it is, and the subsequent bit strings are stored with the repetition code (“0” in this embodiment). By replacing the data, the data is compressed. On the other hand, in the method shown in (b), the bit patterns are classified, and the same classification code is given to the bit strings having the same pattern to compress the data. In any of the methods (a) and (b),
It is based on the principle of reducing the amount of data by constructing the repetitive code or the classification code with data having a smaller number of bits than each bit string. Further, as shown in (c), the appearance frequency of each of the classified bit patterns is analyzed, and a classification code having a smaller number of bits is assigned to the one having a higher frequency, whereby the data compression rate can be further increased. it can.

【0017】次に、圧縮補正ビットマップデータは、各
キャラクタの基本サイズよりも大きい所定のサイズ毎に
用意されている。図6に模式的に示すように、補正ビッ
トマップデータ31は、基本サイズイメージ20を指定
のサイズに拡大して得られる拡大基本イメージ25のビ
ットマップデータ(拡大ビットマップデータ)32と、
予め定められた合成方法により合成されて最終イメージ
26のビットマップデータ33を形成するものであり、
圧縮補正ビットマップデータは、上記したものと同様の
方法によりこれを圧縮したものである。なお、これら圧
縮基本ビットマップデータ及び圧縮補正ビットマップデ
ータは、その圧縮方法に対応した圧縮解除方法により圧
縮前の状態に展開して使用される。
Next, the compressed correction bitmap data is prepared for each predetermined size larger than the basic size of each character. As schematically shown in FIG. 6, the corrected bitmap data 31 includes bitmap data (enlarged bitmap data) 32 of an enlarged basic image 25 obtained by enlarging the basic size image 20 to a designated size.
Is to be combined by a predetermined combining method to form the bitmap data 33 of the final image 26,
The compressed correction bitmap data is obtained by compressing the compressed data by the same method as described above. The compressed basic bitmap data and the compressed correction bitmap data are used after being expanded to a state before compression by a decompression method corresponding to the compression method.

【0018】基本サイズイメージ20の拡大方法は、前
述の拡大方法フラグ(図2)によりキャラクタ毎に予め
定められている。本実施例においては、拡大方法フラグ
の値が「1」である場合は、基本サイズイメージ20を
単純に拡大するモードが指定され、同じく「2」である
場合は、基本サイズイメージ20を拡大した後、その輪
郭部分にスムージング処理を施すモードが指定されるも
のとする。また、拡大方法フラグの値が「0」である場
合は、拡大を行わないことを意味するものとする。
The enlargement method of the basic size image 20 is predetermined for each character by the enlargement method flag (FIG. 2) described above. In the present embodiment, when the value of the enlargement method flag is "1", the mode for simply enlarging the basic size image 20 is designated, and when it is "2", the basic size image 20 is enlarged. After that, a mode for performing the smoothing process on the contour portion is specified. When the value of the enlargement method flag is “0”, it means that enlargement is not performed.

【0019】上記スムージング処理は、各種公知の方
法、例えば特公平2−52274号公報あるいは特公昭
60−49314号公報等に開示されている方法を使用
することができる。図7は、特公平2−52274号公
報に開示されている方法を示しており、まず基本サイズ
イメージ20を単純に拡大して得られる画素パターン
を、3×3=9個のセルからなる部分マトリックス50
により順次サンプリングする。そして、画素のオン及び
オフ状態のいずれか一方を第一状態とし、他方を第二状
態とするとともに、その部分マトリックス50の中心に
位置する中心画素51を囲む他の8つの画素のうち、少
なくともそのマトリックスの2辺部を構成する画素52
がすべて第一状態のときは中心画素51を第二状態と
し、それ以外の場合は画素の状態を変更しない処理を行
う。
For the smoothing treatment, various known methods such as those disclosed in Japanese Examined Patent Publication No. 2-52274 or Japanese Examined Patent Publication No. 60-49314 can be used. FIG. 7 shows a method disclosed in Japanese Examined Patent Publication No. 52274/1990. First, a pixel pattern obtained by simply enlarging the basic size image 20 is a portion composed of 3 × 3 = 9 cells. Matrix 50
Sequentially sample by. Then, one of the on and off states of the pixel is set to the first state, the other is set to the second state, and at least the other eight pixels surrounding the central pixel 51 located at the center of the partial matrix 50 are at least Pixels 52 forming the two sides of the matrix
Is in the first state, the central pixel 51 is in the second state, and in other cases, the process of not changing the state of the pixel is performed.

【0020】また、図8は、特公昭60−49314号
公報に開示されている方法を示している。すなわち、画
素のオン及びオフ状態のいずれかを第一状態とし、他方
を第二状態とするとともに、第一状態に設定された任意
の画素61と隣接して互いに直交する縦横2本の画素列
の組のいずれかにおいて、同図(a)に示すように、そ
の交点を形成する画素64に対し、上記第一状態の画素
61側へ連なる部分62及び63が、3以上の連続した
第二状態の画素となっている場合には、その第一状態の
画素61を第一状態のままとし、同図(b)及び(c)
に示すように、部分62及び63のいずれか一方が1つ
の又は連続する2つの第二状態の画素となっている場合
には、その第一状態の画素61を第二状態に反転させる
処理が行われる。
FIG. 8 shows the method disclosed in Japanese Patent Publication No. 60-49314. That is, one of the on and off states of the pixel is set to the first state, the other is set to the second state, and two vertical and horizontal pixel rows that are adjacent to any pixel 61 set to the first state and are orthogonal to each other. In any one of the groups, as shown in (a) of the same figure, with respect to the pixel 64 forming the intersection, the portions 62 and 63 connected to the pixel 61 side in the first state are three or more continuous second In the case of the pixel in the state, the pixel 61 in the first state is left in the first state, and the pixels (b) and (c) in FIG.
As shown in, when either one of the portions 62 and 63 is one or two consecutive pixels in the second state, the process of inverting the pixel 61 in the first state to the second state is performed. Done.

【0021】なお、上述のような複数のスムージング処
理のいずれかを、キャラクタの種類に応じて適宜選択し
て実施したり、あるいは2以上のスムージング処理を組
み合わせて実施することも可能である。
It should be noted that any one of the plurality of smoothing processes as described above may be appropriately selected and executed according to the type of character, or two or more smoothing processes may be combined and executed.

【0022】次に、補正ビットマップデータと拡大ビッ
トマップデータとの合成方法であるが、両ビットマップ
データを、互いの画素が一対一に対応する画素マトリッ
クスを用いて構築するとともに、合成前の対応する画素
同士のオン/オフ状態のすべての組合せに対して、合成
後のその画素の状態を与える変換テーブルをROM6
(図1)の変換テーブル記憶部6cに記憶しておき、そ
の変換テーブルに従って合成ビットマップデータを作成
する方法を例示することができる。この場合、その変換
テーブルは、図9に示すように複数記憶され、合成方法
フラグの値に応じて対応するものが選択されるようにな
っている。すなわち、画素のオン状態に「1」を対応さ
せ、オフ状態に「0」を対応させるとともに、拡大ビッ
トマップデータ側の画素の状態を変数Eで、補正ビット
マップデータ側の画素の状態を変数Aで表し、それら変
数E及びA同士を、論理和「+」、論理積「*」、排他
的論理和「XOR」、及び否定「〜」の各論理演算子で
結び付ける論理演算式を設定する。そして、上記変換テ
ーブルは、変数E及びAの値の各組合せに対し、その演
算結果(すなわち、合成後の画素状態に対応)を与える
ものとして構成することができる。なお、各キャラクタ
に対する合成方法は、その補正ビットマップデータの大
きさが最小となるようなものを設定することが望まし
い。
Next, regarding the method of synthesizing the corrected bitmap data and the enlarged bitmap data, both bitmap data are constructed using a pixel matrix in which the pixels of each pixel correspond one-to-one, and The conversion table that gives the state of the pixel after combination for all combinations of the ON / OFF states of the corresponding pixels is stored in the ROM 6
It is possible to exemplify a method of storing in the conversion table storage unit 6c of FIG. 1 and creating composite bitmap data according to the conversion table. In this case, a plurality of conversion tables are stored as shown in FIG. 9, and a corresponding one is selected according to the value of the combining method flag. That is, “1” is associated with the ON state of the pixel, “0” is associated with the OFF state, the state of the pixel on the enlarged bitmap data side is a variable E, and the state of the pixel on the corrected bitmap data side is a variable. A is represented by A, and a logical operation expression that connects the variables E and A with each other by the logical operator “+”, the logical product “*”, the exclusive logical sum “XOR”, and the negation “~” is set. . The conversion table can be configured to give the calculation result (that is, the pixel state after combination) to each combination of the values of the variables E and A. It should be noted that it is desirable to set the synthesizing method for each character so that the size of the corrected bitmap data is minimized.

【0023】図1に戻って、プリンタ3は、上記合成ビ
ットマップデータに基づいてキャラクタのイメージを印
字出力する印字出力部13を備えている。この印字出力
部13は、例えばレーザー光源を使用する電子写真式印
字装置やインクジェット式印字装置等により構成され
る。なお、印字出力部13とI/Oポート4との間に、
コンピュータ本体2側から送られてくるイメージデータ
等を一時記憶するプリンタバッファメモリ12を設ける
ことができる。
Returning to FIG. 1, the printer 3 is provided with a print output unit 13 for printing out an image of a character based on the composite bitmap data. The print output unit 13 is composed of, for example, an electrophotographic printing device using a laser light source, an inkjet printing device, or the like. In addition, between the print output unit 13 and the I / O port 4,
A printer buffer memory 12 for temporarily storing image data and the like sent from the computer main body 2 side can be provided.

【0024】以下、キャラクタ出力装置1における処理
の流れについて、フローチャートを用いて説明する。ま
ず図10のS1において、入力部9を使用することによ
り、キャラクタのコードデータおよびサイズデータ(以
下、これらを総称する場合は「テキストデータ」と呼
ぶ)を入力する。入力されたテキストデータは、テキス
トファイルとしてRAM7のテキストメモリ7b(図
1)に記憶される。なお、予め作成したテキストファイ
ルをディスク記憶装置8等に記憶しておき、これを適宜
読み出して使用してもよい。
The flow of processing in the character output device 1 will be described below with reference to a flowchart. First, in S1 of FIG. 10, by using the input unit 9, character code data and size data (hereinafter, these are collectively referred to as “text data”) are input. The input text data is stored in the text memory 7b (FIG. 1) of the RAM 7 as a text file. It should be noted that the text file created in advance may be stored in the disk storage device 8 or the like, and may be read out and used as appropriate.

【0025】次に、S2において、そのテキストデータに
含まれるコードデータ及びサイズデータに基づいて、対
応するキャラクタ管理情報を読み出す。そして、基本サ
イズよりも大きいサイズが指定された場合はS4の合成処
理に進む。図11は合成処理の詳細を示しており、S51
においてそのコードに対応する圧縮基本ビットマップデ
ータを読み出し、S52においてこれを基本ビットマップ
データに展開する。続いて、S53において拡大方法フラ
グの値を読み出し、S54においてそのフラグ値で指定さ
れる拡大方法により、基本サイズイメージを指定された
サイズに拡大して、拡大基本ビットマップデータを生成
する。
Next, in S2, corresponding character management information is read based on the code data and size data included in the text data. Then, when a size larger than the basic size is designated, the process proceeds to the combining process of S4. FIG. 11 shows the details of the composition process, S51.
At, the compressed basic bitmap data corresponding to the code is read, and at S52, this is expanded into basic bitmap data. Subsequently, in S53, the value of the enlargement method flag is read out, and in S54, the enlargement method designated by the flag value is used to enlarge the basic size image to the designated size to generate enlarged basic bitmap data.

【0026】さらに、S55及びS56において、対応する圧
縮補正ビットマップデータを読み出してこれを展開し、
S57において合成方法フラグの値を読み込む。そして、S
58において、そのフラグ値により指定された合成方法に
より、上記拡大基本ビットマップデータと展開された補
正ビットマップデータとが合成されて、合成ビットマッ
プデータ(すなわち、最終イメージのビットマップデー
タ)となり、RAM7内のイメージメモリ7fに一時記
憶される。そして、図10のS5に進み、そのイメージメ
モリ7fに記憶されたビットマップデータに基づいて、
プリンタ3からキャラクタの最終イメージが出力され
る。一方、基本サイズイメージを拡大せずにそのまま出
力する場合(すなわち、基本サイズが指定された場合)
は、S3からS6以下に進み、圧縮基本ビットマップデータ
の読出しとその展開処理のみが行われた後、S5に進む。
Further, in S55 and S56, the corresponding compression correction bitmap data is read out and expanded,
In S57, the value of the composition method flag is read. And S
In 58, the enlarged basic bitmap data and the expanded corrected bitmap data are combined by the combining method specified by the flag value to form combined bitmap data (that is, final image bitmap data), It is temporarily stored in the image memory 7f in the RAM 7. Then, in S5 of FIG. 10, based on the bitmap data stored in the image memory 7f,
The final image of the character is output from the printer 3. On the other hand, when the basic size image is output without being enlarged (that is, when the basic size is specified)
Goes from S3 to S6 and thereafter, only the reading of the compressed basic bitmap data and the expansion processing thereof are performed, and then the process proceeds to S5.

【0027】なお、イメージデータに基づくキャラクタ
のイメージは、プリンタ3に印字・出力する他に、例え
ばモニタ11に表示・出力することも可能である。この
場合、モニタ出力用に、印刷用とは別のキャラクタデー
タを使用するようにしてもよい。
The character image based on the image data can be displayed and output on the monitor 11, for example, in addition to being printed and output on the printer 3. In this case, character data different from that for printing may be used for monitor output.

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

【図1】本発明のキャラクタ出力装置の一構成例を示す
ブロック図。
FIG. 1 is a block diagram showing a configuration example of a character output device of the present invention.

【図2】そのキャラクタ記憶部の内容例を示す説明図。FIG. 2 is an explanatory view showing an example of the contents of a character storage section thereof.

【図3】キャラクタのビットマップデータの一例を示す
説明図。
FIG. 3 is an explanatory diagram showing an example of bitmap data of a character.

【図4】データ圧縮方法の一例を示す説明図。FIG. 4 is an explanatory diagram showing an example of a data compression method.

【図5】データ圧縮方法の別の例を示す説明図。FIG. 5 is an explanatory diagram showing another example of a data compression method.

【図6】補正ビットマップデータの役割を示す説明図。FIG. 6 is an explanatory diagram showing the role of corrected bitmap data.

【図7】スムージング処理の第一の例を示す説明図。FIG. 7 is an explanatory diagram showing a first example of smoothing processing.

【図8】同じく第二の例を示す説明図。FIG. 8 is an explanatory diagram showing a second example of the same.

【図9】変換テーブルの例を示す説明図。FIG. 9 is an explanatory diagram showing an example of a conversion table.

【図10】図1のキャラクタ出力装置における処理の全
体の流れを示すフローチャート。
10 is a flowchart showing the overall flow of processing in the character output device of FIG.

【図11】その合成処理の詳細を示すフローチャート。FIG. 11 is a flowchart showing details of the combining process.

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

1 キャラクタ出力装置 3 プリンタ(イメージ出力手段) 5 CPU(拡大ビットマップデータ生成手段、ビット
マップデータ合成手段、圧縮解除手段) 8 ディスク記憶装置(基本ビットマップデータ記憶手
段、補正ビットマップデータ記憶手段) 20 基本サイズイメージ 25 拡大基本イメージ 26 最終イメージ 30 基本ビットマップデータ 31 補正ビットマップデータ 32 拡大ビットマップデータ
1 Character Output Device 3 Printer (Image Output Means) 5 CPU (Enlarged Bitmap Data Generation Means, Bitmap Data Composing Means, Decompression Means) 8 Disk Storage (Basic Bitmap Data Storage Means, Corrected Bitmap Data Storage Means) 20 basic size image 25 enlarged basic image 26 final image 30 basic bitmap data 31 corrected bitmap data 32 enlarged bitmap data

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/26 630 9377−5H G09G 5/28 610B 5/28 610 B41J 3/12 L H04N 1/409 H04N 1/40 101D ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/26 630 9377-5H G09G 5/28 610B 5/28 610 B41J 3/12 L H04N 1 / 409 H04N 1/40 101D

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数サイズのキャラクタのイメージを、
画素のオン/オフの情報で表したビットマップイメージ
として出力するキャラクタ出力装置において、 上記複数サイズのビットマップイメージのうち、最大サ
イズのものよりも小さい所定のものが基本サイズイメー
ジとして設定されるとともに、 その基本サイズイメージのビットマップデータ(以下、
基本ビットマップデータという)を記憶する基本ビット
マップデータ記憶手段と、 前記基本サイズイメージを指定されたサイズに拡大した
場合の、その拡大された基本サイズイメージ(以下、拡
大基本イメージという)のビットマップデータを、前記
基本ビットマップデータに基づいて生成する拡大ビット
マップデータ生成手段と、 前記複数サイズのうち、前記基本サイズよりも大きいも
のにそれぞれ対応して設けられ、予め定められた方法に
従い前記拡大基本イメージと合成されることにより、そ
のサイズにおいて最終的に出力させるべきビットマップ
イメージ(以下、最終イメージという)を形成する補正
ビットマップデータを記憶する補正ビットマップデータ
記憶手段と、 指定されたサイズにおいて、前記拡大基本イメージのビ
ットマップデータと、対応する前記補正ビットマップデ
ータとを合成するビットマップデータ合成手段と、 該合成されたビットマップデータに基づいて、前記指定
されたサイズの最終イメージを出力するイメージ出力手
段と、 を備えたことを特徴とするキャラクタ出力装置。
1. An image of characters of multiple sizes,
In a character output device for outputting a bitmap image represented by pixel on / off information, a predetermined one smaller than the maximum size is set as the basic size image among the bitmap images of the plurality of sizes. , The bitmap data of the basic size image (hereinafter,
Basic bitmap data storage means for storing the basic bitmap image), and a bitmap of the enlarged basic size image (hereinafter referred to as enlarged basic image) when the basic size image is enlarged to a specified size. Enlarged bitmap data generating means for generating data based on the basic bitmap data, and a plurality of sizes that are larger than the basic size and are respectively provided in correspondence with the enlarged bitmap data according to a predetermined method. A correction bitmap data storage unit that stores correction bitmap data that forms a bitmap image (hereinafter referred to as a final image) to be finally output in that size by being combined with the basic image, and a specified size. In, the bits of the enlarged basic image Bitmap data synthesizing means for synthesizing the image data and the corresponding corrected bitmap data, and an image output means for outputting the final image of the designated size based on the synthesized bitmap data. A character output device characterized by the above.
【請求項2】 前記基本ビットマップデータ及び補正ビ
ットマップデータの少なくとも一方が、圧縮された状態
で記憶されており、 その圧縮された基本ビットマップデータないし補正ビッ
トマップデータを、圧縮前の状態に復元する圧縮解除手
段を備え、 前記基本ビットマップデータ記憶手段ないし補正ビット
マップデータ記憶手段は、前記圧縮された基本ビットマ
ップデータないし補正ビットマップデータを記憶するも
のとされる請求項1記載のキャラクタ出力装置。
2. At least one of the basic bitmap data and the correction bitmap data is stored in a compressed state, and the compressed basic bitmap data or correction bitmap data is stored in a state before compression. The character according to claim 1, further comprising decompression means for decompressing, wherein the basic bitmap data storage means or the corrected bitmap data storage means stores the compressed basic bitmap data or the corrected bitmap data. Output device.
【請求項3】 前記基本サイズイメージの拡大方法が、
前記キャラクタの種類と対応付けて複数設定されてお
り、 前記拡大ビットマップデータ生成手段は、指定されたキ
ャラクタに対し、前記複数の拡大方法のうち該キャラク
タに対応する方法によりその基本サイズイメージを拡大
して、その拡大基本イメージのビットマップデータを生
成するものとされている請求項1又は2に記載のキャラ
クタ出力装置。
3. A method of enlarging the basic size image,
A plurality of sets are set in association with the type of the character, and the enlarged bitmap data generation unit enlarges the basic size image of the designated character by a method corresponding to the character among the plurality of enlargement methods. The character output device according to claim 1 or 2, wherein bit map data of the enlarged basic image is generated.
【請求項4】 前記複数の拡大方法は、前記基本サイズ
イメージの拡大に際して、そのビットマップイメージの
輪郭部分を平滑化する処理(以下、スムージング処理と
いう)を行う第一の方法と、該スムージング処理を行わ
ない第二の方法とを含み、これら第一及び第二の方法の
いずれかが前記キャラクタの種類に応じて選択されるよ
うになっている請求項3記載のキャラクタ出力装置。
4. The plurality of enlargement methods include a first method for smoothing a contour portion of a bitmap image (hereinafter referred to as smoothing processing) when enlarging the basic size image, and the smoothing processing. 4. The character output device according to claim 3, further comprising a second method of not performing, and one of these first and second methods is selected according to the type of the character.
【請求項5】 前記拡大基本イメージのビットマップデ
ータと前記補正ビットマップデータとを合成する合成方
法が、前記キャラクタの種類と対応付けて複数設定され
ており、 前記ビットマップデータ合成手段は、指定されたキャラ
クタの前記拡大基本イメージのビットマップデータと前
記補正ビットマップデータとを、前記複数の合成方法の
うち該キャラクタに対応する方法により合成するものと
されている請求項1ないし4のいずれかに記載のキャラ
クタ出力装置。
5. A plurality of synthesizing methods for synthesizing the bitmap data of the enlarged basic image and the corrected bitmap data are set in association with the type of the character, and the bitmap data synthesizing unit is designated. 5. The bitmap data of the enlarged basic image of the generated character and the corrected bitmap data are combined by a method corresponding to the character among the plurality of combining methods. The character output device described in.
JP7317161A 1995-11-10 1995-11-10 Character output device Pending JPH09134423A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7317161A JPH09134423A (en) 1995-11-10 1995-11-10 Character output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7317161A JPH09134423A (en) 1995-11-10 1995-11-10 Character output device

Publications (1)

Publication Number Publication Date
JPH09134423A true JPH09134423A (en) 1997-05-20

Family

ID=18085141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7317161A Pending JPH09134423A (en) 1995-11-10 1995-11-10 Character output device

Country Status (1)

Country Link
JP (1) JPH09134423A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007018363A (en) * 2005-07-08 2007-01-25 Brother Ind Ltd Image forming data generation device, method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007018363A (en) * 2005-07-08 2007-01-25 Brother Ind Ltd Image forming data generation device, method and program
US8086069B2 (en) 2005-07-08 2011-12-27 Brother Kogyo Kabushiki Kaisha Data-generating apparatus, method, and program for image forming

Similar Documents

Publication Publication Date Title
JPH06225140A (en) Method and apparatus for smoothing edge of picture element image
JP3474037B2 (en) Character pattern generator
JPS60241086A (en) Magnification of character
JP2909273B2 (en) Outline font line width adjusting method and apparatus
JPH06149212A (en) Character generation method and its device
JP2903917B2 (en) Image editing processor
JPH09134423A (en) Character output device
JPH0729021A (en) Picture output device
JP2608275B2 (en) Image processing device
JPH0934434A (en) Character generating device
JPH04280296A (en) Contour data processing device
JPH09305160A (en) Character generator
JPH04348388A (en) Character output system
JP2849319B2 (en) Character pattern compression method
JP3223044B2 (en) Graphic processing unit
JPH0880639A (en) Font selective system of printer
JP2803746B2 (en) Character processing method and apparatus
JP3254657B2 (en) Data converter
JP2965429B2 (en) Character output device
JPH09138677A (en) Character data storage device and character output device
JPH09146519A (en) Character composition device
JPH0934437A (en) Generating method of character pattern and character output device
JPS60242492A (en) Character generator
JPH09127928A (en) Character output device
JPH08241308A (en) Method and device for image processing