JP2012111216A - Printer and graphics data registration method - Google Patents

Printer and graphics data registration method Download PDF

Info

Publication number
JP2012111216A
JP2012111216A JP2010264681A JP2010264681A JP2012111216A JP 2012111216 A JP2012111216 A JP 2012111216A JP 2010264681 A JP2010264681 A JP 2010264681A JP 2010264681 A JP2010264681 A JP 2010264681A JP 2012111216 A JP2012111216 A JP 2012111216A
Authority
JP
Japan
Prior art keywords
graphics data
data
image resolution
resolution
row
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.)
Withdrawn
Application number
JP2010264681A
Other languages
Japanese (ja)
Inventor
Isao Eguchi
勲 江口
Yuki Takizawa
勇気 滝澤
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 JP2010264681A priority Critical patent/JP2012111216A/en
Publication of JP2012111216A publication Critical patent/JP2012111216A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To propose a graphics data registration method allowing graphics data to be printed, when changing printing resolution of a printer, in a proper state similar to that before the change without modifying a host apparatus for supplying printing data.SOLUTION: The graphics data registration method for a printer includes: a receiving step (ST1) of receiving a registration command of graphics data; a determination step (ST3) of determining whether image resolution of the graphics data included in the received registration command is different from printing resolution of a mounted printing head; a resolution conversion step (ST4) of applying an image resolution conversion process to the graphics data on the basis of the determination results so that the image resolution and the printing resolution are the same; and a registration step (ST5) of storing and holding the graphics data after the application of the image resolution conversion process in a graphics data memory unit 66.

Description

本発明は、POSシステムのレシートプリンター等として用いられるプリンターに関する。更に詳しくは、ロゴマークなどのグラフィックスデータの登録機能を備えたプリンターにおけるグラフィックスデータの登録方法に関する。   The present invention relates to a printer used as a receipt printer of a POS system. More particularly, the present invention relates to a graphics data registration method in a printer having a graphics data registration function such as a logo mark.

店舗等に設置されているPOSシステムにおいては、そのPOS端末に接続されたレシートプリンターによってレシートを印刷して発行するものが知られている。レシートの表面には、店舗名、取引内容などのテキストデータが印刷されると共に、店舗ロゴ、バーコード、クーポン券などのグラフィックスが印刷される。このようなプリンターにおいては、NVRAMなどの不揮発性メモリーからなるグラフィックスデータ登録用のメモリーを備え、このメモリー内に店舗名を示すロゴマーク、クーポン情報などのグラフィックスデータを登録する機能を備えたものがある。   As a POS system installed in a store or the like, there is known a system that prints and issues a receipt by a receipt printer connected to the POS terminal. On the surface of the receipt, text data such as a store name and transaction contents are printed, and graphics such as a store logo, a barcode, and a coupon are printed. Such a printer has a memory for registering graphics data including a nonvolatile memory such as NVRAM, and has a function of registering graphics data such as a logo mark indicating a store name and coupon information in the memory. There is something.

グラフィックスデータの登録機能を備えたプリンターでは、グラフィックスデータを印刷毎にホストコンピューターからプリンターに送信する必要が無く、単に、ホストコンピューターからプリンターに登録されているグラフィックスデータを指定するためのデータを送信するだけでよい。したがって、ホストコンピューターからプリンターへの送信データ量を減らすことができ、これらの間のデータ伝送レートが低い場合であっても、頻繁に印刷される店舗ロゴなどのグラフィックスデータの印刷を効率良く行うことができる。このようなグラフィックスデータ登録機能を備えたプリンターは本願出願人により特許文献1、2において提案されている。   For printers with a graphics data registration function, there is no need to send graphics data from the host computer to the printer each time printing is performed, and data for simply specifying the graphics data registered in the printer from the host computer. Just send. Therefore, the amount of data sent from the host computer to the printer can be reduced, and even when the data transmission rate between them is low, graphics data such as frequently printed store logos can be printed efficiently. be able to. A printer having such a graphics data registration function has been proposed in Patent Documents 1 and 2 by the applicant of the present application.

特開2006−301738号公報JP 2006-301738 A 特開2007−54986号公報JP 2007-54986 A

ここで、POSシステム等においては、POS端末などに接続されているプリンターが交換されて、搭載されている印刷ヘッドの印刷解像度が交換前の機種とは異なるものになることがある。例えば、印刷解像度が180dpi(dot per inch)の印刷ヘッドが搭載されているプリンターが、203dpiの印刷ヘッドが搭載されているプリンターに変更されることがある。この場合には、交換後の印刷ヘッドの解像度が高いので、交換前の180dpiに対応した画像解像度のグラフィックスデータを印刷すると、レシートなどの記録媒体上に印刷されたグラフィックスは一回り小さくなり、見え方が変わってしまう。このため、プリンターの印刷解像度を変更する場合には、ホストコンピューター側にインストールされているグラフィックスデータの作成、登録用のアプリケーションも変更する必要がある。   Here, in a POS system or the like, the printer connected to the POS terminal or the like may be replaced, and the print resolution of the installed print head may be different from the model before the replacement. For example, a printer having a print head having a print resolution of 180 dpi (dot per inch) may be changed to a printer having a 203 dpi print head. In this case, since the resolution of the print head after the replacement is high, if graphics data with an image resolution corresponding to 180 dpi before the replacement is printed, the graphics printed on a recording medium such as a receipt will be slightly smaller. , The way it looks will change. For this reason, when changing the printing resolution of the printer, it is necessary to change the graphics data creation and registration application installed on the host computer side.

したがって、従来においては、グラフィックスデータの登録機能を備えたプリンターの印刷解像度を変更した場合には、それに対応する画像解像度のグラフィックスデータを生成してプリンターに送信して登録しておくことができるようにするために、ホストコンピューター側のアプリケーションも変更する必要があり、プリンターのみの変更では対応できない。   Therefore, conventionally, when the printing resolution of a printer having a graphics data registration function is changed, graphics data having a corresponding image resolution is generated, transmitted to the printer, and registered. In order to be able to do so, it is necessary to also change the application on the host computer side, and it is not possible to respond by changing only the printer.

本発明の課題は、この点に鑑みて、プリンターの印刷解像度を変更した場合に、印刷データ供給側の上位機器に変更を加えることなく、グラフィックスデータを変更前と同様な大きさの状態で印刷可能なグラフィックスデータ登録方法を提案することにある。また、本発明の課題は、かかる新たなグラフィックスデータ登録方法によりグラフィックスデータを登録可能なプリンターを提案することにある。   In view of this point, the problem of the present invention is that when the print resolution of the printer is changed, the graphics data is kept in the same size as before the change without changing the upper device on the print data supply side. The object is to propose a printable graphics data registration method. Another object of the present invention is to propose a printer capable of registering graphics data by such a new graphics data registration method.

上記の課題を解決するために、本発明のプリンターのグラフィックスデータ登録方法は、
グラフィックスデータの登録コマンドを受信する受信工程と、
受信した前記登録コマンドに含まれているグラフィックスデータの画像解像度が、搭載されている印刷ヘッドの印刷解像度と相違するか否かを判別する判別工程と、
判別結果に基づき、前記グラフィックスデータに対して、その画像解像度が前記印刷解像度と同一の解像度、あるいは、前記画像解像度が前記印刷解像度により近い解像度となるように、画像解像度変換処理を施す解像度変換工程と、
前記画像解像度変化処理が施された後の前記グラフィックスデータをグラフィックスデータ記憶部に記憶保持する登録工程とを含むことを特徴としている。
In order to solve the above-described problem, a graphics data registration method for a printer according to the present invention includes:
A reception process for receiving a graphics data registration command;
A determination step of determining whether the image resolution of the graphics data included in the received registration command is different from the print resolution of the mounted print head;
Based on the determination result, resolution conversion is performed on the graphics data so that the image resolution is the same as the print resolution or the image resolution is closer to the print resolution. Process,
And a registration step of storing and holding the graphics data after the image resolution changing process in a graphics data storage unit.

本発明では、ホストコンピューターの側からグラフィックスデータの登録コマンドを受信すると、当該グラフィックスデータの画像解像度が、プリンターの印刷ヘッドの印刷解像度と相違するか否かが判別される。相違する場合には、画像解像度を印刷解像度に一致、あるいはより近い解像度になるように、受信したグラフィックスデータに対して画像解像度変換処理が施され、処理後のグラフィックスデータがグラフィックスデータ記憶部に登録される。この場合、グラフィックスデータに対し、画像解像度と印刷解像度に基づく所定間隔で、グラフィックスデータの一部を挿入したり、又は削除したりすることが好ましい。   In the present invention, when a graphics data registration command is received from the host computer side, it is determined whether or not the image resolution of the graphics data is different from the print resolution of the print head of the printer. If they are different, image resolution conversion processing is performed on the received graphics data so that the image resolution matches or is closer to the printing resolution, and the processed graphics data is stored in the graphics data. Registered in the department. In this case, it is preferable to insert or delete part of the graphics data at a predetermined interval based on the image resolution and the printing resolution.

本発明の方法によれば、プリンターのグラフィックスデータ記憶部には、搭載されている印刷ヘッドの印刷解像度と同一の解像度、あるいは印刷解像度により近い解像度のグラフィックスデータが登録される。よって、グラフィックスデータの画像解像度と印刷ヘッドの印刷解像度の相違に起因して、印刷用紙上に印刷されたグラフィックスのサイズが大幅に変化して見え方が大きく変わってしまうといった弊害を回避できる。また、プリンターの側において、グラフィックスデータの画像解像度を印刷ヘッドの印刷解像度に一致するようにデータ処理を行っているので、ホストコンピューターの側において、プリンター側の印刷解像度に一致する画像解像度のグラフィックスデータを生成してプリンターの側に送信して登録させるためのアプリケーションプログラムを変更する必要がない。   According to the method of the present invention, graphics data having the same resolution as the print resolution of the mounted print head or a resolution closer to the print resolution is registered in the graphics data storage unit of the printer. Therefore, it is possible to avoid the adverse effect that the size of the graphics printed on the printing paper changes significantly due to the difference between the image resolution of the graphics data and the print resolution of the print head. . In addition, since data processing is performed on the printer side so that the image resolution of the graphics data matches the print resolution of the print head, the graphic of the image resolution that matches the print resolution on the printer side on the host computer side. There is no need to change the application program that generates the data and sends it to the printer for registration.

ここで、ホストコンピューターの側から供給されるグラフィックスデータの画像解像度が印刷ヘッドの印刷解像度と同一であることが予め分かっている場合などにおいては、プリンターの側において受信したグラフィックスデータの画像解像度変換処理を行う必要がなく、受信したグラフィックスデータをそのままグラフィックスデータ記憶部に登録すればよい。   Here, when it is known in advance that the image resolution of the graphics data supplied from the host computer side is the same as the print resolution of the print head, the image resolution of the graphics data received on the printer side There is no need to perform conversion processing, and the received graphics data may be registered in the graphics data storage unit as it is.

このような場合に対応できるようにするためには、画像解像度変換処理の要否をディップスイッチ、ソフトスイッチなどの設定手段によって予め設定しておき、前記判別工程に先立って、画像解像度変換処理の要否が設定されている設定手段の状態に基づき、画像解像度変換処理の要否を判別する要否判別工程を実行すればよい。そして、前記設定手段が前記画像解像度変換処理が不要である旨を示す状態の場合には、前記解像度変換工程を実行することなく、前記登録工程において、受信した前記グラフィックスデータをそのまま前記グラフィックスデータ記憶部に登録すればよい。   In order to be able to cope with such a case, whether or not the image resolution conversion process is necessary is set in advance by setting means such as a dip switch and a soft switch, and the image resolution conversion process is performed prior to the determination step. What is necessary is just to perform the necessity determination process which determines the necessity of an image resolution conversion process based on the state of the setting means to which necessity is set. When the setting means indicates that the image resolution conversion process is not required, the received graphics data is directly used as the graphics in the registration step without executing the resolution conversion step. What is necessary is just to register into a data storage part.

また、グラフィックスデータの画像解像度と印刷ヘッドの印刷解像度の差は、一般的には2倍以内である。したがって、前記解像度変換工程の前記画像解像度変換処理として、グラフィックスデータの構成画素数を等間隔で増減する方法を採用することができる。すなわち、M、N、Pを正の整数、前記グラフィックスデータの画像解像度をM(dpi)、前記印刷ヘッドの印刷解像度をN(dpi)とし、Pの値を|M/(N−M)|、または当該除算値の絶対値に最も近い整数値とした場合に次のように行うことができる。   Further, the difference between the image data resolution of the graphics data and the print resolution of the print head is generally within twice. Therefore, as the image resolution conversion process in the resolution conversion step, a method of increasing or decreasing the number of constituent pixels of graphics data at equal intervals can be employed. That is, M, N, and P are positive integers, the image data resolution of the graphics data is M (dpi), the print resolution of the print head is N (dpi), and the value of P is | M / (N−M). | Or the integer value closest to the absolute value of the division value can be performed as follows.

まず、画像解像度よりも印刷解像度が高い場合、すなわち、M<Nの場合には、前記グラフィックスデータに対して、P画素目毎に、当該P画素目のデータをコピーしてP画素目のデータと(P+1)画素目のデータの間に挿入することにより、前記グラフィックスデータのデータ数(画素数)を増加させればよい。逆に、画像解像度よりも印刷解像度が低い場合、すなわち、M>Nの場合には、前記グラフィックスデータに対して、P画素目毎に、当該P画素目のデータを削除することにより、前記グラフィックスデータのデータ数を減少させればよい。M=Nの場合にはグラフィックスデータに対するデータ処理は行わず、受信したグラフィックスデータをそのまま処理後のグラフィックスデータとすればよい。   First, when the printing resolution is higher than the image resolution, that is, when M <N, the P-th pixel data is copied for each P-th pixel with respect to the graphics data, and the P-th pixel is copied. The number of data (number of pixels) of the graphics data may be increased by inserting the data between the data and the (P + 1) th pixel data. On the contrary, when the print resolution is lower than the image resolution, that is, when M> N, by deleting the P-th pixel data for each P-th pixel with respect to the graphics data, What is necessary is just to reduce the number of graphics data. When M = N, data processing for graphics data is not performed, and the received graphics data may be used as processed graphics data as it is.

また、同様な処理をグラフィックスデータの行単位および列単位で行う場合には、M、N、Pを正の整数、前記グラフィックスデータの画像解像度をM(dpi)、前記印刷ヘッドの印刷解像度をN(dpi)とし、Pの値を|M/(N−M)|、または当該除算値の絶対値に最も近い整数値とすると、M<Nの場合には、前記グラフィックスデータの行方向においては、P行目毎に、当該P行目の行データをコピーして、P行目とP+1行目の間に挿入し、前記グラフィックスデータの列方向においては、P列目毎に、当該P列目の列データをコピーして、P列目とP+1列目の間に挿入し、M>Nの場合には、前記グラフィックスデータの行方向においては、P行目毎に、当該P行目の行データを削除し、前記グラフィックスデータの列方向においては、P列目毎に、当該P列目の列データを削除するようにしてもよい。   When similar processing is performed in units of rows and columns of graphics data, M, N, and P are positive integers, the image resolution of the graphics data is M (dpi), and the print resolution of the print head Is N (dpi), and the value of P is | M / (N−M) | or an integer value closest to the absolute value of the division value, when M <N, the line of the graphics data In the direction, for each P row, the row data of the P row is copied and inserted between the P row and the P + 1 row. In the column direction of the graphics data, every P row. , The column data of the P column is copied and inserted between the P column and the P + 1 column. When M> N, in the row direction of the graphics data, for each P row, Delete the row data for the Pth row, In, for each P th column, it may be deleted column data of the P-th column.

次に、本発明は、上記のグラフィックスデータ登録方法により受信したグラフィックスデータの登録を行うプリンターであって、
データの受信部と、
前記受信部で受信したグラフィックスデータを登録するためのグラフィックスデータ記憶部と、
前記グラフィックスデータ記憶部に登録されている登録グラフィックスデータを含む印刷データの印刷を行うための印刷ヘッドと、
前記受信部で受信したデータを解析するデータ解析部と、
前記データがグラフィックスデータの登録コマンドである場合に、当該登録コマンドに含まれているグラフィックスデータの画像解像度が印刷ヘッドの印刷解像度と相違するか否かを判別する解像度判別部と、
前記解像度判別部の判別結果に基づき、前記グラフィックスデータに対して、その画像解像度が前記印刷解像度と同一の解像度、あるいは前記画像解像度が前記印刷解像度により近い解像度となるように、画像解像度変換処理を施す解像度変換部と、
前記画像解像度変換処理が施された後の前記グラフィックスデータを前記グラフィックスデータ記憶部に登録させる登録制御部とを有していることを特徴としている。
Next, the present invention is a printer for registering graphics data received by the above-described graphics data registration method,
A data receiver;
A graphics data storage unit for registering the graphics data received by the receiving unit;
A print head for printing print data including registered graphics data registered in the graphics data storage unit;
A data analysis unit for analyzing data received by the reception unit;
When the data is a graphics data registration command, a resolution determination unit that determines whether the image resolution of the graphics data included in the registration command is different from the print resolution of the print head;
Based on the determination result of the resolution determination unit, an image resolution conversion process is performed on the graphics data so that the image resolution is the same as the print resolution or the image resolution is closer to the print resolution. A resolution conversion unit for applying
And a registration control unit that registers the graphics data after the image resolution conversion processing in the graphics data storage unit.

ここで、前記画像解像度変換処理の要否を設定する設定手段を配置し、設定手段によって前記画像解像度変換処理が不要であることが設定されている場合には、前記登録制御部は受信した前記グラフィックスデータをそのまま前記グラフィックスデータ記憶部に登録するようにしてもよい。   Here, when setting means for setting whether or not the image resolution conversion process is necessary is arranged, and it is set by the setting means that the image resolution conversion process is unnecessary, the registration control unit receives the received Graphics data may be registered in the graphics data storage unit as it is.

本発明では、プリンターの側において、グラフィックスデータの画像解像度を印刷ヘッドの印刷解像度に一致する方向にデータの増減処理を行うようにしている。したがって、印刷解像度の異なるプリンターに変更した場合に、ホストコンピューターの側において、グラフィックスデータを生成してプリンターの側に送信して登録させるためのアプリケーションプログラムを変更して、グラフィックスデータの画像解像度を印刷解像度に一致させる必要がない。よって、異なる印刷解像度のプリンターへの交換作業が簡単になる。   In the present invention, on the printer side, data increase / decrease processing is performed in the direction in which the image resolution of graphics data matches the print resolution of the print head. Therefore, when the printer is changed to a printer with a different print resolution, the image data resolution of the graphics data is changed on the host computer side by changing the application program for generating and sending the graphics data to the printer side for registration. Need not match the print resolution. Therefore, it is easy to replace the printer with a printer having a different print resolution.

本発明を適用したPOSシステムのシステム構成図である。1 is a system configuration diagram of a POS system to which the present invention is applied. レシートプリンターの制御部の機能ブロック図である。It is a functional block diagram of the control part of a receipt printer. レシートプリンターのグラフィックスデータ登録動作のフローチャートである。It is a flowchart of the graphics data registration operation | movement of a receipt printer. 画像解像度変換処理の一例を示す説明図である。It is explanatory drawing which shows an example of an image resolution conversion process.

以下に、図面を参照して、本発明をコンビニエンス・ストア等の店舗にて利用されるPOSシステムのPOS端末に接続されたレシートプリンターに適用した場合の実施の形態を説明する。   Hereinafter, an embodiment in which the present invention is applied to a receipt printer connected to a POS terminal of a POS system used in a store such as a convenience store will be described with reference to the drawings.

図1に示すように、本実施の形態のPOSシステム1は、システム全体を統括するPOSサーバー2と、ここに通信接続されている各POS端末装置3と、各POS端末装置3に接続されているレシートプリンター4とを備えている。図においては1組のPOS端末装置3およびレシートプリンター4のみを示してある。   As shown in FIG. 1, a POS system 1 according to the present embodiment is connected to a POS server 2 that controls the entire system, each POS terminal device 3 that is communicatively connected thereto, and each POS terminal device 3. The receipt printer 4 is provided. In the figure, only one set of the POS terminal device 3 and the receipt printer 4 are shown.

POSサーバー2は、CPU21と、ROM22、RAM23等のメモリーとを有し、RAM23内には、商品データ(商品コード、商品名、金額、在庫)、広告データなどの各記憶領域が含まれており、CPU21は、POS端末装置3の側からの入力情報に基づいて、商品コード、商品名、金額に関する情報を抽出し、POS端末装置3の側での表示、およびレシートプリンター4での決済情報の印刷に用いる商品データを生成する。   The POS server 2 includes a CPU 21 and memories such as a ROM 22 and a RAM 23. The RAM 23 includes storage areas such as product data (product code, product name, price, inventory) and advertisement data. The CPU 21 extracts information on the product code, the product name, and the amount of money based on the input information from the POS terminal device 3 side, displays the information on the POS terminal device 3 side, and the settlement information on the receipt printer 4. Product data used for printing is generated.

POSアプリケーション31およびプリンタードライバー32が搭載されているPOS端末装置3は、オペレーターによるキーボード33からの入力情報、バーコードリーダー34による商品バーコードの読み取り情報に基づき、商品等に関する情報を取得する。また、カードリーダー35によって顧客のクレジットカードや会員カードを読み取り、これらを入力情報としてPOSサーバー2に送信して、POSサーバー2から表示、印刷用の商品データを取得する。また、POSサーバー2から取得した商品データを基に生成した商品情報をディスプレイ36に表示する。   The POS terminal device 3 on which the POS application 31 and the printer driver 32 are installed acquires information on the product and the like based on information input from the keyboard 33 by the operator and information on the product barcode read by the barcode reader 34. Further, the customer's credit card or membership card is read by the card reader 35, and these are transmitted as input information to the POS server 2 to obtain product data for display and printing from the POS server 2. Further, product information generated based on the product data acquired from the POS server 2 is displayed on the display 36.

次に、レシートプリンター4はサーマルヘッド方式のレシートプリンターであり、POS端末装置3から各種制御コマンドや印刷データを受信するデータ受信部41、搬送部42、印刷部43、切断部44、これらの各部42〜44を駆動する駆動部45、およびレシートプリンター4の全体を制御する制御部46等を備えている。レシートプリンター4は、例えばロール紙47から繰り出される連続紙である印刷用紙47aに商品決済情報などを印刷して、一定の長さのレシート48として発行する。レシートプリンター4は、サーマルヘッド方式以外の印刷ヘッドを備えているもの、例えば、インクジェットヘッドを備えたものであってもよいことは勿論である。   Next, the receipt printer 4 is a thermal head type receipt printer, which receives various control commands and print data from the POS terminal device 3, a data receiving unit 41, a conveying unit 42, a printing unit 43, a cutting unit 44, and each of these units. The drive part 45 which drives 42-44, the control part 46 etc. which control the receipt printer 4 whole are provided. The receipt printer 4 prints merchandise settlement information and the like on a printing paper 47 a that is a continuous paper fed out of, for example, the roll paper 47 and issues it as a receipt 48 of a certain length. Of course, the receipt printer 4 may be provided with a print head other than the thermal head method, for example, an ink jet head.

レシートプリンター4はグラフィックスデータの登録機能を備えたプリンターである。登録されているグラフィックスデータは、キーコードと呼ばれる識別子がそれぞれ付与されており、各グラフィックスデータにキーコードが対応付けした形態で記憶保持されている。POS端末装置3などの上位機器から、キーコードを含む所定の印刷指示を表す印刷コマンドを受信すると、受信したキーコードに対応するグラフィックスデータを印刷用紙47a上に印刷するようになっている。   The receipt printer 4 is a printer having a graphics data registration function. The registered graphics data is assigned an identifier called a key code, and is stored and held in a form in which the key code is associated with each graphics data. When a print command representing a predetermined print instruction including a key code is received from a host device such as the POS terminal device 3, graphics data corresponding to the received key code is printed on the print paper 47a.

レシートプリンター4に対するグラフィックスデータの登録は、画像登録装置5によって行うことができる。画像登録装置5はパーソナルコンピューターなどのレシートプリンター4に対するホストコンピューターである。図1においては、画像登録装置5をPOS端末装置3とは別個の装置として表示してあるが、POS端末装置3を画像登録装置5として機能させることもできる。   The registration of graphics data to the receipt printer 4 can be performed by the image registration device 5. The image registration device 5 is a host computer for the receipt printer 4 such as a personal computer. In FIG. 1, the image registration device 5 is displayed as a device separate from the POS terminal device 3, but the POS terminal device 3 can also function as the image registration device 5.

画像登録装置5は、グラフィックスデータをレシートプリンター4に登録する画像登録アプリケーション51と、レシートプリンター4に登録されたグラフィックスデータに関連する各種印刷設定を行う設定値登録アプリケーション52の2つのアプリケーションがインストールされている。これら2つのアプリケーション51、52は、ユーザーの操作に応じて、レシートプリンター4へのグラフィックスデータの登録設定を行う。   The image registration apparatus 5 includes two applications: an image registration application 51 that registers graphics data in the receipt printer 4 and a setting value registration application 52 that performs various print settings related to the graphics data registered in the receipt printer 4. Installed. These two applications 51 and 52 perform settings for registering graphics data in the receipt printer 4 in accordance with user operations.

画像登録アプリケーション51は、レシートプリンター4に登録するグラフィックスデータを、ベースとなるグラフィックスファイルを基に作成し、キーコードを生成してレシートプリンター4へグラフィックスデータをキーコードと共に登録する。これにより、レシートプリンター4では、グラフィックスデータが、対応するキーコードと関連付けされて登録される。   The image registration application 51 creates graphics data to be registered in the receipt printer 4 based on a graphics file as a base, generates a key code, and registers the graphics data in the receipt printer 4 together with the key code. Thereby, in the receipt printer 4, the graphics data is registered in association with the corresponding key code.

一方、設定値登録アプリケーション52は、レシートプリンター4に登録されたグラフィックスデータにトップロゴ、ボトムロゴ、キーワードロゴ等の印刷に関連する追加設定値を設定する。例えば、あるグラフィックスデータが設定値登録アプリケーション52によりトップロゴとして設定されると、POS端末装置3(ホストコンピューター)がキーコードを直接指定せずとも、トップロゴを印刷する条件を満たす場合には、レシートプリンター4はトップロゴに割り当てられたグラフィックスデータを連続紙47a上に印刷することができる。これにより、POS端末装置3(ホストコンピューター)側の他のアプリケーションは、キーコードを直接意識することなくレシートプリンター4にグラフィックスデータの印刷を行わせることができる。このような画像登録装置5は特許文献1、2に記載されているように公知であるので詳細な説明は省略する。   On the other hand, the setting value registration application 52 sets additional setting values related to printing such as a top logo, a bottom logo, and a keyword logo in the graphics data registered in the receipt printer 4. For example, when certain graphics data is set as a top logo by the setting value registration application 52, the POS terminal device 3 (host computer) satisfies the condition for printing the top logo without directly specifying the key code. The receipt printer 4 can print the graphics data assigned to the top logo on the continuous paper 47a. As a result, another application on the POS terminal device 3 (host computer) side can cause the receipt printer 4 to print graphics data without directly being aware of the key code. Since such an image registration apparatus 5 is known as described in Patent Documents 1 and 2, detailed description thereof is omitted.

図2はレシートプリンター4の制御部46を中心に実現される主要機能を示す機能ブロック図である。POS端末装置3のホストコンピューターの側から送信されたデータは、データ受信部41を介して、受信バッファー61に一時的に格納される。受信バッファー61に格納されたデータは、コマンド解析部62において解析される。   FIG. 2 is a functional block diagram showing main functions realized mainly by the control unit 46 of the receipt printer 4. Data transmitted from the host computer side of the POS terminal device 3 is temporarily stored in the reception buffer 61 via the data reception unit 41. Data stored in the reception buffer 61 is analyzed by the command analysis unit 62.

受信したデータが、POS端末装置3の側から供給された印刷データD1である場合には、印刷データD1は、印刷データ展開部63において、キャラクタージェネレーター64、バーコードジェネレーター65、ロゴなどのグラフィックスデータ記憶部66、ビットマップデコーダー67に基づいてデータ展開されて、ビットマップ展開データが生成される。生成されたビットマップ展開データはプリントバッファー68に展開される。プリントバッファー68に展開されたデータが印刷部43の印刷ヘッド69によって印刷用紙47aに印刷されてレシート48が作成される。   If the received data is the print data D1 supplied from the POS terminal device 3 side, the print data D1 is processed by the print data development unit 63 in the form of graphics such as a character generator 64, a barcode generator 65, and a logo. Data is expanded based on the data storage unit 66 and the bitmap decoder 67, and bitmap expanded data is generated. The generated bitmap development data is developed in the print buffer 68. The data developed in the print buffer 68 is printed on the printing paper 47 a by the print head 69 of the printing unit 43 to create a receipt 48.

一方、受信したデータがグラフィックスデータの登録コマンドD2の場合、例えば、画像登録装置5からグラフィックスデータの登録コマンドを受信した場合にはグラフィックスデータがグラフィックスデータ記憶部66に登録される。登録に先立って、判別部71において、受信した登録コマンドに含まれているグラフィックスデータの画像解像度が印刷ヘッド69の印刷解像度と相違するか否かが判別される。印刷ヘッド69の印刷解像度は、製造時にレシートプリンター4のメモリーに記憶されている。画像解像度変換処理部72では、この判別結果に基づき、グラフィックスデータに対して画像解像度変換処理を施して、その画像解像度を印刷解像度に一致させる。登録制御部73は、画像解像度変換処理後のグラフィックスデータを、登録コマンドに含まれているキーコードに対応付けした形態でグラフィックスデータ記憶部66に記憶保持する登録処理を行う。   On the other hand, when the received data is a graphics data registration command D 2, for example, when a graphics data registration command is received from the image registration device 5, the graphics data is registered in the graphics data storage unit 66. Prior to registration, the determination unit 71 determines whether the image resolution of the graphics data included in the received registration command is different from the print resolution of the print head 69. The print resolution of the print head 69 is stored in the memory of the receipt printer 4 at the time of manufacture. Based on the determination result, the image resolution conversion processing unit 72 performs an image resolution conversion process on the graphics data so that the image resolution matches the print resolution. The registration control unit 73 performs a registration process of storing and holding the graphics data after the image resolution conversion processing in the graphics data storage unit 66 in a form associated with the key code included in the registration command.

ここで、本例のレシートプリンター4においては、グラフィックスデータの登録処理において、画像解像度を印刷解像度に一致させるための変換処理の要否を設定するための設定スイッチとして機能するディップスイッチ74が備わっている。ディップスイッチ以外の設定手段、例えばレシートプリンター4のメモリーに設定されるソフトスイッチを備えていてもよい。   Here, the receipt printer 4 of this example includes a dip switch 74 that functions as a setting switch for setting whether or not conversion processing is required for matching the image resolution to the printing resolution in the graphics data registration processing. ing. Setting means other than the dip switch, for example, a soft switch set in the memory of the receipt printer 4 may be provided.

登録制御部73は、ディップスイッチ74によって変換処理が必要であることが設定されている場合には、画像解像度が印刷解像度に一致するように、受信したグラフィックスデータのデータ量の増減処理を行った後にグラフィックスデータ記憶部66に登録する処理を行う。ディップスイッチ74によって変換処理が不要であることが設定されている場合には、登録制御部73は、判別部71、画像解像度変換処理部72を不能状態に切り替え、受信したグラフィックスデータをそのままグラフィックスデータ記憶部66に登録する処理を行う。換言すると、画像解像度変換処理を行うことなく、受信したグラフィックスデータをそのままグラフィックスデータ記憶部66に登録する処理を行う。   When it is set that the conversion process is required by the dip switch 74, the registration control unit 73 performs a process of increasing / decreasing the amount of received graphics data so that the image resolution matches the print resolution. After that, a process of registering in the graphics data storage unit 66 is performed. If it is set by the dip switch 74 that conversion processing is not required, the registration control unit 73 switches the determination unit 71 and the image resolution conversion processing unit 72 to the disabled state, and the received graphics data is displayed as graphics. A process of registering in the data storage unit 66 is performed. In other words, the received graphics data is directly registered in the graphics data storage unit 66 without performing the image resolution conversion process.

図3はレシートプリンター4におけるグラフィックスデータの登録処理の一例を示す概略フローチャートである。この図を参照して処理の流れを纏めて説明すると、レシートプリンター4において、ホスト側、例えば画像登録装置5の側からグラフィックスデータの登録コマンドを受信すると(ステップST1:受信工程)、ディップスイッチ74の状態に基づき画像解像度変換処理の要否を確認する(ステップST2:要否判定工程)。ディップスイッチ74が、画像解像度変換処理が不要である旨を表す状態に切り替わっている場合には、受信したグラフィックスデータをそのまま、キーコードを対応付けした形態でグラフィックスデータ記憶部66に登録する(ステップST5:登録工程)。   FIG. 3 is a schematic flowchart showing an example of a graphics data registration process in the receipt printer 4. The process flow will be described with reference to this figure. When the receipt printer 4 receives a graphics data registration command from the host side, for example, the image registration device 5 side (step ST1: reception process), the DIP switch. Whether or not the image resolution conversion processing is necessary is confirmed based on the state 74 (step ST2: necessity determination step). When the dip switch 74 has been switched to a state indicating that the image resolution conversion process is unnecessary, the received graphics data is registered in the graphics data storage unit 66 in a form associated with the key code as it is. (Step ST5: Registration process).

ディップスイッチ74が、画像解像度変換処理が必要である旨を表す状態に切り替わっている場合には、受信した登録コマンドの画像解像度が、搭載されている印刷ヘッド69の印刷解像度と相違するか否かを判別する(ステップST3:判別工程)。判別結果に基づき受信したグラフィックスデータに画像解像度変換処理を施す(ステップST4:解像度変換処理工程)。   If the dip switch 74 has been switched to a state indicating that image resolution conversion processing is necessary, whether or not the image resolution of the received registration command is different from the print resolution of the installed print head 69. Is discriminated (step ST3: discrimination step). Image resolution conversion processing is performed on the received graphics data based on the determination result (step ST4: resolution conversion processing step).

画像解像度変換処理では、画像解像度が印刷解像度よりも低い場合には、グラフィックスデータに対して、画像解像度が印刷解像度に対応するデータ量となるようにデータ量を増加するデータ処理を施す(ステップST4−1)。逆に、画像解像度が印刷解像度よりも高い場合には、グラフィックスデータに対して、画像解像度が印刷解像度に対応するデータ量となるように、データ量を減らすデータ処理を施す(ステップST4−2)。双方の解像度が同一の場合には、グラフィックスデータに対するデータ量の増減処理は行わない(ステップST4−3)。この後は、画像解像度を印刷解像度に一致させたグラフィックスデータをキーコードと対応付けした形態で、グラフィックスデータ記憶部66に登録する(ステップST5:登録工程)。   In the image resolution conversion process, when the image resolution is lower than the print resolution, the graphics data is subjected to data processing for increasing the data amount so that the image resolution becomes the data amount corresponding to the print resolution (step ST4-1). On the contrary, when the image resolution is higher than the print resolution, data processing for reducing the data amount is performed on the graphics data so that the image resolution becomes a data amount corresponding to the print resolution (step ST4-2). ). If both the resolutions are the same, the data amount increase / decrease process for the graphics data is not performed (step ST4-3). Thereafter, the graphics data having the image resolution matched to the printing resolution is registered in the graphics data storage unit 66 in a form associated with the key code (step ST5: registration step).

ここで、本例の画像解像度変換処理では次のようにして、受信したグラフィックスデータを行方向および列方向に増減している。まず、M、N、Pを正の整数、グラフィックスデータG1の画像解像度をM(dpi)、印刷ヘッド69の印刷解像度をN(dpi)とし、Pの値を|M/(N−M)|、または当該除算値の絶対値に最も近い整数値とする。画像解像度の方が低い場合、すなわち、M<Nの場合には(図3のステップST4−1)、グラフィックスデータG1の行方向においては、P行目毎に、当該P行目の行データをコピーして、P行目とP+1行目の間に挿入し、グラフィックスデータG1の列方向においては、P列目毎に、当該P列目の列データをコピーして、P列目とP+1列目の間に挿入して、データ量を増加させるようにしている。   Here, in the image resolution conversion processing of this example, the received graphics data is increased or decreased in the row direction and the column direction as follows. First, M, N, and P are positive integers, the image resolution of the graphics data G1 is M (dpi), the print resolution of the print head 69 is N (dpi), and the value of P is | M / (N−M). | Or an integer value closest to the absolute value of the division value. When the image resolution is lower, that is, when M <N (step ST4-1 in FIG. 3), in the row direction of the graphics data G1, for each P row, the row data of the P row. Is inserted between the Pth row and the (P + 1) th row, and in the column direction of the graphics data G1, the column data of the Pth column is copied for each Pth column, The data amount is increased by inserting it between the P + 1th column.

逆に、画像解像度の方が高い場合、すなわち、M>Nの場合には(図3のステップST4−2)、グラフィックスデータG1の行方向においては、P行目毎に、当該P行目の行データを削除し、グラフィックスデータG1の列方向においては、P列目毎に、当該P列目の列データを削除して、データ量を減少させるようにしている。   On the contrary, when the image resolution is higher, that is, when M> N (step ST4-2 in FIG. 3), in the row direction of the graphics data G1, the P-th row In the column direction of the graphics data G1, the P-th column data is deleted for each P-th column to reduce the data amount.

図4を参照して、受信したグラフィックスデータの画像解像度が180dpiであり、印刷解像度が203dpiである場合におけるグラフィックスデータの画像解像度変換処理の一例を説明する。図4(a)は画像解像度が180dpiのグラフィックスデータG1を示す説明図であり、図4(b)は当該グラフィックスデータG1を画像解像度が203dpiのグラフィックスデータG2に変換した後の状態を示す説明図である。   With reference to FIG. 4, an example of graphics data image resolution conversion processing when the received graphics data has an image resolution of 180 dpi and a print resolution of 203 dpi will be described. FIG. 4A is an explanatory diagram showing graphics data G1 with an image resolution of 180 dpi, and FIG. 4B shows a state after the graphics data G1 is converted into graphics data G2 with an image resolution of 203 dpi. It is explanatory drawing shown.

本例では、M=180、N=203であり、M/(N−M)=180/(203−180)=7.8・・・であるのでP=8である。したがって、図4(b)において網掛け部分で示すように、グラフィックスデータの行方向においては、8行目毎に、行データX8、X16、X24、X32をコピーして、8、16、24、32行目の次の行として挿入している。同様に、グラフィックスデータG1の列方向においては、8列目毎に、列データY8、Y16、Y24、Y32をコピーして、これらの次の行として挿入している。この結果、画像解像度が180dpiのグラフィックスデータが、画像解像度が203dpiに相当するデータ量のグラフィックスデータG2としてグラフィックスデータ記憶部66に登録される。   In this example, M = 180, N = 203, and M / (N−M) = 180 / (203−180) = 7.8, so P = 8. Therefore, as indicated by the shaded portion in FIG. 4B, in the row direction of the graphics data, the row data X8, X16, X24, and X32 are copied every eighth row, and 8, 16, 24 , Is inserted as the next line of the 32nd line. Similarly, in the column direction of the graphics data G1, the column data Y8, Y16, Y24, and Y32 are copied and inserted as the next row for every eighth column. As a result, graphics data having an image resolution of 180 dpi is registered in the graphics data storage unit 66 as graphics data G2 having a data amount corresponding to an image resolution of 203 dpi.

上記の画像解像度変換処理では、グラフィックスデータの行単位および列単位で増減させるようにしているが、データの先頭から等画素毎に画素データの挿入、削除を行うようにしてもよい。すなわち、解像度変換工程の画像解像度変換処理は、M、N、Pを正の整数、グラフィックスデータの画像解像度をM(dpi)、印刷ヘッドの印刷解像度をN(dpi)とし、Pの値を|M/(N−M)|、または当該除算値の絶対値に最も近い整数値とすると、M<Nの場合には、グラフィックスデータに対して、P画素目毎に、当該P画素目のデータをコピーしてP画素目のデータと(P+1)画素目のデータの間に挿入することにより、グラフィックスデータのデータ数を増加させ、M>Nの場合には、グラフィックスデータに対して、P画素目毎に、当該P画素目のデータを削除することにより、グラフィックスデータのデータ数を減少させるようにしてもよい。   In the above-described image resolution conversion processing, the graphics data is increased or decreased in units of rows and columns. However, pixel data may be inserted or deleted for every equal pixel from the top of the data. That is, in the image resolution conversion process of the resolution conversion process, M, N, and P are positive integers, the image resolution of graphics data is M (dpi), the print resolution of the print head is N (dpi), and the value of P is | M / (N−M) |, or an integer value closest to the absolute value of the division value, when M <N, for each P-th pixel in the graphics data, the P-th pixel Is copied and inserted between the P pixel data and the (P + 1) pixel data, thereby increasing the number of data of the graphics data. Thus, the number of graphics data may be reduced by deleting the P-th pixel data for each P-th pixel.

上記の変換方法では、画像解像度Mが印刷解像度Nの2倍を超える場合、1/2未満の場合には、画像解像度Mを印刷解像度Nに完全に一致させることができない。しかしながら、双方の解像度が2倍以上異なることは殆どないので、本例の方法を採用すれば、複雑なデータの伸長あるいは圧縮処理を行う必要なく、印刷されたグラフィックスの大きさが大幅に変化して見え方が大きく変わってしまうという弊害を実質的に回避できる。なお、画像解像度変換処理の方法として、上記の方法以外の各種の画像解像度変換処理を用いてもよいことは勿論である。   In the above conversion method, when the image resolution M exceeds twice the print resolution N, or less than ½, the image resolution M cannot be completely matched with the print resolution N. However, since the resolutions of both are rarely different by a factor of two or more, if the method of this example is adopted, there is no need to perform complicated data decompression or compression processing, and the size of the printed graphics changes significantly. Thus, it is possible to substantially avoid the adverse effect that the appearance changes greatly. As a matter of course, various image resolution conversion processes other than the above-described method may be used as the image resolution conversion process.

以上説明したように、レシートプリンター4では、グラフィックスデータ記憶部66には、受信したグラフィックスデータの画像解像度が印刷ヘッド69の印刷解像度とは異なっている場合であっても、印刷解像度と同一となるように画像解像度が変換された後のグラフィックスデータが登録される。よって、印刷ヘッド69の印刷解像度とは異なる画像解像度のグラフィックスデータが印刷されてしまうことがない。また、レシートプリンター4の印刷解像度を変更した場合に、ホストコンピューター側の変更、すなわち、画像登録アプリケーションなどを変更する必要がない。よって、POS端末装置3に接続されているレシートプリンター4を、印刷解像度の異なるレシートプリンターに交換する作業を簡単に行うことができる。   As described above, in the receipt printer 4, the graphics data storage unit 66 has the same print resolution as that of the received graphics data even when the image resolution of the print head 69 is different. Graphics data after image resolution conversion is registered so that Therefore, graphics data having an image resolution different from the print resolution of the print head 69 is not printed. Further, when the printing resolution of the receipt printer 4 is changed, there is no need to change the host computer side, that is, the image registration application. Therefore, the operation of replacing the receipt printer 4 connected to the POS terminal device 3 with a receipt printer having a different print resolution can be easily performed.

なお、上記の例は本発明をPOSシステムのPOS端末に用いるレシートプリンターに適用した場合のものであるが、グラフィックスデータの登録機能を備えたプリンターであれば、本発明を適用可能なことは勿論である。   In the above example, the present invention is applied to a receipt printer used for a POS terminal of a POS system. However, the present invention can be applied to any printer having a graphics data registration function. Of course.

また、上記の例ではグラフィックスデータの例で説明をしたが、グラフィックスデータで構成されるフォントデータや、フォントデータを含むグラフィックスデータで構成されるフォントデータなどにも適用が可能である。外字登録などをする際にも適用が可能である。   In the above example, the example of graphics data has been described. However, the present invention can also be applied to font data composed of graphics data, font data composed of graphics data including font data, and the like. It can also be applied when registering external characters.

1 POSシステム、2 POSサーバー、3 POS端末装置、4 レシートプリンター、5 画像登録装置、21 CPU、22 ROM、23 RAM、31 POSアプリケーション、32 プリンタードライバー、33 キーボード、34 バーコードリーダー、35 カードリーダー、36 ディスプレイ、41 データ受信部、42 搬送部、43 印刷部、44 切断部、45 駆動部、46 制御部、47 ロール紙、47a 連続紙、48 レシート、51 画像登録アプリケーション、52 設定値登録アプリケーション、61 受信バッファー、62 コマンド解析部、63 印刷データ展開部、64 キャラクタージェネレーター、65 バーコードジェネレーター、66 グラフィックスデータ記憶部、67 ビットマップデコーダー、68 プリントバッファー、69 印刷ヘッド、71 判別部、72 画像解像度変換処理部、73 登録制御部、74 ディップスイッチ、D1 印刷データ、D2 登録コマンド、G1,G2 グラフィックスデータ 1 POS system, 2 POS server, 3 POS terminal device, 4 receipt printer, 5 image registration device, 21 CPU, 22 ROM, 23 RAM, 31 POS application, 32 printer driver, 33 keyboard, 34 barcode reader, 35 card reader , 36 display, 41 data receiving unit, 42 transport unit, 43 printing unit, 44 cutting unit, 45 drive unit, 46 control unit, 47 roll paper, 47a continuous paper, 48 receipt, 51 image registration application, 52 set value registration application , 61 Reception buffer, 62 Command analysis unit, 63 Print data development unit, 64 Character generator, 65 Bar code generator, 66 Graphics data storage unit, 67 Bitmap decoder , 68 Print buffer, 69 Print head, 71 Discrimination unit, 72 Image resolution conversion processing unit, 73 Registration control unit, 74 Dip switch, D1 print data, D2 registration command, G1, G2 graphics data

Claims (8)

グラフィックスデータの登録コマンドを受信する受信工程と、
受信した前記登録コマンドに含まれているグラフィックスデータの画像解像度が、搭載されている印刷ヘッドの印刷解像度と相違するか否かを判別する判別工程と、
前記判別工程の判別結果に基づき、前記グラフィックスデータに対して、その画像解像度が前記印刷解像度と同一の解像度、あるいは、前記画像解像度が前記印刷解像度により近い解像度となるように、画像解像度変換処理を施す解像度変換工程と、
前記画像解像度変換処理が施された後の前記グラフィックスデータをグラフィックスデータ記憶部に記憶保持する登録工程とを含むことを特徴とするプリンターのグラフィックスデータ登録方法。
A reception process for receiving a graphics data registration command;
A determination step of determining whether the image resolution of the graphics data included in the received registration command is different from the print resolution of the mounted print head;
Based on the determination result of the determination step, an image resolution conversion process is performed on the graphics data so that the image resolution is the same as the print resolution or the image resolution is closer to the print resolution. A resolution conversion process,
A graphics data registration method for a printer, comprising: a registration step of storing and holding the graphics data after the image resolution conversion processing in a graphics data storage unit.
請求項1において、
前記判別工程に先立って、前記画像解像度変換処理の要否を設定可能な設定手段の状態に基づき、これらの工程の要否を判別する要否判別工程を有し、
前記設定手段が前記画像解像度変換処理が不要である旨を示す状態の場合には、前記判別工程、前記解像度変換工程を実行することなく、前記登録工程において、受信した前記グラフィックスデータをそのまま前記グラフィックスデータ記憶部に登録することを特徴とするプリンターのグラフィックスデータ登録方法。
In claim 1,
Prior to the determination step, based on the state of the setting means capable of setting whether or not the image resolution conversion processing is necessary, a necessity determination step for determining whether or not these steps are necessary,
When the setting means is in a state indicating that the image resolution conversion process is not necessary, the received graphics data is directly used in the registration step without executing the determination step and the resolution conversion step. A graphics data registration method for a printer, wherein the graphics data is registered in a graphics data storage unit.
請求項1または2において、
前記解像度変換工程の前記画像解像度変換処理は、
M、N、Pを正の整数、前記グラフィックスデータの画像解像度をM(dpi)、前記印刷ヘッドの印刷解像度をN(dpi)とし、Pの値を|M/(N−M)|、または当該除算値の絶対値に最も近い整数値とすると、
M<Nの場合には、前記グラフィックスデータに対して、P画素目毎に、当該P画素目のデータをコピーしてP画素目のデータと(P+1)画素目のデータの間に挿入することにより、前記グラフィックスデータのデータ数を増加させ、
M>Nの場合には、前記グラフィックスデータに対して、P画素目毎に、当該P画素目のデータを削除することにより、前記グラフィックスデータのデータ数を減少させることを特徴とするプリンターのグラフィックスデータ登録方法。
In claim 1 or 2,
The image resolution conversion process of the resolution conversion step is
M, N, and P are positive integers, the image resolution of the graphics data is M (dpi), the print resolution of the print head is N (dpi), and the value of P is | M / (N−M) | Or if it is the integer value closest to the absolute value of the division value,
When M <N, for each P pixel, the P pixel data is copied and inserted between the P pixel data and the (P + 1) pixel data for the graphics data. By increasing the number of graphics data,
In the case of M> N, the number of data of the graphics data is reduced by deleting the data of the P pixel for each P pixel of the graphics data. Graphics data registration method.
請求項1または2において、
前記解像度変換工程の前記画像解像度変換処理は、
M、N、Pを正の整数、前記グラフィックスデータの画像解像度をM(dpi)、前記印刷ヘッドの印刷解像度をN(dpi)とし、Pの値を|M/(N−M)|、または当該除算値の絶対値に最も近い整数値とすると、
M<Nの場合には、前記グラフィックスデータの行方向においては、P行目毎に、当該P行目の行データをコピーして、P行目とP+1行目の間に挿入し、前記グラフィックスデータの列方向においては、P列目毎に、当該P列目の列データをコピーして、P列目とP+1列目の間に挿入し、
M>Nの場合には、前記グラフィックスデータの行方向においては、P行目毎に、当該P行目の行データを削除し、前記グラフィックスデータの列方向においては、P列目毎に、当該P列目の列データを削除することを特徴とするプリンターのグラフィックスデータ登録方法。
In claim 1 or 2,
The image resolution conversion process of the resolution conversion step is
M, N, and P are positive integers, the image resolution of the graphics data is M (dpi), the print resolution of the print head is N (dpi), and the value of P is | M / (N−M) | Or if it is the integer value closest to the absolute value of the division value,
In the case of M <N, in the row direction of the graphics data, for each P row, the P row data is copied and inserted between the P row and the P + 1 row, In the column direction of the graphics data, for each P column, copy the column data of the P column and insert it between the P column and the P + 1 column,
In the case of M> N, the row data of the P row is deleted for every P row in the row direction of the graphics data, and every P row in the column direction of the graphics data. A method for registering graphics data of a printer, wherein the column data of the Pth column is deleted.
データの受信部と、
前記受信部を介して受信したグラフィックスデータを登録するためのグラフィックスデータ記憶部と、
前記グラフィックスデータ記憶部に登録されている登録グラフィックスデータを含むデータの印刷を行うための印刷ヘッドと、
前記受信部で受信したデータを解析するデータ解析部と、
前記データが前記グラフィックスデータの登録コマンドである場合に、当該登録コマンドに含まれている前記グラフィックスデータの画像解像度が前記印刷ヘッドの印刷解像度と相違するか否かを判別する解像度判別部と、
前記解像度判別部の判別結果に基づき、前記グラフィックスデータに対して、その画像解像度が前記印刷解像度と同一の解像度、あるいは、前記画像解像度が前記印刷解像度により近い解像度となるように、画像解像度変換処理を施す解像度変換部と、
前記画像解像度変換処理が施された後の前記グラフィックスデータを前記グラフィックスデータ記憶部に登録させる登録制御部とを有していることを特徴とするプリンター。
A data receiver;
A graphics data storage unit for registering graphics data received via the receiving unit;
A print head for printing data including registered graphics data registered in the graphics data storage unit;
A data analysis unit for analyzing data received by the reception unit;
A resolution determining unit configured to determine whether or not an image resolution of the graphics data included in the registration command is different from a print resolution of the print head when the data is a graphics data registration command; ,
Based on the determination result of the resolution determination unit, image resolution conversion is performed on the graphics data so that the image resolution is the same as the print resolution or the image resolution is closer to the print resolution. A resolution conversion unit for processing,
A printer comprising: a registration control unit that registers the graphics data after the image resolution conversion processing in the graphics data storage unit.
請求項5において、
前記画像解像度変換処理の要否を設定する設定手段を有しており、
前記登録制御部は、前記設定手段の設定が前記画像解像度変換処理が不要である旨を表す場合には、受信した前記グラフィックスデータをそのまま前記グラフィックスデータ記憶部に登録することを特徴とするプリンター。
In claim 5,
Setting means for setting whether or not the image resolution conversion processing is necessary;
The registration control unit registers the received graphics data as it is in the graphics data storage unit when the setting by the setting unit indicates that the image resolution conversion process is unnecessary. printer.
請求項5または6において、
前記解像度変換部の前記画像解像度変換処理は、
M、N、Pを正の整数、前記グラフィックスデータの画像解像度をM(dpi)、前記印刷ヘッドの印刷解像度をN(dpi)とし、Pの値を|M/(N−M)|、または当該除算値の絶対値に最も近い整数値とすると、
M<Nの場合には、前記グラフィックスデータに対して、P画素目毎に、当該P画素目のデータをコピーしてP画素目のデータと(P+1)画素目のデータの間に挿入することにより、前記グラフィックスデータのデータ数を増加させ、
M>Nの場合には、前記グラフィックスデータに対して、P画素目毎に、当該P画素目のデータを削除することにより、前記グラフィックスデータのデータ数を減少させることを特徴とするプリンター。
In claim 5 or 6,
The image resolution conversion processing of the resolution conversion unit is:
M, N, and P are positive integers, the image resolution of the graphics data is M (dpi), the print resolution of the print head is N (dpi), and the value of P is | M / (N−M) | Or if it is the integer value closest to the absolute value of the division value,
When M <N, for each P pixel, the P pixel data is copied and inserted between the P pixel data and the (P + 1) pixel data for the graphics data. By increasing the number of graphics data,
In the case of M> N, the number of data of the graphics data is reduced by deleting the data of the P pixel for each P pixel of the graphics data. .
請求項5または6において、
前記解像度変換部の前記画像解像度変換処理は、
M、N、Pを正の整数、前記グラフィックスデータの画像解像度をM(dpi)、前記印刷ヘッドの印刷解像度をN(dpi)とし、Pの値を|M/(N−M)|、または当該除算値の絶対値に最も近い整数値とすると、
M<Nの場合には、前記グラフィックスデータの行方向においては、P行目毎に、当該P行目の行データをコピーして、P行目とP+1行目の間に挿入し、前記グラフィックスデータの列方向においては、P列目毎に、当該P列目の列データをコピーして、P列目とP+1列目の間に挿入し、
M>Nの場合には、前記グラフィックスデータの行方向においては、P行目毎に、当該P行目の行データを削除し、前記グラフィックスデータの列方向においては、P列目毎に、当該P列目の列データを削除することを特徴とするプリンター。
In claim 5 or 6,
The image resolution conversion processing of the resolution conversion unit is:
M, N, and P are positive integers, the image resolution of the graphics data is M (dpi), the print resolution of the print head is N (dpi), and the value of P is | M / (N−M) | Or if it is the integer value closest to the absolute value of the division value,
In the case of M <N, in the row direction of the graphics data, for each P row, the P row data is copied and inserted between the P row and the P + 1 row, In the column direction of the graphics data, for each P column, copy the column data of the P column and insert it between the P column and the P + 1 column,
In the case of M> N, the row data of the P row is deleted for every P row in the row direction of the graphics data, and every P row in the column direction of the graphics data. A printer characterized by deleting column data of the Pth column.
JP2010264681A 2010-11-29 2010-11-29 Printer and graphics data registration method Withdrawn JP2012111216A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010264681A JP2012111216A (en) 2010-11-29 2010-11-29 Printer and graphics data registration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010264681A JP2012111216A (en) 2010-11-29 2010-11-29 Printer and graphics data registration method

Publications (1)

Publication Number Publication Date
JP2012111216A true JP2012111216A (en) 2012-06-14

Family

ID=46495943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010264681A Withdrawn JP2012111216A (en) 2010-11-29 2010-11-29 Printer and graphics data registration method

Country Status (1)

Country Link
JP (1) JP2012111216A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2677418A3 (en) * 2012-06-21 2014-05-21 Seiko Epson Corporation Image processing device, image processing system, and printing method
JP2015020335A (en) * 2013-07-18 2015-02-02 セイコーエプソン株式会社 Printing device, printing control device and printing method
JP2015074142A (en) * 2013-10-08 2015-04-20 富士ゼロックス株式会社 Image processing device, image formation device, and image processing program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2677418A3 (en) * 2012-06-21 2014-05-21 Seiko Epson Corporation Image processing device, image processing system, and printing method
US9135534B2 (en) 2012-06-21 2015-09-15 Seiko Epson Corporation Image processing device, image processing system, and printing method
JP2015020335A (en) * 2013-07-18 2015-02-02 セイコーエプソン株式会社 Printing device, printing control device and printing method
JP2015074142A (en) * 2013-10-08 2015-04-20 富士ゼロックス株式会社 Image processing device, image formation device, and image processing program

Similar Documents

Publication Publication Date Title
US9753677B2 (en) Apparatus and methods for image processing optimization for variable data printing
US9013752B2 (en) Image processing device, printing device, and image processing method
EP2677418B1 (en) Image processing device, image processing system, and printing method
US8994961B2 (en) Reducing white space in a medium for printing
US9141892B2 (en) Adjusting one side print data to avoid overlap with the other side print data in two-sided printing
US9290022B2 (en) Receipt printing device having improved recording and cutting operation
JP5819698B2 (en) PRINT DATA PROCESSING DEVICE, PRINT DATA PROCESSING METHOD, PRINTING SYSTEM AND PROGRAM, AND PAGE DATA CREATION DEVICE AND Rasterization Processing Device
JP2012111216A (en) Printer and graphics data registration method
US20150002889A1 (en) Control device, control system, and control method of a control device
US10046577B2 (en) Printing device, printing system, and control method of a printing device
US9098779B2 (en) Recording control device, control method, and program
US10048901B2 (en) Control device, control method of a control device, and storage medium
JP4725148B2 (en) Printing apparatus and program
JP4946408B2 (en) Printing system and printing control method in printing system
JP2013061835A (en) Recording control device, control method for recording device, and program
JP2012198613A (en) Output device, journal generation system, journal generation method and program
JP2016055595A (en) Printer and control method of the same
US9704071B2 (en) Printing device, control method of a printing device, and storage medium for managing font printouts
JP5736742B2 (en) Duplex printing apparatus and duplex printing method
JP2012206277A (en) Duplex printing apparatus and duplex printing method
JP2012111217A (en) Printer and graphics printing method
JP2017124572A (en) Printer and control method for the same
JP6281400B2 (en) Printing apparatus and printing method of printing apparatus
JP5906606B2 (en) Control device, recording device, control method of control device, and program
JP2006007524A (en) Printer, program, printing system and printing control method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140204