JP2738189B2 - Coordinate conversion method and coordinate conversion device - Google Patents

Coordinate conversion method and coordinate conversion device

Info

Publication number
JP2738189B2
JP2738189B2 JP3293538A JP29353891A JP2738189B2 JP 2738189 B2 JP2738189 B2 JP 2738189B2 JP 3293538 A JP3293538 A JP 3293538A JP 29353891 A JP29353891 A JP 29353891A JP 2738189 B2 JP2738189 B2 JP 2738189B2
Authority
JP
Japan
Prior art keywords
coordinate
value
coordinates
logical
integer
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 - Lifetime
Application number
JP3293538A
Other languages
Japanese (ja)
Other versions
JPH05135164A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3293538A priority Critical patent/JP2738189B2/en
Publication of JPH05135164A publication Critical patent/JPH05135164A/en
Application granted granted Critical
Publication of JP2738189B2 publication Critical patent/JP2738189B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)
  • Image Processing (AREA)
  • Image Generation (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は論理座標系で表現された
図形を物理座標系のビットマップイメージに展開する装
置に係り、特にビットマップイメージに展開された図形
の長さや位置の誤差を少なくする座標変換方法及び座標
変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for developing a graphic represented in a logical coordinate system into a bitmap image in a physical coordinate system, and in particular, to reduce errors in the length and position of the graphic developed in a bitmap image. The present invention relates to a coordinate conversion method and a coordinate conversion device.

【0002】プリンタ装置やディスプレイ装置等におい
ては、論理座標系で表されるアウトラインフォント(座
標を結ぶ線で外形を表す文字)を、物理座標系で表され
るビットマップフォントに展開してから印刷又は表示を
行っている。
2. Description of the Related Art In a printer or a display device, an outline font (character representing an outer shape by a line connecting coordinates) represented by a logical coordinate system is developed into a bitmap font represented by a physical coordinate system and then printed. Or display.

【0003】ところで、アウトラインフォントをビット
マップフォントに展開する時、アウトラインフォントか
らは、実数で表現される座標値が得られるが、ピクセル
が最小単位であるビットマップフォントでは、この実数
表現の座標値をピクセル単位とするため整数値で表現す
る必要がある。
When an outline font is developed into a bitmap font, a coordinate value represented by a real number is obtained from the outline font. However, in a bitmap font in which a pixel is a minimum unit, the coordinate value represented by the real number is obtained. Needs to be expressed as an integer value in order to make the pixel unit.

【0004】従って、ビットマップフォントに展開する
際に、実数表現の座標値の小数部分を切上げ、切捨て、
又は四捨五入する等のまるめ処理を行うが、このまるめ
処理によって、ビットマップフォントの座標値には小数
部分に対応する誤差が発生する。しかし、図形の長さや
位置の誤差は文字の印象を変えてしまうため、この誤差
は出来るだけ小さくする必要がある。
Therefore, when developing a bitmap font, the decimal part of the coordinate value of the real number expression is rounded up, truncated,
Alternatively, rounding processing such as rounding is performed. However, due to this rounding processing, an error corresponding to a decimal part occurs in the coordinate values of the bitmap font. However, errors in the length and position of the figure change the impression of the character, and it is necessary to minimize the errors.

【0005】[0005]

【従来の技術】従来、図形やアウトラインフォント等の
実数表現の論理座標値を整数で表現されるビットマップ
イメージに展開する場合、この論理座標値は、プリンタ
装置やディスプレイ装置のピクセル単位で表現出来るよ
うに、小数部分がまるめ処理される。
2. Description of the Related Art Conventionally, when a logical coordinate value represented by a real number such as a graphic or an outline font is developed into a bitmap image represented by an integer, the logical coordinate value can be represented in a pixel unit of a printer device or a display device. Thus, the decimal part is rounded.

【0006】そして、最も一般的なまるめ処理は、論理
座標値が最も近いピクセルで表現されるようにするため
の四捨五入である。図5は従来技術の一例を説明する図
である。
[0006] The most common rounding process is rounding so that a logical coordinate value is represented by the nearest pixel. FIG. 5 is a diagram illustrating an example of a conventional technique.

【0007】横軸に物理座標値0〜6をとると、図5
(A) のに示す如く、例えば、図形の論理座標値が
2.5から4.2で表現されている時、四捨五入するまるめ
処理によって、2.5の論理座標値が物理座標値の3とな
り、4.2の論理座標値が物理座標値の4となる。
When the physical coordinate values 0 to 6 are plotted on the horizontal axis, FIG.
As shown in (A), for example, when the logical coordinate value of a figure is represented from 2.5 to 4.2, the logical coordinate value of 2.5 becomes 3 of the physical coordinate value by rounding off and rounding. The logical coordinate value of 4.2 is the physical coordinate value of 4.

【0008】従って、図5(A) のに示す如く、図形
は1ピクセル幅のビットマップイメージとなる。とこ
ろが、論理座標値が指定する図形の幅は、4.2−2.5
=1.7であり、1ピクセルでなく、2ピクセルの幅を持
たせた方がより誤差が少ない。
Accordingly, as shown in FIG. 5A, the figure is a bitmap image having a width of one pixel. However, the width of the figure specified by the logical coordinate value is 4.2-2.5.
= 1.7, and the error is smaller with a width of 2 pixels instead of 1 pixel.

【0009】アウトラインフォントから展開されたビッ
トマップフォントでは、この幅の誤差は文字の印象を変
えてしまうので、出来るだけ小さくすべきである。この
目的のため、図5(B) に示すような方法が採用されてい
る。即ち、先ず図形の片方の論理座標値2.5を四捨五
入して物理座標値の3とする。次にもう一方の論理座標
値4.2を四捨五入するが、図5のに示す如く、片方の
論理座標値2.5を四捨五入した時の誤差0.5を加えて
4.7としてから四捨五入する。この結果は物理座標値の
5となり、図5(B) のに示す如く、図形の幅は2ピ
クセルとなって、誤差が少なくなる。
In a bitmap font developed from an outline font, this error in width changes the impression of a character, so it should be as small as possible. For this purpose, a method as shown in FIG. 5B is employed. That is, first, the logical coordinate value 2.5 of one of the figures is rounded off to obtain the physical coordinate value of 3. Next, the other logical coordinate value of 4.2 is rounded off, but as shown in FIG. 5, an error of 0.5 when one logical coordinate value of 2.5 is rounded off is added to 4.7 and then rounded off. . As a result, the physical coordinate value becomes 5, and the width of the figure becomes 2 pixels as shown in FIG.

【0010】しかし、元の図形の位置は物理座標値の
2の方に近いのに、この操作によって物理座標値の5の
方に移動させられてしまった。
[0010] However, although the position of the original figure is closer to the physical coordinate value of 2, it has been moved to the physical coordinate value of 5 by this operation.

【0011】[0011]

【発明が解決しようとする課題】上記の如く、従来の方
法によると、図5(A) に示す如く、図形の各論理座標
値が独立に四捨五入された場合、図形の長さに大きな誤
差が発生し、図5(B) に示す如く、図形の幅の誤差を
少なくする操作が行われた場合、図形の位置に大きな
誤差が発生するという欠点がある。
As described above, according to the conventional method, as shown in FIG. 5A, when each logical coordinate value of a figure is independently rounded, a large error occurs in the length of the figure. As a result, as shown in FIG. 5B, when an operation for reducing the error in the width of the figure is performed, there is a disadvantage that a large error occurs in the position of the figure.

【0012】このように、従来の欠点は、図形の長さが
保存されないか、又は、図形の位置が保存されないとい
うことである。図6は従来技術の誤差量を説明する図で
ある。
Thus, the conventional disadvantage is that the length of the figure is not preserved or the position of the figure is not preserved. FIG. 6 is a diagram for explaining an error amount according to the related art.

【0013】図6(A) は図形の長さが保存されない場合
を示し、図6(B) は図形の位置が保存されない場合を示
す。横軸に物理座標値0〜6をとると、図6(A) のに
示す図形の実数で表現される論理座標aを四捨五入し
て、整数で表現される物理座標に変換すると、四捨五入
によるまるめ誤差は、図6(A) のに示す如く、±0.5
ピクセルであり、同様に、図6(A) のに示す図形の実
数で表現される論理座標bを四捨五入して、整数で表現
される物理座標に変換すると、四捨五入によるまるめ誤
差は、図6(A)のに示す如く、±0.5ピクセルであ
る。
FIG. 6A shows a case where the length of a figure is not stored, and FIG. 6B shows a case where the position of the figure is not stored. When the physical coordinate values 0 to 6 are taken on the horizontal axis, the logical coordinates a represented by the real numbers of the figure shown in FIG. 6A are rounded off and converted to physical coordinates represented by integers. The error is ± 0.5 as shown in FIG.
Similarly, when the logical coordinates b represented by the real numbers of the figure shown in FIG. 6A are rounded off and converted to physical coordinates represented by integers, the rounding error due to the rounding becomes as shown in FIG. As shown in (A), it is ± 0.5 pixel.

【0014】即ち、図6(A) のに示す範囲は、論理座
標aが物理座標2に、図6(A) のに示す範囲は、論理
座標bが物理座標5に変換される論理座標値の範囲を示
している。又、図6(A) のに示す範囲は、長さの誤差
が最長の場合を示し、図6(A) のに示す範囲は、長さ
の誤差が最短の場合を示しており、図形上の、どの論
理座標も同じ誤差を持つから、図形の長さは−=
±1.0ピクセルの誤差が生じる。
That is, in the range shown in FIG. 6A, the logical coordinate a is converted into the physical coordinate 2, and in the range shown in FIG. Is shown. The range shown in FIG. 6A shows the case where the length error is the longest, and the range shown in FIG. 6A shows the case where the length error is the shortest. Since every logical coordinate has the same error, the length of the figure is-=
An error of ± 1.0 pixel occurs.

【0015】図6(B) のに示す図形の実数で表現され
る論理座標aを四捨五入して、整数で表現される物理座
標に変換すると、この時のまるめ誤差は、図6(A) と同
様に図6(B) のに示す範囲の如く、±0.5ピクセルで
ある。
When the logical coordinates a represented by the real numbers of the figure shown in FIG. 6B are rounded off and converted into physical coordinates represented by integers, the rounding error at this time is as shown in FIG. 6A. Similarly, it is ± 0.5 pixel as shown in the range shown in FIG.

【0016】図形の論理座標bが論理座標aに対して
相対距離を持つ時、前記の如く、論理座標bは基準とな
る論理座標aの移動量が加算された後に四捨五入され
る。従って、論理座標bが持つ誤差±0.5ピクセルに、
基準となる論理座標aの誤差±0.5ピクセルが加算され
て、物理座標に変換された時のまるめ誤差は、図6(B)
のに示す範囲の如く、±1.0ピクセルとなる。
When the logical coordinate b of the figure has a relative distance to the logical coordinate a, as described above, the logical coordinate b is rounded off after the movement amount of the reference logical coordinate a is added. Therefore, the error ± 0.5 pixel of the logical coordinate b has
The rounding error when the error of the reference logical coordinate a ± 0.5 pixel is added and converted into the physical coordinate is shown in FIG.
As shown in the range shown in FIG.

【0017】尚、図6(B) のに示す範囲は、長さの誤
差が最長の場合を示し、図6(B) のに示す範囲は、長
さの誤差が最短の場合を示し、−=±0.5ピクセル
で幅の誤差は少ないことを示す。
The range shown in FIG. 6B shows the case where the length error is the longest, and the range shown in FIG. 6B shows the case where the length error is the shortest. = ± 0.5 pixels, indicating a small width error.

【0018】上記の如く、図6(A) の場合は、図形の
長さに±1.0ピクセルの誤差が生じ、図形の長さが大き
くずれて見えるという問題があり、図6(B) の場合は、
図形の位置に±1.0ピクセルの誤差が生じ、図形の位
置が大きくずれて見えるという問題がある。
As described above, in the case of FIG. 6A, there is a problem that an error of ± 1.0 pixel occurs in the length of the figure, and the length of the figure looks largely shifted. In the case of,
There is a problem that an error of ± 1.0 pixel occurs in the position of the figure, and the position of the figure appears to be greatly shifted.

【0019】本発明はこのような問題点に鑑み、図形の
長さと位置に大きな誤差が発生しないようにした座標変
換装置を提供することを目的としている。
The present invention has been made in view of the above-described problems, and has as its object to provide a coordinate conversion device that prevents a large error in the length and position of a figure.

【0020】[0020]

【課題を解決するための手段】図1は本発明の原理を説
明するブロック図である。展開制御手段16は、図形記
憶手段10から読出された図形を形成する線分の両端を
示す二つの座標の論理座標上における距離Lを算出する
第1の算出手段11と、この距離Lを整数化して整数値
L’を算出する第2の算出手段12と、前記線分の二つ
の座標のうち一方の座標の論理座標値に(L−L')/2
を加えて実数値を算出し、この実数値を整数化して前記
線分の一方の座標の物理座標値を算出すると共に、算出
された一方の座標の物理座標値に前記整数値L’を加え
て前記線分の他方の座標の物理座標値を算出する第3の
算出手段(13)と、算出された二つの座標の物理座標値に
より、前記線分をビットマップメモリ(15)上に展開する
展開手段(14)とから構成される。
FIG. 1 is a block diagram for explaining the principle of the present invention. The expansion control means 16 calculates a distance L between two coordinates indicating both ends of a line segment forming a graphic read from the graphic storage means 10 on logical coordinates, and calculates the distance L as an integer. A second calculating means 12 for converting the logical coordinates of one of the two coordinates of the line segment into (LL ') / 2
To calculate a physical value of one coordinate of the line segment, and add the integer value L ′ to the calculated physical coordinate value of one coordinate. The line segment is developed on a bitmap memory (15) by using third calculating means (13) for calculating the physical coordinate value of the other coordinate of the line segment, and the calculated physical coordinate value of the two coordinates. (14).

【0021】[0021]

【作用】上記の如く構成することにより、長さの誤差
(L−L')を1/2ずつ両方の座標に分配することが可
能となるため、一方の座標の誤差は±0.5ピクセルに
(L−L')/2による誤差±0.25が加わって±0.75ピク
セルとなる。又、他方の座標の誤差は長さの誤差を均等
に分配したため、同じく±0.75ピクセルとなる。そし
て、図形の長さの誤差はLをL’に変換したことによる
誤差±0.5ピクセルである。
With the above arrangement, the length error (L-L ') can be distributed to both coordinates by 1/2, so that the error of one coordinate is ± 0.5 pixel. And an error ± 0.25 due to (LL ′) / 2 is added, resulting in ± 0.75 pixels. The other coordinate error is also ± 0.75 pixels because the length error is evenly distributed. The error in the figure length is ± 0.5 pixel due to the conversion of L into L ′.

【0022】従って、従来の方法のように、図形の長さ
の誤差が±1.0ピクセルとなることが無く、位置の誤差
が±1.0ピクセルとなることも無く、図形の長さの誤差
は±0.25ピクセル小さくなり、位置の誤差は±0.5ピク
セル小さくなって、図形の長さと位置の誤差が少ない座
標変換装置を提供することが出来る。
Therefore, unlike the conventional method, the error in the length of the figure does not become ± 1.0 pixels, the error in the position does not become ± 1.0 pixels, and the error in the length of the figure does not occur. The error can be reduced by ± 0.25 pixels, and the position error can be reduced by ± 0.5 pixels, so that a coordinate conversion device with a small error in the length and position of the figure can be provided.

【0023】[0023]

【実施例】図2は本発明の一実施例を示す回路のブロッ
ク図である。受信制御部17に図示省略した上位装置か
ら文字コードが入り、受信制御部17の制御により、受
信バッファメモリ18に順次格納される。そして、1ペ
ージ分の文字コードが格納されると、受信制御部17の
指示により展開制御部20は受信バッファメモリ18の
文字コードを読出し、アウトラインフォント記憶部19
から、文字コードに対応するアウトラインフォントを読
出し、ビットマップメモリ15上に1ページ分の文字デ
ータを展開する。
FIG. 2 is a block diagram of a circuit showing an embodiment of the present invention. Character codes are input to the reception control unit 17 from a higher-level device (not shown), and are sequentially stored in the reception buffer memory 18 under the control of the reception control unit 17. When the character codes for one page are stored, the expansion control unit 20 reads the character codes in the reception buffer memory 18 in accordance with the instruction of the reception control unit 17, and stores them in the outline font storage unit 19.
, An outline font corresponding to the character code is read, and one page of character data is developed on the bitmap memory 15.

【0024】即ち、展開制御部20は用紙1ページに対
応して、用紙上の上端及び下端の余白部分や印字位置等
を計算し、用紙1ページに印字した状態と同じ状態とな
るように、文字データをビットマップメモリ15上に展
開する。
That is, the expansion control unit 20 calculates the upper and lower margins on the sheet, the printing position, and the like corresponding to one page of the sheet, and makes the same state as the state printed on the one page of the sheet. The character data is developed on the bitmap memory 15.

【0025】この時、展開制御部20はアウトラインフ
ォント記憶部19から読出したアウトラインフォントの
文字パターンを形成する図形、即ち、直線の両端の座標
a,bの論理座標値に基づき、座標aとbの間の距離L
を求める。
At this time, the development control unit 20 determines the coordinates a and b based on the figures forming the character pattern of the outline font read from the outline font storage unit 19, that is, the logical coordinates of the coordinates a and b at both ends of the straight line. Distance L between
Ask for.

【0026】そして、この距離Lの小数部分を四捨五入
した整数値L’を求め、(L−L')/2を演算して、例
えば、座標aの論理座標値に加算し、小数部分を四捨五
入した整数値を求め、座標aの物理座標値とする。
Then, an integer value L 'obtained by rounding off the decimal part of the distance L is calculated, (LL-L') / 2 is calculated, for example, added to the logical coordinate value of the coordinate a, and the decimal part is rounded. The obtained integer value is determined as the physical coordinate value of the coordinate a.

【0027】そして、座標aの物理座標値に整数値L’
を加えて得られる整数値を座標bの物理座標値とする。
展開制御部20は、このようにして得た直線の集合によ
って、一つの文字パターンが形成されると、この文字パ
ターン上の各座標の物理座標値を、ビットマップメモリ
15の印字位置に対応した物理座標値に変換し、ビット
マップメモリ15上に展開する。
Then, an integer value L 'is added to the physical coordinate value of the coordinate a.
Is taken as the physical coordinate value of the coordinate b.
When one character pattern is formed by the set of straight lines obtained in this way, the development control unit 20 associates the physical coordinate values of each coordinate on the character pattern with the print position of the bitmap memory 15. The data is converted into physical coordinate values and developed on the bitmap memory 15.

【0028】このようにして、1ページ分の文字データ
がビットマップメモリ15上に展開されると、展開制御
部20は印刷制御部21に印字開始を指示し、印刷制御
部21はビットマップメモリ15から展開された1ペー
ジ分の文字データを読出し、印刷機構部22を制御して
印字を行わせる。
When the character data for one page is developed on the bitmap memory 15 in this way, the development control unit 20 instructs the print control unit 21 to start printing, and the print control unit 21 15 and reads out the expanded one-page character data, and controls the printing mechanism 22 to perform printing.

【0029】図3は図2の動作を説明する図である。横
軸に物理座標値0〜6をとり、図3(A) のに示す如
く、例えば、直線の両端の座標をa,bとし、座標a
の論理座標値が2.5であり、座標bの論理座標値が4.2
であるとすると、展開制御部20が求める座標aとbの
距離Lは4.2−2.5=1.7となる。
FIG. 3 is a diagram for explaining the operation of FIG. As shown in FIG. 3A, for example, the coordinates of the both ends of a straight line are a and b, and the coordinates a
Has a logical coordinate value of 2.5, and the logical coordinate value of the coordinate b is 4.2.
In this case, the distance L between the coordinates a and b obtained by the development control unit 20 is 4.2-2.5 = 1.7.

【0030】従って、整数値L’は2となり、(L−
L')/2=(1.7−2)=−0.15となる。従って、座標aの
物理座標値a’は、2.5−0.15=2.35を四捨五入した整
数値2となる。
Therefore, the integer value L 'becomes 2, and (L-
L ′) / 2 = (1.7−2) = − 0.15. Therefore, the physical coordinate value a ′ of the coordinate a is an integer value 2 obtained by rounding 2.5−0.15 = 2.35.

【0031】そして、座標bの物理座標値b’は、a’
+L’=2+2=4となり、図3(A) のに示す如く、
論理座標上で表現された図3(A) の直線は、物理座標
上では直線で表現される。
The physical coordinate value b 'of the coordinate b is a'
+ L '= 2 + 2 = 4, and as shown in FIG.
The straight line in FIG. 3A expressed on logical coordinates is expressed as a straight line on physical coordinates.

【0032】この結果、論理座標上の2.5,4.2という
二つの座標は、2,4という物理座標に変換され、長さ
と位置の誤差が少ない図形が得られる。図3(B) は本実
施例の誤差量を説明するものであり、図形の座標aの
まるめ誤差は、に示す如く、±0.5ピクセルに(L−
L')/2による誤差±0.25が加わって±0.75ピクセルと
なる。
As a result, the two coordinates of 2.5 and 4.2 on the logical coordinates are converted into the physical coordinates of 2 and 4, and a figure with a small error in length and position can be obtained. FIG. 3B illustrates the error amount of the present embodiment. The rounding error of the coordinates a of the figure is set to ± 0.5 pixel as shown in FIG.
L ′) / 2 adds an error of ± 0.25, resulting in ± 0.75 pixels.

【0033】これは、座標bにおいても同様であり、
に示す如く、まるめ誤差は±0.75ピクセルとなる。そし
て、長さの誤差は、LをL’に変換したことによる誤差
±0.5ピクセルとなる。
This is the same for the coordinates b.
As shown in the figure, the rounding error is ± 0.75 pixels. The length error is an error of ± 0.5 pixels due to the conversion of L into L ′.

【0034】即ち、に示す範囲が長さの誤差が最長の
場合であり、に示す範囲が長さの誤差が最短の場合で
ある。図4は図2の動作を説明するフローチャートであ
る。
That is, the range shown in the figure is a case where the length error is the longest, and the range shown is a case where the length error is the shortest. FIG. 4 is a flowchart illustrating the operation of FIG.

【0035】展開制御部20は、ステップ(1) で二つの
座標aとbの間の距離を求めるためL=b−aを演算す
る。そして、ステップ(2) で実数を整数に変換する処理
L’=round(L)を実行する。
The expansion controller 20 calculates L = ba in step (1) to obtain the distance between the two coordinates a and b. Then, in step (2), a process L ′ = round (L) for converting a real number into an integer is executed.

【0036】次にステップ(3) で座標aの物理座標値を
算出するため、a=a+(L−L')/2を演算し、ステップ
(4) で実数を整数に変換する処理a’=round
(a)を実行する。
Next, in step (3), a = a + (L−L ′) / 2 is calculated to calculate the physical coordinate value of the coordinate a.
Processing to convert real numbers to integers in (4) a '= round
Execute (a).

【0037】そして、ステップ(5) で座標bの物理座標
値を算出するため、b’=a’+L'を演算する。
In step (5), b '= a' + L 'is calculated to calculate the physical coordinate value of the coordinate b.

【0038】[0038]

【発明の効果】以上説明した如く、本発明は論理座標系
で表される図形の長さと位置が共に少ない誤差で物理座
標系に変換されるため、論理座標上の図形を精度良く物
理座標上に展開したビットマップイメージを得ることが
出来る。
As described above, according to the present invention, since both the length and the position of a graphic represented by the logical coordinate system are converted to the physical coordinate system with a small error, the graphic on the logical coordinate can be accurately converted to the physical coordinate. You can obtain a bitmap image developed in.

【0039】従って、品質を重要視するアウトラインフ
ォントのビットマップ展開では、この文字パターンを形
成する直線の両端の物理座標値が論理座標値の指示する
位置と長さに対して、従来より誤差が少なくなるため、
外形の乱れの少ない良好な文字パターンをビットマップ
メモリ上に展開することが可能となる。従って、大いな
る効果がある。
Therefore, in the bitmap development of an outline font in which quality is regarded as important, the physical coordinate values at both ends of the straight line forming the character pattern have an error with respect to the position and length indicated by the logical coordinate value. To reduce
It is possible to develop a good character pattern with little disturbance of the outer shape on the bitmap memory. Therefore, there is a great effect.

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

【図1】 本発明の原理を説明するブロック図FIG. 1 is a block diagram illustrating the principle of the present invention.

【図2】 本発明の一実施例を示す回路のブロック図FIG. 2 is a block diagram of a circuit showing an embodiment of the present invention.

【図3】 図2の動作を説明する図FIG. 3 is a view for explaining the operation of FIG. 2;

【図4】 図2の動作を説明するフローチャートFIG. 4 is a flowchart illustrating the operation of FIG. 2;

【図5】 従来技術の一例を説明する図FIG. 5 is a diagram illustrating an example of a conventional technique.

【図6】 従来技術の誤差量を説明する図FIG. 6 is a diagram illustrating an error amount according to the related art.

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

10 図形記憶手段 11 第1の算出手段 12 第2の算出手段 13 第3の算出手段 14 展開手段 15 ビットマップメモリ 16 展開制御手段 17 受信制御部 18 受信バッファメモリ 19 アウトラインフォント記憶部 20 展開制御部 21 印刷制御部 22 印刷機構部 10 figure storage means 11 first calculation means 12 second calculation means 13 third calculation means 14 expansion means 15 bitmap memory 16 expansion control means 17 reception control section 18 reception buffer memory 19 outline font storage section 20 expansion control section 21 Print control section 22 Printing mechanism section

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 図形の実数値で表現される論理座標値を
整数化して整数値で表現される物理座標値に変換し、ビ
ットマップメモリ(15)上に該図形をビットマップイメー
ジとして展開する展開制御手段(16)を備えた座標変換装
置において、 該展開制御手段(16)に図形の中の二つの座標の論理座標
上における距離Lを求め、該距離Lを整数化した整数値
L’を求めた後、該二つの座標の中の一方の座標の論理
座標値に(L−L')/2を加えて得られる実数値を整数
化した整数値を該一方の座標の物理座標値とし、該一方
の座標の物理座標値に該整数値L’を加えて得られる整
数値を、該二つの座標の中の他方の座標の物理座標値と
する処理を行わせることを特徴とする座標変換方法。
1. A logical coordinate value represented by a real value of a graphic is converted into a physical coordinate value represented by an integer by converting the logical coordinate value into an integer value, and the graphic is developed as a bitmap image on a bitmap memory (15). In a coordinate conversion device provided with expansion control means (16), the expansion control means (16) obtains a distance L of two coordinates in a figure on a logical coordinate, and converts the distance L into an integer value L ′. Is obtained, and an integer value obtained by adding (LL ′) / 2 to the logical coordinate value of one of the two coordinates into an integer is converted to the physical coordinate value of the one coordinate. And performing a process of setting an integer value obtained by adding the integer value L ′ to the physical coordinate value of the one coordinate as a physical coordinate value of the other coordinate of the two coordinates. Coordinate transformation method.
【請求項2】 図形記憶手段(10)から読出された図形を
形成する線分の両端を示す二つの座標の論理座標上にお
ける距離Lを算出する第1の算出手段(11)と、 該距離Lを整数化して整数値L’を算出する第2の算出
手段(12)と、 該線分の二つの座標のうち一方の座標の論理座標値に
(L−L')/2を加えて実数値を算出し、該実数値を整
数化して該線分の一方の座標の物理座標値を算出すると
共に、算出された一方の座標の物理座標値に前記整数値
L’を加えて該線分の他方の座標の物理座標値を算出す
る第3の算出手段(13)と、 算出された二つの座標の物理座標値により、前記線分を
ビットマップメモリ(15)上に展開する展開手段(14)とを
設けたことを特徴とする座標変換装置。
2. A first calculating means (11) for calculating a distance L on logical coordinates of two coordinates indicating both ends of a line segment forming a figure read from a figure storing means (10); A second calculating means (12) for converting L to an integer to calculate an integer value L ', and adding (LL') / 2 to a logical coordinate value of one of two coordinates of the line segment. A real value is calculated, the real value is converted to an integer to calculate a physical coordinate value of one coordinate of the line segment, and the integer value L ′ is added to the calculated physical coordinate value of the one coordinate to obtain the line. Third calculating means (13) for calculating the physical coordinate value of the other coordinate of the minute, and developing means for developing the line segment on the bitmap memory (15) by using the calculated physical coordinate value of the two coordinates. (14) A coordinate conversion device characterized by having:
JP3293538A 1991-11-11 1991-11-11 Coordinate conversion method and coordinate conversion device Expired - Lifetime JP2738189B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3293538A JP2738189B2 (en) 1991-11-11 1991-11-11 Coordinate conversion method and coordinate conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3293538A JP2738189B2 (en) 1991-11-11 1991-11-11 Coordinate conversion method and coordinate conversion device

Publications (2)

Publication Number Publication Date
JPH05135164A JPH05135164A (en) 1993-06-01
JP2738189B2 true JP2738189B2 (en) 1998-04-08

Family

ID=17796046

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3293538A Expired - Lifetime JP2738189B2 (en) 1991-11-11 1991-11-11 Coordinate conversion method and coordinate conversion device

Country Status (1)

Country Link
JP (1) JP2738189B2 (en)

Also Published As

Publication number Publication date
JPH05135164A (en) 1993-06-01

Similar Documents

Publication Publication Date Title
US5526476A (en) Method and apparatus for generating character patterns expressed by coordinates of a coordinate system
US4837847A (en) Image processing apparatus
US5537131A (en) Character generating method and apparatus
JP2876942B2 (en) Data converter
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
JP2952915B2 (en) Dot pattern data generator
JP3029135B2 (en) Character processing apparatus and method
JP3055327B2 (en) Data converter
JPH0263762A (en) Output apparatus
JP3055306B2 (en) Data output device
JP2861127B2 (en) Data converter
JP2881924B2 (en) Data storage device
KR940001106B1 (en) Image processing method and apparatus therefor
JP2782752B2 (en) Character pattern output device
JPH0627924A (en) Data converting device
JP3057974B2 (en) Data converter
JP3024479B2 (en) Data converter
JPH0511734A (en) Character pattern generating device
JP2841631B2 (en) Data converter
JPH0113128B2 (en)
JP2740539B2 (en) Enlarged reproduction image information creation method and apparatus
JPH0511736A (en) Character pattern output device
JP2715475B2 (en) Graphic output device
JPH09156158A (en) Printer
JP2657198B2 (en) Printing method of dot printer

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19971216