JP2007200250A - Layout processing device and method - Google Patents

Layout processing device and method Download PDF

Info

Publication number
JP2007200250A
JP2007200250A JP2006021171A JP2006021171A JP2007200250A JP 2007200250 A JP2007200250 A JP 2007200250A JP 2006021171 A JP2006021171 A JP 2006021171A JP 2006021171 A JP2006021171 A JP 2006021171A JP 2007200250 A JP2007200250 A JP 2007200250A
Authority
JP
Japan
Prior art keywords
printing tool
layout printing
layout
image
print
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
JP2006021171A
Other languages
Japanese (ja)
Other versions
JP4799192B2 (en
Inventor
Naoki Matsuki
直紀 松木
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2006021171A priority Critical patent/JP4799192B2/en
Publication of JP2007200250A publication Critical patent/JP2007200250A/en
Application granted granted Critical
Publication of JP4799192B2 publication Critical patent/JP4799192B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide information about a range of a print target object to be printed on a print medium during actual printing. <P>SOLUTION: This layout processing device is provided with a layout edition means for editing arrangement of the print target object on the print medium and a layout preview display means for displaying arrangement, which is edited by the layout editing means, of the printing target object on the printing medium. When the printing target object protrudes from a printable area of the printing medium, the layout preview display means displays size information, showing the dimensions of a protruded part and size information showing the dimension of a part accommodated within the printable area. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、レイアウト処理装置及びレイアウト処理方法に関する。   The present invention relates to a layout processing apparatus and a layout processing method.

近年、デジタルカメラ及びプリンタの性能向上により、銀塩写真に勝るとも劣らない高品質の写真を撮影し、プリントすることが可能となった。それに伴い、アマチュア、プロフェッショナルを問わず、デジタルカメラ及びプリンタを活用するようになってきている。一般には、アマチュアもプロフェッショナルも、パーソナルコンピュータに専用インターフェースケーブルやLAN等を介してプリンタを接続した単純なシステムを用いている。パーソナルコンピュータにインストールされているアプリケーションを用いて、デジタルカメラで撮影した写真イメージに、カラー補正やサイズ変更等の処理を自由に施し、ユーザ好みの品質の画像をプリントすることも可能である。   In recent years, the performance of digital cameras and printers has improved, and it has become possible to take and print high-quality photographs that are not inferior to silver halide photographs. Along with this, digital cameras and printers are being used by both amateurs and professionals. In general, both amateurs and professionals use a simple system in which a printer is connected to a personal computer via a dedicated interface cable or a LAN. Using an application installed in a personal computer, it is possible to freely perform processing such as color correction and size change on a photographic image taken with a digital camera, and print an image of a quality desired by the user.

特に商業的又はプロフェッショナルな場においては、高画質プリントの性能だけではなく、他にも様々な機能が要求される。そのひとつに、コンピュータプログラムのGUIを介して、印刷したい画像や文字(以下、オブジェクトと呼ぶ)の印刷媒体上での配置を自由に編集することのできる、レイアウトプリント機能がある。一般にプリント機能を有したプログラムでは、ユーザがプリント後の紙面の状態を印刷前に確認できるよう、印刷後の状態をプレビュー表示する機能が用意されている。レイアウトプリント機能を有したプログラムにおいては、プレビューをリアルタイムで行い、ユーザが操作をしながら、リアルタイムで印刷後の紙面の状態を推測可能にしているものも多い。その際、オブジェクトの位置や大きさを分かりやすく数値表示できるよう、様々な工夫がされている。   Particularly in a commercial or professional field, various functions are required in addition to the performance of high-quality printing. One of them is a layout print function that can freely edit the arrangement of images and characters (hereinafter referred to as objects) to be printed on a print medium through a GUI of a computer program. In general, a program having a print function is provided with a function for displaying a preview of the state after printing so that the user can check the state of the printed paper before printing. Many programs having a layout print function perform a preview in real time and allow the user to estimate the state of the printed paper in real time while operating. At that time, various measures are taken so that the position and size of the object can be displayed numerically in an easy-to-understand manner.

例えば、市販のコンピュータプログラムには、オブジェクトの位置や大きさをフローティングウィンドウに表示し、ユーザが見やすい位置に移動できるようにしているものもある。   For example, some commercially available computer programs display the position and size of an object in a floating window so that the user can move to a position that is easy to see.

また、例えばCADシステムでは、プレビュー画面上のオブジェクト脇に大きさを表示し、直感的に分かりやすいようになっている。   Also, for example, in a CAD system, the size is displayed beside the object on the preview screen so that it can be easily understood intuitively.

特開平05−174084号公報Japanese Patent Laid-Open No. 05-174084

しかし、市販のコンピュータプログラムやCADシステムに代表される従来の方法では、オブジェクトの大きさを知ることはできるものの、実際に印刷する際に紙面に印刷されるオブジェクトの範囲が正確に分からない問題があった。したがって印刷されるオブジェクトの範囲を知るためには、オブジェクトの位置と、大きさとからユーザ自身が算出する必要があり、作業効率が落ちるという問題があった。   However, with conventional methods represented by commercially available computer programs and CAD systems, the size of an object can be known, but there is a problem that the range of objects printed on paper is not accurately known when actually printing. there were. Therefore, in order to know the range of the object to be printed, it is necessary for the user himself to calculate from the position and size of the object, and there is a problem that work efficiency is lowered.

本発明は前記の問題点に鑑みなされたもので、実際に印刷する際に印刷媒体に印刷される印刷対象オブジェクトの範囲に係る情報を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides information related to a range of objects to be printed that are printed on a print medium when actually printing.

そこで、前記問題を解決するため、本発明のレイアウト処理装置は、印刷媒体上での印刷対象オブジェクトの配置を編集するレイアウト編集手段と、前記レイアウト編集手段において編集された、印刷媒体上での印刷対象オブジェクトの配置を表示するレイアウトプレビュー表示手段と、を有し、前記レイアウトプレビュー表示手段は、前記印刷対象オブジェクトが印刷媒体の印刷可能領域からはみ出て配置されていた場合、前記はみ出ている部分の大きさを示すサイズ情報と、印刷可能領域内に収まっている部分の大きさを示すサイズ情報と、を表示することを特徴とする。   In order to solve the above problem, the layout processing apparatus of the present invention includes a layout editing unit that edits the arrangement of objects to be printed on a print medium, and a print on the print medium that is edited by the layout editing unit. Layout preview display means for displaying the arrangement of the target object, and the layout preview display means, when the print target object is arranged outside the printable area of the print medium, Size information indicating the size and size information indicating the size of the portion within the printable area are displayed.

係る構成とすることにより、印刷対象オブジェクトが印刷媒体の印刷可能領域からはみ出て配置されていた場合、はみ出ている部分の大きさを示すサイズ情報と、印刷可能領域内に収まっている部分の大きさを示すサイズ情報と、を表示することができる。よって、実際に印刷する際に印刷媒体に印刷される印刷対象オブジェクトの範囲に係る情報を提供することができる。   With this configuration, when the object to be printed is arranged so as to protrude from the printable area of the print medium, size information indicating the size of the protruding part and the size of the part falling within the printable area And size information indicating the size can be displayed. Therefore, it is possible to provide information related to the range of objects to be printed that are printed on the print medium when actually printing.

なお、レイアウト処理装置とは、例えば、後述するシステム、又は印刷デバイス106を含まないシステム(装置)等に対応する。また、印刷媒体とは、例えば、後述する用紙等に対応する。また、印刷対象オブジェクトとは、例えば、後述する印刷画像及び/又は文字等に対応する。   The layout processing apparatus corresponds to, for example, a system described later or a system (apparatus) that does not include the printing device 106. The print medium corresponds to, for example, a sheet described later. The print target object corresponds to, for example, a print image and / or a character described later.

また、前記問題を解決するため、本発明は、レイアウト処理方法、プログラム及び記憶媒体としてもよい。   In order to solve the above problem, the present invention may be a layout processing method, a program, and a storage medium.

本発明によれば、実際に印刷する際に印刷媒体に印刷される印刷対象オブジェクトの範囲に係る情報を提供することができる。   According to the present invention, it is possible to provide information relating to the range of objects to be printed that are printed on a print medium when actually printing.

以下、本発明の実施形態について図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第一の実施形態)
図1は、システムの概略を示した図である。CPU101は、システム全体の動作をコントロールし、一次記憶102に格納されたプログラムの実行等を行なう。
(First embodiment)
FIG. 1 is a diagram showing an outline of the system. The CPU 101 controls the operation of the entire system and executes a program stored in the primary storage 102.

一次記憶102は、主にメモリであり、二次記憶103に記憶されたプログラム等を読み込んで格納する。二次記憶103は、主にハードディスクである。一次記憶の容量は二次記憶の容量より小さく、一次記憶に格納しきれないプログラムやデータ等は二次記憶に格納される。また、長時間記憶しなくてはならないデータ等も二次記憶に格納される。本実施形態では、本実施形態の処理手順を実現するようなプログラム(レイアウト印刷プログラム)は二次記憶103に格納し、プログラム実行時に一次記憶102に読み込んで、CPU101が実行処理を行なう。   The primary storage 102 is mainly a memory, and reads and stores programs and the like stored in the secondary storage 103. The secondary storage 103 is mainly a hard disk. The capacity of the primary storage is smaller than the capacity of the secondary storage, and programs and data that cannot be stored in the primary storage are stored in the secondary storage. Data that must be stored for a long time is also stored in the secondary storage. In the present embodiment, a program (layout printing program) that realizes the processing procedure of the present embodiment is stored in the secondary storage 103, and is read into the primary storage 102 when the program is executed, and the CPU 101 performs an execution process.

入力デバイス104は、例えば、マウスやキーボード等である。入力デバイス104は、プログラムに割り込み信号を送るために用いられる。出力デバイス105は、例えば、モニタ等である。   The input device 104 is, for example, a mouse or a keyboard. The input device 104 is used to send an interrupt signal to the program. The output device 105 is, for example, a monitor.

印刷デバイス106は、例えばインクジェット式プリンタや、レーザービームプリンタ等である。印刷デバイス106は、印刷対象のオブジェクト(画像ファイルや、文字等)を印刷するために用いられる。以下、特に言及しない限り、印刷デバイス106のことを単にプリンタという。   The printing device 106 is, for example, an ink jet printer or a laser beam printer. The printing device 106 is used to print an object to be printed (image file, character, etc.). Hereinafter, unless otherwise stated, the printing device 106 is simply referred to as a printer.

まず、本実施形態におけるレイアウト印刷プログラムに基づくCPU101の処理の概要について述べる。CPU101は、GUIを表示し、GUIを介したユーザの操作指示に基づいて、印刷するプリンタ、用紙、印刷対象となる画像ファイルを指定し、用紙に対する印刷する画像のレイアウトを編集する。この際、CPU101は、用紙のイメージと、印刷する画像とを同時に表示し、印刷後の紙面状態をプレビュー表示する。また、CPU101は、編集したレイアウトに基づき、印刷処理を実行する。   First, an outline of processing of the CPU 101 based on the layout printing program in the present embodiment will be described. The CPU 101 displays a GUI, specifies a printer to be printed, paper, and an image file to be printed based on a user operation instruction via the GUI, and edits a layout of an image to be printed on the paper. At this time, the CPU 101 simultaneously displays a paper image and an image to be printed, and displays a preview of the paper surface state after printing. Further, the CPU 101 executes print processing based on the edited layout.

次に、レイアウト印刷プログラムに基づくCPU101における基本的な処理の一例を図2に示す。なお、以下では、レイアウト印刷プログラムに基づいてCPU101が提供する機能の一部をレイアウト印刷ツールと呼び、レイアウト印刷ツールが処理を行なうものとして説明を行なう。   Next, an example of basic processing in the CPU 101 based on the layout printing program is shown in FIG. In the following description, a part of the function provided by the CPU 101 based on the layout printing program is called a layout printing tool, and the layout printing tool performs processing.

ステップS201〜S205において、レイアウト印刷ツールは、初期設定を行なう。ステップS201では、レイアウト印刷ツールは、ユーザの操作指示に基づいて、印刷の対象となる画像ファイル(以下、印刷画像という)を指定する。   In steps S201 to S205, the layout printing tool performs initial settings. In step S201, the layout printing tool designates an image file to be printed (hereinafter referred to as a print image) based on a user operation instruction.

ステップS202では、レイアウト印刷ツールは、システムで使用可能な印刷デバイス106(以下、プリンタという)が存在するか否かを調べる。この処理は、CPU101が、プリンタに問い合わせを行なうことで実現される。レイアウト印刷ツールは、システムで使用可能なプリンタが存在すれば、ステップS203に進み、存在しなければ、図2に示される処理を終了する。   In step S202, the layout printing tool checks whether there is a printing device 106 (hereinafter referred to as a printer) that can be used in the system. This process is realized by the CPU 101 making an inquiry to the printer. If there is a printer that can be used in the system, the layout printing tool proceeds to step S203; otherwise, the layout printing tool ends the processing shown in FIG.

ステップS203では、レイアウト印刷ツールは、ユーザの操作指示に基づいて、システムで使用可能なプリンタの中から、印刷に使用するプリンタ(以下、印刷プリンタという)を設定する。   In step S203, the layout printing tool sets a printer to be used for printing (hereinafter referred to as a print printer) from printers that can be used in the system, based on a user operation instruction.

ステップS204では、レイアウト印刷ツールは、ステップS203で選択した印刷プリンタで使用可能な用紙の中から、印刷に使用する用紙(以下、印刷用紙という)を設定する。   In step S204, the layout printing tool sets a sheet to be used for printing (hereinafter referred to as “printing sheet”) from among sheets usable by the printing printer selected in step S203.

ステップS205では、レイアウト印刷ツールは、印刷後の紙面の状態を、出力デバイス105にプレビュー表示する。   In step S <b> 205, the layout printing tool displays a preview of the printed paper state on the output device 105.

ステップS206〜ステップS214では、印刷レイアウトの編集を行なう。ステップS206では、レイアウト印刷ツールは、GUI上において行なわれる操作(操作指示)を受け付ける。   In steps S206 to S214, the print layout is edited. In step S206, the layout printing tool accepts an operation (operation instruction) performed on the GUI.

ステップS207では、レイアウト印刷ツールは、ステップS206で行われた操作の種類をチェックする。ユーザにより印刷実行が指示された場合、レイアウト印刷ツールは、ステップS215へ進む。印刷実行が指示されていない場合、レイアウト印刷ツールは、ステップS208へ進む。   In step S207, the layout printing tool checks the type of operation performed in step S206. If printing execution is instructed by the user, the layout printing tool proceeds to step S215. If printing execution is not instructed, the layout printing tool proceeds to step S208.

ステップS208では、レイアウト印刷ツールは、ステップS206で行われた操作の種類をチェックする。ユーザによりキャンセルが指示された場合、レイアウト印刷ツールは、図2に示される処理を終了する。キャンセルが指示されていない場合、レイアウト印刷ツールは、ステップS209へ進む。   In step S208, the layout printing tool checks the type of operation performed in step S206. When cancellation is instructed by the user, the layout printing tool ends the process shown in FIG. If cancellation is not instructed, the layout printing tool proceeds to step S209.

ステップS209では、レイアウト印刷ツールは、ステップS206で行われた操作の種類をチェックする。ユーザにより文字設定が変更された場合、レイアウト印刷ツールは、ステップS210へ進む。文字設定が変更されていない場合、レイアウト印刷ツールは、ステップS211へ進む。   In step S209, the layout printing tool checks the type of operation performed in step S206. When the character setting is changed by the user, the layout printing tool proceeds to step S210. If the character setting has not been changed, the layout printing tool proceeds to step S211.

ステップS210では、レイアウト印刷ツールは、文字の描画領域を決定する。文字の描画領域決定する方法については、図13を用いて後述する。その後、レイアウト印刷ツールは、プレビュー表示を行なう。   In step S210, the layout printing tool determines a character drawing area. A method of determining a character drawing area will be described later with reference to FIG. Thereafter, the layout printing tool performs a preview display.

ステップS211では、レイアウト印刷ツールは、ステップS206で行われた操作の種類をチェックする。ユーザにより画像のレイアウトが変更された場合、レイアウト印刷ツールは、ステップS212へ進む。画像のレイアウトが変更されていない場合、レイアウト印刷ツールは、ステップS213へ進む。   In step S211, the layout printing tool checks the type of operation performed in step S206. When the layout of the image is changed by the user, the layout printing tool proceeds to step S212. If the layout of the image has not been changed, the layout printing tool proceeds to step S213.

ステップS212では、レイアウト印刷ツールは、印刷画像の描画領域を決定する。描画領域町域の大きさが変更された場合、レイアウト印刷ツールは、印刷画像のアスペクト比を保つようにする。その後、レイアウト印刷ツールは、ステップS210へ進む。   In step S212, the layout printing tool determines a drawing area for the print image. When the size of the drawing area is changed, the layout printing tool maintains the aspect ratio of the printed image. Thereafter, the layout printing tool proceeds to step S210.

ステップS213では、レイアウト印刷ツールは、ステップS206で行われた操作の種類をチェックする。ユーザによりプリンタ又は用紙の設定が変更されていれば、レイアウト印刷ツールは、ステップS214へ進む。プリンタ又は用紙の設定が変更されていない場合、レイアウト印刷ツールは、ステップS205へ進み、プレビュー表示を行なう。   In step S213, the layout printing tool checks the type of operation performed in step S206. If the printer or paper setting has been changed by the user, the layout printing tool proceeds to step S214. If the printer or paper setting has not been changed, the layout printing tool proceeds to step S205 and displays a preview.

ステップS214では、レイアウト印刷ツールは、ステップS213で設定されたプリンタ、用紙を、それぞれ印刷プリンタ、印刷用紙として設定する。その後、レイアウト印刷ツールは、ステップS212へ進む。   In step S214, the layout printing tool sets the printer and paper set in step S213 as a printing printer and printing paper, respectively. Thereafter, the layout printing tool proceeds to step S212.

ステップS215では、レイアウト印刷ツールは、印刷プリンタを用いて、ステップS206〜ステップS214で編集したレイアウトに基づいて印刷処理を実行する。   In step S215, the layout printing tool executes a printing process based on the layout edited in steps S206 to S214 using a print printer.

以下、図面を用いて各ステップにおける操作の実現例について述べる。
図3〜9は、レイアウト印刷ツールのGUIの概要を示す図である。図3は、レイアウト印刷ツールのGUIの全体概要の一例を示す図である。図4は、プレビュー画面306の一例を示す図である。図5〜図9は、設定ダイアログ301の詳細を示す図である。ユーザは、図3に示されるGUI上で印刷レイアウトの編集、印刷実行、キャンセル、設定保存の操作を行なう。
Hereinafter, an implementation example of the operation in each step will be described with reference to the drawings.
3 to 9 are diagrams showing an outline of the GUI of the layout printing tool. FIG. 3 is a diagram illustrating an example of an overall outline of the GUI of the layout printing tool. FIG. 4 is a diagram illustrating an example of the preview screen 306. 5 to 9 are diagrams showing details of the setting dialog 301. The user performs operations of editing the print layout, executing printing, canceling, and saving the settings on the GUI shown in FIG.

以下、上述したステップS201に係る印刷画像の指定方法を、図10〜図12を用いて説明する。図10は、印刷画像の指定方法を説明するための図(その1)である。また、図11は、印刷画像の指定方法を説明するための図(その2)である。また、図12は、印刷画像の指定方法を説明するための図(その3)である。印刷画像の指定は、図10〜図12の何れかひとつ、又は組み合わせにより実現される。   Hereinafter, the print image designation method according to step S201 described above will be described with reference to FIGS. FIG. 10 is a diagram (No. 1) for describing a print image designation method. FIG. 11 is a diagram (No. 2) for explaining the print image designation method. FIG. 12 is a diagram (No. 3) for explaining the print image designation method. The designation of the print image is realized by any one or a combination of FIGS.

図10は、図3に示したGUIにフォルダツリーウィンドウ1001、ファイル一覧表示ウィンドウ1002、印刷画像リストウィンドウ1003、ファイル追加ボタン1004、ファイル削除ボタン1005を加えたGUIである。   FIG. 10 shows a GUI in which a folder tree window 1001, a file list display window 1002, a print image list window 1003, a file addition button 1004, and a file deletion button 1005 are added to the GUI shown in FIG.

フォルダツリーウィンドウ1001には、記憶媒体(一次記憶102又は二次記憶103)に構築されたディレクトリを示すツリーを表示する。ユーザは、このツリーを辿ることで、必要なデータが格納されているディレクトリを選択する事ができる。選択されたディレクトリに含まれる画像ファイルは、そのファイル名をファイル一覧表示ウィンドウ1002に一覧表示される。   The folder tree window 1001 displays a tree indicating directories constructed in the storage medium (primary storage 102 or secondary storage 103). By tracing this tree, the user can select a directory in which necessary data is stored. A list of image files included in the selected directory is displayed in the file list display window 1002.

ファイル一覧表示ウィンドウ1002上でファイルが選択された状態でファイル追加ボタン1004が押下されると、レイアウト印刷ツールは、選択されたファイルを印刷画像として選択し、ファイル名を印刷画像リストウィンドウ1003に追加する。同時に、レイアウト印刷ツールは、印刷画像のイメージをプレビュー画面306に表示する。   When a file addition button 1004 is pressed while a file is selected on the file list display window 1002, the layout printing tool selects the selected file as a print image and adds the file name to the print image list window 1003. To do. At the same time, the layout printing tool displays an image of the print image on the preview screen 306.

印刷画像リストウィンドウ1003上でファイル名が選択された状態でファイル削除ボタン1005が押下されると、レイアウト印刷ツールは、選択された印刷画像を、印刷画像リストウィンドウ1003上から削除する。同時に、レイアウト印刷ツールは、プレビュー画面306上の、対応するイメージも削除する。   When the file deletion button 1005 is pressed while a file name is selected on the print image list window 1003, the layout print tool deletes the selected print image from the print image list window 1003. At the same time, the layout printing tool also deletes the corresponding image on the preview screen 306.

図11に示されるファイル一覧表示ウィンドウ1006は、オペレーティングシステムのファイル管理システムの一部であり、必要なデータが格納されているディレクトリを選択し、そのディレクトリに含まれるファイルの名前を一覧表示させることができる。ファイル一覧表示ウィンドウ1006上の任意の画像ファイルが選択され、図3に示されるGUI上にドラッグアンドドロップされると、レイアウト印刷ツールは、選択されたファイルを印刷画像として選択する。同時に、レイアウト印刷ツールは、印刷画像のイメージをプレビュー画面306上に表示する。   A file list display window 1006 shown in FIG. 11 is a part of the file management system of the operating system, and selects a directory storing necessary data and displays a list of names of files included in the directory. Can do. When an arbitrary image file on the file list display window 1006 is selected and dragged and dropped onto the GUI shown in FIG. 3, the layout printing tool selects the selected file as a print image. At the same time, the layout printing tool displays an image of the print image on the preview screen 306.

図12は、レイアウト印刷ツールが、他のアプリケーションと連携して動作する場合の一例を表している。連携アプリケーション1007は、図10に示すフォルダツリーウィンドウ1001と、ファイル一覧表示ウィンドウ1002と、同等の機能を備える。図12におけるレイアウト印刷ツールは、連携アプリケーション1007上のツール起動ボタン1008を押下することで起動される。レイアウト印刷ツールは、ファイル一覧表示ウィンドウ1002で選択されているファイルを印刷画像として選択し、同時に印刷画像のイメージを、プレビュー画面306上に表示する。   FIG. 12 shows an example in which the layout printing tool operates in cooperation with another application. The cooperative application 1007 has the same functions as the folder tree window 1001 and the file list display window 1002 shown in FIG. The layout printing tool in FIG. 12 is activated by pressing a tool activation button 1008 on the cooperative application 1007. The layout printing tool selects the file selected in the file list display window 1002 as a print image, and at the same time displays the image of the print image on the preview screen 306.

上述したステップS206に係るユーザ操作(操作指示)は、図3〜図9のGUIを通して行われる。   The user operation (operation instruction) according to step S206 described above is performed through the GUI shown in FIGS.

本実施形態におけるレイアウト印刷ツールは、印刷可能領域を確認しながら、印刷画像及び文字の印刷用紙上の位置や大きさを編集することができる。以下、印刷画像及び文字、印刷可能領域の位置や大きさは、印刷用紙の左上端の点を原点とし、右方向に+x、下方向に+yとなる座標系で表されるものとする。また、特に断りなく「位置」と使う場合、印刷画像及び文字、印刷可能領域の、描画領域の左上端点のx,y座標を指すものとする。前記位置、大きさとも、ミリメートル単位又はインチ単位で表される。   The layout printing tool in the present embodiment can edit the position and size of a print image and characters on a print sheet while checking a printable area. Hereinafter, the position and size of the print image, the characters, and the printable area are represented by a coordinate system in which the upper left point of the printing paper is the origin, + x is in the right direction, and + y is in the down direction. In addition, when using “position” without particular notice, the x and y coordinates of the upper left end point of the drawing area of the print image, the character, and the printable area are indicated. Both the position and size are expressed in units of millimeters or inches.

上述したように、図3は、レイアウト印刷ツールのGUIの全体概要の一例を示す図である。設定ダイアログ301には、図5〜図7及び図9に示すGUIが表示され、ユーザは、それぞれのGUIを通して印刷レイアウトを編集することができる。   As described above, FIG. 3 is a diagram showing an example of the overall outline of the GUI of the layout printing tool. The setting dialog 301 displays the GUIs shown in FIGS. 5 to 7 and 9, and the user can edit the print layout through the respective GUIs.

302〜305のタブは排他的に選択することが可能で、ユーザは、設定ダイアログ301に表示されるGUIを切り替えることができる。   Tabs 302 to 305 can be exclusively selected, and the user can switch the GUI displayed in the setting dialog 301.

プリンタタブ302が選択されると、図5に示すGUIが設定ダイアログ301に表示される。画像タブ303が選択されると、図6に示すGUIが設定ダイアログ301に表示される。文字タブ304が選択されると、図7に示すGUIが設定ダイアログ301に表示される。設定タブ305が選択されると、図9に示すGUIが設定ダイアログ301に表示される。   When the printer tab 302 is selected, a GUI shown in FIG. When the image tab 303 is selected, the GUI shown in FIG. When the character tab 304 is selected, the GUI shown in FIG. When the setting tab 305 is selected, the GUI shown in FIG. 9 is displayed in the setting dialog 301.

プレビュー画面306では、上述したステップS205に係るプレビュー表示が行われる。プレビュー表示の詳細については図4及び図16〜21を用いて後述する。   On the preview screen 306, the preview display according to step S205 described above is performed. Details of the preview display will be described later with reference to FIGS. 4 and 16 to 21.

印刷実行ボタン307が押下されると、レイアウト印刷ツールは、上述したステップS206で編集したレイアウトで印刷処理を実行する。同時に、レイアウト印刷ツールは、印刷プリンタや印刷用紙の情報、及びGUIの各項目についてユーザが選択した状態を、二次記憶103に記憶する。2回目以降の起動においては、レイアウト印刷ツールは、記憶された情報を用いて、上述したステップS203及びステップS204の処理を行ってもよい。   When the print execution button 307 is pressed, the layout print tool executes print processing with the layout edited in step S206 described above. At the same time, the layout printing tool stores in the secondary storage 103 the information selected by the user for each item of the printing printer and printing paper, and the GUI. In the second and subsequent activations, the layout printing tool may perform the processes of step S203 and step S204 described above using the stored information.

キャンセルボタン308が押下されると、印刷処理は行わずに、レイアウト印刷ツールを終了する。適用ボタン309が押下されると、印刷プリンタや印刷用紙の情報,及びGUIの各項目についてユーザが選択した状態を、二次記憶103に記憶する。2回目以降の起動においては、記憶された情報を用いて、本実施形態におけるS203〜S204の処理を行ってもよい。   When the cancel button 308 is pressed, the layout printing tool is terminated without performing the printing process. When the apply button 309 is pressed, the state selected by the user for each item of the printer and printing paper information and GUI is stored in the secondary storage 103. In the second and subsequent activations, the processing of S203 to S204 in the present embodiment may be performed using stored information.

図5に示されるGUIを通して、ユーザは、上述したステップS213に係る、印刷プリンタ、印刷用紙の設定を行なうことができる。501〜504の各メニュー、ボタンの何れかが操作されると、レイアウト印刷ツールは、変更された情報を用いて上述したステップS205に示すプレビュー表示を行なう。   Through the GUI shown in FIG. 5, the user can set the print printer and the print paper according to step S213 described above. When any of the menus and buttons 501 to 504 is operated, the layout printing tool performs the preview display shown in step S205 described above using the changed information.

プリンタ選択メニュー501は、ドロップダウンリストであり、システムで使用可能なプリンタのプリンタ名がリストに登録されている。システムで使用可能なプリンタのリストは、CPU101が、プリンタ、オペレーティングシステム等に問い合わせを行なうことで取得する。プルダウンメニューの中から任意のプリンタが選択されると、レイアウト印刷ツールは、選択されたプリンタを印刷プリンタとして設定する。同時に、レイアウト印刷ツールは、用紙選択メニュー503のリストを更新する。   The printer selection menu 501 is a drop-down list, and printer names of printers that can be used in the system are registered in the list. A list of printers that can be used in the system is acquired by the CPU 101 by making an inquiry to a printer, an operating system, or the like. When an arbitrary printer is selected from the pull-down menu, the layout printing tool sets the selected printer as a print printer. At the same time, the layout printing tool updates the list of the paper selection menu 503.

プリンタプロパティ表示ボタン502が押下されると、レイアウト印刷ツールは、印刷プリンタのプリンタプロパティを表示する。この処理は、レイアウト印刷ツールが、システムにインストールされているプリンタドライバに問い合わせることで実現される。プリンタプロパティが閉じられると、レイアウト印刷ツールは、プリンタプロパティで設定された情報に基づいて、用紙選択メニュー503及び用紙方向選択メニュー504の内容や選択状態を変化させる。   When the printer property display button 502 is pressed, the layout printing tool displays the printer properties of the print printer. This process is realized by the layout printing tool inquiring a printer driver installed in the system. When the printer property is closed, the layout printing tool changes the contents and selection state of the paper selection menu 503 and the paper direction selection menu 504 based on the information set in the printer property.

用紙選択メニュー503はドロップダウンリストであり、印刷プリンタで使用可能な用紙の用紙名がリストに登録されている。印刷プリンタで使用可能な用紙のリストは、レイアウト印刷ツールが、印刷プリンタに問い合わせることによって取得する。プルダウンメニューの中から任意の用紙が選択されると、レイアウト印刷ツールは、選択された用紙を印刷用紙として設定する。   A paper selection menu 503 is a drop-down list, and paper names of papers that can be used by the print printer are registered in the list. The list of sheets usable in the print printer is acquired by the layout printing tool inquiring the print printer. When an arbitrary sheet is selected from the pull-down menu, the layout printing tool sets the selected sheet as a print sheet.

用紙方向選択メニュー504では、用紙方向を選択することができる。縦が選択されると、レイアウト印刷ツールは、印刷用紙の用紙方向を縦方向に設定する。横が選択されると、レイアウト印刷ツールは、印刷用紙の用紙方向を横方向に設定する。   In the paper direction selection menu 504, the paper direction can be selected. When portrait is selected, the layout printing tool sets the paper direction of the printing paper to the vertical direction. When landscape is selected, the layout printing tool sets the paper direction of the print paper in the horizontal direction.

図6に示されるGUIを通して、ユーザが、上述したステップS211に係る、印刷画像のレイアウトの変更を行なうことができる。601〜606の各メニュー、ボタン、チェックボックス、エディットボックスの何れかが操作されると、レイアウト印刷ツールは、変更された情報を用いて上述したステップS205に示すプレビュー表示を行なう。   Through the GUI shown in FIG. 6, the user can change the layout of the print image according to step S211 described above. When any of the menus 601 to 606, buttons, check boxes, and edit boxes is operated, the layout printing tool performs the preview display shown in step S205 described above using the changed information.

画像サイズ設定部601は、印刷画像の描画領域のx座標、y座標、幅、高さ、に対応する4つのエディットボックスで構成されている。ユーザは、各エディットボックスに数値を直接入力することで、印刷用紙上の印刷画像の位置、大きさを変更することができる。印刷画像の幅が変更されると、レイアウト印刷ツールは、印刷画像のアスペクト比が保たれるように高さを算出し、高さに対応するエディットボックスの値を更新する。同様に、印刷画像の高さが変更されると、レイアウト印刷ツールは、印刷画像のアスペクト比が保たれるように幅を算出し、幅に対応するエディットボックスの値を更新する。   The image size setting unit 601 includes four edit boxes corresponding to the x coordinate, y coordinate, width, and height of the drawing area of the print image. The user can change the position and size of the print image on the print paper by directly inputting a numerical value in each edit box. When the width of the print image is changed, the layout printing tool calculates the height so that the aspect ratio of the print image is maintained, and updates the value of the edit box corresponding to the height. Similarly, when the height of the print image is changed, the layout printing tool calculates the width so that the aspect ratio of the print image is maintained, and updates the value of the edit box corresponding to the width.

中央配置ボタン602が押下されると、レイアウト印刷ツールは、印刷画像の中心が印刷用紙の中心と一致するように、印刷画像の位置を設定する。中央配置ボタン602が押下された場合の処理の詳細は、図13を用いて後述する。   When the center placement button 602 is pressed, the layout printing tool sets the position of the print image so that the center of the print image matches the center of the print paper. Details of the processing when the center placement button 602 is pressed will be described later with reference to FIG.

左右中央配置ボタン603が押下されると、レイアウト印刷ツールは、印刷画像の横方向の中心が印刷用紙の横方向の中心と一致するように、印刷画像の位置を設定する。左右中央配置ボタン603が押下された場合の処理の詳細は、図13を用いて後述する。   When the left / right center placement button 603 is pressed, the layout printing tool sets the position of the print image so that the center of the print image in the horizontal direction coincides with the center of the print paper in the horizontal direction. Details of processing when the left-right center placement button 603 is pressed will be described later with reference to FIG.

上下中央配置ボタン604が押下されると、レイアウト印刷ツールは、印刷画像の縦方向の中心が印刷用紙の縦方向の中心と一致するように、印刷画像の位置を設定する。上下中央配置ボタン604が押下された場合の処理の詳細は、図13を用いて後述する。   When the vertical center placement button 604 is pressed, the layout printing tool sets the position of the print image so that the vertical center of the print image matches the vertical center of the print paper. Details of processing when the vertical center arrangement button 604 is pressed will be described later with reference to FIG.

外接フィットボタン605が押下されると、レイアウト印刷ツールは、印刷用紙の印刷可能領域に、印刷画像が外接し、且つ印刷画像のアスペクト比が保たれるように、印刷画像の位置及び大きさを調整する。外接フィットボタン605が押下された場合の処理の詳細は、図14を用いて後述する。   When the circumscribing fit button 605 is pressed, the layout printing tool adjusts the position and size of the print image so that the print image circumscribes the printable area of the print paper and the aspect ratio of the print image is maintained. adjust. Details of processing when the circumscribing fit button 605 is pressed will be described later with reference to FIG.

内接フィットボタン606が押下されるとレイアウト印刷ツールは、印刷用紙の印刷可能領域に、印刷画像が内接し、且つ印刷画像のアスペクト比が保たれるように、印刷画像の位置及び大きさを調整する。内接フィットボタン606が押下された場合の処理の詳細は、図14を用いて後述する。   When the inscribed fit button 606 is pressed, the layout printing tool adjusts the position and size of the print image so that the print image is inscribed in the printable area of the printing paper and the aspect ratio of the print image is maintained. adjust. Details of processing when the inscribed fit button 606 is pressed will be described later with reference to FIG.

本実施形態におけるレイアウト印刷ツールでは、画像と同様、文字を印刷することができる。本実施形態におけるレイアウト印刷ツールでは、4種類の場所に文字を描画することが可能で、文字描画領域の場所により、それぞれヘッダー、フッター、タイトル、キャプションと呼ぶ。ヘッダーは印刷可能領域の上端、フッターは印刷可能領域の下端、タイトルは印刷画像の上、キャプションは印刷画像の下に位置する。それぞれの描画領域の詳細及び決定方法については、図15を用いて後述する。   With the layout printing tool in the present embodiment, characters can be printed in the same manner as an image. In the layout printing tool according to the present embodiment, characters can be drawn at four types of locations, and are called a header, a footer, a title, and a caption, depending on the location of the character drawing area. The header is located at the upper end of the printable area, the footer is located at the lower end of the printable area, the title is located above the print image, and the caption is located below the print image. Details of each drawing area and the determination method will be described later with reference to FIG.

図7に示されるGUIを通して、ユーザが、上述したステップS209に係る、ヘッダー、フッター、タイトル、キャプションに表示する文字の設定を行なうことができる。701〜706の各ボタン、テキストボックスの何れかが操作されると、レイアウト印刷ツールは、変更された情報を用いて本実施形態におけるS205に示すプレビュー表示を行なう。   Through the GUI shown in FIG. 7, the user can set the characters to be displayed in the header, footer, title, and caption according to step S209 described above. When any of the buttons 701 to 706 or the text box is operated, the layout printing tool performs the preview display shown in S205 in the present embodiment using the changed information.

文字揃え切り替えボタン701は、排他的に選択できる3つのボタンにより構成されており、ユーザは、表示する文字の文字揃えを、左揃え、中央揃え、右揃えの中から選択することができる。文字揃え切り替えボタン701は、ヘッダー、フッター、タイトル、キャプションのそれぞれについて用意されている。   The character alignment switching button 701 includes three buttons that can be selected exclusively, and the user can select the character alignment of characters to be displayed from left alignment, center alignment, and right alignment. The character alignment switching button 701 is prepared for each of the header, footer, title, and caption.

フォント選択ボタン702が押下されると、レイアウト印刷ツールは、システムで用意されているフォント選択ダイアログを表示する。フォント選択ダイアログ上では、ユーザは、フォントの種類、スタイル、サイズを設定することができる。フォント選択ボタン702は、ヘッダー、フッター、タイトル、キャプションのそれぞれについて用意されている。   When the font selection button 702 is pressed, the layout printing tool displays a font selection dialog prepared in the system. On the font selection dialog, the user can set the font type, style, and size. Font selection buttons 702 are prepared for each of the header, footer, title, and caption.

ヘッダー入力テキストボックス703では、ユーザは、ヘッダー部に描画する文字列を設定することができる。ユーザは、文字列をテキストボックスに直接入力することで設定する。   In the header input text box 703, the user can set a character string to be drawn in the header part. The user sets by directly inputting the character string into the text box.

フッター入力テキストボックス704では、ユーザは、フッターに描画する文字列を設定することができる。ユーザは、文字列をテキストボックスに直接入力することで設定する。   In the footer input text box 704, the user can set a character string to be drawn in the footer. The user sets by directly inputting the character string into the text box.

タイトル入力テキストボックス705では、ユーザは、タイトルに描画する文字列を設定することができる。ユーザは、文字列をテキストボックスに直接入力することで設定する。   In the title input text box 705, the user can set a character string to be drawn in the title. The user sets by directly inputting the character string into the text box.

キャプション入力テキストボックス706では、ユーザは、キャプションに描画する文字列を設定することができる。ユーザは、文字列をテキストボックスに直接入力することで設定する。   In the caption input text box 706, the user can set a character string to be drawn in the caption. The user sets by directly inputting the character string into the text box.

図8は、フォント選択ボタン702が押下された際に表示される、システムで用意されているフォント選択ダイアログの一例を示す図である。レイアウト印刷ツールが動作するシステムでは、フォント選択ダイアログにより、フォントの種類、スタイル、サイズを設定することができる。   FIG. 8 is a diagram showing an example of a font selection dialog prepared by the system that is displayed when the font selection button 702 is pressed. In a system in which the layout printing tool operates, the font type, style, and size can be set by a font selection dialog.

フォント選択メニュー801では、ユーザは、使用するフォントの種類を設定することができる。ユーザは、操作指示に応じて、システムで使用可能なフォントが一覧表示されているリスト部から、使用するフォントを選択する。フォントが選択されると、レイアウト印刷ツールは、同時に、選択したフォントに適用可能なスタイル、サイズを、それぞれフォントスタイル選択メニュー802、フォントサイズ選択メニュー803に一覧表示する。   In the font selection menu 801, the user can set the type of font to be used. In response to the operation instruction, the user selects a font to be used from a list portion where a list of fonts usable in the system is displayed. When a font is selected, the layout printing tool simultaneously displays a list of styles and sizes applicable to the selected font in a font style selection menu 802 and a font size selection menu 803, respectively.

フォントスタイル選択メニュー802では、ユーザは、使用するフォントのスタイルを設定することができる。ユーザは、フォント選択メニュー801で選択されたフォントに適用可能なスタイルが一覧表示されているリスト部から、使用するスタイルを選択する。一般に、フォントのスタイルには、標準、斜体、太字等がある。   In the font style selection menu 802, the user can set the font style to be used. The user selects a style to be used from a list portion in which styles applicable to the font selected from the font selection menu 801 are displayed. In general, font styles include standard, italic, and bold.

フォントサイズ選択メニュー803では、ユーザは、使用するフォントサイズを設定することができる。ユーザは、フォント選択メニュー801で選択されたフォントに適用可能なサイズが一覧表示されているリスト部から、使用するサイズを選択する。   In the font size selection menu 803, the user can set the font size to be used. The user selects a size to be used from a list portion in which sizes applicable to the font selected in the font selection menu 801 are displayed in a list.

OKボタン804が押下されると、レイアウト印刷ツールは、801〜803で選択されたフォントの種類、スタイル、サイズを設定し、フォント選択ダイアログを終了する。   When the OK button 804 is pressed, the layout printing tool sets the type, style, and size of the font selected in 801 to 803, and ends the font selection dialog.

キャンセルボタン805が押下されると、レイアウト印刷ツールは、801〜803で選択されたフォントの種類、スタイル、サイズを設定せずに、フォント選択ダイアログを終了する。   When the cancel button 805 is pressed, the layout printing tool ends the font selection dialog without setting the font type, style, and size selected in 801 to 803.

図9のGUIを通して、ユーザは、位置・大きさ指定単位、用紙の背景色を設定することができる。   Through the GUI shown in FIG. 9, the user can set the position / size designation unit and the paper background color.

単位選択メニュー901では、ユーザは、印刷画像の位置,大きさを指定する際の単位を設定することができる。単位選択メニュー901はドロップダウンリストであり、ユーザは、"mm"、"inch"の中からひとつを選択する。"mm"が選択されると、単位はミリメートルに設定される。設定と同時に、レイアウト印刷ツールは、画像サイズ設定部601に表示されている値を、ミリメートル単位の値に更新する。"inch"が選択されると、単位はインチに設定される。設定と同時に、レイアウト印刷ツールは、画像サイズ設定部601に表示されている値を、インチ単位の値に更新する。   In the unit selection menu 901, the user can set a unit for designating the position and size of the print image. The unit selection menu 901 is a drop-down list, and the user selects one from “mm” and “inch”. If “mm” is selected, the unit is set to millimeters. Simultaneously with the setting, the layout printing tool updates the value displayed in the image size setting unit 601 to a value in millimeters. If “inch” is selected, the unit is set to inches. Simultaneously with the setting, the layout printing tool updates the value displayed in the image size setting unit 601 to a value in inches.

背景色切り替えチェックボックス902では、ユーザは、印刷領域の背景色を設定することができる。チェックボックスがチェックされていれば、背景は黒に設定され、印刷画像及び文字の描画領域以外の印刷可能領域は黒く印刷される。チェックボックスがチェックされていなければ、背景は紙白に設定され、印刷画像及び文字の描画領域以外の印刷可能領域は何もなされない。背景色切り替えチェックボックス902が操作されると、レイアウト印刷ツールは、変更された情報を用いて上述したステップS205に係るプレビュー表示を行なう。   In the background color switching check box 902, the user can set the background color of the print area. If the check box is checked, the background is set to black, and the printable area other than the print image and the character drawing area is printed in black. If the check box is not checked, the background is set to paper white, and no printable area other than the print image and character drawing area is performed. When the background color switching check box 902 is operated, the layout printing tool performs the preview display according to step S205 described above using the changed information.

図13は、中央配置ボタン602、左右中央配置ボタン603、上下中央配置ボタン604の何れかが押下されたときの処理の一例を示すフローチャートである。   FIG. 13 is a flowchart illustrating an example of processing when one of the center placement button 602, the left and right center placement button 603, and the top and bottom center placement button 604 is pressed.

ステップS1101では、レイアウト印刷ツールが、印刷用紙の幅WP,mm,高さHP,mmを取得する。この処理は、レイアウト印刷ツールが、プリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S1101, the layout printing tool acquires the width W P, mm and height H P, mm of the printing paper. This process is realized by the layout printing tool inquiring of the printer driver. In the system according to this embodiment, a value in millimeters is obtained.

ステップS1102では、レイアウト印刷ツールが、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS1103に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、ステップS1104に進む。   In step S1102, the layout printing tool checks the currently set unit. If the unit is set to inches in the unit selection menu 901, the layout printing tool proceeds to step S1103. If the unit is set to millimeters, the layout printing tool proceeds to step S1104.

ステップS1103では、レイアウト印刷ツールが、変数WP,HPへ、WP,mm,HP,mmそれぞれの単位を、ミリメートルからインチに変換して代入する。レイアウト印刷ツールによる、ミリメートルからインチへの変換は、ミリメートル単位の値に0.04を掛け合わせることで実現される。 In step S1103, the layout printing tool converts the units of W P, mm , H P, mm from millimeters to inches and substitutes them into variables W P , H P. Conversion from millimeters to inches by the layout printing tool is accomplished by multiplying the value in millimeters by 0.04.

ステップS1104では、レイアウト印刷ツールが、変数WP,HPへ、WP,mm,HP,mmそれぞれの値を代入する。 In step S1104, the layout printing tool substitutes the values of W P, mm , H P, mm for variables W P , H P.

ステップS1105では、レイアウト印刷ツールが、印刷画像の幅WI,高さHIを取得する。レイアウト印刷ツールは、印刷画像の大きさとして、画像サイズ設定部601の対応するテキストボックスで設定されている値を用いる。 In step S1105, the layout printing tool acquires the width W I and height H I of the print image. The layout printing tool uses the value set in the corresponding text box of the image size setting unit 601 as the size of the print image.

ステップS1106では、レイアウト印刷ツールが、中央配置が指示されたか否かをチェックする。中央配置ボタン602が押下されていれば、レイアウト印刷ツールは、ステップS1108へ進む。押下されていなければ、レイアウト印刷ツールは、ステップS1107へ進む。   In step S1106, the layout printing tool checks whether center placement is instructed. If the center placement button 602 has been pressed, the layout printing tool proceeds to step S1108. If not pressed, the layout printing tool proceeds to step S1107.

ステップS1107では、レイアウト印刷ツールが、左右中央配置が指示されたか否かをチェックする。左右中央配置ボタン603が押下されていれば、レイアウト印刷ツールは、ステップS1110へと進む。押下されていなければ、レイアウト印刷ツールは、上下中央配置ボタン604が押下されたと判断し、ステップS1111へ進む。   In step S1107, the layout printing tool checks whether left-right center placement is instructed. If the left-right center placement button 603 is pressed, the layout printing tool proceeds to step S1110. If not pressed, the layout printing tool determines that the vertical center placement button 604 has been pressed, and proceeds to step S1111.

ステップS1108では、レイアウト印刷ツールが、印刷画像のx方向の中心が、印刷用紙のx方向の中心と一致するように、印刷画像の位置を算出し、設定する。印刷画像の位置のx座標XIは、XI=WP/2−WI/2の式に基づいて算出される。同時に、レイアウト印刷ツールは、画像サイズ設定部601において、印刷画像の位置のx座標に対応するテキストボックスの値を、XIに更新する。 In step S1108, the layout printing tool calculates and sets the position of the print image so that the x-direction center of the print image matches the x-direction center of the print paper. The x-coordinate X I of the position of the print image is calculated based on the formula X I = W P / 2−W I / 2. At the same time, the layout printing tool updates the value of the text box corresponding to the x coordinate of the position of the print image to X I in the image size setting unit 601.

ステップS1109では、レイアウト印刷ツールが、印刷画像のy方向の中心が、印刷用紙のy方向の中心と一致するように、印刷画像の位置を算出し、設定する。印刷画像の位置のy座標YIは、YI=HP/2−HI/2の式に基づいて算出される。同時に、レイアウト印刷ツールは、画像サイズ設定部601において、印刷画像の位置のy座標に対応するテキストボックスの値を、YIに更新する。 In step S1109, the layout printing tool calculates and sets the position of the print image so that the center of the print image in the y direction matches the center of the print sheet in the y direction. The y coordinate Y I of the position of the print image is calculated based on the formula Y I = H P / 2−H I / 2. At the same time, the layout printing tool updates the value of the text box corresponding to the y coordinate of the position of the print image to Y I in the image size setting unit 601.

ステップS1110では、レイアウト印刷ツールが、ステップS1108と同様の処理を行なう。ステップS1111では、レイアウト印刷ツールが、ステップS1109と同様の処理を行なう。   In step S1110, the layout printing tool performs the same process as in step S1108. In step S1111, the layout printing tool performs the same process as in step S1109.

図14は、外接フィットボタン605、内接フィットボタン606の何れかが押下されたときの処理の一例を示すフローチャートである。   FIG. 14 is a flowchart illustrating an example of processing when one of the circumscribed fit button 605 and the inscribed fit button 606 is pressed.

ステップS1201において、レイアウト印刷ツールは、印刷可能領域の位置XR,mm,YR,mm及び大きさWR,mm,HR,mmを取得する。この処理は、レイアウト印刷ツールが、プリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S1201, the layout printing tool acquires the position X R, mm , Y R, mm and the size W R, mm , H R, mm of the printable area. This process is realized by the layout printing tool inquiring of the printer driver. In the system according to this embodiment, a value in millimeters is obtained.

ステップS1202では、レイアウト印刷ツールが、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS1203に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、ステップS1204に進む。   In step S1202, the layout printing tool checks the currently set unit. If the unit is set to inches in the unit selection menu 901, the layout printing tool advances to step S1203. If the unit is set to millimeters, the layout printing tool proceeds to step S1204.

ステップS1203では、レイアウト印刷ツールが、変数XR,YR,WR,HRへ、XR,mm,YR,mm,WR,mm,HR,mmそれぞれの単位を、ミリメートルからインチに変換して代入する。レイアウト印刷ツールによる、ミリメートルからインチへの変換は、ミリメートル単位の値に0.04を掛け合わせることで実現される。 In step S1203, the layout printing tool changes the units of X R, mm , Y R, mm , W R, mm , H R, mm from millimeters to inches to the variables X R , Y R , W R , H R. Convert to and substitute. Conversion from millimeters to inches by the layout printing tool is accomplished by multiplying the value in millimeters by 0.04.

ステップS1204では、レイアウト印刷ツールが、変数XR,YR,WR,HRへ、XR,mm,YR,mm,WR,mm,HR,mmそれぞれの値を代入する。 In step S1204, the layout printing tool substitutes the values of X R, mm , Y R, mm , W R, mm , H R, mm for variables X R , Y R , W R , H R.

ステップS1205では、レイアウト印刷ツールが、印刷画像の位置XI,YIを取得する。レイアウト印刷ツールは、印刷画像の位置として、画像サイズ設定部601の対応するテキストボックスで設定されている値を用いる。 In step S1205, the layout printing tool acquires print image positions X I and Y I. The layout printing tool uses the value set in the corresponding text box of the image size setting unit 601 as the position of the print image.

ステップS1206では、レイアウト印刷ツールが、印刷画像の幅WI,高さHIを取得する。レイアウト印刷ツールは、印刷画像の大きさとして、画像サイズ設定部601の対応するテキストボックスで設定されている値を用いる。 In step S1206, the layout printing tool acquires the width W I and height H I of the print image. The layout printing tool uses the value set in the corresponding text box of the image size setting unit 601 as the size of the print image.

ステップS1207では、レイアウト印刷ツールが、外接が指示されたか否かをチェックする。外接フィットボタン605が押下されていれば、レイアウト印刷ツールは、ステップS1208へ進む。押下されていなければ、レイアウト印刷ツールは、内接フィットボタン606が押下されたとして、ステップS1209へ進む。   In step S1207, the layout printing tool checks whether circumscription is instructed. If the circumscribing fit button 605 is pressed, the layout printing tool proceeds to step S1208. If not pressed, the layout printing tool assumes that the inscribed fit button 606 has been pressed, and proceeds to step S1209.

ステップS1208では、レイアウト印刷ツールが、WR/HRの値と、WI/HIの値とを比較する。(WR/HR)>(WI/HI)であれば、レイアウト印刷ツールは、ステップS1210へ進む。(WR/HR)<(WI/HI)であれば、レイアウト印刷ツールは、ステップS1211へ進む。 In step S1208, the layout printing tool compares the value of W R / H R with the value of W I / H I. If (W R / H R )> (W I / H I ), the layout printing tool proceeds to step S1210. If (W R / H R ) <(W I / H I ), the layout printing tool advances to step S1211.

ステップS1209では、レイアウト印刷ツールが、WR/HRの値と、WI/HIの値とを比較する。(WR/HR)>(WI/HI)であれば、レイアウト印刷ツールは、ステップS1211へ進む。(WR/HR)<(WI/HI)であれば、レイアウト印刷ツールは、ステップS1210へ進む。 In step S1209, the layout printing tool compares the value of W R / H R with the value of W I / H I. If (W R / H R )> (W I / H I ), the layout printing tool proceeds to step S1211. If (W R / H R ) <(W I / H I ), the layout printing tool proceeds to step S1210.

ステップS1210では、レイアウト印刷ツールが、フィット後の印刷画像の幅、高さを算出する。フィット後の印刷画像の高さHIは、HI=(HI/WI)×WRの式に基づいて算出される。レイアウト印刷ツールは、フィット後の印刷画像のWIを、WRと同一にする。同時に、レイアウト印刷ツールは、画像サイズ設定部601において、印刷画像の幅、高さに対応するテキストボックスの値を、それぞれWI,HIに更新する。 In step S1210, the layout printing tool calculates the width and height of the print image after the fit. The height H I of the printed image after the fitting is calculated based on the formula H I = (H I / W I ) × W R. The layout printing tool makes W I of the printed image after fitting the same as W R. At the same time, the layout printing tool updates the text box values corresponding to the width and height of the print image to W I and H I in the image size setting unit 601, respectively.

ステップS1211では、レイアウト印刷ツールが、フィット後の印刷画像の幅、高さを算出する。フィット後の印刷画像の高さHIは、WI=(WI/HI)×HRの式に基づいて算出される。レイアウト印刷ツールは、フィット後の印刷画像のHIを、HRと同一にする。同時に、レイアウト印刷ツールは、画像サイズ設定部601において、印刷画像の幅、高さに対応するテキストボックスの値を、それぞれWI,HIに更新する。 In step S1211, the layout printing tool calculates the width and height of the print image after the fit. The height H I of the printed image after fitting is calculated based on the formula of W I = (W I / H I ) × H R. The layout printing tool makes H I of the printed image after fitting the same as H R. At the same time, the layout printing tool updates the text box values corresponding to the width and height of the print image to W I and H I in the image size setting unit 601, respectively.

ステップS1212では、レイアウト印刷ツールが、フィット後の印刷画像の幅、高さを算出する。フィット後の印刷画像の位置のx座標XIは、XI=WR/2−WI/2の式に基づいて算出される。また、フィット後の印刷画像の位置のy座標YIは、YI=HR/2−HI/2の式に基づいて算出される。同時に、レイアウト印刷ツールは、画像サイズ設定部601において、印刷画像の位置のx座標、y座標に対応するテキストボックスの値を、それぞれXI,YIに更新する。 In step S1212, the layout printing tool calculates the width and height of the print image after the fit. The x-coordinate X I of the position of the print image after fitting is calculated based on the formula X I = W R / 2−W I / 2. Further, the y coordinate Y I of the position of the print image after the fitting is calculated based on the formula of Y I = H R / 2−H I / 2. At the same time, the layout printing tool updates the text box values corresponding to the x-coordinate and y-coordinate of the position of the print image to X I and Y I in the image size setting unit 601 respectively.

図15は、上述したステップS210に係る印刷用紙上の文字の描画領域をミリメートル単位で算出する際の手順を示すフローチャートである。レイアウト印刷ツールは、ヘッダー、フッター、タイトル、キャプション何れかの描画領域を算出する。   FIG. 15 is a flowchart showing a procedure for calculating the drawing area of characters on the printing paper in millimeters according to step S210 described above. The layout printing tool calculates the drawing area of any one of the header, footer, title, and caption.

ステップS1301では、レイアウト印刷ツールが、ヘッダー、フッター、タイトル、キャプションにおいて、描画領域の算出対象とする文字が、図7に示されるGUIを通して入力されているか否かをチェックする。入力されていれば、レイアウト印刷ツールは、ステップS1302へ進む。入力されていなければ、レイアウト印刷ツールは、図15に示される処理を終了する。   In step S1301, the layout printing tool checks whether a character to be calculated for the drawing area is input through the GUI shown in FIG. 7 in the header, footer, title, and caption. If entered, the layout printing tool proceeds to step S1302. If it has not been input, the layout printing tool ends the processing shown in FIG.

ステップS1302では、レイアウト印刷ツールが、印刷可能領域の位置XR,mm,YR,mm及び大きさWR,mm,HR,mmを取得する。この処理は、レイアウト印刷ツールが、システムにインストールされているプリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S1302, the layout printing tool acquires the printable area positions X R, mm , Y R, mm and sizes W R, mm , H R, mm . This process is realized by the layout printing tool inquiring a printer driver installed in the system. In the system according to this embodiment, a value in millimeters is obtained.

ステップS1303では、レイアウト印刷ツールが、印刷画像の位置XI,YI及び大きさWI,HIを取得する。レイアウト印刷ツールは、これらの値として、画像サイズ設定部601の対応するテキストボックスで設定されている値を用いる。 In step S1303, the layout printing tool acquires the positions X I and Y I and the sizes W I and H I of the print image. The layout printing tool uses values set in the corresponding text box of the image size setting unit 601 as these values.

ステップS1304では、レイアウト印刷ツールが、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS1304に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、ステップS1305に進む。   In step S1304, the layout printing tool checks the currently set unit. If the unit is set to inches in the unit selection menu 901, the layout printing tool proceeds to step S1304. If the unit is set to millimeters, the layout printing tool proceeds to step S1305.

ステップS1305では、レイアウト印刷ツールが、変数XI,mm,YI,mm,WI,mm,HI,mmへ、XI,YI,WI,HIそれぞれの単位を、インチからミリメートルに変換して代入する。レイアウト印刷ツールによる、インチからミリメートルへの変換は、インチ単位の値に25.4を掛け合わせることで実現される。 In step S1305, the layout printing tool changes the units of X I , Y I , W I , and H I from inches to millimeters to the variables X I, mm , Y I, mm , W I, mm , H I, mm . Convert to and substitute. The conversion from inch to millimeter by the layout printing tool is realized by multiplying the value in inches by 25.4.

ステップS1306では、レイアウト印刷ツールが、変数XI,mm,YI,mm,WI,mm,HI,mmへ、XI,YI,WI,HIそれぞれの値を代入する。 In step S1306, the layout printing tool substitutes the values of X I , Y I , W I , and H I for variables X I, mm , Y I, mm , W I, mm , H I, mm .

ステップS1307では、レイアウト印刷ツールが、描画領域の算出対象がヘッダーの文字列であるか否かをチェックする。ヘッダーの文字列であれば、レイアウト印刷ツールは、ステップS1310へ進む。そうでなければ、レイアウト印刷ツールは、ステップS1308へ進む。   In step S1307, the layout printing tool checks whether the drawing area calculation target is a header character string. If it is the character string of the header, the layout printing tool proceeds to step S1310. Otherwise, the layout printing tool proceeds to step S1308.

ステップS1308では、レイアウト印刷ツールが、描画領域の算出対象がフッターの文字列であるか否かをチェックする。フッターの文字列であれば、レイアウト印刷ツールは、ステップS1313へ進む。そうでなければ、レイアウト印刷ツールは、ステップS1309へ進む。   In step S1308, the layout printing tool checks whether the drawing area calculation target is a footer character string. If it is a footer character string, the layout printing tool proceeds to step S1313. Otherwise, the layout printing tool proceeds to step S1309.

ステップS1309では、レイアウト印刷ツールが、描画領域の算出対象がタイトルの文字列であるか否かをチェックする。タイトルの文字列であれば、レイアウト印刷ツールは、ステップS1316へ進む。そうでなければ、レイアウト印刷ツールは、描画領域の算出対象がキャプションの文字列であると判断し、ステップS1319へ進む。   In step S1309, the layout printing tool checks whether the drawing area calculation target is a title character string. If it is a title character string, the layout printing tool advances to step S1316. Otherwise, the layout printing tool determines that the drawing area calculation target is a caption character string, and proceeds to step S1319.

ステップS1310では、レイアウト印刷ツールが、文字描画領域の幅WS,mmに、WR,mmを代入する。 In step S1310, the layout printing tool substitutes W R, mm for the width W S, mm of the character drawing area.

ステップS1311では、レイアウト印刷ツールが、文字列を幅WS,mmの矩形に描画する場合に必要となる矩形の高さHS,mmを取得する。この処理は、レイアウト印刷ツールが表示デバイスの解像度と文字のフォントサイズとから算出する、又はオペレーティングシステムに問い合わせる、こと等で実現される。 In step S1311, the layout printing tool acquires the height H S, mm of the rectangle that is necessary when the character string is drawn in the rectangle having the width W S, mm . This process is realized by the layout printing tool calculating from the resolution of the display device and the font size of the character, or inquiring the operating system.

ステップS1312では、レイアウト印刷ツールが、文字描画領域の位置を算出する。文字描画領域の位置XS,mm,YS,mmは、それぞれ、
S,mm=XR,mm
S,mm=YR,mm
の式に基づいて算出される。
In step S1312, the layout printing tool calculates the position of the character drawing area. The positions X S, mm and Y S, mm of the character drawing area are respectively
X S, mm = X R, mm
Y S, mm = Y R, mm
It is calculated based on the following formula.

ステップS1313では、レイアウト印刷ツールが、文字描画領域の幅WS,mmに、WR,mmを代入する。 In step S1313, the layout printing tool substitutes W R, mm for the width W S, mm of the character drawing area.

ステップS1314では、レイアウト印刷ツールが、文字列を幅WS,mmの矩形に描画する場合に必要となる矩形の高さHS,mmを取得する。この処理は、レイアウト印刷ツールが表示デバイスの解像度と文字のフォントサイズとから算出する、又はオペレーティングシステムに問い合わせる、こと等で実現される。 In step S1314, the layout printing tool obtains the rectangular height H S, mm required when the character string is drawn in a rectangle having the width W S, mm . This process is realized by the layout printing tool calculating from the resolution of the display device and the font size of the character, or inquiring the operating system.

ステップS1315では、レイアウト印刷ツールが、文字描画領域の位置を算出する。文字描画領域の位置XS,mm,YS,mmは、それぞれ、
S,mm=XR,mm
S,mm=YR,mm+HR,mm−HS,mm
の式に基づいて算出される。
In step S1315, the layout printing tool calculates the position of the character drawing area. The positions X S, mm and Y S, mm of the character drawing area are respectively
X S, mm = X R, mm
Y S, mm = Y R, mm + H R, mm −H S, mm
It is calculated based on the following formula.

ステップS1316では、レイアウト印刷ツールが、文字描画領域の幅WS,mmに、WI,mmを代入する。 In step S1316, the layout printing tool substitutes W I, mm for the width W S, mm of the character drawing area.

ステップS1317では、レイアウト印刷ツールが、文字列を幅WS,mmの矩形に描画する場合に必要となる矩形の高さHS,mmを取得する。この処理は、レイアウト印刷ツールが表示デバイスの解像度と文字のフォントサイズとから算出する、又はオペレーティングシステムに問い合わせる、こと等で実現される。 In step S1317, the layout printing tool acquires the height H S, mm of the rectangle that is necessary when the character string is drawn in the rectangle having the width W S, mm . This process is realized by the layout printing tool calculating from the resolution of the display device and the font size of the character, or inquiring the operating system.

ステップS1318では、レイアウト印刷ツールが、文字描画領域の位置を算出する。文字描画領域の位置XS,mm,YS,mmは、それぞれ、
S,mm=XI,mm
S,mm=YI,mm−HS,mm
の式に基づいて算出される。
In step S1318, the layout printing tool calculates the position of the character drawing area. The positions X S, mm and Y S, mm of the character drawing area are respectively
X S, mm = X I, mm
Y S, mm = Y I, mm -H S, mm
It is calculated based on the following formula.

ステップS1319では、レイアウト印刷ツールが、文字描画領域の幅WS,mmにWI,mmを代入する。 In step S1319, the layout printing tool substitutes W I, mm for the width W S, mm of the character drawing area.

ステップS1320では、レイアウト印刷ツールが、文字列を幅WS,mmの矩形に描画する場合に必要となる矩形の高さHS,mmを取得する。この処理は、レイアウト印刷ツールが表示デバイスの解像度と文字のフォントサイズとから算出する、又はオペレーティングシステムに問い合わせる、こと等で実現される。 In step S1320, the layout printing tool obtains a rectangular height H S, mm that is necessary when the character string is drawn in a rectangle having a width W S, mm . This process is realized by the layout printing tool calculating from the resolution of the display device and the font size of the character, or inquiring the operating system.

ステップS1321では、レイアウト印刷ツールが、文字描画領域の位置を算出する。文字描画領域の位置XS,mm,YS,mmは、それぞれ、
S,mm=XI,mm
S,mm=YI,mm+HI,mm+HS,mm
の式に基づいて算出される。
In step S1321, the layout printing tool calculates the position of the character drawing area. The positions X S, mm and Y S, mm of the character drawing area are respectively
X S, mm = X I, mm
Y S, mm = Y I, mm + H I, mm + H S, mm
It is calculated based on the following formula.

次に、図4及び図16〜25を用いて、上述したステップS205に係る、プレビュー表示の詳細を説明する。   Next, details of the preview display according to step S205 described above will be described with reference to FIGS. 4 and 16 to 25.

図4は、プレビュー画面306の詳細を示す図である。プレビュー画面306は、印刷画像の印刷用紙上の配置を表す画面であり、印刷画像のイメージと、印刷用紙のイメージとを同時に表示する。   FIG. 4 is a diagram showing details of the preview screen 306. The preview screen 306 is a screen representing the arrangement of the print image on the print paper, and displays the print image and the print paper image simultaneously.

背景イメージ401は、プレビュー画面306のベースである。   The background image 401 is the base of the preview screen 306.

用紙プレビューイメージ402は、設定された印刷用紙の種類や方向等が分かるように、イメージを表示したものである。図5に示すGUIを通して印刷プリンタや印刷用紙の設定が変更されると、レイアウト印刷ツールは、用紙プレビューイメージ402を更新する。   The paper preview image 402 displays an image so that the type and orientation of the set printing paper can be understood. When the settings of the printing printer and printing paper are changed through the GUI shown in FIG. 5, the layout printing tool updates the paper preview image 402.

印刷可能領域線403は、設定された印刷用紙における印刷可能領域を表す線を、用紙プレビューイメージ402上に表示したものである。   The printable area line 403 is a line representing a printable area on the set print paper displayed on the paper preview image 402.

画像プレビューイメージ404は、印刷用紙上の印刷画像のイメージを、プレビュー画面306内に表示したものである。レイアウト印刷ツールは、画像プレビューイメージ404を、用紙プレビューイメージ402よりも上であり、且つ、印刷可能領域線403よりも下になるように表示する。図6に示すGUIを通して、印刷画像のレイアウトが変更されると、レイアウト印刷ツールは、画像プレビューイメージ404の表示を更新する。   The image preview image 404 is an image of the print image on the print paper displayed in the preview screen 306. The layout printing tool displays the image preview image 404 so as to be above the paper preview image 402 and below the printable area line 403. When the layout of the print image is changed through the GUI shown in FIG. 6, the layout print tool updates the display of the image preview image 404.

文字プレビューイメージ405は、印刷用紙上の文字のイメージを、プレビュー画面306内に表示したものである。図7、図8に示すGUIを通して、文字の設定が変更されると、レイアウト印刷ツールは、文字プレビューイメージ405の表示を更新する。   The character preview image 405 is an image of characters on the printing paper displayed in the preview screen 306. When the character setting is changed through the GUI shown in FIGS. 7 and 8, the layout printing tool updates the display of the character preview image 405.

印刷画像サイズ表示406は、印刷用紙上に印刷される印刷画像の大きさを、線と、数値とで表したものである。図6に示すGUIを通して、印刷画像のレイアウトが変更されると、レイアウト印刷ツールは、印刷画像サイズ表示406の表示を更新する。印刷画像サイズ表示406は、常に表示するようにしてもよいし、ボタン又はキー操作により表示と非表示を切り替えるようにしてもよい。   The print image size display 406 represents the size of the print image printed on the printing paper with lines and numerical values. When the layout of the print image is changed through the GUI shown in FIG. 6, the layout print tool updates the display of the print image size display 406. The print image size display 406 may be always displayed, or may be switched between display and non-display by a button or key operation.

401〜406に示すオブジェクトは、プレビュー画面306上に表示するためのイメージである。以下、401〜406に示すオブジェクトについて位置や大きさを述べる場合、プレビュー画面306の左上端の点を原点とし、右方向に+x、下方向に+yとなる座標系で表されるものとする。更に、401〜406に示すオブジェクトの「位置」とは、特に断りがない限り、各オブジェクトの描画領域の、左上端点のx、y座標を指すものとする。前記位置、大きさとも、単位はピクセルである。   The objects 401 to 406 are images to be displayed on the preview screen 306. Hereinafter, when the positions and sizes of the objects 401 to 406 are described, they are represented by a coordinate system in which the upper left point of the preview screen 306 is the origin, + x is rightward, and + y is downward. Furthermore, unless otherwise specified, the “position” of the objects 401 to 406 indicates the x and y coordinates of the upper left end point of the drawing area of each object. The unit of both the position and the size is a pixel.

図16は、第一の実施形態における上述したステップS205に係るプレビュー表示を行なう際の処理の基本的な流れを表すフローチャートである。
ステップS1401では、レイアウト印刷ツールは、背景イメージ401を描画する。ステップS1402では、レイアウト印刷ツールは、用紙プレビューイメージ402を描画する。
FIG. 16 is a flowchart showing a basic flow of processing when performing preview display according to step S205 described above in the first embodiment.
In step S1401, the layout printing tool draws the background image 401. In step S1402, the layout printing tool draws the paper preview image 402.

ステップS1403では、レイアウト印刷ツールは、画像プレビューイメージ404を描画する。ステップS1404では、レイアウト印刷ツールは、文字プレビューイメージ405を描画する。   In step S1403, the layout printing tool draws the image preview image 404. In step S1404, the layout printing tool draws the character preview image 405.

ステップS1405では、レイアウト印刷ツールは、印刷可能領域線403を描画する。ステップS1406では、レイアウト印刷ツールは、印刷画像サイズ表示406を描画する。   In step S1405, the layout printing tool draws the printable area line 403. In step S1406, the layout printing tool draws the print image size display 406.

図17は、用紙プレビューイメージ402の描画領域の位置XP,px,YP,px,大きさWP,px,HP,pxを取得する際の処理の一例を示すフローチャートである。 FIG. 17 is a flowchart illustrating an example of processing for acquiring the position X P, px , Y P, px and the size W P, px , H P, px of the drawing area of the paper preview image 402.

ステップS1501では、レイアウト印刷ツールは、プレビュー画面306のピクセルサイズの幅WBk,px,高さHBk,pxを取得する。この処理は、レイアウト印刷ツールが表示デバイスの解像度と文字のフォントサイズとから算出する、又はオペレーティングシステムに問い合わせる、こと等で実現される。 In step S1501, the layout printing tool acquires the width W Bk, px and the height H Bk, px of the pixel size of the preview screen 306. This process is realized by the layout printing tool calculating from the resolution of the display device and the font size of the character, or inquiring the operating system.

ステップS1502では、レイアウト印刷ツールは、印刷用紙の幅WP,mm,高さHP,mmを取得する。この処理は、レイアウト印刷ツールが、システムにインストールされているプリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S1502, the layout printing tool acquires the width W P, mm and the height H P, mm of the printing paper. This process is realized by the layout printing tool inquiring a printer driver installed in the system. In the system according to this embodiment, a value in millimeters is obtained.

ステップS1503では、レイアウト印刷ツールは、プレビュー画面306の各端から、用紙プレビューイメージ402までの距離dをピクセル単位で設定する。本実施形態ではd=30とするが、他の任意の値に設定してもよい。   In step S1503, the layout printing tool sets the distance d from each end of the preview screen 306 to the paper preview image 402 in units of pixels. In this embodiment, d = 30, but any other value may be set.

ステップS1504では、レイアウト印刷ツールは、WP,mm/HP,mmの値と、WBk,px/HBk,pxの値とを比較する。(WP,mm/HP,mm)>(WBk,px/HBk,px)であれば、レイアウト印刷ツールは、ステップS1505へ進む。(WP,mm/HP,mm)<(WBk,px/HBk,px)であれば、レイアウト印刷ツールは、ステップS1506へ進む。 In step S1504, the layout printing tool compares the value of W P, mm / H P, mm with the value of W Bk, px / H Bk, px . If (W P, mm / H P, mm )> (W Bk, px / H Bk, px ), the layout printing tool proceeds to step S1505. If (W P, mm / H P, mm ) <(W Bk, px / H Bk, px ), the layout printing tool proceeds to step S1506.

ステップS1505では、レイアウト印刷ツールは、用紙プレビューイメージ402の幅、高さを算出する。用紙プレビューイメージ402の幅WP,px,高さHP,pxは、それぞれ、
P,px=WBk,px−2d
P,px=(HP,mm/WP,mm)×(WBk,px−2d)
の式に基づいて算出される。
In step S1505, the layout printing tool calculates the width and height of the paper preview image 402. The width W P, px and height H P, px of the paper preview image 402 are respectively
W P, px = W Bk, px -2d
H P, px = (H P, mm / W P, mm ) × (W Bk, px -2d)
It is calculated based on the following formula.

ステップS1506では、レイアウト印刷ツールは、用紙プレビューイメージ402の幅、高さを算出する。用紙プレビューイメージ402の幅WP,px,高さHP,pxは、それぞれ、
P,px=(WP,mm/HP,mm)×(HBk,px−2d)
P,px=HBk,px−2d
の式に基づいて算出される。
In step S1506, the layout printing tool calculates the width and height of the paper preview image 402. The width W P, px and height H P, px of the paper preview image 402 are respectively
W P, px = (W P, mm / H P, mm ) × (H Bk, px -2d)
H P, px = H Bk, px -2d
It is calculated based on the following formula.

ステップS1507では、レイアウト印刷ツールは、用紙プレビューイメージ402の位置を算出する。用紙プレビューイメージ402の位置XP,px,YP,pxは、それぞれ、
P,px=(WBk,px−WP,px)/2
P,px=(HBk,px−HP,px)/2
の式に基づいて算出される。
In step S1507, the layout printing tool calculates the position of the paper preview image 402. Position X P, px, Y P paper preview image 402, px, respectively,
X P, px = (W Bk, px -W P, px ) / 2
YP , px = ( HBk, px- Hp , px ) / 2
It is calculated based on the following formula.

図18は、印刷可能領域線403の描画領域の位置XR,px,YR,px,大きさWR,px,HR,pxを取得する際の処理の一例を示すフローチャートである。なお、印刷可能領域は、印刷用紙の内部に存在するものとする。 FIG. 18 is a flowchart showing an example of processing when acquiring the position X R, px , Y R, px and the size W R, px , H R, px of the drawing area of the printable area line 403. It is assumed that the printable area exists inside the printing paper.

ステップS1601〜S1607は、図17のステップS1501〜S1507と同様である。   Steps S1601 to S1607 are the same as steps S1501 to S1507 in FIG.

ステップS1608では、レイアウト印刷ツールは、印刷可能領域の位置及び大きさXR,mm,YR,mm,WR,mm,HR,mmを取得する。この処理は、レイアウト印刷ツールが、システムにインストールされているプリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S1608, the layout printing tool acquires the position and size X R, mm , Y R, mm , W R, mm , H R, mm of the printable area. This process is realized by the layout printing tool inquiring a printer driver installed in the system. In the system according to this embodiment, a value in millimeters is obtained.

ステップS1609では、レイアウト印刷ツールは、印刷可能領域線403の描画領域の位置、大きさを算出する。印刷可能領域線403の描画領域の位置XR,px,YR,px,大きさWR,px,HR,pxは、それぞれ、
R,px=XR,mm×(WP,px/WP,mm)+XP,px
R,px=YR,mm×(HP,px/HP,mm)+YP,px
R,px=WR,mm×(WP,px/WP,mm
R,px=HR,mm×(HP,px/HP,mm
の式に基づいて算出される。
In step S1609, the layout printing tool calculates the position and size of the drawing area of the printable area line 403. The position X R, px , Y R, px , size W R, px , H R, px of the drawing area of the printable area line 403 is respectively
X R, px = X R, mm × (W P, px / W P, mm ) + X P, px
Y R, px = Y R, mm × (H P, px / H P, mm ) + Y P, px
W R, px = W R, mm × (W P, px / W P, mm )
H R, px = H R, mm × (H P, px / H P, mm )
It is calculated based on the following formula.

図19は、画像プレビューイメージ404の描画領域の位置XI,px,YI,px,大きさWI,px,HI,pxを取得する際の処理の一例を示すフローチャートである。 FIG. 19 is a flowchart showing an example of processing for acquiring the position X I, px , Y I, px and the size W I, px , H I, px of the drawing area of the image preview image 404.

ステップS1701〜S1707は、図17のステップS1501〜S1507と同様である。   Steps S1701 to S1707 are the same as steps S1501 to S1507 in FIG.

ステップS1708では、レイアウト印刷ツールは、印刷画像の位置XI,YI及び大きさWI,HIを取得する。レイアウト印刷ツールは、これらの値として、画像サイズ設定部601の対応するテキストボックスで設定されている値を用いる。 In step S1708, the layout printing tool acquires the positions X I and Y I and the sizes W I and H I of the print image. The layout printing tool uses values set in the corresponding text box of the image size setting unit 601 as these values.

ステップS1709では、レイアウト印刷ツールは、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS1710に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、ステップS1711に進む。   In step S1709, the layout printing tool checks the currently set unit. If the unit is set to inch in the unit selection menu 901, the layout printing tool proceeds to step S1710. If the unit is set to millimeters, the layout printing tool proceeds to step S1711.

ステップS1710では、レイアウト印刷ツールは、変数XI,mm,YI,mm,WI,mm,HI,mmへ、XI,YI,WI,HIそれぞれの単位を、インチからミリメートルに変換して代入する。レイアウト印刷ツールによる、インチからミリメートルへの変換は、インチ単位の値に25.4を掛け合わせることで実現される。 In step S1710, the layout printing tool changes the units of X I , Y I , W I , and H I from inches to millimeters to the variables X I, mm , Y I, mm , W I, mm , H I, mm . Convert to and substitute. The conversion from inch to millimeter by the layout printing tool is realized by multiplying the value in inches by 25.4.

ステップS1711では、レイアウト印刷ツールは、変数XI,mm,YI,mm,WI,mm,HI,mmへ、XI,YI,WI,HIそれぞれの値を代入する。 In step S1711, the layout printing tool substitutes the values of X I , Y I , W I , and H I for variables X I, mm , Y I, mm , W I, mm , H I, mm .

ステップS1712では、レイアウト印刷ツールは、画像プレビューイメージ404の描画領域の位置,大きさを算出する。画像プレビューイメージ404の描画領域の位置XI,px,YI,px,大きさWI,px,HI,pxは、それぞれ、
I,px=XI,mm×(WP,px/WP,mm)+XP,px
I,px=YI,mm×(HP,px/HP,mm)+YP,px
I,px=WI,mm×(WP,px/WP,mm
I,px=HI,mm×(HP,px/HP,mm
の式に基づいて算出される。
In step S1712, the layout printing tool calculates the position and size of the drawing area of the image preview image 404. The position X I, px , Y I, px , size W I, px , H I, px of the drawing area of the image preview image 404 is
X I, px = X I, mm × (W P, px / W P, mm ) + X P, px
Y I, px = Y I, mm × (H P, px / H P, mm ) + Y P, px
W I, px = W I, mm × (W P, px / W P, mm )
H I, px = H I, mm × (H P, px / H P, mm )
It is calculated based on the following formula.

図20は、上述したステップS1401に係る背景イメージ401を描画する際の処理の一例を示すフローチャートである。以下で、変数i,jはそれぞれ、プレビュー画面306の左上端点を原点とした座標系における位置x,yを表す。   FIG. 20 is a flowchart illustrating an example of processing when the background image 401 according to step S1401 described above is drawn. In the following, the variables i and j represent the positions x and y in the coordinate system with the upper left end point of the preview screen 306 as the origin.

ステップS1801では、レイアウト印刷ツールは、プレビュー画面306のピクセルサイズの幅WBk,px,高さHBk,pxを取得する。この処理は、レイアウト印刷ツールが表示デバイスの解像度と文字のフォントサイズとから算出する、又はオペレーティングシステムに問い合わせる、こと等で実現される。 In step S1801, the layout printing tool acquires the pixel size width W Bk, px and height H Bk, px of the preview screen 306. This process is realized by the layout printing tool calculating from the resolution of the display device and the font size of the character, or inquiring the operating system.

ステップS1802では、レイアウト印刷ツールは、変数jに0を代入する。ステップS1803では、レイアウト印刷ツールは、変数iに0を代入する。   In step S1802, the layout printing tool substitutes 0 for variable j. In step S1803, the layout printing tool substitutes 0 for a variable i.

ステップS1804では、レイアウト印刷ツールは、(x,y)=(i,j)の位置における画素のR,G,B値、R(i,j),G(i,j),B(i,j)に背景色を設定する。本実施形態では、背景色は(R(i,j),G(i,j),B(i,j))=(255×0.2,255×0.2,255×0.2)であるとする。なお、背景色には、他の任意のR,G,B値を設定してもよい。   In step S1804, the layout printing tool determines the R, G, B value, R (i, j), G (i, j), B (i, j) of the pixel at the position (x, y) = (i, j). Set the background color to j). In the present embodiment, the background colors are (R (i, j), G (i, j), B (i, j)) = (255 × 0.2, 255 × 0.2, 255 × 0.2). Suppose that Note that any other R, G, B value may be set as the background color.

ステップS1805では、レイアウト印刷ツールは、変数iに1を加算する。   In step S1805, the layout printing tool adds 1 to the variable i.

ステップS1806では、レイアウト印刷ツールは、変数iと、WBk,pxとを比較する。i=WBk,pxである場合、レイアウト印刷ツールは、ステップS1807へ進む。i≠WBk,pxである場合、レイアウト印刷ツールは、ステップS1804へ進む。 In step S1806, the layout printing tool compares the variable i with W Bk, px . If i = W Bk, px , the layout printing tool proceeds to step S1807. If i ≠ W Bk, px , the layout printing tool advances to step S1804.

ステップS1807では、レイアウト印刷ツールは、変数jに1を加算する。   In step S1807, the layout printing tool adds 1 to the variable j.

ステップS1808では、レイアウト印刷ツールは、変数jと、HBk,pxとを比較する。j=HBk,pxである場合、レイアウト印刷ツールは、処理を終了する。j≠HBk,pxである場合、レイアウト印刷ツールは、ステップS1803へ進む。 In step S1808, the layout printing tool compares the variable j with H Bk, px . When j = H Bk, px , the layout printing tool ends the process. If j ≠ H Bk, px , the layout printing tool advances to step S1803.

図21は、上述したステップS1402に係る用紙プレビューイメージ402を描画する際の処理の一例を示すフローチャートである。印刷可能領域は、印刷用紙の内部に存在するものとする。また、以下で、変数i,jはそれぞれ、プレビュー画面306の左上端点を原点とした座標系における位置x,yを表す。   FIG. 21 is a flowchart showing an example of processing when the paper preview image 402 according to step S1402 described above is drawn. It is assumed that the printable area exists inside the printing paper. In the following, variables i and j represent positions x and y in the coordinate system with the upper left end point of preview screen 306 as the origin.

ステップS1901では、レイアウト印刷ツールは、用紙プレビューイメージ402の位置XP,px,YP,px,大きさWP,px,HP,pxを取得する。これは、図17を用いて上述した方法により実現される。 In step S1901, the layout printing tool, to acquire the position X P of the paper preview image 402, px, Y P, px, size W P, px, H P, the px. This is realized by the method described above with reference to FIG.

ステップS1902では、レイアウト印刷ツールは、プレビュー画面306上の、印刷可能領域線の403の位置XR,px,YR,px,大きさWR,px,HR,pxを取得する。これは、図18を用いて上述した方法により実現される。 In step S1902, the layout printing tool acquires the position X R, px , Y R, px and size W R, px , H R, px of the printable area line 403 on the preview screen 306. This is realized by the method described above with reference to FIG.

ステップS1903では、レイアウト印刷ツールは、変数jにYP,pxを代入する。ステップS1904では、レイアウト印刷ツールは、変数iにXP,pxを代入する。 In step S1903, the layout printing tool substitutes YP, px for the variable j. In step S1904, the layout printing tool substitutes XP, px for the variable i.

ステップS1905では、レイアウト印刷ツールは、現在の背景色の設定をチェックする。背景色切り替えチェックボックス902で背景色が黒に設定されていれば、レイアウト印刷ツールは、ステップS1906へ進む。背景色が黒に設定されていなければ、レイアウト印刷ツールは、ステップS1909へ進む。   In step S1905, the layout printing tool checks the current background color setting. If the background color switching check box 902 sets the background color to black, the layout printing tool advances to step S1906. If the background color is not set to black, the layout printing tool advances to step S1909.

ステップS1906では、レイアウト印刷ツールは、変数i,jの値の範囲をチェックする。XR,px+WR,px≧i≧XR,px、且つYR,px+HR,px≧j≧YR,pxであれば、レイアウト印刷ツールは、ステップS1908へ進む。それ以外であれば、レイアウト印刷ツールは、ステップS1909へ進む。 In step S1906, the layout printing tool checks the range of values of the variables i and j. If X R, px + W R, px ≧ i ≧ X R, px and Y R, px + H R, px ≧ j ≧ Y R, px , the layout printing tool proceeds to step S1908. Otherwise, the layout printing tool proceeds to step S1909.

ステップS1908では、レイアウト印刷ツールは、(x,y)=(i,j)の位置における画素のR,G,B値について、
(R(i,j),G(i,j),B(i,j))=(0,0,0)
とする。
In step S1908, the layout printing tool determines the R, G, and B values of the pixel at the position (x, y) = (i, j).
(R (i, j), G (i, j), B (i, j)) = (0,0,0)
And

ステップS1909では、レイアウト印刷ツールは、(x,y)=(i,j)の位置における画素のR,G,B値について、
(R(i,j),G(i,j),B(i,j))=(255,255,255)
とする。
In step S1909, the layout printing tool determines the R, G, and B values of the pixel at the position (x, y) = (i, j).
(R (i, j), G (i, j), B (i, j)) = (255, 255, 255)
And

ステップS1910では、レイアウト印刷ツールは、変数iに1を加算する。   In step S1910, the layout printing tool adds 1 to the variable i.

ステップS1911では、レイアウト印刷ツールは、変数iと、(XP,px+WP,px)とを比較する。i=(XP,px+WP,px)である場合、レイアウト印刷ツールは、ステップS1912へ進む。i≠(XP,px+WP,px)である場合、レイアウト印刷ツールは、ステップ1905へ進む。 In step S1911, the layout printing tool compares the variable i with (X P, px + W P, px ). If i = (X P, px + W P, px ), the layout printing tool proceeds to step S1912. If i ≠ (X P, px + W P, px ), the layout printing tool proceeds to step 1905.

ステップS1912では、レイアウト印刷ツールは、変数jに1を加算する。   In step S1912, the layout printing tool adds 1 to the variable j.

ステップS1913では、レイアウト印刷ツールは、変数jと、(YP,px+HP,px)とを比較する。j=(YP,px+HP,px)である場合、レイアウト印刷ツールは、図21に示される処理を終了する。j≠(YP,px+HP,px)である場合、レイアウト印刷ツールは、ステップS1904へ進む。 In step S1913, the layout printing tool compares the variable j with (Y P, px + H P, px ). If j = (Y P, px + H P, px ), the layout printing tool ends the process shown in FIG. If j ≠ (Y P, px + H P, px ), the layout printing tool advances to step S1904.

図22は、上述したステップS1403に係る画像プレビューイメージ404を描画する際の処理の一例を示すフローチャートである。レイアウト印刷ツールは、印刷画像から画像プレビューイメージ404を作成し、プレビュー画面306上に描画する。なお、印刷可能領域は、印刷用紙の内部に存在するものとする。   FIG. 22 is a flowchart illustrating an example of processing when the image preview image 404 according to step S1403 described above is rendered. The layout printing tool creates an image preview image 404 from the print image and draws it on the preview screen 306. It is assumed that the printable area exists inside the printing paper.

以下で、変数i,jはそれぞれ、プレビュー画面306の左上端点を原点とした座標系における位置を表す。更に、プレビュー画面306上の任意の位置における画素のR,G,B値を、それぞれRprv(i,j),Gprv(i,j),Bprv(i,j)と表す。 In the following, the variables i and j represent positions in the coordinate system with the upper left end point of the preview screen 306 as the origin. Further, the R, G, and B values of the pixel at an arbitrary position on the preview screen 306 are expressed as R prv (i, j) , G prv (i, j) , and B prv (i, j) , respectively.

また、変数m,nはそれぞれ、画像プレビューイメージ404の左上端点を原点とした座標系における位置を表す。更に、画像プレビューイメージ404上の任意の位置における画素のR,G,B値を、それぞれRimg(i,j),Gimg(i,j),Bimg(i,j)と表す。 Variables m and n represent positions in the coordinate system with the upper left point of the image preview image 404 as the origin. Further, the R, G, and B values of the pixel at an arbitrary position on the image preview image 404 are expressed as R img (i, j) , G img (i, j) , and B img (i, j) , respectively.

ステップS2001では、レイアウト印刷ツールは、プレビュー画面306上の、印刷可能領域線403の位置XR,px,YR,px,大きさWR,px,HR,pxを取得する。これは、図18を用いて上述した方法により実現される。 In step S2001, the layout printing tool acquires the position X R, px , Y R, px , size W R, px , H R, px of the printable area line 403 on the preview screen 306. This is realized by the method described above with reference to FIG.

ステップS2002では、レイアウト印刷ツールは、画像プレビューイメージ404の描画領域XI,px,YI,px,WI,px,HI,pxを取得する。これは、図19を用いて上述した方法により実現される。 In step S2002, the layout printing tool acquires the drawing areas X I, px , Y I, px , W I, px , H I, px of the image preview image 404. This is realized by the method described above with reference to FIG.

ステップS2003では、レイアウト印刷ツールは、WI,px×HI,pxの画像プレビューイメージを保存するための領域を、一時記憶102に確保する。 In step S2003, the layout printing tool secures an area for storing an image preview image of W I, px × H I, px in the temporary storage 102.

ステップS2004では、レイアウト印刷ツールは、印刷画像をWI,px×HI,pxに変倍し、画像プレビューイメージを作成する。印刷画像の変倍は、バイリニア法やバイキュービック法等の公知の方法を用いて行なう。なお、レイアウト印刷ツールは、二次記憶103に保存されている印刷画像を読み込む。 In step S2004, the layout printing tool scales the print image to W I, px × H I, px to create an image preview image. The scaling of the printed image is performed using a known method such as a bilinear method or a bicubic method. Note that the layout printing tool reads a print image saved in the secondary storage 103.

ステップS2005では、レイアウト印刷ツールは、変数jにYI,pxを代入する。ステップS2006では、レイアウト印刷ツールは、変数iにXI,pxを代入する。 In step S2005, the layout printing tool substitutes Y I, px for the variable j. In step S2006, the layout printing tool substitutes X I, px for the variable i.

ステップS2007では、レイアウト印刷ツールは、変数mに(i−XI,px)を代入する。更に、レイアウト印刷ツールは、変数nに(j−YI,px)を代入する。
ステップS2008では、レイアウト印刷ツールは、画像プレビューイメージ404上の位置(m,n)における画素のR,G,B値を、プレビュー画面306上の位置(i,j)における画素へコピーする。
In step S2007, the layout printing tool substitutes (i−X I, px ) for the variable m. Furthermore, the layout printing tool substitutes (j−Y I, px ) for the variable n.
In step S2008, the layout printing tool copies the R, G, and B values of the pixel at the position (m, n) on the image preview image 404 to the pixel at the position (i, j) on the preview screen 306.

ステップS2009では、レイアウト印刷ツールは、変数iに1を加算する。   In step S2009, the layout printing tool adds 1 to the variable i.

ステップS2010では、レイアウト印刷ツールは、変数iと、(XI,px+WI,px)とを比較する。i=(XI,px+WI,px)である場合、レイアウト印刷ツールは、ステップS2011へ進む。i≠(XI,px+WI,px)である場合、レイアウト印刷ツールは、ステップS2007へ進む。 In step S2010, the layout printing tool compares the variable i with (X I, px + W I, px ). If i = (X I, px + W I, px ), the layout printing tool proceeds to step S2011. If i ≠ (X I, px + W I, px ), the layout printing tool proceeds to step S2007.

ステップS2011では、レイアウト印刷ツールは、変数jに1を加算する。   In step S2011, the layout printing tool adds 1 to the variable j.

ステップS2012では、レイアウト印刷ツールは、変数jと、(YI,px+HI,px)とを比較する。j=(YI,px+HI,px)である場合、レイアウト印刷ツールは、処理を終了する。j≠(YI,px+HI,px)である場合、レイアウト印刷ツールは、ステップS2006へ進む。 In step S2012, the layout printing tool compares the variable j with (Y I, px + H I, px ). If j = (Y I, px + H I, px ), the layout printing tool ends the process. If j ≠ (Y I, px + H I, px ), the layout printing tool proceeds to step S2006.

図23は、上述したステップS1404に係る文字プレビューイメージ405を描画する際の処理の一例を示すフローチャートである。レイアウト印刷ツールは、以下で説明する処理を、ヘッダー、フッター、タイトル、キャプションのそれぞれについて行なう。   FIG. 23 is a flowchart showing an example of processing when the character preview image 405 according to step S1404 described above is drawn. The layout printing tool performs the processing described below for each of the header, footer, title, and caption.

ステップS2101では、レイアウト印刷ツールは、印刷用紙上の文字の描画位置XS,mm,YS,mm,大きさWS,mm,HS,mmを取得する。これは、図15を用いて上述した方法により実現される。 In step S2101, the layout printing tool acquires character drawing positions X S, mm , Y S, mm and sizes W S, mm , H S, mm on the printing paper. This is realized by the method described above with reference to FIG.

ステップS2102では、レイアウト印刷ツールは、印刷用紙の幅WP,mm,高さHP,mmを取得する。この処理は、レイアウト印刷ツールが、システムにインストールされているプリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S2102, the layout printing tool acquires the width W P, mm and height H P, mm of the printing paper. This process is realized by the layout printing tool inquiring a printer driver installed in the system. In the system according to this embodiment, a value in millimeters is obtained.

ステップS2103では、レイアウト印刷ツールは、用紙プレビューイメージ402の位置XP,px,YP,px,大きさWP,px,HP,pxを取得する。これは、図17を用いて上述した方法により実現される。 In step S2103, the layout printing tool, to acquire the position X P of the paper preview image 402, px, Y P, px, size W P, px, H P, the px. This is realized by the method described above with reference to FIG.

ステップS2104では、レイアウト印刷ツールは、文字プレビューイメージ405の描画領域の位置,大きさを算出する。文字プレビューイメージ405の描画領域の位置XS,px,YS,px,大きさWS,px,HS,pxは、それぞれ、
S,px=XS,mm×(WP,px/WP,mm)+XP,px
S,px=YS,mm×(HP,px/HP,mm)+YP,px
S,px=WS,mm×(WP,px/WP,mm
S,px=HS,mm×(HP,px/HP,mm
の式に基づいて算出される。
In step S2104, the layout printing tool calculates the position and size of the drawing area of the character preview image 405. The position X S, px , Y S, px and the size W S, px , H S, px of the drawing area of the character preview image 405 are respectively
X S, px = X S, mm × (W P, px / W P, mm ) + X P, px
Y S, px = Y S, mm × (H P, px / H P, mm ) + Y P, px
W S, px = W S, mm × (W P, px / W P, mm )
H S, px = H S, mm × (H P, px / H P, mm )
It is calculated based on the following formula.

ステップS2105では、レイアウト印刷ツールは、現在の背景色の設定をチェックする。背景色切り替えチェックボックス902で背景色が黒に設定されていれば、レイアウト印刷ツールは、ステップS2106へ進む。背景色が黒に設定されていなければ、レイアウト印刷ツールは、ステップS2107へ進む。   In step S2105, the layout printing tool checks the current background color setting. If the background color switching check box 902 sets the background color to black, the layout printing tool advances to step S2106. If the background color is not set to black, the layout printing tool advances to step S2107.

ステップS2106、S2107では、レイアウト印刷ツールは、描画する文字の色及び背景の色を設定する。   In steps S2106 and S2107, the layout printing tool sets the color of the character to be drawn and the color of the background.

ステップS2106では、レイアウト印刷ツールは、文字色を(R,G,B)=(255,255,255)、文字背景色を(R,G,B)=(0,0,0)に設定する。   In step S2106, the layout printing tool sets the character color to (R, G, B) = (255, 255, 255) and the character background color to (R, G, B) = (0, 0, 0). .

ステップS2107では、レイアウト印刷ツールは、文字色を(R,G,B)=(0,0,0)、文字背景色を(R,G,B)=(255,255,255)に設定する。   In step S2107, the layout printing tool sets the character color to (R, G, B) = (0, 0, 0) and the character background color to (R, G, B) = (255, 255, 255). .

ステップS2108では、レイアウト印刷ツールは、XS,px,YS,px,WS,px,HS,pxの領域に、設定された文字列を描画する。 In step S2108, the layout printing tool, X S, px, Y S , px, W S, px, H S, in the region of px, drawing the string set.

図24は、上述したステップS1405に係る印刷可能領域線403を描画する際の処理の一例を示すフローチャートである。以下で、変数i,jはそれぞれ、プレビュー画面306の左上端点を原点とした座標系における位置x,yを表す。   FIG. 24 is a flowchart showing an example of processing when the printable area line 403 according to step S1405 described above is drawn. In the following, the variables i and j represent the positions x and y in the coordinate system with the upper left end point of the preview screen 306 as the origin.

ステップS2201では、レイアウト印刷ツールは、プレビュー画面306上の、印刷可能領域線の403の位置XR,px,YR,px,大きさWR,px,HR,pxを取得する。これは、図18を用いて上述した方法により実現される。 In step S2201, the layout printing tool acquires the position X R, px , Y R, px , size W R, px , H R, px of the printable area line 403 on the preview screen 306. This is realized by the method described above with reference to FIG.

ステップS2202では、レイアウト印刷ツールは、変数jにYR,pxを代入する。ステップS2203では、レイアウト印刷ツールは、変数iにXR,pxを代入する。 In step S2202, the layout printing tool substitutes Y R, px for the variable j. In step S2203, the layout printing tool substitutes X R, px for the variable i.

ステップS2204では、レイアウト印刷ツールは、変数jの値をチェックする。j=YR,px又はj=YR,px+HR,pxであれば、レイアウト印刷ツールは、ステップS2206へ進む。それ以外であれば、レイアウト印刷ツールは、ステップS2205へ進む。 In step S2204, the layout printing tool checks the value of the variable j. If j = Y R, px or j = Y R, px + H R, px , the layout printing tool advances to step S2206. Otherwise, the layout printing tool proceeds to step S2205.

ステップS2205では、レイアウト印刷ツールは、変数iの値をチェックする。i=XR,px、又はi=XR,px+WR,pxであれば、レイアウト印刷ツールは、ステップS2206へ進む。それ以外であれば、レイアウト印刷ツールは、ステップS2207へ進む。 In step S2205, the layout printing tool checks the value of the variable i. If i = X R, px or i = X R, px + W R, px , the layout printing tool advances to step S2206. Otherwise, the layout printing tool proceeds to step S2207.

ステップS2206では、レイアウト印刷ツールは、(x,y)=(i,j)の位置における画素のR,G,B値R(i,j),G(i,j),B(i,j)に印刷可能領域線の色を設定する。本実施形態において、印刷可能領域線の色は(R(i,j),G(i,j),B(i,j))=(255,255,0)であるとする。印刷可能領域線の色には、他の任意のR,G,B値を設定してもよい。   In step S2206, the layout printing tool determines that the pixel R, G, B value R (i, j), G (i, j), B (i, j) at the position (x, y) = (i, j). ) To set the color of the printable area line. In the present embodiment, it is assumed that the color of the printable area line is (R (i, j), G (i, j), B (i, j)) = (255, 255, 0). Other arbitrary R, G, and B values may be set for the color of the printable area line.

ステップS2207では、レイアウト印刷ツールは、変数iに1を加算する。ステップS2208では、レイアウト印刷ツールは、変数iと、(XR,px+WR,px)とを比較する。i=(XR,px+WR,px)である場合、レイアウト印刷ツールは、ステップS2209へ進む。i≠(XR,px+WR,px)である場合、レイアウト印刷ツールは、ステップS2204へ進む。 In step S2207, the layout printing tool adds 1 to the variable i. In step S2208, the layout printing tool compares the variable i with (X R, px + W R, px ). If i = (X R, px + W R, px ), the layout printing tool proceeds to step S2209. If i ≠ (X R, px + W R, px ), the layout printing tool advances to step S2204.

ステップS2209では、レイアウト印刷ツールは、変数jに1を加算する。ステップS2210では、レイアウト印刷ツールは、変数jと、(YR,px+HR,px)とを比較する。j=(YR,px+HR,px)である場合、レイアウト印刷ツールは、処理を終了する。j≠(YR,px+HR,px)である場合、レイアウト印刷ツールは、ステップS2203へ進む。 In step S2209, the layout printing tool adds 1 to the variable j. In step S2210, the layout printing tool compares the variable j with (Y R, px + H R, px ). If j = (Y R, px + H R, px ), the layout printing tool ends the process. If j ≠ (Y R, px + H R, px ), the layout printing tool advances to step S2203.

次に、図25〜図27を用いて、上述したステップS1416に係る印刷画像サイズ表示406の描画について説明する。   Next, drawing of the print image size display 406 according to step S1416 described above will be described with reference to FIGS.

図25は、印刷画像について、印刷可能領域内に含まれる範囲、及び印刷可能領域内に含まれない範囲の大きさを、それぞれ取得する際の処理の一例を示すフローチャートである。   FIG. 25 is a flowchart illustrating an example of a process for acquiring a range included in a printable area and a size of a range not included in the printable area for a print image.

ここで、図26(a)に示すように、印刷画像が上下方向に印刷可能領域からはみ出して配置されている場合、印刷画像において、印刷可能領域から上にはみ出す範囲の高さをHI1とする。また、印刷可能領域と重なる範囲の高さをHI2とする。また、印刷可能領域から下にはみ出す範囲の高さをHI3とする。 Here, as shown in FIG. 26A, when the print image is arranged so as to protrude from the printable area in the vertical direction, the height of the range of the print image that protrudes from the printable area is represented by H I1 . To do. Further, the height of the range that overlaps the printable area is defined as H I2 . Further, the height of the range extending downward from the printable area is set to H I3 .

更に、図26(b)に示すように、印刷画像が左右方向に印刷可能領域からはみ出して配置されている場合、印刷画像において、印刷可能領域から左にはみ出す範囲の幅をWI1とする。また、印刷可能領域と重なる範囲の幅をWI2とする。また、印刷可能領域から右にはみ出す範囲の幅をWI3とする。 Further, as shown in FIG. 26B, when the print image is arranged so as to protrude from the printable area in the left-right direction, the width of the range extending to the left from the printable area in the print image is defined as W I1 . Further, the width of the range that overlaps the printable area is defined as W I2 . Also, let W I3 be the width of the range that protrudes to the right from the printable area.

なお、図25の説明において、印刷画像及び印刷可能領域の位置や大きさは、印刷用紙の左上端の点を原点とし、右方向に+x,下方向に+yとなる座標系で表されるものとする。前記位置,大きさとも、ミリメートル単位又はインチ単位で表される。   In the description of FIG. 25, the position and size of the print image and printable area are represented by a coordinate system in which the point at the upper left corner of the print sheet is the origin, + x in the right direction and + y in the down direction. And Both the position and size are expressed in units of millimeters or inches.

ステップS2301では、レイアウト印刷ツールは、印刷画像の位置XI,YI及び大きさWI,HIを取得する。レイアウト印刷ツールは、これらの値として、画像サイズ設定部601の対応するテキストボックスで設定されている値を用いる。 In step S2301, the layout printing tool acquires the positions X I and Y I and the sizes W I and H I of the print image. The layout printing tool uses values set in the corresponding text box of the image size setting unit 601 as these values.

ステップS2302では、レイアウト印刷ツールは、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS2303に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、ステップS2304に進む。   In step S2302, the layout printing tool checks the currently set unit. If the unit is set to inch in the unit selection menu 901, the layout printing tool proceeds to step S2303. If the unit is set to millimeters, the layout printing tool proceeds to step S2304.

ステップS2303では、レイアウト印刷ツールは、変数XI,mm,YI,mm,WI,mm,HI,mmへ、XI,YI,WI,HIそれぞれの単位を、インチからミリメートルに変換して代入する。レイアウト印刷ツールによる、インチからミリメートルへの変換は、インチ単位の値に25.4を掛け合わせることで実現される。 In step S2303, the layout printing tool changes the units of X I , Y I , W I , and H I from inches to millimeters to the variables X I, mm , Y I, mm , W I, mm , H I, mm . Convert to and substitute. The conversion from inch to millimeter by the layout printing tool is realized by multiplying the value in inches by 25.4.

ステップS2304では、レイアウト印刷ツールは、変数XI,mm,YI,mm,WI,mm,HI,mmへ、XI,YI,WI,HIそれぞれの値を代入する。 In step S2304, the layout printing tool substitutes the values of X I , Y I , W I , and H I for variables X I, mm , Y I, mm , W I, mm , H I, mm .

ステップS2305では、レイアウト印刷ツールは、印刷可能領域の位置XR,mm,YR,mm及び大きさWR,mm,HR,mmを取得する。これは、プリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S2305, the layout printing tool acquires the position X R, mm , Y R, mm and the size W R, mm , H R, mm of the printable area. This is realized by making an inquiry to the printer driver. In the system according to this embodiment, a value in millimeters is obtained.

ステップS2306では、レイアウト印刷ツールは、WI1,WI2,WI3に値を代入する。レイアウト印刷ツールは、それぞれ、
I1=0
I2=WI,mm
I3=0
とする。
In step S2306, the layout printing tool substitutes values for W I1 , W I2 , and W I3 . Each layout printing tool
W I1 = 0
W I2 = W I, mm
W I3 = 0
And

ステップS2307では、レイアウト印刷ツールは、XI,mmと、XR,mmとの値を比較する。XI,mm<XR,mmであれば、レイアウト印刷ツールは、ステップS2308へ進む。XI,mm≧XR,mmであれば、レイアウト印刷ツールは、ステップS2309へ進む。 In step S2307, the layout printing tool compares the values of X I, mm and X R, mm . If X I, mm <X R, mm , the layout printing tool advances to step S2308. If X I, mm ≧ X R, mm , the layout printing tool advances to step S2309.

ステップS2308では、レイアウト印刷ツールは、WI1,WI2に値を代入する。レイアウト印刷ツールは、それぞれ、
I1=XR,mm−XI,mm
I2=WI2−(XR,mm−XI,mm
とする。
In step S2308, the layout printing tool substitutes values for W I1 and W I2 . Each layout printing tool
W I1 = X R, mm -X I, mm
W I2 = W I2 − (X R, mm −X I, mm )
And

ステップS2309では、レイアウト印刷ツールは、(XI,mm+WI,mm)と、(XR,mm+WR,mm)との値を比較する。(XI,mm+WI,mm)>(XR,mm+WR,mm)であれば、レイアウト印刷ツールは、ステップS2310へ進む。(XI,mm+WI,mm)≦(XR,mm+WR,mm)であれば、レイアウト印刷ツールは、ステップS2311へ進む。 In step S2309, the layout printing tool compares the values of (X I, mm + W I, mm ) and (X R, mm + W R, mm ). If (X I, mm + W I, mm )> (X R, mm + W R, mm ), the layout printing tool proceeds to step S2310. If (X I, mm + W I, mm ) ≦ (X R, mm + W R, mm ), the layout printing tool proceeds to step S2311.

ステップS2310では、レイアウト印刷ツールは、WI2,WI3それぞれに値を代入する。レイアウト印刷ツールは、それぞれ、
I2=WI2−{(XI,mm+WI,mm)−(XR,mm+WR,mm)}
I3=(XI,mm+WI,mm)−(XR,mm+WR,mm
とする。
In step S2310, the layout printing tool substitutes values for W I2 and W I3 . Each layout printing tool
W I2 = W I2 − {(X I, mm + W I, mm ) − (X R, mm + W R, mm )}
W I3 = (X I, mm + W I, mm )-(X R, mm + W R, mm )
And

ステップS2311では、レイアウト印刷ツールは、HI1,HI2,HI3に値を代入する。レイアウト印刷ツールは、それぞれ、
I1=0
I2=HI,mm
I3=0
とする。
In step S2311, the layout printing tool substitutes values for H I1 , H I2 , and H I3 . Each layout printing tool
H I1 = 0
H I2 = H I, mm
H I3 = 0
And

ステップS2312では、レイアウト印刷ツールは、YI,mmと、YR,mmとの値を比較する。YI,mm<YR,mmであれば、レイアウト印刷ツールは、ステップS2313へ進む。YI,mm≧YR,mmであれば、レイアウト印刷ツールは、ステップS2314へ進む。 In step S2312, the layout printing tool compares the values of Y I, mm and Y R, mm . If Y I, mm <Y R, mm , the layout printing tool advances to step S2313. If Y I, mm ≧ Y R, mm , the layout printing tool advances to step S2314.

ステップS2313では、レイアウト印刷ツールは、HI1,HI2に値を代入する。レイアウト印刷ツールは、それぞれ、
I1=YR,mm−YI,mm
I2=HI2−(YR,mm−YI,mm
とする。
In step S2313, the layout printing tool substitutes values for H I1 and H I2 . Each layout printing tool
H I1 = Y R, mm -Y I, mm
H I2 = H I2- (Y R, mm -Y I, mm )
And

ステップS2314では、レイアウト印刷ツールは、(YI,mm+HI,mm)と、(YR,mm+HR,mm)との値を比較する。(YI,mm+HI,mm)>(YR,mm+HR,mm)であれば、レイアウト印刷ツールは、ステップS2315へ進む。(YI,mm+HI,mm)≦(YR,mm+HR,mm)であれば、レイアウト印刷ツールは、ステップS2316へ進む。 In step S2314, the layout printing tool compares (Y I, mm + H I, mm ) with (Y R, mm + H R, mm ). If (Y I, mm + H I, mm )> (Y R, mm + H R, mm ), the layout printing tool proceeds to step S2315. If (Y I, mm + H I, mm ) ≦ (Y R, mm + H R, mm ), the layout printing tool proceeds to step S2316.

ステップS2315では、レイアウト印刷ツールは、HI2,HI3に値を代入する。レイアウト印刷ツールは、それぞれ、
I2=HI2−{(YI,mm+HI,mm)−(YR,mm+HR,mm)}
I3=(YI,mm+HI,mm)−(YR,mm+HR,mm
とする。
In step S2315, the layout printing tool substitutes values for H I2 and H I3 . Each layout printing tool
H I2 = H I2 − {(Y I, mm + H I, mm ) − (Y R, mm + H R, mm )}
H I3 = (Y I, mm + H I, mm )-(Y R, mm + H R, mm )
And

ステップS2316では、レイアウト印刷ツールは、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS2317に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、図25に示される処理を終了する。   In step S2316, the layout printing tool checks the currently set unit. If the unit is set to inches in the unit selection menu 901, the layout printing tool proceeds to step S2317. If the unit is set to millimeters, the layout printing tool ends the process shown in FIG.

ステップS2317では、レイアウト印刷ツールは、WI1,WI2,WI3それぞれの値の単位を、ミリメートルからインチに変換する。レイアウト印刷ツールによる、ミリメートルからインチへの変換は、ミリメートル単位の値に0.04を掛け合わせることで実現される。 In step S2317, the layout printing tool converts units of values of W I1 , W I2 , and W I3 from millimeters to inches. Conversion from millimeters to inches by the layout printing tool is accomplished by multiplying the value in millimeters by 0.04.

ステップS2318では、レイアウト印刷ツールは、HI1,HI2,HI3それぞれの値の単位を、ミリメートルからインチに変換する。レイアウト印刷ツールによる、ミリメートルからインチへの変換は、ミリメートル単位の値に0.04を掛け合わせることで実現される。 In step S2318, the layout printing tool converts units of values of H I1 , H I2 , and H I3 from millimeters to inches. Conversion from millimeters to inches by the layout printing tool is accomplished by multiplying the value in millimeters by 0.04.

図27は、上述したステップS1416に係る印刷画像サイズ表示406を描画する際の処理の一例を示すフローチャートである。図27の説明において、印刷可能領域線403及び画像プレビューイメージ404の位置や大きさは、プレビュー画面306の左上端の点を原点とし、右方向に+x,下方向に+yとなる座標系で表されるものとする。前記位置,大きさとも、単位はピクセルである。   FIG. 27 is a flowchart illustrating an example of processing when the print image size display 406 according to step S1416 described above is drawn. In the description of FIG. 27, the positions and sizes of the printable area line 403 and the image preview image 404 are expressed in a coordinate system in which the upper left point of the preview screen 306 is the origin, + x is rightward, and + y is downward. Shall be. The unit of both the position and the size is a pixel.

ステップS2501では、レイアウト印刷ツールは、現在の背景色の設定をチェックする。背景色切り替えチェックボックス902で背景色が黒に設定されていれば、レイアウト印刷ツールは、ステップS2502へ進む。背景色が黒に設定されていなければ、レイアウト印刷ツールは、ステップS2503へ進む。   In step S2501, the layout printing tool checks the current background color setting. If the background color switching check box 902 sets the background color to black, the layout printing tool advances to step S2502. If the background color is not set to black, the layout printing tool advances to step S2503.

ステップS2502、S2503では、レイアウト印刷ツールは、描画する文字の色及び背景の色を設定する。   In steps S2502 and S2503, the layout printing tool sets the color of the character to be drawn and the color of the background.

ステップS2502では、レイアウト印刷ツールは、文字色を(R,G,B)=(255,255,255),文字背景色を(R,G,B)=(0,0,0)に設定する。   In step S2502, the layout printing tool sets the character color to (R, G, B) = (255, 255, 255) and the character background color to (R, G, B) = (0, 0, 0). .

ステップS2503では、レイアウト印刷ツールは、文字色を(R,G,B)=(0,0,0),文字背景色を(R,G,B)=(255,255,255)に設定する。   In step S2503, the layout printing tool sets the character color to (R, G, B) = (0, 0, 0) and the character background color to (R, G, B) = (255, 255, 255). .

ステップS2504では、レイアウト印刷ツールは、プレビュー画面306上の、印刷可能領域線403の位置XR,px,YR,px,大きさWR,px,HR,pxを取得する。これは、図18を用いて上述した方法により実現される。 In step S2504, the layout printing tool acquires the position X R, px , Y R, px , size W R, px , H R, px of the printable area line 403 on the preview screen 306. This is realized by the method described above with reference to FIG.

ステップS2505では、レイアウト印刷ツールは、画像プレビューイメージ404の描画領域の位置XI,px,YI,px,大きさWI,px,HI,pxを取得する。これは、図19を用いて上述した方法により実現される。 In step S2505, the layout printing tool acquires the drawing area position X I, px , Y I, px and size W I, px , H I, px of the image preview image 404. This is realized by the method described above with reference to FIG.

ステップS2506では、レイアウト印刷ツールは、印刷画像における、印刷可能領域から左にはみ出す範囲の幅WI1、印刷可能領域と重なる範囲の幅WI2、印刷領域から右にはみ出す範囲の幅WI3を取得する。これは、図25及び図26を用いて上述した方法により実現される。 In step S2506, the layout printing tool obtains the width W I1 of the range that protrudes to the left from the printable area, the width W I2 of the area that overlaps the printable area, and the width W I3 of the range that protrudes to the right from the print area. To do. This is realized by the method described above with reference to FIGS.

ステップS2507では、レイアウト印刷ツールは、印刷画像における、印刷可能領域から上にはみ出す範囲の高さHI1、印刷可能領域と重なる範囲の高さHI2、印刷可能領域から下にはみ出す範囲の高さHI3を取得する。これは、図25及び図26を用いて上述した方法により実現される。 In step S2507, the layout printing tool determines, in the print image, the height H I1 of the area that protrudes upward from the printable area, the height H I2 of the area that overlaps the printable area, and the height of the area that protrudes downward from the printable area. Get HI3 . This is realized by the method described above with reference to FIGS.

ステップS2508〜S2517では、レイアウト印刷ツールは、ステップS2506で取得した値WI1,WI2,WI3を、プレビュー画面306上に表示する。 In steps S2508 to S2517, the layout printing tool displays the values W I1 , W I2 and W I3 acquired in step S2506 on the preview screen 306.

ステップS2508では、レイアウト印刷ツールは、始点P1(XI,px,YI,px+HI,px)から、終点P2(XI,px,YI,px+HI,px+10)へ直線を描く。 In step S2508, the layout printing tool draws a straight line from the start point P1 ( XI, px , YI , px + HI , px ) to the end point P2 ( XI , px , YI , px + HI , px + 10). .

ステップS2509では、レイアウト印刷ツールは、始点P1(XI,px+WI,px,YI,px+HI,px)から、終点P2(XI,px+WI,px,YI,px+HI,px+10)へ直線を描く。 In step S2509, the layout printing tool, the starting point P1 (X I, px + W I, px, Y I, px + H I, px) from the end point P2 (X I, px + W I, px, Y I, px + H I , px +10).

ステップS2510では、レイアウト印刷ツールは、始点P1(XI,px,YI,px+HI,px+5)から、終点P2(XI,px+WI,px,YI,px+HI,px+5)へ直線を描く。 In step S2510, the layout printing tool starts from the start point P1 ( XI, px , YI , px + HI , px + 5) to the end point P2 ( XI, px + WI , px , YI , px + HI , px + 5). Draw a straight line to

ステップS2511では、レイアウト印刷ツールは、WI1の値をチェックする。WI1>0であれば、レイアウト印刷ツールは、ステップS2512へ進む。WI1≦0であれば、レイアウト印刷ツールは、ステップS2514へ進む。 In step S2511, the layout printing tool checks the value of W I1 . If W I1 > 0, the layout printing tool advances to step S2512. If W I1 ≦ 0, the layout printing tool advances to step S2514.

ステップS2512では、レイアウト印刷ツールは、始点P1(XR,px,YI,px+HI,px)から、終点P2(XR,px,YI,px+HI,px+10)へ直線を描く。 In step S2512, the layout printing tool draws a straight line from the start point P1 (X R, px , Y I, px + HI , px ) to the end point P2 (X R, px , Y I, px + HI , px +10). .

ステップS2513では、レイアウト印刷ツールは、点((XR,px−XI,px)/2,YI,px+HI,px+5)に、WI1の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S2513, the layout printing tool draws the value of WI1 as a character string at a point ((X R, px− X I, px ) / 2, Y I, px + H I, px + 5). At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS2514では、レイアウト印刷ツールは、WI3の値をチェックする。WI3>0であれば、レイアウト印刷ツールは、ステップS2515へ進む。WI3≦0であれば、レイアウト印刷ツールは、ステップS2517へ進む。 In step S2514, the layout printing tool checks the value of W I3 . If W I3 > 0, the layout printing tool advances to step S2515. If W I3 ≦ 0, the layout printing tool advances to step S2517.

ステップS2515では、レイアウト印刷ツールは、始点P1(XR,px+WR,px,YI,px+HI,px)から、終点P2(XR,px+WR,px,YI,px+HI,px+10)へ直線を描く。 In step S2515, the layout printing tool starts from the start point P1 (X R, px + W R, px , Y I, px + H I, px ) to the end point P2 (X R, px + W R, px , Y I, px + H I). , px +10).

ステップS2516では、レイアウト印刷ツールは、(x,y)=(((XI,px+WI,px)−(XR,px+WR,px))/2,YI,px+HI,px+5)の点に、WI3の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S2516, the layout printing tool determines that (x, y) = (((X I, px + W I, px ) − (X R, px + W R, px )) / 2, Y I, px + H I, px At the point of +5), the value of W I3 is drawn as a character string. At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS2517では、レイアウト印刷ツールは、点(XI,px+WI1+(WI2/2),YI,px+HI,px+5)に、WI2の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S2517, the layout printing tool draws the value of W I2 as a character string at the point (X I, px + W I1 + (W I2 / 2), Y I, px + H I, px +5). At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS2518〜S2527では、レイアウト印刷ツールは、ステップS2507で取得した値HI1,HI2,HI3を、プレビュー画面306上に表示する。 In steps S2518 to S2527, the layout printing tool displays the values H I1 , H I2 and H I3 acquired in step S2507 on the preview screen 306.

ステップS2518では、レイアウト印刷ツールは、始点P1(XI,px+WI,px,YI,px)から、終点P2(XI,px+WI,px+10,YI,px)へ直線を描く。 In step S2518, the layout printing tool draws a straight line from the start point P1 (X I, px + W I, px , Y I, px ) to the end point P2 (X I, px + W I, px + 10, Y I, px ). .

ステップS2519では、レイアウト印刷ツールは、始点P1(XI,px+WI,px,YI,px+HI,px)から、終点P2(XI,px+WI,px+10,YI,px+HI,px)へ直線を描く。 In step S2519, the layout printing tool starts from the start point P1 (XI, px + WI , px , YI , px + HI , px ) to the end point P2 (XI, px + WI , px + 10, YI , px + H). Draw a straight line to I, px ).

ステップS2520では、レイアウト印刷ツールは、始点P1(XI,px+WI,px+5,YI,px)から、終点P2(XI,px+WI,px+5,YI,px+HI,px)へ直線を描く。 In step S2520, the layout printing tool starts from the start point P1 (X I, px + W I, px + 5, Y I, px ) to the end point P2 (X I, px + W I, px + 5, Y I, px + H I, px Draw a straight line to

ステップS2521では、レイアウト印刷ツールは、HI1の値をチェックする。HI1>0であれば、レイアウト印刷ツールは、ステップS2522へ進む。HI1≦0であれば、レイアウト印刷ツールは、ステップS2524へ進む。 In step S2521, the layout printing tool checks the value of H I1 . If H I1 > 0, the layout printing tool advances to step S2522. If H I1 ≦ 0, the layout printing tool advances to step S2524.

ステップS2522では、レイアウト印刷ツールは、始点P1(XI,px+WI,px,YR,px)から、終点P2(XI,px+WI,px+10,YR,px)へ直線を描く。 In step S2522, the layout printing tool draws a straight line from the start point P1 (X I, px + W I, px , Y R, px ) to the end point P2 (X I, px + W I, px + 10, Y R, px ). .

ステップS2523では、レイアウト印刷ツールは、点(XI,px+WI,px+5,(YR,px−YI,px)/2)に、HI1の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S2523, the layout printing tool draws the value of H I1 as a character string at the point (X I, px + W I, px +5, (Y R, px −Y I, px ) / 2). At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS2524では、レイアウト印刷ツールは、HI3の値をチェックする。HI3>0であれば、レイアウト印刷ツールは、ステップS2525へ進む。HI3≦0であれば、レイアウト印刷ツールは、ステップS2527へ進む。 In step S2524, the layout printing tool checks the value of H I3 . If H I3 > 0, the layout printing tool advances to step S2525. If H I3 ≦ 0, the layout printing tool advances to step S2527.

ステップS2525では、レイアウト印刷ツールは、始点P1(XI,px+WI,px,YR,px+HR,px)から、終点P2(XI,px+WI,px+10,YR,px+HR,px)へ直線を描く。 In step S2525, the layout printing tool starts from the start point P1 (X I, px + W I, px , Y R, px + H R, px ) to the end point P2 (X I, px + W I, px + 10, Y R, px + H). Draw a straight line to R, px ).

ステップS2526では、レイアウト印刷ツールは、点(XI,px+WI,px+5,((YI,px+HI,px)−(YR,px+HR,px))/2)に、HI3の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S2526, the layout printing tool determines that the point (X I, px + W I, px +5, ((Y I, px + H I, px ) − (Y R, px + H R, px )) / 2) H Renders the value of I3 as a string. At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS2527では、レイアウト印刷ツールは、点(XI,px+WI,px+5,YI,px+HI1+(HI2/2))に、HI2の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S2527, the layout printing tool, point to (X I, px + W I , px + 5, Y I, px + H I1 + (H I2 / 2)), draw values for HI2 as a string. At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

レイアウト印刷ツールが、図25及び図27に示したような処理を行なうことで、図28に示すように、印刷画像について、実際に印刷する際に印刷される範囲と、印刷されない範囲との大きさを、プレビュー画面306上に数値表示することができる。   The layout printing tool performs the processing as shown in FIGS. 25 and 27, and as shown in FIG. 28, as shown in FIG. The numerical value can be displayed on the preview screen 306.

(第二の実施形態)
第一の実施形態では、印刷画像の実際に印刷される範囲を、プレビュー画面上で正確に知ることのできるようなレイアウト印刷ツールについて説明した。しかし、第一の実施形態におけるレイアウト印刷ツールでは、文字の描画領域の実際に印刷される範囲を、プレビュー画面上で正確に知ることができない。第二の実施形態では、第一の実施形態に加え、文字の描画領域についても、実際に印刷される範囲をプレビュー画面上で正確に知ることができるようなレイアウト印刷ツールの例について説明する。
(Second embodiment)
In the first embodiment, the layout printing tool has been described so that the actual print range of the print image can be accurately known on the preview screen. However, the layout printing tool in the first embodiment cannot accurately know the range of the character drawing area that is actually printed on the preview screen. In the second embodiment, in addition to the first embodiment, an example of a layout printing tool that can accurately know a range to be actually printed on a preview screen for a character drawing area will be described.

第二の実施形態のレイアウト印刷ツールは、上述したステップS205において、図29〜図33を用いて以下で説明する処理を行なう。   In step S205 described above, the layout printing tool of the second embodiment performs the process described below with reference to FIGS.

図29は、第二の実施形態におけるプレビュー画面306の詳細を示す図である。プレビュー画面306は、印刷画像の印刷用紙上の配置を表すものであり、印刷画像のイメージと、印刷用紙のイメージとを同時に表示する。
ここで、図29に示す401〜406は、図4における401〜406と同一のものである。
FIG. 29 is a diagram showing details of the preview screen 306 in the second embodiment. The preview screen 306 represents the arrangement of the print image on the print paper, and displays the print image and the print paper image simultaneously.
Here, 401 to 406 shown in FIG. 29 are the same as 401 to 406 in FIG.

印刷文字領域サイズ表示2701は、印刷用紙上の文字領域の大きさを、線と数値で表したものである。図7、図8に示すGUIを通して、ユーザによって、文字の設定が変更されると、レイアウト印刷ツールは、印刷文字領域サイズ表示2701の表示を更新する。印刷文字領域サイズ表示2701は、常に表示するようにしてもよいし、ユーザによるボタン又はキー操作に応じて、レイアウト印刷ツールが、表示と、非表示とを切り替えるようにしてもよい。   The print character area size display 2701 represents the size of the character area on the printing paper with lines and numerical values. When the user changes the character setting through the GUI shown in FIGS. 7 and 8, the layout printing tool updates the display of the print character area size display 2701. The print character area size display 2701 may be always displayed, or the layout print tool may switch between display and non-display in accordance with a button or key operation by the user.

図30は、第二の実施形態における上述したステップS205のプレビュー表示に係る処理の基本的な流れを表すフローチャートである。ステップS2801〜S2806は、図16のS1401〜S1406と同様である。ステップS2807では、レイアウト印刷ツールは、印刷文字領域サイズ表示2701を描画する。   FIG. 30 is a flowchart showing a basic flow of processing relating to the preview display in step S205 described above in the second embodiment. Steps S2801 to S2806 are the same as S1401 to S1406 in FIG. In step S2807, the layout printing tool draws the print character area size display 2701.

図31は、印刷用紙上の文字描画領域について、印刷可能領域内に含まれる範囲及び印刷可能領域内に含まれない範囲の大きさを、それぞれ取得する際の処理の一例を示すフローチャートである。   FIG. 31 is a flowchart illustrating an example of processing for obtaining the size included in the printable area and the size of the range not included in the printable area for the character drawing area on the print paper.

ここで、図32(a)に示すように、文字描画領域が上下方向に印刷可能領域からはみ出して配置されている場合、印刷画像において、印刷可能領域から上にはみ出す範囲の高さをHS1とする。また、印刷可能領域と重なる範囲の高さをHS2とする。また、印刷可能領域から下にはみ出す範囲の高さをHS3とする。 Here, as shown in FIG. 32A, when the character drawing area is arranged so as to protrude from the printable area in the vertical direction, the height of the range protruding from the printable area in the print image is set to H S1. And In addition, the height of the range that overlaps the printable area is H S2 . Further, the height of the range that protrudes downward from the printable area is assumed to be H S3 .

更に、図32(b)に示すように、文字描画領域が左右方向に印刷可能領域からはみ出して配置されている場合、印刷画像において、印刷可能領域から左にはみ出す範囲の幅をWS1とする。また、印刷可能領域と重なる範囲の幅をWS2とする。また、印刷可能領域から右にはみ出す範囲の幅をWS3とする。 Furthermore, as shown in FIG. 32B, when the character drawing area is arranged so as to protrude from the printable area in the left-right direction, the width of the range extending to the left from the printable area in the print image is W S1 . . Also, the width of the range that overlaps the printable area is W S2 . In addition, the width of the range that protrudes to the right from the printable area is W S3 .

なお、図31の説明において、文字描画領域及び印刷可能領域の位置や大きさは、印刷用紙の左上端の点を原点とし、右方向に+x,下方向に+yとなる座標系で表されるものとする。前記位置,大きさとも、ミリメートル単位又はインチ単位で表される。   In the description of FIG. 31, the positions and sizes of the character drawing area and the printable area are represented by a coordinate system in which the point at the upper left corner of the printing paper is the origin, + x in the right direction and + y in the downward direction. Shall. Both the position and size are expressed in units of millimeters or inches.

ステップS2801では、レイアウト印刷ツールは、文字描画領域の位置XS,mm,YS,mm及び大きさWS,mm,HS,mmを取得する。レイアウト印刷ツールは、これらの値を、上述した図15に示した方法を用いて取得する。 In step S2801, the layout printing tool acquires the position X S, mm , Y S, mm and the size W S, mm , H S, mm of the character drawing area. The layout printing tool acquires these values using the method shown in FIG.

ステップ2902では、レイアウト印刷ツールは、印刷可能領域の位置XR,mm,YR,mm,及び大きさWR,mm,HR,mmを取得する。これは、プリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step 2902, the layout printing tool obtains the printable area positions X R, mm , Y R, mm and the sizes W R, mm , H R, mm . This is realized by making an inquiry to the printer driver. In the system according to this embodiment, a value in millimeters is obtained.

ステップS2903では、レイアウト印刷ツールは、WS1,WS2,WS3に値を代入する。レイアウト印刷ツールは、それぞれ、
S1=0
S2=WS,mm
S3=0
とする。
In step S2903, the layout printing tool assigns values to W S1 , W S2 , and W S3 . Each layout printing tool
W S1 = 0
W S2 = W S, mm
W S3 = 0
And

ステップS2904では、レイアウト印刷ツールは、XS,mmと、XR,mmとの値を比較する。XS,mm<XR,mmであれば、レイアウト印刷ツールは、ステップS2905へ進む。XS,mm≧XR,mmであれば、レイアウト印刷ツールは、ステップS2906へ進む。 In step S2904, the layout printing tool compares the values of X S, mm and X R, mm . If X S, mm <X R, mm , the layout printing tool advances to step S2905. If X S, mm ≧ X R, mm , the layout printing tool advances to step S2906.

ステップS2905では、レイアウト印刷ツールは、WS1,WS2に値を代入する。レイアウト印刷ツールは、それぞれ、
S1=XR,mm−XS,mm
S2=WS2−(XR,mm−XS,mm
とする。
In step S2905, the layout printing tool substitutes values for W S1 and W S2 . Each layout printing tool
W S1 = X R, mm −X S, mm
W S2 = W S2 − (X R, mm −X S, mm )
And

ステップS2906では、レイアウト印刷ツールは、(XS,mm+WS,mm)と、(XR,mm+WR,mm)との値を比較する。(XS,mm+WS,mm)>(XR,mm+WR,mm)であれば、レイアウト印刷ツールは、ステップS2907へ進む。(XS,mm+WS,mm)≦(XR,mm+WR,mm)であれば、レイアウト印刷ツールは、ステップS2908へ進む。 In step S2906, the layout printing tool compares (X S, mm + W S, mm ) with (X R, mm + W R, mm ). If (X S, mm + W S, mm )> (X R, mm + W R, mm ), the layout printing tool proceeds to step S2907. If (X S, mm + W S, mm ) ≦ (X R, mm + W R, mm ), the layout printing tool proceeds to step S2908.

ステップS2907では、レイアウト印刷ツールは、WS2,WS3それぞれに値を代入する。レイアウト印刷ツールは、それぞれ、
S2=WS2−{(XS,mm+WS,mm)−(XR,mm+WR,mm)}
S3=(XS,mm+WS,mm)−(XR,mm+WR,mm
とする。
In step S2907, the layout printing tool substitutes values for W S2 and W S3 . Each layout printing tool
W S2 = W S2 − {(X S, mm + W S, mm ) − (X R, mm + W R, mm )}
W S3 = (X S, mm + W S, mm ) − (X R, mm + W R, mm )
And

ステップS2908では、レイアウト印刷ツールは、HS1,HS2,HS3に値を代入する。レイアウト印刷ツールは、それぞれ、
S1=0
S2=HS,mm
S3=0
とする。
In step S2908, the layout printing tool substitutes values for H S1 , H S2 , and H S3 . Each layout printing tool
H S1 = 0
H S2 = H S, mm
H S3 = 0
And

ステップS2909では、レイアウト印刷ツールは、YS,mmと、YR,mmとの値を比較する。YS,mm<YR,mmであれば、レイアウト印刷ツールは、ステップS2910へ進む。YS,mm≧YR,mmであれば、レイアウト印刷ツールは、ステップS2911へ進む。 In step S2909, the layout printing tool compares the values of Y S, mm and Y R, mm . If Y S, mm <Y R, mm , the layout printing tool advances to step S2910. If Y S, mm ≧ Y R, mm , the layout printing tool advances to step S2911.

ステップS2910では、レイアウト印刷ツールは、HS1,HS2に値を代入する。レイアウト印刷ツールは、それぞれ、
S1=YR,mm−YS,mm
S2=HS2−(YR,mm−YS,mm
とする。
In step S2910, the layout printing tool substitutes values for H S1 and H S2 . Each layout printing tool
H S1 = Y R, mm −Y S, mm
H S2 = H S2 − (Y R, mm −Y S, mm )
And

ステップS2911では、(YS,mm+HS,mm)と、(YR,mm+HR,mm)との値を比較する。(YS,mm+HS,mm)>(YR,mm+HR,mm)であれば、レイアウト印刷ツールは、ステップS2912へ進む。(YS,mm+HS,mm)≦(YR,mm+HR,mm)であれば、レイアウト印刷ツールは、ステップS2913へ進む。 In step S2911, the values of (Y S, mm + H S, mm ) and (Y R, mm + H R, mm ) are compared. If (Y S, mm + H S, mm )> (Y R, mm + H R, mm ), the layout printing tool proceeds to step S2912. If (Y S, mm + H S, mm ) ≦ (Y R, mm + H R, mm ), the layout printing tool proceeds to step S2913.

ステップS2912では、レイアウト印刷ツールは、HS2,HS3に値を代入する。レイアウト印刷ツールは、それぞれ、
S2=HS2−{(YS,mm+HS,mm)−(YR,mm+HR,mm)}
S3=(YS,mm+HS,mm)−(YR,mm+HR,mm
とする。
In step S2912, the layout printing tool assigns values to H S2 and H S3 . Each layout printing tool
H S2 = H S2 − {(Y S, mm + H S, mm ) − (Y R, mm + H R, mm )}
H S3 = (Y S, mm + H S, mm ) − (Y R, mm + H R, mm )
And

ステップS2913では、レイアウト印刷ツールは、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS2914に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、図31に示す処理を終了する。   In step S2913, the layout printing tool checks the currently set unit. If the unit is set to inches in the unit selection menu 901, the layout printing tool proceeds to step S2914. If the unit is set to millimeters, the layout printing tool ends the process shown in FIG.

ステップS2914では、レイアウト印刷ツールは、WS1,WS2,WS3それぞれの値の単位を、ミリメートルからインチに変換する。レイアウト印刷ツールによる、ミリメートルからインチへの変換は、ミリメートル単位の値に0.04を掛け合わせることで実現される。 In step S2914, the layout printing tool converts units of values of W S1 , W S2 , and W S3 from millimeters to inches. Conversion from millimeters to inches by the layout printing tool is accomplished by multiplying the value in millimeters by 0.04.

ステップS2915では、レイアウト印刷ツールは、HS1,HS2,HS3それぞれの値の単位を、ミリメートルからインチに変換する。レイアウト印刷ツールによる、ミリメートルからインチへの変換は、ミリメートル単位の値に0.04を掛け合わせることで実現される。 In step S2915, the layout printing tool converts units of values of H S1 , H S2 , and H S3 from millimeters to inches. Conversion from millimeters to inches by the layout printing tool is accomplished by multiplying the value in millimeters by 0.04.

図33は、上述したステップS2807に係る印刷文字領域サイズ表示2701を描画する際の処理の一例を示すフローチャートである。図33の説明において、印刷可能領域線403及び画像プレビューイメージ404の位置や大きさは、プレビュー画面306の左上端の点を原点とし、右方向に+x,下方向に+yとなる座標系で表されるものとする。前記位置、大きさとも、単位はピクセルである。   FIG. 33 is a flowchart showing an example of processing for drawing the print character area size display 2701 according to step S2807 described above. In the description of FIG. 33, the positions and sizes of the printable area line 403 and the image preview image 404 are expressed in a coordinate system in which the upper left point of the preview screen 306 is the origin, + x is in the right direction, and + y is in the down direction. Shall be. The unit of both the position and the size is a pixel.

ステップS3101では、レイアウト印刷ツールは、現在の背景色の設定をチェックする。背景色切り替えチェックボックス902で背景色が黒に設定されていれば、レイアウト印刷ツールは、ステップS3102へ進む。背景色が黒に設定されていなければ、レイアウト印刷ツールは、ステップS3103へ進む。   In step S3101, the layout printing tool checks the current background color setting. If the background color switching check box 902 sets the background color to black, the layout printing tool advances to step S3102. If the background color is not set to black, the layout printing tool advances to step S3103.

ステップS3102、S3103では、レイアウト印刷ツールは、描画する文字の色及び背景の色を設定する。   In steps S3102, S3103, the layout printing tool sets the color of the character to be drawn and the color of the background.

ステップS3102では、レイアウト印刷ツールは、文字色を(R,G,B)=(255,255,255),文字背景色を(R,G,B)=(0,0,0)に設定する。   In step S3102, the layout printing tool sets the character color to (R, G, B) = (255, 255, 255) and the character background color to (R, G, B) = (0, 0, 0). .

ステップS3103では、レイアウト印刷ツールは、文字色を(R,G,B)=(0,0,0),文字背景色を(R,G,B)=(255,255,255)に設定する。   In step S3103, the layout printing tool sets the character color to (R, G, B) = (0, 0, 0) and the character background color to (R, G, B) = (255, 255, 255). .

ステップS3104では、レイアウト印刷ツールは、プレビュー画面306上の、印刷可能領域線403の位置XR,px,YR,px,大きさWR,px,HR,pxを取得する。これは、図18を用いて上述した方法により実現される。 In step S3104, the layout printing tool acquires the position X R, px , Y R, px , size W R, px , H R, px of the printable area line 403 on the preview screen 306. This is realized by the method described above with reference to FIG.

ステップS3105〜S3108では、レイアウト印刷ツールは、図23のS2101〜S2104と同様の処理を行い、文字プレビューイメージ405の描画領域の位置XS,px,YS,px,大きさWS,px,HS,pxを算出する。 In steps S3105 to S3108, the layout printing tool performs the same processing as that of S2101 to S2104 in FIG. 23, and the position X S, px , Y S, px of the drawing area of the character preview image 405, the size W S, px , H S, px is calculated.

ステップS3109では、レイアウト印刷ツールは、印刷画像における、印刷可能領域から左にはみ出す範囲の幅WS1,印刷可能領域と重なる範囲の幅WS2,印刷領域から右にはみ出す範囲の幅WS3を取得する。これは、図31及び図32を用いて上述した方法により実現される。 In step S3109, the layout printing tool obtains the width W S1 of the range that extends to the left from the printable area, the width W S2 of the range that overlaps the printable area, and the width W S3 of the range that protrudes to the right from the print area. To do. This is realized by the method described above with reference to FIGS.

ステップS3110では、レイアウト印刷ツールは、印刷画像における、印刷可能領域から上にはみ出す範囲の高さHS1,印刷可能領域と重なる範囲の高さHS2,印刷可能領域から下にはみ出す範囲の高さHS3を取得する。これは、図31及び図32を用いて上述した方法により実現される。 In step S3110, the layout printing tool determines, in the print image, the height H S1 of the area that protrudes upward from the printable area, the height H S2 of the area that overlaps the printable area, and the height of the area that protrudes downward from the printable area. Get H S3 . This is realized by the method described above with reference to FIGS.

ステップS3111〜S3120では、レイアウト印刷ツールは、ステップS3109で取得した値WS1,WS2,WS3を、プレビュー画面306上に表示する。 In steps S3111 to S3120, the layout printing tool displays the values W S1 , W S2 , and W S3 acquired in step S3109 on the preview screen 306.

ステップS3111では、レイアウト印刷ツールは、始点P1(XS,px,YS,px+HS,px)から、終点P2(XS,px,YS,px+HS,px+10)へ直線を描く。 In step S 3111, the layout printing tool draws a straight line from the start point P 1 (X S, px , Y S, px + H S, px ) to the end point P 2 (X S, px , Y S, px + H S, px +10). .

ステップS3112では、レイアウト印刷ツールは、始点P1(XS,px+WS,px,YS,px+HS,px)から、終点P2(XS,px+WS,px,YS,px+HS,px+10)へ直線を描く。 In step S3112, the layout printing tool starts from the start point P1 (X S, px + W S, px , Y S, px + H S, px ) to the end point P2 (X S, px + W S, px , Y S, px + H S). , px +10).

ステップS3113では、レイアウト印刷ツールは、始点P1(XS,px,YS,px+HS,px+5)から、終点P2(XS,px+WS,px,YS,px+HS,px+5)へ直線を描く。 In step S3113, the layout printing tool starts from the start point P1 (X S, px , Y S, px + H S, px +5) to the end point P2 (X S, px + W S, px , Y S, px + H S, px +5). Draw a straight line to

ステップS3114では、レイアウト印刷ツールは、WS1の値をチェックする。WS1>0であれば、レイアウト印刷ツールは、ステップ3115へ進む。WS1≦0であれば、レイアウト印刷ツールは、ステップS3117へ進む。 In step S3114, the layout printing tool checks the value of WS1. If W S1 > 0, the layout printing tool proceeds to step 3115. If W S1 ≦ 0, the layout printing tool proceeds to step S3117.

ステップS3115では、レイアウト印刷ツールは、始点P1(XR,px,YS,px+HS,px)から、終点P2(XR,px,YS,px+HS,px+10)へ直線を描く。 In step S3115, the layout printing tool draws a straight line from the start point P1 (X R, px , Y S, px + H S, px ) to the end point P2 (X R, px , Y S, px + H S, px +10). .

ステップS3116では、レイアウト印刷ツールは、点((XR,px−XS,px)/2,YS,px+HS,px+5)に、WS1の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S3116, the layout printing tool draws the value of W S1 as a character string at the point ((X R, px− X S, px ) / 2, Y S, px + H S, px +5). At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS3117では、レイアウト印刷ツールは、WS3の値をチェックする。WS3>0であれば、レイアウト印刷ツールは、ステップS3118へ進む。WS3≦0であれば、レイアウト印刷ツールは、ステップS3120へ進む。 In step S3117, the layout printing tool checks the value of W S3 . If W S3 > 0, the layout printing tool advances to step S3118. If W S3 ≦ 0, the layout printing tool proceeds to step S3120.

ステップS3118では、レイアウト印刷ツールは、始点P1(XR,px+WR,px,YS,px+HS,px)から、終点P2(XR,px+WR,px,YS,px+HS,px+10)へ直線を描く。 In step S3118, the layout printing tool starts from the start point P1 (X R, px + W R, px , Y S, px + H S, px ) to the end point P2 (X R, px + W R, px , Y S, px + H S). , px +10).

ステップS3119では、レイアウト印刷ツールは、点(((XS,px+WS,px)−(XR,px+WR,px))/2,YS,px+HS,px+5)に、WS3の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S3119, the layout printing tool determines that the point (((X S, px + W S, px ) − (X R, px + W R, px )) / 2, Y S, px + H S, px + 5) Renders the value of S3 as a string. At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS3120では、レイアウト印刷ツールは、点(XS,px+WS1+(WS2/2),YS,px+HS,px+5)に、WS2の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S3120, the layout printing tool draws the value of W S2 as a character string at the point (X S, px + W S1 + (W S2 / 2), Y S, px + H S, px +5). At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS3121〜S3130では、レイアウト印刷ツールは、ステップS3110で取得した値HS1,HS2,HS3を、プレビュー画面306上に表示する。 In steps S3121 to S3130, the layout printing tool displays the values H S1 , H S2 , and H S3 acquired in step S3110 on the preview screen 306.

ステップS3121では、レイアウト印刷ツールは、始点P1(XS,px+WS,px,YS,px)から、終点(XS,px+WS,px+10,YS,px)へ直線を描く。 In step S3121, the layout printing tool draws a straight line from the start point P1 (X S, px + W S, px , Y S, px ) to the end point (X S, px + W S, px + 10, Y S, px ).

ステップS3122では、レイアウト印刷ツールは、始点P1(XS,px+WS,px,YS,px+HS,px)から、終点P2(XS,px+WS,px+10,YS,px+HS,px)へ直線を描く。 In step S 3122, the layout printing tool starts from the start point P 1 (X S, px + W S, px , Y S, px + H S, px ) to the end point P2 (X S, px + W S, px +10, Y S, px + H). Draw a straight line to S, px ).

ステップS3123では、レイアウト印刷ツールは、始点P1(XS,px+WS,px+5,YS,px)から、終点P2(XS,px+WS,px+5,YS,px+HS,px)へ直線を描く。 In step S3123, the layout printing tool starts from the start point P1 (X S, px + W S, px + 5, Y S, px ) to the end point P2 (X S, px + W S, px + 5, Y S, px + H S, px). Draw a straight line to

ステップS3124では、レイアウト印刷ツールは、HS1の値をチェックする。HS1>0であれば、レイアウト印刷ツールは、ステップS3125へ進む。HS1≦0であれば、レイアウト印刷ツールは、ステップS3127へ進む。 In step S3124, the layout printing tool checks the value of H S1 . If H S1 > 0, the layout printing tool advances to step S3125. If H S1 ≦ 0, the layout printing tool proceeds to step S3127.

ステップS3125では、レイアウト印刷ツールは、始点P1(XS,px+WS,px,YR,px)から、終点P2(XS,px+WS,px+10,YR,px)へ直線を描く。 In step S3125, the layout printing tool draws a straight line from the start point P1 (X S, px + W S, px , Y R, px ) to the end point P2 (X S, px + W S, px + 10, Y R, px ). .

ステップS3126では、レイアウト印刷ツールは、点(XS,px+WS,px+5,(YR,px−YS,px)/2)に、HS1の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S3126, the layout printing tool draws the value of H S1 as a character string at the point (X S, px + W S, px +5, (Y R, px− Y S, px ) / 2). At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS3127では、レイアウト印刷ツールは、HS3の値をチェックする。HS3>0であれば、レイアウト印刷ツールは、ステップS3128へ進む。HS3≦0であれば、レイアウト印刷ツールは、ステップS3130へ進む。 In step S3127, the layout printing tool checks the value of H S3 . If H S3 > 0, the layout printing tool advances to step S3128. If H S3 ≦ 0, the layout printing tool advances to step S3130.

ステップS3128では、レイアウト印刷ツールは、始点P1(XS,px+WS,px,YR,px+HR,px)から、終点P2(XS,px+WS,px+10,YR,px+HR,px)へ直線を描く。 In step S3128, the layout printing tool starts from the start point P1 (X S, px + W S, px , Y R, px + H R, px ) to the end point P2 (X S, px + W S, px +10, Y R, px + H). Draw a straight line to R, px ).

ステップS3129では、レイアウト印刷ツールは、点(XS,px+WS,px+5,((YS,px+HS,px)−(YR,px+HR,px))/2)に、HS3の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S3129, the layout printing tool sets the point (X S, px + W S, px +5, ((Y S, px + H S, px ) − (Y R, px + H R, px )) / 2) to H. Renders the value of S3 as a string. At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

ステップS3130では、レイアウト印刷ツールは、点(XS,px+WS,px+5,YS,px+HS1+(HS2/2))に、HS2の値を文字列として描画する。このとき、レイアウト印刷ツールは、単位選択メニュー901で選択されている単位を表す文字列を、一緒に描画してもよい。 In step S3130, the layout printing tool draws the value of H S2 as a character string at the point (X S, px + W S, px +5, Y S, px + H S1 + (H S2 / 2)). At this time, the layout printing tool may draw a character string representing the unit selected in the unit selection menu 901 together.

レイアウト印刷ツールが、図30、図31、図33に示したような処理を行うことで、図34に示すように、印刷される画像及び文字について、実際に印刷される範囲と、印刷されない範囲との大きさを、プレビュー画面306上に数値表示することができる。   When the layout printing tool performs the processes shown in FIGS. 30, 31, and 33, as shown in FIG. 34, the actual print range and the non-print range of the image and characters to be printed. Can be displayed numerically on the preview screen 306.

(第三の実施形態)
第一の実施形態、第二の実施形態におけるレイアウト印刷ツールでは、紙方向に対して必ず水平になるように、画像や文字を配置した。しかし、画像や文字を任意角に回転して配置できるようにしてもよい。第三の実施形態では、第一の実施形態におけるレイアウト印刷ツールを基とし、画像が任意角に回転して配置される場合に、画像が実際に印刷される範囲を判りやすく表示する方法について述べる。
(Third embodiment)
In the layout printing tools in the first and second embodiments, images and characters are arranged so as to be always horizontal with respect to the paper direction. However, images and characters may be rotated and arranged at an arbitrary angle. In the third embodiment, based on the layout printing tool in the first embodiment, a method for displaying the range in which the image is actually printed in an easily understandable manner when the image is rotated and arranged at an arbitrary angle will be described. .

第三の実施形態のレイアウト印刷ツールは、上述したステップS1416において、図35〜図43を用いて以下で説明する処理を行なう。   In step S1416 described above, the layout printing tool according to the third embodiment performs the process described below with reference to FIGS.

図35〜図41の説明において、印刷画像及び印刷可能領域の位置や大きさは、印刷用紙の左上端の点を原点とし、右方向に+x,下方向に+yとなる座標系で表されるものとする。前記位置,大きさとも、ミリメートル単位又はインチ単位で表される。   In the description of FIGS. 35 to 41, the position and size of the print image and the printable area are represented by a coordinate system in which the point at the upper left end of the printing paper is the origin, + x is in the right direction, and + y is in the down direction. Shall. Both the position and size are expressed in units of millimeters or inches.

図35〜図37は、印刷画像が、印刷用紙の左上端の点を中心として、印刷用紙に対してθの角度で傾いており、更に、印刷可能領域からはみ出して配置されている例である。回転角は、時計回りに正であるとする。   FIGS. 35 to 37 are examples in which the print image is inclined at an angle θ with respect to the print paper around the upper left end point of the print paper and further protrudes from the printable area. . It is assumed that the rotation angle is positive in the clockwise direction.

ここで、印刷画像の、左上端の点の座標をPI,LT(XI,LT,YI,LT)とする。また、右上端の点の座標をPI,RT(XI,RT,YI,RT)とする。また、右下端の点の座標をPI,RB(XI,RB,YI,RB)とする。また、左下端の点の座標をPI,LB(XI,LB,YI,LB)とする。 Here, the coordinates of the upper left point of the print image are P I, LT (X I, LT , Y I, LT ). The coordinates of the upper right point are P I, RT (X I, RT , Y I, RT ). The coordinates of the lower right point are P I, RB (X I, RB , Y I, RB ). The coordinates of the lower left point are P I, LB (X I, LB , Y I, LB ).

更に、印刷画像の上辺と印刷可能領域の各辺とが交わる点を、PI,LTに近い点から、それぞれPIP,Top1(XIP,Top1,YIP,Top1),PIP,Top2(XIP,Top2,YIP,Top2)とする。 Further, the points where the upper side of the print image and each side of the printable area cross each other from the points close to P I and LT are P IP, Top1 (X IP, Top1 , Y IP, Top1 ), P IP, Top2 ( X IP, Top2 , Y IP, Top2 ).

同様に、印刷画像の右辺と印刷可能領域の各辺とが交わる点を、PI,RTに近い点から、それぞれPIP,Rgt1(XIP,Rgt1,YIP,Rgt1),PIP,Rgt2(XIP,Rgt2,YIP,Rgt2)とする。 Similarly, the point at which the respective sides of the right side and the printable area of the print image intersect, from a point near the P I, RT, respectively P IP, Rgt1 (X IP, Rgt1, Y IP, Rgt1), P IP, Rgt2 (X IP, Rgt2 , Y IP, Rgt2 ).

また、印刷画像の下辺と印刷可能領域の各辺とが交わる点を、PI,RBに近い点から、それぞれPIP,Btm1(XIP,Btm1,YIP,Btm1),PIP,Btm2(XIP,Btm2,YIP,Btm2)とする。 Further, the point where the respective sides of the lower side and the printable area of the print image intersect, from a point near the P I, RB, respectively P IP, Btm1 (X IP, Btm1, Y IP, Btm1), P IP, Btm2 ( X IP, Btm2 , Y IP, Btm2 ).

印刷画像の左辺と印刷可能領域の各辺とが交わる点を、PI,LBに近い点から、それぞれPIP,Lft1(XIP,Lft1,YIP,Lft1),PIP,Lft2(XIP,Lft2,YIP,Lft2)とする。 The points where the left side of the printed image and each side of the printable area intersect are P IP, Lft1 (X IP, Lft1 , Y IP, Lft1 ), P IP, Lft2 (X IP ) from the points close to P I, LB. , Lft2 , Y IP, Lft2 ).

また、印刷画像の各辺について、印刷可能領域で分けられる各線分の長さを、印刷画像の左上端の点を起点として、時計回りに、それぞれ、
I,Top1,LI,Top2,LI,Top3,LI,Rgt1,LI,Rgt2,LI,Rgt3,LI,Btm1,LI,Btm2,LI,Btm3,LI,Lft1,LI,Lft2,LI,Lft3
とする。
Further, for each side of the print image, the length of each line segment divided by the printable area is set clockwise from the upper left end point of the print image, respectively.
L I, Top1, L I, Top2, L I, Top3, L I, Rgt1, L I, Rgt2, L I, Rgt3, L I, Btm1, L I, Btm2, L I, Btm3, L I, Lft1, L I, Lft2 , L I, Lft3
And

図38は、印刷用紙上における、印刷画像の描画領域の頂点の座標値、及び印刷画像と印刷可能領域との交点の座標値を取得する際の処理の一例を示すフローチャートである。
以下、図38に示される処理によって、図36における以下に示すような座標値を取得することができる。つまり、PI,LT,PI,RT,PI,RB,PI,LB,PIP,Top1,PIP,Top2,PIP,Rgt1,PIP,Rgt2,PIP,Btm1,PIP,Btm2,PIP,Lft1,PIP,Lft2である。
FIG. 38 is a flowchart illustrating an example of processing for acquiring the coordinate value of the vertex of the drawing area of the print image and the coordinate value of the intersection of the print image and the printable area on the print sheet.
In the following, the coordinate values as shown in FIG. 36 can be obtained by the processing shown in FIG. In other words, P I, LT, P I , RT, P I, RB, P I, LB, P IP, Top1, P IP, Top2, P IP, Rgt1, P IP, Rgt2, P IP, Btm1, P IP, Btm2 , PIP , Lft1 , and PIP , Lft2 .

ステップS3601では、レイアウト印刷ツールは、印刷画像の位置XI,YI及び大きさWI,HIを取得する。レイアウト印刷ツールは、これらの値として、画像サイズ設定部601の対応するテキストボックスで設定されている値を用いる。 In step S3601, the layout printing tool acquires the positions X I and Y I and the sizes W I and H I of the print image. The layout printing tool uses values set in the corresponding text box of the image size setting unit 601 as these values.

ステップS3602では、レイアウト印刷ツールは、印刷画像の回転角θを取得する。   In step S3602, the layout printing tool acquires the rotation angle θ of the print image.

ステップS3603では、レイアウト印刷ツールは、印刷画像の左上端点PI,LTの座標値を算出する。x値XI,LT,y値YI,LTは、それぞれ、
I,LT=XI×cosθ−YI×sinθ
I,LT=XI×sinθ+YI×cosθ
の式に基づいて算出される。
In step S3603, the layout printing tool calculates the coordinate value of the upper left end point PI , LT of the print image. The x value X I, LT and the y value Y I, LT are respectively
X I, LT = X I × cos θ−Y I × sin θ
Y I, LT = X I × sin θ + Y I × cos θ
It is calculated based on the following formula.

ステップS3604では、レイアウト印刷ツールは、印刷画像の右上端点PI,RTの座標値を算出する。x値XI,RT,y値YI,RTは、それぞれ、
I,RT=(XI+WI)×cosθ−YI×sinθ
I,RT=(XI+WI)×sinθ+YI×cosθ
の式に基づいて算出される。
In step S3604, the layout printing tool calculates the coordinate value of the upper right end point PI , RT of the print image. The x value X I, RT and the y value Y I, RT are respectively
X I, RT = (X I + W I ) × cos θ−Y I × sin θ
Y I, RT = (X I + W I ) × sin θ + Y I × cos θ
It is calculated based on the following formula.

ステップS3605では、レイアウト印刷ツールは、印刷画像の右下端点PI,RBの座標値を算出する。x値XI,RB,y値YI,RBは、それぞれ、
I,RB=(XI+WI)×cosθ−(YI+HI)×sinθ
I,RB=(XI+WI)×sinθ+(YI+HI)×cosθ
の式に基づいて算出される。
In step S3605, the layout printing tool calculates the coordinate value of the lower right end point PI , RB of the print image. The x value X I, RB and the y value Y I, RB are respectively
X I, RB = (X I + W I ) × cos θ− (Y I + H I ) × sin θ
Y I, RB = (X I + W I ) × sin θ + (Y I + H I ) × cos θ
It is calculated based on the following formula.

ステップS3606では、レイアウト印刷ツールは、印刷画像の左下端点PI,LBの座標値を算出する。x値XI,LB,y値YI,LBは、それぞれ、
I,LB=XI×cosθ−(YI+HI)×sinθ
I,LB=XI×sinθ+(YI+HI)×cosθ
の式に基づいて算出される。
In step S3606, the layout printing tool calculates the coordinate value of the lower left corner point PI , LB of the print image. The x value X I, LB and the y value Y I, LB are respectively
X I, LB = X I × cos θ− (Y I + H I ) × sin θ
Y I, LB = X I × sin θ + (Y I + H I ) × cos θ
It is calculated based on the following formula.

ステップS3607では、レイアウト印刷ツールは、印刷画像の上辺と、印刷可能領域との交点の座標値を算出する。交点PIP,Top1,PIP,Top2の座標値を求める方法については、図39及び図40を用いて後述する。 In step S3607, the layout printing tool calculates the coordinate value of the intersection of the upper side of the print image and the printable area. A method for obtaining the coordinate values of the intersection points P IP, Top 1 , P IP, Top 2 will be described later with reference to FIGS. 39 and 40.

ステップS3608では、レイアウト印刷ツールは、印刷画像の右辺と、印刷可能領域との交点の座標値を算出する。レイアウト印刷ツールは、交点PIP,Rgt1,PIP,Rgt2の座標値を、ステップS3607と同様の方法を用いて求める。 In step S3608, the layout printing tool calculates the coordinate value of the intersection of the right side of the print image and the printable area. The layout printing tool obtains the coordinate values of the intersection points P IP, Rgt1 , P IP, Rgt2 using the same method as in step S3607.

ステップS3609では、レイアウト印刷ツールは、印刷画像の下辺と、印刷可能領域との交点の座標値を算出する。レイアウト印刷ツールは、交点PIP,Btm1,PIP,Btm2の座標値を、ステップS3607と同様の方法を用いて求める。 In step S3609, the layout printing tool calculates the coordinate value of the intersection of the lower side of the print image and the printable area. The layout printing tool obtains the coordinate values of the intersection points P IP, Btm1 , P IP, Btm2 using the same method as in step S3607.

ステップS3610では、レイアウト印刷ツールは、印刷画像の左辺と、印刷可能領域との交点の座標値を算出する。レイアウト印刷ツールは、交点PIP,Lft1,PIP,Lft2の座標値を、ステップS3607と同様の方法を用いて求める。 In step S3610, the layout printing tool calculates the coordinate value of the intersection of the left side of the print image and the printable area. The layout printing tool obtains the coordinate values of the intersection points P IP, Lft1 , P IP, Lft2 using the same method as in step S3607.

図39及び図40は、上述したS3607に係る印刷画像の上辺と印刷可能領域の交点PIP,Top1,PIP,Top2の座標値を算出する際の、処理の一例を示すフローチャートである。 39 and 40, when calculating the coordinate values of the intersection point P IP, Top1, P IP, Top2 of the upper side and the printable area of the print image according to S3607 described above is a flowchart illustrating an example of processing.

ステップS3701では、レイアウト印刷ツールは、印刷画像の左上端点PI,LT,右上端点PI,RTの座標値をそれぞれ取得する。 In step S3701, the layout printing tool acquires the coordinate values of the upper left end point PI , LT and the upper right end point PI , RT of the print image.

ステップS3702では、レイアウト印刷ツールは、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS3703に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、ステップS3704に進む。   In step S3702, the layout printing tool checks the currently set unit. If the unit is set to inches in the unit selection menu 901, the layout printing tool proceeds to step S3703. If the unit is set to millimeters, the layout printing tool proceeds to step S3704.

ステップS3703では、レイアウト印刷ツールは、変数XI,LT,mm,YI,LT,mm,XI,RT,mm,YI,RT,mmへ、XI,LT,YI,LT,XI,RT,YI,RTそれぞれの単位を、インチからミリメートルに変換して代入する。レイアウト印刷ツールによる、インチからミリメートルへの変換は、インチ単位の値に25.4を掛け合わせることで実現される。 In step S3703, the layout printing tool changes the variables XI, LT, mm , YI , LT, mm , XI , RT, mm , YI , RT, mm to XI , LT , YI , LT , X. The units of I, RT , Y I, RT are converted from inches to millimeters and substituted. The conversion from inch to millimeter by the layout printing tool is realized by multiplying the value in inches by 25.4.

ステップS3704では、レイアウト印刷ツールは、変数XI,LT,mm,YI,LT,mm,XI,RT,mm,YI,RT,mmへ、XI,LT,YI,LT,XI,RT,YI,RTそれぞれの値を代入する。 In step S 3704, the layout printing tool, variables X I, LT, mm, Y I, LT, mm, X I, RT, mm, Y I, RT, to mm, X I, LT, Y I, LT, X Substitute the values of I, RT , Y I, RT .

ステップS3705では、レイアウト印刷ツールは、印刷可能領域の位置XR,mm,YR,mm,及び大きさWR,mm,HR,mmを取得する。これは、プリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S3705, the layout printing tool acquires the position X R, mm , Y R, mm and the size W R, mm , H R, mm of the printable area. This is realized by making an inquiry to the printer driver. In the system according to this embodiment, a value in millimeters is obtained.

ステップS3706では、レイアウト印刷ツールは、印刷画像の上辺を表す線分l0を定義する。印刷用紙の左上端の点を原点とし、右方向に+x,下方向に+yとなる座標系において、直線l0は、
0:y=A(x−XI,LT,mm)+YI,LT,mm
但し、A=(YI,RT,mm−YILT,mm)/(XI,RT,mm−XI,LT,mm
また、xについて、XI,LT,mm<XI,RT,mmのとき:XI,LT,mm≦x≦XI,RT,mm,XI,LT,mm≧XI,RT,mmのとき:XI,RT,mm≦x≦XI,LT,mm
yについて、YI,LT,mm<YI,RT,mmのとき:YI,LT,mm≦y≦YI,RT,mm,YI,LT,mm≧YI,RT,mmのとき:YI,RT,mm≦y≦YI,LT,mm
と表されるものとする。
In step S3706, the layout printing tool defines a line segment l 0 representing the upper side of the print image. In the coordinate system in which the upper left point of the printing paper is the origin, + x in the right direction and + y in the downward direction, the straight line l 0 is
l 0 : y = A (x−X I, LT, mm ) + Y I, LT, mm
However, A = (Y I, RT, mm −Y ILT, mm ) / (X I, RT, mm −X I, LT, mm )
For x, when X I, LT, mm <X I, RT, mm : X I, LT, mm ≦ x ≦ X I, RT, mm , X I, LT, mm ≧ X I, RT, mm When: X I, RT, mm ≦ x ≦ X I, LT, mm
For y, when Y I, LT, mm <Y I, RT, mm : Y I, LT, mm ≦ y ≦ Y I, RT, mm , Y I, LT, mm ≧ Y I, RT, mm : Y I, RT, mm ≦ y ≦ Y I, LT, mm
It shall be expressed as

ステップS3707では、レイアウト印刷ツールは、印刷可能領域の上辺を表す線分l1,印刷可能領域の右辺を表す線分l2,印刷可能領域の下辺を表す線分l3,印刷可能領域の左辺を表す線分l4を定義する。印刷用紙の左上端の点を原点とし、右方向に+x,下方向に+yとなる座標系において、直線l1〜l4はそれぞれ、
1:y=YR,mm(XR,mm≦x≦XR,mm+WR,mm
2:x=XR,mm+WR,mm(YR,mm≦y≦YR,mm+HR,mm
3:y=YR,mm+HR,mm(XR,mm≦x≦XR,mm+WR,mm
4:x=XR,mm(YR,mm≦y≦YR,mm+HR,mm
と表されるものとする。
In step S3707, the layout printing tool displays a line segment l 1 representing the upper side of the printable area, a line segment l 2 representing the right side of the printable area, a line segment l 3 representing the lower side of the printable area, and the left side of the printable area. A line segment l 4 representing is defined. In the coordinate system in which the upper left point of the printing paper is the origin, + x in the right direction and + y in the downward direction, the straight lines l 1 to l 4 are respectively
l 1 : y = Y R, mm (X R, mm ≦ x ≦ X R, mm + W R, mm )
l 2 : x = X R, mm + W R, mm (Y R, mm ≦ y ≦ Y R, mm + H R, mm )
l 3 : y = Y R, mm + H R, mm (X R, mm ≦ x ≦ X R, mm + W R, mm )
l 4 : x = X R, mm (Y R, mm ≦ y ≦ Y R, mm + H R, mm )
It shall be expressed as

ステップS3708では、レイアウト印刷ツールは、線分l0と、線分l1とが交わるか否かをチェックし、交わる場合、その交点PIP1の座標値XIP1,YIP1を算出する。 In step S3708, the layout printing tool checks whether or not the line segment l 0 and the line segment l 1 intersect, and if so, calculates the coordinate values X IP1 and Y IP1 of the intersection point P IP1 .

ステップS3709では、レイアウト印刷ツールは、線分l0と、線分l2とが交わるか否かをチェックし、交わる場合、その交点PIP2の座標値XIP2,YIP2を算出する。 In step S3709, the layout printing tool checks whether or not the line segment l 0 and the line segment l 2 intersect, and if so, calculates the coordinate values X IP2 and Y IP2 of the intersection point P IP2 .

ステップS3710では、レイアウト印刷ツールは、線分l0と、線分l3とが交わるか否かをチェックし、交わる場合、その交点PIP3の座標値XIP3,YIP3を算出する。 In step S3710, the layout printing tool checks whether or not the line segment l 0 and the line segment l 3 intersect, and if so, calculates the coordinate values X IP3 and Y IP3 of the intersection point P IP3 .

ステップS3711では、レイアウト印刷ツールは、線分l0と、線分l4とが交わるか否かをチェックし、交わる場合、その交点PIP4の座標値XIP4,YIP4を算出する。 In step S3711, the layout printing tool checks whether or not the line segment l 0 and the line segment l 4 intersect, and if so, calculates the coordinate values X IP4 and Y IP4 of the intersection point P IP4 .

ステップS3712では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PI,TLの座標値XI,TL,YI,TLをそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PI,TLの座標値XI,TL,YI,TLをそれぞれ代入する。 In step S 3712, the layout printing tool, the coordinate value X IP of the point P IP, Top1, Top1, Y IP, Top1, substituting the point P I, the coordinate values X I of the TL, TL, Y I, TL respectively. The layout printing tool, the coordinate values X IP of the point P IP, Top2, Top2, Y IP, Top2, substituting the point P I, the coordinate values X I of the TL, TL, Y I, TL respectively.

ステップS3713では、レイアウト印刷ツールは、ステップS3708〜S3711の結果から、線分l1,l2,l3,l4に対して、線分l0が一つ以上の交点を持つか否かをチェックする。一つ以上の交点を持つ場合、レイアウト印刷ツールは、ステップS3714に進む。交点を持たない場合、レイアウト印刷ツールは、ステップS3737へ進む。 In step S3713, the layout printing tool determines whether or not the line segment l 0 has one or more intersections with respect to the line segments l 1 , l 2 , l 3 , and l 4 based on the results of steps S3708 to S3711. To check. If there are one or more intersections, the layout printing tool proceeds to step S3714. If there is no intersection, the layout printing tool proceeds to step S3737.

ステップS3714では、レイアウト印刷ツールは、ステップS3708〜S3711の結果から、線分l1,l2,l3,l4に対して、線分l0が二つの交点を持つか否かをチェックする。二つの交点を持つ場合、レイアウト印刷ツールは、ステップS3722に進む。一つの交点を持つ場合、レイアウト印刷ツールは、ステップS3715へ進む。 In step S3714, the layout printing tool checks whether or not the line segment l 0 has two intersections with respect to the line segments l 1 , l 2 , l 3 , and l 4 based on the results of steps S3708 to S3711. . If there are two intersections, the layout printing tool proceeds to step S3722. If there is one intersection, the layout printing tool proceeds to step S3715.

ステップS3715では、レイアウト印刷ツールは、線分l0と、線分l1とが交わるか否かをチェックする。線分l0と、線分l1とが交わる場合、レイアウト印刷ツールは、ステップS3718に進む。交わらない場合、レイアウト印刷ツールは、ステップS3716へ進む。 In step S3715, the layout printing tool checks whether the line segment l 0 and the line segment l 1 intersect. If the line segment l 0 and the line segment l 1 intersect, the layout printing tool proceeds to step S3718. If not, the layout printing tool proceeds to step S3716.

ステップS3716では、レイアウト印刷ツールは、線分l0と、線分l2とが交わるか否かをチェックする。線分l0と、線分l2とが交わる場合、レイアウト印刷ツールは、ステップS3718に進む。交わらない場合、ステップS3717へ進む。 In step S3716, the layout printing tool checks whether the line segment l 0 and the line segment l 2 intersect. When the line segment l 0 and the line segment l 2 intersect, the layout printing tool proceeds to step S3718. If not, the process proceeds to step S3717.

ステップS3717では、レイアウト印刷ツールは、線分l0と、線分l3とが交わるか否かをチェックする。線分l0と、線分l3とが交わる場合、レイアウト印刷ツールは、ステップS3718に進む。交わらない場合、レイアウト印刷ツールは、線分l0と、線分l4とが交わると判断し、ステップS3721へ進む。 In step S3717, the layout printing tool checks whether the line segment l 0 and the line segment l 3 intersect. If the line segment l 0 and the line segment l 3 intersect, the layout printing tool proceeds to step S3718. If they do not intersect, the layout printing tool determines that the line segment l 0 and the line segment l 4 intersect, and proceeds to step S3721.

ステップS3718では、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP1の座標値XIP1,YIP1をそれぞれ代入する。 In step S3718, the layout printing tool substitutes the coordinate values X IP1 and Y IP1 of the point P IP1 for the coordinate values X IP, Top2 , Y IP and Top2 of the point P IP, Top2, respectively.

ステップS3719では、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP2の座標値XIP2,YIP2をそれぞれ代入する。 In step S3719, the layout printing tool substitutes the coordinate values X IP2 and Y IP2 of the point P IP2 for the coordinate values X IP, Top2 , Y IP and Top2 of the point P IP, Top2.

ステップS3720では、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP3の座標値XIP3,YIP3をそれぞれ代入する。 In step S3720, the layout printing tool substitutes the coordinate values X IP3 and Y IP3 of the point P IP3 for the coordinate values X IP, Top2 , Y IP and Top2 of the point P IP, Top2.

ステップS3721では、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP4の座標値XIP4,YIP4をそれぞれ代入する。 In step S3721, the layout printing tool substitutes the coordinate values X IP4 and Y IP4 of the point P IP4 for the coordinate values X IP, Top2 , Y IP and Top2 of the point P IP, Top2, respectively.

ステップS3722では、レイアウト印刷ツールは、線分l0が線分l1,l2と交わるか否かをチェックする。線分l0が線分l1,l2と交わる場合、レイアウト印刷ツールは、ステップS3725に進む。交わらない場合、レイアウト印刷ツールは、ステップS3723へ進む。 In step S3722, the layout printing tool checks whether the line segment l 0 intersects with the line segments l 1 and l 2 . When the line segment l 0 intersects with the line segments l 1 and l 2 , the layout printing tool proceeds to step S3725. If not, the layout printing tool proceeds to step S3723.

ステップS3723では、レイアウト印刷ツールは、線分l0が線分l2,l3と交わるか否かをチェックする。線分l0が線分l2,l3と交わる場合、レイアウト印刷ツールは、ステップS3728へ進む。交わらない場合、レイアウト印刷ツールは、ステップS3724へ進む。 In step S3723, the layout printing tool checks whether the line segment l 0 intersects with the line segments l 2 and l 3 . When the line segment l 0 intersects with the line segments l 2 and l 3 , the layout printing tool proceeds to step S3728. If not, the layout printing tool proceeds to step S3724.

ステップS3724では、レイアウト印刷ツールは、線分l0が線分l3,l4と交わるか否かをチェックする。線分l0が線分l3,l4と交わる場合、レイアウト印刷ツールは、ステップS3731に進む。交わらない場合、レイアウト印刷ツールは、線分l0が線分l4,l1と交わると判断し、ステップS3734へ進む。 In step S3724, the layout printing tool checks whether the line segment l 0 intersects with the line segments l 3 and l 4 . When the line segment l 0 intersects with the line segments l 3 and l 4 , the layout printing tool proceeds to step S3731. If not, the layout printing tool determines that the line segment l 0 intersects with the line segments l 4 and l 1, and proceeds to step S3734.

ステップS3725では、レイアウト印刷ツールは、点PI,TLと点PIP1との間の距離と、点PI,TLと点PIP2との間の距離とを比較する。((XIP1−XI,TL2+(YIP1−YI,TL21/2<((XIP2−XI,TL2+(YIP2−YI,TL21/2であれば、レイアウト印刷ツールは、ステップS3726へ進む。((XIP1−XI,TL2+(YIP1−YI,TL21/2≧((XIP2−XI,TL2+(YIP2−YI,TL21/2であれば、レイアウト印刷ツールは、ステップS3727へ進む。 In step S3725, the layout printing tool compares the distance between the points P I, TL and P IP1 with the distance between the points P I, TL and P IP2 . ((X IP1 -X I, TL ) 2 + (Y IP1 -Y I, TL ) 2 ) 1/2 <((X IP2 -X I, TL ) 2 + (Y IP2 -Y I, TL ) 2 ) If it is 1/2 , the layout printing tool proceeds to step S3726. ((X IP1 -X I, TL ) 2 + (Y IP1 -Y I, TL ) 2 ) 1/2 ≧ ((X IP2 -X I, TL ) 2 + (Y IP2 -Y I, TL ) 2 ) If it is 1/2 , the layout printing tool proceeds to step S3727.

ステップS3726では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PIP1の座標値XIP1,YIP1をそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP2の座標値XIP2,YIP2をそれぞれ代入する。 In step S3726, the layout printing tool, the coordinate values X IP of the point P IP, Top1, Top1, the Y IP, Top1, assigns the coordinate value X IP1 of the point P IP1, Y IP1 respectively. The layout printing tool coordinate values X IP of the point P IP, Top2, Top2, the Y IP, Top2, substituting the coordinate values X IP2, Y IP2 of the point P IP2 respectively.

ステップS3727では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PIP2の座標値XIP2,YIP2をそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP1の座標値XIP1,YIP1をそれぞれ代入する。 In step S3727, the layout printing tool, the coordinate values X IP of the point P IP, Top1, Top1, the Y IP, Top1, substituting the coordinate values X IP2, Y IP2 of the point P IP2 respectively. The layout printing tool coordinate values X IP of the point P IP, Top2, Top2, the Y IP, Top2, assigns the coordinate value X IP1 of the point P IP1, Y IP1 respectively.

ステップS3728では、レイアウト印刷ツールは、点PI,TLと点PIP2との間の距離と、点PI,TLと点PIP3との間の距離とを比較する。((XIP2−XI,TL2+(YIP2−YI,TL21/2<((XIP3−XI,TL2+(YIP3−YI,TL21/2であれば、レイアウト印刷ツールは、ステップS3729へ進む。((XIP2−XI,TL2+(YIP2−YI,TL21/2≧((XIP3−XI,TL2+(YIP3−YI,TL21/2であれば、レイアウト印刷ツールは、ステップS3730へ進む。 In step S3728, the layout printing tool compares the distance between the points P I, TL and P IP2 with the distance between the points P I, TL and P IP3 . ((X IP2 -X I, TL ) 2 + (Y IP2 -Y I, TL ) 2 ) 1/2 <((X IP3 -X I, TL ) 2 + (Y IP3 -Y I, TL ) 2 ) If it is 1/2 , the layout printing tool proceeds to step S3729. ((X IP2 -X I, TL ) 2 + (Y IP2 -Y I, TL ) 2 ) 1/2 ≧ ((X IP3 -X I, TL ) 2 + (Y IP3 -Y I, TL ) 2 ) If it is 1/2 , the layout printing tool proceeds to step S3730.

ステップS3729では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PIP2の座標値XIP2,YIP2をそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP3の座標値XIP3,YIP3をそれぞれ代入する。 In step S3729, the layout printing tool, the coordinate values X IP of the point P IP, Top1, Top1, the Y IP, Top1, substituting the coordinate values X IP2, Y IP2 of the point P IP2 respectively. The layout printing tool, the coordinate values X IP of the point P IP, Top2, Top2, Y IP, Top2, substituting the coordinate values X IP3, Y IP3 of the point P IP3 respectively.

ステップS3730では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PIP3の座標値XIP3,YIP3をそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP2の座標値XIP2,YIP2をそれぞれ代入する。 In step S3730, the layout printing tool, the coordinate values X IP of the point P IP, Top1, Top1, the Y IP, Top1, substituting the coordinate values X IP3, Y IP3 of the point P IP3 respectively. The layout printing tool coordinate values X IP of the point P IP, Top2, Top2, the Y IP, Top2, substituting the coordinate values X IP2, Y IP2 of the point P IP2 respectively.

ステップS3731では、レイアウト印刷ツールは、点PI,TLと点PIP3との間の距離と、点PI,TLと点PIP4との間の距離とを比較する。((XIP3−XI,TL2+(YIP3−YI,TL21/2<((XIP4−XI,TL2+(YIP4−YI,TL21/2であれば、レイアウト印刷ツールは、ステップS3732へ進む。((XIP3−XI,TL2+(YIP3−YI,TL21/2≧((XIP4−XI,TL2+(YIP4−YI,TL21/2であれば、レイアウト印刷ツールは、ステップS3733へ進む。 In step S3731, the layout printing tool compares the distance between the points P I, TL and P IP3 with the distance between the points P I, TL and P IP4 . ((X IP3 -X I, TL ) 2 + (Y IP3 -Y I, TL ) 2 ) 1/2 <((X IP4 -X I, TL ) 2 + (Y IP4 -Y I, TL ) 2 ) If it is 1/2 , the layout printing tool advances to step S3732. ((X IP3 -X I, TL ) 2 + (Y IP3 -Y I, TL ) 2 ) 1/2 ≧ ((X IP4 -X I, TL ) 2 + (Y IP4 -Y I, TL ) 2 ) If it is 1/2 , the layout printing tool advances to step S3733.

ステップS3732では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PIP3の座標値XIP3,YIP3をそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP4の座標値XIP4,YIP4をそれぞれ代入する。 In step S3732, the layout printing tool, the coordinate values X IP of the point P IP, Top1, Top1, the Y IP, Top1, substituting the coordinate values X IP3, Y IP3 of the point P IP3 respectively. The layout printing tool coordinate values X IP of the point P IP, Top2, Top2, the Y IP, Top2, substituting the coordinate values X IP4, Y IP4 of the point P IP4 respectively.

ステップS3733では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PIP4の座標値XIP4,YIP4をそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP3の座標値XIP3,YIP3をそれぞれ代入する。 In step S3733, the layout printing tool, the coordinate values X IP of the point P IP, Top1, Top1, the Y IP, Top1, substituting the coordinate values X IP4, Y IP4 of the point P IP4 respectively. The layout printing tool, the coordinate values X IP of the point P IP, Top2, Top2, Y IP, Top2, substituting the coordinate values X IP3, Y IP3 of the point P IP3 respectively.

ステップS3734では、レイアウト印刷ツールは、点PI,TLと点PIP4との間の距離と、点PI,TLと点PIP1との間の距離とを比較する。((XIP4−XI,TL2+(YIP4−YI,TL21/2<((XIP1−XI,TL2+(YIP1−YI,TL21/2であれば、レイアウト印刷ツールは、ステップS3735へ進む。((XIP4−XI,TL2+(YIP4−YI,TL21/2≧((XIP1−XI,TL2+(YIP1−YI,TL21/2であれば、レイアウト印刷ツールは、ステップS3736へ進む。 In step S3734, the layout printing tool compares the distance between the points P I, TL and P IP4 with the distance between the points P I, TL and P IP1 . ((X IP4 -X I, TL ) 2 + (Y IP4 -Y I, TL ) 2 ) 1/2 <((X IP1 -X I, TL ) 2 + (Y IP1 -Y I, TL ) 2 ) If it is 1/2 , the layout printing tool proceeds to step S3735. ((X IP4 −X I, TL ) 2 + (Y IP4 −Y I, TL ) 2 ) 1/2 ≧ ((X IP1 −X I, TL ) 2 + (Y IP1 −Y I, TL ) 2 ) If it is 1/2 , the layout printing tool proceeds to step S3736.

ステップS3735では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PIP4の座標値XIP4,YIP4をそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP1の座標値XIP1,YIP1をそれぞれ代入する。 In step S3735, the layout printing tool, the coordinate values X IP of the point P IP, Top1, Top1, the Y IP, Top1, substituting the coordinate values X IP4, Y IP4 of the point P IP4 respectively. The layout printing tool coordinate values X IP of the point P IP, Top2, Top2, the Y IP, Top2, assigns the coordinate value X IP1 of the point P IP1, Y IP1 respectively.

ステップS3736では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1に、点PIP1の座標値XIP1,YIP1をそれぞれ代入する。また、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2に、点PIP4の座標値XIP4,YIP4をそれぞれ代入する。 In step S3736, the layout printing tool, the coordinate values X IP of the point P IP, Top1, Top1, the Y IP, Top1, assigns the coordinate value X IP1 of the point P IP1, Y IP1 respectively. The layout printing tool coordinate values X IP of the point P IP, Top2, Top2, the Y IP, Top2, substituting the coordinate values X IP4, Y IP4 of the point P IP4 respectively.

ステップS3737では、レイアウト印刷ツールは、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS3738に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、図39及び図40に示す処理を終了する。   In step S3737, the layout printing tool checks the currently set unit. If the unit is set to inch in the unit selection menu 901, the layout printing tool proceeds to step S3738. If the unit is set to millimeters, the layout printing tool ends the processes shown in FIGS.

ステップS3738では、レイアウト印刷ツールは、XIP,Top1,YIP,Top1,XIP,Top2,YIP,Top2それぞれの値の単位を、ミリメートルからインチに変換する。レイアウト印刷ツールによる、ミリメートルからインチへの変換は、ミリメートル単位の値に0.04を掛け合わせることで実現される。 In step S3738, the layout printing tool, X IP, Top1, Y IP , Top1, X IP, Top2, Y IP, Top2 units of each value, converted from millimeters to inches. Conversion from millimeters to inches by the layout printing tool is accomplished by multiplying the value in millimeters by 0.04.

図41は、印刷画像について、印刷可能領域内に含まれる範囲及び印刷可能領域内に含まれない範囲の大きさを、それぞれ取得する際の処理の一例を示すフローチャートである。
以下、図41に示される処理によって、図37におけるLI,Top1,LI,Top2,LI,Top3,LI,Rgt1,LI,Rgt2,LI,Rgt3,LI,Btm1,LI,Btm2,LI,Btm3,LI,Lft1,LI,Lft2,LI,Lft3の値を取得することができる。
FIG. 41 is a flowchart illustrating an example of processing when acquiring the size of the range included in the printable area and the size of the range not included in the printable area for the print image.
Hereinafter, the processing shown in FIG. 41, L I, Top1 in FIG 37, L I, Top2, L I, Top3, L I, Rgt1, L I, Rgt2, L I, Rgt3, L I, Btm1, L I , Btm2 , L I, Btm3 , L I, Lft1 , L I, Lft2 , L I, Lft3 can be acquired.

ステップS3801では、レイアウト印刷ツールは、印刷画像の位置XI,YI,及び大きさWI,HIを取得する。レイアウト印刷ツールは、これらの値として、画像サイズ設定部601の対応するテキストボックスで設定されている値を用いる。 In step S3801, the layout printing tool acquires the positions X I and Y I and the sizes W I and H I of the print image. The layout printing tool uses values set in the corresponding text box of the image size setting unit 601 as these values.

ステップS3802では、レイアウト印刷ツールは、印刷画像の左上端点の座標値、右上端点の座標値、右下端点の座標値、左下端点の座標値、を取得する。これは、図38を用いて上述した方法により実現される。
ここで、左上端点の座標値とは、PI,LT(XI,LT,YI,LT)である。また、右上端点の座標値とは、PI,RT(XI,RT,YI,RT)である。また、右下端点の座標値とは、PI,RB(XI,RB,YI,RB)である。また、左下端点の座標値とは、PI,LB(XI,LB,YI,LB)である。
In step S3802, the layout printing tool acquires the coordinate value of the upper left end point, the coordinate value of the upper right end point, the coordinate value of the lower right end point, and the coordinate value of the lower left end point of the print image. This is realized by the method described above with reference to FIG.
Here, the coordinate value of the upper left end point is P I, LT (X I, LT , Y I, LT ). The coordinate value of the upper right end point is P I, RT (X I, RT , Y I, RT ). The coordinate value of the lower right end point is P I, RB (X I, RB , Y I, RB ). The coordinate value of the lower left end point is P I, LB (X I, LB , Y I, LB ).

ステップS3803では、レイアウト印刷ツールは、印刷画像と、印刷可能領域との交点の座標値を取得する、これは、図38を用いて上述した方法により実現される。
ここで、印刷画像と、印刷可能領域との交点の座標値は、
IP,Top1(XIP,Top1,YIP,Top1)、
IP,Top2(XIP,Top2,YIP,Top2)、
IP,Rgt1(XIP,Rgt1,YIP,Rgt1)、
IP,Rgt2(XIP,Rgt2,YIP,Rgt2)、
IP,Btm1(XIP,Btm1,YIP,Btm1)、
IP,Btm2(XIP,Btm2,YIP,Btm2)、
IP,Lft1(XIP,Lft1,YIP,Lft1)、
IP,Lft2(XIP,Lft2,YIP,Lft2)、
である。
In step S3803, the layout printing tool acquires the coordinate value of the intersection between the print image and the printable area, which is realized by the method described above with reference to FIG.
Here, the coordinate value of the intersection of the print image and the printable area is
P IP, Top1 (X IP, Top1 , Y IP, Top1 ),
P IP, Top2 (X IP, Top2 , Y IP, Top2 ),
P IP, Rgt1 (X IP, Rgt1 , Y IP, Rgt1 ),
P IP, Rgt2 (X IP, Rgt2 , Y IP, Rgt2 ),
P IP, Btm1 (X IP, Btm1 , Y IP, Btm1 ),
P IP, Btm2 (X IP, Btm2 , Y IP, Btm2 ),
P IP, Lft1 (X IP, Lft1 , Y IP, Lft1 ),
P IP, Lft2 (X IP, Lft2 , Y IP, Lft2 ),
It is.

ステップS3804〜S3808では、レイアウト印刷ツールは、LI,Top1,LI,Top2,LI,Top3の値を求める。 In step S3804~S3808, layout printing tool, obtaining the L I, Top1, L I, Top2, the value of L I, Top 3.

ステップS3804では、レイアウト印刷ツールは、LI,Top1,LI,Top2,LI,Top3に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Top1=0
I,Top2=WI
I,Top3=0
とする。
In step S3804, the layout printing tool, L I, Top1, L I , Top2, L I, to assign a value to Top 3. Each layout printing tool
L I, Top1 = 0
L I, Top2 = W I
L I, Top3 = 0
And

ステップS3805では、レイアウト印刷ツールは、点PIP,Top1の座標値XIP,Top1,YIP,Top1と、点PI,LTの座標値XI,LT,YI,LTとをそれぞれ比較する。XIP,Top1≠XI,LT、又はYIP,Top1≠YI,LTであれば、レイアウト印刷ツールは、ステップS3806へ進む。XIP,Top1=XI,LT、且つYIP,Top1=YI,LTであれば、レイアウト印刷ツールは、ステップS3807へ進む。 In step S3805, the layout printing tool compares the coordinate values X IP, Top1 , Y IP, Top1 of the points P IP, Top1 and the coordinate values X I, LT , Y I, LT of the points P I, LT respectively. . If X IP, Top1 ≠ X I, LT or Y IP, Top1 ≠ Y I, LT , the layout printing tool advances to step S3806. If X IP, Top1 = X I, LT and Y IP, Top1 = Y I, LT , the layout printing tool advances to step S3807.

ステップS3806では、レイアウト印刷ツールは、LI,Top1,LI,Top2に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Top1=((XIP,Top1−XI,LT2+(YIP,Top1−YI,LT21/2
I,Top2=LI,Top2−((XIP,Top1−XI,LT2+(YIP,Top1−YI,LT21/2
とする。
In step S3806, the layout printing tool substitutes values into LI, Top1, LI, and Top2. Each layout printing tool
L I, Top1 = ((X IP, Top1- X I, LT ) 2 + (Y IP, Top1- Y I, LT ) 2 ) 1/2
L I, Top2 = L I, Top2 − ((X IP, Top1 −X I, LT ) 2 + (Y IP, Top1 −Y I, LT ) 2 ) 1/2
And

ステップS3807では、レイアウト印刷ツールは、点PIP,Top2の座標値XIP,Top2,YIP,Top2と、点PI,LTの座標値XI,LT,YI,LTとをそれぞれ比較する。XIP,Top2≠XI,LT、又はYIP,Top2≠YI,LTであれば、レイアウト印刷ツールは、ステップS3808へ進む。XIP,Top2=XI,LT、且つYIP,Top2=YI,LTであれば、レイアウト印刷ツールは、ステップS3809へ進む。 In step S3807, the layout printing tool, the coordinate values X IP of the point P IP, Top2, Top2, and Y IP, Top2, compares the point P I, the coordinate values X I of LT, LT, Y I, and LT, respectively . If X IP, Top2 ≠ X I, LT or Y IP, Top2 ≠ Y I, LT , the layout printing tool advances to step S3808. If X IP, Top2 = X I, LT and Y IP, Top2 = Y I, LT , the layout printing tool advances to step S3809.

ステップS3808では、レイアウト印刷ツールは、LI,Top2,LI,Top3に値を代入する。レイアウト印刷ツールは、LI,Top2,LI,Top3の値をそれぞれ、
I,Top2=LI,Top2−((XI,RT−XIP,Top22+(YI,RT−YIP,Top221/2
I,Top3=((XI,RT−XIP,Top22+(YI,RT−YIP,Top221/2
とする。
In step S3808, the layout printing tool assigns values to L I, Top2, L I, Top3. The layout printing tool sets the values of L I, Top2 , L I, Top3 respectively
L I, Top2 = L I, Top2 − ((X I, RT −X IP, Top2 ) 2 + (Y I, RT −Y IP, Top2 ) 2 ) 1/2
L I, Top3 = ((X I, RT −X IP, Top 2 ) 2 + (Y I, RT −Y IP, Top 2 ) 2 ) 1/2
And

ステップS3809〜S3813では、レイアウト印刷ツールは、LI,Rgt1,LI,Rgt2,LI,Rgt3の値を求める。 In steps S3809 to S3813, the layout printing tool obtains values of L I, Rgt1 , L I, Rgt2 , and L I, Rgt3 .

ステップS3809では、レイアウト印刷ツールは、LI,Rgt1,LI,Rgt2,LI,Rgt3に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Rgt1=0
I,Rgt2=HI
I,Rgt3=0
とする。
In step S3809, the layout printing tool assigns values to L I, Rgt1 , L I, Rgt2 , and L I, Rgt3 . Each layout printing tool
L I, Rgt1 = 0
L I, Rgt2 = H I
L I, Rgt3 = 0
And

ステップS3810では、レイアウト印刷ツールは、点PIP,Rgt1の座標値XIP,Rgt1,YIP,Rgt1と、点PI,RTの座標値XI,RT,YI,RTとをそれぞれ比較する。XIP,Rgt1≠XI,RT、又はYIP,Rgt1≠YI,RTであれば、レイアウト印刷ツールは、ステップS3811へ進む。XIP,Rgt1=XI,RT、且つYIP,Rgt1=YI,RTであれば、レイアウト印刷ツールは、ステップS3812へ進む。 In step S3810, the layout printing tool compares the coordinate values X IP, Rgt1 , Y IP, Rgt1 of the points P IP, Rgt1 and the coordinate values X I, RT , Y I, RT of the points P I, RT respectively. . If X IP, Rgt1 ≠ X I, RT or Y IP, Rgt1 ≠ Y I, RT , the layout printing tool proceeds to step S3811. If X IP, Rgt1 = X I, RT and Y IP, Rgt1 = Y I, RT , the layout printing tool proceeds to step S3812.

ステップS3811では、レイアウト印刷ツールは、LI,Rgt1,LI,Rgt2に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Rgt1=((XIP,Rgt1−XI,RT2+(YIP,Rgt1−YI,RT21/2
I,Rgt2=LI,Rgt2−((XIP,Rgt1−XI,RT2+(YIP,Rgt1−YI,RT21/2
とする。
In step S3811, the layout printing tool substitutes values for L I, Rgt1 , L I, Rgt2 . Each layout printing tool
L I, Rgt1 = ((X IP, Rgt1 -X I, RT ) 2 + (Y IP, Rgt 1 -Y I, RT ) 2 ) 1/2
L I, Rgt2 = L I, Rgt2 − ((X IP, Rgt1 −X I, RT ) 2 + (Y IP, Rgt1 −Y I, RT ) 2 ) 1/2
And

ステップS3812では、レイアウト印刷ツールは、点PIP,Rgt2の座標値XIP,Rgt2,YIP,Rgt2と、点PI,RTの座標値XI,RT,YI,RTとをそれぞれ比較する。XIP,Rgt2≠XI,RT、又はYIP,Rgt2≠YI,RTであれば、レイアウト印刷ツールは、ステップS3813へ進む。XIP,Rgt2=XI,RT、且つYIP,Rgt2=YI,RTであれば、レイアウト印刷ツールは、ステップS3814へ進む。 In step S3812, the layout printing tool compares the coordinate values X IP, Rgt2 , Y IP, Rgt2 of the points P IP, Rgt2 and the coordinate values X I, RT , Y I, RT of the points P I, RT respectively. . If X IP, Rgt2 ≠ X I, RT or Y IP, Rgt2 ≠ Y I, RT , the layout printing tool advances to step S3813. If X IP, Rgt2 = X I, RT and Y IP, Rgt2 = Y I, RT , the layout printing tool advances to step S3814.


ステップS3813では、レイアウト印刷ツールは、LI,Rgt2,LI,Rgt3に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Rgt2=LI,Rgt2−((XI,RB−XIP,Rgt22+(YI,RB−YIP,Rgt221/2
I,Rgt3=((XI,RB−XIP,Rgt22+(YI,RB−YIP,Rgt221/2
とする。

In step S3813, the layout printing tool substitutes values for L I, Rgt2 and L I, Rgt3 . Each layout printing tool
L I, Rgt2 = L I, Rgt2 − ((X I, RB −X IP, Rgt 2 ) 2 + (Y I, RB −Y IP, Rgt 2 ) 2 ) 1/2
L I, Rgt3 = ((X I, RB −X IP, Rgt 2 ) 2 + (Y I, RB −Y IP, Rgt 2 ) 2 ) 1/2
And

ステップS3814〜S3818では、レイアウト印刷ツールは、LI,Btm1,LI,Btm2,LI,Btm3の値を求める。 In steps S3814 to S3818, the layout printing tool obtains values of L I, Btm1 , L I, Btm2 , and L I, Btm3 .

ステップS3814では、レイアウト印刷ツールは、LI,Btm1,LI,Btm2,LI,Btm3に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Btm1=0
I,Btm2=WI
I,Btm3=0
とする。
In step S3814, the layout printing tool assigns values to L I, Btm1 , L I, Btm2 , and L I, Btm3 . Each layout printing tool
L I, Btm1 = 0
L I, Btm2 = W I
L I, Btm3 = 0
And

ステップS3815では、レイアウト印刷ツールは、点PIP,Btm1の座標値XIP,Btm1,YIP,Btm1と、点PI,RBの座標値XI,RB,YI,RBとをそれぞれ比較する。XIP,Btm1≠XI,RB、又はYIP,Btm1≠YI,RBであれば、レイアウト印刷ツールは、ステップS3816へ進む。XIP,Btm1=XI,RB、且つYIP,Btm1=YI,RBであれば、レイアウト印刷ツールは、ステップS3817へ進む。 In step S3815, the layout printing tool compares the coordinate values X IP, Btm1 , Y IP, Btm1 of the points P IP, Btm1 and the coordinate values X I, RB , Y I, RB of the points P I, RB respectively. . If X IP, Btm1 ≠ X I, RB or Y IP, Btm1 ≠ Y I, RB , the layout printing tool advances to step S3816. If X IP, Btm1 = X I, RB and Y IP, Btm1 = Y I, RB , the layout printing tool advances to step S3817.

ステップS3816では、レイアウト印刷ツールは、LI,Btm1,LI,Btm2に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Btm1=((XIP,Btm1−XI,RB2+(YIP,Btm1−YI,RB21/2
I,Btm2=LI,Btm2−((XIP,Btm1−XI,RB2+(YIP,Btm1−YI,RB21/2
とする。
In step S3816, the layout printing tool substitutes values for L I, Btm1 and L I, Btm2 . Each layout printing tool
L I, Btm1 = ((X IP, Btm1 -X I, RB ) 2 + (Y IP, Btm1 -Y I, RB ) 2 ) 1/2
L I, Btm2 = L I, Btm2 − ((X IP, Btm1 −X I, RB ) 2 + (Y IP, Btm1 −Y I, RB ) 2 ) 1/2
And

ステップS3817では、レイアウト印刷ツールは、点PIP,Btm2の座標値XIP,Btm2,YIP,Btm2と、点PI,RBの座標値XI,RB,YI,RBとをそれぞれ比較する。XIP,Btm2≠XI,RB、又はYIP,Btm2≠YI,RBであれば、レイアウト印刷ツールは、ステップS3818へ進む。XIP,Btm2=XI,RB、且つYIP,Btm2=YI,RBであれば、レイアウト印刷ツールは、ステップS3819へ進む。 In step S3817, the layout printing tool compares the coordinate values X IP, Btm2 , Y IP, Btm2 of the points P IP, Btm2 and the coordinate values X I, RB , Y I, RB of the points P I, RB respectively. . If X IP, Btm2 ≠ X I, RB or Y IP, Btm2 ≠ Y I, RB , the layout printing tool advances to step S3818. If X IP, Btm2 = X I, RB and Y IP, Btm2 = Y I, RB , the layout printing tool advances to step S3819.

ステップS3818では、レイアウト印刷ツールは、LI,Btm2,LI,Btm3に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Btm2=LI,Btm2−((XI,LB−XIP,Btm22+(YI,LB−YIP,Btm221/2
I,Btm3=((XI,LB−XIP,Btm22+(YI,LB−YIP,Btm221/2
とする。
In step S3818, the layout printing tool assigns values to L I, Btm2 and L I, Btm3 . Each layout printing tool
L I, Btm2 = L I, Btm2 − ((X I, LB −X IP, Btm2 ) 2 + (Y I, LB −Y IP, Btm2 ) 2 ) 1/2
L I, Btm3 = ((X I, LB -X IP, Btm2 ) 2 + (Y I, LB -Y IP, Btm 2 ) 2 ) 1/2
And

ステップS3819〜S3823では、レイアウト印刷ツールは、LI,Lft1,LI,Lft2,LI,Lft3の値を求める。 In steps S3819 to S3823, the layout printing tool obtains values of L I, Lft1 , L I, Lft2 , and L I, Lft3 .

ステップS3819では、レイアウト印刷ツールは、LI,Lft1,LI,Lft2,LI,Lft3ニ値を代入する。レイアウト印刷ツールは、それぞれ、
I,Lft1=0
I,Lft2=HI
I,Lft3=0
とする。
In step S3819, the layout printing tool substitutes L I, Lft1 , L I, Lft2 , L I, Lft3 two values. Each layout printing tool
L I, Lft1 = 0
L I, Lft2 = H I
L I, Lft3 = 0
And

ステップS3820では、レイアウト印刷ツールは、点PIP,Lft1の座標値XIP,Lft1,YIP,Lft1と、点PI,LBの座標値XI,LB,YI,LBとをそれぞれ比較する。XIP,Lft1≠XI,LB、又はYIP,Lft1≠YI,LBであれば、レイアウト印刷ツールは、ステップS3821へ進む。XIP,Lft1=XI,LB、且つYIP,Lft1=YI,LBであれば、レイアウト印刷ツールは、ステップS3822へ進む。 In step S3820, the layout printing tool compares the coordinate values X IP, Lft1 , Y IP, Lft1 of the points P IP, Lft1 and the coordinate values X I, LB , Y I, LB of the points P I, LB respectively. . If X IP, Lft1 ≠ X I, LB or Y IP, Lft1 ≠ Y I, LB , the layout printing tool proceeds to step S3821. If X IP, Lft1 = X I, LB and Y IP, Lft1 = Y I, LB , the layout printing tool advances to step S3822.

ステップS3821では、レイアウト印刷ツールは、LI,Lft1,LI,Lft2に値を代入する。レイアウト印刷ツールは、LI,Lft1,LI,Lft2の値をそれぞれ、
I,Lft1=((XIP,Lft1−XI,LB2+(YIP,Lft1−YI,LB21/2
I,Lft2=LI,Lft2−((XIP,Lft1−XI,LB2+(YIP,Lft1−YI,LB21/2
とする。
In step S3821, the layout printing tool assigns values to L I, Lft1 , L I, Lft2 . The layout printing tool sets the values of L I, Lft1 , L I, Lft2 respectively
L I, Lft1 = ((X IP, Lft1 -X I, LB ) 2 + (Y IP, Lft 1 -Y I, LB ) 2 ) 1/2
L I, Lft2 = L I, Lft2 − ((X IP, Lft1 −X I, LB ) 2 + (Y IP, Lft1 −Y I, LB ) 2 ) 1/2
And

ステップS3822では、レイアウト印刷ツールは、点PIP,Lft2の座標値XIP,Lft2,YIP,Lft2と、点PI,LBの座標値XI,LB,YI,LBとをそれぞれ比較する。XIP,Lft2≠XI,LB、又はYIP,Lft2≠YI,LBであれば、レイアウト印刷ツールは、ステップS3823へ進む。XIP,Lft2=XI,LB、且つYIP,Lft2=YI,LBであれば、レイアウト印刷ツールは、処理を終了する。 In step S3822, the layout printing tool compares the coordinate values X IP, Lft2 , Y IP, Lft2 of the points P IP, Lft2 and the coordinate values X I, LB , Y I, LB of the points P I, LB respectively. . If X IP, Lft2 ≠ X I, LB or Y IP, Lft2 ≠ Y I, LB , the layout printing tool advances to step S3823. If X IP, Lft2 = X I, LB and Y IP, Lft2 = Y I, LB , the layout printing tool ends the process.

ステップS3823では、レイアウト印刷ツールは、LI,Lft2,LI,Lft3に値を代入する。レイアウト印刷ツールは、それぞれ、
I,Lft2=LI,Lft2−((XI,LT−XIP,Lft22+(YI,LT−YIP,Lft221/2
I,Lft3=((XI,LT−XIP,Lft22+(YI,LT−YIP,Lft221/2
とする。
In step S3823, the layout printing tool assigns values to L I, Lft2 , L I, Lft3 . Each layout printing tool
L I, Lft2 = L I, Lft2 − ((X I, LT −X IP, Lft2 ) 2 + (Y I, LT −Y IP, Lft2 ) 2 ) 1/2
L I, Lft3 = ((X I, LT −X IP, Lft 2 ) 2 + (Y I, LT −Y IP, Lft 2 ) 2 ) 1/2
And

図42〜図43の説明において、プレビュー画面306上に配置されるアイテムの位置や大きさは、プレビュー画面306の左上端の点を原点とし、右方向に+x,下方向に+yとなる座標系で表されるものとする。前記位置,大きさとも、単位はピクセルである。   42 to 43, the position and size of the item arranged on the preview screen 306 is a coordinate system in which the upper left point of the preview screen 306 is the origin, + x is in the right direction, and + y is in the downward direction. It shall be represented by The unit of both the position and the size is a pixel.

図42は、プレビュー画面306上における、画像プレビューイメージ404の頂点の座標値及び、画像プレビューイメージ404と、印刷可能領域線403との交点の座標値を取得する際の処理の一例を示すフローチャートである。   FIG. 42 is a flowchart showing an example of processing when acquiring the coordinate value of the vertex of the image preview image 404 and the coordinate value of the intersection of the image preview image 404 and the printable area line 403 on the preview screen 306. is there.

ここで、画像プレビューイメージ404の左上端点の座標値をPI,LT(XI,LT,px,YI,LT,px)とする。また、右上端点の座標値をPI,RT(XI,RT,px,YI,RT,px)とする。また、右下端点の座標値をPI,RB(XI,RB,px,YI,RB,px)とする。また、左下端点の座標値をPI,LB(XI,LB,px,YI,LB,px)とする。 Here, the coordinate value of the upper left end point of the image preview image 404 is P I, LT (X I, LT, px , Y I, LT, px ). The coordinate value of the upper right end point is P I, RT (X I, RT, px , Y I, RT, px ). Further, the coordinate value of the lower right end point is P I, RB (X I, RB, px , Y I, RB, px ). Further, the coordinate value of the lower left end point is P I, LB (X I, LB, px , Y I, LB, px ).

また、画像プレビューイメージ404と、印刷可能領域線403との交点の座標値は、
IP,Top1(XIP,Top1,px,YIP,Top1,px)、
IP,Top2(XIP,Top2,px,YIP,Top2,px)、
IP,Rgt1(XIP,Rgt1,px,YIP,Rgt1,px)、
IP,Rgt2(XIP,Rgt2,px,YIP,Rgt2,px)、
IP,Btm1(XIP,Btm1,px,YIP,Btm1,px)、
IP,Btm2(XIP,Btm2,pxYIP,Btm2,px)、
IP,Lft1(XIP,Lft1,px,YIP,Lft1,px)、
IP,Lft2(XIP,Lft2,px,YIP,Lft2,px)、
とする。
The coordinate value of the intersection between the image preview image 404 and the printable area line 403 is
P IP, Top1 (X IP, Top1, px , Y IP, Top1, px ),
P IP, Top2 (X IP, Top2, px , Y IP, Top2, px ),
P IP, Rgt1 (X IP, Rgt1, px , Y IP, Rgt1, px ),
P IP, Rgt2 (X IP, Rgt2, px , Y IP, Rgt2, px ),
P IP, Btm1 (X IP, Btm1, px , Y IP, Btm1, px ),
P IP, Btm2 (X IP, Btm2, px , YIP, Btm2, px ),
P IP, Lft1 (X IP, Lft1, px , Y IP, Lft1, px ),
P IP, Lft2 (X IP, Lft2, px , Y IP, Lft2, px ),
And

ステップS3901では、レイアウト印刷ツールは、印刷用紙の幅WP,mm,高さHP,mmを取得する。この処理は、レイアウト印刷ツールが、システムにインストールされているプリンタドライバに問い合わせることで実現される。本実施形態におけるシステムでは、ミリメートル単位の値が得られる。 In step S3901, the layout printing tool acquires the width W P, mm and height H P, mm of the printing paper. This process is realized by the layout printing tool inquiring a printer driver installed in the system. In the system according to this embodiment, a value in millimeters is obtained.

ステップS3902では、レイアウト印刷ツールは、用紙プレビューイメージ402の位置XP,px,YP,px,大きさWP,px,HP,pxを取得する。これは、図17を用いて上述した方法により実現される。 In step S3902, the layout printing tool, to acquire the position X P of the paper preview image 402, px, Y P, px, size W P, px, H P, the px. This is realized by the method described above with reference to FIG.

ステップS3903では、レイアウト印刷ツールは、
印刷画像の左上端点の座標値PI,LT(XI,LT,YI,LT)、
右上端点の座標値PI,RT(XI,RT,YI,RT)、
右下端点の座標値PI,RB(XI,RB,YI,RB)、
左下端点の座標値PI,LB(XI,LB,YI,LB)、
を取得する。これは、図38を用いて上述した方法により実現される。
In step S3903, the layout printing tool
Coordinate value P I, LT (X I, LT , Y I, LT ) of the upper left end point of the print image,
The coordinate value P I, RT (X I, RT , Y I, RT ) of the upper right end point,
Coordinate value P I, RB (X I, RB , Y I, RB ) of the lower right end point,
Coordinate value P I, LB (X I, LB , Y I, LB ) of the lower left end point,
To get. This is realized by the method described above with reference to FIG.

ステップS3904では、レイアウト印刷ツールは、印刷画像と印刷可能領域の交点、
IP,Top1,PIP,Top2,PIP,Rgt1,PIP,Rgt2,PIP,Btm1,PIP,Btm2,PIP,Lft1,PIP,Lft2
の座標値をそれぞれ取得する。これは、図38を用いて上述した方法により実現される。
In step S3904, the layout printing tool determines the intersection of the print image and the printable area,
P IP, Top1, P IP, Top2, P IP, Rgt1, P IP, Rgt2, P IP, Btm1, P IP, Btm2, P IP, Lft1, P IP, Lft2
Get the coordinate values of. This is realized by the method described above with reference to FIG.

ステップS3905では、レイアウト印刷ツールは、現在設定されている単位をチェックする。単位選択メニュー901で単位がインチに設定されていれば、レイアウト印刷ツールは、ステップS3906に進む。単位がミリメートルに設定されていれば、レイアウト印刷ツールは、ステップS3908に進む。   In step S3905, the layout printing tool checks the currently set unit. If the unit is set to inches in the unit selection menu 901, the layout printing tool proceeds to step S3906. If the unit is set to millimeters, the layout printing tool proceeds to step S3908.

ステップS3906では、レイアウト印刷ツールは、変数
I,LT,mm,YI,LT,mm,XI,RT,mm,YI,RT,mm,XI,RB,mm,YI,RB,mm,XI,LB,mm,YI,LB,mmへ、
I,LT,YI,LT,XI,RT,YI,RT,XI,RB,YI,RB,XI,LB,YI,LB
それぞれの単位を、インチからミリメートルに変換して代入する。レイアウト印刷ツールによる、インチからミリメートルへの変換は、インチ単位の値に25.4を掛け合わせることで実現される。
In step S3906, the layout printing tool, variables X I, LT, mm, Y I, LT, mm, X I, RT, mm, Y I, RT, mm, X I, RB, mm, Y I, RB, To mm , X I, LB, mm , Y I, LB, mm
X I, LT , Y I, LT , X I, RT , Y I, RT , X I, RB , Y I, RB , X I, LB , Y I, LB ,
Replace each unit by converting from inches to millimeters. The conversion from inch to millimeter by the layout printing tool is realized by multiplying the value in inches by 25.4.

ステップS3907では、レイアウト印刷ツールは、変数
IP,Top1,mm,YIP,Top1,mm,XIP,Top2,mm,YIP,Top2,mm,XIP,Rgt1,mm,YIP,Rgt1,mm,XIP,Rgt2,mm,YIP,Rgt2,mm,XIP,Btm1,mm,YIP,Btm1,mm,XIP,Btm2,mm,YIP,Btm2,mm,XIP,Lft1,mm,YIP,Lft1,mm,XIP,Lft2,mm,YIP,Lft2,mmへ、
IP,Top1,YIP,Top1,XIP,Top2,YIP,Top2,XIP,Rgt1,YIP,Rgt1,XIP,Rgt2,YIP,Rgt2,XIP,Btm1,YIP,Btm1,XIP,Btm2,YIP,Btm2,XIP,Lft1,YIP,Lft1,XIP,Lft2,YIP,Lft2
それぞれの単位を、インチからミリメートルに変換して代入する。レイアウト印刷ツールによる、インチからミリメートルへの変換は、インチ単位の値に25.4を掛け合わせることで実現される。
In step S3907, the layout printing tool, variable X IP, Top1, mm, Y IP, Top1, mm, X IP, Top2, mm, Y IP, Top2, mm, X IP, Rgt1, mm, Y IP, Rgt1, mm , X IP, Rgt2, mm , Y IP, Rgt2, mm , X IP, Btm1, mm , Y IP, Btm1, mm , X IP, Btm2, mm , Y IP, Btm2, mm , X IP, Lft1, mm , Y IP, Lft1, mm , X IP, Lft2, mm , Y IP, Lft2, mm
X IP, Top1, Y IP, Top1, X IP, Top2, Y IP, Top2, X IP, Rgt1, Y IP, Rgt1, X IP, Rgt2, Y IP, Rgt2, X IP, Btm1, Y IP, Btm1, X IP, Btm2 , Y IP, Btm2 , X IP, Lft1 , Y IP, Lft1 , X IP, Lft2 , Y IP, Lft2
Replace each unit by converting from inches to millimeters. The conversion from inch to millimeter by the layout printing tool is realized by multiplying the value in inches by 25.4.

ステップS3908では、レイアウト印刷ツールは、変数
I,LT,mm,YI,LT,mm,XI,RT,mm,YI,RT,mm,XI,RB,mm,YI,RB,mm,XI,LB,mm,YI,LB,mmへ、
I,LT,YI,LT,XI,RT,YI,RT,XI,RB,YI,RB,XI,LB,YI,LB
それぞれの値を代入する。
In step S3908, the layout printing tool, variables X I, LT, mm, Y I, LT, mm, X I, RT, mm, Y I, RT, mm, X I, RB, mm, Y I, RB, To mm , X I, LB, mm , Y I, LB, mm
X I, LT , Y I, LT , X I, RT , Y I, RT , X I, RB , Y I, RB , X I, LB , Y I, LB
Substitute each value.

ステップS3909では、レイアウト印刷ツールは、変数
IP,Top1,mm,YIP,Top1,mm,XIP,Top2,mm,YIP,Top2,mm,XIP,Rgt1,mm,YIP,Rgt1,mm,XIP,Rgt2,mm,YIP,Rgt2,mm,XIP,Btm1,mm,YIP,Btm1,mm,XIP,Btm2,mm,YIP,Btm2,mm,XIP,Lft1,mm,YIP,Lft1,mm,XIP,Lft2,mm,YIP,Lft2,mmへ、
IP,Top1,YIP,Top1,XIP,Top2,YIP,Top2,XIP,Rgt1,YIP,Rgt1,XIP,Rgt2,YIP,Rgt2,XIP,Btm1,YIP,Btm1,XIP,Btm2,YIP,Btm2,XIP,Lft1,YIP,Lft1,XIP,Lft2,YIP,Lft2
それぞれの値を代入する。
In step S3909, the layout printing tool, variable X IP, Top1, mm, Y IP, Top1, mm, X IP, Top2, mm, Y IP, Top2, mm, X IP, Rgt1, mm, Y IP, Rgt1, mm , X IP, Rgt2, mm , Y IP, Rgt2, mm , X IP, Btm1, mm , Y IP, Btm1, mm , X IP, Btm2, mm , Y IP, Btm2, mm , X IP, Lft1, mm , Y IP, Lft1, mm , X IP, Lft2, mm , Y IP, Lft2, mm
X IP, Top1, Y IP, Top1, X IP, Top2, Y IP, Top2, X IP, Rgt1, Y IP, Rgt1, X IP, Rgt2, Y IP, Rgt2, X IP, Btm1, Y IP, Btm1, X IP, Btm2 , Y IP, Btm2 , X IP, Lft1 , Y IP, Lft1 , X IP, Lft2 , Y IP, Lft2
Substitute each value.

ステップS3910では、レイアウト印刷ツールは、画像プレビューイメージ404の頂点の座標値を算出する。頂点の座標値は、それぞれ、
I,LT,px=XI,LT,mm×(WP,px/WP,mm)+XP,px
I,LT,px=YI,LT,mm×(HP,px/HP,mm)+YP,px
I,RT,px=XI,RT,mm×(WP,px/WP,mm)+XP,px
I,RT,px=YI,RT,mm×(HP,px/HP,mm)+YP,px
I,RB,px=XI,RB,mm×(WP,px/WP,mm)+XP,px
I,RB,px=YI,RB,mm×(HP,px/HP,mm)+YP,px
I,LB,px=XI,LB,mm×(WP,px/WP,mm)+XP,px
I,LB,px=YI,LB,mm×(HP,px/HP,mm)+YP,px
となる。
In step S3910, the layout printing tool calculates the coordinate value of the vertex of the image preview image 404. Each vertex coordinate value is
X I, LT, px = X I, LT, mm × (W P, px / W P, mm ) + X P, px
Y I, LT, px = Y I, LT, mm × (H P, px / H P, mm ) + Y P, px
X I, RT, px = X I, RT, mm × (W P, px / W P, mm ) + X P, px
Y I, RT, px = Y I, RT, mm × (H P, px / H P, mm ) + Y P, px
X I, RB, px = X I, RB, mm × (W P, px / W P, mm ) + X P, px
Y I, RB, px = Y I, RB, mm × (H P, px / H P, mm ) + Y P, px
X I, LB, px = X I, LB, mm × (W P, px / W P, mm ) + X P, px
Y I, LB, px = Y I, LB, mm × (H P, px / H P, mm ) + Y P, px
It becomes.

ステップS3911では、レイアウト印刷ツールは、画像プレビューイメージ404と、印刷可能領域線403との交点の座標値を算出する。交点の座標値は、それぞれ、
IP,Top1,px=XIP,Top1,mm×(WP,px/WP,mm)+XP,px
IP,Top1,px=YIP,Top1,mm×(HP,px/HP,mm)+YP,px
IP,Top2,px=XIP,Top2,mm×(WP,px/WP,mm)+XP,px
IP,Top2,px=YIP,Top2,mm×(HP,px/HP,mm)+YP,px
IP,Rgt1,px=XIP,Rgt1,mm×(WP,px/WP,mm)+XP,px
IP,Rgt1,px=YIP,Rgt1,mm×(HP,px/HP,mm)+YP,px
IP,Rgt2,px=XIP,Rgt2,mm×(WP,px/WP,mm)+XP,px
IP,Rgt2,px=YIP,Rgt2,mm×(HP,px/HP,mm)+YP,px
IP,Btm1,px=XIP,Btm1,mm×(WP,px/WP,mm)+XP,px
IP,Btm1,px=YIP,Btm1,mm×(HP,px/HP,mm)+YP,px
IP,Btm2,px=XIP,Btm2,mm×(WP,px/WP,mm)+XP,px
IP,Btm2,px=YIP,Btm2,mm×(HP,px/HP,mm)+YP,px
IP,Lft1,px=XIP,Lft1,mm×(WP,px/WP,mm)+XP,px
IP,Lft1,px=YIP,Lft1,mm×(HP,px/HP,mm)+YP,px
IP,Lft2,px=XIP,Lft2,mm×(WP,px/WP,mm)+XP,px
IP,Lft2,px=YIP,Lft2,mm×(HP,px/HP,mm)+YP,px
となる。
In step S3911, the layout printing tool calculates the coordinate value of the intersection of the image preview image 404 and the printable area line 403. The coordinate value of the intersection is
X IP, Top1, px = X IP, Top1, mm x (W P, px / W P, mm ) + X P, px
Y IP, Top1, px = YIP, Top1, mm × (H P, px / H P, mm ) + Y P, px
X IP, Top2, px = X IP, Top2, mm x (W P, px / W P, mm ) + X P, px
Y IP, Top2, px = YIP, Top2, mm × ( Hp , px / Hp , mm ) + Yp , px
X IP, Rgt1, px = X IP, Rgt1, mm x (W P, px / W P, mm ) + X P, px
Y IP, Rgt1, px = Y IP, Rgt1, mm x ( Hp , px / Hp , mm ) + Yp , px
X IP, Rgt2, px = X IP, Rgt2, mm x (W P, px / W P, mm ) + X P, px
Y IP, Rgt2, px = Y IP, Rgt2, mm x ( Hp , px / Hp , mm ) + Yp , px
X IP, Btm1, px = X IP, Btm1, mm x (W P, px / W P, mm ) + X P, px
Y IP, Btm1, px = Y IP, Btm1, mm x ( Hp , px / Hp , mm ) + Yp , px
X IP, Btm2, px = X IP, Btm2, mm x ( Wp , px / Wp , mm ) + Xp , px
Y IP, Btm2, px = Y IP, Btm2, mm x ( Hp , px / Hp , mm ) + Yp , px
X IP, Lft1, px = X IP, Lft1, mm x ( Wp , px / Wp , mm ) + Xp , px
Y IP, Lft1, px = YIP, Lft1, mm × ( Hp , px / Hp , mm ) + Yp , px
X IP, Lft2, px = X IP, Lft2, mm x (W P, px / W P, mm ) + X P, px
Y IP, Lft2, px = YIP, Lft2, mm × ( Hp , px / Hp , mm ) + Yp , px
It becomes.

図43は、上述したステップS1416に係る印刷画像サイズ表示406による描画の例を示す図である。図38〜図41に示される処理により、印刷画像の各辺について、印刷可能領域で分けられる各線分の長さ
I,Top1,LI,Top2,LI,Top3,LI,Rgt1,LI,Rgt2,LI,Rgt3,LI,Btm1,LI,Btm2,LI,Btm3,LI,Lft1,LI,Lft2,LI,Lft3
を取得することができる。
FIG. 43 is a diagram showing an example of drawing by the print image size display 406 according to step S1416 described above. The process shown in FIGS. 38 to 41, for each side of the print image, the length L I of the line segments is divided by the printable area, Top1, L I, Top2, L I, Top3, L I, Rgt1, L I, Rgt2 , L I, Rgt3 , L I, Btm1 , L I, Btm2 , L I, Btm3 , L I, Lft1 , L I, Lft2 , L I, Lft3
Can be obtained.

レイアウト印刷ツールは、取得した値を、図42に示される処理によって取得される、画像プレビューイメージ404の頂点の座標値や、画像プレビューイメージ404と印刷可能領域線403との交点の座標値に基づいて、プレビュー画面306に表示する。つまり、図43に示されるように、線を描画することで表示する値の示す領域を分かりやすくすることができる。   The layout printing tool uses the acquired value based on the coordinate value of the vertex of the image preview image 404 and the coordinate value of the intersection of the image preview image 404 and the printable area line 403 acquired by the process shown in FIG. Displayed on the preview screen 306. That is, as shown in FIG. 43, it is possible to easily understand the area indicated by the displayed value by drawing a line.

以上、上述した各実施形態によれば、実際に印刷されるオブジェクトの範囲や、印刷されないオブジェクトの範囲を、それぞれプレビュー画面上に、数値で表示することができる。また、これらの表示をリアルタイムに行なうことで、実際に印刷する際に、用紙上に印刷される画像や文字の範囲を、ユーザが容易且つ正確に把握することができるようになる。   As described above, according to each of the above-described embodiments, the range of objects that are actually printed and the range of objects that are not printed can be displayed numerically on the preview screen. Also, by performing these displays in real time, the user can easily and accurately grasp the range of images and characters printed on the paper when actually printing.

以上、本発明の好ましい実施形態について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。   The preferred embodiments of the present invention have been described in detail above, but the present invention is not limited to such specific embodiments, and various modifications can be made within the scope of the gist of the present invention described in the claims.・ Change is possible.

システムの概略を示した図である。It is the figure which showed the outline of the system. 基本的な処理の一例を示すフローチャートである。It is a flowchart which shows an example of a basic process. レイアウト印刷ツールのGUIの全体概要の一例を示す図である。It is a figure which shows an example of the whole outline | summary of GUI of a layout printing tool. 第一の実施形態におけるプレビュー画面306の詳細を示す図である。It is a figure which shows the detail of the preview screen 306 in 1st embodiment. プリンタタブ302が押下された際に設定ダイアログ301に表示されるGUIの一例を示す図である。FIG. 6 is a diagram illustrating an example of a GUI displayed on a setting dialog 301 when a printer tab 302 is pressed. 画像タブ303が押下された際に設定ダイアログ301に表示されるGUIの一例を示す図である。FIG. 6 is a diagram illustrating an example of a GUI displayed in a setting dialog 301 when an image tab 303 is pressed. 文字タブ304が押下された際に設定ダイアログ301に表示されるGUIの一例を示す図である。6 is a diagram illustrating an example of a GUI displayed in a setting dialog 301 when a character tab 304 is pressed. FIG. フォント選択ボタン702が押下された際に表示される、システムで用意されているフォント選択ダイアログの一例を示す図である。It is a figure which shows an example of the font selection dialog prepared by the system displayed when the font selection button 702 is pressed. 設定タブ305が押下された際に設定ダイアログ301に表示されるGUIの一例を示す図である。6 is a diagram illustrating an example of a GUI displayed on a setting dialog 301 when a setting tab 305 is pressed. FIG. 印刷画像の指定方法を説明するための図(その1)である。FIG. 5 is a diagram (part 1) for describing a method for specifying a print image; 印刷画像の指定方法を説明するための図(その2)である。FIG. 10 is a second diagram illustrating a method for specifying a print image. 印刷画像の指定方法を説明するための図(その3)である。FIG. 10 is a third diagram illustrating a method for specifying a print image. 中央配置ボタン602、左右中央配置ボタン603、上下中央配置ボタン604の何れかが押下されたときの処理の一例を示すフローチャートである。12 is a flowchart illustrating an example of processing when any of a center placement button 602, a left / right center placement button 603, and a vertical center placement button 604 is pressed. 外接フィットボタン605、内接フィットボタン606の何れかが押下されたときの処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process when either the circumscribed fit button 605 or the inscribed fit button 606 is pressed. 上述したステップS210に係る印刷用紙上の文字の描画領域をミリメートル単位で算出する際の手順を示すフローチャートである。It is a flowchart which shows the procedure at the time of calculating the drawing area of the character on the printing paper which concerns on step S210 mentioned above in a millimeter unit. 第一の実施形態における上述したステップS205に係るプレビュー表示を行なう際の処理の基本的な流れを表すフローチャートである。It is a flowchart showing the basic flow of the process at the time of performing the preview display which concerns on step S205 mentioned above in 1st embodiment. 用紙プレビューイメージ402の描画領域の位置XP,px,YP,px,大きさWP,px,HP,pxを取得する際の処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of processing when acquiring a position X P, px , Y P, px and a size W P, px , H P, px of a drawing area of a paper preview image 402; 印刷可能領域線403の描画領域の位置XR,px,YR,px,大きさWR,px,HR,pxを取得する際の処理の一例を示すフローチャートである。10 is a flowchart showing an example of processing when acquiring positions X R, px , Y R, px and sizes W R, px , H R, px of a drawing area of a printable area line 403; 画像プレビューイメージ404の描画領域の位置XI,px,YI,px,大きさWI,px,HI,pxを取得する際の処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of processing when acquiring positions X I, px , Y I, px and sizes W I, px , H I, px of a drawing area of an image preview image 404; 上述したステップS1401に係る背景イメージ401を描画する際の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of drawing the background image 401 which concerns on step S1401 mentioned above. 上述したステップS1402に係る用紙プレビューイメージ402を描画する際の処理の一例を示すフローチャートである。It is a flowchart showing an example of processing when drawing the paper preview image 402 according to step S1402 described above. 上述したステップS1403に係る画像プレビューイメージ404を描画する際の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of drawing the image preview image 404 concerning step S1403 mentioned above. 上述したステップS1404に係る文字プレビューイメージ405を描画する際の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of drawing the character preview image 405 which concerns on step S1404 mentioned above. 上述したステップS1405に係る印刷可能領域線403を描画する際の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of drawing the printable area | region line | wire 403 which concerns on step S1405 mentioned above. 第一の実施形態における印刷画像について、印刷可能領域内に含まれる範囲、及び印刷可能領域内に含まれない範囲の大きさを、それぞれ取得する際の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of each acquiring the magnitude | size of the range contained in the printable area | region, and the range not contained in a printable area | region about the print image in 1st embodiment. 第一の実施形態における印刷画像が印刷可能領域からはみ出して配置されている一例を示す図である。It is a figure which shows an example in which the print image in 1st embodiment has been arrange | positioned so that it may protrude from the printable area | region. 上述したステップS1416に係る印刷画像サイズ表示406を描画する際の処理の一例を示すフローチャートである。25 is a flowchart illustrating an example of processing when the print image size display 406 according to step S1416 described above is drawn. 第一の実施形態におけるプレビュー表示の一例を示す図である。It is a figure which shows an example of the preview display in 1st embodiment. 第二の実施形態におけるプレビュー画面306の詳細を示す図である。It is a figure which shows the detail of the preview screen 306 in 2nd embodiment. 第二の実施形態における上述したステップS205のプレビュー表示に係る処理の基本的な流れを表すフローチャートである。It is a flowchart showing the basic flow of the process which concerns on the preview display of step S205 mentioned above in 2nd embodiment. 印刷用紙上の文字描画領域について、印刷可能領域内に含まれる範囲及び印刷可能領域内に含まれない範囲の大きさを、それぞれ取得する際の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of each acquiring the magnitude | size of the range included in the printable area | region, and the range not included in a printable area | region about the character drawing area | region on printing paper. 第二の実施形態における印刷画像が印刷可能領域からはみ出して配置されている一例を示す図である。It is a figure which shows an example in which the print image in 2nd embodiment has been arrange | positioned and protruded from the printable area | region. 上述したステップS2807に係る印刷文字領域サイズ表示2701を描画する際の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of drawing the printing character area size display 2701 which concerns on step S2807 mentioned above. 第二の実施形態におけるプレビュー表示の一例を示す図である。It is a figure which shows an example of the preview display in 2nd embodiment. 第三の実施形態における印刷画像が印刷可能領域からはみ出して配置されている一例を示す図(その1)である。FIG. 10 is a diagram (part 1) illustrating an example in which a print image according to a third embodiment is arranged to protrude from a printable area. 第三の実施形態における印刷画像が印刷可能領域からはみ出して配置されている一例を示す図(その2)である。FIG. 10B is a diagram (part 2) illustrating an example in which a print image according to the third embodiment is disposed so as to protrude from a printable area. 第三の実施形態における印刷画像が印刷可能領域からはみ出して配置されている一例を示す図(その3)である。FIG. 10 is a third diagram illustrating an example in which a print image according to the third embodiment is arranged so as to protrude from a printable area. 印刷用紙上における、印刷画像の描画領域の頂点の座標値、及び印刷画像と印刷可能領域との交点の座標値を取得する際の処理の一例を示すフローチャートである。6 is a flowchart illustrating an example of processing when acquiring coordinate values of vertices of a drawing area of a print image and coordinate values of an intersection of a print image and a printable area on a print sheet. 上述したS3607に係る印刷画像の上辺と印刷可能領域の交点PIP,Top1,PIP,Top2の座標値を算出する際の、処理の一例を示すフローチャート(その1)である。In calculating the coordinate values of the intersection point P IP, Top1, P IP, Top2 of the upper side and the printable area of the print image according to S3607 described above, is a flow chart illustrating an example of a process (part 1). 上述したS3607に係る印刷画像の上辺と印刷可能領域の交点PIP,Top1,PIP,Top2の座標値を算出する際の、処理の一例を示すフローチャート(その2)である。FIG. 10 is a flowchart (part 2) illustrating an example of processing when calculating coordinate values of intersection points P IP, Top1 , P IP, Top2 of the upper side of the print image and the printable area according to S3607 described above. 第三の実施形態における印刷画像について、印刷可能領域内に含まれる範囲及び印刷可能領域内に含まれない範囲の大きさを、それぞれ取得する際の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of each acquiring the magnitude | size of the range included in the printable area | region, and the range not included in a printable area | region about the print image in 3rd embodiment. プレビュー画面306上における、画像プレビューイメージ404の頂点の座標値及び、画像プレビューイメージ404と、印刷可能領域線403との交点の座標値を取得する際の処理の一例を示すフローチャートである。12 is a flowchart illustrating an example of processing when acquiring coordinate values of vertices of an image preview image 404 and intersections of the image preview image 404 and the printable area line 403 on the preview screen 306. 上述したステップS1416に係る印刷画像サイズ表示406による描画の例を示す図である。It is a figure which shows the example of the drawing by the print image size display 406 which concerns on step S1416 mentioned above.

符号の説明Explanation of symbols

101 CPU
102 一次記憶
103 二次記憶
104 入力デバイス
105 出力デバイス
106 印刷デバイス
101 CPU
102 Primary storage 103 Secondary storage 104 Input device 105 Output device 106 Printing device

Claims (12)

印刷媒体上での印刷対象オブジェクトの配置を編集するレイアウト編集手段と、
前記レイアウト編集手段において編集された、印刷媒体上での印刷対象オブジェクトの配置を表示するレイアウトプレビュー表示手段と、
を有し、
前記レイアウトプレビュー表示手段は、
前記印刷対象オブジェクトが印刷媒体の印刷可能領域からはみ出て配置されていた場合、前記はみ出ている部分の大きさを示すサイズ情報と、印刷可能領域内に収まっている部分の大きさを示すサイズ情報と、を表示することを特徴とするレイアウト処理装置。
Layout editing means for editing the arrangement of objects to be printed on the print medium;
Layout preview display means for displaying an arrangement of objects to be printed on a print medium edited by the layout editing means;
Have
The layout preview display means includes
When the object to be printed is arranged so as to protrude beyond the printable area of the print medium, size information indicating the size of the protruding part and size information indicating the size of the part within the printable area And a layout processing apparatus.
前記レイアウト編集手段は、前記印刷可能領域を固定的に表示し、ユーザからの操作指示に応じて、前記印刷対象オブジェクトの配置を編集することを特徴とする請求項1に記載のレイアウト処理装置。   The layout processing apparatus according to claim 1, wherein the layout editing unit displays the printable area in a fixed manner and edits the arrangement of the print target object in accordance with an operation instruction from a user. 前記レイアウト編集手段は、ユーザからの操作指示に応じて、前記印刷対象オブジェクトを前記印刷可能領域からはみ出して配置可能なことを特徴とする請求項2に記載のレイアウト処理装置。   The layout processing apparatus according to claim 2, wherein the layout editing unit can arrange the print target object so as to protrude from the printable area in accordance with an operation instruction from a user. 前記レイアウトプレビュー表示手段は、用紙イメージを固定的に表示することを特徴とする請求項1乃至3の何れか1項に記載のレイアウト処理装置。   4. The layout processing apparatus according to claim 1, wherein the layout preview display unit displays a paper image in a fixed manner. 文字を入力する文字列入力手段を更に備え、
前記レイアウトプレビュー表示手段は、前記文字列入力手段において入力された文字列を、印刷対象オブジェクトとして表示することを特徴とする請求項1乃至4の何れか1項に記載のレイアウト処理装置。
It further comprises a character string input means for inputting characters,
5. The layout processing apparatus according to claim 1, wherein the layout preview display unit displays the character string input by the character string input unit as a print target object.
レイアウト処理装置におけるレイアウト処理方法であって、
印刷媒体上での印刷対象オブジェクトの配置を編集するレイアウト編集ステップと、
前記レイアウト編集ステップにおいて編集された、印刷媒体上での印刷対象オブジェクトの配置を表示するレイアウトプレビュー表示ステップと、
を有し、
前記レイアウトプレビュー表示ステップでは、
前記印刷対象オブジェクトが印刷媒体の印刷可能領域からはみ出て配置されていた場合、前記はみ出ている部分の大きさを示すサイズ情報と、印刷可能領域内に収まっている部分の大きさを示すサイズ情報と、を表示することを特徴とするレイアウト処理方法。
A layout processing method in a layout processing apparatus,
A layout editing step for editing the arrangement of objects to be printed on the print medium;
A layout preview display step for displaying an arrangement of objects to be printed on the print medium edited in the layout editing step;
Have
In the layout preview display step,
When the object to be printed is arranged so as to protrude beyond the printable area of the print medium, size information indicating the size of the protruding part and size information indicating the size of the part within the printable area And a layout processing method.
前記レイアウト編集ステップでは、前記印刷可能領域を固定的に表示し、ユーザからの操作指示に応じて、前記印刷対象オブジェクトの配置を編集することを特徴とする請求項6に記載のレイアウト処理方法。   The layout processing method according to claim 6, wherein, in the layout editing step, the printable area is fixedly displayed, and the arrangement of the print target object is edited in accordance with an operation instruction from a user. 前記レイアウト編集ステップでは、ユーザからの操作指示に応じて、前記印刷対象オブジェクトを前記印刷可能領域からはみ出して配置可能なことを特徴とする請求項7に記載のレイアウト処理方法。   The layout processing method according to claim 7, wherein, in the layout editing step, the print target object can be placed outside the printable area in accordance with an operation instruction from a user. 前記レイアウトプレビュー表示ステップでは、用紙イメージを固定的に表示することを特徴とする請求項6乃至8の何れか1項に記載のレイアウト処理方法。   9. The layout processing method according to claim 6, wherein in the layout preview display step, a paper image is fixedly displayed. 文字列入力ステップを更に備え、
前記レイアウトプレビュー表示ステップでは、前記文字列入力ステップにおいて入力された文字列を、印刷対象オブジェクトとして表示することを特徴とする請求項6乃至9の何れか1項に記載のレイアウト処理方法。
A character string input step;
10. The layout processing method according to claim 6, wherein in the layout preview display step, the character string input in the character string input step is displayed as a print target object.
請求項6乃至10の何れか1項に記載のレイアウト処理方法をコンピュータに実行させることを特徴とするプログラム。   A program for causing a computer to execute the layout processing method according to any one of claims 6 to 10. 請求項11に記載のプログラムを記憶したコンピュータ読み取り可能な記憶媒体。   A computer-readable storage medium storing the program according to claim 11.
JP2006021171A 2006-01-30 2006-01-30 Layout processing apparatus and layout processing method Active JP4799192B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006021171A JP4799192B2 (en) 2006-01-30 2006-01-30 Layout processing apparatus and layout processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006021171A JP4799192B2 (en) 2006-01-30 2006-01-30 Layout processing apparatus and layout processing method

Publications (2)

Publication Number Publication Date
JP2007200250A true JP2007200250A (en) 2007-08-09
JP4799192B2 JP4799192B2 (en) 2011-10-26

Family

ID=38454765

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006021171A Active JP4799192B2 (en) 2006-01-30 2006-01-30 Layout processing apparatus and layout processing method

Country Status (1)

Country Link
JP (1) JP4799192B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07114543A (en) * 1993-10-15 1995-05-02 Sharp Corp Document processor
JP2005078128A (en) * 2003-08-28 2005-03-24 Seiko Epson Corp Printing system, and data processing method for printing system, program and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07114543A (en) * 1993-10-15 1995-05-02 Sharp Corp Document processor
JP2005078128A (en) * 2003-08-28 2005-03-24 Seiko Epson Corp Printing system, and data processing method for printing system, program and storage medium

Also Published As

Publication number Publication date
JP4799192B2 (en) 2011-10-26

Similar Documents

Publication Publication Date Title
US4591904A (en) Picture image input/output system
JP3895492B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method
US8237976B2 (en) Image processing device and system, and computer readable medium therefor
JP2007280354A (en) Apparatus, method, and program for processing three-dimensional shape, recording medium, parts catalog system, parts catalog creation method and program
JP4904235B2 (en) Image processing apparatus, image processing method, program thereof, and storage medium
JP5264515B2 (en) Document editing apparatus and control method thereof
JP2007221186A (en) Thumbnail display for image data
JP5615021B2 (en) Image processing apparatus, image processing method, and program
JP4799192B2 (en) Layout processing apparatus and layout processing method
JP2002158851A (en) Picture processor, picture processing method and computer readable recording medium recording program for making computer to perform the method
JP2006088572A (en) Stereoscopic printing processing equipment and method and program for controlling the same
JP4630825B2 (en) Image processing apparatus and method
JP3974105B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method
JP2572622B2 (en) Device for creating original sheets for scanners
JP4799253B2 (en) Information processing apparatus and processing method thereof
JP4674123B2 (en) Image processing system and image processing method
JP2006252288A (en) Image forming device, preview display method and preview display method for image forming device, and print processing method
JP3654946B2 (en) Graphic copy method and form design system
JP2702138B2 (en) CAD system
JP3607913B2 (en) Image display device
JP2746373B2 (en) Paper container design system
JP3372300B2 (en) Electronic file device
JP3976856B2 (en) Image processing apparatus and method
JP5767574B2 (en) Image processing apparatus and image processing system
JP2786448B2 (en) Paper container design system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110426

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110613

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110802

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

Free format text: PAYMENT UNTIL: 20140812

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4799192

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20140812

Year of fee payment: 3