JPH09101770A - Character data converter - Google Patents
Character data converterInfo
- Publication number
- JPH09101770A JPH09101770A JP7258588A JP25858895A JPH09101770A JP H09101770 A JPH09101770 A JP H09101770A JP 7258588 A JP7258588 A JP 7258588A JP 25858895 A JP25858895 A JP 25858895A JP H09101770 A JPH09101770 A JP H09101770A
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- density
- character
- character data
- gradation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000000203 mixture Substances 0.000 claims abstract description 7
- 238000006243 chemical reaction Methods 0.000 claims description 40
- 230000015572 biosynthetic process Effects 0.000 abstract description 9
- 238000003786 synthesis reaction Methods 0.000 abstract description 9
- 238000012935 Averaging Methods 0.000 abstract 1
- 230000015654 memory Effects 0.000 description 44
- 238000000034 method Methods 0.000 description 41
- 238000010586 diagram Methods 0.000 description 19
- 230000003936 working memory Effects 0.000 description 13
- 230000006870 function Effects 0.000 description 3
- 239000002131 composite material Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
(57)【要約】
【課題】 低演算処理能力の装置においても高速に処理
可能な、2値キャラクタデータを階調キャラクタデータ
に変換するキャラクタデータ変換装置を提供すること。
【解決手段】 2値キャラクタデータを読み出し(S3
1)、予め記憶した特定の画素を表わす特定画素データ
を参照して、2値キャラクタデータの特定の画素をオフ
に設定し(S32)、2値キャラクタデータを多階調化
し(S33)、各画素の濃度をその左隣の画素の濃度と
の平均値とすることで階調キャラクタデータAを生成す
る(S34)。ここで、合成フラグがオンなら各画素の
濃度をその上隣の画素の濃度との平均値とすることで階
調キャラクタデータBを生成し(S37)、階調キャラ
クタデータA、Bを合成したキャラクタデータCを生成
する(S38)。合成フラグがオフなら、階調キャラク
タデータAをそのまま出力する階調キャラクタデータと
する(S36)。
(57) Abstract: A character data converter for converting binary character data into gradation character data, which can be processed at high speed even in a device having a low arithmetic processing capacity. SOLUTION: Binary character data is read (S3
1) Referring to specific pixel data representing a specific pixel stored in advance, a specific pixel of the binary character data is set to OFF (S32), and the binary character data is made to have multiple gradations (S33). The gradation character data A is generated by taking the density of the pixel as the average value with the density of the pixel on the left of the pixel (S34). Here, if the composition flag is ON, the gradation character data B is generated by averaging the density of each pixel with the density of the pixel adjacent thereto (S37), and the gradation character data A and B are combined. Character data C is generated (S38). If the synthesis flag is off, the gradation character data A is directly output as the gradation character data (S36).
Description
【0001】[0001]
【発明の属する技術分野】本発明は、階調を持った画像
を表示または出力できるCRT(ディスプレイ)やイン
クジェットプリンタ等の出力装置において、キャラクタ
の形状を高品位に表現するための補正変換処理を実行す
ることのできるキャラクタデータ変換装置に関するもの
である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a correction conversion process for expressing a character shape in high quality in an output device such as a CRT (display) or an inkjet printer capable of displaying or outputting an image having gradation. The present invention relates to a character data conversion device that can be executed.
【0002】[0002]
【従来の技術】近年、インクジェットプリンタやディス
プレイにおいても、デジタル信号を入力として階調を表
現できる出力装置が多く見られるようになってきてい
る。しかし、これらの出力装置における、印字/表示す
るための文字や記号等(以後、キャラクタと称する)の
形状を定義する形状データ(以下、キャラクタイメージ
データという)は2値表現のものが多く、階調を持った
ものは普及していない。従って、この種の出力装置にお
いても、キャラクタのイメージ(画像)は2値で出力さ
れるものが多かった。2. Description of the Related Art In recent years, many output devices capable of expressing gradation by inputting a digital signal have been widely used in ink jet printers and displays. However, in these output devices, the shape data (hereinafter referred to as character image data) that defines the shape of characters or symbols (hereinafter referred to as characters) for printing / displaying is often expressed in binary. Those with a tone are not popular. Therefore, even in this type of output device, the image of the character is often output in binary.
【0003】一般に2値イメージでキャラクタを表現す
ると、斜線部分のギザギザ(以後、ジャギと称する)が
目立ち、美しいキャラクタのイメージを得ることができ
ないが、キャラクタイメージの輪郭付近を中間調で表現
すれは、このジャギが目立たないことが知られている。
このように中間調を用いて階調表現したキャラクタイメ
ージ(階調キャラクタイメージという)を形状データ
(以後、階調キャラクタデータと称する)として予め記
憶した出力装置であれば、容易に階調表現したキャラク
タイメージを出力できるが、階調キャラクタイメージの
データを表現しようとする場合、データの容量は2値の
キャラクタイメージの形状データ(以後、2値キャラク
タデータと称する)のデータ量の数倍を必要とし、製品
のコストに大きく影響を与える。Generally, when a character is represented by a binary image, a jagged portion (hereinafter referred to as "jaggie") in a hatched portion is conspicuous and a beautiful image of the character cannot be obtained. , This jagi is known to be inconspicuous.
In this way, if the output device stores in advance a character image (called a gradation character image) that is expressed in gradation using halftones as shape data (hereinafter referred to as gradation character data), it can be expressed in gradation easily. A character image can be output, but when expressing gradation character image data, the data capacity must be several times the data amount of the binary character image shape data (hereinafter referred to as binary character data). And, it greatly affects the cost of the product.
【0004】この解決策として、従来と同様に2値キャ
ラクタデータを記憶し、その輪郭付近を中間調で表現し
た階調キャラクタデータに変換するキャラクタデータ変
換装置を備えることで、従来と同等のデータ容量でキャ
ラクタの形状を階調表現可能な出力装置が提案されてい
る。前述のキャラクタデータ変換装置は、様々なものが
提案されているが、その一つに、本出願人による先の出
願(特願平7−257514号)にて提案したキャラク
タデータ変換装置がある。As a solution to this, as in the conventional case, a binary character data is stored, and a character data conversion device for converting the vicinity of the contour into gradation character data in which halftones are expressed is provided, and data equivalent to the conventional case is provided. An output device has been proposed which can express the shape of a character by gradation with a capacity. Various character data conversion devices have been proposed, and one of them is the character data conversion device proposed in the previous application (Japanese Patent Application No. 7-257514) filed by the present applicant.
【0005】この装置は、2値キャラクタデータの画素
のうちオンの状態にある画素を予め定められた第1濃度
(例えば、出力装置の最高濃度)で表現し、オフの状態
にある画素を予め定められた第2濃度(例えば、出力装
置の最低濃度)でそれぞれ表現した多階調のイメージデ
ータである単調キャラクタデータを生成し、キャラクタ
の形状の各画素の濃度を、単調キャラクタデータに設定
された値における、その画素の濃度と隣(例えば、左
隣)の画素の濃度との所定割合(例えば、平均)の中間
濃度とすることで階調キャラクタデータを生成する方式
であった。This device expresses the pixels in the ON state among the pixels of the binary character data by a predetermined first density (for example, the maximum density of the output device), and the pixels in the OFF state in advance. Monotonic character data, which is multi-tone image data expressed by a predetermined second density (for example, the lowest density of the output device), is generated, and the density of each pixel of the character shape is set in the monotone character data. The gradation character data is generated by setting an intermediate density of a predetermined ratio (for example, an average) between the density of the pixel and the density of the adjacent pixel (for example, the left adjacent pixel).
【0006】また、この方式の応用として、前述の中間
濃度を求める際の隣の画素を横隣(例えば、左隣)と設
定して生成した階調キャラクタデータAと、縦隣(例え
ば、上隣)と設定して生成した階調キャラクタデータB
とを生成して、キャラクタの各画素の濃度を、2つの階
調キャラクタデータにおいて、対応する画素の、少なく
とも一方が中間濃度である場合には中間濃度で表現し、
それ以外の場合には、予め定められた第1濃度または第
2濃度に設定することで階調キャラクタデータを生成す
る方式があった。Further, as an application of this method, the gradation character data A generated by setting the adjacent pixel when determining the above-mentioned intermediate density to be horizontally adjacent (for example, left adjacent) and vertically adjacent (for example, above) Adjacent) and generated gradation character data B
And the density of each pixel of the character is expressed by the intermediate density when at least one of the corresponding pixels in the two gradation character data is the intermediate density,
In other cases, there has been a method of generating gradation character data by setting a predetermined first density or second density.
【0007】このキャラクタデータ変換装置は、単純な
演算処理のみを用いて、2値キャラクタデータをその輪
郭付近を中間調で表現した階調キャラクタデータに変換
することができるため、低演算処理能力の装置であって
も良好に機能するという特徴があった。Since this character data conversion device can convert binary character data into gradation character data in which the vicinity of the contour is expressed in halftone using only simple arithmetic processing, it has a low arithmetic processing capability. There was a feature that even the device worked well.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、上述の
先行技術(特願平7−257514号)に記載のキャラ
クタデータ変換装置では、2値キャラクタデータにおい
て、縦横共にオンとなっている画素の中には、輪郭付近
であるにもかかわらず、中間調に変換されないものがあ
るという問題があった。However, in the character data conversion device described in the above-mentioned prior art (Japanese Patent Application No. 7-257514), in the binary character data, the pixels which are turned on both vertically and horizontally are included. Had a problem in that some of them were not converted to halftone even though they were near the contour.
【0009】図9を用いて、これを詳細に説明する。図
9は、上述の処理により生成される中間データを示す。
図9(a)は6×6ドットパターンで表示する2値キャ
ラクタデータのうち、オンである画素を15の濃度で、
オフである画素を0の濃度でそれぞれ表した単調キャラ
クタデータを示し、図9(b)は各画素の濃度を、その
画素の濃度と左隣の画素の濃度との所定割合(この場
合、平均値)の中間濃度とすることで中間調表現した階
調キャラクタデータAを示し、図9(c)は各画素の濃
度を、その画素の濃度と上隣の画素の濃度との所定割合
(この場合、平均値)の中間濃度とすることで中間調表
現した階調キャラクタデータBを示す。図9(d)は各
画素の濃度を、階調キャラクタデータA及びBの対応す
る画素の濃度のうち、少なくとも一方が中間濃度である
場合には中間濃度で、それ以外の場合には、予め定めら
れた濃度に設定することで生成した出力すべき階調キャ
ラクタデータをそれぞれ示している。尚、図9の格子内
(6×6個)は、画素を規定しており、各格子内の数値
はその位置の画素の濃度を表している。This will be described in detail with reference to FIG. FIG. 9 shows intermediate data generated by the above processing.
FIG. 9A shows that, in the binary character data displayed in the 6 × 6 dot pattern, the ON pixels have a density of 15,
FIG. 9B shows monotonic character data in which pixels that are off are represented by densities of 0, and FIG. 9C shows the gradation character data A expressed in halftone by setting an intermediate density of (value), and FIG. 9C shows the density of each pixel as a predetermined ratio between the density of the pixel and the density of the pixel adjacent to the upper side (this In this case, the grayscale character data B represented by halftone by showing an intermediate density of the average value) is shown. FIG. 9D shows the density of each pixel as the intermediate density when at least one of the corresponding pixel densities of the gradation character data A and B is the intermediate density, and in other cases, it is previously set. The gradation character data to be output, which is generated by setting the density to a predetermined value, is shown. Note that the pixels in the grid (6 × 6) in FIG. 9 define pixels, and the numerical value in each grid represents the density of the pixel at that position.
【0010】しかしながら、図9より明らかなように、
図9(a)の画素100の位置では、その濃度が上隣の
画素の濃度及び左右隣の画素の濃度と同じであるから、
図9(b)による左隣の画素の濃度との平均値による中
間濃度への変換及び図9(c)の上隣の画素の濃度との
平均値の中間濃度への変換が実現できず、画素100の
位置の濃度は、キャラクタの境界であるにも関わらず中
間調で表現することができないのであった。However, as is clear from FIG.
At the position of the pixel 100 in FIG. 9A, the density is the same as the density of the upper adjacent pixel and the density of the right and left adjacent pixels,
9B, the conversion to the intermediate density by the average value with the density of the pixel on the left side and the conversion of the average value with the density of the pixel on the upper side of FIG. 9C to the intermediate density cannot be realized. The density at the position of the pixel 100 cannot be expressed in halftones, even though it is the boundary of the character.
【0011】本発明は、上述した問題点を解決するため
になされたものであり、2値キャラクタデータを、その
輪郭付近を中間調で階調表現した階調キャラクタデータ
に変換する処理において、低演算処理能力の装置であっ
ても良好に機能し、かつ、高品位な出力結果を得ること
ができるキャラクタデータ変換装置を提供することであ
る。The present invention has been made in order to solve the above-mentioned problems, and in the process of converting binary character data into gradation character data in which the vicinity of the contour is expressed by gradation in halftone, An object of the present invention is to provide a character data conversion device that can function well even with a device having an arithmetic processing capability and can obtain a high-quality output result.
【0012】[0012]
【課題を解決するための手段】この目的を達成するため
に請求項1に記載の発明のキャラクタデータ変換装置
は、キャラクタの形状を画素のオン/オフの情報で表し
た2値のビットマップで定義する2値キャラクタデータ
を、画素の濃度の情報で表した多階調のイメージで定義
する階調キャラクタデータに変換するキャラクタデータ
変換装置において、2値キャラクタデータの形状の特定
の画素を識別する特定画素識別手段と、特定画素識別手
段によって、前記2値キャラクタデータの特定の画素と
識別された画素をオフの状態にした補正2値キャラクタ
データを生成する補正2値キャラクタ生成手段と、補正
2値キャラクタ生成手段で生成された補正2値キャラク
タデータの画素のオンの状態にある画素を予め定められ
た第1濃度で表現し、オフの状態にある画素を予め定め
られた第2濃度でそれぞれ表現した多階調のイメージデ
ータである単調キャラクタデータを生成する単調キャラ
クタ生成手段と、前記キャラクタの形状の1画素を指定
すると、単調キャラクタデータにおける指定された画素
の濃度と、単調キャラクタデータにおける予め定められ
た方向に隣接する画素の濃度との所定割合の中間濃度を
算出する濃度算出手段と、濃度算出手段に各画素を指定
することで得られた中間濃度で当該各画素を表現した多
階調のイメージデータである階調キャラクタデータを生
成する階調キャラクタ生成手段とを備えたものである。In order to achieve this object, a character data conversion device according to a first aspect of the present invention is a binary bit map in which the shape of a character is represented by pixel on / off information. In a character data conversion device for converting defined binary character data into gradation character data defined by a multi-gradation image represented by pixel density information, a specific pixel having the shape of the binary character data is identified. A specific pixel identification means, a corrected binary character generation means for generating corrected binary character data in which a pixel identified by the specific pixel identification means as a specific pixel of the binary character data is turned off; Pixels in the ON state of the pixels of the corrected binary character data generated by the value character generation means are expressed by a predetermined first density. If a monotonic character generating means for generating monotonic character data, which is multi-gradation image data in which the pixels in the off state are expressed by a predetermined second density, and one pixel in the shape of the character are specified, A density calculation means for calculating an intermediate density of a predetermined ratio between the density of a designated pixel in the character data and the density of a pixel adjacent in a predetermined direction in the monotone character data, and each pixel is designated in the density calculation means. The gradation character generating means for generating gradation character data, which is multi-gradation image data expressing each pixel with the intermediate density obtained in this way, is provided.
【0013】また、請求項2に記載の発明のキャラクタ
データ変換装置は、キャラクタの形状を画素のオン/オ
フの情報で表した2値のビットマップで定義する2値キ
ャラクタデータを、画素の濃度の情報で表した多階調の
イメージで定義する階調キャラクタデータに変換するキ
ャラクタデータ変換装置において、前記2値キャラクタ
データの形状の特定の画素を識別する特定画素識別手段
と、前記特定画素識別手段によって、前記2値キャラク
タデータの特定の画素と識別された画素をオフの状態に
した補正2値キャラクタデータを生成する補正2値キャ
ラクタ生成手段と、前記補正2値キャラクタ生成手段で
生成された補正2値キャラクタデータの画素のオンの状
態にある画素を予め定められた第1濃度で表現し、オフ
の状態にある画素を予め定められた第2濃度でそれぞれ
表現した多階調のイメージデータである単調キャラクタ
データを生成する単調キャラクタ生成手段と、前記キャ
ラクタの形状の1画素を指定すると、前記単調キャラク
タデータにおける指定された画素の濃度と、前記単調キ
ャラクタデータにおける予め定められた左或いは右方向
に隣接する画素の濃度との所定割合の中間濃度を算出す
る横方向濃度算出手段と、前記キャラクタの形状の1画
素を指定すると、前記単調キャラクタデータにおける指
定された画素の濃度と、前記単調キャラクタデータにお
ける予め定められた上或いは下方向に隣接する画素の濃
度との所定割合の中間濃度を算出する縦方向濃度算出手
段と、横方向濃度算出手段に各画素を指定することで得
られた中間濃度で当該画素を表現した多階調のイメージ
データである横方向階調キャラクタデータを生成する横
方向階調キャラクタ生成手段と、縦方向濃度算出手段に
各画素を指定することで得られた中間濃度で当該画素を
表現した多階調のイメージデータである縦方向階調キャ
ラクタデータを生成する縦方向階調キャラクタ生成手段
と、前記キャラクタ形状の各画素の濃度を、その画素と
対応する前記横方向階調キャラクタデータ及び前記縦方
向階調キャラクタデータにおける画素の濃度の、少なく
とも一方が前記中間濃度である場合には前記中間濃度で
表現し、それ以外の場合には前記横方向階調キャラクタ
データ及び前記縦方向階調キャラクタデータにおける画
素の濃度のうちの予め定められた第1濃度または第2濃
度でそれぞれ表現した多階調のイメージデータである階
調キャラクタデータを生成する合成階調キャラクタ生成
手段とを備えたものである。According to a second aspect of the present invention, there is provided a character data conversion device for converting binary character data, which defines a character shape by binary bit map representing pixel on / off information, into pixel density. In a character data conversion device for converting into gradation character data defined by a multi-gradation image represented by the information of 1., specific pixel identification means for identifying a specific pixel in the shape of the binary character data, and the specific pixel identification. Generated by the corrected binary character generation means for generating corrected binary character data in which a pixel identified as a specific pixel of the binary character data is turned off by the means, and the corrected binary character generation means. Pixels in the corrected binary character data that are in the ON state are expressed by a predetermined first density, and are in the OFF state. When a monotone character generating means for generating monotone character data, which is multi-tone image data expressed by a predetermined second density, and one pixel of the character shape are designated, the designated monotone character data is designated. Lateral density calculating means for calculating an intermediate density at a predetermined ratio between the density of a pixel and the density of a pixel adjacent in the left or right direction in the monotone character data, and one pixel in the shape of the character is designated. Then, a vertical direction density calculating means for calculating an intermediate density of a predetermined ratio between the density of a designated pixel in the monotone character data and the density of a pixel adjacent in a predetermined upward or downward direction in the monotone character data. , Express the pixel with the intermediate density obtained by designating each pixel in the lateral density calculation means. The horizontal gradation character generating means for generating horizontal gradation character data, which is multi-gradation image data, and the intermediate density obtained by designating each pixel in the vertical density calculating means represent the pixel. Vertical gradation character generation means for generating vertical gradation character data that is multi-gradation image data, and the horizontal gradation character data and the horizontal gradation character data corresponding to the density of each pixel of the character shape. When at least one of the densities of the pixels in the vertical gradation character data is the intermediate density, it is expressed by the intermediate density, and in other cases, the horizontal gradation character data and the vertical gradation character are expressed. A step which is multi-gradation image data expressed by a predetermined first density or second density among pixel densities in the data. And a synthetic gradation character generating means for generating the gradation character data.
【0014】そして、請求項3に記載の発明のキャラク
タデータ変換装置は、キャラクタの形状を画素のオン/
オフの情報で表した2値のビットマップで定義する2値
キャラクタデータを、画素の濃度の情報で表した多階調
のイメージで定義する階調キャラクタデータに変換する
キャラクタデータ変換装置において、2値キャラクタデ
ータの画素のオンの状態にある画素を予め定められた第
1濃度で表現し、オフの状態にある画素を予め定められ
た第2濃度でそれぞれ表現した多階調のイメージデータ
である単調キャラクタデータを生成する単調キャラクタ
生成手段と、単調キャラクタデータの形状の特定の画素
を識別する特定画素識別手段と、特定画素識別手段によ
って、前記単調キャラクタデータの特定の画素と識別さ
れた画素を前記第2濃度で表現した補正単調キャラクタ
データを生成する補正単調キャラクタ生成手段と、前記
キャラクタの形状の1画素を指定すると、前記補正単調
キャラクタデータにおける指定された画素の濃度と、前
記補正単調キャラクタデータにおける予め定められた方
向に隣接する画素の濃度との所定割合の中間濃度を算出
する濃度算出手段と、濃度算出手段に各画素を指定する
ことで得られた濃度で当該画素を表現した多階調のイメ
ージデータである階調キャラクタデータを生成する階調
キャラクタ生成手段とを備えている。According to the character data converter of the third aspect of the present invention, the shape of the character is turned on / off of the pixel.
In a character data conversion device for converting binary character data defined by a binary bitmap represented by OFF information into gradation character data defined by a multi-gradation image represented by pixel density information, It is multi-tone image data in which the pixels of the value character data in the ON state are expressed by a predetermined first density, and the pixels in the OFF state are expressed by a predetermined second density. A monotone character generating means for generating monotone character data, a specific pixel identifying means for identifying a specific pixel in the shape of the monotone character data, and a pixel identified as a specific pixel for the monotone character data by the specific pixel identifying means. Corrected monotone character generation means for generating corrected monotonic character data expressed by the second density, and the shape of the character When one pixel is designated, a density calculating means for calculating an intermediate density of a predetermined ratio between the density of the designated pixel in the corrected monotone character data and the density of a pixel adjacent in a predetermined direction in the corrected monotone character data. And gradation character generation means for generating gradation character data, which is multi-gradation image data expressing the pixel with the density obtained by designating each pixel in the density calculation means.
【0015】さらに、請求項4に記載の発明のキャラク
タデータ変換装置は、キャラクタの形状を画素のオン/
オフの情報で表した2値のビットマップで定義する2値
キャラクタデータを、画素の濃度の情報で表した多階調
のイメージで定義する階調キャラクタデータに変換する
キャラクタデータ変換装置において、前記2値キャラク
タデータの画素のオンの状態にある画素を予め定められ
た第1濃度で表現し、オフの状態にある画素を予め定め
られた第2濃度でそれぞれ表現した多階調のイメージデ
ータである単調キャラクタデータを生成する単調キャラ
クタ生成手段と、前記単調キャラクタデータの形状の特
定の画素を識別する特定画素識別手段と、 特定画素識
別手段によって、前記単調キャラクタデータの特定の画
素と識別された画素を前記第2濃度で表現した補正単調
キャラクタデータを生成する補正単調キャラクタ生成手
段と、前記キャラクタの形状の1画素を指定すると、前
記補正単調キャラクタデータにおける指定された画素の
濃度と、前記補正単調キャラクタデータにおける予め定
められた左或いは右方向に隣接する画素の濃度との所定
割合の中間濃度を算出する横方向濃度算出手段と、前記
キャラクタの形状の1画素を指定すると、前記補正単調
キャラクタデータにおける指定された画素の濃度と、前
記補正単調キャラクタデータにおける予め定められた上
或いは下方向に隣接する画素の濃度との所定割合の中間
濃度を算出する縦方向濃度算出手段と、横方向濃度算出
手段に各画素を指定することで得られた中間濃度で当該
画素を表現した多階調のイメージデータである横方向階
調キャラクタデータを生成する横方向階調キャラクタ生
成手段と、縦方向濃度算出手段に各画素を指定すること
で得られた中間濃度で当該画素を表現した多階調のイメ
ージデータである縦方向階調キャラクタデータを生成す
る縦方向階調キャラクタ生成手段と、前記キャラクタ形
状の各画素の濃度を、その画素と対応する横方向階調キ
ャラクタデータ及び縦方向階調キャラクタデータにおけ
る画素の濃度のうち、少なくとも一方が前記中間濃度で
ある場合には前記中間濃度で表現し、それ以外の場合に
は横方向階調キャラクタデータ及び縦方向階調キャラク
タデータにおける画素の濃度のうちの予め定められた第
1濃度または第2濃度で、それぞれ表現した多階調のイ
メージデータである階調キャラクタデータを生成する合
成階調キャラクタ生成手段とを備えている。Further, in the character data conversion device according to the fourth aspect of the present invention, the shape of the character is changed to the pixel on / off state.
In the character data conversion device, which converts binary character data defined by a binary bitmap represented by OFF information into gradation character data defined by a multi-gradation image represented by pixel density information, The multi-gradation image data in which the pixels in the on state of the pixels of the binary character data are represented by a predetermined first density, and the pixels in the off state are represented by a predetermined second density. A monotone character generating means for generating certain monotone character data, a specific pixel identifying means for identifying a specific pixel in the shape of the monotone character data, and a specific pixel identifying means for identifying a specific pixel of the monotone character data. A corrected monotone character generating means for generating corrected monotone character data in which pixels are expressed by the second density; When one pixel in the shape of the data is designated, the density of the designated pixel in the corrected monotone character data and the density of the pixel adjacent in the predetermined left or right direction in the corrected monotone character data are in the middle of a predetermined ratio. When the horizontal direction density calculating means for calculating the density and one pixel of the shape of the character are designated, the density of the designated pixel in the corrected monotone character data and the predetermined upward or downward direction in the corrected monotone character data A vertical density calculating means for calculating an intermediate density of a predetermined ratio with the density of a pixel adjacent to the pixel, and a multi-gradation expressing the pixel with the intermediate density obtained by designating each pixel in the horizontal density calculating means. The horizontal gradation character generating means for generating the horizontal gradation character data which is the image data of the By specifying vertical density character generation means for generating vertical gradation character data, which is multi-gradation image data representing the pixel with the intermediate density obtained by designating, and the density of each pixel of the character shape. Is represented by the intermediate density when at least one of the densities of the pixels in the horizontal gradation character data and the vertical gradation character data corresponding to the pixel is the intermediate density, and in other cases. Is a gradation character data that is multi-gradation image data expressed by a predetermined first density or second density of the pixel densities in the horizontal gradation character data and the vertical gradation character data. And a synthetic gradation character generating means for generating.
【0016】なお、前記請求項2及び4に記載の発明の
キャラクタデータ変換装置おいて、前記合成階調キャラ
クタ生成手段による前記縦方向階調キャラクタデータと
横方向階調キャラクタデータを合成するか否かを指示す
る合成指示手段と、合成指示手段で合成しないことが指
示された場合には、前記縦方向階調キャラクタ生成手段
或いは横方向階調キャラクタ生成手段により生成された
前記縦方向階調キャラクタデータ或いは横方向階調キャ
ラクタデータを、前記合成指示手段で合成することが指
示された場合には、前記合成階調キャラクタ生成手段に
より生成された階調キャラクタデータを、それぞれ出力
する前記階調キャラクタデータとして生成する選択階調
キャラクタ生成手段とを備えたものであっても良い。In the character data conversion device according to the second and fourth aspects, whether or not the vertical gradation character data and the horizontal gradation character data are combined by the composite gradation character generating means. And a vertical direction gradation character generated by the vertical direction gradation character generation means or the horizontal direction gradation character generation means when the combination instruction means for instructing The gradation character that outputs the gradation character data generated by the composite gradation character generating means when the data or the horizontal gradation character data is instructed to be combined by the combining instructing means. It may be provided with a selected gradation character generating means for generating it as data.
【0017】さらに、請求項1乃至5に記載の発明のキ
ャラクタデータ変換装置おいて、前記濃度算出手段、前
記横方向濃度算出手段、及び、前記縦方向算出手段にお
ける、所定割合の中間濃度の算出を、平均値で算出する
ものであってもよい。Further, in the character data conversion device according to the present invention, calculation of an intermediate density of a predetermined ratio in the density calculation means, the horizontal direction density calculation means, and the vertical direction calculation means. May be calculated as an average value.
【0018】[0018]
【発明の実施の形態】以下、本発明を具体化した実施の
形態を図面を参照しながら説明する。以下に示す実施形
態は、予め記憶した2値のキャラクタのビットマップイ
メージを、各画素の出力濃度を0〜15(濃度は数値が
大きいほど高濃度、以後同様)で表現し得るディスプレ
イ装置及びインクジェットプリンタを出力装置として備
えたキャラクタ表示装置における、出力用のキャラクタ
イメージを生成する装置に本発明を適用した例を示す。Embodiments of the present invention will be described below with reference to the drawings. In the embodiments described below, a display device and an inkjet device capable of expressing a prestored binary character bitmap image with output densities of pixels of 0 to 15 (the higher the density is, the higher the density is, and so on). An example in which the present invention is applied to a device for generating a character image for output in a character display device equipped with a printer as an output device is shown.
【0019】本実施例におけるキャラクタ表示装置は、
ホストコンピュータ等の上位装置からの指令により、2
値のキャラクタイメージを表示したり、あるいは輪郭付
近を中間調で表現した多階調のキャラクタイメージを表
示しうるように切り替え可能なものである。ここで、2
値のキャラクタイメージを表示する方式は、既に実用化
されている周知の技術であり、また、本発明の主たる部
分ではないため、説明は省略する。以下、本実施例にお
ける輪郭付近を中間調で表現した多階調のキャラクタイ
メージを生成する処理に関連する部分ついてのみ、説明
する。The character display device in this embodiment is
2 according to a command from a host device such as a host computer
It is possible to switch so as to display a value character image, or to display a multi-gradation character image in which the vicinity of the contour is expressed in halftone. Where 2
The method of displaying the character image of the value is a well-known technique that has already been put into practical use, and is not the main part of the present invention, so the description thereof will be omitted. Only the part related to the process of generating a multi-tone character image in which the vicinity of the contour is expressed in halftone in the present embodiment will be described below.
【0020】図1は本キャラクタ表示装置の構成を示す
ブロック図を示し、中央処理装置(CPU)10には、
プログラムメモリである12と、ワーキングメモリ14
と、フォントメモリ16と、出力イメージメモリ18
と、入力部112と、表示装置としてのディスプレイ制
御部114及びCRT115並びにプリンタ制御部11
7及びインクジェットプリンタ118とがバス110で
それぞれ接続されている。FIG. 1 is a block diagram showing the structure of the present character display device. The central processing unit (CPU) 10 includes:
Program memory 12 and working memory 14
, Font memory 16 and output image memory 18
An input unit 112, a display control unit 114 and a CRT 115 as a display device, and a printer control unit 11.
7 and the inkjet printer 118 are connected by a bus 110.
【0021】CPU10は、本実施例の装置の機能を実
現するための制御を行うものであり、プログラムメモリ
12は、読み出し専用メモリ(ROM)で構成され、C
PU10で行う制御の手続きを定義したプログラムを記
憶するものである。また、ワーキングメモリ14は、プ
ログラムメモリ12に記憶されたプログラムの処理をC
PU10で実行する際の一時的なデータを格納するもの
であり、後述する本実施例における処理で使用する単調
バッファメモリ141、階調バッファメモリA142及
び階調バッファメモリB143を含んでいる。The CPU 10 controls to realize the functions of the apparatus of this embodiment, and the program memory 12 is composed of a read-only memory (ROM), and C
It stores a program defining a control procedure performed by the PU 10. The working memory 14 also processes the programs stored in the program memory 12 by C.
It stores temporary data when it is executed by the PU 10, and includes a monotone buffer memory 141, a gradation buffer memory A142, and a gradation buffer memory B143 used in the processing in this embodiment described later.
【0022】フォントメモリ16は、2値キャラクタイ
メージデータと、特定画素データとをキャラクタ毎に記
憶する。この2値キャラクタイメージデータは、キャラ
クタの形状を出力画素のオン/オフの2値で表現するデ
ータである。また、特定画素データは、キャラクタの境
界を表わすドットでありながら、中間調で表現されてな
い画素の位置を示す情報である。すなわち、図9のキャ
ラクタを例にあげると、図9の(d)における画素10
0の位置を表わす情報である。この情報は、キャラクタ
毎に複数記憶可能なように構成されている。The font memory 16 stores binary character image data and specific pixel data for each character. This binary character image data is data that represents the shape of the character by the binary value of ON / OFF of the output pixel. Further, the specific pixel data is information indicating the position of a pixel which is not a halftone but is a dot which represents the boundary of the character. That is, taking the character of FIG. 9 as an example, the pixel 10 in FIG.
This information represents the position of 0. A plurality of this information can be stored for each character.
【0023】また、出力イメージメモリ18は、本実施
例の処理によって生成された階調キャラクタデータを記
憶する。入力部112は、出力すべきキャラクタのキャ
ラクタコード及び合成フラグを入力する。合成フラグは
後述する本実施例中の処理で用いる情報であり、オンで
あれば合成することを指示し、オフであれば合成しない
ことを指示する情報である。ディスプレイ制御部114
は、出力イメージメモリ18に記憶された階調キャラク
タデータを読出し、CRT115上に表示させる。同様
に、プリンタ制御部117は、出力イメージメモリ18
に記憶された階調キャラクタデータを読出し、インクジ
ェットプリンタ118にて用紙等の被記録媒体に印刷表
示させる。尚、階調表現された画像をCRT115やイ
ンクジェットプリンタ118にて表示する処理に関して
は、既に様々な方式で実用化されている技術であり、ま
た、本発明の主たる部分ではない。従って、本発明の趣
旨を明確にするためにも詳細な説明は省略する。The output image memory 18 also stores gradation character data generated by the processing of this embodiment. The input unit 112 inputs the character code of the character to be output and the synthesis flag. The combination flag is information used in the process in the present embodiment described later, and is information indicating that the combination is performed if the flag is on, and that no combination is performed if the flag is off. Display controller 114
Displays the gradation character data stored in the output image memory 18 and displays it on the CRT 115. Similarly, the printer controller 117 controls the output image memory 18
The gradation character data stored in is read out, and the inkjet printer 118 prints and displays it on a recording medium such as paper. It should be noted that the processing of displaying an image expressed in gradation on the CRT 115 or the inkjet printer 118 is a technology that has already been put to practical use in various systems, and is not the main part of the present invention. Therefore, detailed description is omitted for the purpose of clarifying the gist of the present invention.
【0024】以下に、本実施例で使用する、キャラクタ
データの論理的な形式について詳細に説明する。前述し
たように、本実施例で扱うキャラクタのイメージには、
2値キャラクタイメージと階調キャラクタイメージとが
ある。これらは共に、キャラクタのイメージを構成する
各画素の情報であり、2値キャラクタイメージデータは
画素の濃度をオン/オフの2値で表示した形状データで
あり、オンを1で、オフを0で示す。また、階調キャラ
クタイメージデータは画素の濃度を数値で、それぞれ表
した形状データである。図2(a)に2値キャラクタイ
メージの概念図を、図2(b)に階調キャラクタイメー
ジの概念図をそれぞれ示す。画素を表す格子内に記され
た数値は、各画素に付された情報を示している。The logical format of character data used in this embodiment will be described in detail below. As described above, the image of the character handled in this embodiment includes
There are binary character images and gradation character images. Both of these are information of each pixel forming the image of the character, and the binary character image data is shape data in which the density of the pixel is displayed in binary of ON / OFF, and ON is 1 and OFF is 0. Show. Further, the gradation character image data is shape data in which the density of each pixel is represented by a numerical value. 2A shows a conceptual diagram of a binary character image, and FIG. 2B shows a conceptual diagram of a gradation character image. Numerical values written in the grid representing the pixels indicate information attached to each pixel.
【0025】図2(a)に示す2値キャラクタデータ
は、1でオンを0でオフを表しており、図2(b)の階
調キャラクタデータは、0〜15の数値でその画素の濃
度を表している。濃度15は最高濃度であり、濃度0は
最低濃度で現実には非視認的な画素となり、濃度7は中
間階調の濃度を示す。以下に、本実施例の2値キャラク
タイメージを階調キャラクタイメージに変換する処理
を、図3〜図5に示すフローチャートを参照しながら説
明する。なお、この処理は、入力部112よりキャラク
タコード、合成フラグが入力された上で開始する。The binary character data shown in FIG. 2A represents ON when 1 and OFF when 0, and the gradation character data in FIG. 2B is a numerical value of 0 to 15 and represents the density of the pixel. Is represented. Density 15 is the highest density, density 0 is the lowest density and is an invisible pixel in reality, and density 7 is the density of an intermediate gradation. The process of converting the binary character image into the gradation character image of this embodiment will be described below with reference to the flowcharts shown in FIGS. It should be noted that this process starts after the character code and the synthesis flag are input from the input unit 112.
【0026】図3に示すように、処理が開始されると、
フォントメモリ16より入力部112より2値キャラク
タデータを読み出す処理を実行する(S31)。次い
で、読み出した2値キャラクタイメージのオンの状態に
ある特定の画素をオフの状態に設定することにより、補
正2値キャラクタデータを生成する処理を実行する(S
32)。この処理は補正2値キャラクタデータ生成手段
に相当し、図4にサブルーチンフローチャートにて詳細
を後述する。As shown in FIG. 3, when the process is started,
A process of reading binary character data from the input unit 112 from the font memory 16 is executed (S31). Next, a process of generating the corrected binary character data is executed by setting a specific pixel in the ON state of the read binary character image to the OFF state (S).
32). This processing corresponds to the corrected binary character data generating means, and details thereof will be described later with reference to a subroutine flowchart in FIG.
【0027】この処理の次に、2値キャラクタイメージ
のオンである画素を濃度15で、オフである画素を濃度
0で表現することで多階調化した階調キャラクタデータ
を生成し(S33)、生成された階調キャラクタデータ
はワーキングメモリ14内の単調バッファメモリ14a
に格納する。従って、S33は単調キャラクタデータ生
成手段となる。After this processing, the on-pixels of the binary character image are expressed with a density of 15 and the off-pixels are expressed with a density of 0 to generate multi-gradation gradation character data (S33). The generated gradation character data is a monotone buffer memory 14a in the working memory 14.
To be stored. Therefore, S33 becomes a monotone character data generation means.
【0028】次いで、S34にて前記単調バッファメモ
リ14a内のイメージを読出し、隣接する画素を左隣と
指定して、輪郭線付近を中間調で表現した階調キャラク
タイメージAを生成し、ワーキングメモリ14内の階調
バッファメモリA14bに格納する処理を実行するので
ある。なお、このS34の処理は、横方向階調キャラク
タ生成手段であり、この処理についての詳細は後述す
る。Next, in S34, the image in the monotone buffer memory 14a is read out, the adjacent pixel is designated as the left neighbor, and the gradation character image A in which the vicinity of the contour line is expressed in halftone is generated, and the working memory is created. That is, the processing for storing in the gradation buffer memory A14b in 14 is executed. The process of S34 is a horizontal gradation character generating means, and details of this process will be described later.
【0029】次いで、入力部112より入力した合成フ
ラグを調べ、合成を要するか否かを判定する(S3
5)。ここで合成フラグがオフであれば(S35:n
o)、S36を実行する。また、オンであれば(S3
5:yes )、S37〜S38を実行する。S36は、ワ
ーキングメモリ14の階調バッファメモリA14b内に
格納されている階調キャラクタデータAを出力イメージ
メモリ18に書き込む処理である。Next, the composition flag input from the input unit 112 is checked to determine whether composition is required (S3).
5). If the synthesis flag is off here (S35: n
o), execute S36. If it is on (S3
5: yes), S37 to S38 are executed. S36 is a process of writing the gradation character data A stored in the gradation buffer memory A14b of the working memory 14 into the output image memory 18.
【0030】また、S37は、ワーキングメモリ14の
単調バッファメモリ14a内のイメージデータを読み出
し、隣接画素を上隣と指定して輪郭線付近を中間調で表
現した階調キャラクタデータBを生成し、ワーキングメ
モリ14内の階調バッファメモリB143に格納する処
理である。なお、この処理の詳細についても、S34の
処理と同様に後述する。In step S37, the image data in the monotone buffer memory 14a of the working memory 14 is read, the adjacent pixels are designated as the upper neighbors, and the gradation character data B in which the vicinity of the contour line is expressed in halftone is generated, This is a process of storing in the gradation buffer memory B143 in the working memory 14. The details of this process will be described later as with the process of S34.
【0031】S38は、ワーキングメモリ内の階調バッ
ファメモリA14b内の階調キャラクタデータAと、階
調バッファメモリB14c内の階調キャラクタデータB
とを合成して、階調キャラクタデータCを生成し、出力
イメージメモリ18に書き込む処理である。この合成
は、階調キャラクタデータCの各画素の濃度を、対応す
る階調キャラクタデータAの画素の濃度と、階調キャラ
クタデータBの画素の濃度の内、少なくとも一方が中間
濃度である場合には中間濃度とし、それ以外の場合には
予め定められた濃度とすることで合成することをいう。In step S38, the gradation character data A in the gradation buffer memory A14b in the working memory and the gradation character data B in the gradation buffer memory B14c.
Is a process of synthesizing and to generate the gradation character data C and writing the same in the output image memory 18. This combination is performed when the density of each pixel of the gradation character data C is an intermediate density in at least one of the density of the pixel of the corresponding gradation character data A and the density of the pixel of the gradation character data B. Means an intermediate density, and in other cases, a predetermined density is used for synthesis.
【0032】なお、この方式は、請求項5に相当する構
成となる。すなわち、S33が単調キャラクタ生成手段
に、S34が横方向階調キャラクタ生成手段に、S35
が縦方向階調キャラクタ生成手段に、S38が合成階調
キャラクタ生成手段に、S35〜S38が選択階調キャ
ラクタ生成手段に、また、入力部112より入力される
合成フラグが合成指示手段に対応する。This system has a structure corresponding to claim 5. That is, S33 is a monotone character generation means, S34 is a lateral gradation character generation means, and S35.
Indicates a vertical gradation character generating means, S38 corresponds to a combined gradation character generating means, S35 to S38 correspond to a selected gradation character generating means, and a combining flag input from the input section 112 corresponds to a combining instructing means. .
【0033】次に、上述したS32の補正2値キャラク
タデータ生成処理について図4のサブルーチンフローチ
ャートを参照しながら説明する。補正2値キャラクタデ
ータ生成処理を開始すると、まず、着目画素位置を処理
開始位置の画素を指すように初期化する(S41)。次
いで、着目画素が特定画素かどうかを識別する(S4
2)。即ち、その着目画素の位置情報がフォントメモリ
16内の図示しない特定画素データに記憶されているか
どうかを検索し、記憶されていれば(S42:yes )、
特定画素をオフにする処理を実行し(S43)、そのオ
フ処理が全画素について終了したか否を判断し(S4
4)、全画素について終了していないときには(S4
4:no)、着目画素を次の画素の位置に移動させた後
(S45)、S42に戻って処理(S42〜S44)を
繰り返すのである。Next, the correction binary character data generation process of S32 described above will be described with reference to the subroutine flowchart of FIG. When the corrected binary character data generation process is started, first, the target pixel position is initialized to point to the pixel at the processing start position (S41). Next, it is identified whether the pixel of interest is a specific pixel (S4
2). That is, it is searched whether the position information of the pixel of interest is stored in the specific pixel data (not shown) in the font memory 16, and if it is stored (S42: yes),
A process of turning off a specific pixel is executed (S43), and it is determined whether or not the off process is completed for all pixels (S4).
4) If not all pixels have been completed (S4
4: no), after moving the pixel of interest to the position of the next pixel (S45), the process returns to S42 and the processes (S42 to S44) are repeated.
【0034】特定画素が記憶されていなければ(S4
2:no)、全画素について終了したか否を判断し(S4
4)、全画素について終了していないときには(S4
4:no)、着目画素を次の画素の位置に移動させた後
(S45)、S42に戻って処理(S42〜S44)を
繰り返すのである。なお、S42は、特定画素識別手段
に対応し、S43は補正2値キャラクタデータ生成手段
に対応する。If the specific pixel is not stored (S4
2: No), and it is determined whether or not all the pixels are finished (S4).
4) If not all pixels have been completed (S4
4: no), after moving the pixel of interest to the position of the next pixel (S45), the process returns to S42 and the processes (S42 to S44) are repeated. Note that S42 corresponds to the specific pixel identifying means, and S43 corresponds to the corrected binary character data generating means.
【0035】次に、上述したS34及びS37の階調キ
ャラクタデータを生成する処理について、図5のサブル
ーチンフローチャートを参照しながら説明する。なお、
説明を簡潔にするために、処理の流れは、S34で行う
隣接画素を横方向である左隣に設定した例で説明する。
この隣接画素を右隣に設定したり、また、上下等の縦方
向に設定することは、単に隣接画素のデータ読み方の相
違であるため、当該業者であれば容易に想像できる。従
って、ここでは隣接画素を左隣方向に設定した例につい
て説明することでこの全ての場合について説明したこと
とする。Next, the process of generating the gradation character data in S34 and S37 described above will be described with reference to the subroutine flowchart of FIG. In addition,
In order to simplify the description, the flow of processing will be described by using an example in which the adjacent pixel set in S34 is set to the left side in the horizontal direction.
Setting the adjacent pixel to the right next to the pixel or setting it in the vertical direction such as up and down is simply a difference in the data reading of the adjacent pixel, and can be easily imagined by those skilled in the art. Therefore, it is assumed that all of these cases have been described by describing an example in which the adjacent pixel is set to the left adjacent direction.
【0036】図5において階調キャラクタデータ生成処
理(S34)が開始されると、着目画素位置を処理開始
位置の画素に指定するように初期化する(S51)。次
いで、ワーキングメモリ14内の単調バッファメモリ1
4aにおける着目画素及びその隣接画素である左隣の画
素の濃度を読出し(S52)、さらに、読み出した中間
濃度としての濃度の平均値を算出し(S53)、それを
着目画素の濃度として、階調バッファメモリA14bに
おける対応する画素の濃度として格納する(S54)。When the gradation character data generation processing (S34) is started in FIG. 5, initialization is performed so that the pixel position of interest is designated as the pixel at the processing start position (S51). Then, the monotonic buffer memory 1 in the working memory 14
4a, the densities of the pixel of interest and the adjacent pixel to the left of the pixel of interest are read out (S52), and the average value of the densities as the read intermediate densities is calculated (S53). It is stored as the density of the corresponding pixel in the tone buffer memory A14b (S54).
【0037】そして、全画素について処理が終了したか
否かを判定し(S55)、終了していなければ(S5
5:no)、着目画素の位置を次の画素の位置に移動して
(S56)、S52以降の処理を繰り返す。なお、S5
3は、濃度算出手段(横方向濃度算出手段、縦方向濃度
算出手段)に対応している。本実施例では、S53で、
着目画素の濃度と隣接画素の濃度との平均値を算出する
ことで着目画素の濃度を求めたが、S53は、着目画素
の濃度と隣接画素との濃度の予め設定した所定割合の中
間値を算出する処理であり、従って、この割合はどのよ
うにも変更可能である。Then, it is determined whether or not the processing has been completed for all pixels (S55), and if not completed (S5).
5: no), the position of the pixel of interest is moved to the position of the next pixel (S56), and the processing from S52 onward is repeated. Note that S5
Reference numeral 3 corresponds to density calculating means (horizontal density calculating means, vertical density calculating means). In this embodiment, in S53,
The density of the pixel of interest was obtained by calculating the average value of the density of the pixel of interest and the density of the adjacent pixel. In S53, the intermediate value of a preset predetermined ratio of the density of the pixel of interest and the density of the adjacent pixel is calculated. This is a calculation process, and thus this ratio can be changed in any way.
【0038】この中間濃度算出処理を図6を用いて、更
に具体的に説明する。なお、理解を容易にするために図
6(a)及び図6(b)ではキャラクタイメージの一部
を切り出して示している。図6(a)は、画素61から
画素67までの横1列状の単調キャラクタイメージを示
し、図6(b)は生成される画素70から画素75まで
の横1列状の階調キャラクタイメージをそれぞれ表わし
ており、画素62は画素70に、画素63は画素71
に、画素64は画素72に、画素65は画素73に、画
素66は画素74に、画素67は画素75に、それぞれ
対応している。この図において、まず着目画素位置を画
素62に設定する(S51)。このとき左隣の画素は、
画素61である。次に着目画素である画素62の濃度0
と、隣接画素である画素61の濃度0を読み出す(S5
2)。2つの濃度の平均を算出する(S53)と0とな
る。次にこの値を階調キャラクタデータの対応した画素
70の濃度として階調バッファメモリA14bに書き込
む(S54)。まだ処理していない画素が残っているの
で(S55)、着目画素を次の画素63にセットし(S
56)、その画素についての処理を行う。画素63の左
隣り画素は画素62である。これらの濃度を読み出し
(S52)、濃度の平均127を算出し(S53)、画
素71の濃度として階調バッファメモリA14bに格納
する(S54)。このような処理を繰り返すことで、図
6(a)の単調キャラクタイメージより図6(b)の階
調キャラクタイメージを生成するのである。The intermediate density calculation process will be described more specifically with reference to FIG. In order to facilitate understanding, a part of the character image is cut out and shown in FIGS. 6 (a) and 6 (b). FIG. 6A shows a monotone character image in a horizontal row of pixels 61 to 67, and FIG. 6B shows a gradation character image in a horizontal row of pixels 70 to 75 generated. Pixel 62 is pixel 70, and pixel 63 is pixel 71.
The pixel 64 corresponds to the pixel 72, the pixel 65 corresponds to the pixel 73, the pixel 66 corresponds to the pixel 74, and the pixel 67 corresponds to the pixel 75. In this figure, first, the pixel position of interest is set to the pixel 62 (S51). At this time, the pixel on the left is
The pixel 61. Next, the density of the pixel 62 of interest is 0
And the density 0 of the pixel 61 which is the adjacent pixel is read (S5
2). When the average of the two concentrations is calculated (S53), it becomes 0. Next, this value is written in the gradation buffer memory A14b as the density of the pixel 70 corresponding to the gradation character data (S54). Since there are still unprocessed pixels (S55), the pixel of interest is set to the next pixel 63 (S55).
56), the process for the pixel is performed. The pixel adjacent to the left of the pixel 63 is the pixel 62. These densities are read (S52), the average 127 of the densities is calculated (S53), and is stored in the gradation buffer memory A14b as the densities of the pixels 71 (S54). By repeating such processing, the gradation character image of FIG. 6B is generated from the monotone character image of FIG. 6A.
【0039】次に、図2及び図7を用いて、前述したS
31〜S38の階調キャラクタデータ変換処理を具体的
に説明する。なお、前述した様に図2(a)は6×6ド
ットパターンの2値キャラクタイメージをオン(1)及
びオフ(0)で示すデータ図である。図2(b)は最高
濃度15、最低濃度0とし輪郭線付近を中間調(中間濃
度7)で表現した階調キャラクタイメージのデータを、
すなわち、S31〜S38の処理における階調キャラク
タイメージCに相当するデータを示す。即ち、図2
(b)はCRT115またはインクジェットプリンタ1
1に出力(表示)されるキャラクタイメージのデータで
ある。Next, referring to FIG. 2 and FIG.
The gradation character data conversion processing of 31 to S38 will be specifically described. As described above, FIG. 2A is a data diagram showing the binary character image of the 6 × 6 dot pattern as ON (1) and OFF (0). FIG. 2B shows the data of the gradation character image in which the maximum density is 15 and the minimum density is 0, and the vicinity of the contour line is represented by halftone (intermediate density 7).
That is, the data corresponding to the gradation character image C in the processing of S31 to S38 is shown. That is, FIG.
(B) is CRT115 or inkjet printer 1
It is the data of the character image output (displayed) to 1.
【0040】さらに、図2(c)は補正2値キャラクタ
データを示した図である。また、図7(a)は、単調キ
ャラクタデータを、図7(b)は階調キャラクタイメー
ジAに相当するデータを示し、図7(c)は階調キャラ
クタイメージBに相当するデータをそれぞれ示す図であ
る。なお、このキャラクタに対応する図示しない特定画
素データは、図2の2値キャラクタイメージの画素10
1の位置をフォントメモリ16内に記憶している。Further, FIG. 2C is a diagram showing corrected binary character data. 7A shows monotone character data, FIG. 7B shows data corresponding to the gradation character image A, and FIG. 7C shows data corresponding to the gradation character image B. It is a figure. The specific pixel data (not shown) corresponding to this character is the pixel 10 of the binary character image of FIG.
The position of 1 is stored in the font memory 16.
【0041】図2及び図7に示すキャラクタを指すキャ
ラクタコード、合成フラグをオンに設定した情報を入力
部112より入力すると、この処理を開始する。先ず、
図2(a)に示す2値キャラクタデータをフォントメモ
リ16より読み出し(S31)、フォントメモリ16内
の図示しない特定画素データで示す画素を、すなわち、
図2(a)の画素101の画素をオフにすることで、図
2(c)に示すような補正2値キャラクタデータを生成
する(S32:S41〜45)。When the character code indicating the character shown in FIGS. 2 and 7 and the information in which the composition flag is set to ON are input from the input unit 112, this processing is started. First,
The binary character data shown in FIG. 2A is read from the font memory 16 (S31), and the pixel indicated by the specific pixel data (not shown) in the font memory 16 is
By turning off the pixel of the pixel 101 of FIG. 2A, the corrected binary character data as shown in FIG. 2C is generated (S32: S41 to 45).
【0042】次に、前記図2(c)に示すデータを多階
調化して図7(a)に示す単調キャラクタイメージのデ
ータを生成する。即ち、図2(a)でオン(1)の位置
を、第1濃度である濃度15に、オフ(0)の位置を第
2濃度である濃度0に置き換え、このデータ(単調キャ
ラクタイメージデータ)をワーキングメモリ14内の単
調バッファメモリ14aに格納する(S33)。Next, the data shown in FIG. 2 (c) is converted into multiple gradations to generate the data of the monotone character image shown in FIG. 7 (a). That is, in FIG. 2A, the on (1) position is replaced by the first density of 15 and the off (0) position is replaced by the second density of 0, and this data (monotone character image data) is replaced. Is stored in the monotonic buffer memory 14a in the working memory 14 (S33).
【0043】次に、前記図7(a)に示す単調キャラク
タイメージのデータにおいて、隣接画素を左隣に設定し
て図7(b)に示す階調キャラクタイメージAを生成
し、そのデータ(階調キャラクタデータA)をワーキン
グメモリ14内の階調バッファメモリA14bに記憶す
る(S34:S51〜56)。即ち、着目画素が濃度1
5であり、その左隣の画素が濃度0のときは、中間濃度
7として着目画素の濃度と設定する。同様に、着目画素
が濃度0であり、その左隣の画素が濃度15のときは、
中間濃度7として着目画素の濃度と設定する。従って、
前記特定画素101の濃度は7となる。Next, in the data of the monotone character image shown in FIG. 7A, the adjacent pixel is set to the left and the gradation character image A shown in FIG. The tone character data A) is stored in the gradation buffer memory A14b in the working memory 14 (S34: S51-56). That is, the pixel of interest has a density of 1
5 and the pixel on the left of the pixel has a density of 0, an intermediate density of 7 is set as the density of the pixel of interest. Similarly, when the pixel of interest has a density of 0 and the pixel to the left of it has a density of 15,
The density of the pixel of interest is set as the intermediate density 7. Therefore,
The density of the specific pixel 101 is 7.
【0044】次に、S35で合成フラグがオンであるた
め、図7(a)に示す単調キャラクタイメージのデータ
において、隣接画素を上隣に設定して図7(c)に示す
階調キャラクタイメージBを生成し、そのデータ(階調
キャラクタデータBをワーキングメモリ14内の階調バ
ッファメモリB14cに記憶する(S34、S37)。Next, since the composition flag is turned on in S35, in the data of the monotone character image shown in FIG. 7 (a), the adjacent pixels are set to the upper side and the gradation character image shown in FIG. 7 (c). B is generated and its data (gradation character data B is stored in the gradation buffer memory B14c in the working memory 14 (S34, S37).
【0045】即ち、この場合には、着目画素が濃度15
であり、その上隣の画素が濃度0のときは、中間濃度7
として着目画素の濃度と設定する。同様に、着目画素が
濃度0であり、その上隣の画素が濃度15のときは、中
間濃度7として着目画素の濃度と設定する。従って、前
記特定画素101の濃度は7となる。次に、ワーキング
メモリ14内の階調バッファメモリA14b内の図7
(b)の階調キャラクタデータA及び階調バッファメモ
リB14c内の図7(c)の階調キャラクタデータBと
の、各画素の濃度の少なくとも一方が中間濃度である場
合には中間濃度とし、それ以外の場合には予め定められ
た濃度とすることで、図2(b)の階調キャラクタイメ
ージCを生成し、そのデータ(階調キャラクタデータ
C)を出力イメージメモリ18に記憶するのである(S
38)。That is, in this case, the pixel of interest has a density of 15
And when the density of the adjacent pixel is 0, the intermediate density is 7
Is set as the density of the pixel of interest. Similarly, when the pixel of interest has a density of 0 and the pixel adjacent thereto has a density of 15, an intermediate density of 7 is set as the density of the pixel of interest. Therefore, the density of the specific pixel 101 is 7. Next, FIG. 7 in the grayscale buffer memory A14b in the working memory 14 will be described.
When at least one of the densities of each pixel of the gradation character data A of (b) and the gradation character data B of FIG. 7C in the gradation buffer memory B14c is an intermediate density, the intermediate density is set, In other cases, by setting the density to a predetermined value, the gradation character image C of FIG. 2B is generated and the data (gradation character data C) is stored in the output image memory 18. (S
38).
【0046】上述の処理により、図2(a)に示すL字
状のキャラクタは、その特定画素101の箇所(L字状
のキャラクタの水平部と垂直部との付け根部)も中間濃
度となって、このキャラクタの輪郭線の位置の濃度が全
て中間濃度に変換した出力が得られるのである。図8に
14×14ドットパターンによる別のキャラクタ(斜め
線のキャラクタ)におけるキャラクタイメージを示す。
図8(a)は上述したS31〜S33で得られた単調キ
ャラクタイメージを、図8(b)は図8(a)データを
上述したS34の処理(横方向濃度算出処理)により加
工した階調キャラクタイメージAを示す。As a result of the above-described processing, the L-shaped character shown in FIG. 2A has an intermediate density at the location of the specific pixel 101 (the root portion between the horizontal portion and the vertical portion of the L-shaped character). As a result, an output in which all the densities at the positions of the contour lines of this character are converted into intermediate densities can be obtained. FIG. 8 shows a character image of another character (diagonal line character) having a 14 × 14 dot pattern.
FIG. 8A is a gradation obtained by processing the monotone character image obtained in S31 to S33 described above, and FIG. 8B is the gradation obtained by processing the data in FIG. 8A by the processing in S34 (lateral density calculation processing) described above. The character image A is shown.
【0047】前記単調キャラクタイメージにS37の処
理(縦方向濃度算出処理)を施した階調キャラクタイメ
ージBでは、図8(b)における画素102,103,
104で、中間濃度7となり、画素105で濃度0とな
るだけで、図8(b)に示した階調キャラクタイメージ
Aとごくわずかな相違しかない。従って、S38で得ら
れる階調キャラクタイメージCも階調キャラクタイメー
ジAとごくわずかな相違しかなくなることは明らかであ
る。In the gradation character image B obtained by subjecting the monotonic character image to the processing of S37 (vertical density calculation processing), the pixels 102, 103,
At 104, the intermediate density becomes 7, and at the pixel 105, only the density becomes 0, and there is only a slight difference from the gradation character image A shown in FIG. Therefore, it is clear that the gradation character image C obtained in S38 has only a slight difference from the gradation character image A.
【0048】ある程度表示(印字)品質を低下させてで
も、高速化が望まれる装置においては、このような場
合、すなわち、階調キャラクタイメージA、Bを生成
し、さらにそれらのデータを合成することで得られる階
調キャラクタイメージCの品質が、階調キャラクタイメ
ージA或いはBの品質と大きな相違が認められない場合
には、階調キャラクタイメージA或いはBをその出力と
することも可能である。In an apparatus in which high speed is desired even if the display (printing) quality is deteriorated to some extent, in such a case, that is, the gradation character images A and B are generated, and the data are combined. If the quality of the gradation character image C obtained in 1 is not significantly different from the quality of the gradation character image A or B, the gradation character image A or B can be output.
【0049】これは、合成フラグをオフにして入力部1
12より情報を入力することで、省略可能な処理を省略
し、すなわち、合成フラグがオフの場合は、階調キャラ
クタイメージAのデータをそのまま出力イメージメモリ
18に書き込むことで(S35、S36)、出力データ
としての階調キャラクタイメージを形成できる。また、
入力する情報量を削減するため、また、処理の単純化の
ため、上述した合成フラグを用いずに、階調キャラクタ
イメージのデータ(階調キャラクタデータ)を出力イメ
ージメモリ18内に形成することも可能である。すなわ
ち、図3に示したフローチャートにおける、S35及び
S36の処理を省略することで可能となる。This is because the synthesis flag is turned off and the input unit 1
By inputting information from 12, the optional processing is omitted, that is, when the synthesis flag is off, the data of the gradation character image A is written as it is in the output image memory 18 (S35, S36). A gradation character image can be formed as output data. Also,
In order to reduce the amount of information to be input and to simplify the processing, the data of the gradation character image (gradation character data) may be formed in the output image memory 18 without using the above-described synthesis flag. It is possible. That is, it becomes possible by omitting the processes of S35 and S36 in the flowchart shown in FIG.
【0050】また、簡易的な階調キャラクタイメージで
充分であり、かつ、より高速な処理を要する装置に本発
明を適用する場合には、上述したS31〜S34までの
処理で生成された階調キャラクタイメージAのデータを
そのまま出力イメージメモリ18に格納するようにする
こともできる。なお、この方式は請求項1に相当する構
成となり、S34は請求項中の階調キャラクタ生成手段
に対応する。Further, when the present invention is applied to an apparatus in which a simple gradation character image is sufficient and requires a higher speed processing, the gradation generated by the processing of S31 to S34 described above. The data of the character image A may be stored in the output image memory 18 as it is. This system has a configuration corresponding to claim 1, and S34 corresponds to the gradation character generating means in the claim.
【0051】本実施の形態では、フォントメモリ16内
の図示しない特定画素データを参照して、2値キャラク
タデータの状態で、オンの状態にある画素をオフに変更
したが、これに限らず、S32とS33の処理を入れ替
えても本発明の趣旨に何ら影響はない。この処理は補正
単調キャラクタ生成手段に対応している。なお、本実施
例では、横方向階調キャラクタ生成手段により、隣接画
素を横方向に設定して階調キャラクタデータAを最初に
得て、次いで、隣接画素を縦方向に設定して縦方向階調
キャラクタ生成手段により、階調キャラクタデータBを
得るようにしたが、これを逆にして、まず、縦方向階調
キャラクタデータを生成した後に、横方向階調キャラク
タデータを生成するように構成しても良いことはいうま
でもない。In the present embodiment, the pixel in the ON state is changed to OFF in the binary character data state by referring to the specific pixel data (not shown) in the font memory 16, but the present invention is not limited to this. Swapping the processes of S32 and S33 does not have any effect on the gist of the present invention. This processing corresponds to the corrected monotone character generating means. In the present embodiment, the horizontal gradation character generation means sets the adjacent pixels in the horizontal direction to obtain the gradation character data A first, and then sets the adjacent pixels in the vertical direction to set the vertical floor. The tone character generating means obtains the tone character data B. However, the tone character data B is reversed. First, the vertical tone character data is generated and then the horizontal tone character data is generated. It goes without saying that it is okay.
【0052】さらに、本実施例では、2値キャラクタイ
メージは、予めフォントデータとしてフォントメモリ1
6内に記憶されたものを用いた例で説明したが、これに
限らず、フォントメモリ16にはアウトラインフォント
を記憶し、アウトラインフォントをビットマップデータ
に変換するラスタライザを備え、そこで得られたビット
マップを2値キャラクタイメージとして用いることも可
能である。なお、このラスタライザは、既に実用化され
ている公知の技術であり、かつ、本発明の主たる部分で
はないため説明は省略する。Furthermore, in this embodiment, the binary character image is previously stored in the font memory 1 as font data.
Although an example using the one stored in 6 has been described, the present invention is not limited to this, and the font memory 16 is provided with a rasterizer for storing an outline font and converting the outline font into bitmap data. It is also possible to use the map as a binary character image. Note that this rasterizer is a well-known technique that has already been put into practical use, and is not a main part of the present invention, so a description thereof will be omitted.
【0053】その他にも本実施の形態は、本発明の趣旨
を逸脱しない範囲で種々の変更が可能である。Besides, the present embodiment can be variously modified without departing from the spirit of the present invention.
【0054】[0054]
【発明の効果】以上説明したことから明かなように、請
求項1及び請求項3に記載の発明によれば、各画素にお
いて、高々隣接画素の濃度との所定割合を計算するのみ
で各画素の濃度を算出することができるため、2値キャ
ラクタデータを、その輪郭付近を中間調で階調表現した
階調キャラクタデータに変換する処理において、低演算
処理能力の装置であっても良好に機能し、かつ、高速に
処理可能で高品位な出力結果を得ることができるキャラ
クタデータ変換装置を提供することができるという効果
を奏する。As is apparent from the above description, according to the first and third aspects of the present invention, each pixel is calculated only by calculating a predetermined ratio with respect to the density of an adjacent pixel. Since it is possible to calculate the density of, the conversion of binary character data into gradation character data in which the vicinity of the contour is expressed in gradation in halftone functions well even with a device with low arithmetic processing capability. In addition, it is possible to provide a character data conversion device that can process at high speed and can obtain a high-quality output result.
【0055】また、請求項2及び請求項4に記載の発明
のキャラクタデータ変換装置によれば、請求項1の発明
同様、高速に処理可能であり、かつ、縦方向と横方向と
に階調キャラクタデータを変換するので、より美しい階
調キャラクタイメージを得ることが可能なデータ変換装
置を提供することができる。さらに、請求項5の発明の
データ変換装置によれば、冗長な処理を省くことで、請
求項2及び4の発明よりもさらに高速処理可能なデータ
変換装置を提供することができ、かつ、上述のキャラク
タデータ変換装置により得られた階調キャラクタデータ
は高品位となるという効果を奏するのである。According to the character data converters of the second and fourth aspects of the invention, like the invention of the first aspect, high-speed processing is possible, and gradation is produced in the vertical and horizontal directions. Since the character data is converted, it is possible to provide a data conversion device capable of obtaining a more beautiful gradation character image. Further, according to the data conversion device of the invention of claim 5, it is possible to provide a data conversion device capable of processing at higher speed than that of the inventions of claims 2 and 4 by omitting redundant processing, and The gradation character data obtained by this character data conversion device has the effect of being of high quality.
【図1】本実施形態の階調キャラクタデータ変換処理装
置のブロック図である。FIG. 1 is a block diagram of a gradation character data conversion processing device of the present embodiment.
【図2】(a)は2値キャラクタイメージのデータの
図、(b)は本実施形態による階調キャラクタイメージ
のデータの図、(c)は補正2値キャラクタイメージの
データの図である。2A is a diagram of binary character image data, FIG. 2B is a diagram of gradation character image data according to the present embodiment, and FIG. 2C is a diagram of corrected binary character image data.
【図3】本実施形態による階調キャラクタデータ変換処
理のメインフローチャートである。FIG. 3 is a main flowchart of a gradation character data conversion process according to this embodiment.
【図4】本実施形態の補正2値キャラクタイメージ生成
処理のサブルーチンフローチャートである。FIG. 4 is a subroutine flowchart of a corrected binary character image generation process of this embodiment.
【図5】本実施形態の階調キャラクタイメージ生成処理
のサブルーチンフローチャートである。FIG. 5 is a subroutine flowchart of a gradation character image generation process of this embodiment.
【図6】本実施形態の階調キャラクタイメージ生成処理
を具体的に説明するための図である。FIG. 6 is a diagram for specifically explaining the gradation character image generation processing of the present embodiment.
【図7】(a)は本実施形態の単調キャラクタイメージ
のデータの図、(b)は階調キャラクタイメージAのデ
ータ図、(c)は階調キャラクタイメージBのデータ図
である。7A is a diagram of data of a monotone character image of the present embodiment, FIG. 7B is a data diagram of a gradation character image A, and FIG. 7C is a data diagram of a gradation character image B.
【図8】(a)は他の実施例における単調キャラクタイ
メージのデータの図、(b)は階調キャラクタイメージ
Aのデータ図である。8A is a diagram of data of a monotone character image in another embodiment, and FIG. 8B is a data diagram of a gradation character image A.
【図9】従来技術によるキャラクタデータ変換処理によ
るキャラクタイメージの図であって(a)は単調キャラ
クタデータの図、(b)は階調キャラクタデータAの
図、(c)は階調キャラクタデータBの図、(d)は出
力すべき階調キャラクタデータの図である。9A and 9B are diagrams of a character image obtained by character data conversion processing according to the related art, where FIG. 9A is a diagram of monotone character data, FIG. 9B is a diagram of gradation character data A, and FIG. 9C is gradation character data B. 2D is a diagram of gradation character data to be output.
S32 補正2値キャラクタ生成手段 S33 単調キャラクタ生成手段 S53 濃度算出手段 S34 横方向階調キャラクタ生成手段 S35 合成指示手段 S37 縦方向階調キャラクタ生成手段 S38 合成階調キャラクタ生成手段 S53 濃度算出手段 S32 Corrected binary character generation means S33 Monotonic character generation means S53 Density calculation means S34 Horizontal gradation character generation means S35 Synthesis instruction means S37 Vertical gradation character generation means S38 Synthetic gradation character generation means S53 Density calculation means
Claims (6)
情報で表した2値のビットマップで定義する2値キャラ
クタデータを、画素の濃度の情報で表した多階調のイメ
ージデータで定義する階調キャラクタデータに変換する
キャラクタデータ変換装置において、 2値キャラクタデータにおける前記キャラクタの形状の
うちの特定の画素を識別する特定画素識別手段と、 特定画素識別手段によって特定の画素と識別された画素
をオフの状態にした補正2値キャラクタデータを生成す
る補正2値キャラクタ生成手段と、 補正2値キャラクタ生成手段で生成された補正2値キャ
ラクタデータの画素のうちオンの状態にある画素を予め
定められた第1濃度で表現し、オフの状態にある画素を
予め定められた第2濃度でそれぞれ表現した多階調のイ
メージデータである単調キャラクタデータを生成する単
調キャラクタ生成手段と、 前記キャラクタの形状の1画素を指定すると、単調キャ
ラクタデータにおける指定された画素の濃度と、単調キ
ャラクタデータにおける予め定められた方向に隣接する
画素の濃度との所定割合の中間濃度を算出する濃度算出
手段と、 濃度算出手段に各画素を指定することで得られた中間濃
度で当該各画素を表現した多階調のイメージデータであ
る階調キャラクタデータを生成する階調キャラクタ生成
手段とを備えたことを特徴とするキャラクタデータ変換
装置。1. Binary character data in which a character shape is defined by a binary bit map representing pixel on / off information is defined by multi-gradation image data represented by pixel density information. In a character data conversion device for converting to gradation character data, a specific pixel identifying means for identifying a specific pixel in the shape of the character in the binary character data, and a pixel identified as a specific pixel by the specific pixel identifying means. The corrected binary character generation means for generating the corrected binary character data in the OFF state, and the pixel in the ON state among the pixels of the corrected binary character data generated by the corrected binary character generation means are determined in advance. Image of the multi-gradation image in which the pixel in the off state is expressed in the predetermined first density and the pixel in the off state is expressed in the predetermined second density. When a monotonic character generation unit that generates monotone character data that is data is designated and one pixel of the shape of the character is designated, the density of the designated pixel in the monotone character data is adjacent to the monotone character data in a predetermined direction. Density calculating means for calculating an intermediate density of a predetermined ratio with the density of the pixel, and a multi-gradation image data representing each pixel with the intermediate density obtained by designating each pixel in the density calculating means A character data conversion device, comprising: a gradation character generation means for generating gradation character data.
情報で表した2値のビットマップで定義する2値キャラ
クタデータを、画素の濃度の情報で表した多階調のイメ
ージで定義する階調キャラクタデータに変換するキャラ
クタデータ変換装置において、 前記2値キャラクタデータにおけるキャラクタの形状の
特定の画素を識別する特定画素識別手段と、 前記特定画素識別手段によって特定の画素と識別された
画素をオフの状態にした補正2値キャラクタデータを生
成する補正2値キャラクタ生成手段と、 前記補正2値キャラクタ生成手段で生成された補正2値
キャラクタデータの画素のうちオンの状態にある画素を
予め定められた第1濃度で表現し、オフの状態にある画
素を予め定められた第2濃度でそれぞれ表現した多階調
のイメージデータである単調キャラクタデータを生成す
る単調キャラクタ生成手段と、 前記キャラクタの形状の1画素を指定すると、前記単調
キャラクタデータにおける指定された画素の濃度と、前
記単調キャラクタデータにおける予め定められた左或い
は右方向に隣接する画素の濃度との所定割合の中間濃度
を算出する横方向濃度算出手段と、 前記キャラクタの形状の1画素を指定すると、前記単調
キャラクタデータにおける指定された画素の濃度と、前
記単調キャラクタデータにおける予め定められた上或い
は下方向に隣接する画素の濃度との所定割合の中間濃度
を算出する縦方向濃度算出手段と、 前記横方向濃度算出手段に各画素を指定することで得ら
れた中間濃度で当該画素を表現した多階調のイメージデ
ータである横方向階調キャラクタデータを生成する横方
向階調キャラクタ生成手段と、 前記縦方向濃度算出手段に各画素を指定することで得ら
れた中間濃度で当該画素を表現した多階調のイメージデ
ータである縦方向階調キャラクタデータを生成する縦方
向階調キャラクタ生成手段と、 前記キャラクタ形状の各画素の濃度を、その画素と対応
する前記横方向階調キャラクタデータ及び前記縦方向階
調キャラクタデータにおける画素の濃度の、少なくとも
一方が前記中間濃度である場合には前記中間濃度で表現
し、それ以外の場合には前記横方向階調キャラクタデー
タ及び前記縦方向階調キャラクタデータにおける画素の
濃度のうちの予め定められた第1濃度または第2濃度で
それぞれ表現した多階調のイメージデータである階調キ
ャラクタデータを生成する合成階調キャラクタ生成手段
とを備えたことを特徴とするキャラクタデータ変換装
置。2. A floor for defining binary character data defined by a binary bit map in which a character shape is represented by pixel on / off information by a multi-gradation image represented by pixel density information. In a character data conversion device for converting tonality character data, a specific pixel identifying means for identifying a specific pixel of a character shape in the binary character data, and a pixel identified as a specific pixel by the specific pixel identifying means are turned off. The corrected binary character generation means for generating the corrected binary character data in the above state, and the pixel in the ON state among the pixels of the corrected binary character data generated by the corrected binary character generation means are predetermined. Image data of a multi-gradation in which the pixels in the off state are expressed in the first density and the pixels in the off state are expressed in the predetermined second density. A monotone character generating means for generating monotone character data, which is a data item, and when one pixel of the shape of the character is designated, the density of the designated pixel in the monotone character data and a predetermined left in the monotone character data. Alternatively, a lateral density calculating means for calculating an intermediate density of a predetermined ratio with the density of pixels adjacent to the right direction, and when one pixel of the shape of the character is designated, the density of the designated pixel in the monotone character data, By designating each pixel in the vertical density calculation means for calculating an intermediate density of a predetermined ratio with the density of a pixel adjacent in a predetermined upward or downward direction in the monotone character data, and by specifying each pixel in the horizontal density calculation means. The horizontal gradation character data that is multi-gradation image data expressing the pixel with the obtained intermediate density. And a vertical gradation character that is multi-gradation image data expressing the pixel with an intermediate density obtained by designating each pixel in the vertical density calculation means. Vertical gradation character generating means for generating data, and the density of each pixel of the character shape is at least the density of pixels in the horizontal gradation character data and the vertical gradation character data corresponding to the pixel. If one is the intermediate density, it is expressed by the intermediate density, and in the other cases, the predetermined density of the pixel density in the horizontal gradation character data and the vertical gradation character data is determined. A synthetic gradation character source for generating gradation character data, which is multi-gradation image data expressed in 1 density or 2 density, respectively. And a character data conversion device.
情報で表した2値のビットマップで定義する2値キャラ
クタデータを、画素の濃度の情報で表した多階調のイメ
ージで定義する階調キャラクタデータに変換するキャラ
クタデータ変換装置において、 前記2値キャラクタデータの画素のうちオンの状態にあ
る画素を予め定められた第1濃度で表現し、オフの状態
にある画素を予め定められた第2濃度でそれぞれ表現し
た多階調のイメージデータである単調キャラクタデータ
を生成する単調キャラクタ生成手段と、 単調キャラクタデータの形状の特定の画素を識別する特
定画素識別手段と、 特定画素識別手段によって特定の画素と識別された画素
を前記第2濃度で表現した補正単調キャラクタデータを
生成する補正単調キャラクタ生成手段と、 前記キャラクタの形状の1画素を指定すると、前記補正
単調キャラクタデータにおける指定された画素の濃度
と、前記補正単調キャラクタデータにおける予め定めら
れた方向に隣接する画素の濃度との所定割合の中間濃度
を算出する濃度算出手段と、 濃度算出手段に各画素を指定することで得られた濃度で
当該画素を表現した多階調のイメージデータである階調
キャラクタデータを生成する階調キャラクタ生成手段と
を備えたことを特徴とするキャラクタデータ変換装置。3. A floor in which binary character data defining a character shape by a binary bit map representing pixel on / off information is defined by a multi-gradation image represented by pixel density information. In a character data conversion device for converting tonal character data, among the pixels of the binary character data, pixels in an on state are expressed by a predetermined first density, and pixels in an off state are predetermined. By a monotone character generating means for generating monotone character data which is multi-tone image data expressed in the second density, a specific pixel identifying means for identifying a specific pixel in the shape of the monotone character data, and a specific pixel identifying means. Corrected monotone character generating means for generating corrected monotone character data in which the pixel identified as a specific pixel is expressed by the second density. And when one pixel of the shape of the character is designated, a predetermined ratio of the density of the designated pixel in the corrected monotone character data and the density of a pixel adjacent in a predetermined direction in the corrected monotone character data is intermediate. Density calculating means for calculating the density, and gradation character generating means for generating gradation character data, which is multi-tone image data expressing the pixel with the density obtained by designating each pixel in the density calculating means And a character data conversion device.
情報で表した2値のビットマップで定義する2値キャラ
クタデータを、画素の濃度の情報で表した多階調のイメ
ージで定義する階調キャラクタデータに変換するキャラ
クタデータ変換装置において、 前記2値キャラクタデータの画素のうちオンの状態にあ
る画素を予め定められた第1濃度で表現し、オフの状態
にある画素を予め定められた第2濃度でそれぞれ表現し
た多階調のイメージデータである単調キャラクタデータ
を生成する単調キャラクタ生成手段と、 前記単調キャラクタデータの形状の特定の画素を識別す
る特定画素識別手段と、 特定画素識別手段によって特定の画素と識別された画素
を前記第2濃度で表現した補正単調キャラクタデータを
生成する補正単調キャラクタ生成手段と、 前記キャラクタの形状の1画素を指定すると、前記補正
単調キャラクタデータにおける指定された画素の濃度
と、前記補正単調キャラクタデータにおける予め定めら
れた左或いは右方向に隣接する画素の濃度との所定割合
の中間濃度を算出する横方向濃度算出手段と、 前記キャラクタの形状の1画素を指定すると、前記補正
単調キャラクタデータにおける指定された画素の濃度
と、前記補正単調キャラクタデータにおける予め定めら
れた上或いは下方向に隣接する画素の濃度との所定割合
の中間濃度を算出する縦方向濃度算出手段と、 横方向濃度算出手段に各画素を指定することで得られた
中間濃度で当該画素を表現した多階調のイメージデータ
である横方向階調キャラクタデータを生成する横方向階
調キャラクタ生成手段と、 縦方向濃度算出手段に各画素を指定することで得られた
中間濃度で当該画素を表現した多階調のイメージデータ
である縦方向階調キャラクタデータを生成する縦方向階
調キャラクタ生成手段と、 前記キャラクタの形状の各画素の濃度を、その画素と対
応する横方向階調キャラクタデータ及び縦方向階調キャ
ラクタデータにおける画素の濃度のうち、少なくとも一
方が前記中間濃度である場合には前記中間濃度で表現
し、それ以外の場合には横方向階調キャラクタデータ及
び縦方向階調キャラクタデータにおける画素の濃度のう
ちの予め定められた第1濃度または第2濃度で、それぞ
れ表現した多階調のイメージデータである階調キャラク
タデータを生成する合成階調キャラクタ生成手段とを備
えたことを特徴とするキャラクタデータ変換装置。4. A floor in which binary character data defining a character shape by a binary bit map representing pixel on / off information is defined by a multi-gradation image represented by pixel density information. In a character data conversion device for converting tonal character data, among the pixels of the binary character data, pixels in an on state are expressed by a predetermined first density, and pixels in an off state are predetermined. Monotone character generating means for generating monotone character data, which is multi-tone image data expressed in the second density, specific pixel identifying means for identifying specific pixels in the shape of the monotone character data, and specific pixel identifying means. Corrected monotone character generation for generating corrected monotone character data in which a pixel identified as a specific pixel by the second density is expressed by the second density. And a density of a designated pixel in the corrected monotone character data and a density of a pixel adjacent in the predetermined left or right direction in the corrected monotone character data. When a horizontal direction density calculating means for calculating a predetermined ratio of intermediate density and one pixel of the shape of the character are specified, the density of the specified pixel in the corrected monotone character data and a predetermined value in the corrected monotone character data are determined. The vertical density calculation means for calculating the intermediate density of a predetermined ratio with the density of the pixel adjacent in the up or down direction, and the pixel expressed by the intermediate density obtained by designating each pixel in the horizontal density calculation means. Horizontal gradation character generating means for generating horizontal gradation character data, which is multi-gradation image data, and Vertical gradation character generation means for generating vertical gradation character data, which is multi-tone image data expressing the pixel with an intermediate density obtained by designating each pixel in the direction density calculation means, The density of each pixel of the character shape is set to the intermediate density when at least one of the density of the pixels in the horizontal gradation character data and the vertical gradation character data corresponding to the pixel is the intermediate density. In other cases, the multi-gradation image is expressed by the predetermined first density or the second density of the pixel densities in the horizontal gradation character data and the vertical gradation character data. A character data conversion device, comprising: a synthetic gradation character generating means for generating gradation character data which is data.
タ変換装置において、 前記合成階調キャラクタ生成手段による前記縦方向階調
キャラクタデータと横方向階調キャラクタデータを合成
するか否かを指示する合成指示手段と、 合成指示手段で合成しないことが指示された場合には、
前記縦方向階調キャラクタ生成手段或いは横方向階調キ
ャラクタ生成手段により生成された前記縦方向階調キャ
ラクタデータ或いは横方向階調キャラクタデータを、前
記合成指示手段で合成することが指示された場合には、
前記合成階調キャラクタ生成手段により生成された階調
キャラクタデータを、それぞれ出力する前記階調キャラ
クタデータとして生成する選択階調キャラクタ生成手段
と、を備えたことを特徴とするキャラクタデータ変換装
置。5. The character data conversion device according to claim 2, wherein an instruction is made as to whether or not said vertical gradation character data and horizontal gradation character data are to be combined by said combined gradation character generating means. If the composition instruction means and the composition instruction means not to compose,
When the vertical direction gradation character data or the horizontal direction gradation character data generated by the vertical direction gradation character generating means or the horizontal direction gradation character generating means is instructed to be combined by the combining instructing means. Is
A character data conversion device, comprising: selected gradation character generation means for generating the gradation character data generated by the combined gradation character generation means as the gradation character data to be output respectively.
手段、及び、前記縦方向算出手段における、所定割合の
中間濃度の算出を、平均値で算出することで行うことを
特徴とする請求項1乃至5に記載のキャラクタデータ変
換装置。6. The calculation of the intermediate density of a predetermined ratio in the density calculation means, the horizontal direction density calculation means, and the vertical direction calculation means is performed by calculating an average value. The character data conversion device according to any one of 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7258588A JPH09101770A (en) | 1995-10-05 | 1995-10-05 | Character data converter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7258588A JPH09101770A (en) | 1995-10-05 | 1995-10-05 | Character data converter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09101770A true JPH09101770A (en) | 1997-04-15 |
Family
ID=17322351
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7258588A Pending JPH09101770A (en) | 1995-10-05 | 1995-10-05 | Character data converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09101770A (en) |
-
1995
- 1995-10-05 JP JP7258588A patent/JPH09101770A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5565907A (en) | Image forming apparatus capable of producing high quality halftone images | |
| JPH1028230A (en) | Image processing method and apparatus | |
| KR20180087842A (en) | Image processing apparatus and method for controlling the same | |
| JPH11105349A (en) | PRINT PROCESSING SYSTEM, PRINT PROCESSING METHOD, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING PRINT PROCESSING CONTROL PROGRAM | |
| US20090201520A1 (en) | Image Processing for Determining Dot Formation States in Printing an Image | |
| EP0648041B1 (en) | Method of modifying base separation figure | |
| JPH09101770A (en) | Character data converter | |
| JPH10191090A (en) | Apparatus and method for manufacturing color conversion table and recording medium | |
| JPH08212362A (en) | Character and figure generator | |
| JP2906963B2 (en) | Method and apparatus for generating multi-tone wide data | |
| JP3750396B2 (en) | Image processing device | |
| JP2650324B2 (en) | Multi-value character font generation system | |
| JP4217332B2 (en) | Image processing apparatus and method, and computer-readable memory | |
| JP2000066658A (en) | Image processor and recording medium | |
| JPH07262351A (en) | Image processing apparatus and control method thereof | |
| JP2000115541A (en) | Image processing unit | |
| JPH09114435A (en) | Data converter | |
| JP2004259027A (en) | PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND PRINT CONTROL PROGRAM | |
| JP3244411B2 (en) | Character image data generation method and device, and character output method and device | |
| JPH0795404A (en) | Method and apparatus for reproducing shaded image | |
| JPH0937076A (en) | Printing equipment | |
| JPH1138960A (en) | Pattern generation method and apparatus, and recording medium | |
| JPH0736434A (en) | Character output device | |
| JP2943591B2 (en) | Multi-tone whiteout data generation method and apparatus | |
| JP3476270B2 (en) | Print data creation device |