Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0747339B2 - Data converter - Google Patents
[go: Go Back, main page]

JPH0747339B2 - Data converter - Google Patents

Data converter

Info

Publication number
JPH0747339B2
JPH0747339B2 JP63269074A JP26907488A JPH0747339B2 JP H0747339 B2 JPH0747339 B2 JP H0747339B2 JP 63269074 A JP63269074 A JP 63269074A JP 26907488 A JP26907488 A JP 26907488A JP H0747339 B2 JPH0747339 B2 JP H0747339B2
Authority
JP
Japan
Prior art keywords
bit data
character
data
line
intersection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP63269074A
Other languages
Japanese (ja)
Other versions
JPH02116565A (en
Inventor
直幸 川本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP63269074A priority Critical patent/JPH0747339B2/en
Priority to US07/425,604 priority patent/US5073956A/en
Priority to DE3935558A priority patent/DE3935558C2/en
Priority to GB8924056A priority patent/GB2224913B/en
Priority to FR898913972A priority patent/FR2638263B1/en
Publication of JPH02116565A publication Critical patent/JPH02116565A/en
Publication of JPH0747339B2 publication Critical patent/JPH0747339B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、文字・記号等のキャラクタの輪郭を表すアウ
トラインデータをビットデータに変換するデータ変換装
置に関するものであり、特に、変換方式の改良に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion device for converting outline data representing the outline of a character such as a character or a symbol into bit data, and more particularly to improvement of a conversion method. Is.

従来の技術 文字・記号等キャラクタに関連したデータをコンピュー
タを用いて処理し、印字あるいはディスプレイ表示など
何等かの形で表示する場合、最小処理単位である画素毎
にビットデータを形成することが広く行われている。こ
の際、処理されるキャラクタ全部について予めビットデ
ータを作成し、メモリに記憶させると極めて容量の大き
いメモリが必要となるため、特公昭53−41017号公報に
記載されているように、キャラクタをその輪郭を表すア
ウトラインデータで記憶させ、表示時にデータ変換装置
によりビットデータに変換することが望ましい。
2. Description of the Related Art When processing data related to characters such as characters and symbols using a computer and displaying it in some form such as printing or display, it is common to form bit data for each pixel, which is the minimum processing unit. Has been done. At this time, if bit data is created in advance for all the characters to be processed and stored in the memory, a very large capacity memory is required. Therefore, as described in Japanese Patent Publication No. 53-41017, the characters are It is desirable that the outline data representing the contour is stored and converted into bit data by a data conversion device at the time of display.

このデータ変換装置においては、アウトラインデータを
規定する座標面上においてX,Y2軸のうちの一方に平行な
複数の走査線を想定し、各走査線とキャラクタの輪郭線
との交点を内包する画素(輪郭画素と称する)に対応す
るビットデータをすべてキャラクタ構成線の存在を表す
ビットデータ(以下、キャラクタ表示ビットデータと称
する)に設定した後、それら輪郭画素に囲まれた画素
(内部画素と称する)に対応するビットデータをすべて
キャラクタ表示ビットデータに設定するようにされてい
る。
In this data conversion device, a plurality of scanning lines that are parallel to one of the X and Y2 axes are assumed on the coordinate plane that defines the outline data, and pixels that include the intersections of each scanning line and the outline of the character. After all bit data corresponding to (contour pixels) are set to bit data representing the presence of a character constituting line (hereinafter referred to as character display bit data), pixels surrounded by these contour pixels (referred to as internal pixels). ) Is set to all the bit data corresponding to character display bit data.

発明が解決しようとする課題 しかし、このデータ変換装置においては、キャラクタ表
示ビットデータの設定を、輪郭画素に対して設定する段
階と内部画素に対して設定する段階との2段階に分けて
行うようにされている。しかも、内部画素に対するキャ
ラクタ表示ビットデータの設定が内部画素1個ずつにつ
いて順次行われる。すなわち、一走査線上に並ぶ画素に
対応する多数のビットの各々に対してそのビットのデー
タがキャラクタ表示ビットデータであるか否かが順次判
定され、最初のキャラクタ表示ビットデータが現れるま
では各ビットのデータはそれまで通りキャラクタ構成線
の不存在を表すデータのままとされ、最初のキャラクタ
表示ビットデータが現れてから次のキャラクタ表示ビッ
トデータが現れるまでの各ビットのデータはすべてキャ
ラクタ表示ビットデータに変更されるのである。そし
て、2番目のキャラクタ表示ビットデータが現れて後の
ビットのデータは再びキャラクタ構成線の不存在を表す
データのままとされ、3番目のキャラクタ表示ビットデ
ータが現れたならばそれに続くビットのデータがキャラ
クタ表示ビットデータに変更される。このように、各ビ
ットのデータがキャラクタ表示ビットデータであるか否
かの判定を順次行ってすべての画素についてビットデー
タの設定を行う場合には処理に時間がかかり、迅速にビ
ットデータの設定を行うことができない。
However, in this data conversion device, the setting of the character display bit data is performed in two steps, that is, the setting step for the contour pixel and the setting step for the internal pixel. Has been Moreover, the character display bit data is set for each internal pixel sequentially for each internal pixel. That is, for each of a large number of bits corresponding to pixels arranged on one scanning line, it is sequentially determined whether or not the data of the bit is character display bit data, and each bit is displayed until the first character display bit data appears. The data of is kept as it is, which is the data indicating the absence of the character composing line, and all the data of each bit from the appearance of the first character display bit data to the appearance of the next character display bit data is the character display bit data. Will be changed to. When the second character display bit data appears, the subsequent bit data remains the data representing the absence of the character component line, and if the third character display bit data appears, the subsequent bit data. Is changed to character display bit data. In this way, if it is determined whether or not the data of each bit is character display bit data sequentially and the bit data is set for all pixels, it takes time to perform the process, and the bit data can be set quickly. I can't do it.

そこで、請求項1の発明は、アウトラインデータのビッ
トデータへの変換を迅速に行うことができるデータ変換
装置を提供することを課題として為されたものである。
Therefore, an object of the invention of claim 1 is to provide a data conversion device capable of quickly converting outline data into bit data.

そして、請求項2の発明は、請求項1の発明の課題に加
えて、細いキャラクタ構成線を含むキャラクタのアウト
ラインデータでも正確にビットデータに変換されるデー
タ変換装置を提供することを課題として為されたもので
ある。
In addition to the problem of the invention of claim 1, it is an object of the invention to provide a data conversion device that can accurately convert outline data of a character including a thin character constituting line into bit data. It was done.

また、請求項3の発明は、2個対にされた座標間に多数
の画素が存在する場合に、それら画素のビットデータを
一層迅速に設定し得るデータ変換装置を提供することを
課題として為されたものである。
Further, an object of the invention of claim 3 is to provide a data conversion device capable of more rapidly setting bit data of pixels when a large number of pixels exist between two paired coordinates. It was done.

課題を解決するための手段 請求項1の発明は、上記の課題を解決するために第1図
に示されるように、(a)アウトラインデータを規定す
る座標面上に想定されるキャラクタの輪郭線と、互に平
行な複数の走査線との交点の座標を画素の位置で求める
交点座標算出手段と、(b)その交点座標算出手段によ
り求められた交点の座標を各走査線毎に座標値の大きさ
の順に並べた場合に互に隣接する2個ずつの座標を取り
出し、それらを各々対にして記憶する交点座標記憶手段
と、(c)その交点座標記憶手段により記憶された各対
の座標間のすべての画素に対応するビットデータを、一
挙にキャラクタ構成線の存在を表すデータに設定するビ
ットデータ設定手段とを含むように構成される。
Means for Solving the Problems The invention of claim 1 is, as shown in FIG. 1 for solving the above problems, (a) a contour line of a character assumed on a coordinate plane defining outline data. And (b) intersection point coordinate calculation means for obtaining the coordinates of intersection points with a plurality of mutually parallel scanning lines at pixel positions, and (b) coordinate values of the intersection points obtained by the intersection point coordinate calculation means for each scanning line. In the order of the size of the two, the two coordinates adjacent to each other are taken out, and each of them is paired and stored, and (c) each of the pairs of coordinates stored by the intersection coordinate storage means. Bit data corresponding to all the pixels between the coordinates is configured to include bit data setting means for collectively setting the data representing the existence of the character constituting line.

ここにおいて、『キャラクタの輪郭線と走査線との交点
の座標を画素の位置で求める』とは、交点が画素の位置
を表す点(例えば画素の中心)であれば交点自体の座標
を求めることであり、そうでなければ交点に最も近い画
素の位置を表す点の座標を求めることである。この場
合、交点に最も近い画素としては、後述の実施例におけ
るようにキャラクタ構成線の輪郭線より内側にある画素
のうち交点に最も近い画素を採用することが一般的であ
るが、輪郭線の外側の画素のうち交点に最も近い画素、
あるいは輪郭線の内外を問わず文字通り交点に最も近い
画素を採用することも可能である。そして、いずれの場
合にも『各対の座標間のすべての画素』なる表現は、各
対の座標に対応する画素自体を含める場合と含めない場
合との両方の場合を含むものとする。
Here, "obtaining the coordinates of the intersection of the character contour line and the scanning line at the pixel position" means obtaining the coordinates of the intersection itself if the intersection represents a pixel position (for example, the center of the pixel). Otherwise, to obtain the coordinates of the point that represents the position of the pixel closest to the intersection. In this case, as the pixel closest to the intersection, it is common to use the pixel closest to the intersection among the pixels inside the contour of the character configuration line as in the embodiment described later. Of the outer pixels, the pixel closest to the intersection,
Alternatively, it is also possible to adopt the pixel that is literally closest to the intersection regardless of whether it is inside or outside the contour line. In any case, the expression "all pixels between the coordinates of each pair" includes both the case of including the pixel itself corresponding to the coordinates of each pair and the case of not including the pixel itself.

また、請求項2の発明に係るデータ変換装置において
は、交点座標記憶手段が、キャラクタ構成線の一走査線
上における幅が小さいために交点座標算出手段により交
点の座標が1個のみ求められた場合には、その1個の座
標を2個対にして記憶するものとされる。
Further, in the data conversion device according to the second aspect of the present invention, when the intersection coordinate storage means has a small width on one scanning line of the character configuration line, the intersection coordinate calculation means determines only one intersection coordinate. Is stored in a pair.

そして、請求項3の発明に係るデータ変換装置において
は、交点座標算出手段,交点座標記憶手段およびビット
データ設定手段がコンピュータにより構成されており、
ビットデータ設定手段が、2個ずつ対にされた座標間に
コンピュータによって並列処理可能なビットデータ群が
1群以上ある場合にはビットデータ群単位でビットデー
タの設定を行う群単位設定手段を備えたものとされる。
In the data converter according to the invention of claim 3, the intersection coordinate calculation means, the intersection coordinate storage means and the bit data setting means are constituted by a computer,
The bit data setting means is provided with a group unit setting means for setting bit data in bit data group units when there is one or more groups of bit data which can be processed in parallel by a computer between two paired coordinates. It is supposed to be

作用および発明の効果 請求項1の発明に係るデータ変換装置においては、前記
従来装置におけるようにまず輪郭画素についてキャラク
タ表示ビットデータの設定が行われ、次にそれらキャラ
クタ表示ビットデータに基づいて内部画素についてのキ
ャラクタ表示ビットデータの設定が行われるわけではな
く、ビットデータの設定がキャラクタの輪郭線と走査線
との交点の各対の座標に直接的に基づいて行われるよう
になっており、2個の座標間のすべての画素に対応する
ビットデータが一挙にキャラクタ表示ビットデータに設
定される。交点座標算出手段によって求められる交点の
座標は、大きさの順に並べた場合に互に隣接する2個ず
つが取り出され、対にされて記憶されているため、これ
ら対を成す2個ずつの座標の間には必ずキャラクタ構成
線が存在することとなるのであり、ビットデータを一挙
にキャラクタ表示ビットデータに設定しても間違いなく
キャラクタ構成線に対応するビットデータが得られる。
In the data conversion device according to the invention of claim 1, the character display bit data is first set for the contour pixels as in the conventional device, and then the internal pixel is set based on the character display bit data. Is not set for the character display bit data, but the bit data is set directly on the basis of the coordinates of each pair of intersections of the contour line of the character and the scanning line. The bit data corresponding to all the pixels between these coordinates are set as the character display bit data at once. As for the coordinates of the intersections obtained by the intersection coordinate calculating means, when arranged in order of size, two adjacent ones are taken out and stored as a pair. Therefore, two coordinates forming each pair are stored. Since the character constituting line always exists between them, the bit data corresponding to the character constituting line can be surely obtained even if the bit data is set to the character display bit data all at once.

このように請求項1の発明によれば、ビットデータの設
定が1段階で行われ、しかも、画素毎にその画素に対応
するビットデータがキャラクタ表示ビットデータである
か否かの判定を行う必要がないため、アウトラインデー
タのビットデータへの変換が容易にかつ迅速に行われる
こととなる。
Thus, according to the first aspect of the invention, the bit data is set in one step, and it is necessary to determine for each pixel whether or not the bit data corresponding to the pixel is character display bit data. Therefore, the outline data can be converted into bit data easily and quickly.

また、請求項2の発明においては、アウトラインデータ
が正確にキャラクタ表示ビットデータに変換される効果
が得られる。キャラクタ構成線の端が尖鋭状を成して部
分的に細い場合、あるいは1本のキャラクタ構成線全体
が細い場合には、キャラクタ構成線の輪郭線と走査線と
の交点が1本のキャラクタ構成線に対して2個求められ
るべきところ1個しか求められないことがあり、そのよ
うな場合、従来のデータ変換装置においてはその1個の
交点から別のキャラクタ構成線の輪郭線と走査線との交
点までの画素に対応するビットデータがキャラクタ表示
ビットデータとされてしまい、アウトラインデータが表
すのとは異なる形状のキャラクタを表すビットデータが
設定される事態が生ずることとなる。そのため、従来は
このような事態が発生しないようにアウトラインデータ
を注意して作成することが必要であった。
Further, in the invention of claim 2, the effect that the outline data is accurately converted into the character display bit data can be obtained. When the ends of the character forming line are sharp and partially thin, or when the entire character forming line is thin, the intersection of the contour line of the character forming line and the scanning line forms one character. Sometimes two lines should be obtained, but only one line is obtained. In such a case, in the conventional data conversion device, the contour line of another character constituting line and the scanning line are separated from one intersection point. The bit data corresponding to the pixels up to the intersection of will be the character display bit data, and bit data representing a character having a shape different from that represented by the outline data will be set. Therefore, conventionally, it has been necessary to create outline data carefully so that such a situation does not occur.

それに対し、請求項2のデータ変換装置によれば、輪郭
線と走査線との交点の座標が1個しか求められなくても
同じ座標が2個対にされて記憶されるため、対にされた
2個の座標には必ず同じキャラクタ構成線について得ら
れたものであって、異なるキャラクタ構成線間の画素に
対応するビットデータが誤ってキャラクタ表示ビットデ
ータに設定されることはなく、アウトラインデータで表
される形状が正確に表示されることとなる。
On the other hand, according to the data conversion device of the second aspect, even if only one coordinate at the intersection of the contour line and the scanning line is obtained, the same coordinate is stored as a pair, and thus the pair is stored. The two coordinates are always obtained for the same character component line, and the bit data corresponding to the pixels between different character component lines are not mistakenly set as the character display bit data. The shape represented by will be displayed correctly.

そして、請求項3の発明においては、ビットデータ設定
手段が、2個ずつ対にされた座標間に、ビットデータ設
定手段等を構成するコンピュータによって並列処理可能
なビットデータ群が1群以上ある場合にはビットデータ
群単位でビットデータの設定を行う群単位設定手段を備
えたものとされているため、ビットデータ群内の1個ず
つのビットデータが個別に設定される場合に比較して、
ビットデータの設定が迅速に行われることとなる。
In the invention of claim 3, the bit data setting means has one or more groups of bit data which can be processed in parallel by a computer constituting the bit data setting means or the like between the paired coordinates. Is equipped with a group unit setting means for setting bit data in units of bit data groups. Therefore, in comparison with the case where each bit data in the bit data group is individually set,
Bit data can be set quickly.

実施例 以下、レーザプリンタにおいてアウトラインデータをビ
ットデータに変換する装置に本発明を適用した場合を例
に取り、図面に基づいて詳細に説明する。
Embodiment Hereinafter, a case where the present invention is applied to a device for converting outline data into bit data in a laser printer will be described in detail with reference to the drawings, taking the case where the present invention is applied.

第2図はレーザプリンタの制御回路のうち、データ変換
に関する部分を主として示す図である。この制御回路の
主体を成すマイクロコンピュータ部10は、CPU12,キャラ
クタROM14,プログラムROM16,テキストメモリ18,ワーキ
ングメモリ20,交点座標メモリ22,ビットデータメモリ24
を備えている。これらCPU12等はバス28により接続され
ており、バス28には入力装置30および印字部32が接続さ
れている。入力装置30は必要なデータをマイクロコンピ
ュータ部10に入力するものであり、印字部32はマイクロ
コンピュータ部10からの指令に基づいてレーザプリント
方式により印字を行う部分である。なお、本レーザプリ
ンタの解像度は300Dot/Inchとする。
FIG. 2 is a diagram mainly showing a portion related to data conversion in the control circuit of the laser printer. The microcomputer unit 10, which is the main body of this control circuit, includes a CPU 12, a character ROM 14, a program ROM 16, a text memory 18, a working memory 20, an intersection coordinate memory 22, and a bit data memory 24.
Is equipped with. The CPU 12 and the like are connected by a bus 28, and an input device 30 and a printing unit 32 are connected to the bus 28. The input device 30 inputs necessary data to the microcomputer unit 10, and the printing unit 32 is a unit for performing printing by a laser printing method based on a command from the microcomputer unit 10. The resolution of this laser printer is 300 Dot / Inch.

CPU12には、第3図に概念的に示すようにデータ読出部3
6,キャラクタの輪郭線とx方向規定線xとの交点の座標
を求める交点座標算出部38,ビットデータの設定を行う
データ設定部40等が設けられている。テキストメモリ18
は、入力装置30から入力されるコードデータから成る文
字データを記憶するものであり、ワーキングメモリ20
は、プログラム実行時に必要なデータを記憶するもので
ある。また、交点座標メモリ22には交点座標算出部38に
より求められた座標値が記憶され、ビットデータメモリ
24にはデータ設定部40の設定により得られるビットデー
タが記憶される。
The CPU 12 includes a data reading unit 3 as shown conceptually in FIG.
6, an intersection coordinate calculation unit 38 for obtaining the coordinates of the intersection between the outline of the character and the x-direction defining line x, a data setting unit 40 for setting bit data, and the like are provided. Text memory 18
Is for storing character data consisting of code data input from the input device 30, and the working memory 20
Stores the data necessary for executing the program. The intersection coordinate memory 22 stores the coordinate values obtained by the intersection coordinate calculation unit 38,
In 24, bit data obtained by the setting of the data setting unit 40 is stored.

キャラクタROM14には、アルファベットその他の文字や
記号等キャラクタのアウトラインデータが記憶されてい
る。キャラクタの輪郭を決定する座標面は、第5図に示
されるように、縦(Y軸),横(X軸)がそれぞれ1000
×1000の大きさとされており、アルファベットの大文字
はY軸の座標値の200から1000までの間で描かれ、小文
字は0から200の間も使って描かれる。X軸方向に関し
ては座標面の中央と文字の中心とが一致させられる。こ
のような座標面上においてキャラクタの輪郭がデザイン
されるとき、キャラクタを構成するキャラクタ構成線44
には幅を有し、輪郭線46によって囲まれて成るものとさ
れる。アウトラインデータは“H"を例に取って示すよう
に輪郭線46の図中丸印が付されている点から点とを結ぶ
線素毎に作成され、その線素の種類および両端の点毎の
座標等を含んでいる。これら各点の座標は輪郭線46上に
定められた一定の方向(図中矢印で示されている)に沿
って順番に記憶され、各線素の両端の2点のうち、先に
記憶される点が始点であり、後に記憶される点が終点で
ある。アウトラインデータは、線素が直線の場合には直
線データおよび始点,終点の各座標を含み、曲線の場合
には曲線データ,曲線の関数式および始点,終点,補助
点の各座標を含み、円弧の場合には円弧データおよび始
点,終点,円の中心点の各座標を含むものとされる。キ
ャラクタROM14にはまた、各キャラクタ毎に線素の数N
が記憶されている。
The character ROM 14 stores outline data of characters such as alphabets and other characters and symbols. As shown in FIG. 5, the coordinate planes that determine the outline of the character are 1000 (vertical (Y-axis) and horizontal (X-axis)).
It has a size of × 1000, and uppercase letters of the alphabet are drawn between Y and Y coordinate values 200 to 1000, and lowercase letters are also drawn between 0 and 200. Regarding the X-axis direction, the center of the coordinate plane and the center of the character are made to coincide. When the outline of the character is designed on such a coordinate plane, the character composition line 44 that constitutes the character is formed.
Has a width and is surrounded by a contour line 46. The outline data is created for each line element that connects a point with a circle in the figure of the contour line 46 as shown by taking “H” as an example, and the type of the line element and each point at both ends are created. Includes coordinates, etc. The coordinates of each of these points are sequentially stored along a fixed direction (indicated by an arrow in the drawing) defined on the contour line 46, and are stored first of the two points at both ends of each line element. The point is the start point, and the point stored later is the end point. The outline data includes straight line data and each coordinate of the start point and end point when the line element is a straight line, and includes curve data, a function formula of the curve and each coordinate of the start point, end point, and auxiliary point when the line element is a circular arc. In the case of, it includes the arc data and the coordinates of the start point, the end point, and the center point of the circle. The character ROM 14 also includes the number N of line elements for each character.
Is remembered.

本レーザプリンタにおいてアウトラインデータのビット
データへの変換は、第6図に示される画素スクリーン50
を用いて行われる。画素スクリーン50はアウトラインデ
ータをビットデータに変換するための計算上のものであ
るが、ここでは理解を容易にするために実在するものと
して図示することとする。また、ここにおいて画素と
は、レーザにより印字が行われる際の最小印字単位であ
り、画素スクリーン50は、一平面内において互に直交
し、X軸方向とY軸方向とにそれぞれ平行であって、等
間隔に設けられた複数の画素区間線pにより画素を規定
している。本実施例において画素は正方形とされてお
り、画素毎に印字を行うか否かのビートデータが作成さ
れる。また、各画素の中心点(以下、画素中心点と称す
る)を通り、X軸方向とY軸方向とにそれぞれ平行なx
方向規定線xとy方向規定線yとが設定されており、各
画素の位置は画素中心点の座標で表される。なお、画素
は矩形その他の形状とすることも可能である。
In this laser printer, conversion of outline data to bit data is performed by the pixel screen 50 shown in FIG.
Is performed using. Pixel screen 50 is computational for converting outline data to bit data, but is illustrated here as being real for ease of understanding. Further, the pixel here is a minimum print unit when printing is performed by a laser, and the pixel screen 50 is orthogonal to each other in one plane and is parallel to the X-axis direction and the Y-axis direction. , Pixels are defined by a plurality of pixel section lines p provided at equal intervals. In this embodiment, the pixels are square, and beat data indicating whether or not to print is created for each pixel. In addition, x that passes through the center point of each pixel (hereinafter referred to as the pixel center point) and is parallel to the X-axis direction and the Y-axis direction, respectively.
A direction defining line x and a y direction defining line y are set, and the position of each pixel is represented by the coordinates of the pixel center point. Note that the pixel may have a rectangular shape or another shape.

画素スクリーン50は印字用紙の印字面に対応して想定さ
れるものであるが、第6図には理解を容易にするために
1キャラクタ分を取り出して示してある。したがって、
画素スクリーン50全体においてx方向規定線x,y方向規
定線yに実際に付される目盛値は、第6図においてx方
向規定線,y方向規定線に付されている目盛値に適宜の整
数をそれぞれ加えた値となるが、ここでは1キャラクタ
分についてのみ考えることとする。
Although the pixel screen 50 is supposed to correspond to the printing surface of the printing paper, one character is taken out and shown in FIG. 6 for easy understanding. Therefore,
The scale values actually attached to the x-direction defining line x and the y-direction defining line y in the whole pixel screen 50 are integers appropriate to the scale values attached to the x-direction defining line and the y-direction defining line in FIG. However, here, only one character will be considered.

アウトラインデータのビットデータへの変換は、キャラ
クタの輪郭を画素スクリーン50に重ね合わせたと想定し
て行われ、本実施例においてはキャラクタの輪郭内の各
画素にドットが形成されるようになっており、その画素
のビットデータが1とされる。輪郭内には1個の画素の
全部または一部が含まれることとなるが、ビットデータ
への具体的な変換については後に詳述する。
The conversion of outline data into bit data is performed on the assumption that the outline of the character is superimposed on the pixel screen 50, and in the present embodiment, dots are formed at each pixel in the outline of the character. , The bit data of the pixel is set to 1. All or part of one pixel is included in the contour, but the specific conversion to bit data will be described in detail later.

また、本レーザプリンタは、キャラクタを4.8ポイント,
10ポイント,12ポイント,20ポイント,24ポイント,30ポイ
ント等任意のサイズで印字することができ、印字サイズ
に合わせて前記1000×1000の座標面で作られた輪郭の座
標値が換算される。BポイントのキャラクタがC×C画
素で表されるとすれば、1画素の1辺が1である座標面
を画素スクリーン50上に想定し、1000×1000の座標面上
において輪郭を決定する点の座標値にC/1000を掛ければ
上記画素スクリーン50上に想定した座標面上の座標値が
得られるのである。ここでは1個のキャラクタが20×20
画素で表される4.8ポイントで印字を行う場合について
説明する。第6図の画素スクリーン50に付された0から
20までの数字はこの場合の座標値である。なお、キャラ
クタの輪郭を画素スクリーン50に重ね合わせる際には、
印字位置データに基づいて各キャラクタの基準点の画素
スクリーン50上における座標値の決定も行われ、得られ
た基準点の座標値と上記換算された座標値とを用いて重
ね合わせが行われる。
In addition, this laser printer has 4.8 points for characters,
Printing can be performed in any size such as 10 points, 12 points, 20 points, 24 points, 30 points, etc., and the coordinate values of the contour formed on the 1000 × 1000 coordinate plane are converted according to the printing size. If the character of B point is represented by C × C pixels, a coordinate plane in which one side of one pixel is 1 is assumed on the pixel screen 50, and the contour is determined on the 1000 × 1000 coordinate plane. By multiplying the coordinate value of C / 1000 by, the coordinate value on the assumed coordinate plane on the pixel screen 50 can be obtained. Here one character is 20 × 20
The case where printing is performed at 4.8 points represented by pixels will be described. From 0 attached to the pixel screen 50 of FIG.
The numbers up to 20 are the coordinate values in this case. When overlaying the outline of the character on the pixel screen 50,
The coordinate value of the reference point of each character on the pixel screen 50 is also determined based on the print position data, and the coordinate value of the obtained reference point and the converted coordinate value are used for superposition.

前記プログラムROM16にはさらに、第4図にフローチャ
ートで示されるビットデータ変換用のプログラムを始め
として、印字に必要な種々のプログラムが記憶されてい
る。以下、アルファベットの“H"を例に取り、アウトラ
インデータのビットデータへの変換について説明する。
なお、印字については本発明を理解する上で不可欠では
ないため詳細な説明は省略するが、本レーザプリンタに
おいては印字が1頁毎に行われる。テキストメモリ18に
記憶された文書データのうち1頁分のデータが読み出さ
れ、そのデータを構成するキャラクタのアウトラインデ
ータがビットデータに変換されて印字が行われるのであ
る。
The program ROM 16 further stores various programs necessary for printing, including the program for bit data conversion shown in the flowchart of FIG. The conversion of outline data into bit data will be described below by taking the letter “H” as an example.
Although the printing is not essential for understanding the present invention, a detailed description thereof will be omitted, but in the present laser printer, printing is performed page by page. Data of one page of the document data stored in the text memory 18 is read, outline data of characters constituting the data is converted into bit data, and printing is performed.

まず、ステップS1(以下、S1と略記する。他のステップ
についても同じ。)において処理されるキャラクタのア
ウトラインデータ,線素の数および印字サイズが読み出
された後、S2においてキャラクタの輪郭線46とx方向規
定線xとの交点のx座標が輪郭線46を構成する線素毎に
求められる。以下、このx座標を求めるための規則を第
7図ないし第12図に基づいて説明する。
First, after the outline data, the number of line elements, and the print size of the character processed in step S1 (hereinafter abbreviated as S1; the same applies to other steps) are read out, and then the outline 46 of the character is read in S2. And the x-direction defining line x, the x-coordinate of the intersection is obtained for each line element forming the contour line 46. The rules for obtaining the x coordinate will be described below with reference to FIGS.

線素がx方向規定線x,y方向規定線yのいずれとも交差
する直線の場合には、第7図に示されるように、その線
素の始点から終点に至るまで複数のx方向規定線xと×
印で示される位置において交差することとなるが、交点
のx座標は、x方向規定線xと線素との実際の交点のx
座標ではなく、その線素が画定するキャラクタ構成線の
内側(図中斜線が施されている部分)にあって実際の交
点に最も近い画素の中心点(図中○印が付されている
点)のx座標が交点とされるのである。x方向規定線x
と線素との実際の交点が画素の中心点と一致する場合に
は、その交点のx座標がそのままx方向規定線xと線素
との交点とされる。
When the line element is a straight line that intersects both the x-direction defining line x and the y-direction defining line y, as shown in FIG. 7, a plurality of x-direction defining lines are provided from the start point to the end point of the line element. x and x
Although it intersects at the position indicated by the mark, the x coordinate of the intersection point is the x point of the actual intersection point of the x direction defining line x and the line element.
Not the coordinates but the center point of the pixel closest to the actual intersection inside the character component line defined by the line element (the shaded area in the figure) (the point marked with a circle in the figure) The x coordinate of) is taken as the intersection. x direction standard line x
When the actual intersection between the line element and the line element coincides with the center point of the pixel, the x coordinate of the intersection is directly taken as the intersection between the x-direction defining line x and the line element.

また、第8図に示されるように線素がx方向規定線xと
平行な場合および第9図に示されるように線素のx方向
規定線xに対する傾斜角度が小さく、かつ、短く、隣接
する2本のx方向規定線xの間に位置する場合には、交
点はないものとして処理される。さらに、第10図に示さ
れるように、x方向規定線x上に位置する線素の両端に
それぞれ傾斜線素がつながっている場合にはx方向規定
線x上の線素については交点がないものとされ、2本の
傾斜線素の両端の点については、それらのうち外側(図
において左側)の点についてのみ交点の座標を求め、内
側の点については交点はないものとする。さらにまた、
第11図に示されるように2本の傾斜線素が交差し、それ
ら線素の交点近傍においては1本のx方向規定線x上に
位置する画素の中心が1個しかないというようにキャラ
クタ構成線が部分的に細い場合には、2本の傾斜線素の
それぞれについて同じ画素の中心のx座標を交点のx座
標とする。したがって、これら2本の傾斜線素の端がち
ょうどx方向規定線x上において一致する場合であって
も、同一のx座標が2個交点のx座標として求められる
こととなる。
In addition, when the line element is parallel to the x-direction defining line x as shown in FIG. 8 and the inclination angle of the line element with respect to the x-direction defining line x is small, short, and adjacent to each other, as shown in FIG. If it is located between the two x-direction defining lines x, the intersection is processed as no intersection. Further, as shown in FIG. 10, when inclined line elements are connected to both ends of a line element located on the x-direction defining line x, there is no intersection for the line elements on the x-direction defining line x. For the points at both ends of the two slanted line elements, the coordinates of the intersection are determined only for the points on the outer side (the left side in the figure), and there is no intersection for the points on the inner side. Furthermore,
As shown in FIG. 11, two slanted line elements intersect, and in the vicinity of the intersection of these line elements, there is only one pixel center on one x-direction defining line x. When the constituent line is partially thin, the x coordinate of the center of the same pixel for each of the two inclined line elements is the x coordinate of the intersection. Therefore, even when the ends of these two slanted line elements exactly coincide with each other on the x-direction defining line x, the same x coordinate is obtained as the x coordinate of two intersections.

さらに、第12図に示されるように2本の輪郭線素がy方
向規定線yに平行であって間隔が狭く、それらの間に画
素中心点が含まれない場合には次のようにして交点のx
座標を求める。2本の輪郭線素のうちx座標値の小さい
方の輪郭線素とx方向規定線xとの交点の座標を、それ
ら実際の交点よりキャラクタ構成線が存在する側の画素
中心点の座標とするとともに、他方の輪郭線素について
も同じ座標を交点のx座標とする。なお、上記2本の輪
郭線素の間に画素中心点が含まれている場合には、その
画素中心点のx座標が2個交点のx座標として求められ
る。
Further, as shown in FIG. 12, when the two contour line elements are parallel to the y-direction defining line y and the interval is narrow and the pixel center point is not included between them, Intersection x
Find the coordinates. Of the two contour line elements, the coordinates of the intersection point of the one with the smaller x coordinate value and the x-direction defining line x are the coordinates of the pixel center point on the side where the character component line exists from those actual intersection points. At the same time, the same coordinate is set as the x coordinate of the intersection for the other contour line element. When the pixel center point is included between the two contour line elements, the x coordinate of the pixel center point is obtained as the x coordinate of the two intersections.

このような規則に従ってアルファベットの“H"の輪郭線
46を構成する各線素と各x方向規定線xとの交点を求め
れば、第13図に示されるように黒丸が付された位置が交
点となる。本実施例の場合、x方向規定線xは1キャラ
クタ毎に20本ずつあり、各x方向規定線xの位置を表す
y座標に対応して各交点のx座標が記憶される。交点の
座標はS3において交点座標メモリ22に記憶されるのであ
るが、x方向規定線x毎の記憶領域の先頭には交点の数
が記憶される。第14図には、“H"について求められた交
点の個数およびx座標値の一部がx方向規定線x毎に表
にして示されている。続いてS4においてnが1増加させ
られた後、S5においてnがN以上であるか、すなわち輪
郭線46を構成するすべての線素について交点のx座標の
算出が終了したか否かの判定が行われる。まだ終わって
いない場合には判定結果はNOとなり、次の線素について
交点のx座標が算出される。また、終了した場合には判
定結果はYESとなり、S6においてnがクリアされる。
The outline of the letter "H" according to these rules
If the intersection of each line element that constitutes 46 and each x-direction defining line x is obtained, the intersection is the position marked with a black circle as shown in FIG. In the case of the present embodiment, there are 20 x-direction defining lines x for each character, and the x-coordinate of each intersection is stored corresponding to the y-coordinate representing the position of each x-direction defining line x. The coordinates of the intersection are stored in the intersection coordinate memory 22 in S3, and the number of intersections is stored at the head of the storage area for each x-direction defining line x. In FIG. 14, the number of intersections obtained for "H" and a part of the x coordinate values are shown in a table for each x direction defining line x. Then, after n is incremented by 1 in S4, it is determined whether or not n is N or more in S5, that is, whether or not the calculation of the x coordinate of the intersection point is completed for all the line elements forming the contour line 46. Done. If not finished yet, the determination result is NO, and the x coordinate of the intersection is calculated for the next line element. When the processing is completed, the determination result is YES, and n is cleared in S6.

次にS7において、S3で記憶された交点のx座標値がx方
向規定線x毎に小さい順に並べ変えられるとともに、小
さい順に2個ずつ取り出されて対にされる。交点のx座
標は線素毎に求められ、S3ではx座標の値が求められ順
にメモリ22に記憶されるため、x座標の値が大きい方の
線素について小さい方の線素より先に求められることが
あり、大きさの順に記憶されているとは限らないからで
ある。本レーザプリンタにおいては、キャラクタ構成線
が細く、そのキャラクタ構成線を画定する2本の輪郭線
素の間に交点の座標が1個しか含まれない場合、あるい
は1つも含まれない場合でも輪郭線素毎に同一のx座標
が記憶されるようになっているため、キャラクタ構成線
のどの部分を取っても交点のx座標は2個ずつ求められ
る。したがって、x座標を小さい順に並べ変えて2個ず
つ対にした場合、それら対にされた座標値の間には必ず
キャラクタ構成線が存在することとなり、それら座標値
間の画素に対応するビットデータを一挙に1に設定する
ことができる。なお、本実施例においては、交点を画素
中心点とする画素についてもビットデータが設定される
ものとする。
Next, in S7, the x-coordinate values of the intersections stored in S3 are rearranged in ascending order for each x-direction defining line x, and two smaller values are extracted and paired. The x-coordinate of the intersection is calculated for each line element, and the value of the x-coordinate is calculated in S3 and stored in the memory 22 in order. This is because it is not always stored in order of size. In the present laser printer, the character line is thin, and only one coordinate of the intersection is included between the two contour line elements that define the character line, or the contour line is included even if no coordinate is included. Since the same x-coordinate is stored for each prime, two x-coordinates of intersections are obtained regardless of which part of the character configuration line is taken. Therefore, when the x-coordinates are rearranged in ascending order to form a pair of two, a character composing line always exists between the paired coordinate values, and the bit data corresponding to the pixel between the coordinate values. Can be set to 1 all at once. In addition, in the present embodiment, bit data is set also for a pixel whose intersection is the pixel center point.

このように座標値が並べ変えられた後、S8においてビッ
トデータの設定が行われる。ビットデータの設定は、1
バイト単位でまとめて行われる。マイクロコンピュータ
部10は1バイトのデータを並列に処理し得るものであ
り、1画素のデータは1ビットで表されるため、8個の
画素のビットデータが一挙に設定されることとなる。こ
こでは対にされた座標値が(5,18)であるとし、第15図
に基づいて説明する。なお、この座標値(5,18)は画素
スクリーン50上の実際の画素の位置を表すものとする。
After the coordinate values are rearranged in this way, bit data is set in S8. Bit data setting is 1
It is done collectively in bytes. The microcomputer unit 10 is capable of processing 1-byte data in parallel, and since 1-pixel data is represented by 1-bit, 8-pixel bit data is set all at once. Here, the paired coordinate values are (5, 18), and the description will be made with reference to FIG. The coordinate value (5,18) represents the actual pixel position on the pixel screen 50.

まず、ビットデータが1に設定されるべき画素の数を求
める。すなわち、1本のx方向規定線x上において、対
にされている2つの座標値(5,18)によって規定される
線分の終点の座標値18から始点の座標値5を引いた上、
1を加えるのである。次に、始点の座標値より大きい座
標値であって1バイトの区切となる座標値から始点の座
標値を引く。互に隣接するバイト間の区切となるビット
の座標値が区切となる座標値である。画素の番号(この
番号が座標値と一致している。)は0から付されてお
り、区切の画素の番号は8の倍数となる。したがって、
8から5を引くこととなり、引いた値3は、0から7ま
での画素を1単位とするグループに含まれる画素のうち
上記始点の画素より座標値が大きい画素の数である。し
たがって、それら3個の画素に対応するビットデータが
まとめて1に設定される。
First, the number of pixels whose bit data should be set to 1 is obtained. That is, on one x-direction defining line x, after subtracting the coordinate value 5 of the start point from the coordinate value 18 of the end point of the line segment defined by the two coordinate values (5,18) paired,
Add one. Next, the coordinate value of the starting point is subtracted from the coordinate value that is larger than the coordinate value of the starting point and is a 1-byte division. The coordinate value of a bit that serves as a partition between mutually adjacent bytes is the coordinate value that serves as a partition. The pixel number (this number matches the coordinate value) is given from 0, and the pixel number of the partition is a multiple of 8. Therefore,
8 to 5 is subtracted, and the subtracted value 3 is the number of pixels having a coordinate value larger than that of the starting point pixel among the pixels included in the group in which pixels of 0 to 7 are set as one unit. Therefore, the bit data corresponding to these three pixels are collectively set to 1.

次に、1のビットデータを設定すべき残りの画素の中に
8個を1単位とするグループが幾つあるかが算出され
る。終点の座標値から区切の座標値のうち最小のものを
引いた後、1を加え、それにより得られる値を8で除す
るものである。18から8を引いた後、1を加え、これを
8で除せば1余り3となる。したがって、8画素を1単
位とするグループは1個であり、これら8画素について
まとめてビットデータが1に設定された後、残りの3画
素分についてまとめてビットデータが1に設定される。
以上のようにしてx方向規定線x毎に記憶された座標値
の各々についてビットデータの設定が完了したならば、
プログラムの実行はメインルーチンに戻る。
Next, it is calculated how many groups have 8 units as one unit in the remaining pixels for which 1 bit data is to be set. After subtracting the smallest coordinate value of the divisions from the coordinate value of the end point, 1 is added, and the value obtained thereby is divided by 8. After subtracting 8 from 18, add 1 and divide this by 8 to get 1 remainder 3. Therefore, there is one group with 8 pixels as one unit, and after the bit data is set to 1 for these 8 pixels collectively, the bit data is set to 1 for the remaining 3 pixels collectively.
When the setting of bit data is completed for each of the coordinate values stored for each x-direction defining line x as described above,
Program execution returns to the main routine.

このように本レーザプリンタによれば、キャラクタ構成
線が存在する画素に対応するビットデータの設定をまと
めて行うことができ、従来のように画素毎にその画素に
対応して設定されたビットデータが0か1かを判定しな
がらビットデータの設定を行わなくても済む上、ビット
データの設定が1バイト単位でまとめて行われるように
なっているため、1ビットずつ設定する場合に比較して
処理速度が速く、データ変換を極めて迅速に行うことが
できる。
As described above, according to this laser printer, it is possible to collectively set the bit data corresponding to the pixel in which the character configuration line exists, and the bit data set corresponding to the pixel for each pixel as in the conventional case. It is not necessary to set the bit data while determining whether the bit is 0 or 1, and since the bit data is set collectively in 1-byte units, a comparison is made when setting 1 bit at a time. The processing speed is fast, and data conversion can be performed extremely quickly.

また、細いキャラクタ構成線についても交点の座標が2
個ずつ求められるようになっているため、キャラクタを
デザインする際に交点座標が2個得られるように特別な
考慮を払う必要がなく、デザインが容易になる効果が得
られる。
In addition, the coordinates of the intersection of the thin character constituent lines are 2
Since the characters are calculated one by one, it is not necessary to take special consideration so as to obtain two intersection coordinates when designing the character, and the effect of facilitating the design can be obtained.

以上の説明から明らかなように、本実施例においては、
x方向規定線xが走査線を構成し、プログラムROM16のS
2を記憶する部分およびCPU12のS2を実行する部分、すな
わち前記交点座標算出部38が交点座標算出手段を構成
し、交点座標メモリ22とプログラムROM16のS7を記憶す
る部分およびCPU12のS7を実行する部分とが交点座標記
憶手段を構成し、プログラムROM16のS8を記憶する部分
およびCPU12のS8を実行する部分、すなわち前記データ
設定部40がビットデータ設定手段を構成しているのであ
る。そして、上記S8を実行する部分のうち前記1バイト
ずつのビットデータをまとめて処理する部分が群単位設
定手段を構成している。
As is clear from the above description, in this embodiment,
The x direction defining line x constitutes a scanning line, and S of the program ROM 16
The portion storing 2 and the portion executing S2 of the CPU 12, that is, the intersection coordinate calculating unit 38 constitutes the intersection coordinate calculating means, and the portion storing S7 of the intersection coordinate memory 22 and the program ROM 16 and executing S7 of the CPU 12 are executed. The portion and the portion constitute the intersection point coordinate storage means, and the portion for storing S8 of the program ROM 16 and the portion for executing S8 of the CPU 12, that is, the data setting portion 40 constitute the bit data setting means. Then, of the part that executes S8, the part that collectively processes the bit data of each byte constitutes the group unit setting means.

なお、上記実施例においてはx方向規定線xが走査線と
されていたが、y方向規定線y等他の直線を走査線とし
てもよい。
Although the x-direction defining line x is the scanning line in the above embodiment, other straight lines such as the y-direction defining line y may be used as the scanning line.

また、上記実施例においては細いキャラクタ構成線につ
いて走査線との交点が2個ずつ求められ、キャラクタデ
ザインが容易となる効果が得られるようにされていた
が、予め輪郭が交点の座標が2個ずつ求められるように
デザインされているのであれば、細いキャラクタ構成線
について同一の座標を2個ずつ求める機能を省略するこ
とができる。
Further, in the above-described embodiment, two intersections with the scanning line are obtained for each thin character-constituting line, so that the effect of facilitating the character design can be obtained. If it is designed to be calculated one by one, it is possible to omit the function of calculating two identical coordinates for thin character component lines.

さらに、アウトラインデータは、座標のみで表すなど、
他の手段により構成してもよい。座標のみで表す場合、
複数の直線により構成されるキャラクタについては、そ
の輪郭の線素毎の座標データ群によってアウトラインデ
ータを構成し、曲線を含むキャラクタについては、その
曲線を画定するのに必要な複数の点の座標データ群を含
むようにアウトラインデータを構成する。
Furthermore, outline data is expressed only by coordinates,
You may comprise by another means. When expressed only by coordinates,
For a character that is composed of multiple straight lines, outline data is composed of coordinate data groups for each line element of the contour, and for characters that include a curve, coordinate data of the multiple points required to define the curve. Configure outline data to include groups.

さらにまた、レーザプリンタ以外のプリンタに本発明を
適用し得ることは勿論、プリンタ以外にも文字,記号等
のキャラクタのアウトラインデータをビットデータに変
換する必要のある装置に一般的に本発明を適用すること
ができる。
Furthermore, the present invention can be applied to printers other than laser printers, and in addition to printers, the present invention is generally applied to devices that need to convert outline data of characters such as characters and symbols into bit data. can do.

その他、いちいち例示することはしないが、当業者の知
識に基づいて種々の変形,改良を施した態様で本発明を
実施することができる。
In addition, although not exemplified, the present invention can be implemented in various modified and improved modes based on the knowledge of those skilled in the art.

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

第1図は本発明に係るデータ変換装置の構成を概念的に
示すブロック図である。第2図は本発明の一実施例であ
るデータ変換装置を備えたレーザプリンタの制御回路を
示すブロック図である。第3図は上記制御回路を構成す
るCPUを概念的に示す図である。第4図は上記制御回路
のプログラムROMに記憶されたプログラムのうち、デー
タ変換用プログラムを示すフローチャートである。第5
図は上記データ変換装置により変換される文字Hの輪郭
を示す図である。第6図は上記文字Hを画素スクリーン
に重ねて示す図である。第7図,第8図,第9図,第10
図,第11図および第12図はそれぞれ、上記データ変換装
置により変換されるキャラクタの輪郭を構成する線素と
走査線との交点の座標の求め方を説明する図である。第
13図は文字Hについて求められる交点の位置を画素スク
リーン上において示す図であり、第14図はその交点のx
座標値をx方向規定線x毎に表にして示す図である。第
15図は上記交点の座標に基づいて行われるビットデータ
の設定を説明する図である。 10:マイクロコンピュータ部 44:キャラクタ構成線、46:輪郭線 50:画素スクリーン、x:x方向規定線 y:y方向規定線
FIG. 1 is a block diagram conceptually showing the structure of the data conversion apparatus according to the present invention. FIG. 2 is a block diagram showing a control circuit of a laser printer provided with a data converter according to an embodiment of the present invention. FIG. 3 is a diagram conceptually showing a CPU constituting the above control circuit. FIG. 4 is a flow chart showing a data conversion program of the programs stored in the program ROM of the control circuit. Fifth
The figure is a diagram showing the contour of the character H converted by the data conversion device. FIG. 6 is a diagram showing the above-mentioned letter H by being superimposed on the pixel screen. 7, 8, 9 and 10
FIG. 11, FIG. 11 and FIG. 12 are diagrams for explaining how to obtain the coordinates of the intersections of the line elements and the scanning lines that form the outline of the character converted by the data conversion device. First
FIG. 13 is a diagram showing the position of the intersection determined for the character H on the pixel screen, and FIG. 14 is the x of the intersection.
It is a figure which shows the coordinate value in the table for every x direction prescription line x. First
FIG. 15 is a diagram for explaining the setting of bit data performed based on the coordinates of the intersections. 10: Microcomputer part 44: Character composition line, 46: Contour line 50: Pixel screen, x: x direction standard line y: y direction standard line

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/24 9471−5G ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location G09G 5/24 9471-5G

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】文字・記号等キャラクタの輪郭を表すアウ
トラインデータを、画素毎のビットデータに変換するデ
ータ変換装置であって、 前記アウトラインデータを規定する座標面上に想定され
る前記キャラクタ輪郭線と、互いに平行な複数の走査線
との交点の座標を前記画素の位置で求める交点座標算出
手段と、 その交点座標算出手段により求められた交点の座標を各
走査線毎に座標値の大きさの順に並べた場合に互に隣接
する2個ずつの座標を取り出し、それらを各々対にして
記憶する交点座標記憶手段と、 その交点座標記憶手段により記憶された各対の座標間の
すべての画素に対応するビットデータを、一挙にキャラ
クタを構成するキャラクタ構成線の存在を表すデータに
設定するビッタデータ設定手段と を含むことを特徴とするデータ変換装置。
1. A data conversion device for converting outline data representing a contour of a character such as a character or a symbol into bit data for each pixel, wherein the character contour line is assumed on a coordinate plane defining the outline data. And the intersection point coordinate calculation means for obtaining the coordinates of the intersection points with a plurality of scanning lines parallel to each other at the position of the pixel, and the coordinates of the intersection points obtained by the intersection point coordinate calculation means are the size of the coordinate value for each scanning line. In the case of arranging in the order of two, two coordinates adjacent to each other are taken out, and the coordinates are stored in pairs, and all the pixels between the coordinates of each pair stored by the intersection coordinate storage means. A bitter data setting means for setting the bit data corresponding to the above to the data representing the existence of the character constituent lines which constitute the character all at once. Converter.
【請求項2】前記交点座標記憶手段が、前記キャラクタ
構成線の一走査線上における幅が小さいために前記交点
座標算出手段により交点の座標が1個のみ求められた場
合には、その1個の座標を2個対にして記憶するもので
ある請求項1記載のデータ変換装置。
2. If only one intersection point coordinate is obtained by the intersection point coordinate calculating means because the intersection point coordinate storage means has a small width on one scanning line of the character constituting line, one of the intersection points is calculated. 2. The data conversion device according to claim 1, wherein two coordinates are stored as a pair.
【請求項3】前記交点座標算出手段,交点座標記憶手段
およびビットデータ設定手段がコンピュータにより構成
されており、ビットデータ設定手段が、前記2個ずつ対
にされた座標間に前記コンピュータによって並列処理可
能なビットデータ群が1群以上ある場合にはビットデー
タ群単位でビットデータの設定を行う群単位設定手段を
備えている請求項1または2に記載のデータ変換装置。
3. The intersection point coordinate calculation means, the intersection point coordinate storage means and the bit data setting means are constituted by a computer, and the bit data setting means performs parallel processing by the computer between the two paired coordinates. 3. The data conversion device according to claim 1, further comprising group unit setting means for setting bit data in units of bit data groups when there is one or more possible groups of bit data.
JP63269074A 1988-10-25 1988-10-25 Data converter Expired - Fee Related JPH0747339B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP63269074A JPH0747339B2 (en) 1988-10-25 1988-10-25 Data converter
US07/425,604 US5073956A (en) 1988-10-25 1989-10-23 Apparatus for converting image outline data into dot data representative of dots to be formed
DE3935558A DE3935558C2 (en) 1988-10-25 1989-10-25 Data conversion device
GB8924056A GB2224913B (en) 1988-10-25 1989-10-25 A converter and a method for converting image outline data into dot data representative of dots to be formed
FR898913972A FR2638263B1 (en) 1988-10-25 1989-10-25 APPARATUS FOR CONVERTING IMAGE CONTOUR DATA INTO POINT DATA REPRESENTATIVE OF POINTS TO BE FORMED

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63269074A JPH0747339B2 (en) 1988-10-25 1988-10-25 Data converter

Publications (2)

Publication Number Publication Date
JPH02116565A JPH02116565A (en) 1990-05-01
JPH0747339B2 true JPH0747339B2 (en) 1995-05-24

Family

ID=17467298

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63269074A Expired - Fee Related JPH0747339B2 (en) 1988-10-25 1988-10-25 Data converter

Country Status (1)

Country Link
JP (1) JPH0747339B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2910588B2 (en) * 1994-10-20 1999-06-23 ブラザー工業株式会社 Data conversion device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61148578A (en) * 1984-12-24 1986-07-07 Photo Composing Mach Mfg Co Ltd Character image data processing system
JPH0280267A (en) * 1988-09-19 1990-03-20 Hitachi Ltd Vector character processing method

Also Published As

Publication number Publication date
JPH02116565A (en) 1990-05-01

Similar Documents

Publication Publication Date Title
JPH02232690A (en) Data converting device
JPH0747339B2 (en) Data converter
JP2757411B2 (en) Data converter
JP3057963B2 (en) Data converter
JP2956705B2 (en) Data converter
JP3038840B2 (en) Data converter
JP2903531B2 (en) Data converter
JPH0743584B2 (en) Data converter
JP2618528B2 (en) Character drawing device, character output correction method, and character output device
JP3082228B2 (en) Data converter
JP2861127B2 (en) Data converter
JP3169013B2 (en) Data output device
JP3077180B2 (en) Data converter
JP2754579B2 (en) Data converter
JP2881924B2 (en) Data storage device
JP3092172B2 (en) Data converter
JP2559697B2 (en) Character processor
JP3033152B2 (en) Outline data processing device
JP3132507B2 (en) Data output method
JP3057811B2 (en) Data converter
JPH05341763A (en) Device for generating character
JPH0755565B2 (en) Data converter
JPH02226491A (en) Data conversion method
JPH0844333A (en) Graphic input device
JPH0630927B2 (en) Pattern output method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees