JP6260177B2 - Image processing system, image processing method, and image processing program - Google Patents

Image processing system, image processing method, and image processing program Download PDF

Info

Publication number
JP6260177B2
JP6260177B2 JP2013205520A JP2013205520A JP6260177B2 JP 6260177 B2 JP6260177 B2 JP 6260177B2 JP 2013205520 A JP2013205520 A JP 2013205520A JP 2013205520 A JP2013205520 A JP 2013205520A JP 6260177 B2 JP6260177 B2 JP 6260177B2
Authority
JP
Japan
Prior art keywords
target image
image
sheet
recording
ruled line
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.)
Active
Application number
JP2013205520A
Other languages
Japanese (ja)
Other versions
JP2015069575A (en
Inventor
哲憲 森
哲憲 森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2013205520A priority Critical patent/JP6260177B2/en
Publication of JP2015069575A publication Critical patent/JP2015069575A/en
Application granted granted Critical
Publication of JP6260177B2 publication Critical patent/JP6260177B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本発明は、罫線を含む画像をシートに記録する画像処理システムに関する。   The present invention relates to an image processing system that records an image including ruled lines on a sheet.

従来より、シートに画像を記録する画像処理装置が知られている。また、画像が記録されたシートは、二つ折りされて保管されることがある。そこで、例えば特許文献1には、シートの折り目に重なった画像が見づらくなるという課題を解決するために、シートの中心線を跨いで画像が形成されないように、シート上に画像を配置する画像処理装置が開示されている。   Conventionally, an image processing apparatus that records an image on a sheet is known. In addition, a sheet on which an image is recorded may be folded and stored. Thus, for example, in Patent Document 1, in order to solve the problem that it is difficult to see an image that overlaps the sheet crease, image processing is performed in which an image is arranged on the sheet so that the image is not formed across the center line of the sheet. An apparatus is disclosed.

特開2007−72876号公報JP 2007-72876 A

しかしながら、特許文献1に記載の技術は、シートの画像記録面に2つの画像を記録する(所謂、2in1印刷)ことを前提としており、例えば、表のような画像をシートに大きく記録する場合にまで適用することはできない。   However, the technique described in Patent Document 1 is based on the premise that two images are recorded on the image recording surface of the sheet (so-called 2-in-1 printing). For example, when a large image such as a table is recorded on the sheet, Cannot be applied.

本発明は、上記の事情に鑑みてなされたものであり、その目的は、罫線を含む画像を見やすいレイアウトでシートに記録する画像処理装置を提供することにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image processing apparatus that records an image including ruled lines on a sheet in an easy-to-view layout.

(1) 本発明に係る画像処理システムは、シートに画像を記録する記録部と、制御部とを備える。上記制御部は、第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出処理と、上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出処理で検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付処理と、上記第1受付処理で上記罫線合わせ指示が受け付けられたことを条件として、上記第1方向の両側において上記第2位置に位置する上記対象画像の端部とシートの端部との余白距離を算出する算出処理と、上記算出処理で算出された上記余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動処理と、上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付処理と、上記画像移動処理で上記対象画像の記録位置が変更され且つ上記第2受付処理で上記画像記録指示の入力が受け付けられたことを条件として、上記記録部に、シート上の上記第2位置に上記対象画像を記録させる記録処理とを実行する。   (1) An image processing system according to the present invention includes a recording unit that records an image on a sheet, and a control unit. The control unit detects a ruled line extending in the second direction in a target image recorded in a first position on a sheet having a length in the first direction longer than a second direction orthogonal to the first direction. The detection process, the center line, which is a virtual line on the sheet extending in the second direction at the center of the first direction, and the ruled line detected in the ruled line detection process match the second position on the sheet. On the condition that the ruled line alignment instruction is received in the first reception process and the first reception process that receives an input of the ruled line alignment instruction indicating that the target image is to be moved, the second reception is performed on both sides of the first direction. The calculation process for calculating the margin distance between the edge of the target image located at the position and the edge of the sheet and the margin distance calculated in the calculation process are both greater than zero. An image moving process for changing the recording position of the target image from the first position to the second position, a second receiving process for receiving an input of an image recording instruction for recording the target image on a sheet, and the image moving If the recording position of the target image is changed in the process and the input of the image recording instruction is received in the second receiving process, the target image is placed at the second position on the sheet on the recording unit. The recording process to be recorded is executed.

上記構成によれば、対象画像に含まれる罫線とセンタラインとを一致させることにより、対象画像に含まれる文字や図形がセンタラインに重なるのを抑制することができる。その結果、罫線を含む対象画像を見やすいレイアウトでシートに記録することができる。   According to the above configuration, by matching the ruled line and the center line included in the target image, it is possible to suppress the characters and graphics included in the target image from overlapping the center line. As a result, the target image including the ruled line can be recorded on the sheet in an easy-to-view layout.

(2) 好ましくは、該画像処理システムは、表示部をさらに備える。また、上記対象画像は、複数の上記罫線を含む。そして、上記制御部は、シート上の上記第1位置に位置する上記対象画像を表すプレビュー画像を上記表示部に表示させるプレビュー処理を実行し、上記第1受付処理において、上記プレビュー画像に含まれる複数の上記罫線のうちの1つである指定罫線の選択をユーザから受け付け、上記算出処理において、上記指定罫線を上記センタラインに一致させた場合の上記余白距離を算出する。   (2) Preferably, the image processing system further includes a display unit. The target image includes a plurality of ruled lines. And the said control part performs the preview process which displays the said preview image showing the said target image located in the said 1st position on a sheet | seat on the said display part, and is contained in the said preview image in the said 1st reception process. The selection of a specified ruled line that is one of the plurality of ruled lines is received from the user, and the margin distance when the specified ruled line is matched with the center line is calculated in the calculation process.

上記構成によれば、シート上における対象画像の配置をユーザに決定させることができるので、対象画像をユーザにとって見やすいレイアウトでシートに記録することができる。   According to the above configuration, since the user can determine the arrangement of the target image on the sheet, the target image can be recorded on the sheet in a layout that is easy for the user to see.

(3) 好ましくは、上記対象画像は、複数の上記罫線を含む。そして、上記制御部は、上記算出処理において、複数の上記罫線それぞれを上記センタラインに一致させた場合の上記余白距離を算出し、上記画像移動処理において、複数の上記罫線のうち、上記算出処理で算出された余白距離の差が最小となる上記罫線を上記センタラインに一致させる。   (3) Preferably, the target image includes a plurality of the ruled lines. In the calculation process, the control unit calculates the margin distance when each of the plurality of ruled lines is matched with the center line. In the image moving process, the control unit calculates the calculation process among the plurality of ruled lines. The ruled line that minimizes the difference in the margin distance calculated in step 1 is matched with the center line.

上記構成によれば、対象画像をシートの中央に近い位置に記録することができる。   According to the above configuration, the target image can be recorded at a position close to the center of the sheet.

(4) 好ましくは、上記対象画像は、複数の上記罫線を含む。上記制御部は、上記算出処理において、上記第1位置に位置する上記対象画像に含まれる複数の上記罫線のうち、上記第1方向における上記センタラインとの距離が最も近い上記罫線を上記センタラインに一致させた場合の上記余白距離を算出する。   (4) Preferably, the target image includes a plurality of ruled lines. In the calculation process, the control unit determines the ruled line closest to the center line in the first direction among the plurality of ruled lines included in the target image located at the first position as the center line. The margin distance is calculated in the case of matching.

上記構成によれば、画像移動処理における対象画像の移動量が最小になるので、オリジナルに近いレイアウトで対象画像をシートに記録することができる。   According to the above configuration, since the amount of movement of the target image in the image movement process is minimized, the target image can be recorded on the sheet with a layout close to the original.

(5) 好ましくは、上記制御部は、上記第1方向において上記対象画像の長さがシートの長さの半分以下であり且つ上記対象画像の端部が上記罫線で構成されていることを条件として、上記画像移動処理において、上記対象画像の端部に位置する上記罫線を上記センタラインに一致させる。   (5) Preferably, the control unit is provided on the condition that the length of the target image is less than or equal to half of the length of the sheet in the first direction, and an end portion of the target image is configured by the ruled line. In the image movement process, the ruled line located at the end of the target image is matched with the center line.

上記構成によれば、対象画像がシートの折り目を跨ぐことがないので、さらに見やすいレイアウトで対象画像をシートに記録することができる。   According to the above configuration, since the target image does not straddle the fold of the sheet, the target image can be recorded on the sheet with a layout that is easier to see.

(6) 好ましくは、上記対象画像は、複数の上記罫線を含む。上記制御部は、上記第1方向におけるシートの端部と上記センタラインとの中央において上記第2方向に延びるシート上の仮想線であるクォータラインと、上記第2位置に位置する上記対象画像に含まれる複数の上記罫線のうちの当該クォータラインに最も近い上記罫線とが一致するように、上記対象画像内において当該罫線を移動させる画像編集処理を実行する。   (6) Preferably, the target image includes a plurality of ruled lines. The control unit applies the quarter line, which is a virtual line on the sheet extending in the second direction at the center between the end of the sheet in the first direction and the center line, and the target image located at the second position. Image editing processing is performed to move the ruled line in the target image so that the ruled line closest to the quarter line among the plurality of included ruled lines matches.

上記構成によれば、二つ折りされたシートの一方側をさらに二つ折り(所謂、Z折り)した場合にも、見やすいレイアウトで対象画像をシートに記録することができる。   According to the above configuration, even when one side of a folded sheet is further folded in two (so-called Z-folding), the target image can be recorded on the sheet with an easy-to-view layout.

(7) 例えば、上記対象画像は、当該対象画像の上下方向に沿って延びる上記罫線を含む。そして、上記制御部は、上記記録処理において、上記対象画像の上下方向をシートの上記第2方向に沿わせて上記記録部に記録させる。   (7) For example, the target image includes the ruled line extending in the vertical direction of the target image. Then, in the recording process, the control unit causes the recording unit to record the vertical direction of the target image along the second direction of the sheet.

対象画像の上下方向とは、例えば、対象画像に含まれる文字、数字、マーク等の向きによって定まる方向である。上記の例において、ユーザは、横長のシートに記録された対象画像を見ると共に、横長のシートの左右方向の中央において上下方向に延びる罫線に沿って当該シートを折り畳む。但し、本発明は上記の例に限定されず、左右方向に延びる罫線を含む対象画像の上下方向をシートの第1方向に向けて記録してもよい。   The vertical direction of the target image is, for example, a direction determined by the orientation of characters, numbers, marks, etc. included in the target image. In the above example, the user sees the target image recorded on the horizontally long sheet and folds the sheet along a ruled line extending in the up and down direction at the center in the left and right direction of the horizontally long sheet. However, the present invention is not limited to the above example, and the vertical direction of the target image including ruled lines extending in the left-right direction may be recorded in the first direction of the sheet.

(8) 本発明に係る画像処理方法は、第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出ステップと、上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出ステップで検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付ステップと、上記第1受付ステップで上記罫線合わせ指示が受け付けられたことを条件として、上記第1方向の両側において上記第2位置に位置する上記対象画像の端部とシートの端部との余白距離を算出する算出ステップと、上記算出ステップで算出された上記余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動ステップと、上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付ステップと、上記画像移動ステップで上記対象画像の記録位置が変更され且つ上記第2受付ステップで上記画像記録指示の入力が受け付けられたことを条件として、シート上の上記第2位置に上記対象画像を記録する記録ステップとを実行する。   (8) In the image processing method according to the present invention, in the target image recorded at the first position on the sheet whose length in the first direction is longer than the second direction orthogonal to the first direction, the second direction A ruled line detecting step for detecting a ruled line extending in the sheet, a center line that is a virtual line on the sheet extending in the second direction at the center in the first direction, and the ruled line detected in the ruled line detecting step matches A first receiving step for receiving an input of a ruled line alignment instruction indicating that the target image is to be moved to the second position above, and the first line on the condition that the ruled line alignment instruction is received in the first receiving step. A calculation step of calculating a margin distance between the edge of the target image and the edge of the sheet located at the second position on both sides of the direction, and the margin distance calculated in the calculation step is An image moving step for changing the recording position of the target image on the sheet from the first position to the second position on the condition that the deviation is also larger than 0, and input of an image recording instruction for recording the target image on the sheet On the sheet, on the condition that the recording position of the target image is changed in the image moving step and the input of the image recording instruction is received in the second receiving step. And a recording step of recording the target image at the position.

(9) 本発明に係る画像処理プログラムは、シートに画像を記録する記録装置に接続されたコンピュータによって実行される。そして、当該画像処理プログラムは、第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出ステップと、上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出ステップで検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付ステップと、上記第1受付ステップで上記罫線合わせ指示が受け付けられたことを条件として、上記第1方向の両側において上記第2位置に位置する上記対象画像の端部とシートの端部との余白距離を算出する算出ステップと、上記算出ステップで算出された上記余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動ステップと、上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付ステップと、上記画像移動ステップで上記対象画像の記録位置が変更され且つ上記第2受付ステップで上記画像記録指示の入力が受け付けられたことを条件として、シート上の上記第2位置に上記対象画像を記録する記録ステップと、を上記コンピュータに実行させる。   (9) The image processing program according to the present invention is executed by a computer connected to a recording apparatus that records an image on a sheet. Then, the image processing program creates a ruled line extending in the second direction in the target image recorded at the first position on the sheet whose length in the first direction is longer than the second direction orthogonal to the first direction. A second ruled line detecting step for detecting a second line on the sheet in which the center line, which is a virtual line on the sheet extending in the second direction at the center of the first direction, matches the ruled line detected in the ruled line detecting step; A first receiving step for receiving an input of a ruled line alignment instruction indicating that the target image is moved to a position, and on both sides of the first direction on condition that the ruled line alignment instruction is received in the first receiving step A calculation step of calculating a margin distance between an end portion of the target image located at the second position and an end portion of the sheet; and the margin distance calculated in the calculation step An image moving step for changing the recording position of the target image on the sheet from the first position to the second position on the condition that both are larger than 0, and an image recording instruction for recording the target image on the sheet On the sheet, on the condition that the recording position of the target image is changed in the image moving step and the input of the image recording instruction is received in the second receiving step. A recording step of recording the target image at a position;

本発明によれば、対象画像に含まれる罫線とセンタラインとを一致させることにより、対象画像に含まれる文字や図形がセンタラインに重なるのを抑制することができる。その結果、罫線を含む対象画像を見やすいレイアウトでシートに記録することができる画像処理システムを得ることができる。   According to the present invention, by matching the ruled line and the center line included in the target image, it is possible to prevent the characters and graphics included in the target image from overlapping the center line. As a result, it is possible to obtain an image processing system that can record a target image including a ruled line on a sheet in an easy-to-view layout.

図1は、実施形態1における画像処理システム100の概略図である。FIG. 1 is a schematic diagram of an image processing system 100 according to the first embodiment. 図2は、(A)が複合機10のブロック図であり、(B)が情報処理装置50のブロック図である。2A is a block diagram of the multifunction device 10, and FIG. 2B is a block diagram of the information processing apparatus 50. 図3は、実施形態1における画像記録処理のフローチャートである。FIG. 3 is a flowchart of the image recording process in the first embodiment. 図4は、表示部53における表示例であって、(A)は画像移動処理前の状態を、(B)は指定罫線を選択する状態を、(C)は画像移動処理後の状態を、(D)は画像編集処理後の状態を示している。4A and 4B show display examples on the display unit 53, where FIG. 4A shows a state before image movement processing, FIG. 4B shows a state where a specified ruled line is selected, FIG. 4C shows a state after image movement processing, (D) shows the state after the image editing process. 図5は、実施形態2における画像記録処理のフローチャートである。FIG. 5 is a flowchart of image recording processing according to the second embodiment. 図6は、表示部53における表示例であって、(A)は画像移動処理前の状態を、(B)は画像移動処理後の状態を、(C)は画像編集処理後の状態を示している。6A and 6B show display examples on the display unit 53, where FIG. 6A shows the state before the image moving process, FIG. 6B shows the state after the image moving process, and FIG. 6C shows the state after the image editing process. ing. 図7は、実施形態3における画像記録処理のフローチャートである。FIG. 7 is a flowchart of image recording processing in the third embodiment. 図8は、表示部53における表示例であって、(A)は画像移動処理前の状態を、(B)は画像移動処理後の状態を、(C)は画像編集処理後の状態を示している。8A and 8B show display examples on the display unit 53, where FIG. 8A shows a state before the image moving process, FIG. 8B shows a state after the image moving process, and FIG. 8C shows a state after the image editing process. ing. 図9は、対象画像40が用紙30の長手方向の半分より小さい場合の例を説明するための図であって、(A)は画像移動処理前の状態を、(B)は画像移動処理後の状態を示している。FIGS. 9A and 9B are diagrams for explaining an example in which the target image 40 is smaller than half the longitudinal direction of the paper 30. FIG. 9A shows a state before the image moving process, and FIG. 9B shows a state after the image moving process. Shows the state. 図10は、対象画像40の上下方向を用紙30の長手方向に沿わせて配置した例を示す図であって、(A)は画像移動処理前の状態を、(B)は画像移動処理後の状態を、(C)は画像編集処理後の状態を示している。10A and 10B are diagrams showing an example in which the vertical direction of the target image 40 is arranged along the longitudinal direction of the paper 30. FIG. 10A shows a state before the image moving process, and FIG. 10B shows a state after the image moving process. (C) shows the state after the image editing process.

以下、適宜図面を参照して本発明の実施形態について説明する。なお、以下に説明される実施形態は本発明の一例にすぎず、本発明の要旨を変更しない範囲で、本発明の実施形態を適宜変更できることは言うまでもない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings as appropriate. The embodiment described below is merely an example of the present invention, and it is needless to say that the embodiment of the present invention can be changed as appropriate without departing from the gist of the present invention.

[実施形態1]
図1は、実施形態1における画像処理システム100の概略図である。図1に示される画像処理システム100は、複合機10と、情報処理装置50とで構成されている。複合機10と情報処理装置50とは、通信ネットワーク101を介して相互に通信可能とされている。通信ネットワーク101の具体例は特に限定されないが、例えば、LAN(Local Area Networkの略)、或いはWAN(Wide Area Networkの略)等である。
[Embodiment 1]
FIG. 1 is a schematic diagram of an image processing system 100 according to the first embodiment. An image processing system 100 shown in FIG. 1 includes a multifunction machine 10 and an information processing apparatus 50. The multifunction machine 10 and the information processing apparatus 50 can communicate with each other via the communication network 101. Although the specific example of the communication network 101 is not specifically limited, For example, it is LAN (abbreviation of Local Area Network), WAN (abbreviation of Wide Area Network), etc.

[複合機10]
複合機10は、図2(A)に示されるように、プリンタ部11と、表示部13と、操作部14と、通信部15と、CPU17と、記憶部18とを主に備える。また、複合機10を構成する各構成要素は、通信バス19を介して相互に接続されている。プリンタ部11は、インクジェット方式や電子写真方式などの公知の方式によって用紙に画像を記録するプリント処理を実行する。また、複合機10は、外部装置との間でFAXの送受信を行うFAX機能、或いは原稿に記録されている画像を読み取って画像データを生成するスキャン機能等を有してもよい。複合機10は、記録装置の一例である。
[Multifunction machine 10]
As illustrated in FIG. 2A, the multifunction machine 10 mainly includes a printer unit 11, a display unit 13, an operation unit 14, a communication unit 15, a CPU 17, and a storage unit 18. In addition, each component constituting the multifunction machine 10 is connected to each other via the communication bus 19. The printer unit 11 executes print processing for recording an image on a sheet by a known method such as an ink jet method or an electrophotographic method. Further, the multifunction machine 10 may have a FAX function for transmitting / receiving a FAX to / from an external device, a scan function for reading an image recorded on a document, and generating image data. The multifunction machine 10 is an example of a recording apparatus.

[表示部13]
表示部13は、各種情報を表示する表示画面を備える。表示部13の具体的な構成は特に限定されないが、例えば、液晶ディスプレイ(Liquid Crystal Displayの略)、有機ELディスプレイ(Organic Electro−Luminescence Displayの略)等を採用することができる。
[Display unit 13]
The display unit 13 includes a display screen that displays various types of information. Although the specific configuration of the display unit 13 is not particularly limited, for example, a liquid crystal display (abbreviation of Liquid Crystal Display), an organic EL display (abbreviation of Organic Electro-Luminescence Display), or the like can be employed.

[操作部14]
操作部14は、ユーザの操作を検知する。具体的には、操作部14は、例えば、複数の押ボタンを有する。操作部14は、押下された押ボタンに対応づけられた各種の操作信号をCPU17へ出力する。さらに、操作部14は、表示部13の表示画面に重畳された膜状のタッチセンサを有していてもよい。すなわち、表示部13がタッチパネルディスプレイとして構成されてもよい。タッチセンサには、静電容量方式、抵抗膜方式等の周知の方式を採用することができる。
[Operation unit 14]
The operation unit 14 detects a user operation. Specifically, the operation unit 14 has a plurality of push buttons, for example. The operation unit 14 outputs various operation signals associated with the pressed button to the CPU 17. Further, the operation unit 14 may include a film-like touch sensor superimposed on the display screen of the display unit 13. That is, the display unit 13 may be configured as a touch panel display. For the touch sensor, a known method such as a capacitance method or a resistance film method can be adopted.

[通信部15]
通信部15は、通信ネットワーク101を通じて情報処理装置50とデータの送受信を行うためのインタフェースである。例えば、複合機10は、通信部15を通じて情報処理装置50にデータを送信し、或いは通信部15を通じて情報処理装置50からデータを受信する。通信方式は、有線であってもよいし、無線であってもよい。
[Communication unit 15]
The communication unit 15 is an interface for transmitting and receiving data to and from the information processing apparatus 50 through the communication network 101. For example, the multifunction machine 10 transmits data to the information processing apparatus 50 through the communication unit 15 or receives data from the information processing apparatus 50 through the communication unit 15. The communication method may be wired or wireless.

[CPU17]
CPU(Central Processing Unitの略)17は、複合機10全体の動作を制御するものである。CPU17は、操作部14から出力される操作信号、或いは通信部15を通じて情報処理装置50から取得したデータ等に基づいて、後述する各種プログラムを記憶部18から取得して実行する。すなわち、CPU17及び記憶部18は、制御部の一例を構成する。
[CPU17]
A CPU (abbreviation of Central Processing Unit) 17 controls the operation of the entire multifunction machine 10. The CPU 17 acquires and executes various programs, which will be described later, from the storage unit 18 based on an operation signal output from the operation unit 14 or data acquired from the information processing device 50 through the communication unit 15. That is, the CPU 17 and the storage unit 18 constitute an example of a control unit.

[記憶部18]
記憶部18は、プログラム記憶領域18Aと、データ記憶領域18Bとを有する。プログラム記憶領域18Aには、OS(Operating Systemの略)20と、画像処理プログラム21とが格納される。データ記憶領域18Bには、画像処理プログラム21の実行に必要なデータ或いは情報が記憶される。記憶部18は、例えば、RAM(Random Access Memoryの略)、ROM(Read Only Memoryの略)、EEPROM(Electrically Erasable Programmable Read−Only Memoryの略)、HDD(Hard Disk Driveの略)、CPU17が備えるバッファ等、或いはそれらの組み合わせによって構成される。
[Storage unit 18]
The storage unit 18 includes a program storage area 18A and a data storage area 18B. The program storage area 18A stores an OS (abbreviation for Operating System) 20 and an image processing program 21. Data or information necessary for executing the image processing program 21 is stored in the data storage area 18B. The storage unit 18 includes, for example, a RAM (abbreviation of Random Access Memory), a ROM (abbreviation of Read Only Memory), an EEPROM (abbreviation of Electrically Erasable Programmable Read-Only Memory), and an HDD (abbreviation of HardDr) 17 (HDD). It is configured by a buffer or the like or a combination thereof.

プログラム記憶領域18Aに記憶されているプログラムは、CPU17によって実行される。しかしながら、本明細書では、CPU17を省略して各プログラムの動作を説明することがある。すなわち、以下の説明において、「プログラムAが処理Aを実行する」という趣旨の記述は、「CPU17がプログラムAに記述された処理Aを実行する」ことを指してもよい。後述する情報処理装置50についても同様である。   The program stored in the program storage area 18A is executed by the CPU 17. However, in this specification, the operation of each program may be described with the CPU 17 omitted. That is, in the following description, the description that “the program A executes the process A” may indicate that “the CPU 17 executes the process A described in the program A”. The same applies to the information processing apparatus 50 described later.

OS20は、複合機10を構成するハードウェアであるプリンタ部11、表示部13、操作部14、及び通信部15等を制御するためのAPI(Application Programming Interfaceの略)を提供する基本プログラムである。すなわち、上述した各プログラムは、OS20が提供するAPIを呼び出すことによって、各ハードウェアを制御する。しかしながら、本明細書では、OS20を省略して各プログラムの動作を説明する。すなわち、以下の説明において、「プログラムBがハードウェアCを制御する」という趣旨の記述は、「プログラムBがOS20のAPIを通じてハードウェアCを制御する」ことを指してもよい。後述する情報処理装置50についても同様である。   The OS 20 is a basic program that provides an API (abbreviation for Application Programming Interface) for controlling the printer unit 11, the display unit 13, the operation unit 14, the communication unit 15, and the like that are hardware constituting the multifunction peripheral 10. . That is, each program described above controls each hardware by calling an API provided by the OS 20. However, in this specification, the operation of each program will be described with the OS 20 omitted. That is, in the following description, the description “the program B controls the hardware C” may refer to “the program B controls the hardware C through the API of the OS 20”. The same applies to the information processing apparatus 50 described later.

[情報処理装置50]
情報処理装置50は、図2(B)に示されるように、通信バス59を介して相互に接続された表示部53と、操作部54と、通信部55と、CPU57と、記憶部58とで構成されている。情報処理装置50の具体例は特に限定されないが、例えば、PC(Personal Computer)、タブレット端末、又はスマートフォン等である。情報処理装置50が備える各構成要素は複合機10と共通するので、再度の説明は省略する。なお、情報処理装置50が備える操作部54は、例えば、マウス等のポインティングデバイスであってもよいし、キーボード等であってもよい。また、プログラム記憶領域58Aには、OS60と、情報処理プログラム61とが格納されている。
[Information processing apparatus 50]
As shown in FIG. 2B, the information processing apparatus 50 includes a display unit 53, an operation unit 54, a communication unit 55, a CPU 57, and a storage unit 58 that are connected to each other via a communication bus 59. It consists of Although the specific example of the information processing apparatus 50 is not specifically limited, For example, they are PC (Personal Computer), a tablet terminal, or a smart phone. Since each component provided in the information processing apparatus 50 is common to the multi-function device 10, the description thereof will be omitted. Note that the operation unit 54 included in the information processing apparatus 50 may be a pointing device such as a mouse or a keyboard, for example. The program storage area 58A stores an OS 60 and an information processing program 61.

[画像記録処理]
図3及び図4を参照して、実施形態1における画像記録処理を説明する。この画像記録処理は、例えば、情報処理装置50によって実行される。なお、以下の各処理は、プログラム記憶領域58Aに記憶されている情報処理プログラム61をCPU57が読み出して実行してもよいし、ハードウェア回路によって実現されてもよい。情報処理装置50の情報処理プログラム61は、例えば、複合機10に画像を記録させる記録指示を、通信ネットワーク101を通じて複合機10に送信する、所謂デバイスドライバである。そして、図3に示される画像記録処理は、情報処理プログラム61が起動されたことを条件として開始される。
[Image recording processing]
With reference to FIG. 3 and FIG. 4, the image recording process in the first embodiment will be described. This image recording process is executed by the information processing apparatus 50, for example. The following processes may be executed by the CPU 57 by reading the information processing program 61 stored in the program storage area 58A or may be realized by a hardware circuit. The information processing program 61 of the information processing apparatus 50 is, for example, a so-called device driver that transmits a recording instruction for causing the multifunction device 10 to record an image to the multifunction device 10 through the communication network 101. Then, the image recording process shown in FIG. 3 is started on condition that the information processing program 61 is started.

情報処理プログラム61を起動する際には、例えば、複合機10に画像記録させる画像(以下、「対象画像」と表記する。)、当該対象画像が記録される用紙の向き、用紙上における対象画像の位置等が指定される。但し、これらは、情報処理プログラム61の起動の際にユーザによって明示的に指定される必要は必ずしもなく、それぞれにデフォルト値が設定されていてもよいし、情報処理プログラム61の起動後に変更可能であってもよい。実施形態1では、図4に示されるように、表形式の対象画像40の上下方向を用紙30の短手方向に向けて記録する例を説明する。   When the information processing program 61 is started, for example, an image to be recorded by the multifunction machine 10 (hereinafter referred to as “target image”), the orientation of the paper on which the target image is recorded, and the target image on the paper Is specified. However, these do not necessarily have to be explicitly specified by the user when the information processing program 61 is started, and default values may be set for each of them, and can be changed after the information processing program 61 is started. There may be. In the first embodiment, as shown in FIG. 4, an example in which the vertical direction of the target image 40 in the tabular format is recorded in the short direction of the paper 30 will be described.

まず、情報処理プログラム61は、対象画像40に含まれる罫線を検出する(S11)。具体的には、情報処理プログラム61は、ステップS11において、対象画像40に含まれる罫線のうち、用紙30の短手方向(図4の例では、上下方向)に延びる罫線を検出する。その結果、ステップS11では、図4(A)に示される対象画像40から5つの罫線41、42、43、44、45が検出される。ステップS11の処理は、罫線検出処理の一例である。   First, the information processing program 61 detects a ruled line included in the target image 40 (S11). Specifically, in step S11, the information processing program 61 detects a ruled line extending in the short direction of the paper 30 (the vertical direction in the example of FIG. 4) among the ruled lines included in the target image 40. As a result, in step S11, five ruled lines 41, 42, 43, 44, and 45 are detected from the target image 40 shown in FIG. The process of step S11 is an example of a ruled line detection process.

なお、罫線41〜45を検出する処理の具体例は特に限定されないが、例えば以下の方法が考えられる。まず、情報処理プログラム61は、対象画像40を示す画像データの画素値を左右方向に走査することにより、背景色と異なる画素を特定する。背景色と異なる画素(以下、「特定画素」と表記する。)とは、例えば、隣接する画素値の差が閾値を上回る画素である。次に、情報処理プログラム61は、特定画素を基点として画像データの画素値を上下方向に走査し、特定画素と略同一の画素が閾値長さ以上連続していることを条件として、特定画素から上下方向に延びる罫線を検出する。   In addition, the specific example of the process which detects the ruled lines 41-45 is not specifically limited, For example, the following methods can be considered. First, the information processing program 61 specifies a pixel different from the background color by scanning the pixel value of the image data indicating the target image 40 in the left-right direction. A pixel different from the background color (hereinafter referred to as “specific pixel”) is, for example, a pixel in which the difference between adjacent pixel values exceeds a threshold value. Next, the information processing program 61 scans the pixel value of the image data in the vertical direction from the specific pixel as a base point, and from the specific pixel on condition that substantially the same pixel as the specific pixel is continuous for the threshold length or longer. A ruled line extending in the vertical direction is detected.

次に、情報処理プログラム61は、プレビュー画像と「印刷」ボタンとを表示部53に表示させる(S12)。プレビュー画像は、複合機10によって用紙30上に記録される対象画像40のイメージを示す画像である。すなわち、ステップS12において表示部53に表示されるプレビュー画像は、図4(A)に示されるように、用紙30と、当該用紙30上に配置された対象画像40とを含む。最初に実行されるステップS12における用紙30上の対象画像40の位置が第1位置である。また、「印刷」ボタンは、後述する記録処理を情報処理装置50に実行させるためのボタンである。なお、用紙30の長手方向は、第1方向の一例であって、実施形態1ではプレビュー画像の左右方向に相当する。また、用紙30の短手方向は、第2方向の一例であって、実施形態1ではプレビュー画像の上下方向に相当する。   Next, the information processing program 61 displays a preview image and a “print” button on the display unit 53 (S12). The preview image is an image showing an image of the target image 40 recorded on the paper 30 by the multifunction machine 10. That is, the preview image displayed on the display unit 53 in step S12 includes the paper 30 and the target image 40 arranged on the paper 30 as shown in FIG. The position of the target image 40 on the paper 30 in step S12 executed first is the first position. The “print” button is a button for causing the information processing apparatus 50 to execute a recording process to be described later. The longitudinal direction of the paper 30 is an example of the first direction, and corresponds to the left-right direction of the preview image in the first embodiment. The short direction of the paper 30 is an example of the second direction, and corresponds to the vertical direction of the preview image in the first embodiment.

次に、情報処理プログラム61は、ユーザの入力操作が操作部54によって検知されるまで待機する(S13:No)。具体的には、情報処理プログラム61は、罫線合わせ指示或いは画像記録指示が入力されるまで待機する。ステップS14において罫線合わせ指示の入力を受け付ける処理は、第1受付処理の一例である。また、ステップS14において画像記録指示の入力を受け付ける処理は、第2受付処理の一例である。   Next, the information processing program 61 waits until a user input operation is detected by the operation unit 54 (S13: No). Specifically, the information processing program 61 stands by until a ruled line alignment instruction or an image recording instruction is input. The process of receiving an input of a ruled line alignment instruction in step S14 is an example of a first reception process. In addition, the process of receiving an input of an image recording instruction in step S14 is an example of a second reception process.

罫線合わせ指示とは、用紙30のセンタライン31と対象画像40の罫線41〜45のいずれかとを一致させるために、用紙30上において対象画像40を移動させるための指示である。センタライン31は、用紙30の長手方向の中央において短手方向に延びる仮想線である。また、画像記録指示とは、プレビュー画像に示される用紙30上の位置に対象画像40を記録する処理を複合機10に実行させるための指示であって、例えば、「印刷」ボタンが押下されることによって入力される。   The ruled line alignment instruction is an instruction for moving the target image 40 on the paper 30 in order to make the center line 31 of the paper 30 coincide with any of the ruled lines 41 to 45 of the target image 40. The center line 31 is an imaginary line extending in the short direction at the center in the longitudinal direction of the paper 30. The image recording instruction is an instruction for causing the multi-function peripheral 10 to execute processing for recording the target image 40 at a position on the paper 30 indicated by the preview image. For example, a “print” button is pressed. Is entered by

なお、実施形態1における罫線合わせ指示には、センタライン31に一致させる罫線(以下、「指定罫線」と表記する。)を特定する情報が含まれる。実施形態1における罫線合わせ指示は、例えば図4(B)に示されるように、プレビュー画像に含まれる罫線41〜45のいずれかをポインティングデバイスで選択することによって入力されてもよい。図4(B)に示されるプレビュー画像は、罫線43が指定罫線として選択された状態を示している。   Note that the ruled line alignment instruction in the first embodiment includes information for specifying a ruled line to be matched with the center line 31 (hereinafter referred to as “designated ruled line”). The ruled line alignment instruction in the first embodiment may be input by selecting any of the ruled lines 41 to 45 included in the preview image with a pointing device as shown in FIG. 4B, for example. The preview image shown in FIG. 4B shows a state in which the ruled line 43 is selected as the designated ruled line.

また、情報処理プログラム61は、指定罫線を選択する過程において、ポインタに重畳された罫線43の表示態様を、他の罫線41、42、44、45と異ならせてもよい。図4(B)の例では、罫線43の線幅を他の罫線41、42、44、45より太くしているが、これに限定されない。他の例として、ポインタに重畳された罫線の色を変更してもよいし、点滅させてもよい。   Further, the information processing program 61 may change the display mode of the ruled line 43 superimposed on the pointer from the other ruled lines 41, 42, 44, 45 in the process of selecting the designated ruled line. In the example of FIG. 4B, the line width of the ruled line 43 is thicker than the other ruled lines 41, 42, 44, and 45, but the present invention is not limited to this. As another example, the color of the ruled line superimposed on the pointer may be changed or blinked.

そして、情報処理プログラム61は、罫線合わせ指示を入力する操作が操作部54によって検知されたことを条件として(S14:罫線合わせ指示)、指定罫線である罫線43をセンタライン31に一致させた際の左右の余白距離を算出する(S15)。余白距離とは、図4(C)に示されるように、罫線43とセンタライン31とを一致させたと仮定した場合における、用紙30の左端と対象画像40の左端との左右方向の距離(以下、「左側余白距離」と表記する。)、及び用紙30の右端と対象画像40の右端との左右方向の距離(以下、「右側余白距離」と表記する。)を指す。ステップS15の処理は、算出処理の一例である。   When the information processing program 61 matches the ruled line 43, which is the designated ruled line, with the center line 31 on condition that an operation for inputting the ruled line alignment instruction is detected by the operation unit 54 (S14: ruled line alignment instruction). The left and right margin distances are calculated (S15). As shown in FIG. 4C, the margin distance is the distance in the left-right direction between the left edge of the sheet 30 and the left edge of the target image 40 when the ruled line 43 and the center line 31 are assumed to be coincident (hereinafter referred to as the margin distance). , And “left margin distance”), and the distance in the left-right direction between the right edge of the paper 30 and the right edge of the target image 40 (hereinafter referred to as “right margin distance”). The process of step S15 is an example of a calculation process.

次に、情報処理プログラム61は、左側余白距離及び右側余白距離の両方が0より大きいことを条件として(S16:Yes)、用紙30上で対象画像40を移動させることによって、指定罫線である罫線43をセンタライン31に一致させる(S17)。ステップS17は、対象画像40自体を変更することなく、用紙30上における対象画像40の位置のみを変化させる処理である。ステップS17における用紙30上の対象画像40の位置が第2位置である。なお、情報処理プログラム61は、図4(C)に示されるプレビュー画像を、必ずしも表示部53に表示させる必要はない。ステップS17の処理は、画像移動処理の一例である。   Next, the information processing program 61 moves the target image 40 on the paper 30 on the condition that both the left margin distance and the right margin distance are greater than 0 (S16: Yes), and thereby the ruled line that is the designated ruled line. 43 is matched with the center line 31 (S17). Step S17 is a process of changing only the position of the target image 40 on the paper 30 without changing the target image 40 itself. The position of the target image 40 on the paper 30 in step S17 is the second position. Note that the information processing program 61 does not necessarily display the preview image shown in FIG. The process in step S17 is an example of an image movement process.

なお、左側余白距離が0より大きい場合とは、例えば図4(C)に示されるように、用紙30の左端が対象画像40の左端より左側に位置している場合である。同様に、右側余白距離が0より大きい場合とは、用紙30の右端が対象画像40の右端より右側に位置している場合である。すなわち、左側余白距離及び右側余白距離の両方が0より大きい場合とは、第2位置の対象画像40全体が用紙30に収まっている場合である。換言すれば、左側余白距離及び右側余白距離の一方が0以下の場合とは、第2位置の対象画像40の一部が用紙30からはみ出している場合である。なお、実施形態1におけるステップS15では、左側余白距離及び右側余白距離の具体的な値を算出せず、左側余白距離及び右側余白距離が0より大きいか否かのみを算出してもよい。   Note that the case where the left margin distance is greater than 0 is a case where the left end of the sheet 30 is positioned on the left side of the left end of the target image 40 as shown in FIG. Similarly, the case where the right margin distance is greater than 0 is a case where the right end of the sheet 30 is located on the right side of the right end of the target image 40. That is, the case where both the left margin distance and the right margin distance are greater than zero is a case where the entire target image 40 at the second position is accommodated on the paper 30. In other words, the case where one of the left margin distance and the right margin distance is 0 or less is a case where a part of the target image 40 at the second position protrudes from the paper 30. In step S15 in the first embodiment, specific values of the left margin distance and the right margin distance may not be calculated, and only whether the left margin distance and the right margin distance are greater than zero may be calculated.

次に、情報処理プログラム61は、図4(D)に示されるように、第2位置に位置する対象画像40に含まれる複数の罫線41〜45のうちのクォータライン32に最も近い罫線44が当該クォータライン32に一致するように、対象画像40内において罫線44を移動させる。クォータライン32とは、用紙30の長手方向の端部(図4(D)の例では、右端)とセンタライン31との中央において用紙30の短手方向に延びる仮想線である。ステップS18の処理は、画像編集処理の一例である。   Next, as shown in FIG. 4D, the information processing program 61 has a ruled line 44 closest to the quarter line 32 among the plurality of ruled lines 41 to 45 included in the target image 40 located at the second position. The ruled line 44 is moved in the target image 40 so as to coincide with the quarter line 32. The quarter line 32 is an imaginary line extending in the lateral direction of the sheet 30 at the center between the end of the sheet 30 in the longitudinal direction (the right end in the example of FIG. 4D) and the center line 31. The process in step S18 is an example of an image editing process.

ステップS18は、用紙30上における対象画像40の位置を変更することなく、対象画像40内における罫線44の位置を変化させる処理である。図4(D)は、図4(C)に示される罫線44が右方向に移動した状態を示している。すなわち、図4(D)に示される対象画像40は、図4(C)と比較して、罫線43、44で囲まれたセルの左右方向の幅が拡大し、罫線44、45で囲まれたセルの左右方向の幅が縮小している。   Step S18 is a process of changing the position of the ruled line 44 in the target image 40 without changing the position of the target image 40 on the paper 30. FIG. 4D shows a state in which the ruled line 44 shown in FIG. 4C has moved to the right. That is, in the target image 40 shown in FIG. 4D, the width of the cell surrounded by the ruled lines 43 and 44 in the left-right direction is expanded, and the target image 40 shown in FIG. The width of the left and right cells is reduced.

一方、情報処理プログラム61は、左側余白距離及び右側余白距離の一方が0以下であることを条件として(S16:No)、指定罫線である罫線43とセンタライン31とを一致させることができない、すなわち、対象画像40を第2位置に移動させることができないことをユーザに報知する(S19)。また、報知の具体的な方法は特に限定されないが、例えば、表示部53にメッセージを表示してもよいし、不図示のスピーカからガイド音声を出力してもよい。   On the other hand, the information processing program 61 cannot match the ruled line 43 that is the designated ruled line with the center line 31 on condition that one of the left margin distance and the right margin distance is 0 or less (S16: No). That is, the user is notified that the target image 40 cannot be moved to the second position (S19). Moreover, although the specific method of alerting | reporting is not specifically limited, For example, a message may be displayed on the display part 53 and a guide audio | voice may be output from a speaker not shown.

そして、情報処理プログラム61は、ステップS18或いはステップS19の実行後に、ステップS12に戻る。なお、ステップS18の後に実行されるステップS12では、プレビュー画像が図4(A)から図4(D)に変化する。すなわち、この場合のプレビュー画像は、指定罫線である罫線43がセンタライン31に一致し、且つ指定罫線と異なる罫線44がクォータライン32上に移動された画像となる。一方、ステップS19の後に実行されるステップS12において表示されるプレビュー画像は、図4(A)のままである。   And the information processing program 61 returns to step S12 after execution of step S18 or step S19. In step S12 executed after step S18, the preview image changes from FIG. 4A to FIG. 4D. That is, the preview image in this case is an image in which the ruled line 43 that is the designated ruled line coincides with the center line 31 and the ruled line 44 different from the designated ruled line is moved onto the quarter line 32. On the other hand, the preview image displayed in step S12 executed after step S19 remains as shown in FIG.

次に、情報処理プログラム61は、画像記録指示を入力する操作が操作部54によって検知されたことを条件として(S14:画像記録指示)、対象画像40を用紙30に記録する処理を複合機10に実行させ(S20)、画像記録処理を終了する。具体的には、情報処理プログラム61は、対象画像40を示す画像データ、用紙30のサイズ及び向き、用紙30上における対象画像40の位置等を含む記録指示を、通信部55を通じて複合機10に送信する。   Next, the information processing program 61 performs a process of recording the target image 40 on the sheet 30 on the condition that an operation for inputting an image recording instruction is detected by the operation unit 54 (S14: image recording instruction). (S20), and the image recording process is terminated. Specifically, the information processing program 61 sends a recording instruction including image data indicating the target image 40, the size and orientation of the paper 30, the position of the target image 40 on the paper 30, and the like to the multifunction device 10 through the communication unit 55. Send.

なお、ステップS20に先立ってステップS15〜S18が実行されていない場合、用紙30上における対象画像40の位置は第1位置となる。一方、ステップS20に先立ってステップS15〜S18が実行されている場合、用紙30上における対象画像40の位置は第2位置となる。用紙30上における対象画像40の位置の特定方法は特に限定されないが、例えば、用紙30の左上端の座標を(0,0)とし、対象画像40の左上端が位置する用紙30の座標によって特定することができる。   Note that when steps S15 to S18 are not executed prior to step S20, the position of the target image 40 on the paper 30 is the first position. On the other hand, when Steps S15 to S18 are executed prior to Step S20, the position of the target image 40 on the paper 30 is the second position. The method for specifying the position of the target image 40 on the paper 30 is not particularly limited. For example, the coordinates of the upper left corner of the paper 30 are (0, 0), and the position is specified by the coordinates of the paper 30 where the upper left corner of the target image 40 is located. can do.

そして、複合機10は、通信部15を通じて情報処理装置50から記録指示を受信したことを条件として、記録指示の内容に従ってプリンタ部11にプリント処理を実行させる。プリント処理は公知の方法によって実行されるので、詳細な説明は省略する。ステップS20の処理は、記録処理の一例である。   Then, the multifunction machine 10 causes the printer unit 11 to execute print processing in accordance with the content of the recording instruction on condition that the recording instruction is received from the information processing apparatus 50 through the communication unit 15. Since the printing process is executed by a known method, a detailed description is omitted. The process in step S20 is an example of a recording process.

[実施形態1の作用効果]
実施形態1によれば、罫線43とセンタライン31とが一致する用紙30上の第2位置に対象画像40が記録される。その結果、センタライン31を折り目として用紙30を二つ折りした場合に、対象画像40に含まれる文字や図形がセンタライン31に重なるのを抑制することができる。すなわち、罫線41〜45を含む対象画像40が見やすいレイアウトで用紙30に記録される。また、実施形態1では、センタライン31に一致させる罫線43をユーザに選択させることができるので、ユーザにとって見やすいレイアウトで対象画像40を用紙30に記録することができる。
[Effects of Embodiment 1]
According to the first embodiment, the target image 40 is recorded at the second position on the paper 30 where the ruled line 43 and the center line 31 coincide. As a result, when the sheet 30 is folded in two with the center line 31 as a fold, it is possible to suppress the characters and figures included in the target image 40 from overlapping the center line 31. That is, the target image 40 including the ruled lines 41 to 45 is recorded on the paper 30 in an easy-to-view layout. Further, in the first embodiment, the user can select the ruled line 43 to be matched with the center line 31, so that the target image 40 can be recorded on the paper 30 with a layout that is easy for the user to see.

また、実施形態1によれば、さらに罫線44がクォータライン32に一致するように対象画像40を編集するので、クォータライン32を折り目として用紙30をZ折りする場合でも、対象画像40に含まれる文字や図形がクォータライン32に重なるのを抑制することができる。すなわち、実施形態1における画像記録処理は、大判の用紙30全体に対象画像40を記録する場合に、特に有利な効果を奏する。   Further, according to the first embodiment, the target image 40 is further edited so that the ruled line 44 matches the quarter line 32. Therefore, even when the paper 30 is Z-folded using the quarter line 32 as a fold, the target image 40 is included. It can suppress that a character and a figure overlap with the quarter line 32. FIG. That is, the image recording process according to the first embodiment has a particularly advantageous effect when the target image 40 is recorded on the entire large-sized paper 30.

なお、実施形態1では、第2位置の対象画像40に含まれる罫線41〜45のうち、クォータライン32に最も近い罫線44をクォータライン32に一致させた例を説明したが、本発明はこれに限定されない。例えば、センタライン31に一致させる罫線43と同様に、クォータライン32に一致させる罫線をユーザに選択させてもよい。また、ステップS18を実行するか否かをユーザに選択させてもよい。すなわち、ステップS18は省略可能である。   In the first embodiment, the example in which the ruled line 44 closest to the quarter line 32 among the ruled lines 41 to 45 included in the target image 40 at the second position is matched with the quarter line 32 has been described. It is not limited to. For example, the ruled line to be matched with the quarter line 32 may be selected by the user in the same manner as the ruled line 43 to be matched with the center line 31. Moreover, you may make a user select whether to perform step S18. That is, step S18 can be omitted.

また、実施形態1では、表形式の対象画像40を用紙30に記録する例を説明したが、本発明はこれに限定されない。すなわち、罫線検出処理(S11)において検出される罫線は、表の各セルを区画する罫線に限定されない。また、罫線検出処理(S11)において検出される罫線は、用紙30の短手方向と厳密に一致している罫線に限定されず、用紙30の短手方向に沿って延びる罫線を含んでもよい。すなわち、センタライン31を折り目として用紙30を折り畳んだ時に文字や図形が折り目に重ならない範囲において、センタライン31及び罫線の向きがずれていてもよい。   In the first embodiment, the example in which the target image 40 in the tabular format is recorded on the paper 30 has been described, but the present invention is not limited to this. That is, the ruled lines detected in the ruled line detection process (S11) are not limited to the ruled lines that partition the cells in the table. Further, the ruled lines detected in the ruled line detection process (S 11) are not limited to ruled lines that exactly match the short direction of the paper 30, and may include ruled lines that extend along the short direction of the paper 30. That is, the direction of the center line 31 and the ruled line may be deviated in a range where characters and figures do not overlap the crease when the paper 30 is folded using the center line 31 as a crease.

[実施形態2]
次に、図5及び図6を参照して、実施形態2における画像記録処理を説明する。実施形態2における画像記録処理は、複数の罫線のうちの第1方向におけるセンタライン31との距離が最も近い罫線をセンタライン31に一致さる点において、実施形態1と相違する。なお、実施形態1と共通する処理には同一の符号を付して詳しい説明を省略し、相違点を中心に説明する。
[Embodiment 2]
Next, an image recording process according to the second embodiment will be described with reference to FIGS. The image recording process in the second embodiment is different from that in the first embodiment in that the ruled line closest to the center line 31 in the first direction among the plurality of ruled lines is matched with the center line 31. In addition, the same code | symbol is attached | subjected to the process which is common in Embodiment 1, and detailed description is abbreviate | omitted, and it demonstrates centering around difference.

まず、情報処理プログラム61は、ステップS12において、プレビュー画像及び「印刷」ボタンと共に「折り目合わせ」ボタンを表示部53に表示させる。「折り目合わせ」ボタンは、罫線をセンタライン31に一致させる画像移動処理を情報処理装置50に実行させるためのボタンである。すなわち、「折り目合わせ」ボタンの押下は、罫線合わせ指示の入力の他の例である。すなわち、実施形態2における画像記録処理では、センタライン31に一致させる罫線がユーザによって選択されない。   First, in step S12, the information processing program 61 displays a “crease alignment” button on the display unit 53 together with the preview image and the “print” button. The “crease matching” button is a button for causing the information processing apparatus 50 to execute an image moving process for matching the ruled line with the center line 31. That is, pressing the “crease alignment” button is another example of inputting a ruled line alignment instruction. That is, in the image recording process according to the second embodiment, the ruled line that matches the center line 31 is not selected by the user.

次に、情報処理プログラム61は、罫線合わせ指示を入力する操作が操作部54によって検知されたことを条件として(S14:罫線合わせ指示)、第1位置の対象画像40に含まれる罫線41〜45のうちのセンタライン31との左右方向の距離が最も近い罫線43をセンタライン31に一致させたと仮定した場合の左側余白距離及び右側余白距離を算出する(S21)。そして、情報処理プログラム61は、罫線43の左側余白距離及び右側余白距離の両方が0より大きいことを条件として(S16:Yes)、罫線43をセンタライン31に一致させる画像移動処理を実行する(S17)。   Next, the information processing program 61 sets the ruled lines 41 to 45 included in the target image 40 at the first position on condition that an operation for inputting a ruled line alignment instruction is detected by the operation unit 54 (S14: ruled line alignment instruction). The left margin distance and the right margin distance are calculated when it is assumed that the ruled line 43 having the closest distance in the horizontal direction to the center line 31 matches the center line 31 (S21). Then, the information processing program 61 executes an image moving process for matching the ruled line 43 with the center line 31 on condition that both the left margin distance and the right margin distance of the ruled line 43 are greater than 0 (S16: Yes) ( S17).

[実施形態2の作用効果]
実施形態2によれば、第1位置の対象画像40に含まれる罫線41〜45のうち、センタライン31に最も近い罫線43をセンタライン31に一致させる。これにより、画像移動処理における対象画像40の移動量が最小になるので、オリジナルに近いレイアウトで対象画像40を用紙30に記録することができる。
[Effects of Second Embodiment]
According to the second embodiment, the ruled line 43 closest to the center line 31 among the ruled lines 41 to 45 included in the target image 40 at the first position is matched with the center line 31. As a result, the amount of movement of the target image 40 in the image movement process is minimized, so that the target image 40 can be recorded on the paper 30 with a layout close to the original.

なお、実施形態2では、センタライン31に一致させる罫線43を情報処理プログラム61が選択するので、プレビュー画像の表示処理(S12)は省略可能である。すなわち、ユーザに「印刷」ボタンを押下させる際に、画像移動処理及び画像編集処理を実行するか否かを選択させてもよい。換言すれば、操作部54を通じてユーザによって入力される画像記録指示は、画像移動処理及び画像編集処理を実行するか否かを特定する情報を含んでもよい。また、実施形態2における画像記録処理では、実施形態1と同様にステップS18の処理が省略可能である。   In the second embodiment, since the information processing program 61 selects the ruled line 43 to be matched with the center line 31, the preview image display process (S12) can be omitted. That is, when the user presses the “print” button, it may be selected whether to execute the image moving process and the image editing process. In other words, the image recording instruction input by the user through the operation unit 54 may include information specifying whether or not to execute the image moving process and the image editing process. In the image recording process in the second embodiment, the process in step S18 can be omitted as in the first embodiment.

[実施形態3]
次に、図7及び図8を参照して、実施形態3における画像記録処理を説明する。実施形態3における画像記録処理は、対象画像40を第2位置に移動させた場合において、左側余白距離及び右側余白距離の差が最小となる罫線をセンタライン31に一致させる点において、実施形態1と相違する。なお、実施形態1と共通する処理には同一の符号を付して詳しい説明を省略し、相違点を中心に説明する。
[Embodiment 3]
Next, an image recording process according to the third embodiment will be described with reference to FIGS. The image recording process according to the third embodiment is that the ruled line that minimizes the difference between the left margin distance and the right margin distance matches the center line 31 when the target image 40 is moved to the second position. And different. In addition, the same code | symbol is attached | subjected to the process which is common in Embodiment 1, and detailed description is abbreviate | omitted, and it demonstrates centering around difference.

情報処理プログラム61は、罫線合わせ指示を入力する操作が操作部54によって検知されたことを条件として(S14:罫線合わせ指示)、罫線41〜45それぞれをセンタライン31に一致させたと仮定した場合の左側余白距離及び右側余白距離を算出する(S15、S31)。すなわち、実施形態2における画像記録処理では、ステップS15の処理が5回繰り返されることになる。なお、罫線合わせ指示の入力方法は、実施形態2と共通する。   The information processing program 61 assumes that each of the ruled lines 41 to 45 matches the center line 31 on condition that an operation for inputting a ruled line alignment instruction is detected by the operation unit 54 (S14: ruled line alignment instruction). The left margin distance and the right margin distance are calculated (S15, S31). That is, in the image recording process in the second embodiment, the process of step S15 is repeated five times. Note that the ruled line alignment instruction input method is the same as in the second embodiment.

そして、情報処理プログラム61は、全ての罫線41〜45について余白距離を算出(S31:Yes)し、且つ左側余白距離及び右側余白距離の両方が0より大きい罫線が存在することを条件として(S32:Yes)、罫線41〜45のうちの左側余白距離及び右側余白距離の差が最も小さくなる罫線43をセンタライン31に一致させる画像移動処理を実行する(S33)。一方、情報処理プログラム61は、全ての罫線41〜45について左側余白距離及び右側余白距離の一方が0以下であることを条件として(S32:No)、対象画像40を第2位置に移動させることができないことをユーザに報知する(S19)。   Then, the information processing program 61 calculates the margin distance for all the ruled lines 41 to 45 (S31: Yes), and on the condition that both the left margin distance and the right margin distance are greater than zero (S32). : Yes), an image moving process for matching the ruled line 43 with the smallest difference between the left margin distance and the right margin distance among the ruled lines 41 to 45 to the center line 31 is executed (S33). On the other hand, the information processing program 61 moves the target image 40 to the second position on condition that one of the left margin distance and the right margin distance is 0 or less for all the ruled lines 41 to 45 (S32: No). The user is informed that it is not possible (S19).

[実施形態3の作用効果]
実施形態3によれば、第2位置の対象画像40を用紙30の中央に近い位置に記録することができる。すなわち、対象画像40に含まれる文字や図形が折り目に重なることが抑制されると共に、バランスの取れたレイアウトで対象画像40を用紙30に記録することができる。なお、実施形態3における画像記録処理では、実施形態1と同様にステップS18の処理が省略可能であり、実施形態2と同様にステップS12の処理が省略可能である。
[Effects of Embodiment 3]
According to the third embodiment, the target image 40 at the second position can be recorded at a position close to the center of the paper 30. In other words, it is possible to prevent the characters and graphics included in the target image 40 from overlapping the creases and to record the target image 40 on the paper 30 with a balanced layout. In the image recording process in the third embodiment, the process in step S18 can be omitted as in the first embodiment, and the process in step S12 can be omitted as in the second embodiment.

[その他の変形例]
なお、上記の各実施形態では、対象画像40に含まれる罫線41〜45のうち、左右方向の中央に近い罫線43をセンタライン31に一致させた例を説明したが、本発明はこれに限定されない。例えば、情報処理プログラム61は、図9(A)に示されるように、対象画像40の左右方向の長さが用紙30の左右方向の長さの半分以下であることを条件として、画像移動処理において、対象画像40の左右方向の端部に位置する罫線41、45のいずれかをセンタライン31に一致させてもよい。図9(B)は、対象画像40の右端の罫線45をセンタライン31に一致させた状態を示している。上記構成によれば、対象画像40が用紙30の折り目を跨ぐことがないので、さらに見やすいレイアウトで対象画像40を用紙30に記録することができる。なお、対象画像40の左端の罫線41をセンタライン31に一致させてもよいことは、言うまでもない。
[Other variations]
In each of the above embodiments, the example in which the ruled line 43 close to the center in the left-right direction is matched with the center line 31 among the ruled lines 41 to 45 included in the target image 40 has been described, but the present invention is not limited thereto. Not. For example, as illustrated in FIG. 9A, the information processing program 61 performs image movement processing on the condition that the length of the target image 40 in the left-right direction is less than or equal to half the length of the paper 30 in the left-right direction. 2, any of the ruled lines 41 and 45 located at the left and right ends of the target image 40 may be made to coincide with the center line 31. FIG. 9B shows a state in which the ruled line 45 at the right end of the target image 40 is matched with the center line 31. According to the above configuration, since the target image 40 does not straddle the fold of the paper 30, the target image 40 can be recorded on the paper 30 with a layout that is easier to see. Needless to say, the leftmost ruled line 41 of the target image 40 may be matched with the center line 31.

また、上記の各実施形態では、用紙30の短手方向に対象画像40の上下方向を沿わせて記録する例を示したが、本発明はこれに限定されない。すなわち、図10(A)に示されるように、用紙30の長手方向に対象画像40の上下方向を沿わせて記録する場合にも本発明を適用することができる。   Further, in each of the above embodiments, the example in which the vertical direction of the target image 40 is recorded along the short direction of the paper 30 is shown, but the present invention is not limited to this. That is, as shown in FIG. 10A, the present invention can also be applied to the case where recording is performed along the vertical direction of the target image 40 in the longitudinal direction of the paper 30.

具体的には、情報処理プログラム61は、罫線検出処理において、用紙30の短手方向である左右方向に延びる罫線71〜79を罫線検出処理において検出する。また、情報処理プログラム61は、画像移動処理において、罫線71〜79のいずれか(図10(B)の例では、罫線75)を左右方向に延びるセンタライン33に一致させる。さらに、情報処理プログラム61は、画像編集処理において、罫線71〜79のいずれか(図10(C)の例では、罫線78)を左右方向に延びるクォータライン34に一致させる。   Specifically, the information processing program 61 detects the ruled lines 71 to 79 extending in the left-right direction, which is the short direction of the paper 30, in the ruled line detection process. Further, in the image movement process, the information processing program 61 matches any of the ruled lines 71 to 79 (ruled line 75 in the example of FIG. 10B) with the center line 33 extending in the left-right direction. Further, in the image editing process, the information processing program 61 matches any of the ruled lines 71 to 79 (ruled line 78 in the example of FIG. 10C) with the quarter line 34 extending in the left-right direction.

なお、上記の各実施形態では、罫線検出処理(S11)、プレビュー処理(S12)、受付処理(S14)、算出処理(S15、S21)、画像移動処理(S17)、及び画像編集処理(S18)が情報処理装置50で実行され、記録処理(S20)が複合機10で実行される例を説明したが、本発明はこれに限定されない。例えば、複合機10の画像処理プログラム21で全ての処理が実行されてもよい。この場合、ユーザとのインタフェースには、複合機10の表示部13及び操作部14が用いられてもよいし、情報処理装置50の表示部53及び操作部54が用いられてもよい。   In each of the above embodiments, ruled line detection processing (S11), preview processing (S12), reception processing (S14), calculation processing (S15, S21), image movement processing (S17), and image editing processing (S18). Has been described as being executed by the information processing apparatus 50 and the recording process (S20) being executed by the multifunction machine 10, but the present invention is not limited to this. For example, all processing may be executed by the image processing program 21 of the multifunction machine 10. In this case, the display unit 13 and the operation unit 14 of the multifunction machine 10 may be used for the interface with the user, or the display unit 53 and the operation unit 54 of the information processing apparatus 50 may be used.

また、上記の各実施形態では、プログラム記憶領域18A、58Aに記憶された各種プログラムがCPU17、57によって実行されることによって、本発明の制御部が実行する各処理が実現される例を説明した。しかしながら、制御部の構成はこれに限定されず、その一部又は全部を集積回路(IC(Integrated Circuitの略)とも言う。)等のハードウェアで実現してもよい。   Further, in each of the above-described embodiments, an example has been described in which the various programs stored in the program storage areas 18A and 58A are executed by the CPUs 17 and 57, thereby realizing each process executed by the control unit of the present invention. . However, the configuration of the control unit is not limited to this, and part or all of the configuration may be realized by hardware such as an integrated circuit (also referred to as an IC (Integrated Circuit)).

さらに、本発明は、複合機10或いは情報処理装置50として実現できるだけでなく、上記の各処理を実行させるプログラムとして実現してもよい。また、当該プログラムは、non−transitoryな記録媒体に記録されて提供されてもよいし、当該プログラムを示す情報或いは信号が、インターネット等の通信ネットワークを介して配信されてもよい。   Furthermore, the present invention may be realized not only as the multifunction machine 10 or the information processing apparatus 50 but also as a program for executing the above-described processes. The program may be provided by being recorded on a non-transitory recording medium, or information or a signal indicating the program may be distributed via a communication network such as the Internet.

10・・・複合機
13,53・・・表示部
17,57・・・CPU
18,58・・・記憶部
21・・・画像処理プログラム
50・・・情報処理装置
61・・・情報処理プログラム
10: MFP 13, 53: Display unit 17, 57: CPU
18, 58 ... storage unit 21 ... image processing program 50 ... information processing device 61 ... information processing program

Claims (12)

シートに画像を記録する記録部と、
制御部と、を備えており、
上記制御部は、
第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出処理と、
上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出処理で検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付処理と、
上記第1受付処理で上記罫線合わせ指示が受け付けられたことを条件として、上記第2位置に位置する上記対象画像の上記第1方向における一端部と、上記第1方向におけるシートの端部であって、上記対象画像の上記一端部に近い側の端部である一端部との間の距離である第1余白距離と、上記第2位置に位置する上記対象画像の上記第1方向における他端部と、上記第1方向におけるシートの端部であって、上記対象画像の上記他端部に近い側の端部である他端部との間の距離である第2余白距離と、を算出する算出処理と、
上記算出処理で算出された上記第1余白距離及び上記第2余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動処理と、
上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付処理と、
上記画像移動処理で上記対象画像の記録位置が変更され且つ上記第2受付処理で上記画像記録指示の入力が受け付けられたことを条件として、上記記録部に、シート上の上記第2位置に上記対象画像を記録させる記録処理と、を実行する画像処理システム。
A recording unit for recording an image on a sheet;
A control unit, and
The control unit
A ruled line detection process for detecting a ruled line extending in the second direction in a target image recorded in a first position on a sheet whose length in the first direction is longer than the second direction orthogonal to the first direction;
The target image is moved to the second position on the sheet where the center line, which is a virtual line on the sheet extending in the second direction at the center of the first direction, and the ruled line detected in the ruled line detection process coincide with each other. A first receiving process for receiving an input of a ruled line alignment instruction indicating that
On the condition that the ruled line alignment instruction is received in the first receiving process, there is an end portion in the first direction of the target image located at the second position and an end portion of the sheet in the first direction. A first margin distance that is a distance between one end portion that is an end portion of the target image closer to the one end portion, and the other end of the target image that is located at the second position in the first direction. And a second margin distance that is a distance between the other end portion that is the end portion of the sheet in the first direction and that is closer to the other end portion of the target image. Calculation processing to
The recording position of the target image on the sheet is changed from the first position to the second position on condition that both the first margin distance and the second margin distance calculated in the calculation process are both greater than zero. Image movement processing to
A second receiving process for receiving an input of an image recording instruction for recording the target image on a sheet;
On the condition that the recording position of the target image has been changed in the image moving process and the input of the image recording instruction has been received in the second receiving process, the recording unit is moved to the second position on the sheet. An image processing system that executes a recording process for recording a target image.
該画像処理システムは、表示部をさらに備えており、
上記対象画像は、複数の上記罫線を含んでおり、
上記制御部は、
シート上の上記第1位置に位置する上記対象画像を表すプレビュー画像を上記表示部に表示させるプレビュー処理を実行し、
上記第1受付処理において、上記プレビュー画像に含まれる複数の上記罫線のうちの1つである指定罫線の選択をユーザから受け付け、
上記算出処理において、上記指定罫線を上記センタラインに一致させた場合の上記第1余白距離及び上記第2余白距離を算出する請求項1に記載の画像処理システム。
The image processing system further includes a display unit,
The target image includes a plurality of the ruled lines,
The control unit
Performing a preview process for causing the display unit to display a preview image representing the target image located at the first position on the sheet;
In the first receiving process, a selection of a specified ruled line that is one of the plurality of ruled lines included in the preview image is received from a user,
2. The image processing system according to claim 1, wherein in the calculation process, the first margin distance and the second margin distance when the designated ruled line is matched with the center line are calculated.
上記対象画像は、複数の上記罫線を含んでおり、
上記制御部は、
上記算出処理において、複数の上記罫線それぞれを上記センタラインに一致させた場合の上記第1余白距離及び上記第2余白距離を算出し、
上記画像移動処理において、複数の上記罫線のうち、上記算出処理で算出された上記第1余白距離と上記第2余白距離との差が最小となる上記罫線を上記センタラインに一致させる請求項1に記載の画像処理システム。
The target image includes a plurality of the ruled lines,
The control unit
In the calculation process, the first margin distance and the second margin distance when each of the plurality of ruled lines is matched with the center line are calculated,
2. In the image moving process, among the plurality of ruled lines, the ruled line that minimizes the difference between the first margin distance and the second margin distance calculated in the calculation process is matched with the center line. The image processing system described in 1.
上記対象画像は、複数の上記罫線を含んでおり、
上記制御部は、上記算出処理において、上記第1位置に位置する上記対象画像に含まれる複数の上記罫線のうち、上記第1方向における上記センタラインとの距離が最も近い上記罫線を上記センタラインに一致させた場合の上記第1余白距離及び上記第2余白距離を算出する請求項1に記載の画像処理システム。
The target image includes a plurality of the ruled lines,
In the calculation process, the control unit determines the ruled line closest to the center line in the first direction among the plurality of ruled lines included in the target image located at the first position as the center line. The image processing system according to claim 1, wherein the first margin distance and the second margin distance in the case of matching with the first margin distance are calculated.
上記制御部は、上記第1方向において上記対象画像の長さがシートの長さの半分以下であり且つ上記対象画像の端部が上記罫線で構成されていることを条件として、上記画像移動処理において、上記対象画像の端部に位置する上記罫線を上記センタラインに一致させる請求項1に記載の画像処理システム。   The control unit performs the image moving process on the condition that the length of the target image is less than or equal to half of the length of the sheet in the first direction and the end of the target image is configured by the ruled line. The image processing system according to claim 1, wherein the ruled line located at an end portion of the target image is matched with the center line. 上記対象画像は、複数の上記罫線を含んでおり、
上記制御部は、上記第1方向におけるシートの端部と上記センタラインとの中央において上記第2方向に延びるシート上の仮想線であるクォータラインと、上記第2位置に位置する上記対象画像に含まれる複数の上記罫線のうちの当該クォータラインに最も近い上記罫線とが一致するように、上記対象画像内において当該罫線を移動させる画像編集処理を実行する請求項1から5のいずれかに記載の画像処理システム。
The target image includes a plurality of the ruled lines,
The control unit applies the quarter line, which is a virtual line on the sheet extending in the second direction at the center between the end of the sheet in the first direction and the center line, and the target image located at the second position. 6. The image editing process for moving the ruled line in the target image so that the ruled line closest to the quarter line among the plurality of ruled lines included matches the ruled line. Image processing system.
上記対象画像は、当該対象画像の上下方向に沿って延びる上記罫線を含んでおり、
上記制御部は、上記記録処理において、上記対象画像の上下方向をシートの上記第2方向に沿わせて上記記録部に記録させる請求項1から6のいずれかに記載の画像記録システム。
The target image includes the ruled line extending along the vertical direction of the target image,
The image recording system according to claim 1, wherein the control unit causes the recording unit to record the target image along the second direction of the sheet in the recording process.
第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出ステップと、
上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出ステップで検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付ステップと、
上記第1受付ステップで上記罫線合わせ指示が受け付けられたことを条件として、上記第2位置に位置する上記対象画像の上記第1方向における一端部と、上記第1方向におけるシートの端部であって、上記対象画像の上記一端部に近い側の端部である一端部との間の距離である第1余白距離と、上記第2位置に位置する上記対象画像の上記第1方向における他端部と、上記第1方向におけるシートの端部であって、上記対象画像の上記他端部に近い側の端部である他端部との間の距離である第2余白距離と、を算出する算出ステップと、
上記算出ステップで算出された上記第1余白距離及び上記第2余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動ステップと、
上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付ステップと、
上記画像移動ステップで上記対象画像の記録位置が変更され且つ上記第2受付ステップで上記画像記録指示の入力が受け付けられたことを条件として、シート上の上記第2位置に上記対象画像を記録する記録ステップと、を実行する画像処理方法。
A ruled line detection step for detecting a ruled line extending in the second direction in a target image recorded in a first position on a sheet having a length in the first direction longer than the second direction orthogonal to the first direction;
The target image is moved to a second position on the sheet where a center line, which is a virtual line on the sheet extending in the second direction, in the center of the first direction matches the ruled line detected in the ruled line detection step. A first receiving step for receiving an input of a ruled line alignment instruction indicating that
On the condition that the ruled line alignment instruction is received in the first receiving step, there is an end portion in the first direction of the target image located at the second position and an end portion of the sheet in the first direction. A first margin distance that is a distance between one end portion that is an end portion of the target image closer to the one end portion, and the other end of the target image that is located at the second position in the first direction. And a second margin distance that is a distance between the other end portion that is the end portion of the sheet in the first direction and that is closer to the other end portion of the target image. A calculating step to
The recording position of the target image on the sheet is changed from the first position to the second position on condition that both the first margin distance and the second margin distance calculated in the calculating step are both greater than zero. A moving image step,
A second receiving step for receiving an input of an image recording instruction for recording the target image on a sheet;
The target image is recorded at the second position on the sheet on condition that the recording position of the target image is changed in the image moving step and the input of the image recording instruction is received in the second receiving step. And an image processing method for executing the recording step.
シートに画像を記録する記録装置に接続されたコンピュータによって実行される画像処理プログラムであって、
第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出ステップと、
上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出ステップで検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付ステップと、
上記第1受付ステップで上記罫線合わせ指示が受け付けられたことを条件として、上記第2位置に位置する上記対象画像の上記第1方向における一端部と、上記第1方向におけるシートの端部であって、上記対象画像の上記一端部に近い側の端部である一端部との間の距離である第1余白距離と、上記第2位置に位置する上記対象画像の上記第1方向における他端部と、上記第1方向におけるシートの端部であって、上記対象画像の上記他端部に近い側の端部である他端部との間の距離である第2余白距離と、を算出する算出ステップと、
上記算出ステップで算出された上記第1余白距離及び上記第2余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動ステップと、
上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付ステップと、
上記画像移動ステップで上記対象画像の記録位置が変更され且つ上記第2受付ステップで上記画像記録指示の入力が受け付けられたことを条件として、シート上の上記第2位置に上記対象画像を記録する記録ステップと、を上記コンピュータに実行させる画像処理プログラム。
An image processing program executed by a computer connected to a recording apparatus for recording an image on a sheet,
A ruled line detection step for detecting a ruled line extending in the second direction in a target image recorded in a first position on a sheet having a length in the first direction longer than the second direction orthogonal to the first direction;
The target image is moved to a second position on the sheet where a center line, which is a virtual line on the sheet extending in the second direction, in the center of the first direction matches the ruled line detected in the ruled line detection step. A first receiving step for receiving an input of a ruled line alignment instruction indicating that
On the condition that the ruled line alignment instruction is received in the first receiving step, there is an end portion in the first direction of the target image located at the second position and an end portion of the sheet in the first direction. A first margin distance that is a distance between one end portion that is an end portion of the target image closer to the one end portion, and the other end of the target image that is located at the second position in the first direction. And a second margin distance that is a distance between the other end portion that is the end portion of the sheet in the first direction and that is closer to the other end portion of the target image. A calculating step to
The recording position of the target image on the sheet is changed from the first position to the second position on condition that both the first margin distance and the second margin distance calculated in the calculating step are both greater than zero. A moving image step,
A second receiving step for receiving an input of an image recording instruction for recording the target image on a sheet;
The target image is recorded at the second position on the sheet on condition that the recording position of the target image is changed in the image moving step and the input of the image recording instruction is received in the second receiving step. An image processing program for causing the computer to execute a recording step.
シートに画像を記録する記録部と、
制御部と、を備えており、
上記制御部は、
第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出処理と、
上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出処理で検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付処理と、
上記第1受付処理で上記罫線合わせ指示が受け付けられたことを条件として、上記第1方向の両側において上記第2位置に位置する上記対象画像の端部とシートの端部との余白距離を算出する算出処理と、
上記算出処理で算出された上記余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動処理と、
上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付処理と、
上記画像移動処理で上記対象画像の記録位置が変更され且つ上記第2受付処理で上記画像記録指示の入力が受け付けられたことを条件として、上記記録部に、シート上の上記第2位置に上記対象画像を記録させる記録処理と、を実行し、
上記対象画像は、複数の上記罫線を含んでおり、
上記制御部は、
上記算出処理において、複数の上記罫線それぞれを上記センタラインに一致させた場合の上記余白距離を算出し、
上記画像移動処理において、複数の上記罫線のうち、上記算出処理で算出された余白距離の差が最小となる上記罫線を上記センタラインに一致させる画像処理システム。
A recording unit for recording an image on a sheet;
A control unit, and
The control unit
A ruled line detection process for detecting a ruled line extending in the second direction in a target image recorded in a first position on a sheet whose length in the first direction is longer than the second direction orthogonal to the first direction;
The target image is moved to the second position on the sheet where the center line, which is a virtual line on the sheet extending in the second direction at the center of the first direction, and the ruled line detected in the ruled line detection process coincide with each other. A first receiving process for receiving an input of a ruled line alignment instruction indicating that
On the condition that the ruled line alignment instruction is received in the first receiving process, the margin distance between the edge of the target image and the edge of the sheet positioned at the second position on both sides in the first direction is calculated. A calculation process to
An image moving process for changing the recording position of the target image on the sheet from the first position to the second position on the condition that the margin distances calculated in the calculating process are both greater than 0;
A second receiving process for receiving an input of an image recording instruction for recording the target image on a sheet;
On the condition that the recording position of the target image has been changed in the image moving process and the input of the image recording instruction has been received in the second receiving process, the recording unit is moved to the second position on the sheet. A recording process for recording the target image, and
The target image includes a plurality of the ruled lines,
The control unit
In the calculation process, the margin distance when each of the plurality of ruled lines is matched with the center line is calculated,
In the image moving process, an image processing system for matching the ruled line having the smallest difference in the margin distance calculated in the calculating process with the center line among the plurality of ruled lines.
第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出ステップと、
上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出ステップで検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付ステップと、
上記第1受付ステップで上記罫線合わせ指示が受け付けられたことを条件として、上記第1方向の両側において上記第2位置に位置する上記対象画像の端部とシートの端部との余白距離を算出する算出ステップと、
上記算出ステップで算出された上記余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動ステップと、
上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付ステップと、
上記画像移動ステップで上記対象画像の記録位置が変更され且つ上記第2受付ステップで上記画像記録指示の入力が受け付けられたことを条件として、シート上の上記第2位置に上記対象画像を記録する記録ステップと、を実行し、
上記対象画像は、複数の上記罫線を含んでおり、
上記算出ステップにおいて、複数の上記罫線それぞれを上記センタラインに一致させた場合の上記余白距離を算出し、
上記画像移動ステップにおいて、複数の上記罫線のうち、上記算出ステップで算出された余白距離の差が最小となる上記罫線を上記センタラインに一致させる画像処理方法。
A ruled line detection step for detecting a ruled line extending in the second direction in a target image recorded in a first position on a sheet having a length in the first direction longer than the second direction orthogonal to the first direction;
The target image is moved to a second position on the sheet where a center line, which is a virtual line on the sheet extending in the second direction, in the center of the first direction matches the ruled line detected in the ruled line detection step. A first receiving step for receiving an input of a ruled line alignment instruction indicating that
On the condition that the ruled line alignment instruction is received in the first receiving step, a margin distance between the edge of the target image and the edge of the sheet positioned at the second position on both sides in the first direction is calculated. A calculating step to
An image moving step for changing the recording position of the target image on the sheet from the first position to the second position on condition that both of the margin distances calculated in the calculating step are larger than 0;
A second receiving step for receiving an input of an image recording instruction for recording the target image on a sheet;
The target image is recorded at the second position on the sheet on condition that the recording position of the target image is changed in the image moving step and the input of the image recording instruction is received in the second receiving step. Recording step, and
The target image includes a plurality of the ruled lines,
In the calculation step, the margin distance when each of the plurality of ruled lines is matched with the center line is calculated,
An image processing method in which, in the image moving step, among the plurality of ruled lines, the ruled line having the smallest margin distance calculated in the calculating step is matched with the center line.
シートに画像を記録する記録装置に接続されたコンピュータによって実行される画像処理プログラムであって、
第1方向の長さが上記第1方向に直交する第2方向より長いシート上の第1位置に記録される対象画像内において、上記第2方向に延びる罫線を検出する罫線検出ステップと、
上記第1方向の中央において上記第2方向に延びるシート上の仮想線であるセンタラインと、上記罫線検出ステップで検出された上記罫線とが一致するシート上の第2位置に上記対象画像を移動させることを示す罫線合わせ指示の入力を受け付ける第1受付ステップと、
上記第1受付ステップで上記罫線合わせ指示が受け付けられたことを条件として、上記第1方向の両側において上記第2位置に位置する上記対象画像の端部とシートの端部との余白距離を算出する算出ステップと、
上記算出ステップで算出された上記余白距離がいずれも0より大きいことを条件として、シート上における上記対象画像の記録位置を上記第1位置から上記第2位置に変更する画像移動ステップと、
上記対象画像をシートに記録させる画像記録指示の入力を受け付ける第2受付ステップと、
上記画像移動ステップで上記対象画像の記録位置が変更され且つ上記第2受付ステップで上記画像記録指示の入力が受け付けられたことを条件として、シート上の上記第2位置に上記対象画像を記録する記録ステップと、を上記コンピュータに実行させ、
上記対象画像は、複数の上記罫線を含んでおり、
上記算出ステップにおいて、複数の上記罫線それぞれを上記センタラインに一致させた場合の上記余白距離を算出し、
上記画像移動ステップにおいて、複数の上記罫線のうち、上記算出ステップで算出された余白距離の差が最小となる上記罫線を上記センタラインに一致させる画像処理プログラム。



















An image processing program executed by a computer connected to a recording apparatus for recording an image on a sheet,
A ruled line detection step for detecting a ruled line extending in the second direction in a target image recorded in a first position on a sheet having a length in the first direction longer than the second direction orthogonal to the first direction;
The target image is moved to a second position on the sheet where a center line, which is a virtual line on the sheet extending in the second direction, in the center of the first direction matches the ruled line detected in the ruled line detection step. A first receiving step for receiving an input of a ruled line alignment instruction indicating that
On the condition that the ruled line alignment instruction is received in the first receiving step, a margin distance between the edge of the target image and the edge of the sheet positioned at the second position on both sides in the first direction is calculated. A calculation step to
An image moving step for changing the recording position of the target image on the sheet from the first position to the second position on condition that both of the margin distances calculated in the calculating step are larger than 0;
A second receiving step for receiving an input of an image recording instruction for recording the target image on a sheet;
The target image is recorded at the second position on the sheet on condition that the recording position of the target image is changed in the image moving step and the input of the image recording instruction is received in the second receiving step. Recording step, and causing the computer to execute
The target image includes a plurality of the ruled lines,
In the calculation step, the margin distance when each of the plurality of ruled lines is matched with the center line is calculated,
In the image moving step, an image processing program for matching the ruled line having the smallest difference in margin distance calculated in the calculating step with the center line among the plurality of ruled lines.



















JP2013205520A 2013-09-30 2013-09-30 Image processing system, image processing method, and image processing program Active JP6260177B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013205520A JP6260177B2 (en) 2013-09-30 2013-09-30 Image processing system, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013205520A JP6260177B2 (en) 2013-09-30 2013-09-30 Image processing system, image processing method, and image processing program

Publications (2)

Publication Number Publication Date
JP2015069575A JP2015069575A (en) 2015-04-13
JP6260177B2 true JP6260177B2 (en) 2018-01-17

Family

ID=52836124

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013205520A Active JP6260177B2 (en) 2013-09-30 2013-09-30 Image processing system, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP6260177B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102363104B1 (en) * 2015-08-31 2022-02-15 후지필름 가부시키가이샤 Coloring photosensitive composition, cured film, color filter, light-shielding film, solid-state imaging element, image display device, and method for manufacturing cured film

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4631261B2 (en) * 2003-09-29 2011-02-16 カシオ計算機株式会社 Captured image projection apparatus, image processing method thereof, and program
JP4339175B2 (en) * 2004-04-30 2009-10-07 Necエンジニアリング株式会社 Image editing apparatus and image editing method
JP2007072876A (en) * 2005-09-08 2007-03-22 Canon Inc Image processing method and apparatus

Also Published As

Publication number Publication date
JP2015069575A (en) 2015-04-13

Similar Documents

Publication Publication Date Title
US8804148B2 (en) Image forming apparatus and non-transitory computer readable medium storing a program for controlling the same
US9158492B2 (en) Non-transitory computer-readable medium storing image processing program for N-in-1 printing, image processing apparatus, and image processing method for N-in-1 printing
US8854661B2 (en) Tool for positioning an icon on a display
EP2799978B1 (en) Image processing system, image processing apparatus, portable information terminal, program
JP5871606B2 (en) Image forming apparatus, image display method, and program
JP6149684B2 (en) Portable terminal, image processing apparatus, and program
JP6260177B2 (en) Image processing system, image processing method, and image processing program
JP6337863B2 (en) Display device and image forming apparatus including the same
JP6201599B2 (en) Information processing apparatus, printing system, and program
JP4609560B2 (en) Image forming apparatus and printing control method in the image forming apparatus
JP7380169B2 (en) Control program, information processing device
JP2017157981A (en) Electronic apparatus
JP2006260398A (en) Printing controller and its control method
JP2020145632A (en) Image processing apparatus, image processing system, and program
JP6973524B2 (en) program
JP2014220560A (en) Image forming apparatus
JP5891856B2 (en) Information processing apparatus and program
JP6665575B2 (en) program
JP2019106007A (en) Display device, display control method and program
JP4232050B2 (en) Tiling offset output system
JP7400227B2 (en) program
JP2011175516A (en) Input device and input control program
JP5489839B2 (en) Display control apparatus and control method thereof
JP6743591B2 (en) Program and information processing terminal
JP6624027B2 (en) Image processing apparatus and image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160930

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170627

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170825

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171003

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171025

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: 20171114

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171127

R150 Certificate of patent or registration of utility model

Ref document number: 6260177

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150