JP2003191564A - Method for printing inverted image by printer - Google Patents

Method for printing inverted image by printer

Info

Publication number
JP2003191564A
JP2003191564A JP2001398536A JP2001398536A JP2003191564A JP 2003191564 A JP2003191564 A JP 2003191564A JP 2001398536 A JP2001398536 A JP 2001398536A JP 2001398536 A JP2001398536 A JP 2001398536A JP 2003191564 A JP2003191564 A JP 2003191564A
Authority
JP
Japan
Prior art keywords
image
alignment
inverted
generating
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001398536A
Other languages
Japanese (ja)
Inventor
Atsushi Sakai
淳 酒井
Hiroaki Hayashi
裕明 林
Tomohiro Kodama
知広 小玉
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2001398536A priority Critical patent/JP2003191564A/en
Publication of JP2003191564A publication Critical patent/JP2003191564A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To realize inverted printing of an image through a common preprocessing regardless of the type of printer, i.e., a column type, a raster type, or possibility of plural printing. <P>SOLUTION: The inverted image printing method comprises a step for receiving image information along with an inverted print request and alignment information, a step for generating inverted image data by rotating the image by 180° based on the image information, a step for generating an alignment setting command at the time of inverted printing determined depending on the content of alignment information, a step for generating an image print command based on the image information and the inverted image data, and a step for delivering the image print command and the alignment setting command to a printer and printing the inverted image data, while erecting, on a print medium according to the alignment setting command. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、イメージを印刷媒
体上に倒立してプリンタで印刷するためのイメージの倒
立印刷方法及び印刷装置に関する。本発明はまた、前記
倒立印刷方法を実行するプログラム及び該プログラムを
記録したコンピュータで読み取り可能な情報記録媒体に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an inverted image printing method and a printing apparatus for printing an image on a print medium by using a printer. The present invention also relates to a program for executing the inverted printing method and a computer-readable information recording medium recording the program.

【0002】[0002]

【従来の技術】小売店等でレシート印刷などのために使
用されるPOSプリンタと称されるプリンタが広く普及
している。この種のプリンタにおいては、近年、ユーザ
からの要求に従って多様な出力形態を実現できるように
なってきており、その一出力形態としてイメージを印刷
媒体上に倒立して印刷するためのコマンド(以下、倒立
印刷コマンドという。)が用意されている。
2. Description of the Related Art Printers called POS printers, which are used for printing receipts in retail stores and the like, have become widespread. In recent years, in this type of printer, various output forms can be realized in accordance with a request from a user, and as one output form, a command for printing an image upside down on a print medium (hereinafter, Inverted print command.) Is prepared.

【0003】ホストコンピュータ上で動作するPOSア
プリケーションから倒立印刷の要求があると、ホストコ
ンピュータ側に用意されたプリンタドライバは、これを
前処理し、接続されているプリンタの仕様に応じて生成
した倒立印刷コマンドをプリンタ側に送出して、印刷を
実行させるようにしている。
When an inverted print request is issued from the POS application operating on the host computer, the printer driver prepared on the host computer side preprocesses the inverted print and generates the inverted print according to the specifications of the connected printer. A print command is sent to the printer side to execute printing.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、インク
ジェットプリンタやドットインパクトプリンタなどのよ
うに、紙送り方向に複数のドットを同時に形成するいわ
ゆるカラム形式で印刷を行うプリンタにおいて、前記倒
立印刷コマンドを実行する場合には、正立印刷の時とは
異なる前処理をプリンタドライバ側で行わなければなら
ず、処理が煩雑になるという問題がある。
However, the inverted print command is executed in a printer, such as an ink jet printer or a dot impact printer, which performs printing in a so-called column format in which a plurality of dots are simultaneously formed in the paper feed direction. In this case, there is a problem in that the printer driver needs to perform a preprocess different from the case of the upright printing, which makes the process complicated.

【0005】すなわち、カラム形式のプリンタでイメー
ジの印刷を行わしめる場合には、同時形成される紙送り
方向のドット数に合わせてイメージを複数に分割し、こ
れらについてそれぞれ印刷コマンドを生成して、順次プ
リンタ側にコマンドを送出するという処理を行う必要が
ある。そして、このようなカラム形式の場合において倒
立印刷コマンドを実行しようとする場合、イメージの下
側から印刷が実行される必要があるため、分割したイメ
ージの送出順序を逆にしなければならず、また、イメー
ジの紙送り方向のサイズがプリンタの紙送り方向のドッ
ト数の整数倍でない場合には、イメージの分割位置を変
える必要が生じる。
That is, when printing an image with a column type printer, the image is divided into a plurality of parts in accordance with the number of dots in the paper feed direction that are simultaneously formed, and a print command is generated for each of these. It is necessary to perform a process of sequentially sending commands to the printer side. When the inverted print command is to be executed in the case of such a column format, printing needs to be executed from the lower side of the image, so the sending order of the divided images must be reversed, and If the size of the image in the paper feeding direction is not an integral multiple of the number of dots in the paper feeding direction of the printer, it is necessary to change the dividing position of the image.

【0006】また、サーマルプリンタなどのように、紙
の幅方向に複数のドットを同時に形成するいわゆるラス
タ形式のプリンタや、複数色による印刷を可能とするプ
リンタにおいて、前記倒立印刷コマンドを実行する場合
には、正立印刷とは全く異なる前処理が必要となり、そ
の実現が困難であった。
When the inverted print command is executed in a so-called raster type printer, such as a thermal printer, which simultaneously forms a plurality of dots in the width direction of the paper, or a printer capable of printing in a plurality of colors. Requires a completely different pretreatment from upright printing, which is difficult to realize.

【0007】更に、イメージの印刷方向を指定するペー
ジモードを利用して倒立印刷を実現することも可能であ
るが、このモードで印刷を行う場合、印刷速度が極めて
低下するという問題がある。
Further, although it is possible to realize the inverted printing by using the page mode for designating the printing direction of the image, there is a problem that the printing speed is extremely lowered when the printing is performed in this mode.

【0008】従って本発明の目的は、プリンタの種類、
すなわち、それがカラム形式であるかラスタ形式である
か、又は複数色印刷を可能とするかに拘わらず、共通の
前処理によってイメージの倒立印刷を実現できるように
する倒立印刷方法及び装置を提供することにある。
Therefore, it is an object of the present invention to identify the type of printer,
That is, an inverted printing method and apparatus are provided that enable inverted printing of an image by common pre-processing regardless of whether it is a column format, a raster format, or capable of multi-color printing. To do.

【0009】本発明の別の目的は、プリンタドライバ側
で共通の前処理を行うことにより、プリンタ側では正立
と倒立の処理の区別をすることなく、倒立印刷を好適に
実現することができる倒立印刷方法及び装置を提供する
ことにある。
Another object of the present invention is to perform common pre-processing on the printer driver side, so that inverted printing can be suitably realized without distinguishing between upright and inverted processing on the printer side. An object is to provide an inverted printing method and device.

【0010】[0010]

【課題を解決するための手段】前記目的を達成するため
本発明は、イメージを印刷媒体上に倒立してプリンタで
印刷するためのイメージの倒立印刷方法であって、前記
イメージの情報を、その倒立印刷を指示する倒立印刷要
求及びその印刷媒体上におけるアライメントを指示する
アライメント情報と共に受け取る工程と、前記イメージ
の情報に基づいて、該イメージを180度回転させた倒
立イメージデータを生成する工程と、前記アライメント
情報の内容に応じて決められた倒立印刷時のアライメン
ト設定コマンドを生成する工程と、前記イメージの情報
及び前記倒立イメージデータに基づいて、イメージ印刷
コマンドを生成する工程と、プリンタに対し、前記イメ
ージ印刷コマンド及び前記アライメント設定コマンドを
送出して、前記アライメント設定コマンドに従うアライ
メントで前記倒立イメージデータを印刷媒体上に正立印
刷せしめる工程とを備えて構成される。
In order to achieve the above object, the present invention is an inverted image printing method for printing an image on a print medium upside down on a printer, wherein the information of the image is Receiving together with an inverted print request that instructs inverted printing and alignment information that indicates alignment on the print medium; and generating inverted image data obtained by rotating the image 180 degrees based on the information of the image, A step of generating an alignment setting command for inverted printing determined according to the content of the alignment information; a step of generating an image print command based on the image information and the inverted image data; Sending the image print command and the alignment setting command to Constructed and a step of allowed to erect printed on the print medium the inverted image data by the alignment according to Imento setting command.

【0011】前記方法によれば、受け取られたイメージ
の倒立印刷のための指示は、最終的に通常、すなわち正
立の印刷のための指示に置き換えられてプリンタに提供
される。これによって、プリンタの種類に依存すること
なく、またプリンタ側で正立と倒立の処理を分けること
なく、適正な倒立印刷を実現することができるようにな
る。
According to the method, the received instructions for upside-down printing of the image are finally replaced by the instructions for normal or upright printing and provided to the printer. As a result, proper inverted printing can be realized without depending on the type of printer, and without separating the processing of upright and inverted paper on the printer side.

【0012】この場合において、前記アライメント設定
コマンドを生成する前記工程は、前記アライメント情報
が、マージン量がNドットである左マージンを指示する
ものである場合、前記アライメント設定コマンドとし
て、下式により算出されるマージン量Mドットの修正左
マージンを指示するものを生成する工程を含むことが好
ましい。M=用紙に印刷できる最大ドット数−(イメー
ジの横方向ドット数+N)
In this case, in the step of generating the alignment setting command, when the alignment information indicates a left margin having a margin amount of N dots, the alignment setting command is calculated by the following equation. It is preferable to include a step of generating an indication of a corrected left margin of the margin amount M dots to be generated. M = maximum number of dots that can be printed on paper- (number of horizontal dots in image + N)

【0013】また、前記アライメント設定コマンドを生
成する前記工程は、前記アライメント情報が、左寄せを
指示するものである場合又は前記アライメント情報が与
えられていない場合、前記アライメント設定コマンドと
して、N=0としたときにおける前記マージン量Mドッ
トの修正左マージンを指示するものを生成する工程を含
むことができる。
Further, in the step of generating the alignment setting command, when the alignment information indicates left alignment or when the alignment information is not given, N = 0 is set as the alignment setting command. And a step of generating an instruction indicating a corrected left margin of the margin amount M dots at that time.

【0014】また、前記アライメント設定コマンドを生
成する前記工程は、前記アライメント情報が、右寄せを
指示するものである場合、前記アライメント設定コマン
ドを生成しないようにすることができる。
Further, in the step of generating the alignment setting command, the alignment setting command may not be generated when the alignment information indicates right alignment.

【0015】更に、前記アライメント設定コマンドを生
成する前記工程は、前記アライメント情報が、センタリ
ングを指示するものである場合、前記アライメント設定
コマンドとして、センタリングを指示するものを生成す
る工程を含むことが好ましい。
Further, it is preferable that the step of generating the alignment setting command includes a step of generating a command for instructing centering as the alignment setting command when the alignment information indicates centering. .

【0016】ここで、前記イメージの情報が、イメージ
の横方向ドット数の情報を含み、前記イメージ印刷コマ
ンドを生成する工程が、前記イメージの横方向ドット数
及び前記倒立イメージデータに基づいて、イメージ印刷
コマンドを生成するよう構成されることが好ましい。
Here, the information of the image includes information on the number of dots in the horizontal direction of the image, and the step of generating the image print command is based on the number of dots in the horizontal direction of the image and the inverted image data. It is preferably configured to generate a print command.

【0017】本発明はまた、前記の何れか1つに記載の
倒立印刷方法を実行するプログラム及びこのプログラム
を記録したコンピュータで読み取り可能な情報記録媒体
に関するものである。
The present invention also relates to a program for executing the inverted printing method according to any one of the above, and a computer-readable information recording medium recording the program.

【0018】本発明は更に、イメージを印刷媒体上に倒
立してプリンタで印刷するためのイメージの倒立印刷装
置に関する。当該倒立印刷装置は、前記イメージの情報
を、その倒立印刷を指示する倒立印刷要求及びその印刷
媒体上におけるアライメントを指示するアライメント情
報と共に受け取る手段と、前記イメージの情報に基づい
て、該イメージを180度回転させた倒立イメージデー
タを生成する手段と、前記アライメント情報の内容に応
じて決められた倒立印刷時のアライメント設定コマンド
を生成する手段と、前記イメージの情報及び前記倒立イ
メージデータに基づいて、イメージ印刷コマンドを生成
する手段と、プリンタに対し、前記イメージ印刷コマン
ド及び前記アライメント設定コマンドを送出して、前記
アライメント設定コマンドに従うアライメントで前記倒
立イメージデータを印刷媒体上に正立印刷せしめる手段
とを備えて構成される。
The present invention further relates to an inverted image printing apparatus for printing an image on a print medium upside down on a printer. The inverted printing apparatus receives the image information together with an inverted print request for instructing the inverted printing and alignment information for instructing the alignment on the print medium, and the image information 180 based on the information of the image. Means for generating inverted image data rotated by a degree, means for generating an alignment setting command for inverted printing determined according to the content of the alignment information, and based on the image information and the inverted image data, Means for generating an image print command, and means for sending the image print command and the alignment setting command to the printer and causing the inverted image data to be upright printed on the print medium with the alignment according to the alignment setting command. It is equipped with.

【0019】[0019]

【発明の実施の形態】以下、本発明の一実施形態を図面
に沿って詳細に説明する。以下では、小売店のレジ等で
使用されるPOSプリンタにおいて倒立印刷を実現する
本発明の実施形態を説明する。もっとも、本発明に係る
イメージの倒立印刷方法は、このようなプリンタに限ら
ず、ホストコンピュータからの印刷コマンドに従って印
刷を実行する各種のプリンタにおいてその実現が可能で
ある。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described in detail below with reference to the drawings. In the following, an embodiment of the present invention that realizes inverted printing in a POS printer used at a cash register of a retail store or the like will be described. However, the inverted image printing method according to the present invention is not limited to such a printer, and can be implemented in various printers that execute printing according to a print command from the host computer.

【0020】図1は、本発明が実現されるPOSプリン
タの実施環境を示すブロック図である。POSプリンタ
100は、POS端末102からの各種制御コマンドを
受信可能なように、RS−232Cその他の通信インタ
フェースを介してこれに接続されている。POS端末1
02は、端末に内蔵されたCPU上で実行可能なソフト
ウェア、すなわち、ここでは図示しないホストコンピュ
ータとの間の通信、POS端末上でのデータ処理及びP
OSプリンタに対する制御等を実現するためのPOSア
プリケーション104と、POSアプリケーション10
4からのプリンタの制御要求を前処理するプリンタドラ
イバ106とを実装している。イメージの倒立印刷要求
を含む各種のプリンタ制御要求は、POSアプリケーシ
ョン104からプリンタドライバ106へ送信される。
プリンタドライバ106は、これを受けて、接続されて
いるPOSプリンタ100に合わせて該制御要求を前処
理し、POSプリンタ100へ送信し、これを制御する
ようにする。
FIG. 1 is a block diagram showing an implementation environment of a POS printer in which the present invention is realized. The POS printer 100 is connected to the POS terminal 102 via a communication interface such as RS-232C so that it can receive various control commands from the POS terminal 102. POS terminal 1
Reference numeral 02 denotes software that can be executed on the CPU built into the terminal, that is, communication with a host computer (not shown here), data processing on the POS terminal, and P
A POS application 104 and a POS application 10 for realizing control of an OS printer
The printer driver 106 for pre-processing the printer control request from the printer No. 4 is mounted. Various printer control requests including an inverted image print request are transmitted from the POS application 104 to the printer driver 106.
Upon receiving this, the printer driver 106 preprocesses the control request in accordance with the connected POS printer 100, transmits it to the POS printer 100, and controls it.

【0021】本実施形態において、プリンタにおける倒
立印刷方法は、前記プリンタドライバ106におけるソ
フトウェア処理として実現される。図2は、POSアプ
リケーション104から所定イメージの倒立印刷を指示
する要求(以下、倒立印刷要求という。)が送出された
場合の、プリンタドライバ106における制御を示した
フローチャートである。
In the present embodiment, the inverted printing method in the printer is realized as software processing in the printer driver 106. FIG. 2 is a flowchart showing the control in the printer driver 106 when a request for inversion printing of a predetermined image (hereinafter referred to as “inversion printing request”) is sent from the POS application 104.

【0022】ユーザの操作に基づいて、POSアプリケ
ーション104から所定のイメージデータを倒立印刷す
ることを指示する倒立印刷要求が、プリンタドライバ1
06に送信されることによって、図2に示す処理200
が開始される。より詳細には、POSアプリケーション
104は、プリンタドライバ106が備える倒立印刷の
ための関数を呼び出して、いくつかのパラメータ、すな
わち対象のイメージが記録されたイメージファイルのフ
ァイル名、印刷媒体上でのイメージの配置、すなわちア
ライメント情報をプリンタドライバ106に渡す。ま
た、前記イメージファイル内には、該イメージのサイズ
や色を指定するピクセル情報が含まれている。
Based on the user's operation, the POS application 104 issues an inverted print request for instructing the inverted print of the predetermined image data to the printer driver 1.
06, the process 200 shown in FIG.
Is started. More specifically, the POS application 104 calls a function for inverted printing provided in the printer driver 106, and executes some parameters, that is, the file name of the image file in which the target image is recorded, the image on the print medium. , The alignment information is passed to the printer driver 106. In addition, the image file includes pixel information that specifies the size and color of the image.

【0023】最初の処理で、プリンタドライバ106
は、前記倒立印刷要求をそのパラメータ情報と共に受信
する(202)。次いで、前記パラメータ情報内で特定
されるイメージファイルを、そのファイル名に基づいて
取得し、引き続き、該イメージファイルから、そのイメ
ージを180度回転させた倒立イメージデータを生成す
る(204)。次に、取得したイメージファイルから、
イメージのピクセル情報、すなわちイメージのサイズ及
び色情報を取得する(206)。本発明に関連して、前
記イメージのサイズに関する情報は、少なくともイメー
ジの横方向におけるドット数が取得できれば足りる。
In the first process, the printer driver 106
Receives the inverted print request together with the parameter information (202). Next, the image file specified in the parameter information is acquired based on the file name, and subsequently, inverted image data obtained by rotating the image by 180 degrees is generated from the image file (204). Next, from the acquired image file,
The pixel information of the image, that is, the size and color information of the image is obtained (206). In connection with the present invention, the information about the size of the image is sufficient if at least the number of dots in the lateral direction of the image can be obtained.

【0024】次いで、プリンタドライバ106は、倒立
印刷要求と共に受信されたアライメント情報を解析し、
これに基づいて倒立印刷時におけるイメージのアライメ
ント設定コマンドを生成する(208)。本実施形態に
おいてアライメント情報は、センタリング、右寄せ、左
マージンN(印刷可能領域において左からマージン量N
ドットでイメージを印刷する)、及び左寄せの何れかで
ある。アライメント設定コマンドは、前記各アライメン
ト情報の種類に対応した修正アライメントによりアライ
メントの指令を与えるコマンドである。なお、倒立印刷
要求は、アライメント情報を伴うことなく生成すること
ができ、この場合は、左寄せの場合と同じアライメント
処理がなされる。
The printer driver 106 then analyzes the alignment information received with the inverted print request,
Based on this, an image alignment setting command for inverted printing is generated (208). In this embodiment, the alignment information includes centering, right alignment, left margin N (margin amount N from the left in the printable area).
Print the image with dots) or left justify. The alignment setting command is a command that gives an alignment command by a corrected alignment corresponding to the type of each alignment information. Note that the inverted print request can be generated without accompanying the alignment information, and in this case, the same alignment processing as in the case of left alignment is performed.

【0025】図3に、各アライメント情報に対する修正
アライメントの対応を表形式で示した。図に示すよう
に、アライメント情報が、「センタリング」、すなわち
印刷媒体上の幅方向の中央位置にイメージを印刷する指
令である場合は、倒立印刷の場合もそのイメージの配置
は変わらないので、修正アライメントとして同じく「セ
ンタリング」が設定される。アライメント情報が、「右
寄せ」、すなわち印刷媒体における印刷可能領域の右側
に寄せてイメージを印刷する指令である場合は、倒立印
刷では左寄せの位置にイメージを印刷することとなるの
で、アライメント設定コマンドは生成されない(もっと
も、左寄せのアライメント設定コマンドを生成しても良
い)。
FIG. 3 shows the correspondence of the corrected alignment to each alignment information in a table format. As shown in the figure, if the alignment information is "centering", that is, the command to print the image at the center position in the width direction on the print medium, the image layout does not change even in inverted printing. Similarly, "centering" is set as the alignment. If the alignment information is "right-justified", that is, a command to print the image by aligning it to the right side of the printable area on the print medium, the image will be printed at the left-aligned position in inverted printing. Not generated (though a left-aligned alignment setting command may be generated).

【0026】アライメント情報が、「左マージンN」、
すなわち印刷媒体における印刷可能領域の左側からNド
ット離れた位置にイメージを印刷する指令である場合
は、そのマージン量をNからMに変えた「左マージン
M」を修正アライメントとする。ここで、マージン量M
は、下式により与えられる。 M=用紙に印刷できる最大ドット数D −(イメージの横方向ドット数W+マージン量N) (1)
The alignment information is "left margin N",
That is, if the command is to print an image at a position N dots away from the left side of the printable area on the print medium, the "left margin M" in which the margin amount is changed from N to M is set as the correction alignment. Here, the margin amount M
Is given by M = maximum number of dots that can be printed on paper D− (number of dots in the horizontal direction of image W + margin amount N) (1)

【0027】以下に、左マージンNによる倒立印刷にお
けるアライメント設定コマンドの生成の具体例を説明す
る。今、星型のイメージを、左マージンNで印刷媒体上
に倒立印刷する場合を考える。図4には、印刷媒体40
0上に、左マージン量Nで正立印刷された星型のイメー
ジ402、及び同じマージン量で倒立印刷された同じ星
型のイメージ404が表されている。POSアプリケー
ションから与えられたアライメント情報が左マージンN
を指定している場合、式(1)により修正アライメント
として左マージンMが設定される。この位置は、図4の
倒立イメージ404で明らかなように、印刷媒体400
の印刷可能領域における右端からドット量Nのマージン
を空けて、倒立イメージを印刷することに等しい。
A specific example of generation of an alignment setting command in inverted printing with the left margin N will be described below. Now, consider a case where a star-shaped image is printed upside down on a print medium with a left margin N. In FIG. 4, the print medium 40
On 0, a star-shaped image 402 printed upright with a left margin amount N, and an identical star-shaped image 404 printed upside down with the same margin amount are shown. The left margin N is the alignment information given by the POS application.
Is specified, the left margin M is set as the corrected alignment by the expression (1). This position is shown in print media 400, as can be seen in inverted image 404 of FIG.
It is equivalent to printing an inverted image with a margin of dot amount N from the right end in the printable area.

【0028】図3に戻り、次に、アライメント情報が、
「左寄せ」である場合、又はアライメント指定が無い場
合は、これはN=0の左マージンと見ることができるの
で、N=0の条件下で式(1)により修正アライメント
が生成される。
Returning to FIG. 3, next, the alignment information is
If it is "left-justified" or there is no alignment designation, this can be regarded as the left margin of N = 0, and thus the corrected alignment is generated by the equation (1) under the condition of N = 0.

【0029】上述した処理により各アライメント情報に
基づいて修正アライメントが生成され、これによりアラ
イメント設定コマンドが構築される。
By the above-described processing, the corrected alignment is generated based on each alignment information, and the alignment setting command is constructed by this.

【0030】図2の処理において、次に、前記工程20
6でイメージデータより取得したピクセル情報、及び工
程204で生成した倒立イメージデータからイメージ印
刷コマンドが生成される(210)。次いで、前記工程
208で生成されたアライメント設定コマンド及び前記
イメージ印刷コマンドは、順次プリンタへ送信される
(212)。このようにしてPOSアプリケーションか
らの倒立印刷要求は、そのアライメントを修正した正立
の印刷コマンドとしてプリンタへ与えられることとな
る。これによって、プリンタ側は、倒立印刷のための特
別の処理を実行する必要がなく、またその機種に依存し
て倒立印刷ができなかったり、処理速度が低下するとい
った問題もなくなる。
In the process shown in FIG.
An image print command is generated from the pixel information acquired from the image data in step 6 and the inverted image data generated in step 204 (210). Next, the alignment setting command and the image print command generated in step 208 are sequentially transmitted to the printer (212). In this way, the inverted print request from the POS application is given to the printer as an upright print command whose alignment is corrected. As a result, the printer does not need to perform special processing for inverted printing, and there is no problem that inverted printing cannot be performed or the processing speed decreases depending on the model.

【0031】以上、本発明の一実施形態を図面に沿って
説明したが、本発明は前記実施形態において示された事
項に限定されず、特許請求の範囲及び発明の詳細な説明
の記載、並びに周知の技術に基づいて、当業者がその変
更・応用を行うことができる範囲が含まれる。
Although one embodiment of the present invention has been described above with reference to the drawings, the present invention is not limited to the matters shown in the above embodiment, and the claims and the detailed description of the invention, and It includes a range in which those skilled in the art can make changes and applications based on well-known techniques.

【0032】[0032]

【発明の効果】本発明によれば、プリンタの種類、すな
わち、それがカラム形式であるかラスタ形式であるか、
又は複数印刷を可能とするかに拘わらず、共通の前処理
によってイメージの倒立印刷を実現できるようになる。
According to the present invention, the type of printer, that is, whether it is in column format or raster format,
Alternatively, it is possible to realize the inverted printing of the image by the common pre-processing regardless of whether the plural printing is possible.

【0033】また、倒立印刷に対する共通の前処理を行
うことにより、プリンタ側では正立と倒立の処理の区別
をすることなく、倒立印刷を好適に実現することができ
る。
Further, by performing the common pre-processing for the inverted printing, the inverted printing can be preferably realized without distinguishing the processing of the upright and the inverted from the printer side.

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

【図1】本発明が実現されるPOSプリンタの実施環境
を示すブロック図である。
FIG. 1 is a block diagram showing an implementation environment of a POS printer in which the present invention is realized.

【図2】POSアプリケーションから倒立印刷要求が送
出された場合の、プリンタドライバにおける制御を示し
たフローチャートである。
FIG. 2 is a flowchart showing control in a printer driver when an inverted print request is sent from a POS application.

【図3】各アライメント情報に対する修正アライメント
の対応を示した表である。
FIG. 3 is a table showing the correspondence of corrected alignment with respect to each alignment information.

【図4】左マージン量Nで倒立印刷をする際の修正アラ
イメントの生成方法を説明するための図である。
FIG. 4 is a diagram illustrating a method of generating a corrected alignment when performing inverted printing with a left margin amount N.

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

100 POSプリンタ 102 POS端末 104 POSアプリケーション 106 プリンタドライバ 100 POS printer 102 POS terminal 104 POS application 106 printer driver

フロントページの続き (72)発明者 小玉 知広 長野県諏訪市大和3丁目3番5号 セイコ ーエプソン株式会社内 Fターム(参考) 2C062 AA24 2C087 AB05 BA03 BD01 BD22 BD42 BD46 CA04 CA10 5B021 AA04 BB01 LE01 LG09 Continued front page    (72) Inventor Tomohiro Kodama             Seiko, 3-3-3 Yamato, Suwa City, Nagano Prefecture             -In Epson Corporation F-term (reference) 2C062 AA24                 2C087 AB05 BA03 BD01 BD22 BD42                       BD46 CA04 CA10                 5B021 AA04 BB01 LE01 LG09

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 イメージを印刷媒体上に倒立してプリン
タで印刷するためのイメージの倒立印刷方法であって、 前記イメージの情報を、その倒立印刷を指示する倒立印
刷要求及びその印刷媒体上におけるアライメントを指示
するアライメント情報と共に受け取る工程と、 前記イメージの情報に基づいて、該イメージを180度
回転させた倒立イメージデータを生成する工程と、 前記アライメント情報の内容に応じて決められた倒立印
刷時のアライメント設定コマンドを生成する工程と、 前記イメージの情報及び前記倒立イメージデータに基づ
いて、イメージ印刷コマンドを生成する工程と、 プリンタに対し、前記イメージ印刷コマンド及び前記ア
ライメント設定コマンドを送出して、前記アライメント
設定コマンドに従うアライメントで前記倒立イメージデ
ータを印刷媒体上に正立印刷せしめる工程と、を備えた
プリンタによるイメージの倒立印刷方法。
1. An inverted image printing method for printing an image upside down on a print medium by a printer, wherein the image information includes an inverted print request for instructing the inverted print and the image on the print medium. A step of receiving together with alignment information for instructing alignment, a step of generating inverted image data obtained by rotating the image by 180 degrees based on the information of the image, and an inverted printing determined according to the content of the alignment information. A step of generating an alignment setting command, a step of generating an image print command based on the image information and the inverted image data, and sending the image print command and the alignment setting command to a printer, Alignment according to the alignment setting command Inverted printing method of an image by the printer which includes a step of allowed to erect print an inverted image data on a printing medium.
【請求項2】 前記アライメント設定コマンドを生成す
る前記工程は、前記アライメント情報が、マージン量が
Nドットである左マージンを指示するものである場合、
前記アライメント設定コマンドとして、下式により算出
されるマージン量Mドットの修正左マージンを指示する
ものを生成する工程を含む請求項1に記載の倒立印刷方
法。 M=用紙に印刷できる最大ドット数−(イメージの横方
向ドット数+N)
2. The step of generating the alignment setting command, wherein the alignment information indicates a left margin whose margin amount is N dots,
The inverted printing method according to claim 1, further comprising a step of generating, as the alignment setting command, a command indicating a corrected left margin of a margin amount M dot calculated by the following equation. M = maximum number of dots that can be printed on paper- (number of horizontal dots in image + N)
【請求項3】 前記アライメント設定コマンドを生成す
る前記工程は、前記アライメント情報が、左寄せを指示
するものである場合又は前記アライメント情報が与えら
れていない場合、前記アライメント設定コマンドとし
て、N=0としたときにおける前記マージン量Mドット
の修正左マージンを指示するものを生成する工程を含む
請求項2に記載の倒立印刷方法。
3. In the step of generating the alignment setting command, when the alignment information indicates left alignment or when the alignment information is not given, N = 0 is set as the alignment setting command. 3. The inverted printing method according to claim 2, further comprising a step of generating an instruction for a corrected left margin of the margin amount M dots at the time.
【請求項4】 前記アライメント設定コマンドを生成す
る前記工程は、前記アライメント情報が、右寄せを指示
するものである場合、前記アライメント設定コマンドを
生成しない請求項2又は3に記載の倒立印刷方法。
4. The inverted printing method according to claim 2, wherein, in the step of generating the alignment setting command, the alignment setting command is not generated when the alignment information indicates right alignment.
【請求項5】 前記アライメント設定コマンドを生成す
る前記工程は、前記アライメント情報が、センタリング
を指示するものである場合、前記アライメント設定コマ
ンドとして、センタリングを指示するものを生成する工
程を含む請求項2〜4の何れか1つに記載の倒立印刷方
法。
5. The step of generating the alignment setting command includes a step of generating, as the alignment setting command, an instruction of centering when the alignment information is an instruction of centering. The inverted printing method according to any one of 4 to 4.
【請求項6】 前記イメージの情報が、イメージの横方
向ドット数の情報を含み、 前記イメージ印刷コマンドを生成する工程が、前記イメ
ージの横方向ドット数及び前記倒立イメージデータに基
づいて、イメージ印刷コマンドを生成する請求項1〜5
の何れか1つに記載の倒立印刷方法。
6. The image information includes information on the number of dots in the horizontal direction of the image, and the step of generating the image print command includes image printing based on the number of dots in the horizontal direction of the image and the inverted image data. 6. A command is generated to generate a command.
The inverted printing method described in any one of 1.
【請求項7】 請求項1〜6の何れか1つに記載の倒立
印刷方法を実行するプログラム。
7. A program for executing the inverted printing method according to claim 1.
【請求項8】 請求項7に記載のプログラムを記録した
コンピュータで読み取り可能な情報記録媒体。
8. A computer-readable information recording medium recording the program according to claim 7.
【請求項9】 イメージを印刷媒体上に倒立してプリン
タで印刷するためのイメージの倒立印刷装置であって、 前記イメージの情報を、その倒立印刷を指示する倒立印
刷要求及びその印刷媒体上におけるアライメントを指示
するアライメント情報と共に受け取る手段と、 前記イメージの情報に基づいて、該イメージを180度
回転させた倒立イメージデータを生成する手段と、 前記アライメント情報の内容に応じて決められた倒立印
刷時のアライメント設定コマンドを生成する手段と、 前記イメージの情報及び前記倒立イメージデータに基づ
いて、イメージ印刷コマンドを生成する手段と、 プリンタに対し、前記イメージ印刷コマンド及び前記ア
ライメント設定コマンドを送出して、前記アライメント
設定コマンドに従うアライメントで前記倒立イメージデ
ータを印刷媒体上に正立印刷せしめる手段と、を備えた
プリンタによるイメージの倒立印刷装置。
9. An inverted image printing apparatus for printing an image on a print medium upside down on a printer, wherein the image information is an inverted print request for instructing the inverted print and the image on the print medium. Means for receiving together with alignment information for instructing alignment, means for generating inverted image data obtained by rotating the image by 180 degrees based on the image information, and inverted printing determined according to the content of the alignment information A means for generating an alignment setting command, a means for generating an image print command based on the image information and the inverted image data, and sending the image print command and the alignment setting command to a printer, Alignment according to the alignment setting command Inverted printing apparatus of an image by the printer which includes means for allowed to erect print an inverted image data on a printing medium.
【請求項10】 前記アライメント設定コマンドを生成
する前記手段は、前記アライメント情報が、マージン量
がNドットである左マージンを指示するものである場
合、前記アライメント設定コマンドとして、下式により
算出されるマージン量Mドットの修正左マージンを指示
するものを生成する工程を含む請求項9に記載の倒立印
刷装置。 M=用紙に印刷できる最大ドット数−(イメージの横方
向ドット数+N)
10. The means for generating the alignment setting command is calculated by the following equation as the alignment setting command when the alignment information indicates a left margin with a margin amount of N dots. The inverted printing apparatus according to claim 9, further comprising a step of generating an instruction for a corrected left margin of a margin amount M dots. M = maximum number of dots that can be printed on paper- (number of horizontal dots in image + N)
【請求項11】 前記アライメント設定コマンドを生成
する前記手段は、前記アライメント情報が、左寄せを指
示するものである場合又は前記アライメント情報が与え
られていない場合、前記アライメント設定コマンドとし
て、N=0としたときにおける前記マージン量Mドット
の修正左マージンを指示するものを生成する手段を含む
請求項10に記載の倒立印刷装置。
11. The means for generating the alignment setting command sets N = 0 as the alignment setting command when the alignment information indicates left alignment or when the alignment information is not given. 11. The inverted printing apparatus according to claim 10, further comprising: a unit that generates a unit that indicates a corrected left margin of the margin amount M dots when the printing is performed.
【請求項12】 前記アライメント設定コマンドを生成
する前記手段は、前記アライメント情報が、右寄せを指
示するものである場合、前記アライメント設定コマンド
を生成しない請求項10又は11に記載の倒立印刷装
置。
12. The inverted printing apparatus according to claim 10, wherein the means for generating the alignment setting command does not generate the alignment setting command when the alignment information indicates right alignment.
【請求項13】 前記アライメント設定コマンドを生成
する前記手段は、前記アライメント情報が、センタリン
グを指示するものである場合、前記アライメント設定コ
マンドとして、センタリングを指示するものを生成する
手段を含む請求項10〜12の何れか1つに記載の倒立
印刷装置。
13. The means for generating the alignment setting command includes means for generating a command for centering as the alignment setting command when the alignment information indicates centering. The inverted printing apparatus according to any one of 1 to 12.
【請求項14】 前記イメージの情報が、イメージの横
方向ドット数の情報を含み、 前記イメージ印刷コマンドを生成する手段が、前記イメ
ージの横方向ドット数及び前記倒立イメージデータに基
づいて、イメージ印刷コマンドを生成する請求項9〜1
3の何れか1つに記載の倒立印刷装置。
14. The image information includes information on the number of dots in the horizontal direction of the image, and the means for generating the image print command prints the image based on the number of dots in the horizontal direction of the image and the inverted image data. A command is generated to generate a command.
3. The inverted printing device according to any one of 3.
JP2001398536A 2001-12-27 2001-12-27 Method for printing inverted image by printer Pending JP2003191564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001398536A JP2003191564A (en) 2001-12-27 2001-12-27 Method for printing inverted image by printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001398536A JP2003191564A (en) 2001-12-27 2001-12-27 Method for printing inverted image by printer

Publications (1)

Publication Number Publication Date
JP2003191564A true JP2003191564A (en) 2003-07-09

Family

ID=27603924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001398536A Pending JP2003191564A (en) 2001-12-27 2001-12-27 Method for printing inverted image by printer

Country Status (1)

Country Link
JP (1) JP2003191564A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007011515A (en) * 2005-06-28 2007-01-18 Star Micronics Co Ltd Print system, control method of print system and program
EP2075686A3 (en) * 2007-12-27 2010-06-30 Seiko Epson Corporation Recording control device and recording control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007011515A (en) * 2005-06-28 2007-01-18 Star Micronics Co Ltd Print system, control method of print system and program
EP2075686A3 (en) * 2007-12-27 2010-06-30 Seiko Epson Corporation Recording control device and recording control method
TWI402181B (en) * 2007-12-27 2013-07-21 Seiko Epson Corp A recording control means, a recording control method, and a computer-readable recording medium
US8619321B2 (en) 2007-12-27 2013-12-31 Seiko Epson Corporation Recording control device and recording control method

Similar Documents

Publication Publication Date Title
JPH08286860A (en) Output control method, its device and its computer program product
JP2003191564A (en) Method for printing inverted image by printer
JPH10181120A (en) Printer and method for processing character image
JP3275992B2 (en) Color printer and color print system
JP2774354B2 (en) INK JET RECORDING APPARATUS AND CONTROL METHOD THEREOF
JP2002211071A (en) Image printer, apparatus and method for processing image, and storage medium
JP3826201B2 (en) Printing device with overlay function
JPH0635637A (en) Printer
JP2010181999A (en) Printing system, printer, and print control program
JPS59201870A (en) Printer
JPH11353139A (en) Computer interface device for stencil printer
JP3327686B2 (en) Output device and output method
JPH10157240A (en) Printing method, printing apparatus, and recording medium
JPH0844513A (en) Print control device and method therefor
JP2002123378A (en) Document printing processing system and recording medium with its program recorded thereon
JPH0983828A (en) Printer
JPH1191185A (en) Printing control method
JP2000289295A (en) Printer apparatus
JPH11338660A (en) Printing system and printing processing method
JPH09207414A (en) Information processing device and method
JPH08132684A (en) Braille block copy output system and braille block copy outputting method
JPS61222758A (en) Contracted letter printing system
JP2000155656A (en) Printer, and control method and system therefor
JPH11249856A (en) Printer system
JPH1170705A (en) Printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041216

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070402

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081125

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090121

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20090121

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090121

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090609