JP3438679B2 - Printer emulation method, printer emulation method, and recording medium recording printer emulation program - Google Patents

Printer emulation method, printer emulation method, and recording medium recording printer emulation program

Info

Publication number
JP3438679B2
JP3438679B2 JP31652899A JP31652899A JP3438679B2 JP 3438679 B2 JP3438679 B2 JP 3438679B2 JP 31652899 A JP31652899 A JP 31652899A JP 31652899 A JP31652899 A JP 31652899A JP 3438679 B2 JP3438679 B2 JP 3438679B2
Authority
JP
Japan
Prior art keywords
line
lines
intersections
print data
resolution
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
JP31652899A
Other languages
Japanese (ja)
Other versions
JP2001136372A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP31652899A priority Critical patent/JP3438679B2/en
Publication of JP2001136372A publication Critical patent/JP2001136372A/en
Application granted granted Critical
Publication of JP3438679B2 publication Critical patent/JP3438679B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4023Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Record Information Processing For Printing (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はプリンタエミュレー
ション方式、プリンタエミュレーション方法およびプリ
ンタエミュレーション用プログラムを記録した記録媒体
に関し、特に、プリンタの印刷出力を行うときに近似し
た解像度への解像度エミュレーションを行うプリンタエ
ミュレーション方式、プリンタエミュレーション方法お
よびプリンタエミュレーション用プログラムを記録した
記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer emulation method, a printer emulation method, and a recording medium having a program for printer emulation recorded thereon, and more particularly, to printer emulation for performing resolution emulation to a resolution close to that when a printer prints out. The present invention relates to a method, a printer emulation method, and a recording medium recording a printer emulation program.

【0002】[0002]

【従来の技術】従来のプリンタエミュレーション方式に
おいては、上位装置から受信した受信印刷データを出力
印刷データに解像度を変更する際、エミュレーションす
る解像度の比率算出やドットの論理演算を用いていた。
2. Description of the Related Art In a conventional printer emulation system, when the resolution of received print data received from a higher-level device is changed to output print data, a ratio calculation of emulation resolution and a logical operation of dots are used.

【0003】解像度の比率計算を用いた場合、近似した
解像度へエミュレーションするときには、表などの罫線
印刷で線が1本だけ太くなったり、また、線が途切れる
等の現象が発生する。
When the resolution ratio calculation is used, when emulating to an approximate resolution, a phenomenon such as one thick line or broken lines occurs in ruled line printing such as a table.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のプリン
タエミュレーション方式は、近似した解像度へエミュレ
ーションする場合に、印刷品質はさほど劣化していない
にも関わらず、表などの罫線印字で線が1本だけ太くな
ったり、線が途切れる等、視覚的な影響が大きいという
問題点があった。
According to the conventional printer emulation method described above, when emulating to a similar resolution, the print quality is not so deteriorated, but one line is printed in ruled line printing such as a table. However, there was a problem that the visual effect was great, such as thickening and broken lines.

【0005】本発明の目的は、そのような印刷結果を見
る人に対して与える視覚的な影響を考慮した高解像度化
エミュレーションを行うプリンタエミュレーション方
式、プリンタエミュレーション方法およびプリンタエミ
ュレーション用プログラムを記録した記録媒体を提供す
ることにある。
An object of the present invention is to record a printer emulation method, a printer emulation method, and a printer emulation program for performing emulation with higher resolution in consideration of the visual influence on the viewer of such print results. To provide the medium.

【0006】[0006]

【課題を解決するための手段】本発明のプリンタエミュ
レーション方式は、受信印刷データを出力印刷データに
解像度変換を行うプリンタエミュレーション方式におい
て、前記出力印刷データの解像度と前記受信印刷データ
の解像度との差から付加するライン数を算出する付加ラ
イン数算出部と、前記付加ライン数算出部が算出した付
加ライン数から何ラインに対して1ライン付加するかの
比率を算出する付加ライン比率算出部と、前記受信印刷
データのラインに直角な方向の線を平行移動させた時の
黒ドットとの交差回数を各ラインにつきカウントする交
差回数カウント部と、前記付加ライン比率算出部が求め
た比率の範囲内で前記交差回数カウント部が求めた交差
回数を参照して最も交差回数の少ないラインを二重化す
る付加ライン位置決定部とを備え、前記付加ライン位置
決定部は、同一範囲内で最も交差回数の少ないラインが
2ライン以上ある場合は、最も交差回数の少ないライン
の内の最上段のラインにデータを付加することを特徴と
する。
A printer emulation system of the present invention is a printer emulation system for performing resolution conversion of received print data into output print data, and a difference between a resolution of the output print data and a resolution of the received print data. An additional line number calculation unit that calculates the number of lines to be added from the additional line number calculation unit; and an additional line ratio calculation unit that calculates a ratio of how many lines to add one line from the additional line number calculated by the additional line number calculation unit, Within the range of the ratio calculated by the additional line ratio calculation unit, and the number-of-intersections counting unit for counting the number of times of crossing with the black dot when the line in the direction perpendicular to the line of the received print data is translated. An additional line position for duplicating the line with the smallest number of crossings by referring to the number of crossings obtained by the crossing count section And a tough, the additional line position
The deciding unit determines that the line with the least number of intersections in the same range
If there are two or more lines, the line with the least number of intersections
It is characterized in that data is added to the uppermost line of the.

【0007】[0007]

【0008】本発明のプリンタエミュレーション方式
は、縦横両方向について解像度変換を行うことを特徴と
してもよい。
The printer emulation method of the present invention may be characterized in that resolution conversion is performed in both vertical and horizontal directions.

【0009】本発明のプリンタエミュレーション方法
は、受信印刷データを出力印刷データに解像度変換を行
うプリンタエミュレーション方法において、前記出力印
刷データの解像度と前記受信印刷データの解像度との差
から付加するライン数を算出し、算出した付加ライン数
から何ラインに対して1ライン付加するかの比率を算出
し、前記受信印刷データのラインに直角な方向の線を平
行移動させた時の黒ドットとの交差回数を各ラインにつ
きカウントし、前記比率の範囲内で交差回数を参照して
最も交差回数の少ないラインを二重化し、同一範囲内で
最も交差回数の少ないラインが2ライン以上ある場合
は、最も交差回数の少ないラインの内の最上段のライン
にデータを付加することを特徴とする。
In the printer emulation method of the present invention, the number of lines to be added is determined from the difference between the resolution of the output print data and the resolution of the received print data in the printer emulation method of converting the resolution of the received print data into the output print data. From the calculated number of additional lines, the ratio of how many lines one line is added to is calculated, and the number of intersections with black dots when a line in a direction perpendicular to the line of the received print data is translated. For each line, refer to the number of crossings within the range of the above ratio, duplicate the line with the least number of crossings , and within the same range
When there are two or more lines that have the least number of intersections
Is the top line of the lines with the least number of intersections
It is characterized by adding data to .

【0010】[0010]

【0011】本発明のプリンタエミュレーション方法
は、縦横両方向について解像度変換を行うことを特徴と
してもよい。
The printer emulation method of the present invention may be characterized in that resolution conversion is performed in both vertical and horizontal directions.

【0012】本発明の記録媒体は、受信印刷データを出
力印刷データに解像度変換を行うプリンタエミュレーシ
ョン方法において、前記出力印刷データの解像度と前記
受信印刷データの解像度との差から付加するライン数を
算出する処理と、算出した付加ライン数から何ラインに
対して1ライン付加するかの比率を算出する処理と、前
記受信印刷データのラインに直角な方向の線を平行移動
させた時の黒ドットとの交差回数を各ラインにつきカウ
ントする処理と、前記比率の範囲内で交差回数を参照し
て最も交差回数の少ないラインを二重化する処理と、同
一範囲内で最も交差回数の少ないラインが2ライン以上
ある場合は、最も交差回数の少ないラインの内の最上段
のラインにデータを付加する処理とをプリンタに行わせ
るプログラムを記録したことを特徴とする。
In the recording medium of the present invention, the number of lines to be added is calculated from the difference between the resolution of the output print data and the resolution of the received print data in the printer emulation method for converting the resolution of the received print data into the output print data. And a process of calculating a ratio of how many lines are added to one line from the calculated number of additional lines, and a black dot when a line perpendicular to the line of the received print data is translated. a process of counting for each line crossing number of a process of duplicating the reference to the most number of crossings less line crossing frequency within the range of the ratio, the
2 or more lines with the least number of intersections within a range
If there is, the top line of the lines with the least number of intersections
It is characterized by recording a program for causing the printer to perform processing of adding data to the line .

【0013】[0013]

【0014】本発明の記録媒体は、縦横両方向について
解像度変換を行う処理をプリンタに行わせるプログラム
を記録したことを特徴としてもよい。
The recording medium of the present invention may be characterized by recording a program for causing a printer to perform a process of performing resolution conversion in both vertical and horizontal directions.

【0015】[0015]

【発明の実施の形態】本発明の実施の形態について図面
を参照して詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail with reference to the drawings.

【0016】図1は第1の実施の形態の構成を示すブロ
ック図である。コンピュータ1は印刷データをプリンタ
2に送信し、プリンタ2は受信した受信印刷データを用
紙に印刷出力する。
FIG. 1 is a block diagram showing the configuration of the first embodiment. The computer 1 sends the print data to the printer 2, and the printer 2 prints out the received print data on paper.

【0017】プリンタ2は、インタフェース部11、印
刷編集部12、エミュレーション部13、印刷機構部1
4を含む。
The printer 2 includes an interface section 11, a print editing section 12, an emulation section 13, and a printing mechanism section 1.
Including 4.

【0018】インタフェース部11は、上位装置である
コンピュータ1から送信された印刷データを受信する。
印刷編集部12は、インタフェース部11が受信した受
信印刷データを、プリンタが印刷出力する出力印刷デー
タに描画編集する。エミュレーション部13は、受信印
刷データと出力印刷データの解像度を異ならせる必要が
ある場合、解像度変換エミュレーションを行う。印刷機
構部14は、描画編集された出力印刷データを用紙に印
刷出力する。
The interface section 11 receives print data transmitted from the computer 1, which is a higher-level device.
The print editing unit 12 draws and edits the received print data received by the interface unit 11 into output print data output by the printer. The emulation unit 13 performs resolution conversion emulation when the resolutions of the received print data and the output print data need to be different. The printing mechanism unit 14 prints out the output print data that has been drawn and edited on paper.

【0019】エミュレーション部13は、付加ライン数
算出部21、付加ライン比率算出部22、交差回数カウ
ント部23、付加ライン位置決定部24を含む。
The emulation unit 13 includes an additional line number calculation unit 21, an additional line ratio calculation unit 22, an intersection number counting unit 23, and an additional line position determination unit 24.

【0020】付加ライン数算出部21は、エミュレーシ
ョンするデータすなわち出力印刷データの解像度と元デ
ータすなわち受信印刷データの解像度の差から付加する
ライン数を算出する。付加ライン比率算出部22は、元
データのライン数と付加ライン数算出部21が求めた付
加ライン数から何ラインに対して1ライン付加するかの
比率を算出する。交差回数カウント部23は、元データ
のラインに直角な方向の線を平行移動させた時の黒ドッ
トとの交差回数を各ライン毎にカウントする。付加ライ
ン位置決定部24は、付加ライン比率算出部22で求め
た範囲内で交差回数カウント部23で求めた交差回数を
参照し、最も交差回数の少なかったラインを二重化する
ことを決定する。
The additional line number calculation unit 21 calculates the number of lines to be added from the difference between the resolution of the emulated data, that is, the output print data, and the resolution of the original data, that is, the received print data. The additional line ratio calculation unit 22 calculates a ratio of how many lines one line is added from the number of lines of the original data and the number of additional lines calculated by the additional line number calculation unit 21. The number-of-intersections counting unit 23 counts, for each line, the number of intersections with a black dot when a line in a direction perpendicular to the line of the original data is translated. The additional line position determination unit 24 refers to the number of intersections obtained by the number-of-intersections counting unit 23 within the range obtained by the additional line ratio calculation unit 22, and determines to duplicate the line with the smallest number of intersections.

【0021】次に、動作について説明する。図2は動作
を示すフローチャートである。図2を参照して、縦方向
にラインを付加するエミュレーションを行う場合の動作
概要を説明する。
Next, the operation will be described. FIG. 2 is a flowchart showing the operation. With reference to FIG. 2, an outline of operation when emulation for adding lines in the vertical direction is performed will be described.

【0022】まず、付加ライン数算出部21は、エミュ
レーションするデータの解像度(A)と元データの解像
度(B)の差から付加する横ライン数(C)を算出す
る。(ステップS1)。
First, the additional line number calculation unit 21 calculates the number of horizontal lines (C) to be added from the difference between the resolution (A) of the emulated data and the resolution (B) of the original data. (Step S1).

【0023】付加ライン比率算出部22は、元データの
横ライン数(D)と付加ライン数算出部21で求めた付
加ライン数(C)から何ラインに対して1ライン付加す
るかの比率(E)を算出する(ステップS2)。
The additional line ratio calculation unit 22 determines the ratio of the number of horizontal lines (D) of the original data and the number of additional lines (C) obtained by the additional line number calculation unit 21 to which one line is added ( E) is calculated (step S2).

【0024】交差回数カウント部23は、垂直方向の線
を平行移動させた時の黒ドットとの交差回数を各ライン
毎にカウント(F0〜Fn)する(ステップS3)。
The number-of-intersections counting unit 23 counts the number of intersections with black dots (F0 to Fn) for each line when a vertical line is translated (step S3).

【0025】付加ライン位置決定部24は、付加ライン
比率算出部22で求めた範囲内で交差回数カウント部2
3で求めた交差回数(F0〜Fn)を参照し、最も交差
回数の少なかったライン(Fmin)を二重化すること
を決定する(ステップS4)。
The additional line position determining unit 24 determines the number of intersections counting unit 2 within the range obtained by the additional line ratio calculating unit 22.
By referring to the number of intersections (F0 to Fn) obtained in step 3, it is determined to duplicate the line (Fmin) having the least number of intersections (step S4).

【0026】次に、具体的な実施例を説明する。図3は
本実施例のエミュレーションするデータの解像度と元デ
ータの解像度を示す説明図である。縦160dpi×横
168dpiのデータを縦168dpi×横168dp
iへ変換、すなわち、縦方向の近似した解像度へエミュ
レーションする例である。
Next, a concrete example will be described. FIG. 3 is an explanatory diagram showing the resolution of emulated data and the resolution of original data in this embodiment. Vertical 160 dpi × horizontal 168 dpi data is converted to vertical 168 dpi × horizontal 168 dpi
This is an example of conversion to i, that is, emulation to an approximate vertical resolution.

【0027】まず、図3に示すように、エミュレーショ
ンするデータの解像度(A)から元データの解像度
(B)を減算し、付加する横ライン数(C)を算出す
る。(A−B=C) 168[dpi]−160[dpi]=8[lpi] 次に、元データの横ライン数(D)と付加ライン数算出
部21で求めた付加ライン数(C)から図4のように何
ラインに対して1ライン付加するかの比率(E)を算出
する。(D:C=E:1) 160[lpi]:8[lpi]=20[ライン]:1
[ライン] 次に、付加ライン比率算出部22で求めた比率(E)の
範囲内で図5のように垂直方向の線を平行移動させたと
きの黒ドットとの交差回数を各ライン毎にカウント(F
0〜Fn)する。本実施例では、比率(E)が20であ
るから20ラインの範囲で交差回数を求める。図5では
図を簡略化するため8ラインの範囲で求める図を記載し
ている。
First, as shown in FIG. 3, the resolution (B) of the original data is subtracted from the resolution (A) of the emulated data to calculate the number of horizontal lines (C) to be added. (A−B = C) 168 [dpi] −160 [dpi] = 8 [lpi] Next, from the number of horizontal lines (D) of the original data and the number of additional lines (C) obtained by the additional line number calculation unit 21. As shown in FIG. 4, a ratio (E) of how many lines one line is added to is calculated. (D: C = E: 1) 160 [lpi]: 8 [lpi] = 20 [lines]: 1
[Line] Next, the number of intersections with the black dot when the vertical line is translated in the range of the ratio (E) obtained by the additional line ratio calculation unit 22 as shown in FIG. Count (F
0 to Fn). In this embodiment, since the ratio (E) is 20, the number of intersections is calculated within the range of 20 lines. In FIG. 5, a diagram obtained in the range of 8 lines is shown in order to simplify the diagram.

【0028】次に、交差回数カウント部23で求めた交
差回数(F0〜Fn)から、図6のように最も交差回数
の少なかったライン(Fmin)にデータを付加する。
付加するデータはライン(Fmin)を二重化する。こ
れにより、図7に示すように良好な印刷結果が得られ
る。
Next, from the number of times of intersection (F0 to Fn) obtained by the number of times of intersection counting unit 23, data is added to the line (Fmin) with the smallest number of times of intersection as shown in FIG.
The data to be added duplicates the line (Fmin). As a result, a good printing result is obtained as shown in FIG.

【0029】データを付加するときに、同一範囲内で最
も交差回数の少ないラインが2ライン以上ある場合は、
最も交差回数の少ないラインの内の最上段のラインにデ
ータを付加する。これは、一般に、文字等の配置は下詰
めで印刷することが多く、黒ドットの少ないラインをで
きるだけ上段に付加した方が印刷結果が落ち着いて見え
るという効果を狙ったものである。
When adding data, if there are two or more lines with the smallest number of crossings within the same range,
Data is added to the uppermost line of the lines with the least number of crosses. In general, the characters are often printed bottom-down, and the aim is to add a line with few black dots to the upper part as much as possible so that the printed result looks calm.

【0030】本実施例では縦方向の近似した解像度へエ
ミュレーションする例を説明したが、横方向の近似した
解像度へエミュレーションする場合も同様の方法で実現
できる。さらに、縦横両方向へ近似した解像度へエミュ
レーションする場合も、これらを組み合わせることで実
現できる。
In the present embodiment, an example has been described in which emulation is performed to a vertical approximate resolution, but emulation to a horizontal approximate resolution can also be realized by a similar method. Furthermore, when emulating to a resolution close to both the vertical and horizontal directions, it can be realized by combining these.

【0031】次に、本発明の第2の実施の形態について
説明する。図8は第3の実施の形態の構成を示すブロッ
ク図である。第3の実施の形態は、コンピュータ1、プ
リンタ2、記録媒体3を含む。プリンタ2は、インタフ
ェース部11、印刷編集部12、印刷機構部14を含
む。記録媒体3は、プリンタエミュレーション用プログ
ラムを記録している。この記録媒体3は、磁気ディス
ク、半導体メモリ、光ディスク、その他の記録媒体であ
ってよい。
Next, a second embodiment of the present invention will be described. FIG. 8 is a block diagram showing the configuration of the third embodiment. The third embodiment includes a computer 1, a printer 2, and a recording medium 3. The printer 2 includes an interface unit 11, a print editing unit 12, and a print mechanism unit 14. The recording medium 3 records a printer emulation program. The recording medium 3 may be a magnetic disk, a semiconductor memory, an optical disk, or another recording medium.

【0032】プリンタエミュレーション用プログラムは
記録媒体3からプリンタ2に読み込まれ、第1の実施の
形態におけるエミュレーション部13の処理と同様の処
理を行う。
The printer emulation program is read by the printer 2 from the recording medium 3 and performs the same processing as the processing of the emulation section 13 in the first embodiment.

【0033】すなわち、出力印刷データの解像度と前記
受信印刷データの解像度との差から付加するライン数を
算出する処理と、算出した付加ライン数から何ラインに
対して1ライン付加するかの比率を算出する処理と、受
信印刷データのラインに直角な方向の線を平行移動させ
た時の黒ドットとの交差回数を各ラインにつきカウント
する処理と、算出した比率の範囲内で交差回数を参照し
て最も交差回数の少ないラインを二重化する処理とを行
う。
That is, the process of calculating the number of lines to be added from the difference between the resolution of the output print data and the resolution of the received print data and the ratio of how many lines to add one line from the calculated number of additional lines are calculated. Refer to the calculation process, the process of counting the number of intersections with black dots when each line in the direction perpendicular to the line of the received print data is translated, and the number of intersections within the calculated ratio range. And the process of duplicating the line with the least number of crossings.

【0034】なお、記録媒体3のプリンタエミュレーシ
ョン用プログラムは、プリンタ2ではなく、コンピュー
タ1に読み込まれてもよい。この場合は、コンピュータ
1からプリンタ2にエミュレーション動作を行わせるこ
とになる。
The program for printer emulation of the recording medium 3 may be read by the computer 1 instead of the printer 2. In this case, the computer 1 causes the printer 2 to perform an emulation operation.

【0035】[0035]

【発明の効果】以上説明したように、本発明は、解像度
の比率ではなく、垂直線または水平線と黒いドットとの
交差回数の少ないラインにデータを付加することの結
果、元のデータとエミュレーションした後のデータを比
較しても視覚的な印象が変わらないという効果がある。
As described above, the present invention emulates the original data as a result of adding the data to the line having a small number of crossings of the vertical line or the horizontal line and the black dot, not the resolution ratio. The effect is that the visual impression does not change even if the later data are compared.

【0036】その理由としては、プリンタは基本的に、
白い印刷媒体に黒いドットを構成して線・文字等を描画
するものである。その中で、黒いドットの与える強い視
覚的印象の変化を最小限にしたことがあげられる。
The reason is that the printer is basically
A black dot is formed on a white print medium to draw lines and characters. Among them, the change in the strong visual impression given by black dots was minimized.

【0037】また、OCR文字やバーコードの読み取り
においても、白ドットは○○mm以上必要といったスペ
ースとしての役割を担っているケースが多いこと、それ
に対し黒ドットは幅□□mm以上なければならない、△
△mm以下でなければならない等の規格が厳しいことの
理由で、本発明は読み取り精度を良好に保つ効果があ
る。
Also, in reading OCR characters and bar codes, white dots often have a role of space of XX mm or more, whereas black dots must have a width of □□ mm or more. , △
The present invention has an effect of keeping good reading accuracy because the standards such as Δmm or less are strict.

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

【図1】第1の実施の形態の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of a first embodiment.

【図2】動作を示すフローチャートである。FIG. 2 is a flowchart showing an operation.

【図3】エミュレーションするデータの解像度と元デー
タの解像度を示す説明図である。
FIG. 3 is an explanatory diagram showing a resolution of data to be emulated and a resolution of original data.

【図4】付加するラインの比率説明図である。FIG. 4 is a diagram illustrating a ratio of lines to be added.

【図5】ライン毎の黒ドットとの交差回数カウント説明
図である。
FIG. 5 is an explanatory diagram of counting the number of intersections with black dots for each line.

【図6】データ付加説明図である。FIG. 6 is an explanatory diagram of data addition.

【図7】エミュレーション前後のデータ比較図である。FIG. 7 is a data comparison diagram before and after emulation.

【図8】第2の実施の形態の構成を示すブロック図であ
る。
FIG. 8 is a block diagram showing a configuration of a second exemplary embodiment.

【図9】従来技術のエミュレーション前後のデータ比較
図である。
FIG. 9 is a data comparison diagram before and after emulation according to the related art.

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

1 コンピュータ 2 プリンタ 3 記録媒体 11 インタフェース部 12 印刷編集部 13 エミュレーション部 14 印刷機構部 21 付加ライン数算出部 22 付加ライン比率算出部 23 交差回数カウント部 24 付加ライン位置決定部 1 computer 2 printer 3 recording media 11 Interface part 12 Print editor 13 Emulation section 14 Printing mechanism 21 Additional line number calculator 22 Additional line ratio calculator 23 Crossing count section 24 Additional line position determination unit

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 受信印刷データを出力印刷データに解像
度変換を行うプリンタエミュレーション方式において、
前記出力印刷データの解像度と前記受信印刷データの解
像度との差から付加するライン数を算出する付加ライン
数算出部と、前記付加ライン数算出部が算出した付加ラ
イン数から何ラインに対して1ライン付加するかの比率
を算出する付加ライン比率算出部と、前記受信印刷デー
タのラインに直角な方向の線を平行移動させた時の黒ド
ットとの交差回数を各ラインにつきカウントする交差回
数カウント部と、前記付加ライン比率算出部が求めた比
率の範囲内で前記交差回数カウント部が求めた交差回数
を参照して最も交差回数の少ないラインを二重化する付
加ライン位置決定部とを備え、前記付加ライン位置決定
部は、同一範囲内で最も交差回数の少ないラインが2ラ
イン以上ある場合は、最も交差回数の少ないラインの内
の最上段のラインにデータを付加することを特徴とする
プリンタエミュレーション方式。
1. A printer emulation system for performing resolution conversion of received print data into output print data,
An additional line number calculation unit that calculates the number of lines to be added from the difference between the resolution of the output print data and the resolution of the received print data, and 1 for any number of lines from the number of additional lines calculated by the additional line number calculation unit. An additional line ratio calculation unit that calculates the ratio of whether or not to add lines, and the number of crossing counts that counts the number of crossings with each black line when a line in a direction perpendicular to the line of the received print data is translated. Section, and an additional line position determining section for duplicating a line with the smallest number of intersections with reference to the number of intersections obtained by the number-of-intersections counting section within the range of the ratio obtained by the additional line ratio calculating section , Additional line position determination
In the section, the line with the least number of intersections within the same range is 2
If there is more than the in, the line with the least number of intersections
A printer emulation method characterized by adding data to the uppermost line of .
【請求項2】 縦横両方向について解像度変換を行うこ
とを特徴とする請求項1記載のプリンタエミュレーショ
ン方式。
2. The printer emulation system according to claim 1 , wherein resolution conversion is performed in both vertical and horizontal directions.
【請求項3】 受信印刷データを出力印刷データに解像
度変換を行うプリンタエミュレーション方法において、
前記出力印刷データの解像度と前記受信印刷データの解
像度との差から付加するライン数を算出し、算出した付
加ライン数から何ラインに対して1ライン付加するかの
比率を算出し、前記受信印刷データのラインに直角な方
向の線を平行移動させた時の黒ドットとの交差回数を各
ラインにつきカウントし、前記比率の範囲内で交差回数
を参照して最も交差回数の少ないラインを二重化し、同
一範囲内で最も交差回数の少ないラインが2ライン以上
ある場合は、最も交差回数の少ないラインの内の最上段
のラインにデータを付加することを特徴とするプリンタ
エミュレーション方法。
3. A printer emulation method for performing resolution conversion of received print data into output print data,
The number of lines to be added is calculated from the difference between the resolution of the output print data and the resolution of the received print data, the ratio of how many lines to add one line is calculated from the calculated number of added lines, and the received print The number of intersections with black dots when a line perpendicular to the data line is translated is counted for each line, and the line with the smallest number of intersections is duplicated by referring to the number of intersections within the above ratio. ,same
2 or more lines with the least number of intersections within a range
If there is, the top line of the lines with the least number of intersections
Printer emulation method characterized by adding data to the line .
【請求項4】 縦横両方向について解像度変換を行うこ
とを特徴とする請求項3記載のプリンタエミュレーショ
ン方法。
4. The printer emulation method according to claim 3 , wherein resolution conversion is performed in both vertical and horizontal directions.
【請求項5】 受信印刷データを出力印刷データに解像
度変換を行うプリンタエミュレーション方法において、
前記出力印刷データの解像度と前記受信印刷データの解
像度との差から付加するライン数を算出する処理と、算
出した付加ライン数から何ラインに対して1ライン付加
するかの比率を算出する処理と、前記受信印刷データの
ラインに直角な方向の線を平行移動させた時の黒ドット
との交差回数を各ラインにつきカウントする処理と、前
記比率の範囲内で交差回数を参照して最も交差回数の少
ないラインを二重化する処理と、同一範囲内で最も交差
回数の少ないラインが2ライン以上ある場合は、最も交
差回数の少ないラインの内の最上段のラインにデータを
付加する処理とをプリンタに行わせるプログラムを記録
したことを特徴とする記録媒体。
5. A printer emulation method for converting resolution of received print data into output print data,
A process of calculating the number of lines to be added from the difference between the resolution of the output print data and the resolution of the received print data, and a process of calculating the ratio of how many lines to add one line from the calculated number of additional lines , A process of counting the number of intersections with each black line when a line in a direction perpendicular to the line of the received print data is translated, and the number of intersections with reference to the number of intersections within the ratio range. The process of duplicating the line with few lines and the most crossing in the same range
If there are two or more lines with a low frequency, the
Data is stored in the top line of the lines with the fewest differences.
A recording medium on which a program for causing a printer to perform an adding process is recorded.
【請求項6】 縦横両方向について解像度変換を行う処
理をプリンタに行わせるプログラムを記録したことを特
徴とする請求項5記載の記録媒体。
6. A recording medium according to claim 5, wherein a program for causing a printer to perform resolution conversion processing in both vertical and horizontal directions is recorded.
JP31652899A 1999-11-08 1999-11-08 Printer emulation method, printer emulation method, and recording medium recording printer emulation program Expired - Fee Related JP3438679B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31652899A JP3438679B2 (en) 1999-11-08 1999-11-08 Printer emulation method, printer emulation method, and recording medium recording printer emulation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31652899A JP3438679B2 (en) 1999-11-08 1999-11-08 Printer emulation method, printer emulation method, and recording medium recording printer emulation program

Publications (2)

Publication Number Publication Date
JP2001136372A JP2001136372A (en) 2001-05-18
JP3438679B2 true JP3438679B2 (en) 2003-08-18

Family

ID=18078117

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31652899A Expired - Fee Related JP3438679B2 (en) 1999-11-08 1999-11-08 Printer emulation method, printer emulation method, and recording medium recording printer emulation program

Country Status (1)

Country Link
JP (1) JP3438679B2 (en)

Also Published As

Publication number Publication date
JP2001136372A (en) 2001-05-18

Similar Documents

Publication Publication Date Title
JPH07107280A (en) Picture forming device
JPH04112069A (en) Image recorder
JP3438679B2 (en) Printer emulation method, printer emulation method, and recording medium recording printer emulation program
JP3387449B2 (en) Map data printing system and method and recording medium recording the processing program
KR100601665B1 (en) Method and apparatus of duplex printing using preview function
US3828323A (en) Data recording and printing apparatus
JPS6023534B2 (en) facsimile communication system
JPH07262216A (en) Picture information processor
JP2654015B2 (en) Document processing device
JPH0512288A (en) Information processor
JP2874162B2 (en) Editing and printing device
JPS5945766A (en) Video signal check system of printer
JP2740539B2 (en) Enlarged reproduction image information creation method and apparatus
JPS5941051A (en) Character pattern generator
US20050200886A1 (en) Image data printing method and image data printing apparatus
KR100252470B1 (en) A coding apparatus and a ruled lines generating apparatus
JPH01249482A (en) Data output device
JPS6089385A (en) Electronic printer
JP3033731B2 (en) Ruled line processing device, ruled line processing method, and recording medium for recording program
JPH1191185A (en) Printing control method
JPH0358911B2 (en)
JP2532383B2 (en) Image signal thinning device
JPH03256774A (en) Printer
JPH0341514A (en) Data transfer equipment
JPH04371866A (en) Printing control method in journal receipt 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: 20030513

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080613

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090613

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100613

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100613

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees