JP2019162810A - Printer, printing method, and program - Google Patents

Printer, printing method, and program Download PDF

Info

Publication number
JP2019162810A
JP2019162810A JP2018052284A JP2018052284A JP2019162810A JP 2019162810 A JP2019162810 A JP 2019162810A JP 2018052284 A JP2018052284 A JP 2018052284A JP 2018052284 A JP2018052284 A JP 2018052284A JP 2019162810 A JP2019162810 A JP 2019162810A
Authority
JP
Japan
Prior art keywords
print
printing
area
print head
distance
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.)
Granted
Application number
JP2018052284A
Other languages
Japanese (ja)
Other versions
JP7056282B2 (en
JP2019162810A5 (en
Inventor
昌哉 中澤
Masaya Nakazawa
昌哉 中澤
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2018052284A priority Critical patent/JP7056282B2/en
Publication of JP2019162810A publication Critical patent/JP2019162810A/en
Publication of JP2019162810A5 publication Critical patent/JP2019162810A5/ja
Application granted granted Critical
Publication of JP7056282B2 publication Critical patent/JP7056282B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a printer which can make prints without causing the prints to protrude from an area which a user would like to make the prints, and to provide a printing method and a program.SOLUTION: A printer 100 includes: a print head 160; a housing; a scanning distance detection part 140; a print area detection part 113; and a print head control part 114. The housing has the print head 160 on a bottom surface. The scanning distance detection part 140 detects a distance that the housing is scanned in a sub scanning direction. The print area detection part 113 detects a print area on which a print object is printed. The print head control part 114 causes the print head to print the print object in the print area detected by the print area detection part 113.SELECTED DRAWING: Figure 4

Description

本発明は、印刷装置、印刷方法及びプログラムに関する。   The present invention relates to a printing apparatus, a printing method, and a program.

筐体を把持して手動走査することにより、印刷媒体に文字、記号、マーク、模様等の印刷対象を印刷する手動走査型の印刷装置が知られている。   2. Description of the Related Art A manual scanning type printing apparatus that prints a print target such as a character, a symbol, a mark, or a pattern on a print medium by grasping a housing and performing manual scanning is known.

特許文献1は、筐体の底面の近くに設けられた基準インジケータと、基準インジケータと印刷される画像との相対的な位置関係を表示するディスプレイと、を備える手動走査型の印刷装置を開示する。これにより、ユーザは、基準インジケータと印刷される画像の相対的な位置関係を知ることができる。   Patent Document 1 discloses a manual scanning type printing apparatus including a reference indicator provided near the bottom surface of a housing and a display that displays a relative positional relationship between the reference indicator and a printed image. . Thereby, the user can know the relative positional relationship between the reference indicator and the printed image.

米国特許出願公開第2007/0223982号明細書US Patent Application Publication No. 2007/0223982

特許文献1に開示された印刷装置では、印刷媒体の縁部に印刷対象を印刷しようとする場合、ユーザが正確に印刷対象を印刷する位置を調整しないと印刷媒体からはみ出して印刷される虞がある。このため、この印刷装置では、ユーザが印刷したい場所にはみ出さずに印刷対象を印刷することが容易でない。   In the printing apparatus disclosed in Patent Document 1, when a print target is to be printed on the edge of the print medium, the user may not be printed out of the print medium unless the position for accurately printing the print target is adjusted. is there. For this reason, in this printing apparatus, it is not easy to print a print target without protruding to a place where the user wants to print.

本発明は、上記のような課題を解決するためになされたものであり、印刷したい領域にはみ出さずに印刷できる印刷装置、印刷方法及びプログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a printing apparatus, a printing method, and a program capable of printing without protruding from an area to be printed.

本発明の目的を達成するため、本発明に係る印刷装置の一様態は、
印刷ヘッドと、
前記印刷ヘッドを底面に有する筐体と、
前記筐体が副走査方向に走査された距離を検知する走査距離検出手段と、
印刷対象を印刷する印刷領域を検出する印刷領域検出手段と、
前記印刷領域検出手段により検出された前記印刷領域に前記印刷対象を前記印刷ヘッドにより印刷させる印刷ヘッド制御手段と、
を備えることを特徴とする。
In order to achieve the object of the present invention, an aspect of the printing apparatus according to the present invention is:
A print head;
A housing having the print head on the bottom surface;
Scanning distance detection means for detecting a distance by which the casing is scanned in the sub-scanning direction;
A print area detecting means for detecting a print area for printing the print target;
Print head control means for causing the print head to print the print object in the print area detected by the print area detection means;
It is characterized by providing.

本発明によれば、印刷したい領域にはみ出さずに印刷できる印刷装置、印刷方法及びプログラムを提供することができる。   According to the present invention, it is possible to provide a printing apparatus, a printing method, and a program capable of printing without protruding into an area to be printed.

本発明の実施の形態に係るハンディプリンタおよび端末装置を示す図である。It is a figure which shows the handy printer and terminal device which concern on embodiment of this invention. 本発明の実施の形態に係るハンディプリンタを示す上面図である。It is a top view which shows the handy printer which concerns on embodiment of this invention. 本発明の実施の形態に係るハンディプリンタを示す底面図である。It is a bottom view which shows the handy printer which concerns on embodiment of this invention. 本発明の実施の形態に係るハンディプリンタの構成を示すブロック図である。It is a block diagram which shows the structure of the handy printer which concerns on embodiment of this invention. 本発明の実施の形態に係る端末装置の構成を示すブロック図である。It is a block diagram which shows the structure of the terminal device which concerns on embodiment of this invention. 本発明の実施の形態に係る端末装置が実行する送信処理を示すフローチャートである。It is a flowchart which shows the transmission process which the terminal device which concerns on embodiment of this invention performs. 本発明の実施の形態に係るハンディプリンタが実行する印刷処理を示すフローチャートである。It is a flowchart which shows the printing process which the handy printer which concerns on embodiment of this invention performs. 本発明の実施の形態に係るハンディプリンタが実行する印刷領域検出処理を示すフローチャートである。It is a flowchart which shows the printing area | region detection process which the handy printer which concerns on embodiment of this invention performs. 本発明の実施の形態に係るハンディプリンタが実行するドットライン印刷処理を示すフローチャートである。It is a flowchart which shows the dot line printing process which the handy printer which concerns on embodiment of this invention performs. 本発明の実施の形態に係るハンディプリンタが実行する印刷処理を説明する図である。It is a figure explaining the printing process which the handy printer which concerns on embodiment of this invention performs. 本発明の実施の形態に係るハンディプリンタが実行する印刷処理を説明する図である。It is a figure explaining the printing process which the handy printer which concerns on embodiment of this invention performs. 本発明の実施の形態に係るハンディプリンタが実行する印刷処理を説明する図である。It is a figure explaining the printing process which the handy printer which concerns on embodiment of this invention performs. 本発明の実施の形態に係るハンディプリンタが実行する印刷処理を説明する図である。It is a figure explaining the printing process which the handy printer which concerns on embodiment of this invention performs. 本発明の変形例に係る被印刷媒体を示す図である。It is a figure which shows the to-be-printed medium which concerns on the modification of this invention. 本発明の変形例に係る被印刷媒体を示す図である。It is a figure which shows the to-be-printed medium which concerns on the modification of this invention. 本発明の変形例に係る被印刷媒体を示す図である。It is a figure which shows the to-be-printed medium which concerns on the modification of this invention. 本発明の変形例に係るハンディプリンタを示す図である。It is a figure which shows the handy printer which concerns on the modification of this invention.

以下、本発明を実施するための形態に係る印刷装置を図面を参照しながら説明する。   Hereinafter, a printing apparatus according to an embodiment for carrying out the present invention will be described with reference to the drawings.

本実施の形態に係るハンディプリンタ(印刷装置)100は、図1に示すように、ユーザが手で把持しやすい大きさを有する筐体101を備え、ユーザにより副走査方向に向けて走査されて、文字、記号、ロゴ、キャラクタ、マーク、模様等の印刷対象を被印刷媒体Rにはみ出さないように印刷するものである。ハンディプリンタ100が印刷する印刷対象を示すデータは、端末装置200から送信される。端末装置200は、例えば、ディスプレイ230を備えるスマートホン、タブレットPC(Personal Computer)から構成される。ハンディプリンタ100と端末装置200とは、無線回線を通じて相互に通信可能に構成される。なお、ハンディプリンタ100と端末装置200は、印刷システム1を構成する。   As shown in FIG. 1, a handy printer (printing apparatus) 100 according to the present embodiment includes a housing 101 having a size that can be easily gripped by a user, and is scanned in the sub-scanning direction by the user. , Characters, symbols, logos, characters, marks, patterns, and the like are printed so as not to protrude from the printing medium R. Data indicating a print target to be printed by the handy printer 100 is transmitted from the terminal device 200. The terminal device 200 includes, for example, a smartphone including a display 230 and a tablet PC (Personal Computer). The handy printer 100 and the terminal device 200 are configured to be able to communicate with each other through a wireless line. Note that the handy printer 100 and the terminal device 200 constitute the printing system 1.

ハンディプリンタ100は、図2に示すように、印刷開始の指示を受け付ける決定ボタン120と、印刷を開始する位置を示すインジケータ130と、を有する。なお、決定ボタン120が設けられている面を上面とする。   As shown in FIG. 2, the handy printer 100 includes a determination button 120 that receives an instruction to start printing, and an indicator 130 that indicates a position to start printing. The surface on which the determination button 120 is provided is the upper surface.

インジケータ130は、副走査方向に走査して印刷する際の印刷を開始する位置を示すものである。インジケータ130は、導光板と赤色に発光するLED(Light Emitting Diode)、緑色に発光するLED、および青色に発光するLEDを有し、任意の色に発光する。インジケータ130は、後述する印刷ヘッド160の主走査方向に平行な向きに延びる形状を有する。インジケータ130は、上面を垂直に見て、副走査方向に後述する基準距離移動すると印刷ヘッド160と重なる位置に配置されている。なお、主走査方向は、副走査方向と直交する。   The indicator 130 indicates a position where printing is started when printing is performed by scanning in the sub-scanning direction. The indicator 130 has a light guide plate and an LED (Light Emitting Diode) that emits red light, an LED that emits green light, and an LED that emits blue light, and emits light in an arbitrary color. The indicator 130 has a shape extending in a direction parallel to the main scanning direction of the print head 160 described later. The indicator 130 is disposed at a position where the indicator 130 overlaps the print head 160 when the upper surface is viewed vertically and the reference distance described later is moved in the sub-scanning direction. The main scanning direction is orthogonal to the sub-scanning direction.

ハンディプリンタ100の底面には、図3に示すように、走査距離検出部140とスキャナ150と印刷ヘッド160とが設けられている。   As shown in FIG. 3, a scanning distance detection unit 140, a scanner 150, and a print head 160 are provided on the bottom surface of the handy printer 100.

走査距離検出部140は、LEDなどの光源と光学センサとから構成され、ハンディプリンタ100が副走査方向に走査された距離を検出する。   The scanning distance detection unit 140 includes a light source such as an LED and an optical sensor, and detects a distance scanned by the handy printer 100 in the sub-scanning direction.

スキャナ150は、主走査方向にライン状に並んで設けられたn個の受光素子と、LED光源と、から構成され、スキャナ150が走査された領域の画像を読み取る。スキャナ150は、インジケータ130の端部から基準距離d1離れた位置に配置され、1番目の受光素子P1からn番目の受光素子Pnを有する。   The scanner 150 is composed of n light receiving elements arranged in a line in the main scanning direction and an LED light source, and reads an image of an area scanned by the scanner 150. The scanner 150 is disposed at a position away from the end of the indicator 130 by a reference distance d1, and includes the first light receiving element P1 to the nth light receiving element Pn.

印刷ヘッド160は、マゼンタ色のインクを吐出するマゼンタ色印刷ヘッド160Mと、シアン色のインクを吐出するシアン色印刷ヘッド160Cと、黄色のインクを吐出する黄色印刷ヘッド160Yと、図示しない各色のインクタンクと、から構成される。印刷ヘッド160M、160C、160Yには、それぞれ印字素子であるn個のノズルが主走査方向に向けてライン状に並んで設けられている。ノズルの個数は、スキャナ150の受光素子の個数であるn個と同じである。マゼンタ色印刷ヘッド160Mは、1番目のノズルM1からn番目のノズルMnを含む。シアン色印刷ヘッドは、1番目のノズルC1からn番目のノズルCnを含む。黄色印刷ヘッド160Yは、1番目のノズルY1からn番目のノズルYnを含む。印刷ヘッド160は、印刷対象に対応した通電により、ノズルから選択的にインクを吐出する。マゼンタ色印刷ヘッド160Mは、スキャナ150から基準距離d2離れた位置に配置されている。シアン色印刷ヘッド160Cは、スキャナ150から基準距離d3離れた位置に配置されている。黄色印刷ヘッド160Yは、スキャナ150から基準距離d4離れた位置に配置されている。   The print head 160 includes a magenta print head 160M that discharges magenta ink, a cyan print head 160C that discharges cyan ink, a yellow print head 160Y that discharges yellow ink, and inks of various colors (not shown). And a tank. Each of the print heads 160M, 160C, and 160Y is provided with n nozzles that are print elements arranged in a line in the main scanning direction. The number of nozzles is the same as n, which is the number of light receiving elements of the scanner 150. The magenta color print head 160M includes the first nozzle M1 to the nth nozzle Mn. The cyan print head includes the first nozzle C1 to the nth nozzle Cn. The yellow print head 160Y includes the first nozzle Y1 to the nth nozzle Yn. The print head 160 selectively ejects ink from the nozzles by energization corresponding to the print target. The magenta print head 160M is disposed at a position away from the scanner 150 by the reference distance d2. The cyan print head 160C is arranged at a position away from the scanner 150 by a reference distance d3. The yellow print head 160Y is disposed at a position away from the scanner 150 by a reference distance d4.

ハンディプリンタ100は、電気的構成として、図4に示すように、上述した決定ボタン120と、インジケータ130と、走査距離検出部140と、スキャナ150と、印刷ヘッド160と、に加えて、制御部110と、通信部170と、ROM(Read Only Memory)180と、RAM(Random Access Memory)190と、を備える。   As shown in FIG. 4, the handy printer 100 has an electrical configuration including a control unit in addition to the determination button 120, the indicator 130, the scanning distance detection unit 140, the scanner 150, and the print head 160 described above. 110, a communication unit 170, a ROM (Read Only Memory) 180, and a RAM (Random Access Memory) 190.

制御部110は、CPU(Central Processing Unit)等から構成される。制御部110は、ROM180に記憶されたプログラムを実行することにより、印刷対象取得部111と、インジケータ表示制御部112と、印刷領域検出部113と、印刷ヘッド制御部114として機能する。   The control unit 110 includes a CPU (Central Processing Unit) and the like. The control unit 110 functions as a print target acquisition unit 111, an indicator display control unit 112, a print area detection unit 113, and a print head control unit 114 by executing a program stored in the ROM 180.

印刷対象取得部111は、通信部170を介して、端末装置200から送信された印刷対象を示すデータを取得し、RAM190に格納する。   The print target acquisition unit 111 acquires data indicating the print target transmitted from the terminal device 200 via the communication unit 170 and stores the data in the RAM 190.

インジケータ表示制御部112は、インジケータ130を点灯し、ユーザに印刷開始および印刷完了を知らせる。印刷対象取得部111が印刷対象を示すデータを取得し、印刷待機状態になると、インジケータ表示制御部112は、インジケータ130を緑色に点灯する。決定ボタン120が押されると、インジケータ表示制御部112は、インジケータ130を白色に点灯し、印刷が完了すると、インジケータ130を青色に点灯する。インジケータ表示制御部112は、その後、一定時間経過するとインジケータ130を消灯する。   The indicator display control unit 112 turns on the indicator 130 to notify the user of printing start and printing completion. When the print target acquisition unit 111 acquires data indicating a print target and enters a print standby state, the indicator display control unit 112 lights the indicator 130 in green. When the determination button 120 is pressed, the indicator display control unit 112 lights the indicator 130 in white, and when printing is completed, lights the indicator 130 in blue. After that, the indicator display control unit 112 turns off the indicator 130 when a certain time elapses.

印刷領域検出部113は、スキャナ150により読み取られた領域から被印刷媒体Rを印刷領域として検出する。詳細には、印刷領域検出部113は、決定ボタン120が押されてからハンディプリンタ100が基準距離d1走査されたと判定すると、1ドットピッチ走査される毎に、スキャナ150により読み取られた1ドットラインの画像から被印刷媒体Rを検出したか否かを判定する。具体的には、スキャナ150が有するそれぞれの画素により検出された輝度が基準輝度より大きい場合、被印刷媒体Rを検出したと判定する。その後、印刷領域検出部113は、1ドットピッチ走査される毎に被印刷媒体Rを検出した部分をRAM190に記憶する。   The print area detection unit 113 detects the print medium R as a print area from the area read by the scanner 150. More specifically, when the print area detection unit 113 determines that the handy printer 100 has been scanned for the reference distance d1 after the determination button 120 is pressed, the dot area read by the scanner 150 is scanned every time one dot pitch is scanned. It is determined whether or not the printing medium R is detected from the image. Specifically, when the luminance detected by each pixel of the scanner 150 is larger than the reference luminance, it is determined that the printing medium R has been detected. Thereafter, the print area detection unit 113 stores the portion in which the print medium R is detected in the RAM 190 every time one dot pitch is scanned.

印刷ヘッド制御部114は、走査距離検出部140が検出した副走査方向に走査された走査距離及び印刷領域検出部113の検出結果に基づいて、複数の印字素子のうち、被印刷媒体R上の印字素子によって印刷対象を印刷するように印刷ヘッド160を制御し、被印刷媒体Rが検出された部分に印刷対象の画像を印刷ヘッド160に印刷させる。具体的には、決定ボタン120が押されてからハンディプリンタ100が距離L走査されたとすると、印刷ヘッド制御部114は、決定ボタン120が押されてから距離L−基準距離d2走査されたとき被印刷媒体Rが検出された部分に、マゼンタ色印刷ヘッド160Mに印刷対象の画像の1ドットラインを印字させる。また、印刷ヘッド制御部114は、決定ボタン120が押されてから距離L−基準距離d3走査されたとき被印刷媒体Rが検出された部分に、シアン色印刷ヘッド160Cに印刷対象の画像の1ドットラインを印字させる。また、また、印刷ヘッド制御部114は、決定ボタン120が押されてから距離L−基準距離d4走査されたとき被印刷媒体Rが検出された部分に、黄色印刷ヘッド160Yに印刷対象の画像の1ドットラインを印字させる。   Based on the scanning distance scanned in the sub-scanning direction detected by the scanning distance detection unit 140 and the detection result of the print area detection unit 113, the print head control unit 114 is on the printing medium R among the plurality of printing elements. The print head 160 is controlled to print the print target by the print element, and the print target image is printed on the portion where the print medium R is detected. Specifically, if the handy printer 100 has been scanned for a distance L since the determination button 120 was pressed, the print head control unit 114 may detect a distance L−reference distance d2 after the determination button 120 was pressed. In the portion where the print medium R is detected, the magenta print head 160M prints one dot line of the image to be printed. In addition, the print head control unit 114 detects one of the images to be printed on the cyan print head 160C in a portion where the print medium R is detected when the distance L−the reference distance d3 is scanned after the determination button 120 is pressed. Print a dot line. In addition, the print head control unit 114 detects the image to be printed on the yellow print head 160Y at a portion where the print medium R is detected when the distance L−the reference distance d4 is scanned after the determination button 120 is pressed. Print one dot line.

決定ボタン120は、ユーザの操作に基づいて、印刷を開始する指示を受付ける。   The determination button 120 receives an instruction to start printing based on a user operation.

走査距離検出部140は、上述したように、被印刷媒体Rに対して印刷ヘッド160が走査された距離である走査済み距離を検出し、検出された走査済み距離を示すデータを制御部110に出力する。   As described above, the scanning distance detection unit 140 detects a scanned distance that is a distance scanned by the print head 160 with respect to the printing medium R, and sends data indicating the detected scanned distance to the control unit 110. Output.

スキャナ150は、上述したように、被印刷媒体Rを1ドットライン毎に検出し、検出された被印刷媒体Rを示すデータを制御部110に出力する。   As described above, the scanner 150 detects the printing medium R for each dot line, and outputs data indicating the detected printing medium R to the control unit 110.

印刷ヘッド160は、上述したように、印刷ヘッド制御部114の制御に基づいて、副走査方向に1ドットピッチに相当する距離を走査される度、印刷ヘッド160に設けられたノズルから印刷データに応じてYMC(Yellow Magenta Cyan)毎にインクを選択的に吐出する。吐出したインクは、被印刷媒体Rに付着し、印刷ヘッド160の主走査方向にライン状に並んだ画素(1ドットライン)が印刷される。   As described above, the print head 160 changes the print data from the nozzles provided in the print head 160 every time a distance corresponding to one dot pitch is scanned in the sub-scanning direction based on the control of the print head control unit 114. Accordingly, ink is selectively ejected for each YMC (Yellow Magenta Cyan). The ejected ink adheres to the printing medium R, and pixels (one dot line) arranged in a line in the main scanning direction of the print head 160 are printed.

通信部170は、端末装置200から印刷対象画像および走査方向を示すデータを受信する。通信部170は、無線LAN(Local Area Network)、Bluetooth(登録商標)などの無線通信モジュールから構成される。   The communication unit 170 receives the print target image and data indicating the scanning direction from the terminal device 200. The communication unit 170 includes a wireless communication module such as a wireless local area network (LAN) or Bluetooth (registered trademark).

ROM180は、フラッシュメモリ等の不揮発性メモリから構成され、上述したように制御部110が各種機能を実現するためのプログラム、基準輝度および基準距離d1〜d4を記憶する。RAM190は、揮発性メモリから構成され、制御部110が各種処理を行うためのプログラムを実行するための作業領域として用いられる。また、RAM190は、印刷対象画像のYMCの画像データ、距離L、印刷領域などのデータを記憶する。   The ROM 180 is configured by a non-volatile memory such as a flash memory, and stores a program for the control unit 110 to realize various functions, reference luminance, and reference distances d1 to d4 as described above. The RAM 190 is composed of a volatile memory, and is used as a work area for executing programs for the control unit 110 to perform various processes. The RAM 190 stores data such as YMC image data, distance L, and print area of the print target image.

端末装置200は、図5に示すように、制御部210と、通信部220と、ディスプレイ230と、操作部240と、ROM250と、RAM260と、を備える。   As shown in FIG. 5, the terminal device 200 includes a control unit 210, a communication unit 220, a display 230, an operation unit 240, a ROM 250, and a RAM 260.

制御部210は、CPU等から構成される。制御部210は、ROM250に記憶されたプログラムを実行することにより、印刷対象取得部211と、印刷対象送信部212として機能する。   The control unit 210 includes a CPU and the like. The control unit 210 functions as a print target acquisition unit 211 and a print target transmission unit 212 by executing a program stored in the ROM 250.

印刷対象取得部211は、操作部240が受け付けた、または通信部220が受信した印刷対象を示すデータを取得する。   The print target acquisition unit 211 acquires data indicating the print target received by the operation unit 240 or received by the communication unit 220.

印刷対象送信部212は、印刷対象を示すデータを、通信部220を介してハンディプリンタ100に送信する。   The print target transmission unit 212 transmits data indicating the print target to the handy printer 100 via the communication unit 220.

通信部220は、ハンディプリンタ100に印刷対象を示すデータを送信する。通信部220は、上述した通信部170と同様に、無線LAN、Bluetooth(登録商標)などの無線通信モジュールから構成される。   The communication unit 220 transmits data indicating a print target to the handy printer 100. Similar to the communication unit 170 described above, the communication unit 220 includes a wireless communication module such as a wireless LAN or Bluetooth (registered trademark).

ディスプレイ230は、入力された印刷対象の画像や操作に必要な画像を表示するものであり、LCD(liquid crystal display)などから構成される。   The display 230 displays an input image to be printed and an image necessary for an operation, and includes an LCD (liquid crystal display) or the like.

操作部240は、ユーザの入力に基づいて、印刷対象を示すデータや印刷処理の開始、終了の指示を受け付けるものである。なお、操作部240とディスプレイ230とは、タッチパネルディスプレイ装置を構成する。   The operation unit 240 receives data indicating a print target and instructions for starting and ending print processing based on a user input. The operation unit 240 and the display 230 constitute a touch panel display device.

ROM250は、フラッシュメモリ等の不揮発性メモリから構成され、制御部210が各種機能を実現するためのプログラムを記憶する。RAM260は、揮発性メモリから構成され、制御部210が各種処理を行うためのプログラムを実行するための作業領域として用いられる。また、RAM260は、印刷対象を示すデータを記憶する。   The ROM 250 is composed of a nonvolatile memory such as a flash memory, and stores programs for the control unit 210 to realize various functions. The RAM 260 is composed of a volatile memory, and is used as a work area for executing programs for the control unit 210 to perform various processes. The RAM 260 stores data indicating a print target.

つぎに、以上の構成を有する端末装置200が実行する送信処理およびハンディプリンタ100が実行する印刷処理について説明する。   Next, a transmission process executed by the terminal device 200 having the above configuration and a print process executed by the handy printer 100 will be described.

端末装置200は、ユーザによる処理を開始させる指示に応答し、図6に示す送信処理を開始する。また、ハンディプリンタ100は、ユーザによる処理を開始させる指示に応答し、図7に示す印刷処理を開始する。以下、端末装置200が実行する送信処理およびハンディプリンタ100が実行する印刷処理を、フローチャートを用いて説明する。   In response to the instruction to start the process by the user, the terminal device 200 starts the transmission process shown in FIG. Further, the handy printer 100 starts the printing process shown in FIG. 7 in response to an instruction to start the process by the user. Hereinafter, a transmission process executed by the terminal device 200 and a print process executed by the handy printer 100 will be described with reference to flowcharts.

まず、図6に示すように、印刷対象取得部211は、操作部240に入力された印刷対象を示すデータを受け付ける(ステップS101)。印刷対象取得部211は、受け付けた印刷対象を示すデータをRAM260に記憶する。つぎに、印刷対象送信部212は、印刷対象を示すデータを送信する指示を受け付けたか否かを判定する(ステップS102)。データを送信する指示を受け付けていない場合(ステップS102;No)、ステップS102を繰り返す。データを送信する指示を受け付けた場合(ステップS102;Yes)、印刷対象送信部212は、通信部220を介して、印刷対象を示すデータをハンディプリンタ100に送信する(ステップS103)。   First, as illustrated in FIG. 6, the print target acquisition unit 211 receives data indicating a print target input to the operation unit 240 (step S <b> 101). The print target acquisition unit 211 stores data indicating the received print target in the RAM 260. Next, the print target transmission unit 212 determines whether an instruction to transmit data indicating the print target has been received (step S102). If an instruction to transmit data has not been received (step S102; No), step S102 is repeated. When an instruction to transmit data is received (step S102; Yes), the print target transmission unit 212 transmits data indicating the print target to the handy printer 100 via the communication unit 220 (step S103).

つぎに、印刷対象送信処理を終了する指示が入力されているか否かを判定する(ステップS104)。送信処理を終了する指示が入力されていない場合(ステップS104;No)、ステップS101に戻り、ステップS101〜ステップS104を繰り返す。送信処理を終了する指示が入力された場合(ステップS104;Yes)、送信処理を終了する。   Next, it is determined whether or not an instruction to end the print target transmission process has been input (step S104). When the instruction to end the transmission process is not input (step S104; No), the process returns to step S101, and steps S101 to S104 are repeated. If an instruction to end the transmission process is input (step S104; Yes), the transmission process ends.

端末装置200から印刷対象および走査方向のデータが送信されると、図7に示すように、ハンディプリンタ100の印刷対象取得部111は、通信部170を介して端末装置200から送信された印刷対象を示すデータを取得し、RAM190に格納する(ステップS201)。つぎに、インジケータ表示制御部112は、インジケータ130を緑色に点灯する(ステップS202)。これにより、ハンディプリンタ100は印刷待機状態になる。   When the print target and scanning direction data are transmitted from the terminal device 200, the print target acquisition unit 111 of the handy printer 100 receives the print target transmitted from the terminal device 200 via the communication unit 170, as shown in FIG. Is obtained and stored in the RAM 190 (step S201). Next, the indicator display control unit 112 lights the indicator 130 in green (step S202). As a result, the handy printer 100 enters a print standby state.

つぎに、インジケータ表示制御部112は、決定ボタン120が押されたか否かを判定する(ステップS203)。決定ボタン120が押されていないと判定されると(ステップS203;No)、ステップS203を繰り返す。決定ボタン120が押されたと判定されると(ステップS203;Yes)、インジケータ表示制御部112は、インジケータ130を白色に点灯する(ステップS204)。つぎに、印刷領域検出部113は、決定ボタン120が押されてからハンディプリンタ100が基準距離d1走査されたか否かを判定する(ステップS205)。基準距離d1走査されていないと判定されると(ステップS205;No)、ステップS205を繰り返す。基準距離d1走査されたと判定されると(ステップS205;Yes)、印刷領域検出部113は、印刷領域検出処理を実行する(ステップS206)。   Next, the indicator display control unit 112 determines whether or not the enter button 120 has been pressed (step S203). If it is determined that the decision button 120 has not been pressed (step S203; No), step S203 is repeated. When it is determined that the determination button 120 has been pressed (step S203; Yes), the indicator display control unit 112 lights the indicator 130 in white (step S204). Next, the print area detection unit 113 determines whether or not the handy printer 100 has been scanned for the reference distance d1 since the determination button 120 was pressed (step S205). If it is determined that the reference distance d1 is not scanned (step S205; No), step S205 is repeated. If it is determined that the reference distance d1 has been scanned (step S205; Yes), the print area detection unit 113 executes a print area detection process (step S206).

印刷領域検出処理が開始すると、図8に示すように、印刷領域検出部113は、変数i=1に設定する(ステップS301)。印刷領域検出部113は、決定ボタン120が押されてからハンディプリンタ100が走査された距離Lを検出する(ステップS302)。なお、当初は距離L=基準距離d1である。印刷領域検出部113は、スキャナ150の1番目の受光素子P1が被印刷媒体Rを検出したか否かを判定する(ステップS303)。具体的には、1番目の受光素子P1が検出した輝度が基準輝度より大きい場合、被印刷媒体Rを検出したと判定する。印刷領域検出部113は、スキャナ150の1番目の受光素子P1が被印刷媒体Rを検出したと判定すると(ステップS303;Yes)、走査された距離Lにおいて、1番目の受光素子P1が被印刷媒体Rを検出した旨をRAM190に記憶する(ステップS304)。つぎに、変数i=nであるか否かを判定する(ステップS305)。一方、印刷領域検出部113は、スキャナ150の1番目の受光素子P1が被印刷媒体Rを検出しなかったと判定すると(ステップS303;No)、ステップS305に進む。   When the print area detection process starts, as shown in FIG. 8, the print area detection unit 113 sets variable i = 1 (step S301). The print area detection unit 113 detects the distance L scanned by the handy printer 100 after the determination button 120 is pressed (step S302). Initially, distance L = reference distance d1. The print area detection unit 113 determines whether or not the first light receiving element P1 of the scanner 150 has detected the print medium R (step S303). Specifically, when the luminance detected by the first light receiving element P1 is larger than the reference luminance, it is determined that the printing medium R has been detected. When the print region detection unit 113 determines that the first light receiving element P1 of the scanner 150 has detected the printing medium R (step S303; Yes), the first light receiving element P1 is printed at the scanned distance L. The fact that the medium R has been detected is stored in the RAM 190 (step S304). Next, it is determined whether or not the variable i = n (step S305). On the other hand, if the print region detection unit 113 determines that the first light receiving element P1 of the scanner 150 has not detected the print medium R (step S303; No), the process proceeds to step S305.

変数i=1であるので、変数i=nでないと判定する(ステップS305;No)。つぎにiをインクリメントし(ステップS306)、ステップS303に戻る。変数i=nになるまでステップS303からステップS306を繰り返す。nは、上述したように、スキャナ150の受光素子の個数である。ステップS303からステップS306を繰り返すことで、決定ボタン120が押されてから距離L走査されたときのスキャナ150により読み取られた1ドットラインの画像のうち被印刷媒体Rを検出した部分がRAM190に記憶される。印刷領域検出部113が、変数i=nであると判定すると(ステップS305;Yes)、印刷領域検出処理を終了し、図7に示す印刷処理に戻る。   Since the variable i is 1, it is determined that the variable i is not n (step S305; No). Next, i is incremented (step S306), and the process returns to step S303. Steps S303 to S306 are repeated until variable i = n. n is the number of light receiving elements of the scanner 150 as described above. By repeating Step S303 to Step S306, the portion where the printing medium R is detected is stored in the RAM 190 in the image of one dot line read by the scanner 150 when the distance L is scanned after the determination button 120 is pressed. Is done. If the print area detection unit 113 determines that the variable i = n (step S305; Yes), the print area detection process is terminated and the process returns to the print process shown in FIG.

つぎに、印刷ヘッド制御部114は、ドットライン印刷処理を実行する(ステップS207)。ドットライン印刷処理が開始すると、図9に示すように、印刷ヘッド制御部114は、変数i=1に設定する(ステップS401)。決定ボタン120が押されてからハンディプリンタ100が距離L−基準距離d2走査されたとき、1番目の受光素子P1が被印刷媒体Rを検出したか否かを判定する(ステップS402)。具体的には、走査された距離L−基準距離d2において、スキャナ150の1番目の受光素子P1により被印刷媒体Rを検出した旨がRAM190に記憶されているか否かにより判定する。距離L−基準距離d2走査されたとき、1番目の受光素子が被印刷媒体Rを検出したと判定されると(ステップS402;Yes)、印刷ヘッド制御部114は、マゼンタ色印刷ヘッド160Mの1番目のノズルM1にインクを吐出させる(ステップS403)。一方、距離L−基準距離d2走査されたとき、1番目の受光素子P1が被印刷媒体Rを検出しなかったと判定されると(ステップS402;No)、ステップS404に進む。   Next, the print head controller 114 executes a dot line printing process (step S207). When the dot line printing process starts, as shown in FIG. 9, the print head control unit 114 sets variable i = 1 (step S401). When the handy printer 100 is scanned by the distance L−the reference distance d2 after the determination button 120 is pressed, it is determined whether or not the first light receiving element P1 has detected the printing medium R (step S402). Specifically, it is determined whether or not the fact that the printing medium R is detected by the first light receiving element P1 of the scanner 150 is stored in the RAM 190 at the scanned distance L−the reference distance d2. If it is determined that the first light receiving element has detected the printing medium R when the distance L−the reference distance d2 is scanned (step S402; Yes), the print head control unit 114 sets 1 of the magenta color print head 160M. Ink is ejected to the second nozzle M1 (step S403). On the other hand, when it is determined that the first light receiving element P1 has not detected the print medium R when the distance L-reference distance d2 is scanned (step S402; No), the process proceeds to step S404.

つぎに、決定ボタン120が押されてからハンディプリンタ100が距離L−基準距離d3走査されたとき、1番目の受光素子P1が被印刷媒体Rを検出したか否かを判定する(ステップS404)。具体的には、走査された距離L−基準距離d3において、スキャナ150の1番目の受光素子P1により被印刷媒体Rを検出した旨がRAM190に記憶されているか否かにより判定する。距離L−基準距離d3走査されたとき、1番目の受光素子P1が被印刷媒体Rを検出したと判定されると(ステップS404;Yes)、印刷ヘッド制御部114は、シアン色印刷ヘッド160Cの1番目のノズルC1にインクを吐出させる(ステップS405)。一方、距離L−基準距離d3走査されたとき、1番目の受光素子P1が被印刷媒体Rを検出しなかったと判定されると(ステップS404;No)、ステップS406に進む。   Next, when the handy printer 100 is scanned by the distance L−the reference distance d3 after the determination button 120 is pressed, it is determined whether or not the first light receiving element P1 has detected the printing medium R (step S404). . Specifically, it is determined whether or not the fact that the printing medium R is detected by the first light receiving element P1 of the scanner 150 is stored in the RAM 190 at the scanned distance L−the reference distance d3. When it is determined that the first light receiving element P1 has detected the printing medium R when the distance L−the reference distance d3 is scanned (step S404; Yes), the print head control unit 114 sets the cyan print head 160C. Ink is ejected to the first nozzle C1 (step S405). On the other hand, when it is determined that the first light receiving element P1 has not detected the printing medium R when the distance L−the reference distance d3 is scanned (step S404; No), the process proceeds to step S406.

つぎに、決定ボタン120が押されてからハンディプリンタ100が距離L−基準距離d4走査されたとき、1番目の受光素子P1が被印刷媒体Rとして検出されたか否かを判定する(ステップS406)。具体的には、走査された距離L−基準距離d4において、スキャナ150の1番目の受光素子P1により被印刷媒体Rを検出した旨がRAM190に記憶されているか否かにより判定する。距離L−基準距離d4走査されたとき、1番目の受光素子P1が被印刷媒体Rを検出したと判定されると(ステップS406;Yes)、印刷ヘッド制御部114は、黄色印刷ヘッド160Yに1番目のノズルY1にインクを吐出させる(ステップS407)。一方、距離L−基準距離d4走査されたとき、1番目の受光素子P1が被印刷媒体Rを検出しなかったと判定されると(ステップS406;No)、ステップS408に進む。   Next, when the handy printer 100 is scanned by the distance L−the reference distance d4 after the determination button 120 is pressed, it is determined whether or not the first light receiving element P1 is detected as the printing medium R (step S406). . Specifically, it is determined whether or not the fact that the printing medium R is detected by the first light receiving element P1 of the scanner 150 is stored in the RAM 190 at the scanned distance L−the reference distance d4. When it is determined that the first light receiving element P1 has detected the print medium R when the distance L−the reference distance d4 is scanned (step S406; Yes), the print head control unit 114 applies 1 to the yellow print head 160Y. Ink is ejected to the second nozzle Y1 (step S407). On the other hand, if it is determined that the first light receiving element P1 has not detected the print medium R when the distance L−the reference distance d4 is scanned (step S406; No), the process proceeds to step S408.

つぎに、印刷ヘッド制御部114は、変数i=nであるか否かを判定する(ステップS408)。変数i=1であるので、変数i=nでないと判定する(ステップS408;No)。つぎにiをインクリメントし(ステップS409)、ステップS402に戻る。変数i=nになるまでステップS402からステップS409を繰り返す。ステップS402からステップS409を繰り返すことで、印刷ヘッド制御部114は、被印刷媒体Rが検出された部分にRAM190に記憶された印刷対象の画像をYMC毎に主走査方向にライン状に並んだ1画素のラインである1ドットラインを印刷する。印刷ヘッド制御部114が、変数i=nであると判定すると(ステップS408;Yes)、ドットライン印刷処理を終了し、図7に示す印刷処理に戻る。   Next, the print head control unit 114 determines whether or not the variable i = n (step S408). Since the variable i is 1, it is determined that the variable i is not n (step S408; No). Next, i is incremented (step S409), and the process returns to step S402. Steps S402 to S409 are repeated until variable i = n. By repeating step S402 to step S409, the print head control unit 114 arranges the print target images stored in the RAM 190 in the portion where the print medium R is detected in a line in the main scanning direction for each YMC. One dot line which is a pixel line is printed. If the print head control unit 114 determines that the variable i = n (step S408; Yes), the dot line printing process is terminated, and the process returns to the printing process shown in FIG.

つぎに、印刷領域検出部113は、ハンディプリンタ100が1ドットピッチに相当する距離走査されたか否かを判定する(ステップS208)。1ドットピッチに相当する距離走査されていないと判定されると(ステップS208;No)、ステップS208を繰り返す。1ドットピッチに相当する距離走査されたと判定されると(ステップS208;Yes)、印刷対象の印刷を完了したか否かを判定する(ステップS209)。印刷対象の印刷を完了していないと判定されると(ステップS209;No)、ステップS206に戻り、印刷が完了するまでステップS206からステップS209を繰り返す。ステップS206からステップS209を繰り返すことにより、1ドットピッチに相当する距離走査される毎に、印刷領域検出部113は、1ドットラインの画像のうち被印刷媒体Rが検出された部分を記憶し、印刷ヘッド制御部114は、被印刷媒体Rが検出された部分に印刷対象の画像の1ドットラインを印刷する。   Next, the print area detection unit 113 determines whether or not the handy printer 100 has been scanned for a distance corresponding to one dot pitch (step S208). If it is determined that distance scanning corresponding to one dot pitch has not been performed (step S208; No), step S208 is repeated. If it is determined that the distance corresponding to one dot pitch has been scanned (step S208; Yes), it is determined whether or not the printing to be printed has been completed (step S209). If it is determined that printing of the print target has not been completed (step S209; No), the process returns to step S206, and steps S206 to S209 are repeated until printing is completed. By repeating Step S206 to Step S209, every time a distance scan corresponding to one dot pitch is performed, the print region detection unit 113 stores a portion of the image of one dot line where the printing medium R is detected, The print head controller 114 prints one dot line of the image to be printed on the portion where the print medium R is detected.

印刷対象の印刷を完了したと判定されると(ステップS209;Yes)、インジケータ表示制御部112は、インジケータ130を青色に点灯する(ステップS210)。その後、インジケータ130を消灯し(ステップS211)、印刷処理を終了する。   When it is determined that printing of the print target has been completed (step S209; Yes), the indicator display control unit 112 lights the indicator 130 in blue (step S210). Thereafter, the indicator 130 is turned off (step S211), and the printing process is terminated.

つぎに、本実施の形態に係るハンディプリンタ100が実行する印刷処理および端末装置200が実行する送信処理を具体例に基づいて図10〜図13を参照しながら説明する。   Next, a printing process executed by the handy printer 100 according to the present embodiment and a transmission process executed by the terminal device 200 will be described based on specific examples with reference to FIGS.

ハンディプリンタ100は、スキャナ150で読み取られた領域のうち被印刷媒体Rと判定した部分に印刷対象を印刷する。また、ユーザが、印刷を開始したい位置にハンディプリンタ100のインジケータ130を配置し、決定ボタン120を押し、ハンディプリンタ100を走査すると、決定ボタン120を押したときのインジケータ130の位置から印刷が開始される。これにより、ユーザは印刷対象を被印刷媒体Rからはみ出さないように容易に印刷することができる。ここでは、図10に示す被印刷媒体Rの印刷予定位置Pに印刷対象である「網目模様」を被印刷媒体Rからはみ出さずに印刷する例について説明する。   The handy printer 100 prints the print target on the portion determined as the printing medium R in the area read by the scanner 150. When the user places the indicator 130 of the handy printer 100 at a position where printing is desired to start, presses the determination button 120 and scans the handy printer 100, printing starts from the position of the indicator 130 when the determination button 120 is pressed. Is done. As a result, the user can easily print the print target so as not to protrude from the print medium R. Here, an example will be described in which the “mesh pattern” to be printed is printed at the scheduled printing position P of the printing medium R shown in FIG. 10 without protruding from the printing medium R.

まず、ユーザによる処理を開始させる指示に応答し、ハンディプリンタ100が印刷処理を開始し、端末装置200が、送信処理を開始する。端末装置200が、印刷対象送信処理を開始すると、印刷対象取得部211は、操作部240に入力された印刷対象を示すデータを取得する(ステップS101;図6)。このとき、印刷対象取得部211は、ユーザが入力した「網目模様」を印刷対象として取得する。つぎに、データを送信する指示を受け付けると(ステップS102;Yes;図6)、印刷対象送信部212は、通信部220を介して印刷対象を示すデータをハンディプリンタ100に送信する(ステップS103;図6)。その後、送信処理を終了する指示が入力されると(ステップS104;Yes;図6)、送信処理を終了する。   First, in response to an instruction to start processing by the user, the handy printer 100 starts printing processing, and the terminal device 200 starts transmission processing. When the terminal device 200 starts the print target transmission process, the print target acquisition unit 211 acquires data indicating the print target input to the operation unit 240 (step S101; FIG. 6). At this time, the print target acquisition unit 211 acquires a “mesh pattern” input by the user as a print target. Next, upon receiving an instruction to transmit data (step S102; Yes; FIG. 6), the print target transmission unit 212 transmits data indicating the print target to the handy printer 100 via the communication unit 220 (step S103; FIG. 6). Thereafter, when an instruction to end the transmission process is input (step S104; Yes; FIG. 6), the transmission process ends.

つぎに、端末装置200から印刷対象を示すデータが送信されると、ハンディプリンタ100の印刷対象取得部111は、端末装置200から送信された印刷対象を示すデータを取得し、RAM190に格納する(ステップS201;図7)。つぎに、インジケータ表示制御部112は、インジケータ130を緑色に点灯する(ステップS202;図7)。   Next, when data indicating a print target is transmitted from the terminal device 200, the print target acquisition unit 111 of the handy printer 100 acquires the data indicating the print target transmitted from the terminal device 200 and stores the data in the RAM 190 ( Step S201; FIG. 7). Next, the indicator display control part 112 lights the indicator 130 in green (step S202; FIG. 7).

つぎに、ユーザがインジケータ130を印刷予定位置Pに合わせて決定ボタン120を押すと(ステップS203;Yes;図7)、インジケータ表示制御部112は、インジケータ130を白色に点灯する(ステップS204;図7)。つぎに、印刷領域検出部113は、決定ボタン120が押されてから基準距離d1走査されたと判定すると(ステップS205;Yes;図7)、印刷領域検出部113は、印刷領域検出処理を実行する(ステップS206;図7)。   Next, when the user sets the indicator 130 to the scheduled printing position P and presses the enter button 120 (step S203; Yes; FIG. 7), the indicator display control unit 112 lights the indicator 130 in white (step S204; FIG. 7). Next, when the print region detection unit 113 determines that the reference distance d1 has been scanned after the determination button 120 is pressed (step S205; Yes; FIG. 7), the print region detection unit 113 executes a print region detection process. (Step S206; FIG. 7).

印刷領域検出処理では、決定ボタン120が押されてから距離L走査されたとき、スキャナ150により読み取られた1ドットラインの画像のうち被印刷媒体Rが検出された部分をRAM190に記憶する。図11に示すように、決定ボタン120が押されてから距離L1走査されると、1番目の受光素子P1からm番目の受光素子Pmが被印刷媒体Rの上に位置するので、1番目の受光素子P1からm番目の受光素子Pmは、被印刷媒体Rを検出する。その後、1番目の受光素子P1からm番目の受光素子Pmが被印刷媒体Rを検出した旨をRAM190に記憶する。なお、1<m<nである。   In the print area detection process, when the distance L is scanned after the determination button 120 is pressed, the portion where the print medium R is detected in the image of one dot line read by the scanner 150 is stored in the RAM 190. As shown in FIG. 11, when the determination button 120 is pressed and the distance L1 is scanned, the mth light receiving element Pm from the first light receiving element P1 is positioned on the print medium R, and therefore The m-th light receiving element Pm from the light receiving element P1 detects the printing medium R. Thereafter, the fact that the mth light receiving element Pm from the first light receiving element P1 has detected the printing medium R is stored in the RAM 190. Note that 1 <m <n.

つぎに、ドットライン印刷処理を実行する(ステップS207;図7)。ドットライン印刷処理では、決定ボタン120が押されてからハンディプリンタ100が距離L1−基準距離d2走査されたとき、被印刷媒体Rを検出した部分に、マゼンタ色印刷ヘッド160Mからインクを吐出する。図11に示す位置を距離L1走査された位置とすると、距離L1−基準距離d2走査されたとき、1番目の受光素子P1からo番目の受光素子Poが被印刷媒体Rの上に位置するので、スキャナ150により読み取られた1ドットラインの画像のうち被印刷媒体Rが検出された部分は、1番目の受光素子P1からo番目の受光素子Poにより読み取られた部分である。なお、1<o<mである。印刷ヘッド制御部114は、1番目の受光素子P1からo番目の受光素子Poに対応するマゼンタ色印刷ヘッド160Mの1番目のノズルM1からノズルMoにインクを吐出させる。ハンディプリンタ100が距離L1−基準距離d3または距離L1−基準距離d4走査された位置では、スキャナ150が被印刷媒体Rの上に位置しないので、スキャナ150により被印刷媒体Rが読み取られていない。このため、シアン色印刷ヘッド160Cおよび黄色印刷ヘッド160Yからはインクを吐出しない。   Next, a dot line printing process is executed (step S207; FIG. 7). In the dot line printing process, when the handy printer 100 is scanned by the distance L1 to the reference distance d2 after the determination button 120 is pressed, ink is ejected from the magenta print head 160M to the portion where the printing medium R is detected. If the position shown in FIG. 11 is the position scanned by the distance L1, the distance from the first light receiving element P1 to the oth light receiving element Po is positioned on the printing medium R when the distance L1-reference distance d2 is scanned. In the image of one dot line read by the scanner 150, the portion where the printing medium R is detected is the portion read by the o-th light receiving element Po from the first light receiving element P1. Note that 1 <o <m. The print head controller 114 causes ink to be ejected from the first nozzle M1 to the nozzle Mo of the magenta color print head 160M corresponding to the o-th light receiving element Po from the first light receiving element P1. At the position where the handy printer 100 is scanned by the distance L1 to the reference distance d3 or the distance L1 to the reference distance d4, the scanner 150 is not positioned on the printing medium R, so the printing medium R is not read by the scanner 150. For this reason, ink is not ejected from the cyan print head 160C and the yellow print head 160Y.

ハンディプリンタ100が図12に示す位置に走査されると、スキャナ150の1番目の受光素子P1からp番目の受光素子Ppは、被印刷媒体Rの上に位置するので、受光素子P1からp番目の受光素子Ppは、被印刷媒体Rを検出する。その後、1番目の受光素子P1からp番目の受光素子Ppが被印刷媒体Rを検出した旨をRAM190に記憶する。なお、1<q<nである。   When the handy printer 100 is scanned to the position shown in FIG. 12, the p-th light receiving element Pp from the first light receiving element P1 of the scanner 150 is positioned on the print medium R, so that the p-th light receiving element P1 from the light receiving element P1. The light receiving element Pp detects the printing medium R. After that, the fact that the pth light receiving element Pp from the first light receiving element P1 has detected the printing medium R is stored in the RAM 190. Note that 1 <q <n.

つぎに、ドットライン印刷処理を実行する(ステップS207;図7)。ドットライン印刷処理では、図12に示す位置を距離L2走査された位置とすると、決定ボタン120が押されてからハンディプリンタ100が距離L2−基準距離d2走査されたとき、被印刷媒体Rを検出した部分に、マゼンタ色印刷ヘッド160Mからインクを吐出する。距離L2−基準距離d2走査されたとき、1番目の受光素子P1からq番目の受光素子Pqが被印刷媒体Rの上に位置するので、スキャナ150により読み取られた1ドットラインの画像のうち被印刷媒体Rが検出された部分は、1番目の受光素子P1からq番目の受光素子Pqにより読み取られた部分である。印刷ヘッド制御部114は、1番目の受光素子P1からq番目の受光素子Pqに対応するマゼンタ色印刷ヘッド160Mの1番目のノズルM1からq番目のノズルMqにインクを吐出させる。ハンディプリンタ100が距離L2−基準距離d3または距離L2−基準距離d4走査された位置では、スキャナ150の全体で被印刷媒体Rが読み取られているので、シアン色印刷ヘッド160Cおよび黄色印刷ヘッド160Yは、1〜n番目のノズルからインクを吐出する。   Next, a dot line printing process is executed (step S207; FIG. 7). In the dot line printing process, if the position shown in FIG. 12 is the position scanned by the distance L2, the print medium R is detected when the handy printer 100 is scanned by the distance L2-reference distance d2 after the determination button 120 is pressed. Ink is ejected from the magenta color print head 160M to these areas. When the distance L2−the reference distance d2 is scanned, the first light receiving element P1 to the qth light receiving element Pq are positioned on the printing medium R, and thus the image of the one dot line read by the scanner 150 is covered. The portion where the print medium R is detected is a portion read by the qth light receiving element Pq from the first light receiving element P1. The print head controller 114 causes ink to be ejected from the first nozzle M1 to the q-th nozzle Mq of the magenta color print head 160M corresponding to the q-th light-receiving element Pq from the first light-receiving element P1. At the position where the handy printer 100 is scanned by the distance L2-reference distance d3 or the distance L2-reference distance d4, the printing medium R is read by the entire scanner 150, so the cyan print head 160C and the yellow print head 160Y are Ink is ejected from the 1st to nth nozzles.

つぎに、ハンディプリンタ100が図13に示す位置に走査されると、印刷対象の印刷を完了したと判定し(ステップS209;Yes;図7)、インジケータ表示制御部112は、インジケータ130を青色に点灯する(ステップS210;図7)。その後、インジケータ130を消灯し(ステップS211;図7)、印刷処理を終了する。   Next, when the handy printer 100 is scanned to the position shown in FIG. 13, it is determined that printing of the print target has been completed (step S <b> 209; Yes; FIG. 7), and the indicator display control unit 112 turns the indicator 130 to blue. Lights up (step S210; FIG. 7). Thereafter, the indicator 130 is turned off (step S211; FIG. 7), and the printing process is terminated.

以上のように、本実施の形態のハンディプリンタ100によれば、スキャナ150により被印刷媒体Rを検出し、被印刷媒体Rを検出した位置に印刷ヘッド160により印刷対象を印刷する。このため、被印刷媒体R以外の位置には印刷されず、被印刷媒体Rからはみ出さないように印刷対象を印刷することができる。また、ハンディプリンタ100の各色の印刷ヘッド160のノズルの個数は、スキャナ150の受光素子の個数であるn個と同じであるので、正確に印刷対象を被印刷媒体Rからはみ出さないように印刷できる。特に、模様などの画像を被印刷媒体Rの縁部にはみ出さないように印刷する場合に有効である。   As described above, according to the handy printer 100 of the present embodiment, the print medium R is detected by the scanner 150, and the print target 160 is printed at the position where the print medium R is detected. For this reason, the print target can be printed so that it is not printed at a position other than the print medium R and does not protrude from the print medium R. Further, since the number of nozzles of the print head 160 for each color of the handy printer 100 is the same as n, which is the number of light receiving elements of the scanner 150, printing is performed so that the printing target does not protrude from the printing medium R accurately. it can. This is particularly effective when printing an image such as a pattern so as not to protrude from the edge of the printing medium R.

(変形例)
上述の実施の形態のハンディプリンタ100では、被印刷媒体Rを検出する基準となる基準輝度は予めROM180に記憶されている例について説明した。ハンディプリンタ100は被印刷媒体Rを検出できればよく、ハンディプリンタ100のスキャナ150で被印刷媒体Rを予めスキャンし、印刷領域検出部113は、被印刷媒体Rの輝度情報をRAM190に記憶してもよい。この場合、被印刷媒体Rの輝度が予め記憶された基準輝度と異なる場合でも被印刷媒体Rを検出することができる。ハンディプリンタ100は、被印刷媒体Rを予めスキャンして得られた輝度情報により、被印刷媒体Rを検出することができる。また、被印刷媒体Rの色や模様などのパターンを示す情報を記憶し、被印刷媒体Rを色や模様などのパターンにより検出してもよい。
(Modification)
In the handy printer 100 according to the above-described embodiment, the example in which the reference luminance serving as the reference for detecting the printing medium R is stored in the ROM 180 in advance has been described. The handy printer 100 only needs to be able to detect the printing medium R. The printing medium detection unit 113 scans the printing medium R in advance with the scanner 150 of the handy printer 100, and the printing area detection unit 113 stores the luminance information of the printing medium R in the RAM 190. Good. In this case, the printing medium R can be detected even when the luminance of the printing medium R is different from the reference luminance stored in advance. The handy printer 100 can detect the printing medium R based on luminance information obtained by scanning the printing medium R in advance. Further, information indicating a pattern such as a color or a pattern of the printing medium R may be stored, and the printing medium R may be detected by a pattern such as a color or a pattern.

上述の実施の形態のハンディプリンタ100では、印刷領域検出部113が被印刷媒体Rを検出する例について説明した。ハンディプリンタ100は、被印刷媒体Rに印刷対象を印刷できればよく、印刷領域検出部113は、被印刷媒体R以外の領域を印刷禁止領域として検出し、印刷ヘッド制御部114は、印刷ヘッド160により印刷禁止領域に印刷しないように制御してもよい。例えば、検出された輝度が基準輝度未満である領域を印刷禁止領域としてもよい。また、予め印刷禁止領域をスキャナ150でスキャンし、印刷領域検出部113は、印刷禁止領域の輝度情報をRAM190に記憶する。この場合、予めスキャナ150で印刷禁止領域をスキャンし、印刷禁止領域の輝度情報をRAM190に記憶することで、ハンディプリンタ100が印刷禁止領域に印刷対象を印刷することを防ぐことができる。また、図14に示す印刷禁止領域Bの色や模様などのパターンを示す情報を記憶し、印刷領域検出部113は、印刷禁止領域Bを色や模様などのパターンにより検出してもよい。印刷禁止領域Bとしては、被印刷媒体Rを置く机などが含まれる。   In the handy printer 100 of the above-described embodiment, the example in which the print region detection unit 113 detects the print medium R has been described. The handy printer 100 only needs to be able to print an object to be printed on the printing medium R. The printing area detection unit 113 detects an area other than the printing medium R as a printing prohibition area, and the print head control unit 114 uses the printing head 160. You may control not to print in a printing prohibition area | region. For example, an area where the detected luminance is less than the reference luminance may be set as the print prohibited area. Further, the print prohibition area is scanned by the scanner 150 in advance, and the print area detection unit 113 stores the luminance information of the print prohibition area in the RAM 190. In this case, it is possible to prevent the handy printer 100 from printing the print target in the print prohibited area by scanning the print prohibited area with the scanner 150 in advance and storing the luminance information of the print prohibited area in the RAM 190. Further, information indicating a pattern such as a color or a pattern of the print prohibited area B shown in FIG. 14 may be stored, and the print area detecting unit 113 may detect the print prohibited area B using a pattern such as a color or a pattern. The print prohibition area B includes a desk on which the printing medium R is placed.

また、ハンディプリンタ100は、予め被印刷媒体Rおよび被印刷媒体R以外の領域をスキャナ150でスキャンし、被印刷媒体Rおよび被印刷媒体R以外の領域の輝度などの情報をRAM190に記憶し、被印刷媒体Rの輝度と被印刷媒体R以外の領域の輝度との間の輝度に基づいて、印刷領域または印刷禁止領域を検出してもよい。このようにすることで、被印刷媒体Rと被印刷媒体R以外との領域を正確に検出できる。   The handy printer 100 scans the print medium R and the area other than the print medium R in advance with the scanner 150, and stores information such as the brightness of the print medium R and the area other than the print medium R in the RAM 190. The print area or the print prohibition area may be detected based on the brightness between the brightness of the printing medium R and the brightness of the area other than the printing medium R. By doing in this way, the area | regions other than the printing medium R and the printing medium R can be detected correctly.

また、印刷領域検出部113は、被印刷媒体Rの縁部Eを検出し、縁部Eの内側を被印刷媒体Rとして検出してもよい。この場合、印刷領域検出部113は、印刷開始前に被印刷媒体Rから走査が開始されるか、被印刷媒体Rの外から走査が開始されるかの情報を予め受け付ける。被印刷媒体Rから走査が開始される情報を受け付けた場合、決定ボタン120が押されると印刷を開始し、縁部Eを検出すると、縁部Eを検出した位置で印刷を終了する。被印刷媒体Rの外から走査が開始される情報を受け付けた場合、決定ボタン120が押されてから縁部Eを検出すると、縁部Eを検出した位置から印刷を開始する。印刷を開始した後、再度縁部Eを検出すると、縁部Eを検出した位置で印刷を終了する。縁部Eは、図15に示す被印刷媒体Rと被印刷媒体Rの外の領域との輝度差により検出してもよい。   The print region detection unit 113 may detect the edge E of the printing medium R and detect the inside of the edge E as the printing medium R. In this case, the print region detection unit 113 receives in advance information on whether scanning is started from the printing medium R before scanning is started or scanning is started from outside the printing medium R. When the information for starting scanning is received from the printing medium R, printing is started when the determination button 120 is pressed, and when the edge E is detected, printing is terminated at the position where the edge E is detected. When the information for starting scanning is received from outside the printing medium R, when the edge E is detected after the determination button 120 is pressed, printing is started from the position where the edge E is detected. When the edge E is detected again after starting printing, the printing is terminated at the position where the edge E is detected. The edge E may be detected by a luminance difference between the printing medium R and the area outside the printing medium R shown in FIG.

また、印刷領域検出部113は、縁部Eを示す線ELを検出し、線ELの内側を印刷領域として検出してもよい。例えば、図16に示す線ELを検出し、線ELで囲まれた内側を印刷領域として検出し、線ELの内側に印刷対象を印刷するようにしてもよい。   Further, the print area detection unit 113 may detect the line EL indicating the edge E and detect the inside of the line EL as the print area. For example, the line EL shown in FIG. 16 may be detected, the inside surrounded by the line EL may be detected as a print area, and the print target may be printed inside the line EL.

上述の実施の形態のハンディプリンタ100では、印刷領域を輝度により検出していたが、印刷領域を検出する方法は輝度以外のものであってもよい。例えば、印刷領域検出部113は、色またはパターンにより印刷領域を検出してもよい。   In the handy printer 100 of the above-described embodiment, the print area is detected based on the brightness, but the method for detecting the print area may be other than the brightness. For example, the print area detection unit 113 may detect the print area based on a color or a pattern.

上述の実施の形態のハンディプリンタ100では、スキャナ150がn個の受光素子を有し、印刷ヘッド160M、160C、160Yが、n個のノズルを有する例について説明した。ハンディプリンタ100は、スキャナ150により被印刷媒体Rを検出し、被印刷媒体Rを検出した部分に印刷ヘッド160により印刷対象を印刷することができればよく、スキャナ150は、複数の受光素子を有すればよく、スキャナ150の受光素子の数と印刷ヘッド160M、160C、160Yのノズルの数は異なってもよい。この場合、印刷ヘッド160M、160C、160Yのノズルに対応するスキャナ150の受光素子により被印刷媒体Rが検出された被印刷媒体Rに印刷する。   In the handy printer 100 of the above-described embodiment, the example in which the scanner 150 has n light receiving elements and the print heads 160M, 160C, and 160Y have n nozzles has been described. The handy printer 100 only needs to detect the print medium R by the scanner 150 and print the print target on the portion where the print medium R is detected by the print head 160. The scanner 150 includes a plurality of light receiving elements. The number of light receiving elements of the scanner 150 may be different from the number of nozzles of the print heads 160M, 160C, and 160Y. In this case, the printing medium R is printed on the printing medium R detected by the light receiving element of the scanner 150 corresponding to the nozzles of the print heads 160M, 160C, and 160Y.

例えば、図17に示すように、スキャナ150が、受光素子Pa〜Peを有してもよい。この場合、受光素子Pa〜Peが検出した被印刷媒体Rの領域のデータを補完して、受光素子Pa〜Peの間について被印刷媒体Rの領域を算出してもよい。補完の方法としては、線形補間、スプライン補完などを用いることができる。スキャナ150の受光素子の数を少なくすることで、スキャナ150のコストを抑えることができる。   For example, as illustrated in FIG. 17, the scanner 150 may include light receiving elements Pa to Pe. In this case, the area of the print medium R detected by the light receiving elements Pa to Pe may be complemented to calculate the area of the print medium R between the light receiving elements Pa to Pe. As interpolation methods, linear interpolation, spline interpolation, or the like can be used. By reducing the number of light receiving elements of the scanner 150, the cost of the scanner 150 can be reduced.

上述の実施の形態のハンディプリンタ100では、主走査方向にライン状に並んで設けられた受光素子を有するスキャナ150を有する例について説明した。スキャナ150は、印刷領域の情報を取得できればよく、印刷領域を撮像するカメラをスキャナ150として用いてもよい。   In the handy printer 100 of the above-described embodiment, the example in which the scanner 150 having the light receiving elements provided in a line in the main scanning direction is described. The scanner 150 only needs to be able to acquire print area information, and a camera that captures an image of the print area may be used as the scanner 150.

上述の実施の形態では、印刷ヘッド160がノズルからマゼンタ色、シアン色、黄色のインクをそれぞれ吐出する例について説明したが、印刷ヘッド160は、単色または2色のインクを吐出するものでもよく、4色以上のインクを吐出するものでもよい。また、印刷ヘッド160が、ライン状にノズルが並んで設けられているインクジェット式の例について説明したが、印刷ヘッド160は、サーマル式のものであってもよく、他の方式であってもよい。   In the above-described embodiment, an example in which the print head 160 ejects magenta, cyan, and yellow ink from the nozzles has been described. However, the print head 160 may eject single-color or two-color ink, It may eject four or more colors of ink. In addition, although an example of an ink jet type in which the print head 160 is provided with nozzles arranged in a line has been described, the print head 160 may be a thermal type or another type. .

また、CPU、RAM、ROM等から構成されるハンディプリンタ100、端末装置200が実行する送信処理、印刷処理を行う中心となる部分は、専用のシステムによらず、通常の情報携帯端末(スマートフォン、タブレットPC)、パーソナルコンピュータなどを用いて実行可能である。たとえば、上述の動作を実行するためのコンピュータプログラムを、コンピュータが読み取り可能な記録媒体(フレキシブルディスク、CD−ROM(Compact Disc Read Only Memory)、DVD−ROM(Digital Versatile Disc Read Only Memory)等)に格納して配布し、このコンピュータプログラムを情報携帯端末などにインストールすることにより、上述の処理を実行する情報端末を構成してもよい。また、インターネット等の通信ネットワーク上のサーバ装置が有する記憶装置にこのコンピュータプログラムを格納しておき、通常の情報処理端末などがダウンロード等することで情報処理装置を構成してもよい。   In addition, a handy printer 100 including a CPU, a RAM, a ROM, and the like, and a central part that performs a transmission process and a printing process executed by the terminal device 200 are not related to a dedicated system, but a normal information portable terminal (smart phone, It can be executed using a tablet PC) or a personal computer. For example, a computer program for executing the above-described operation is stored on a computer-readable recording medium (flexible disc, CD-ROM (Compact Disc Read Only Memory), DVD-ROM (Digital Versatile Disc Read Only Memory), etc.). An information terminal that performs the above-described processing may be configured by storing and distributing and installing this computer program in an information portable terminal or the like. Alternatively, the computer program may be stored in a storage device included in a server device on a communication network such as the Internet, and the information processing device may be configured by being downloaded by a normal information processing terminal or the like.

また、ハンディプリンタ100、端末装置200の機能を、OS(Operating System)とアプリケーションプログラムとの分担、またはOSとアプリケーションプログラムとの協働により実現する場合などには、アプリケーションプログラム部分のみを記録媒体や記憶装置に格納してもよい。   Further, when the functions of the handy printer 100 and the terminal device 200 are realized by sharing an OS (Operating System) and an application program, or by cooperation between the OS and the application program, only the application program portion is stored in a recording medium or the like. You may store in a memory | storage device.

また、搬送波にコンピュータプログラムを重畳し、通信ネットワークを介して配信することも可能である。例えば、通信ネットワーク上の掲示板(BBS:Bulletin Board System)にこのコンピュータプログラムを掲示し、ネットワークを介してこのコンピュータプログラムを配信してもよい。そして、このコンピュータプログラムを起動し、OSの制御下で、他のアプリケーションプログラムと同様に実行することにより、上述の処理を実行できるように構成してもよい。   It is also possible to superimpose a computer program on a carrier wave and distribute it via a communication network. For example, this computer program may be posted on a bulletin board (BBS: Bulletin Board System) on a communication network and distributed through the network. The computer program may be started and executed in the same manner as other application programs under the control of the OS, so that the above-described processing can be executed.

以上、本発明の好ましい実施形態について説明したが、本発明は係る特定の実施形態に限定されるものではなく、本発明には、特許請求の範囲に記載された発明とその均等の範囲とが含まれる。以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。   The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the specific embodiments, and the present invention includes the invention described in the claims and the equivalent scope thereof. included. Hereinafter, the invention described in the scope of claims of the present application will be appended.

(付記1)
印刷ヘッドと、
前記印刷ヘッドを底面に有する筐体と、
前記筐体が副走査方向に走査された距離を検知する走査距離検出手段と、
印刷対象を印刷する印刷領域を検出する印刷領域検出手段と、
前記印刷領域検出手段により検出された前記印刷領域に前記印刷対象を前記印刷ヘッドにより印刷させる印刷ヘッド制御手段と、
を備えることを特徴とする印刷装置。
(Appendix 1)
A print head;
A housing having the print head on the bottom surface;
Scanning distance detection means for detecting a distance by which the casing is scanned in the sub-scanning direction;
A print area detecting means for detecting a print area for printing the print target;
Print head control means for causing the print head to print the print object in the print area detected by the print area detection means;
A printing apparatus comprising:

(付記2)
走査された領域の画像を読み取るスキャナを備え、
前記印刷領域検出手段は、前記スキャナにより読み取られた画像から前記印刷領域を検出する、
ことを特徴とする付記1に記載の印刷装置。
(Appendix 2)
A scanner that reads an image of the scanned area;
The printing area detecting means detects the printing area from an image read by the scanner;
The printing apparatus according to Supplementary Note 1, wherein

(付記3)
前記印刷領域検出手段は、前記スキャナにより読み取られた画像から基準輝度より大きい輝度である部分を前記印刷領域として検出する、
ことを特徴とする付記2に記載の印刷装置。
(Appendix 3)
The printing area detecting means detects, as the printing area, a portion having a luminance greater than a reference luminance from an image read by the scanner;
The printing apparatus according to Supplementary Note 2, wherein

(付記4)
前記印刷領域検出手段は、前記スキャナにより読み取られた画像から基準輝度未満の輝度である部分を印刷禁止領域として検出し、
前記印刷ヘッド制御手段は、前記印刷禁止領域以外の部分に前記印刷対象を印刷する、
ことを特徴とする付記2または3に記載の印刷装置。
(Appendix 4)
The printing area detecting means detects a portion having a luminance lower than a reference luminance from the image read by the scanner as a printing prohibited area;
The print head control means prints the print object in a portion other than the print prohibited area;
The printing apparatus according to Supplementary Note 2 or 3, wherein:

(付記5)
前記印刷領域検出手段は、前記スキャナにより読み取られた画像から色またはパターンを取得し、前記色または前記パターンにより前記印刷領域または印刷禁止領域を検出する、
ことを特徴とする付記2から4の何れか1つに記載の印刷装置。
(Appendix 5)
The print area detecting means obtains a color or pattern from an image read by the scanner, and detects the print area or print prohibited area based on the color or the pattern;
The printing apparatus according to any one of appendices 2 to 4, characterized in that:

(付記6)
前記印刷領域検出手段は、縁部を検出し、前記縁部の内側を前記印刷領域として検出する、
ことを特徴とする付記1から5の何れか1つに記載の印刷装置。
(Appendix 6)
The printing area detecting means detects an edge, and detects the inside of the edge as the printing area;
The printing apparatus according to any one of supplementary notes 1 to 5, wherein:

(付記7)
前記印刷領域検出手段は、被印刷媒体を前記印刷領域として検出する、
ことを特徴とする付記1から6の何れか1つに記載の印刷装置。
(Appendix 7)
The printing area detecting means detects a printing medium as the printing area;
The printing apparatus according to any one of supplementary notes 1 to 6, wherein:

(付記8)
前記印刷ヘッドは、主走査方向にライン状に並んで設けられた複数の印字素子を有し、
前記印刷ヘッド制御手段は、前記走査距離検出手段及び前記印刷領域検出手段の検出結果に基づいて、前記複数の印字素子のうち、前記印刷領域上の前記印字素子によって前記印刷対象を印刷するように前記印刷ヘッドを制御する、
ことを特徴とする付記1から7の何れか1つに記載の印刷装置。
(Appendix 8)
The print head has a plurality of printing elements arranged in a line in the main scanning direction,
The print head control means prints the print object by the print element on the print area among the plurality of print elements based on the detection results of the scanning distance detection means and the print area detection means. Controlling the print head;
The printing apparatus according to any one of appendices 1 to 7, characterized in that:

(付記9)
印刷ヘッドと、
前記印刷ヘッドを底面に有する筐体と、
前記筐体が副走査方向に走査された距離を検知する走査距離検出手段と、
を備える印刷装置を用いて、
印刷対象を印刷する印刷領域を検出する印刷領域検出ステップと、
前記印刷領域検出ステップにより検出された前記印刷領域に前記印刷対象を前記印刷ヘッドにより印刷させる印刷ヘッド制御ステップと、
を備えることを特徴とする印刷方法。
(Appendix 9)
A print head;
A housing having the print head on the bottom surface;
Scanning distance detection means for detecting a distance by which the casing is scanned in the sub-scanning direction;
Using a printing device comprising
A print area detecting step for detecting a print area for printing the print target;
A print head control step of causing the print head to print the print object in the print area detected by the print area detection step;
A printing method comprising:

(付記10)
印刷ヘッドと、
前記印刷ヘッドを底面に有する筐体と、
前記筐体が副走査方向に走査された距離を検知する走査距離検出手段と、
を備える印刷装置を制御するコンピュータを、
印刷対象を印刷する印刷領域を検出する印刷領域検出手段、
前記印刷領域検出手段により検出された前記印刷領域に前記印刷対象を前記印刷ヘッドにより印刷させる印刷ヘッド制御手段、
として機能させる、
ことを特徴とするプログラム。
(Appendix 10)
A print head;
A housing having the print head on the bottom surface;
Scanning distance detection means for detecting a distance by which the casing is scanned in the sub-scanning direction;
A computer for controlling a printing apparatus comprising:
A print area detecting means for detecting a print area for printing a print target;
Print head control means for causing the print head to print the print object in the print area detected by the print area detection means;
Function as
A program characterized by that.

1…印刷システム、100…ハンディプリンタ、101…筐体、110、210…制御部、111、211…印刷対象取得部、112…インジケータ表示制御部、113…印刷領域検出部、114…印刷ヘッド制御部、120…決定ボタン、130…インジケータ、140…走査距離検出部、150…スキャナ、160…印刷ヘッド、160M…マゼンタ色印刷ヘッド、160C…シアン色印刷ヘッド、160Y…黄色印刷ヘッド、170、220…通信部、180、250…ROM、190、260…RAM、200…端末装置、212…印刷対象送信部、230…ディスプレイ、240…操作部、R…被印刷媒体、d1〜d4…基準距離 DESCRIPTION OF SYMBOLS 1 ... Printing system, 100 ... Handy printer, 101 ... Housing | casing, 110, 210 ... Control part, 111, 211 ... Print object acquisition part, 112 ... Indicator display control part, 113 ... Print area detection part, 114 ... Print head control , 120 ... determination button, 130 ... indicator, 140 ... scanning distance detector, 150 ... scanner, 160 ... print head, 160M ... magenta print head, 160C ... cyan print head, 160Y ... yellow print head, 170, 220 Communication unit, 180, 250 ... ROM, 190, 260 ... RAM, 200 ... Terminal device, 212 ... Print target transmission unit, 230 ... Display, 240 ... Operation unit, R ... Medium to be printed, d1-d4 ... Reference distance

Claims (10)

印刷ヘッドと、
前記印刷ヘッドを底面に有する筐体と、
前記筐体が副走査方向に走査された距離を検知する走査距離検出手段と、
印刷対象を印刷する印刷領域を検出する印刷領域検出手段と、
前記印刷領域検出手段により検出された前記印刷領域に前記印刷対象を前記印刷ヘッドにより印刷させる印刷ヘッド制御手段と、
を備えることを特徴とする印刷装置。
A print head;
A housing having the print head on the bottom surface;
Scanning distance detection means for detecting a distance by which the casing is scanned in the sub-scanning direction;
A print area detecting means for detecting a print area for printing the print target;
Print head control means for causing the print head to print the print object in the print area detected by the print area detection means;
A printing apparatus comprising:
走査された領域の画像を読み取るスキャナを備え、
前記印刷領域検出手段は、前記スキャナにより読み取られた画像から前記印刷領域を検出する、
ことを特徴とする請求項1に記載の印刷装置。
A scanner that reads an image of the scanned area;
The printing area detecting means detects the printing area from an image read by the scanner;
The printing apparatus according to claim 1.
前記印刷領域検出手段は、前記スキャナにより読み取られた画像から基準輝度より大きい輝度である部分を前記印刷領域として検出する、
ことを特徴とする請求項2に記載の印刷装置。
The printing area detecting means detects, as the printing area, a portion having a luminance greater than a reference luminance from an image read by the scanner;
The printing apparatus according to claim 2.
前記印刷領域検出手段は、前記スキャナにより読み取られた画像から基準輝度未満の輝度である部分を印刷禁止領域として検出し、
前記印刷ヘッド制御手段は、前記印刷禁止領域以外の部分に前記印刷対象を印刷する、
ことを特徴とする請求項2または3に記載の印刷装置。
The printing area detecting means detects a portion having a luminance lower than a reference luminance from the image read by the scanner as a printing prohibited area;
The print head control means prints the print object in a portion other than the print prohibited area;
The printing apparatus according to claim 2, wherein the printing apparatus is a printer.
前記印刷領域検出手段は、前記スキャナにより読み取られた画像から色またはパターンを取得し、前記色または前記パターンにより前記印刷領域または印刷禁止領域を検出する、
ことを特徴とする請求項2から4の何れか1項に記載の印刷装置。
The print area detecting means obtains a color or pattern from an image read by the scanner, and detects the print area or print prohibited area based on the color or the pattern;
The printing apparatus according to claim 2, wherein the printing apparatus is a printer.
前記印刷領域検出手段は、縁部を検出し、前記縁部の内側を前記印刷領域として検出する、
ことを特徴とする請求項1から5の何れか1項に記載の印刷装置。
The printing area detecting means detects an edge, and detects the inside of the edge as the printing area;
The printing apparatus according to claim 1, wherein the printing apparatus is a printer.
前記印刷領域検出手段は、被印刷媒体を前記印刷領域として検出する、
ことを特徴とする請求項1から6の何れか1項に記載の印刷装置。
The printing area detecting means detects a printing medium as the printing area;
The printing apparatus according to claim 1, wherein the printing apparatus is a printer.
前記印刷ヘッドは、主走査方向にライン状に並んで設けられた複数の印字素子を有し、
前記印刷ヘッド制御手段は、前記走査距離検出手段及び前記印刷領域検出手段の検出結果に基づいて、前記複数の印字素子のうち、前記印刷領域上の前記印字素子によって前記印刷対象を印刷するように前記印刷ヘッドを制御する、
ことを特徴とする請求項1から7の何れか1項に記載の印刷装置。
The print head has a plurality of printing elements arranged in a line in the main scanning direction,
The print head control means prints the print object by the print element on the print area among the plurality of print elements based on the detection results of the scanning distance detection means and the print area detection means. Controlling the print head;
The printing apparatus according to claim 1, wherein the printing apparatus is a printer.
印刷ヘッドと、
前記印刷ヘッドを底面に有する筐体と、
前記筐体が副走査方向に走査された距離を検知する走査距離検出手段と、
を備える印刷装置を用いて、
印刷対象を印刷する印刷領域を検出する印刷領域検出ステップと、
前記印刷領域検出ステップにより検出された前記印刷領域に前記印刷対象を前記印刷ヘッドにより印刷させる印刷ヘッド制御ステップと、
を備えることを特徴とする印刷方法。
A print head;
A housing having the print head on the bottom surface;
Scanning distance detection means for detecting a distance by which the casing is scanned in the sub-scanning direction;
Using a printing device comprising
A print area detecting step for detecting a print area for printing the print target;
A print head control step of causing the print head to print the print object in the print area detected by the print area detection step;
A printing method comprising:
印刷ヘッドと、
前記印刷ヘッドを底面に有する筐体と、
前記筐体が副走査方向に走査された距離を検知する走査距離検出手段と、
を備える印刷装置を制御するコンピュータを、
印刷対象を印刷する印刷領域を検出する印刷領域検出手段、
前記印刷領域検出手段により検出された前記印刷領域に前記印刷対象を前記印刷ヘッドにより印刷させる印刷ヘッド制御手段、
として機能させる、
ことを特徴とするプログラム。
A print head;
A housing having the print head on the bottom surface;
Scanning distance detection means for detecting a distance by which the casing is scanned in the sub-scanning direction;
A computer for controlling a printing apparatus comprising:
A print area detecting means for detecting a print area for printing a print target;
Print head control means for causing the print head to print the print object in the print area detected by the print area detection means;
Function as
A program characterized by that.
JP2018052284A 2018-03-20 2018-03-20 Handy printer, printing method and program Active JP7056282B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018052284A JP7056282B2 (en) 2018-03-20 2018-03-20 Handy printer, printing method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018052284A JP7056282B2 (en) 2018-03-20 2018-03-20 Handy printer, printing method and program

Publications (3)

Publication Number Publication Date
JP2019162810A true JP2019162810A (en) 2019-09-26
JP2019162810A5 JP2019162810A5 (en) 2021-04-22
JP7056282B2 JP7056282B2 (en) 2022-04-19

Family

ID=68064530

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018052284A Active JP7056282B2 (en) 2018-03-20 2018-03-20 Handy printer, printing method and program

Country Status (1)

Country Link
JP (1) JP7056282B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1035029A (en) * 1996-07-23 1998-02-10 Brother Ind Ltd Manual printer
JPH1158851A (en) * 1997-08-19 1999-03-02 Brother Ind Ltd Handy printer
JP2001096874A (en) * 1999-09-30 2001-04-10 Fuji Photo Film Co Ltd Method and apparatus for recording image
US20080007762A1 (en) * 2006-06-29 2008-01-10 Douglas Laurence Robertson Methods for Improving Print Quality in a Hand-held Printer
JP2016000486A (en) * 2014-06-12 2016-01-07 株式会社リコー Handy mobile printer, control method of handy mobile printer, and program
JP2016007775A (en) * 2014-06-24 2016-01-18 株式会社リコー Image formation device, control method of the same, and control program
JP2017170720A (en) * 2016-03-23 2017-09-28 カシオ計算機株式会社 Printing device, printing method and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1035029A (en) * 1996-07-23 1998-02-10 Brother Ind Ltd Manual printer
JPH1158851A (en) * 1997-08-19 1999-03-02 Brother Ind Ltd Handy printer
JP2001096874A (en) * 1999-09-30 2001-04-10 Fuji Photo Film Co Ltd Method and apparatus for recording image
US20080007762A1 (en) * 2006-06-29 2008-01-10 Douglas Laurence Robertson Methods for Improving Print Quality in a Hand-held Printer
JP2016000486A (en) * 2014-06-12 2016-01-07 株式会社リコー Handy mobile printer, control method of handy mobile printer, and program
JP2016007775A (en) * 2014-06-24 2016-01-18 株式会社リコー Image formation device, control method of the same, and control program
JP2017170720A (en) * 2016-03-23 2017-09-28 カシオ計算機株式会社 Printing device, printing method and program

Also Published As

Publication number Publication date
JP7056282B2 (en) 2022-04-19

Similar Documents

Publication Publication Date Title
JP6756321B2 (en) Printing equipment
JP2017170807A (en) Printing assistance equipment, printer, printing system, notification method and program
JP2018103475A (en) Printer
EP2093658A2 (en) Printing control system, printing request terminal, printer, printing control program, and printing control method
JP7040040B2 (en) Printing equipment, printing support methods and programs
JP2017170808A (en) Printing assistance equipment, printer, printing system, printing assistance method and program
US8000740B1 (en) Image translation device for a mobile device
JP7056467B2 (en) Printing equipment, printing systems, printing methods and programs
CN111251727B (en) Printing apparatus, printing method, and recording medium
JP2018530461A (en) Imaging apparatus and method for reducing banding
JP6841033B2 (en) Printing equipment
JP7006247B2 (en) Printing equipment, printing systems, printing methods and programs
JP7206997B2 (en) IMAGE FORMING APPARATUS, STATE CONTROL METHOD, AND PROGRAM
JP7056282B2 (en) Handy printer, printing method and program
JP2019166661A (en) Printer, printing system, printing method, and program
JP7173381B2 (en) PRINTING DEVICE, PRINTING METHOD AND PROGRAM
JP6954421B2 (en) Printing equipment, printing methods and programs
JP2007102328A (en) Printing system, printing method and program
JP7180331B2 (en) printer
CN101330552B (en) Image forming device and control method thereof
JP2018099832A (en) Printer, printing method and program
EP3225407A1 (en) Liquid droplet discharging control device, liquid droplet discharging control method, and liquid droplet discharging apparatus
US11738566B2 (en) Printing program and producing method for print
US20230202166A1 (en) Liquid ejecting device and liquid ejecting method
JP6927097B2 (en) Image processing system and image forming equipment

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210308

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210308

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220125

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220207

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220308

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220321

R150 Certificate of patent or registration of utility model

Ref document number: 7056282

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150