JPH09114435A - Data converting device - Google Patents

Data converting device

Info

Publication number
JPH09114435A
JPH09114435A JP7272557A JP27255795A JPH09114435A JP H09114435 A JPH09114435 A JP H09114435A JP 7272557 A JP7272557 A JP 7272557A JP 27255795 A JP27255795 A JP 27255795A JP H09114435 A JPH09114435 A JP H09114435A
Authority
JP
Japan
Prior art keywords
pixel
data
density
outline
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
Application number
JP7272557A
Other languages
Japanese (ja)
Inventor
Kazuma Aoki
一磨 青木
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 JP7272557A priority Critical patent/JPH09114435A/en
Publication of JPH09114435A publication Critical patent/JPH09114435A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To speedily convent outline data into image data showing gradation information for every pixel, by assuming a pixel corresponding to the boundary between pixel corresponding to the inside of the outline and pixel corresponding to the outside, to be intermediate density. SOLUTION: A CPU 10 reads outline data corresponding to a character code inputted from an input part 112 out of a font memory 16. The direction of a pixel array is set to the lateral direction and a gradation character image A having the periphery of the borderline represented by half-tone is generated from outline data in an outline buffer 141 in a working memory 14 and stored in a gradation buffer A142. The direction of the pixel array is set to the longitudinal direction and a gradation character image B having the periphery of the borderline represented by half-tone is generated and stored in a gradation buffer 143. The gradation character image A and gradation character image B are put together to generate a gradation character image C, which is written in an output image memory 18.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画素単位で階調表
現可能な表示装置や印刷装置などの出力装置において、
アウトライン方式のキャラクタの形状データを、該アウ
トラインの示す輪郭内部を塗りつぶしたイメージデータ
に変換するデータ変換装置の技術分野に属し、特に、キ
ャラクタの輪郭付近を中間調で表現した階調イメージデ
ータに変換するデータ変換装置の技術分野に属するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an output device such as a display device or a printing device capable of expressing gradation in pixel units.
It belongs to the technical field of a data conversion device that converts outline-type character shape data into image data in which the outline indicated by the outline is filled, and in particular, converts it into gradation image data in which the vicinity of the outline of the character is expressed in halftone. The present invention belongs to the technical field of a data conversion device.

【0002】[0002]

【従来の技術】従来、ディスプレイやプリンタ等の文字
や記号等(以後、キャラクタと称する)を表示又は印字
する出力装置は、予め記憶しているキャラクタの形状を
定義する形状データを、その出力装置の画素の情報を表
すイメージデータに変換するデータ変換装置を備えてお
り、このデータ変換装置により得られるイメージデータ
に基づいてキャラクタの形状を示す画像を表示又は印字
している。この種の出力装置による表示又は印字結果と
しては、一般にジャギ(輪郭線の凸凹)の目立たない高
品質なものが求められている。また、同時に、予め記憶
しているキャラクタの形状データは、できる限り少量で
あることも求められている。
2. Description of the Related Art Conventionally, an output device such as a display or a printer for displaying or printing characters or symbols (hereinafter referred to as a character) is provided with shape data defining a shape of a character stored in advance. A data conversion device for converting into image data representing the information of the pixel is provided, and an image showing the shape of the character is displayed or printed based on the image data obtained by this data conversion device. As a display or printing result by this type of output device, a high quality one without conspicuous jaggies (irregularities of contour lines) is generally required. At the same time, the shape data of the character stored in advance is required to be as small as possible.

【0003】このため、比較的少量のデータにより、ジ
ャギの目立たない高品質な出力を得る出力装置として、
キャラクタの形状データをその輪郭線で定義するアウト
ラインデータを記憶し、このアウトラインデータをイメ
ージデータに変換するデータ変換方式を用いたものが提
案されている。この変換方式によれば、出力装置に一種
類のサイズの形状データを記憶するのみで様々なサイズ
のイメージデータを得ることができ、かつ、比較的ジャ
ギの目立たない高品質なイメージデータを得ることがで
きる。
Therefore, as an output device for obtaining a high-quality output in which jaggies are not conspicuous with a relatively small amount of data,
There has been proposed a data conversion method that stores outline data that defines the shape data of a character by its contour line and converts the outline data into image data. According to this conversion method, it is possible to obtain image data of various sizes by simply storing shape data of one size in the output device, and to obtain high-quality image data that is relatively inconspicuous. You can

【0004】この種の変換方式によるデータ変換装置と
しては、例えば、本出願人による特開平2−11656
5号公報に開示されている様に、予め記憶しているアウ
トラインデータを読み出し、出力するサイズに応じて拡
大/縮小変換し、出力装置の画素を規定する画素スクリ
ーンに重ねたと想定して、各画素が一定基準を満たすこ
とでアウトラインデータ内にあると判定された画素(例
えば、画素の中心が輪郭線の内部に存在する画素)をオ
ンに設定するものがある。このデータ変換装置によれ
ば、画素の細かさに応じて滑らかな輪郭をもつイメージ
データを得ることができる。
An example of a data conversion device based on this type of conversion system is, for example, Japanese Patent Laid-Open No. 11656/1990 by the present applicant.
As disclosed in Japanese Patent Publication No. 5, it is assumed that the outline data stored in advance is read out, enlarged / reduced and converted according to the output size, and superposed on the pixel screen defining the pixels of the output device. There is a method in which a pixel (for example, a pixel whose center is inside the contour line) determined to be in the outline data when the pixel satisfies a certain criterion is turned on. According to this data conversion device, it is possible to obtain image data having a smooth contour in accordance with the fineness of pixels.

【0005】更に、この種の変換方式によるデータ変換
装置としては、画素単位で階調を表現できる出力装置を
利用し、予め記憶した2値のイメージデータ、或いは、
アウトラインデータから得たイメージデータを、その輪
郭付近を中間調で表現した階調イメージに変換するもの
がある。例えば、本発明者らによる研究によれば、予め
記憶している2値のイメージデータを、オンの画素を最
大濃度に、オフの画素を最小濃度に設定した単調イメー
ジデータを生成し、各画素の階調を、その画素に対応す
る単調イメージデータ上の画素の濃度と、その画素の隣
(左右上下いずれか)の画素に対応する単調イメージデ
ータ上の画素の濃度との平均値とすることで階調イメー
ジデータを得ることはできる。本発明者らの研究によれ
ば、このような構成により、従来同様に比較的少ないデ
ータ量で、エッジ部分をぼかしてジャギの目立たなくし
た高品質な表示/印字結果を得れることが判明してい
る。
Further, as a data conversion device using this kind of conversion method, an output device capable of expressing gradation in pixel units is used, and binary image data stored in advance, or
There is one that converts the image data obtained from the outline data into a gradation image in which the vicinity of the contour is expressed in halftone. For example, according to a study by the present inventors, binary image data stored in advance is used to generate monotone image data in which ON pixels are set to the maximum density and OFF pixels are set to the minimum density, and each pixel is generated. , The average of the density of the pixel on the monotone image data corresponding to the pixel and the density of the pixel on the monotone image data corresponding to the pixel next to the pixel (either left, right, top or bottom). It is possible to obtain gradation image data with. According to the research conducted by the present inventors, it has been found that with such a configuration, it is possible to obtain a high-quality display / printing result in which the edge portion is blurred and the jaggies are inconspicuous with a relatively small amount of data as in the past. ing.

【0006】[0006]

【発明が解決しようとする課題】表示、印字等を行う出
力装置においては、より高い品質の表示、印字等をより
高速に行うという一般的な要請がある。
In the output device for displaying, printing, etc., there is a general demand for displaying, printing, etc. of higher quality at a higher speed.

【0007】しかしながら、上述した従来の特開平2−
116565号公報に開示されたデータ変換装置では、
アウトラインデータを2値、即ち、画素のオン/オフの
イメージデータに変換するので、アウトラインデータか
ら生成したイメージデータであっても、出力装置の最小
表現単位である画素単位のジャギによる品質の劣化は避
けられないという問題点がある。この品質の劣化は、キ
ャラクタの大きさに対する画素の大きさが大きい場合、
即ち、出力装置の解像度が低い場合には著く生じてしま
う。
However, the above-mentioned conventional Japanese Unexamined Patent Application Publication No. 2-
In the data conversion device disclosed in Japanese Patent No. 116565,
Since the outline data is converted into binary image data, that is, pixel on / off image data, even if the image data is generated from the outline data, there is no deterioration in quality due to jaggies in pixel units, which is the minimum expression unit of the output device. There is an unavoidable problem. This degradation in quality is due to the large pixel size relative to the character size.
In other words, when the resolution of the output device is low, it occurs remarkably.

【0008】また、上述した従来の輪郭付近を中間調で
表現するデータ変換装置としては、イメージデータを階
調イメージデータに変換するので、アウトラインデータ
から階調イメージデータを生成するには、一時的に2値
のイメージデータに展開する必要があり、出力データを
得るために多くの処理時間を要し、結果として迅速な表
示、印字等が困難となるという問題点がある。
Further, since the above-described conventional data conversion apparatus for expressing the vicinity of the contour in halftone converts image data into gradation image data, it is necessary to temporarily generate gradation image data from outline data. In addition, it is necessary to develop the binary image data, and it takes a lot of processing time to obtain the output data. As a result, there is a problem that quick display, printing and the like become difficult.

【0009】本発明は上述した従来の問題点に鑑みなさ
れたものであり、アウトラインデータを画素単位で階調
情報を示すイメージデータに、高速に変換し得るデータ
変換装置を提供することを課題とする。
The present invention has been made in view of the above-mentioned conventional problems, and it is an object of the present invention to provide a data conversion device capable of converting outline data into image data indicating gradation information in pixel units at high speed. To do.

【0010】[0010]

【課題を解決するための手段】請求項1に記載のデータ
変換装置は上記課題を解決するために、キャラクタの輪
郭線を示すアウトラインデータを画素単位で階調表現可
能な出力装置用の該画素単位で階調情報を示すイメージ
データに変換するデータ変換装置であって、前記出力装
置の出力画像上において前記輪郭線の内部に対応する画
素と前記輪郭線の外部に対応する画素とを判定する判定
手段と、該内部に対応すると判定された画素を第1濃度
とすると共に前記外部に対応すると判定された画素を該
第1濃度とは異なる第2濃度とし、且つ前記輪郭線の内
部に対応する画素と前記輪郭線の外部に対応する画素と
の境界に対応する画素を第3濃度とするイメージデータ
生成手段とを備えたことを特徴とする。
In order to solve the above-mentioned problems, a data conversion device according to a first aspect of the present invention is a pixel for an output device capable of gradation-expressing outline data indicating a contour line of a character in pixel units. A data conversion device for converting image data indicating gradation information in units, wherein a pixel corresponding to the inside of the contour line and a pixel corresponding to the outside of the contour line are determined on an output image of the output device. Determination means, and a pixel determined to correspond to the inside has a first density, a pixel determined to correspond to the outside has a second density different from the first density, and corresponds to the inside of the contour line. Image data generating means for setting the pixel corresponding to the boundary between the pixel and the pixel corresponding to the outside of the contour line as the third density.

【0011】請求項1に記載のデータ変換装置によれ
ば、判定手段により、出力装置の出力画像上において輪
郭線の内部に対応する画素と輪郭線の外部に対応する画
素とを判定し、イメージ生成手段により、該内部に対応
すると判定された画素を第1濃度とすると共に外部に対
応すると判定された画素を該第1濃度とは異なる第2濃
度とし、更に、輪郭線の内部に対応する画素と輪郭線の
外部に対応する画素との境界に対応する画素を第3濃度
とする。従って、アウトラインデータを直接、階調情報
を示すイメージデータに変換することが出来る。
According to the data converting apparatus of the first aspect, the determining means determines the pixel corresponding to the inside of the contour line and the pixel corresponding to the outside of the contour line on the output image of the output device, and the image is obtained. Pixels that are determined to correspond to the inside by the generation unit have the first density and pixels that have been determined to correspond to the outside have the second density different from the first density, and further correspond to the inside of the contour line. The pixel corresponding to the boundary between the pixel and the pixel corresponding to the outside of the contour line is the third density. Therefore, the outline data can be directly converted into the image data indicating the gradation information.

【0012】請求項2に記載のデータ変換装置は、請求
項1のデータ変換装置において、前記第1濃度は前記出
力装置の最高濃度であり、前記第2濃度は前記出力装置
の最低濃度であり、前記第3濃度は前記出力装置の中間
濃度であることを特徴とする。よって、イメージデータ
生成手段により、例えば「黒」などの最高濃度とされた
画素、例えば「白」などの最低濃度とされた画素及び、
例えば「灰色」などの中間濃度とされた画素が得られ、
全体として、輪郭線付近が中間濃度とされたイメージデ
ータが、比較的簡単な処理により得られる。
A data conversion apparatus according to a second aspect is the data conversion apparatus according to the first aspect, wherein the first density is the maximum density of the output device and the second density is the minimum density of the output device. , The third density is an intermediate density of the output device. Therefore, by the image data generating means, for example, a pixel having the highest density such as “black”, a pixel having the lowest density such as “white”, and
For example, a pixel with an intermediate density such as "gray" is obtained,
As a whole, the image data having the intermediate density in the vicinity of the contour line can be obtained by a relatively simple process.

【0013】請求項3に記載のデータ変換装置は、請求
項1又は2のデータ変換装置において、前記判定手段
は、前記アウトラインデータを前記出力装置の画素を規
定する座標系である画素座標に重ねたと想定し、前記ア
ウトラインデータとの位置関係が一定基準を満たす画素
は前記輪郭線の内部に対応すると判定することを特徴と
する。よって、各画素の内部に対応するか外部に対応す
るかが比較的簡単な処理により判定される。
According to a third aspect of the present invention, there is provided the data conversion apparatus according to the first or second aspect, wherein the determination means superimposes the outline data on a pixel coordinate which is a coordinate system defining a pixel of the output device. On the assumption that the pixel has a positional relationship with the outline data that satisfies a certain criterion, it is determined that the pixel corresponds to the inside of the contour line. Therefore, whether each pixel corresponds to the inside or the outside is determined by a relatively simple process.

【0014】請求項4に記載のデータ変換装置は、請求
項1から3のいずれかのデータ変換装置において、前記
判定手段は、前記アウトラインデータを前記出力装置の
画素を規定する座標系である画素座標に重ねたと想定
し、前記アウトラインデータとの位置関係を、前記画素
座標上に設けた一定方向の走査線と前記アウトラインデ
ータとの交点に基づいて判定することを特徴とする。よ
って、一つの出力画面をカバーするように一定方向の走
査線を順次ずらせて行けば、一定方向の画素の並び毎
に、各画素が輪郭線の付近に対応するか否かが判定さ
れ、即ち一次元配列についての比較的単純な判定が順次
繰り返される。この結果として、最終的に第1、第2及
び第3の濃度のいずれかとされた一つの出力画面をカバ
ーする画素の2次元的な配列が、比較的簡単な処理によ
り高速に得られる。
A data conversion device according to a fourth aspect is the data conversion device according to any one of the first to third aspects, wherein the determination means is a pixel that is a coordinate system that defines the pixels of the output device by the outline data. Assuming that they are superimposed on the coordinates, the positional relationship with the outline data is determined based on the intersection of the scanning line in a certain direction provided on the pixel coordinates and the outline data. Therefore, if scanning lines in a fixed direction are sequentially shifted so as to cover one output screen, it is determined whether or not each pixel corresponds to the vicinity of the contour line for each row of pixels in the fixed direction. The relatively simple determination of the one-dimensional array is sequentially repeated. As a result, a two-dimensional array of pixels that finally covers one output screen, which is one of the first, second, and third densities, can be obtained at high speed by relatively simple processing.

【0015】請求項5に記載のデータ変換装置は、請求
項4のデータ変換装置において、前記判定手段は、前記
一定方向として前記出力画像上で異なる2方向について
判定することを特徴とする。よって、判定手段により、
2つの方向に対する輪郭線との交点に対応する画素が第
3濃度とされ、この結果、判定手段により、一次元配列
についての比較的単純な判定がなされつつ、最終的に
は、輪郭線内部の周りを2次元的に囲むように第3濃度
の画素が配置される。
According to a fifth aspect of the present invention, there is provided the data conversion apparatus according to the fourth aspect, wherein the determining means determines two different directions on the output image as the constant direction. Therefore, by the judging means,
The pixel corresponding to the intersection with the contour line in the two directions is set to the third density, and as a result, the determination unit makes a relatively simple determination of the one-dimensional array, and finally the inside of the contour line. Pixels of the third density are arranged so as to surround the area two-dimensionally.

【0016】請求項6に記載のデータ変換装置は、請求
項5のデータ変換装置において、前記イメージデータ生
成手段は、前記異なる2つの方向のうち一方の方向につ
いて前記境界に対応すると判定された画素と前記異なる
2つの方向のうち他方の方向について前記境界に対応す
ると判定された画素とが一致した場合には、当該一致し
た画素を前記第3濃度とし、前記一方の方向について前
記境界に対応すると判定された画素と前記他方の方向に
ついて前記境界に対応すると判定された画素とが互いに
異なる場合には、当該異なる画素を予め定めた前記第1
濃度又は前記第3濃度のいずれか一方の濃度とすること
を特徴とする。よって、判定手段により、2つの方向に
対する輪郭線との交点に対応する画素が一致していれ
ば、第3濃度とされ、また、異なれば、第1濃度又は第
3濃度とされる。より好ましくは、この異なる場合に、
第3濃度とするように予め定めておけば、判定手段によ
り、最終的には、輪郭線内部の周りを2次元的によりき
め細やかに囲むように第3濃度の画素が配置される。
According to a sixth aspect of the present invention, there is provided the data conversion apparatus according to the fifth aspect, wherein the image data generating means is a pixel determined to correspond to the boundary in one of the two different directions. And the pixel determined to correspond to the boundary in the other direction of the two different directions, the matched pixel is defined as the third density, and the boundary in the one direction corresponds to the boundary. When the determined pixel and the pixel determined to correspond to the boundary in the other direction are different from each other, the different pixel is determined in advance as the first pixel.
One of the density and the third density is used. Therefore, if the determination unit determines that the pixels corresponding to the intersections of the contour lines in the two directions match each other, the pixel has the third density, and if the pixels have different pixels, the pixel has the first density or the third density. More preferably, in this different case,
If it is determined in advance that the density is the third density, the determining unit finally arranges the pixels of the third density so as to two-dimensionally and finely surround the inside of the contour line.

【0017】請求項7に記載のデータ変換装置は、請求
項4から6のいずれかのデータ変換装置において、前記
判定手段が前記一定方向として前記出力画像上で異なる
2つの方向について判定するか又は一つの方向について
判定するかについて指示する指示手段を更に備えてお
り、前記判定手段は、前記指示主段による指示にしたが
って前記異なる2つの方向について判定するか又は前記
一つの方向について判定することを特徴とする。よっ
て、出力装置に要求される出力画像の品質に応じて、例
えば、処理を速めたい場合には品質を多少犠牲にして、
判定手段により一つの方向についてのみ判定が行われ、
逆に、品質を高めたければ処理時間を多少犠牲にして、
判定手段により二つの方向についての判定が行われる。
A data conversion apparatus according to a seventh aspect is the data conversion apparatus according to any one of the fourth to sixth aspects, wherein the determination means determines as the constant direction two different directions on the output image, or It further comprises an instruction means for instructing whether to make a determination for one direction, and the determination means determines whether to make a determination on the two different directions or on the one direction according to an instruction from the instruction main stage. Characterize. Therefore, depending on the quality of the output image required by the output device, for example, if you want to speed up the process, sacrifice some quality,
Judgment is made only in one direction by the judgment means,
On the contrary, if you want to improve the quality, sacrifice some processing time,
The determination means makes determinations in two directions.

【0018】請求項8に記載のデータ変換装置は、請求
項4から7のいずれかのデータ変換装置において、前記
異なる2つの方向は、前記出力装置の主走査方向と副走
査方向であることを特徴とする。よって、通常主走査方
向と副走査方向を基準に定義されたアウトラインデータ
が、極めて効率良く処理される。
The data converter according to claim 8 is the data converter according to any one of claims 4 to 7, wherein the two different directions are a main scanning direction and a sub-scanning direction of the output device. Characterize. Therefore, the outline data, which is usually defined based on the main scanning direction and the sub-scanning direction, is processed extremely efficiently.

【0019】請求項9に記載のデータ変換装置は、請求
項1から8のいずれかのデータ変換装置において、前記
判定手段は、前記交点に対応する画素を非零巻数規則に
基づいて判定することを特徴とする。よって、非零巻数
規則に従って、判定手段により交点に対応する画素が効
率良く順次判定される。
According to a ninth aspect of the present invention, there is provided the data converter according to any one of the first to eighth aspects, wherein the determining means determines the pixel corresponding to the intersection based on a non-zero winding number rule. Is characterized by. Therefore, the pixels corresponding to the intersections are efficiently and sequentially determined by the determination means according to the non-zero winding number rule.

【0020】請求項10に記載のデータ変換装置は、請
求項1から8のいずれかのデータ変換装置において、前
記判定手段は、前記交点に対応する画素を奇偶規則に基
づいて判定することを特徴とする。よって、奇偶規則に
従って、判定手段により交点に対応する画素が効率良く
順次判定される。
The data converter according to a tenth aspect is the data converter according to any one of the first to eighth aspects, wherein the determining means determines a pixel corresponding to the intersection based on an odd-even rule. And Therefore, the pixels corresponding to the intersections are efficiently and sequentially determined by the determination means according to the odd-even rule.

【0021】請求項11に記載のデータ変換装置は、請
求項4から10のいずれかのデータ変換装置において、
前記判定手段は、前記一定方向の画素の並び毎に前記輪
郭線の内部に対応する画素と輪郭線の外部に対応する画
素とを判定することを特徴とする。従って、一つの出力
画面をカバーするように一定方向の画素の並びを順次ず
らせて行けば、一定方向の画素の並び毎に、各画素が輪
郭線の内部に対応するか、外部に対応するか、又は輪郭
線との交点に対応するかが判定され、即ち一次元配列に
ついての比較的単純な判定が、判定手段により順次繰り
返される。この結果として、2イメージデータ生成手段
により、第1、第2及び第3の濃度のいずれかとされた
一つの出力画面をカバーする画素の2次元的な配列が、
比較的簡単な処理により高速に得られる。
The data converter according to claim 11 is the data converter according to any one of claims 4 to 10,
The determining means may determine a pixel corresponding to the inside of the contour line and a pixel corresponding to the outside of the contour line for each row of pixels in the certain direction. Therefore, by sequentially shifting the pixel arrangement in a fixed direction so as to cover one output screen, whether each pixel corresponds to the inside or the outside of the contour line for each pixel arrangement in the fixed direction. , Or whether it corresponds to the intersection with the contour line, that is, the relatively simple determination for the one-dimensional array is sequentially repeated by the determining means. As a result, the two-dimensional array of pixels covering one output screen, which has one of the first, second and third densities, is generated by the two-image data generating means.
It can be obtained at high speed by relatively simple processing.

【0022】[0022]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。なお、以下に示す実施の形態で
は、各画素の出力濃度を0〜15(濃度は数値が大きい
ほど高濃度、以後同様)で表現し得るディスプレイ装置
を出力装置として備えたキャラクタ表示装置における、
出力用のキャラクタイメージを生成するデータ変換装置
に本発明を適用した形態を示す。より具体的には、本実
施の形態で示す装置は、予め記憶したキャラクタの輪郭
線の形状を定義したアウトラインデータを、輪郭付近を
中間調で表現した多階調のキャラクタのイメージである
階調キャラクタイメージに変換するデータ変換装置であ
る。
Embodiments of the present invention will be described below with reference to the drawings. In the embodiment described below, in a character display device provided with a display device that can express the output density of each pixel as 0 to 15 (the higher the density, the higher the density, and the same hereinafter),
The form which applied this invention to the data converter which produces | generates the character image for output is shown. More specifically, the apparatus shown in the present embodiment is a multi-gradation character image in which outline data defining a shape of a contour line of a character stored in advance is expressed in halftones. It is a data conversion device for converting into a character image.

【0023】本実施の形態のデータ変換装置を備えた出
力装置の構成を図1に示す。図1において、本実施の形
態の出力装置は、CPU(中央演算装置)10、プログ
ラムメモリ12、ワーキングメモリ14、フォントメモ
リ16、出力イメージメモリ18、入力部112、ディ
スプレイ制御部114及びCRT(陰極線管表示装置)
116を備えて構成されている。これらの構成要素は、
出力装置内において通信バス110を介して相互に接続
されており、互いにデータのやり取りを行えるように構
成されている。
FIG. 1 shows the configuration of an output device equipped with the data conversion device of this embodiment. In FIG. 1, an output device according to the present embodiment includes a CPU (central processing unit) 10, a program memory 12, a working memory 14, a font memory 16, an output image memory 18, an input unit 112, a display control unit 114, and a CRT (cathode ray). Tube display)
It is configured with 116. These components are:
The output devices are connected to each other via a communication bus 110, and are configured to exchange data with each other.

【0024】CPU10は、本実施の形態の装置の機能
を実現するための制御を行うものであり、ROM(読み
出し専用メモリ)等から構成されたプログラムメモリ1
2に記憶された制御の手続きを定義したプログラムに従
って、本発明の判定手段及びイメージデータ生成手段の
一例として機能する。
The CPU 10 performs control for realizing the functions of the apparatus according to the present embodiment, and the program memory 1 including a ROM (read only memory) and the like.
It functions as an example of the determination means and the image data generation means of the present invention according to the program defining the control procedure stored in 2.

【0025】また、ワーキングメモリ14は、RAM
(読み出し書き込みメモリ)等から構成されており、プ
ログラムメモリ12に記憶されたプログラムの処理をC
PU10で実行する際の一時的なデータを格納するもの
であり、後述する本実施の形態における処理で使用する
輪郭バッファ141、階調バッファA142及び階調バ
ッファB143を含んでいる。
The working memory 14 is a RAM.
(Read / write memory) and the like, and processes the program stored in the program memory 12 by C
It stores temporary data when it is executed by the PU 10, and includes a contour buffer 141, a gradation buffer A 142, and a gradation buffer B 143 used in the processing in this embodiment described later.

【0026】フォントメモリ16は、ROM、RAM等
から構成されており、予めキャラクタの形状をアウトラ
インデータで記憶する。出力イメージメモリ18は、R
AM等から構成されており、本実施の形態のデータ変換
処理によって生成された階調キャラクタイメージを記憶
する。これらのメモリ中に記憶するデータ形式について
は、後で詳述する。
The font memory 16 is composed of a ROM, a RAM and the like, and stores the shape of the character as outline data in advance. The output image memory 18 is R
It is composed of AM or the like and stores the gradation character image generated by the data conversion processing of the present embodiment. The data format stored in these memories will be described in detail later.

【0027】入力部112は、出力するキャラクタのキ
ャラクタコード、出力サイズ及び合成フラグを入力する
部分であり、例えばホストコンピュータから送信された
データを受信するインターフェースから構成されてい
る。ここに、合成フラグは、後述する本実施の形態中の
処理で用いる情報であり、オンであれば合成すること
を、オフであれば合成しないことを指示する情報であ
る。なお、出力サイズや合成を指示する命令は、キーボ
ード、マウス等の入力装置から入力するように入力部1
12を構成してもよい。
The input unit 112 is a unit for inputting a character code of an output character, an output size and a composition flag, and is composed of, for example, an interface for receiving data transmitted from a host computer. Here, the combination flag is information used in the processing in the present embodiment described later, and is information indicating that the combination flag is on if the flag is on and does not combine if the flag is off. It should be noted that the command for instructing the output size and the composition should be input from the input unit 1 such that it is input from an input device such as a keyboard or mouse.
12 may be configured.

【0028】ディスプレイ制御部114は、出力イメー
ジメモリ18に記憶された階調キャラクタイメージを読
み出し、CRT116上に表示させる。尚、階調表現さ
れた画像をCRTにて表示する処理、即ち、ディスプレ
イ制御部114及びCRT116の処理に関しては、既
に様々な方式で実用化されている技術であり、また、本
発明の主たる部分ではない。従って、本発明の趣旨を明
確にするためにも詳細な説明は省略する。
The display control unit 114 reads out the gradation character image stored in the output image memory 18 and displays it on the CRT 116. Note that the processing of displaying an image expressed in gradation on a CRT, that is, the processing of the display control unit 114 and the CRT 116, is a technology that has already been put to practical use in various systems, and is a main part of the present invention. is not. Therefore, detailed description is omitted for the purpose of clarifying the gist of the present invention.

【0029】以下に、フォントメモリ16に記憶してい
るアウトラインデータについて説明する。アウトライン
データは、キャラクタの輪郭線の形状を複数の直線及び
曲線で表現するものであり、その直線及び曲線を定義す
る座標値の情報の集まりである。本実施の形態のアウト
ラインデータは、フラグデータ及び座標値データから成
る一対の点データの配列、及び、点数データで構成され
る。尚、曲線の形式は、2次或いは3次ベジェ曲線、2
次Bスプライン等が一般的であるが、本実施の形態では
3次ベジェ曲線で表現している。従って、以後、単に曲
線と言及する場合は全て3次ベジェ曲線のことである。
The outline data stored in the font memory 16 will be described below. The outline data represents the shape of the outline of the character with a plurality of straight lines and curves, and is a collection of information of coordinate values that define the straight lines and curves. The outline data of this embodiment is composed of an array of a pair of point data composed of flag data and coordinate value data, and point data. The curve format is quadratic or cubic Bezier curve, 2
Although a B-spline of the next degree is generally used, it is expressed by a cubic Bézier curve in this embodiment. Therefore, hereinafter, all references to a curve are cubic Bezier curves.

【0030】上述したフラグデータは、点データの情報
の種別を示すデータである。本実施の形態の点データの
種類には、輪郭線の始点、直線の終点、曲線の制御点及
び曲線の終点がある。また、座標値データは、x座標値
及びy座標値で点データの位置を示すデータである。さ
らに、上述した点数データは点データの配列数を示すデ
ータである。
The above-mentioned flag data is data indicating the type of information of point data. The types of point data in this embodiment include a starting point of a contour line, an ending point of a straight line, a control point of a curve, and an ending point of a curve. The coordinate value data is data indicating the position of the point data by the x coordinate value and the y coordinate value. Furthermore, the point data described above is data indicating the number of arrays of point data.

【0031】この点データの配列の整列順は、輪郭線を
一方向にたどっていく順で整列されている。この規則に
よって、直線、曲線の始点の座標値は、その直前に定義
されている直線、曲線の終点或いは輪郭線の始点と定義
できる。また、点データの配列は、キャラクタのアウト
ラインデータが複数の輪郭線によって定義される場合で
も、点データのフラグデータが輪郭線の始点によって、
次の輪郭線の開始が識別できるので、一つの配列内に収
めることができる。尚、本実施の形態では、複数の輪郭
線でアウトラインデータが定義される場合、後述する塗
りつぶし領域判定処理の方式によっては、輪郭線の内側
がアウトラインデータの内部である輪郭線(以後、外ル
ープと称する)と、輪郭線の内側がアウトラインデータ
の外部である輪郭線(以後、内ループと称する)とで点
データの整列順、即ち、輪郭線をたどる回転方向を、反
時計方向と時計方向のように異なる方向に設定する必要
がある。従って、本実施の形態では、外ループを反時計
方向に、内ループを時計方向に整列して記憶する。
The arrangement order of the array of the point data is such that the contour line is traced in one direction. According to this rule, the coordinate value of the starting point of the straight line or the curve can be defined as the straight line, the ending point of the curve, or the starting point of the contour line defined immediately before. In addition, even if the outline data of the character is defined by a plurality of contour lines, the array of point data is such that the flag data of the point data is defined by the start points of the contour lines.
The start of the next contour can be identified so that it fits within one array. In the present embodiment, when the outline data is defined by a plurality of contour lines, the inside of the contour line is the contour line inside the outline data (hereinafter, the outer loop depending on the method of the filled area determination processing described later). Is called), and the inside of the outline is the outside of the outline data (hereinafter referred to as the inner loop), the alignment order of the point data, that is, the rotation direction that follows the outline is counterclockwise and clockwise. Need to be set in different directions. Therefore, in this embodiment, the outer loop is aligned in the counterclockwise direction and the inner loop is aligned in the clockwise direction and stored.

【0032】図2に本実施の形態のフォントメモリ16
内のアウトラインデータの一例を示す。図2(a)は、
アウトラインデータが表す形状の概念図を、(b)には
フォントメモリ16内のデータの概念図を示す。
FIG. 2 shows the font memory 16 of this embodiment.
An example of the outline data in is shown. FIG. 2 (a)
A conceptual diagram of the shape represented by the outline data is shown, and a conceptual diagram of the data in the font memory 16 is shown in (b).

【0033】図2(a)において、キャラクタbは、輪
郭線2及び輪郭線3の2つの輪郭線により表現され、輪
郭線2と輪郭線3との間の領域がキャラクタの像とな
る。即ち、この領域を塗りつぶすことでキャラクタの形
状となる。また、輪郭線2は外ループ、輪郭線3は内ル
ープである。点21〜点29及び点31〜点37は、点
データの位置を示すものである。点データを示す印の形
状はフラグデータを表しており○印は直線の終点を、●
印は曲線の終点を×印は曲線の制御点を、□印は輪郭線
の始点をそれぞれ示している。なお、本実施の形態の方
式では、輪郭線の終点の点データは、座標値データが輪
郭線の始点と一致するため、区別して示すことができな
いため図示していない。
In FIG. 2A, the character b is represented by two contour lines, a contour line 2 and a contour line 3, and an area between the contour lines 2 and 3 becomes an image of the character. That is, the shape of the character is obtained by painting this area. Further, the contour line 2 is an outer loop and the contour line 3 is an inner loop. Points 21 to 29 and points 31 to 37 indicate the positions of the point data. The shape of the mark indicating the point data represents the flag data, and the ○ mark indicates the end point of the straight line.
The mark indicates the end point of the curve, the x mark indicates the control point of the curve, and the □ mark indicates the start point of the contour line. In the method of the present embodiment, the point data at the end point of the contour line is not shown because the coordinate value data coincides with the start point of the contour line and cannot be shown separately.

【0034】図2(b)の点データのxn、yn(nは
添字)は、座標値データを表し、図2(a)の点nの座
標値データをxn、ynで表している。また、アルファ
ベットはフラグデータを表し、輪郭線の始点をS、直線
の終点をL、曲線の制御点をA、曲線の終点をCでそれ
ぞれ表している。
The point data xn and yn (n is a subscript) of FIG. 2B represent coordinate value data, and the coordinate value data of the point n of FIG. 2A are represented by xn and yn. Further, the alphabet represents flag data, where the start point of the contour line is S, the end point of the straight line is L, the control point of the curve is A, and the end point of the curve is C.

【0035】以下に、出力イメージメモリ18に記憶す
る、階調キャラクタイメージについて説明する。階調キ
ャラクタイメージはキャラクタの形状を出力装置の各画
素の情報で表したデータである。また、各画素の情報
は、その画素の濃度を数値で表したデータである。
The gradation character image stored in the output image memory 18 will be described below. The gradation character image is data in which the shape of the character is represented by information of each pixel of the output device. In addition, the information of each pixel is data that represents the density of the pixel by a numerical value.

【0036】図3に本実施の形態の階調キャラクタイメ
ージの一例を示す。図3(a)は、階調キャラクタイメ
ージが示す画像の概念図を、図3(b)は、階調キャラ
クタイメージの概念図をそれぞれ示す。
FIG. 3 shows an example of the gradation character image of this embodiment. 3A is a conceptual diagram of an image represented by a gradation character image, and FIG. 3B is a conceptual diagram of a gradation character image.

【0037】図3(a)の様なキャラクタの画像は、図
3(b)の様に表現される。画素を表す格子内に記され
て数値は、その画素の濃度(0〜15)を表している。
以下に、本実施の形態のアウトラインデータを階調キャ
ラクタイメージに変換する処理を、図4のフローチャー
トにより説明する。なお、この処理は、入力部112よ
り、キャラクタコード、出力サイズ及び合成フラグが入
力された上で開始する。
An image of a character as shown in FIG. 3 (a) is expressed as shown in FIG. 3 (b). The numerical value written in the grid representing a pixel represents the density (0 to 15) of that pixel.
The process of converting the outline data of the present embodiment into a gradation character image will be described below with reference to the flowchart of FIG. It should be noted that this process starts after the character code, the output size, and the combination flag are input from the input unit 112.

【0038】図4において、先ず、入力部112から入
力されたキャラクタコードに対応するアウトラインデー
タをフォントメモリ16から読み出し(ステップS4
1)、そのアウトラインデータを出力サイズに応じて拡
大/縮小を施す(ステップS42)。
In FIG. 4, first, the outline data corresponding to the character code input from the input unit 112 is read from the font memory 16 (step S4).
1) The outline data is enlarged / reduced according to the output size (step S42).

【0039】次に、画素配列の方向を横方向、即ち、x
軸と平行な方向に設定して、ワーキングメモリ14内の
輪郭バッファ141内のアウトラインデータから、輪郭
線付近を中間調で表現した階調キャラクタイメージAを
生成し、ワーキングメモリ14内の階調バッファA14
2に格納する(ステップS43)。なお、このステップ
S43の処理についての詳細は後述する。
Next, the direction of the pixel array is set to the horizontal direction, that is, x
A gradation character image A in which the vicinity of the contour line is expressed in halftone is generated from the outline data in the contour buffer 141 in the working memory 14 by setting in a direction parallel to the axis, and the gradation buffer in the working memory 14 is generated. A14
2 (step S43). The details of the process of step S43 will be described later.

【0040】次に、入力部112より入力した合成フラ
グを調べ、合成を要するか否かを判定する(ステップS
44)。ここで、合成フラグがオフであれば(NO)、
ステップS45の処理を実行する。また、オンであれば
(YES)、ステップS46及びS47の処理を実行す
る。
Next, the composition flag input from the input unit 112 is checked to determine whether composition is required (step S).
44). Here, if the synthesis flag is off (NO),
The process of step S45 is executed. If it is on (YES), the processes of steps S46 and S47 are executed.

【0041】ステップS45では、ワーキングメモリ1
4の階調バッファA142内に格納されている階調キャ
ラクタイメージAを出力イメージメモリ18に書き込
む。また、ステップS46では、画素配列の方向を縦方
向、即ち、y軸と平行な方向に設定して、ワーキングメ
モリ14の輪郭バッファ141内のアウトラインデータ
から、輪郭線付近を中間調で表現した階調キャラクタイ
メージBを生成し、ワーキングメモリ14内の階調バッ
ファB143に格納する。なお、このステップS46の
処理の詳細についても、ステップS43の処理と同様に
後述する。
In step S45, the working memory 1
The gradation character image A stored in the gradation buffer A 142 of No. 4 is written in the output image memory 18. In step S46, the pixel array direction is set to the vertical direction, that is, the direction parallel to the y-axis, and the outline data in the outline buffer 141 of the working memory 14 is used to express the vicinity of the outline in halftone. The tone character image B is generated and stored in the tone buffer B143 in the working memory 14. The details of the process of step S46 will be described later as with the process of step S43.

【0042】ステップS47では、ワーキングメモリ内
の階調バッファA142内の階調キャラクタイメージA
と、階調バッファB142内の階調キャラクタイメージ
Bとを合成して、階調キャラクタイメージCを生成し、
出力イメージバッファに書き込む。この合成は、階調キ
ャラクタイメージCの各画素の濃度を、対応する階調キ
ャラクタイメージAの画素の濃度と、階調キャラクタイ
メージBの画素の濃度との小さい方の濃度とすることで
合成する。
In step S47, the gradation character image A in the gradation buffer A 142 in the working memory is displayed.
And the gradation character image B in the gradation buffer B 142 are combined to generate a gradation character image C,
Write to the output image buffer. This synthesis is performed by setting the density of each pixel of the gradation character image C to the smaller one of the density of the pixel of the corresponding gradation character image A and the density of the pixel of the corresponding gradation character image B. .

【0043】以上の処理を図2、3及び5を用いて説明
する。図2(a)は、輪郭バッファ141内のアウトラ
インデータ、即ち、フォントメモリ16から読み出され
(ステップS41)、所望のサイズに変形変換された
(ステップS42)、アウトラインデータを表すものと
する。このデータより画素配列の方向を横方向に設定し
た階調キャラクタイメージである階調キャラクタイメー
ジAを生成する(ステップS43)。この階調バッファ
A142内の階調キャラクタイメージAを図5(a)に
表す。ここで、合成フラグを調べる(ステップS4
4)。このキャラクタにおける合成フラグは、オンであ
るので、輪郭バッファ141内のアウトラインデータよ
り、画素配列の方向を縦方向に設定した階調キャラクタ
イメージである階調キャラクタイメージBを生成する
(ステップS46)。この階調バッファB143内の階
調キャラクタイメージBを図5(b)に示す。次に図5
(a)及び(b)の階調キャラクタイメージを、対応す
る画素の濃度の小さい方をその画素の濃度とすることで
合成する(ステップS47)。この結果が、図3の
(b)のデータとなり、データを可視化すると図3
(a)の様になる。尚、対応する濃度の大きい方をその
画素のデータとするように予め定めてもよい。
The above processing will be described with reference to FIGS. FIG. 2A represents outline data in the contour buffer 141, that is, outline data read from the font memory 16 (step S41) and transformed into a desired size (step S42). From this data, a gradation character image A, which is a gradation character image in which the pixel arrangement direction is set to the horizontal direction, is generated (step S43). The gradation character image A in the gradation buffer A 142 is shown in FIG. Here, the composition flag is checked (step S4).
4). Since the synthesis flag for this character is ON, a gradation character image B, which is a gradation character image in which the direction of the pixel array is set to the vertical direction, is generated from the outline data in the contour buffer 141 (step S46). The gradation character image B in the gradation buffer B143 is shown in FIG. Next, FIG.
The gradation character images of (a) and (b) are combined by making the density of the corresponding pixel smaller, as the density of the pixel (step S47). The result is the data shown in FIG. 3 (b).
(A). It should be noted that it may be determined in advance that the corresponding higher density is used as the data for that pixel.

【0044】次に、上述したステップS43及びS46
の階調キャラクタイメージを生成する処理について説明
する。なお、説明を簡潔にするために、処理の流れは、
ステップS43で行う画素配列の方向を横方向、即ち、
x軸に平行な方向に設定した例で説明する。この画素配
列の方向を縦方向に設定したり、斜め45度等の任意の
方向に設定することは、単に画素を表す座標上における
アウトラインデータの向きの相違であるので、当該業者
であれば容易に想像できる。従って、ここでは画素配列
の方向を横方向、即ち、x軸に平行な方向に設定した例
について説明することでこの全ての場合について説明し
たこととする。
Next, steps S43 and S46 described above.
The process of generating the gradation character image of will be described. To simplify the explanation, the process flow is
The direction of the pixel array performed in step S43 is the horizontal direction, that is,
An example of setting the direction parallel to the x axis will be described. It is easy for a person skilled in the art to set the direction of the pixel array in the vertical direction or to set the direction in an arbitrary direction such as an oblique angle of 45 degrees because it is simply the difference in the direction of the outline data on the coordinates representing the pixels. Can be imagined. Therefore, all the cases are explained by describing an example in which the direction of the pixel array is set to the horizontal direction, that is, the direction parallel to the x axis.

【0045】先ず、図6を参照して処理で用いるデータ
を説明する。図6(a)は、アウトラインデータ61を
出力装置の画素の座標系を表す画素スクリーン76に重
ね合わせた状態を示している。図中のx、y軸付近に示
した数値は、画素の座標であり、一点鎖線で示した直線
は画素の中心を通る直線を表している。横方向の画素配
列は、y座標が同一である画素の配列であり、前述した
画素の中心を通る直線上に存在する画素が、それぞれの
画素配列となる。
First, the data used in the processing will be described with reference to FIG. FIG. 6A shows a state in which the outline data 61 is superimposed on the pixel screen 76 representing the coordinate system of the pixels of the output device. The numerical values shown near the x and y axes in the figure are the coordinates of the pixel, and the straight line indicated by the alternate long and short dash line represents the straight line passing through the center of the pixel. The pixel array in the horizontal direction is an array of pixels having the same y coordinate, and pixels existing on a straight line passing through the center of the pixel described above are the respective pixel arrays.

【0046】また、図6(b)には、図6(a)のデー
タの交点リストと称するデータの概念図を示す。このデ
ータは、以後に説明する階調キャラクタイメージ生成処
理で一時的なデータとして生成されるものである。デー
タは、画素配列データ63、交点数データ64及び交点
データ65から構成される。
Further, FIG. 6B shows a conceptual diagram of data called an intersection list of the data of FIG. 6A. This data is generated as temporary data in the gradation character image generation processing described below. The data is composed of pixel array data 63, intersection point data 64 and intersection point data 65.

【0047】画素配列データ63は、複数の画素配列を
識別するための情報であり、画素配列のy座標値であ
る。交点数データ64は、交点データ65の数であり、
交点データ65は、アウトラインデータと画素の中心線
との交点の情報を、各交点毎に表すものである。
The pixel array data 63 is information for identifying a plurality of pixel arrays and is the y coordinate value of the pixel array. The intersection point data 64 is the number of the intersection point data 65,
The intersection data 65 represents information on the intersection of the outline data and the center line of the pixel for each intersection.

【0048】この交点データ65は、交点のx座標値、
方向情報及びフラグ情報の情報から構成される。尚、交
点データ65は、x座標値で昇順にソートされている。
x座標値は、交点、或いは、塗りつぶし領域の両端の画
素の位置を、画素の座標系におけるx座標値を表す情報
である。
The intersection data 65 is the x coordinate value of the intersection,
It is composed of direction information and flag information. The intersection data 65 are sorted in ascending order by x-coordinate value.
The x-coordinate value is information indicating the x-coordinate value in the coordinate system of the pixel, which is the intersection or the position of the pixel at both ends of the filled area.

【0049】また、方向情報は、交点におけるアウトラ
インデータのベクトル方向を示す。本実施の形態におけ
るアウトラインデータの各輪郭線のベクトル方向は、輪
郭線を規定する点データの格納順序に準ずるものとす
る。前述したように、本実施の形態では、外ループと内
ループとでこの輪郭線のベクトルが逆回転方向となる。
図6の例のアウトラインデータは、図6(a)の矢印6
6及び67に示す方向に輪郭線のベクトルが設定されて
いるものとする。方向情報は、画素の中心を表す直線を
アウトラインがy座標増加方向(図では、上から下)に
横切る場合には1で、y座標現象方向(図では、下から
上)に横切る場合は、−1で表す。
The direction information indicates the vector direction of the outline data at the intersection. The vector direction of each contour line of the outline data in this embodiment is based on the storage order of the point data defining the contour line. As described above, in the present embodiment, the vectors of the contour lines of the outer loop and the inner loop are in the reverse rotation directions.
The outline data in the example of FIG. 6 is represented by the arrow 6 in FIG.
It is assumed that the contour vector is set in the directions indicated by 6 and 67. The direction information is 1 when the outline crosses a straight line representing the center of a pixel in the y coordinate increasing direction (from top to bottom in the figure), and when it crosses in the y coordinate phenomenon direction (from bottom to top in the figure). It is represented by -1.

【0050】さらに、フラグ情報は、交点を整列に読み
出した場合、その交点が塗りつぶし領域の始点を表して
いる場合は1で、終点を表している場合は2で、いずれ
でもない場合は0で表す情報である。
Further, when the intersections are read out in an aligned manner, the flag information is 1 if the intersections represent the start point of the filled area, 2 if the intersections represent the end point, and 0 if neither. This is information to represent.

【0051】次に、階調キャラクタイメージを生成する
処理を図7のフローチャートを用いて説明する。先ず、
ステップS71では、アウトラインデータと、画素の中
心を通る直線との交点を求め、上述した交点リストを生
成し、ワーキングメモリ14内の図示しない交点リスト
バッファへ格納する。なお、この処理では交点リスト中
の交点データ65のx座標値は、画素の座標系を連続空
間と見立てた場合の交点のx座標値を格納する。また、
フラグ情報には、全て0をセットしておく。
Next, the process of generating the gradation character image will be described with reference to the flowchart of FIG. First,
In step S71, the intersection of the outline data and the straight line passing through the center of the pixel is obtained, the above-mentioned intersection list is generated, and stored in the intersection list buffer (not shown) in the working memory 14. In this processing, the x coordinate value of the intersection data 65 in the intersection list stores the x coordinate value of the intersection when the pixel coordinate system is regarded as a continuous space. Also,
All of the flag information is set to 0.

【0052】次に、ステップS72では、塗りつぶし領
域の両端を判定し、交点リストのフラグ情報を設定す
る。この処理は、様々な既存の塗りつぶし領域の導出方
法により処理可能であるが、本実施の形態では、後述す
る2つの方式について説明する。従って、その2つの方
式に限定されるものではない。ここで生成された交点リ
ストによれは、交点データ65を整列順に読み出すこと
で、フラグ情報が1であるx座標値から、フラグ情報が
2であるx座標値までがアウトラインデータの像をなす
部分、即ち、内部であることが認識できる。
Next, in step S72, both ends of the filled area are determined and flag information of the intersection list is set. This processing can be performed by various existing methods for deriving a filled area, but in this embodiment, two methods described later will be described. Therefore, it is not limited to the two methods. According to the intersection list generated here, the intersection data 65 is read out in the order of arrangement, so that the portion from the x-coordinate value having the flag information 1 to the x-coordinate value having the flag information 2 forms an image of the outline data. That is, it can be recognized that it is inside.

【0053】次にステップS73では、交点リストの交
点データ65のx座標値を、交点の座標値から、画素の
座標値へと変換する。本実施の形態では、オンにする画
素の定義を、輪郭線の内部にその中心が含まれる画素と
している。従って、交点データ65のフラグ情報が1の
x座標値は、交点以右にある最も近くの画素の中心を含
む画素の座標値に、フラグ情報が2のx座標値は、交点
以左にある最も近くの画素の中心を含む画素の座標値に
それぞれ設定する。
Next, in step S73, the x coordinate value of the intersection point data 65 of the intersection point list is converted from the coordinate value of the intersection point to the coordinate value of the pixel. In the present embodiment, the definition of a pixel to be turned on is a pixel whose center is included inside the contour line. Therefore, the x-coordinate value of the intersection data 65 having the flag information of 1 is the coordinate value of the pixel including the center of the nearest pixel on the right of the intersection, and the x-coordinate value of the flag information of 2 is the left of the intersection. It is set to the coordinate value of the pixel including the center of the nearest pixel.

【0054】次に、ステップS74では、階調バッファ
に輪郭線付近を中間調で表現した階調キャラクタイメー
ジを生成する。より具体的には、画素配列毎に交点デー
タ65を順に読み出し、各画素の存在領域の始点及び終
点を中間調の濃度7で、始点と終点との間に存在する画
素を最大濃度15でそれぞれ表現したキャラクタイメー
ジデータを生成して階調バッファに格納する。
Next, in step S74, a gradation character image in which the vicinity of the contour line is expressed in halftone is generated in the gradation buffer. More specifically, the intersection point data 65 is sequentially read for each pixel array, the start point and the end point of the area where each pixel is present are halftone density 7, and the pixels between the start point and the end point are each maximum density 15. The expressed character image data is generated and stored in the gradation buffer.

【0055】なお、これらのステップS41〜S47及
びステップS71〜S74による方式は、本発明におけ
る指示手段を用いた構成により実行されるものである。
即ち、 ステップS71〜S73の処理が、第1及び2
判定手段による処理に対応し、ステップS74の処理が
イメージデータ生成手段による処理に対応し、入力部1
12より入力される合成フラグが指示手段による指示に
対応する。
The method of steps S41 to S47 and steps S71 to S74 is executed by the configuration using the instruction means in the present invention.
That is, the processes of steps S71 to S73 are the first and second.
The processing of step S74 corresponds to the processing by the determination means, the processing by the image data generation means, and the input unit 1
The synthesis flag input from 12 corresponds to the instruction by the instruction means.

【0056】図11に、本実施の形態により、別のキャ
ラクタに対しデータ変換を行った例を示す。図11
(a)は、上述したステップS41〜S42で得られた
アウトラインデータを示し、図11(b)は、図11
(a)のデータを上述したステップS43の処理により
加工した階調キャラクタイメージAを示す。このキャラ
クタイメージにおいては、ステップS46の処理を施し
た階調キャラクタイメージBは、図11(b)に示した
階調キャラクタイメージAとごくわずかな相違しかな
い。図11(b)の矢印で示した画素が階調キャラクタ
イメージBと異なる部分であり、数値は、階調キャラク
タイメージBにおける濃度を示す。従って、ステップS
47で得られる階調キャラクタイメージCも階調キャラ
クタイメージAとごくわずかな相違しかなくなることは
明らかである。ある程度品質を低下させてでも、高速化
が望まれる装置においては、このような場合、即ち、階
調キャラクタイメージA及びBを生成し、さらにそれら
を合成することで得られる階調キャラクタイメージCの
品質が、階調キャラクタイメージA或いはBの品質と大
きな相違が認められない場合には、階調キャラクタイメ
ージA或いはBを当該データ変換装置の出力とすること
も可能である。
FIG. 11 shows an example in which data conversion is performed on another character according to the present embodiment. FIG.
11A shows the outline data obtained in steps S41 to S42 described above, and FIG.
The gradation character image A which processed the data of (a) by the process of step S43 mentioned above is shown. In this character image, the gradation character image B that has been subjected to the process of step S46 has only a slight difference from the gradation character image A shown in FIG. The pixel indicated by the arrow in FIG. 11B is a portion different from the gradation character image B, and the numerical value indicates the density in the gradation character image B. Therefore, step S
It is clear that the gradation character image C obtained at 47 has only a slight difference from the gradation character image A. In an apparatus in which high speed is desired even if the quality is deteriorated to some extent, in such a case, that is, the gradation character images A and B are generated, and the gradation character image C obtained by combining them is further generated. When the quality is not so different from that of the gradation character image A or B, the gradation character image A or B can be output from the data converter.

【0057】これは、合成フラグをオフにして入力部1
12より情報を入力することで、省略可能な処理を省略
し、即ち、合成フラグがオフの場合は、階調キャラクタ
イメージAをそのまま出力イメージメモリ18に書き込
むことで(ステップS44、ステップS45)、出力デ
ータとしての階調キャラクタイメージを形成できる。
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 composition flag is off, the gradation character image A is written as it is in the output image memory 18 (steps S44, S45). A gradation character image can be formed as output data.

【0058】また、入力する情報量削減のため、また、
処理の単純化のため、上述した合成フラグを用いずに、
階調キャラクタイメージを出力イメージメモリ18内に
形成することも可能である。即ち、図4に示したフロー
チャートにおける、ステップS44及びステップS45
の処理を取り除くことで可能となる。
In order to reduce the amount of information to be input,
To simplify the process, without using the above composition flag,
It is also possible to form a gradation character image in the output image memory 18. That is, step S44 and step S45 in the flowchart shown in FIG.
It becomes possible by removing the processing of.

【0059】また、簡易的な階調キャラクタイメージで
充分であり、かつ、より高速な処理を要する装置に本発
明を適用する場合には、上述したステップS41〜S4
3までの処理で生成された階調キャラクタイメージAを
そのまま出力イメージメモリ18に格納するように構成
することもできる。
Further, when the present invention is applied to an apparatus in which a simple gradation character image is sufficient and requires higher speed processing, steps S41 to S4 described above are used.
The gradation character image A generated by the processes up to 3 can be stored in the output image memory 18 as it is.

【0060】次に、ステップS72の塗りつぶし領域を
判定するに適応し得る2つの方式について説明する。2
つの方式とも、アウトラインデータを2値のイメージデ
ータに変換する際のアウトラインデータを横切る直線ベ
クトル上の塗りつぶし領域を判定する規則を応用した例
である。その一方は非零巻数規則(Non−Zero
Winding Number Rule)と称するも
のであり、他方は奇偶規則(Even−Odd Rul
e)と称するものである。
Next, two methods that can be applied to the determination of the filled area in step S72 will be described. 2
Each of the two methods is an example in which a rule for determining a filled area on a straight line vector that crosses outline data when converting outline data into binary image data is applied. One of them is the non-zero winding number rule (Non-Zero
Winding Number Rule) and the other is the even-odd rule.
e).

【0061】非零巻数規則は、先ず、巻数と称するカウ
ンタを設け、0クリアする。次に、直線上を端から調
べ、アウトラインデータと交わったら、そのアウトライ
ンが直線に対して順方向(ここでは、直線のベクトル方
向に対して左から右とする)に交わる場合に、巻数をイ
ンクリメントし、逆方向に交わる場合は、巻数をデクリ
メントする。このようにして、巻数を設定しながら、直
線ベクトル上を調べ、巻数が0ではない、即ち、巻数が
非零である部分を塗りつぶすと判定する規則が非零巻数
規則である。この規則を用いるには、前提条件があり、
アウトラインデータの輪郭線に方向性を持たせる必要が
あり、かつ、外ループと内ループでその方向を逆にする
必要がある。このことについては、先に述べた。
According to the non-zero winding number rule, first, a counter called a winding number is provided and 0 is cleared. Next, check the straight line from the end, and if it intersects with the outline data, increment the winding number if the outline intersects the straight line in the forward direction (here, from left to right with respect to the vector direction of the straight line). If they intersect in the opposite direction, decrement the number of turns. In this way, the non-zero winding number rule is a rule in which the number of windings is checked while setting the number of windings, and the portion where the number of windings is not 0, that is, the portion where the number of windings is non-zero is filled. There are prerequisites to using this rule,
It is necessary to give the outline of the outline data directionality, and it is necessary to reverse the direction in the outer loop and the inner loop. This is mentioned above.

【0062】また、奇偶規則は、直線ベクトル上を端か
ら調べ、アウトラインと交わったら、奇数回目の交りで
あればそれ以降の領域を塗りつぶし、偶数回目の交りで
あればそれ以降の領域は塗りつぶさないと判定する規則
である。
Further, the even-odd rule is to check the straight line vector from the end, and when it intersects with the outline, if it is an odd number of intersections, fill in the subsequent region, and if it is an even number of intersections, It is a rule that determines not to fill.

【0063】なお、この2つの方式は、周知の長所短所
として次のことが上げられる。一点は、非零巻数規則
は、奇偶規則よりも処理が煩雑なため処理時間が多くか
かり、また、アウトラインデータの前提条件も多いこと
である。もう一点は、非零巻数規則は、複数の輪郭線が
同一領域を規定した場合(図8(a))でも塗りつぶし
領域を正しく判定できる(図8(c))が、奇偶規則で
は、同一領域の部分が塗りつぶされない(図8(b))
ことである。なお、この詳細は、本発明の主たる部分で
はなく、周知の事実であるため説明を省略する。
The known advantages and disadvantages of these two methods are as follows. One point is that the non-zero winding number rule requires more processing time than the odd-even rule and therefore requires a longer processing time, and also has many prerequisites for outline data. Another point is that the non-zero winding number rule can correctly determine a filled area (FIG. 8C) even when a plurality of contour lines define the same area (FIG. 8A). Is not filled (Fig. 8 (b))
That is. It should be noted that this detail is not a main part of the present invention and is a well-known fact, and therefore its explanation is omitted.

【0064】従って、装置内で扱うアウトラインデータ
に、図8(a)の様なデータがない場合には、奇偶規則
に基づいた塗りつぶし領域の判定が望ましく、また、図
8(a)の様なデータがある場合には、非零巻数規則で
ないと正しい塗りつぶし領域を判定できない。
Therefore, when the outline data handled in the apparatus does not have the data as shown in FIG. 8A, it is desirable to determine the filled area based on the odd-even rule, and as shown in FIG. 8A. If there is data, the correct filled area cannot be determined without the non-zero winding number rule.

【0065】この2つの方式を応用した本実施の形態に
おける塗りつぶし領域の判定処理を図9及び10のフロ
ーチャートで説明する。先に述べたように、ステップS
71における処理で既に画素の中心を通る直線とアウト
ラインとの交点リストが生成されている。なお、フロー
チャートは、一画素配列における処理について示してい
る。
The filled area determination processing according to the present embodiment to which these two methods are applied will be described with reference to the flowcharts of FIGS. 9 and 10. As mentioned earlier, step S
In the process of 71, a list of intersections of straight lines passing through the centers of pixels and outlines has already been generated. It should be noted that the flowchart shows the processing in one pixel array.

【0066】先ず、非零巻数規則に基づいた方式を図9
のフローチャートを用いて説明する。図9において、先
ず、着目交点を最初の交点にすると共に、交点カウン
タ、巻数カウンタ及び前巻数カウンタを0に初期化し
(ステップS91)、着目交点の交点データ65の方向
情報より交差したアウトラインが順方向で交わったか否
かを判定する(ステップS92)。即ち、方向情報が1
の場合は、順方向であると判定し(YES)、ステップ
S93に進み、巻数カウンタをインクリメントする。方
向情報が−1であれば、逆方向であり(NO)、ステッ
プS94に進んで巻数カウンタをデクリメントする。
First, a method based on the non-zero winding number rule is shown in FIG.
This will be described with reference to the flowchart of. In FIG. 9, first, the crossing point of interest is set to the first crossing point, the crossing counter, the winding number counter, and the previous winding number counter are initialized to 0 (step S91), and the outline intersecting from the direction information of the crossing point data 65 of the crossing point of interest is in order. It is determined whether or not they intersect in the direction (step S92). That is, the direction information is 1
In the case of, it is determined to be the forward direction (YES), the process proceeds to step S93, and the winding number counter is incremented. If the direction information is -1, it is the reverse direction (NO), and the process proceeds to step S94 to decrement the winding number counter.

【0067】次に、ステップS95において着目交点で
巻数が0から非0に変わったか、即ち、塗りつぶし領域
の始点となる点かを判定する。前巻数カウンタが0で巻
数カウンタが非0ならば(YES)、ステップS96に
進み、着目交点の交点データ65のフラグ情報に始点を
示す1をセットする。一方、ステップS95で巻数カウ
ンタが非0でなければ(NO)、ステップS97に進
み、着目交点で巻数が非0から0に変わったか、即ち、
塗りつぶし領域の終点となる点かを判定する。ステップ
S97で、巻数カウンタが非0であり且つ巻数カウンタ
が0であれば(YES)、ステップS98に進み、着目
交点の交点データ65のフラグ情報に終点を示す2をセ
ットしてから、ステップS99へ進む。一方、ステップ
S97で、巻数カウンタが0とならなければ(NO)、
何もせずに、ステップS99に移行する。
Next, in step S95, it is determined whether the winding number has changed from 0 to non-zero at the intersection of interest, that is, whether it is the starting point of the filled area. If the previous winding number counter is 0 and the winding number counter is non-zero (YES), the process proceeds to step S96, and 1 is set to the flag information of the intersection point data 65 of the target intersection to indicate the starting point. On the other hand, if the winding number counter is not non-zero in step S95 (NO), the flow proceeds to step S97, and the number of windings is changed from non-zero to zero at the intersection of interest, that is,
It is determined whether it is the end point of the filled area. If the winding number counter is non-zero and the winding number counter is 0 in step S97 (YES), the process proceeds to step S98, 2 is set to the flag information of the intersection data 65 of the target intersection, which indicates the end point, and then step S99. Go to. On the other hand, if the winding number counter does not reach 0 in step S97 (NO),
Without doing anything, the process proceeds to step S99.

【0068】ステップS99では、交点カウンタをイン
クリメントし、更に、ステップS910で、交点リスト
の交点数データと交点カウンタを参照して処理の終了を
判定する。まだ処理していない交点がある場合は(YE
S)、ステップS911に進み、前巻数カウンタに巻数
カウンタの値をセットし、着目交点を次の交点に移動し
て、ステップS92以降の処理を繰り返して実行する。
In step S99, the intersection counter is incremented, and in step S910, the end of the process is determined by referring to the intersection number data and the intersection counter in the intersection list. If there is an intersection that has not been processed yet (YE
S), the process proceeds to step S911, the value of the winding number counter is set in the previous winding number counter, the target intersection is moved to the next intersection, and the processing from step S92 is repeatedly executed.

【0069】次に、奇偶規則に基づいた方式を図10の
フローチャートを用いて説明する。尚、ステップS51
の処理で交点リストの交点データ65に方向情報をセッ
トしていたが、以下の説明する方式でステップS52の
処理を行う場合は、これは必要ない。図10において、
先ず、着目交点を最初の交点に設定し、交点カウンタを
0に初期化する(ステップS101)。
Next, a method based on the odd-even rule will be described with reference to the flowchart of FIG. Incidentally, step S51
Although the direction information is set in the intersection data 65 of the intersection list in the processing of No. 5, this is not necessary when the processing of step S52 is performed by the method described below. In FIG.
First, the target intersection is set to the first intersection, and the intersection counter is initialized to 0 (step S101).

【0070】次に、交点カウンタが偶数かを判定するこ
とで、奇数番目の交点か、即ち、塗りつぶし領域の始点
かを判定する(ステップS102)。ここで、偶数であ
れば(YES)、ステップS103に進み、交点データ
65のフラグ情報を1、即ち、始点にセットする。一方
ステップS102で偶数でなければ(NO)、ステップ
S104に進み、交点カウンタが奇数かを判定すること
で、偶数番目の交点か、即ち、塗りつぶし領域の終点か
を判定する。ここで、奇数であれば(YES)、ステッ
プS105に進み、交点データ65のフラグ情報を2、
即ち、終点にセットした後、ステップS106に進む。
ステップS104で、奇数でなければ(NO)、そのま
まステップS106に進む。
Next, it is determined whether the intersection counter is an even number to determine whether the intersection is an odd number, that is, the start point of the filled area (step S102). If it is an even number (YES), the process proceeds to step S103, and the flag information of the intersection data 65 is set to 1, that is, the starting point. On the other hand, if it is not an even number in step S102 (NO), the process proceeds to step S104, and it is determined whether the intersection counter is an odd number to determine whether it is an even-numbered intersection, that is, the end point of the filled area. Here, if it is an odd number (YES), the process proceeds to step S105 to set the flag information of the intersection point data 65 to 2,
That is, after setting the end point, the process proceeds to step S106.
If it is not an odd number in step S104 (NO), the process directly proceeds to step S106.

【0071】ステップS106では、交点カウンタをイ
ンクリメントし、更に、ステップS107では、交点カ
ウンタと交点リストの交点数データを参照して、全ての
交点の処理が終了したかを判定する。処理していない交
点が残っている場合は(YES)、ステップS108に
進み、着目交点を次の交点にセットして、ステップS1
02以降の処理を繰り返して実施する。
In step S106, the intersection counter is incremented, and in step S107, it is determined whether all intersections have been processed by referring to the intersection counter and the intersection number data in the intersection list. If there is an unprocessed intersection (YES), the process proceeds to step S108, the target intersection is set to the next intersection, and step S1 is performed.
The processing from 02 onward is repeated.

【0072】以上のように本実施の形態によれば、アウ
トラインデータを一時的に2値のイメージに展開するこ
となく、その輪郭付近を中間調で表現した階調イメージ
に変換するので、高速な処理が可能となる。更に、2つ
の方向の画素の配列について輪郭線との交点に対応する
画素を求める実施の形態によれば、比較的高速な処理を
可能としつつ、より美しい階調キャラクタイメージを得
ることができる。更にまた、合成をするか否かを指示す
る合成フラグを用いた形態によれば、冗長な処理を省く
ことで、より高速な処理が可能となる。
As described above, according to the present embodiment, the outline data is converted into a gradation image in which halftones are expressed in the vicinity of the outline without temporarily expanding the outline data into a binary image. Processing becomes possible. Further, according to the embodiment in which the pixel corresponding to the intersection with the contour line is obtained for the pixel arrangement in the two directions, it is possible to obtain a more beautiful gradation character image while enabling relatively high-speed processing. Furthermore, according to the mode using the combination flag for instructing whether or not the combination is performed, the redundant processing is omitted, so that the higher-speed processing becomes possible.

【0073】本実施の形態では、ステップS43で生成
される階調キャラクタイメージAを画素配列を横方向に
設定して得た階調キャラクタイメージとし、ステップS
47で生成される階調キャラクタイメージBを画素配列
を縦方向に設定して得た階調キャラクタイメージとして
説明したが、これを逆にすることはもちろん、また、2
つの階調キャラクタイメージA及びBの画素の対応がと
れる限り、画素配列の方向は任意の方向に設定すること
が可能である。
In the present embodiment, the gradation character image A generated in step S43 is a gradation character image obtained by setting the pixel array in the horizontal direction,
The gradation character image B generated at 47 has been described as the gradation character image obtained by setting the pixel array in the vertical direction, but it goes without saying that the gradation character image B can be reversed.
The direction of the pixel arrangement can be set in any direction as long as the pixels of the one gradation character image A and the pixel of the gradation image B can be associated with each other.

【0074】本実施の形態のステップS73における交
点より塗りつぶし領域の両端の画素を決定する際に、オ
ンにする画素を、中心がアウトライン内に入るものとし
たが、少しでもアウトラインの内側に入るもの、全体が
アウトラインの内側に入るもの等、どのような方式でも
良い。
When the pixels at both ends of the filled area are determined from the intersections in step S73 of the present embodiment, the pixels to be turned on are set so that the center is within the outline. , Any method such as the one entirely inside the outline may be used.

【0075】本実施の形態では、アウトラインデータ
は、フォントメモリ16内に格納しているものを用いた
が、これに限らず、入力部112よりアウトラインデー
タを直接受け取り、これを階調キャラクタデータに変換
するようにも変更可能である。
Although the outline data stored in the font memory 16 is used in the present embodiment, the outline data is not limited to this, and the outline data is directly received from the input unit 112 and converted into gradation character data. It can also be changed to convert.

【0076】本実施の形態では、アウトラインデータの
曲線の表現形式を3次ベジェ曲線としたが、これに限ら
ず、2次ベジェ曲線、2次Bスプライン等のどのような
曲線であってもよく、また、曲線を用いずに、全て直線
で表現する形式であっても良い。
In the present embodiment, the expression form of the curve of the outline data is the cubic Bezier curve, but the present invention is not limited to this, and any curve such as a quadratic Bezier curve or a quadratic B-spline may be used. Alternatively, the format may be one in which all the lines are expressed without using a curve.

【0077】本実施の形態では、フォントメモリ16内
に格納しているアウトラインデータを読み出し、出力サ
イズに応じて変形するステップS41〜S42の処理の
内容は、詳しく言及していないが、周知の従来技術であ
る、アウトラインフォントメモリに記憶されたアウトラ
インデータを、所望のサイズの2値のイメージデータに
変換する処理における、データ読み出し処理(ステップ
S41)、変形変換処理(ステップS42)と何ら変わ
りはない。即ち、ステップS42においては、サイズ変
換のみならず、その他の幾何学的な変形変換、及び、ラ
スター化する際の量子化誤差の補正のための変形等を施
したものであったとしても、本発明の趣旨を逸脱するも
のではなく、適用することができる。
In the present embodiment, the outline data stored in the font memory 16 is read out, and the contents of the processes of steps S41 to S42 for modifying the outline data according to the output size are not mentioned in detail, but the known conventional method is used. There is no difference from the data reading process (step S41) and the transformation process (step S42) in the process of converting the outline data stored in the outline font memory into binary image data of a desired size, which is a technique. . That is, in step S42, not only the size conversion but also other geometrical deformation conversions, and deformations for correcting the quantization error at the time of rasterization are performed. The invention can be applied without departing from the spirit of the invention.

【0078】本実施の形態では、データ変換装置は、デ
ィスプレイ装置に備えられているが、本発明のデータ変
換装置は、階調表現可能なレーザービームプリンタ、イ
ンクジェットプリンタ等の印字装置用のデータ変換装置
としても実現される。
In this embodiment, the data conversion device is provided in the display device, but the data conversion device of the present invention is a data conversion device for printing devices such as laser beam printers and ink jet printers capable of expressing gradation. It is also realized as a device.

【0079】その他にも本実施の形態は、本発明の趣旨
を逸脱しない範囲で種々の変更が可能である。
Besides, the present embodiment can be variously modified without departing from the spirit of the present invention.

【0080】[0080]

【発明の効果】請求項1に記載のデータ変換装置によれ
ば、アウトラインデータを直接、階調情報を示すイメー
ジデータに変換することが出来、アウトラインデータか
らイメージデータへ高速にデータ変換することができ
る。
According to the data converter of the first aspect, the outline data can be directly converted into the image data indicating the gradation information, and the outline data can be converted into the image data at a high speed. it can.

【0081】請求項2に記載のデータ変換装置によれ
ば、輪郭線付近が中間濃度とされたイメージデータが比
較的簡単な処理により得られ、この結果、アウトライン
データから輪郭線付近が中間濃度とされたイメージデー
タへ高速にデータ変換することができる。
According to the data conversion device of the second aspect, the image data in which the vicinity of the contour line has the intermediate density is obtained by a relatively simple process. As a result, the outline data has the intermediate density in the vicinity of the contour line. Data can be converted at high speed into the created image data.

【0082】請求項3に記載のデータ変換装置によれ
ば、各画素の内部に対応するか外部に対応するかが比較
的簡単な処理により判定され、この結果、アウトライン
データからイメージデータへ高速にデータ変換すること
ができる。
According to the data conversion apparatus of the third aspect, whether each pixel corresponds to the inside or the outside is determined by a relatively simple process, and as a result, the outline data can be converted into the image data at high speed. Data can be converted.

【0083】請求項4に記載のデータ変換装置によれ
ば、一つの出力画面をカバーするように一定方向の走査
線を順次ずらせて行けば、一定方向の画素の並び毎に、
各画素が輪郭線の付近に対応するか否かが判定され、最
終的に第1、第2及び第3の濃度のいずれかとされた一
つの出力画面をカバーする画素の2次元的な配列が、比
較的簡単な処理により高速に得られる。
According to the data conversion apparatus of the fourth aspect, if the scanning lines in a fixed direction are sequentially shifted so as to cover one output screen, the pixel lines in the fixed direction are arranged in sequence.
It is determined whether or not each pixel corresponds to the vicinity of the contour line, and a two-dimensional array of pixels that finally covers one output screen, which is one of the first, second, and third densities, is obtained. , Can be obtained at high speed by relatively simple processing.

【0084】請求項5に記載のデータ変換装置によれ
ば、輪郭線内部の周りを2次元的に囲むように第3濃度
の画素が配置され、この結果、アウトラインデータから
美しいイメージデータへ高速にデータ変換することがで
きる。
According to the data conversion device of the fifth aspect, the pixels of the third density are arranged so as to two-dimensionally surround the inside of the contour line, and as a result, the outline data can be changed to beautiful image data at high speed. Data can be converted.

【0085】請求項6に記載のデータ変換装置によれ
ば、輪郭線内部の周りを2次元的によりきめ細やかに囲
むように第3濃度の画素が配置され、この結果、アウト
ラインデータから美しいイメージデータへ高速にデータ
変換することができる。
According to the data conversion apparatus of the sixth aspect, the pixels of the third density are arranged so as to more finely and two-dimensionally surround the inside of the contour line, and as a result, beautiful image data can be obtained from the outline data. Data can be converted at high speed.

【0086】請求項7に記載のデータ変換装置によれ
ば、出力装置に要求される出力画像の品質及び処理速度
に応じて、一つの方向についてのみ判定したり、二つの
方向についての判定が行われ、この結果、アウトライン
データから、冗長的な処理を避けつつ、必要とされる品
質や処理速度に見合ったイメージデータへ変換すること
ができる。
According to the seventh aspect of the data conversion apparatus, the determination is made only in one direction or in two directions depending on the quality of the output image and the processing speed required of the output apparatus. As a result, it is possible to convert the outline data into image data suitable for the required quality and processing speed while avoiding redundant processing.

【0087】請求項8に記載のデータ変換装置によれ
ば、通常主走査方向と副走査方向を基準に定義されたア
ウトラインデータが、極めて効率良く処理されるので、
アウトラインデータからイメージデータへ極めて高速に
データ変換することができる。
According to the data conversion apparatus of the eighth aspect, since the outline data defined with reference to the main scanning direction and the sub scanning direction is processed very efficiently,
Data can be converted from outline data to image data at extremely high speed.

【0088】請求項9に記載のデータ変換装置によれ
ば、非零巻数規則に従って判定手段により交点に対応す
る画素が効率良く順次判定されるので、アウトラインデ
ータからイメージデータへ極めて高速にデータ変換する
ことができる。
According to the data converter of the ninth aspect, the pixels corresponding to the intersections are efficiently and sequentially judged by the judging means in accordance with the non-zero winding number rule, so that the data conversion from the outline data to the image data can be carried out at an extremely high speed. be able to.

【0089】請求項10に記載のデータ変換装置によれ
ば、奇偶規則に従って判定手段により交点に対応する画
素が効率良く順次判定されるので、アウトラインデータ
からイメージデータへ極めて高速にデータ変換すること
ができる。
According to the data converter of the tenth aspect, the pixels corresponding to the intersections are efficiently and sequentially judged by the judging means according to the even-odd rule, so that the data conversion from the outline data to the image data can be carried out at an extremely high speed. it can.

【0090】請求項11に記載のデータ変換装置によれ
ば、2イメージデータ生成手段により、第1、第2及び
第3の濃度のいずれかとされた一つの出力画面をカバー
する画素の2次元的な配列が、比較的簡単な処理により
高速に得られ、この結果、アウトラインデータからイメ
ージデータへ極めて高速にデータ変換することができ
る。
According to the eleventh aspect of the data conversion device, the two-dimensional image data generating means allows the two-dimensional arrangement of the pixels covering one output screen having any one of the first, second and third densities. Such an array can be obtained at a high speed by a relatively simple process, and as a result, data conversion from outline data to image data can be performed extremely quickly.

【0091】以上の結果、本発明によれば、アウトライ
ン方式のキャラクタの形状データを高速にその輪郭線付
近を中間調表現した階調イメージデータに変換する装
置、即ち、アウトラインフォントを直接、階調イメージ
データに変換するデータ変換装置を実現できる。
As a result of the above, according to the present invention, a device for converting the shape data of an outline character at high speed into gradation image data in which the contour neighborhood is expressed in halftone, that is, an outline font is directly gradation-converted. A data conversion device for converting image data can be realized.

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

【図1】本実施の形態の階調キャラクタイメージ変換の
処理を行うデータ変換装置のブロック図である。
FIG. 1 is a block diagram of a data conversion device that performs a gradation character image conversion process according to the present embodiment.

【図2】本実施の形態に用いられるアウトラインデータ
の一例を示す概念図である。
FIG. 2 is a conceptual diagram showing an example of outline data used in the present embodiment.

【図3】本実施の形態に用いられる階調キャラクタイメ
ージの一例を示す概念図である。
FIG. 3 is a conceptual diagram showing an example of a gradation character image used in the present embodiment.

【図4】本実施の形態における階調キャラクタイメージ
変換処理のフローチャートである。
FIG. 4 is a flowchart of gradation character image conversion processing according to the present embodiment.

【図5】本実施の形態の階調キャラクタイメージA及び
Bの一例を示すデータ構成図である。
FIG. 5 is a data configuration diagram showing an example of gradation character images A and B according to the present embodiment.

【図6】本実施の形態の階調キャラクタイメージ生成処
理における中間コードデータの概念図である。
FIG. 6 is a conceptual diagram of intermediate code data in the gradation character image generation processing of the present embodiment.

【図7】本実施の形態における階調キャラクタイメージ
生成処理のフローチャートである。
FIG. 7 is a flowchart of a gradation character image generation process according to the present embodiment.

【図8】本実施の形態で用いられる塗りつぶし規則の特
徴を説明する概念図である。
FIG. 8 is a conceptual diagram illustrating the characteristics of the fill rule used in the present embodiment.

【図9】本実施の形態で用いられる非零巻数規則による
塗りつぶし領域の判定処理のフローチャートである。
FIG. 9 is a flowchart of a filled area determination process according to the non-zero winding number rule used in the present embodiment.

【図10】本実施の形態で用いられる奇偶規則による塗
りつぶし領域の判定処理のフローチャートである。
FIG. 10 is a flowchart of a filled area determination process based on the even-odd rule used in the present embodiment.

【図11】本実施の形態で用いられるアウトラインデー
タ及び階調キャラクタデータAの他の例を示す概念図で
ある。
FIG. 11 is a conceptual diagram showing another example of outline data and gradation character data A used in the present embodiment.

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

10…CPU 12…プログラムメモリ 14…ワーキングメモリ 16…フォントメモリ 18…出力イメージメモリ 110…通信バス 112…入力部 114…ディスプレイ制御部 116…CRT 10 ... CPU 12 ... Program memory 14 ... Working memory 16 ... Font memory 18 ... Output image memory 110 ... Communication bus 112 ... Input section 114 ... Display control section 116 ... CRT

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】キャラクタの輪郭線を示すアウトラインデ
ータを画素単位で階調表現可能な出力装置用の該画素単
位で階調情報を示すイメージデータに変換するデータ変
換装置であって、 前記出力装置の出力画像上において前記輪郭線の内部に
対応する画素と前記輪郭線の外部に対応する画素とを判
定する判定手段と、 該内部に対応すると判定された画素を第1濃度とすると
共に前記外部に対応すると判定された画素を該第1濃度
とは異なる第2濃度とし、且つ前記輪郭線の内部に対応
する画素と前記輪郭線の外部に対応する画素との境界に
対応する画素を第3濃度とするイメージデータ生成手段
とを備えたことを特徴とするデータ変換装置。
1. A data conversion device for converting outline data indicating a contour line of a character into image data indicating gradation information for each pixel, which is capable of expressing gradation in each pixel. Determining means for determining a pixel corresponding to the inside of the contour line and a pixel corresponding to the outside of the contour line on the output image of the output image, and the pixel determined to correspond to the inside as the first density and the outside The pixel determined to correspond to the second density is a second density different from the first density, and the pixel corresponding to the boundary between the pixel corresponding to the inside of the contour line and the pixel corresponding to the outside of the contour line is the third density. A data conversion device, comprising: an image data generating unit for obtaining a density.
【請求項2】 前記第1濃度は前記出力装置の最高濃度
であり、前記第2濃度は前記出力装置の最低濃度であ
り、前記第3濃度は前記出力装置の中間濃度であること
を特徴とする請求項1に記載のデータ変換装置。
2. The first density is a maximum density of the output device, the second density is a minimum density of the output device, and the third density is an intermediate density of the output device. The data conversion device according to claim 1.
【請求項3】 前記判定手段は、前記アウトラインデー
タを前記出力装置の画素を規定する座標系である画素座
標に重ねたと想定し、前記アウトラインデータとの位置
関係が一定基準を満たす画素は前記輪郭線の内部に対応
すると判定することを特徴とする請求項1又は2に記載
のデータ変換装置。
3. The determining means assumes that the outline data is superimposed on pixel coordinates which is a coordinate system that defines pixels of the output device, and a pixel whose positional relationship with the outline data satisfies a certain criterion is the contour. 3. The data conversion device according to claim 1, wherein it is determined that the line corresponds to the inside of the line.
【請求項4】 前記判定手段は、前記アウトラインデー
タを前記出力装置の画素を規定する座標系である画素座
標に重ねたと想定し、前記アウトラインデータとの位置
関係を、前記画素座標上に設けた一定方向の走査線と前
記アウトラインデータとの交点に基づいて判定すること
を特徴とする請求項1から3のいずれか一項に記載のデ
ータ変換装置。
4. The determining means assumes that the outline data is superposed on pixel coordinates which is a coordinate system defining pixels of the output device, and the positional relationship with the outline data is provided on the pixel coordinates. 4. The data conversion device according to claim 1, wherein the determination is performed based on an intersection of a scanning line in a fixed direction and the outline data.
【請求項5】 前記判定手段は、前記一定方向として前
記出力画像上で異なる2方向について判定することを特
徴とする請求項4に記載のデータ変換装置。
5. The data conversion device according to claim 4, wherein the determination means determines two different directions on the output image as the fixed direction.
【請求項6】 前記イメージデータ生成手段は、前記異
なる2つの方向のうち一方の方向について前記境界に対
応すると判定された画素と前記異なる2つの方向のうち
他方の方向について前記境界に対応すると判定された画
素とが一致した場合には、当該一致した画素を前記第3
濃度とし、前記一方の方向について前記境界に対応する
と判定された画素と前記他方の方向について前記境界に
対応すると判定された画素とが互いに異なる場合には、
当該異なる画素を予め定めた前記第1濃度又は前記第3
濃度のいずれか一方の濃度とすることを特徴とする請求
項5に記載のデータ変換装置。
6. The image data generation means determines that a pixel determined to correspond to the boundary in one of the two different directions and a pixel determined to correspond to the boundary in the other direction of the two different directions. If the matched pixel matches the matched pixel, the matched pixel is set to the third pixel.
When the density is determined and the pixel determined to correspond to the boundary in the one direction and the pixel determined to correspond to the boundary in the other direction are different from each other,
The different pixel is defined in advance by the first density or the third density.
The data conversion device according to claim 5, wherein the density is one of the densities.
【請求項7】 前記判定手段が前記一定方向として前記
出力画像上で異なる2つの方向について判定するか又は
一つの方向について判定するかについて指示する指示手
段を更に備えており、 前記判定手段は、前記指示主段による指示にしたがって
前記異なる2つの方向について判定するか又は前記一つ
の方向について判定することを特徴とする請求項4から
6のいずれか一項に記載のデータ変換装置。
7. The determination means further comprises an instruction means for instructing whether to determine two different directions or one direction on the output image as the constant direction, the determination means comprising: 7. The data conversion device according to claim 4, wherein the data conversion device determines whether the two different directions or the one direction is determined according to an instruction from the instruction main stage.
【請求項8】 前記異なる2つの方向は、前記出力装置
の主走査方向と副走査方向であることを特徴とする請求
項4から7のいずれか一項に記載のデータ変換装置。
8. The data conversion device according to claim 4, wherein the two different directions are a main scanning direction and a sub scanning direction of the output device.
【請求項9】 前記判定手段は、前記交点に対応する画
素を非零巻数規則に基づいて判定することを特徴とする
請求項1から8のいずれか一項に記載のデータ変換装
置。
9. The data conversion device according to claim 1, wherein the determination unit determines a pixel corresponding to the intersection based on a non-zero winding number rule.
【請求項10】 前記判定手段は、前記交点に対応する
画素を奇偶規則に基づいて判定することを特徴とする請
求項1から8のいずれか一項に記載のデータ変換装置。
10. The data conversion device according to claim 1, wherein the determination unit determines a pixel corresponding to the intersection based on an odd-even rule.
【請求項11】 前記判定手段は、前記一定方向の画素
の並び毎に前記輪郭線の内部に対応する画素と前記輪郭
線の外部に対応する画素とを判定することを特徴とする
請求項4から10に記載のデータ変換装置。
11. The determination means determines a pixel corresponding to the inside of the contour line and a pixel corresponding to the outside of the contour line for each array of pixels in the certain direction. The data converter according to any one of items 1 to 10.
JP7272557A 1995-10-20 1995-10-20 Data converting device Pending JPH09114435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7272557A JPH09114435A (en) 1995-10-20 1995-10-20 Data converting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7272557A JPH09114435A (en) 1995-10-20 1995-10-20 Data converting device

Publications (1)

Publication Number Publication Date
JPH09114435A true JPH09114435A (en) 1997-05-02

Family

ID=17515573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7272557A Pending JPH09114435A (en) 1995-10-20 1995-10-20 Data converting device

Country Status (1)

Country Link
JP (1) JPH09114435A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020087832A (en) * 2001-05-14 2002-11-23 미쓰비시덴키 가부시키가이샤 Anti-alias font generator
JP2015522855A (en) * 2012-06-27 2015-08-06 三菱電機株式会社 Evaluation method and laser cutting machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020087832A (en) * 2001-05-14 2002-11-23 미쓰비시덴키 가부시키가이샤 Anti-alias font generator
JP2015522855A (en) * 2012-06-27 2015-08-06 三菱電機株式会社 Evaluation method and laser cutting machine
US9248525B2 (en) 2012-06-27 2016-02-02 Mitsubishi Electric Research Laboratories, Inc. Method and system for cutting features from sheet materials with a laser cutter according to a pattern

Similar Documents

Publication Publication Date Title
JPH07322057A (en) Increase of resolution of binary input picture and its increasing device together with improvement of appearance ofbinary input picture
JP3223617B2 (en) Drawing apparatus and drawing method
JP2876942B2 (en) Data converter
US5553219A (en) Font outline and bit map generator synthesizing filling data with selected outline data or duplicate outline data
US7315402B2 (en) Image forming apparatus and method for selecting an optimal image space frequency for an output image
US6181835B1 (en) Non-integer scaling of raster images with image quality enhancement using an anamorphically scaled intermediate bitmap
JP2856420B2 (en) Character pattern data generation method
JPH09114435A (en) Data converting device
JPH05120441A (en) Vector picture plotting device
JP3085036B2 (en) Image output device
JP3952188B2 (en) Image interpolation apparatus, image interpolation method, and image interpolation program
JP3888090B2 (en) Image processing apparatus and image processing method
JP3750396B2 (en) Image processing device
JP3408176B2 (en) Font processing apparatus, font processing method, and storage medium
JP3294249B2 (en) Image processing device
JP3191409B2 (en) Font data generator
JP3417753B2 (en) Method and apparatus for generating gradation character
JP3350325B2 (en) Character output device
JP2640591B2 (en) How to create a border image
JPH0736434A (en) Character output device
JPH09281947A (en) Printed picture making method and device
JPH0519739A (en) Character pattern generation device
JP3567727B2 (en) Image processing method and apparatus
JP2000305550A (en) Half tone font generating device
JPH1065907A (en) Picture density converter