JP2015069360A - Program and information processor - Google Patents

Program and information processor Download PDF

Info

Publication number
JP2015069360A
JP2015069360A JP2013202434A JP2013202434A JP2015069360A JP 2015069360 A JP2015069360 A JP 2015069360A JP 2013202434 A JP2013202434 A JP 2013202434A JP 2013202434 A JP2013202434 A JP 2013202434A JP 2015069360 A JP2015069360 A JP 2015069360A
Authority
JP
Japan
Prior art keywords
print
file
image
data
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013202434A
Other languages
Japanese (ja)
Inventor
蕾 李
Lei Li
蕾 李
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2013202434A priority Critical patent/JP2015069360A/en
Publication of JP2015069360A publication Critical patent/JP2015069360A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a technique by which it is expected that an image file is generated in a suitable file format.SOLUTION: A printer driver 40 installed in a PC1 generates print data, and further generates an image file of the image corresponding to the print data. Then, the printer driver 40 determines whether or not the size of the print image data, the number of colors of the print image data, or the type of an object contained in the print image data satisfies preliminarily determined conditions. Then, the printer driver 40 changes the file format of the image file generated depending on whether or not the conditions are satisfied.

Description

本発明は,プログラムおよび情報処理装置に関する。さらに詳細には,用紙に印刷される画像に基づく画像ファイルを生成する機能を有するプログラムおよび情報処理装置に関するものである。   The present invention relates to a program and an information processing apparatus. More specifically, the present invention relates to a program and an information processing apparatus having a function of generating an image file based on an image printed on paper.

従来から,用紙に印刷される画像に基づく画像ファイルを生成する機能が知られている。画像ファイルを生成する機能は,例えば,情報処理装置から印刷装置に印刷データを送信する前に,プレビュー画像を表示する際に利用される。   Conventionally, a function for generating an image file based on an image printed on paper is known. The function of generating an image file is used, for example, when a preview image is displayed before print data is transmitted from the information processing apparatus to the printing apparatus.

前述した画像ファイルの生成に関する文献としては,例えば,特許文献1がある。この特許文献1には,プリンタドライバによってプレビュー用の画像ファイルを表示する技術として,印刷用に生成したEMFスプールファイルをプレビュー用の低解像度のビットマップに展開し,プレビューファイルを生成すること,プレビューファイルとしては,例えばハーフトーン前の多値データであってもハーフトーン後の二値データであってもよいことが開示されている。   For example, Patent Document 1 is a document relating to the generation of the image file described above. In this patent document 1, as a technique for displaying an image file for preview by a printer driver, an EMF spool file generated for printing is expanded into a low-resolution bitmap for preview, and a preview file is generated. It is disclosed that the file may be, for example, multi-value data before halftone or binary data after halftone.

特開2003−167701号公報JP 2003-167701 A

しかしながら,前記した従来の技術には,次のような問題があった。すなわち,印刷対象画像には,一般的に,文字,図形,写真などの様々なオブジェクトが含まれる。また,印刷対象画像の色数は,データの内容によって異なる。そのため,一律のファイル形式で画像ファイルを生成すると,データの内容によっては画像の劣化を伴う場合や,サイズの増大を招く場合がある。   However, the conventional technique described above has the following problems. That is, the print target image generally includes various objects such as characters, figures, and photographs. Further, the number of colors of the image to be printed varies depending on the data contents. For this reason, when an image file is generated in a uniform file format, the image may be deteriorated or the size may be increased depending on data contents.

本発明は,前記した従来の技術が有する問題点を解決するためになされたものである。すなわちその課題とするところは,好適なファイル形式での画像ファイルの生成が期待できる技術を提供することにある。   The present invention has been made to solve the above-described problems of the prior art. That is, the problem is to provide a technique that can be expected to generate an image file in a suitable file format.

この課題の解決を目的としてなされたプログラムは,印刷対象画像のデータである印刷画像データに基づいて,印刷用のデータである印刷データを生成する印刷データ生成処理と,印刷画像データのサイズまたは印刷画像データの色数または印刷画像データに含まれるオブジェクトの種類があらかじめ決められた条件を満たすか否かを判断する判断処理と,前記印刷データ生成処理にて生成された印刷データに対応する画像の画像ファイルを,前記判断処理にて肯定判断された場合と否定判断された場合とで,異なるファイル形式で生成する画像ファイル生成処理とを,情報処理装置に実行させることを特徴としている。   A program designed to solve this problem includes a print data generation process that generates print data that is print data based on print image data that is data of a print target image, and the size or print of the print image data. A determination process for determining whether the number of colors of the image data or the type of object included in the print image data satisfies a predetermined condition, and an image corresponding to the print data generated by the print data generation process The information processing apparatus is configured to execute an image file generation process for generating an image file in a different file format depending on whether an affirmative determination is made or not in the determination process.

本明細書に開示されるプログラムは,印刷データに対応する画像の画像ファイルを生成する。画像ファイルとしては,例えば,プレビュー用のプレビューファイルや,印刷ログ用のログファイルが該当する。そして,プログラムは,印刷画像データのサイズまたは印刷画像データの色数または印刷画像データに含まれるオブジェクトの種類があらかじめ決められた条件を満たす場合と,満たさない場合とで,異なるファイル形式の画像ファイルを生成する。ファイル形式としては,例えば,BMP,JPEG,PNG,GIF,TIFFが該当する。   The program disclosed in this specification generates an image file of an image corresponding to print data. Examples of the image file include a preview file for preview and a log file for print log. Then, the program reads the image file with different file formats depending on whether the size of the print image data, the number of colors of the print image data, or the type of the object included in the print image data satisfies the predetermined condition. Is generated. Examples of the file format include BMP, JPEG, PNG, GIF, and TIFF.

例えば,JPEG方式は,圧縮率が高くサイズが小さくなる傾向にあるが,不可逆圧縮方式を採用しており,データの欠損が生じる可能性がある。PNG方式は,JPEGが苦手とされる図形の圧縮に向いていることが知られている。また,BMP形式は,非圧縮のファイル形式であり,データの欠損は生じないが,サイズが大きくなる傾向にある。このようにファイル形式によってその特性が異なる。このことから,本明細書に開示されるプログラムでは,印刷画像データのサイズ,印刷画像データの色数,または印刷画像データに含まれるオブジェクトの種類によって,画像ファイルのファイル形式を変える。これにより,印刷データの内容に適した画像ファイルの生成が期待できる。   For example, the JPEG method tends to have a high compression rate and a small size, but employs an irreversible compression method, and data loss may occur. The PNG method is known to be suitable for compression of figures that JPEG is not good at. The BMP format is an uncompressed file format, and no data loss occurs, but the size tends to increase. In this way, the characteristics differ depending on the file format. Therefore, in the program disclosed in this specification, the file format of the image file is changed depending on the size of the print image data, the number of colors of the print image data, or the type of object included in the print image data. As a result, generation of an image file suitable for the contents of the print data can be expected.

また,前記画像ファイル生成処理では,圧縮方式が異なる少なくとも2種類のファイル形式の画像ファイルを生成可能であり,前記条件を,印刷画像データの色数が第1色基準値より多いこととし,前記判断処理にて印刷画像データの色数が前記第1色基準値より多いと判断された場合に,前記判断処理にて印刷画像データの色数が前記第1色基準値より多くないと判断された場合と比較して,より圧縮されるファイル形式の画像ファイルを生成するとよい。色数が多い画像ファイルは,サイズが大きくなる傾向にある。サイズが大きいと生成や読み出しに時間がかかるため,より圧縮されるファイル形式を採用し,サイズを小さくする方が好ましい。なお,本構成では,一方のファイル形式が他方よりもより圧縮されるファイル形式であればよく,当該他方のファイル形式は,非圧縮のファイル形式であってもよい。   In the image file generation process, it is possible to generate image files of at least two types of file formats having different compression methods, and the condition is that the number of colors of the print image data is greater than the first color reference value. If it is determined in the determination process that the number of colors of the print image data is greater than the first color reference value, the determination process determines that the number of colors of the print image data is not greater than the first color reference value. Compared to the case, it is better to generate an image file with a more compressed file format. Image files with a large number of colors tend to be large. If the size is large, it takes time to generate and read, so it is preferable to adopt a more compressed file format and reduce the size. In this configuration, one file format may be a file format that is more compressed than the other, and the other file format may be an uncompressed file format.

また,前記画像ファイル生成処理では,圧縮方式が異なる少なくとも2種類のファイル形式の画像ファイルを生成可能であり,前記条件を,印刷画像データに写真画像が含まれることとし,前記判断処理にて印刷画像データに写真画像が含まれると判断された場合に,JPEG形式の画像ファイルを生成し,前記判断処理にて印刷画像データに写真画像が含まれないと判断された場合に,JPEG形式以外の画像ファイルを生成するとよい。写真画像を含む画像ファイルは,サイズが大きくなる傾向にある。そのため,写真画像の圧縮に好適なJPEG形式の画像ファイルを生成する方が好ましい。   Further, in the image file generation process, it is possible to generate image files of at least two types of file formats with different compression methods, and the condition is that the print image data includes a photographic image, and printing is performed in the determination process. When it is determined that a photographic image is included in the image data, an image file in JPEG format is generated. When it is determined in the determination process that the photographic image is not included in the print image data, a file other than the JPEG format is generated. An image file should be generated. Image files containing photographic images tend to be large. Therefore, it is preferable to generate a JPEG format image file suitable for photographic image compression.

また,本明細書に開示されるプログラムは,前記判断処理にて肯定判断された場合に,前記画像ファイル生成処理にて生成された画像ファイルの画像が劣化している可能性がある旨を通知する通知処理を,前記情報処理装置に実行させるとよい。JPEG形式等の圧縮率が高いファイル形式では,圧縮前の画像と一致しない可能性がある。そのため,画質が劣化している可能性をユーザに通知することで,実際に出力される画像と画質が異なった場合のユーザの不安を低減できる。   In addition, the program disclosed in the present specification notifies that there is a possibility that the image of the image file generated by the image file generation process may be deteriorated when an affirmative determination is made in the determination process. The information processing apparatus may execute the notification process to be performed. A file format having a high compression rate such as the JPEG format may not match the image before compression. Therefore, by notifying the user of the possibility that the image quality has deteriorated, it is possible to reduce the user's anxiety when the image quality differs from the actually output image.

また,前記画像ファイル生成処理では,前記条件を,印刷画像データのサイズがサイズ基準値よりも小さいこととし,前記判断処理にて印刷画像データのサイズが前記サイズ基準値より小さいと判断された場合に,印刷画像データと同ファイル形式の画像ファイルを生成し,前記判断処理にて印刷画像データのサイズが前記サイズ基準値より小さくないと判断された場合に,印刷画像データよりもサイズが小さくなるファイル形式の画像ファイルを生成するとよい。サイズを小さくする方法としては,1ピクセルあたりの情報量を減らす,データを圧縮する等の方法が適用可能である。データのサイズが小さい場合には,生成や読み出しにかかる時間は短い。そのため,印刷画像データのサイズが小さい場合には,画像ファイルを印刷画像データと同ファイル形式とし,画像劣化のリスクを低減する方が好ましい。   In the image file generation process, the condition is that the size of the print image data is smaller than a size reference value, and the size of the print image data is determined to be smaller than the size reference value in the determination process. In addition, when an image file having the same file format as the print image data is generated and the size of the print image data is determined not to be smaller than the size reference value in the determination process, the size is smaller than the print image data. A file format image file should be generated. As a method for reducing the size, methods such as reducing the amount of information per pixel and compressing data can be applied. When the data size is small, the time required for generation and reading is short. For this reason, when the size of the print image data is small, it is preferable to reduce the risk of image degradation by setting the image file in the same file format as the print image data.

また,前記印刷データ生成処理では,ビットマップ形式の印刷画像データに基づいて,印刷データを生成し,前記画像ファイル生成処理では,前記条件を,印刷画像データの色数が第2色基準値より少ないこととし,前記判断処理にて印刷画像データの色数が前記第2色基準値より少ないと判断された場合に,1ピクセルあたりの色表現に必要なビット数が印刷画像データより少ないビットマップファイルを生成し,前記判断処理にて印刷画像データの色数が前記第2色基準値より少なくないと判断された場合に,当該ビットマップファイルのファイル形式以外のファイル形式の画像ファイルを生成するとよい。印刷画像データの色数が少ない場合には,1ピクセルあたりの色表現に必要なビット数を減らしても画像情報の欠損は生じ難い。そのため,1ピクセルあたりの色表現に必要なビット数が印刷画像データより少ないビットマップを採用し,画像情報を欠損させることなくサイズを小さくする方が好ましい。なお,第2色基準値は,前述した第1色基準値よりも小さい値である。   In the print data generation process, print data is generated on the basis of bitmap format print image data. In the image file generation process, the condition is set such that the number of colors of the print image data is greater than the second color reference value. If the number of colors of the print image data is determined to be smaller than the second color reference value in the determination process, the bit map required for color expression per pixel is smaller than the print image data. A file is generated, and when it is determined in the determination process that the number of colors of the print image data is not less than the second color reference value, an image file having a file format other than the file format of the bitmap file is generated. Good. When the number of colors of the print image data is small, the loss of image information hardly occurs even if the number of bits necessary for color expression per pixel is reduced. For this reason, it is preferable to employ a bitmap that requires fewer bits per color representation than the print image data and to reduce the size without losing image information. Note that the second color reference value is smaller than the first color reference value described above.

また,前記判断処理では,印刷データを印刷するシート単位で,前記条件を満たすか否かを判断し,前記画像ファイル生成処理では,前記シート単位で別ファイルの画像ファイルを生成するとよい。印刷データは,ページごとに色数やオブジェクトの内容が異なることが想定される。そのため,ページ単位でファイル形式を決定する方が好ましい。   In the determination process, it is preferable to determine whether or not the condition is satisfied in units of sheets on which print data is printed. In the image file generation process, an image file of another file may be generated in units of sheets. The print data is assumed to have different numbers of colors and object contents for each page. For this reason, it is preferable to determine the file format in units of pages.

また,前記判断処理では,印刷データを生成する際の印刷設定が,1つの論理ページを複数のシートに割り付ける設定の場合に,前記複数のシート単位で,前記条件を満たすか否かを判断し,前記画像ファイル生成処理では,前記複数のシート単位で判断した場合に,1つの論理ページが割り付けられる前記複数のシート全てで共通のファイル形式の画像ファイルを生成とよい。ポスター印刷のように1つの論理ページを複数のシートに割り付けて印刷する場合,シート間で見栄えが異なるとユーザに画質が低下したかのような誤解を与える可能性がある。そのため,1つの論理ページを複数のシートに割り付けて印刷する場合には,それら複数のシートで共通のファイル形式を採用し,見栄えを統一する方が好ましい。   In the determination process, if the print setting when generating the print data is a setting for allocating one logical page to a plurality of sheets, it is determined whether or not the condition is satisfied for each of the plurality of sheets. In the image file generation process, it is preferable to generate an image file having a common file format for all of the plurality of sheets to which one logical page is allocated when the determination is made in units of the plurality of sheets. When printing by assigning a single logical page to a plurality of sheets as in poster printing, there is a possibility that the user will misunderstand that the image quality has deteriorated if the appearance differs between sheets. Therefore, when allocating and printing one logical page to a plurality of sheets, it is preferable to adopt a common file format for the plurality of sheets and unify the appearance.

また,本明細書には,印刷装置と通信する通信部と,制御部とを備え,前記制御部は,印刷対象画像のデータである印刷画像データに基づいて,印刷用のデータである印刷データを生成する印刷データ生成処理と,印刷画像データのサイズまたは印刷画像データの色数または印刷画像データに含まれるオブジェクトの種類があらかじめ決められた条件を満たすか否かを判断する判断処理と,前記印刷データ生成処理にて生成された印刷データに対応する画像の画像ファイルを,前記判断処理にて肯定判断された場合と否定判断された場合とで,異なるファイル形式で生成する画像ファイル生成処理と,前記印刷データ生成処理にて生成された印刷データを,前記通信部を介して前記印刷装置に送信する送信処理とを実行すること特徴とする情報処理装置が開示されている。   Further, the present specification includes a communication unit that communicates with a printing apparatus, and a control unit, and the control unit print data that is data for printing based on print image data that is data of an image to be printed. Print data generation processing for generating image data, determination processing for determining whether the size of the print image data, the number of colors of the print image data, or the type of the object included in the print image data satisfies a predetermined condition, An image file generation process for generating an image file of an image corresponding to the print data generated in the print data generation process in a different file format depending on whether the determination is affirmative or negative in the determination process; And a transmission process for transmitting the print data generated in the print data generation process to the printing apparatus via the communication unit. Processing apparatus is disclosed.

本発明によれば,好適なファイル形式での画像ファイルの生成が期待できるプログラムおよび情報処理装置が実現される。   According to the present invention, a program and an information processing apparatus that can be expected to generate an image file in a suitable file format are realized.

実施の形態に係るプリントシステムの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a print system according to an embodiment. パーソナルコンピュータ(PC)に組み込まれたプログラムの構成を示すブロック図である。It is a block diagram which shows the structure of the program integrated in the personal computer (PC). プレビュー画面の構成を示す図である。It is a figure which shows the structure of a preview screen. 実施の形態に係るプリンタドライバの印刷処理の手順を示すフローチャートである。6 is a flowchart illustrating a print processing procedure of the printer driver according to the embodiment. ポスター印刷時における印刷処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the printing process at the time of poster printing. 実施の形態に係るプレビューアのプレビュー読出処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the preview read-out process of the previewer which concerns on embodiment. JPEG形式のプレビューファイルを読み出した際の,プレビュー画面の構成を示す図である。It is a figure which shows the structure of a preview screen at the time of reading the preview file of a JPEG format. JPEG形式のプレビューファイルを選択した際の,プレビューアの構成を示す図である。It is a figure which shows the structure of a previewer when a JPEG format preview file is selected.

以下,本発明にかかるプログラムおよび情報処理装置を具体化した実施の形態について,添付図面を参照しつつ詳細に説明する。   DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments embodying a program and an information processing apparatus according to the present invention will be described below in detail with reference to the accompanying drawings.

本形態のプリントシステム100は,図1に示すように,プリンタ2と,プリンタ2を制御するパーソナルコンピュータ(PC)1とを備えている。プリントシステム100では,PC1とプリンタ2とがUSBケーブルを介して接続されている。PC1は,情報処理装置の一例である。プリンタ2は,印刷装置の一例である。   As shown in FIG. 1, the printing system 100 according to this embodiment includes a printer 2 and a personal computer (PC) 1 that controls the printer 2. In the print system 100, the PC 1 and the printer 2 are connected via a USB cable. The PC 1 is an example of an information processing apparatus. The printer 2 is an example of a printing apparatus.

なお,プリントシステム100を構成するプリンタおよびPCは各1台に限るものではなく,それぞれ複数台接続してもよい。また,PC1とプリンタ2との接続は,USBケーブルに限らず,その他のシリアル通信ケーブル,パラレル通信ケーブル,有線LANケーブル,さらには無線LAN等の無線通信経路であってもよい。   Note that the number of printers and PCs constituting the printing system 100 is not limited to one, and a plurality of printers and PCs may be connected. Further, the connection between the PC 1 and the printer 2 is not limited to the USB cable, but may be another serial communication cable, a parallel communication cable, a wired LAN cable, or a wireless communication path such as a wireless LAN.

PC1は,各種処理を実行するCPU11と,当該PC1の起動時にCPU11が行う起動処理のプログラム(BIOS)等を記憶したROM12と,CPU11が各種処理を行う際に一時的な記憶領域として利用されるRAM13と,各種のプログラムやデータを記憶したハードディスクドライブ(HDD)14とを有するコントローラ30を備えている。なお,図1中のコントローラ30は,CPU11等,PC1の制御に利用されるハードウェアを纏めた総称であって,実際にPC1に存在する単一のハードウェアと表すとは限らない。CPU11は,制御部の一例である。なお,コントローラ30が制御部であってもよい。   The PC 1 is used as a temporary storage area when the CPU 11 that executes various processes, a ROM 12 that stores a program (BIOS) of a startup process performed by the CPU 11 when the PC 1 is started, and the CPU 11 performs various processes. A controller 30 having a RAM 13 and a hard disk drive (HDD) 14 storing various programs and data is provided. Note that the controller 30 in FIG. 1 is a collective term for the hardware used for controlling the PC 1 such as the CPU 11 and is not necessarily represented as a single piece of hardware that actually exists in the PC 1. The CPU 11 is an example of a control unit. The controller 30 may be a control unit.

また,PC1は,キーボードやマウス等からなる入力部15と,液晶ディスプレイ等からなる表示部16と,USBインターフェース17と,ネットワークインターフェース18とを有している。USBインターフェース17はUSBケーブルを介して接続された装置と通信を行うためのハードウェアである。ネットワークインターフェース18はLANケーブルを介して接続された装置と通信を行うためのハードウェアである。   The PC 1 includes an input unit 15 including a keyboard and a mouse, a display unit 16 including a liquid crystal display, a USB interface 17, and a network interface 18. The USB interface 17 is hardware for communicating with a device connected via a USB cable. The network interface 18 is hardware for communicating with a device connected via a LAN cable.

なお,図1中のコントローラ30は,CPU等,プリンタの制御に利用されるハードウェアを纏めた総称であって,実際にプリンタに存在する単一のハードウェアと表すとは限らない。CPUは,制御部の一例である。なお,コントローラ30が制御部であってもよい。   Note that the controller 30 in FIG. 1 is a collective term for hardware such as a CPU that is used for controlling the printer, and is not necessarily represented as a single piece of hardware that actually exists in the printer. The CPU is an example of a control unit. The controller 30 may be a control unit.

USBインターフェース17はUSBケーブルを介して接続された装置と通信を行うためのハードウェアである。ネットワークインターフェース18はLANケーブルを介して接続された装置と通信を行うためのハードウェアである。   The USB interface 17 is hardware for communicating with a device connected via a USB cable. The network interface 18 is hardware for communicating with a device connected via a LAN cable.

PC1のHDD14には,図2に示すように,オペレーティングシステム(OS)50と,アプリケーションプログラム61(文書作成ソフト,作図ソフト,表計算ソフト,写真データ編集ソフト等)と,プリンタ2を制御するプリンタドライバ40とが記憶されている。プリンタドライバ40は,プログラムの一例である。なお,各種プログラムはCD−ROMなどの記憶媒体に記憶されているものをインストールしてもよいし,ネットワーク上のサーバに記憶されているものをダウンロードしてインストールしてもよい。   As shown in FIG. 2, the HDD 14 of the PC 1 includes an operating system (OS) 50, an application program 61 (document creation software, drawing software, spreadsheet software, photo data editing software, etc.), and a printer that controls the printer 2. The driver 40 is stored. The printer driver 40 is an example of a program. Various programs stored in a storage medium such as a CD-ROM may be installed, or programs stored in a server on the network may be downloaded and installed.

PC1に組み込まれたアプリケーションプログラム61は,プリンタドライバ40に印刷指令を出力する機能を備えており,この機能によって原稿画像の画像データがプリンタドライバ40に渡される。プリンタドライバ40は,アプリケーションプログラム61から渡された画像データに基づいて,プリンタ2で印刷するために必要なPDL形式の印刷データを生成する。プリンタドライバ40が作成した印刷データは,USBインターフェース17を経由してプリンタ2へと送信される。   The application program 61 incorporated in the PC 1 has a function of outputting a print command to the printer driver 40, and the image data of the original image is passed to the printer driver 40 by this function. The printer driver 40 generates print data in PDL format necessary for printing by the printer 2 based on the image data passed from the application program 61. The print data created by the printer driver 40 is transmitted to the printer 2 via the USB interface 17.

プリンタ2は,用紙に画像を形成する機能を有していればよく,その画像形成方式は,電子写真方式,インクジェット方式,その他の一般的な画像形成方式を採用していればよい。また,カラー画像及びモノクロ画像の画像形成が可能であっても,モノクロ画像のみの画像形成が可能であってもよい。   The printer 2 only needs to have a function of forming an image on a sheet, and the image forming method may be an electrophotographic method, an ink jet method, or another general image forming method. Further, even if a color image and a monochrome image can be formed, only a monochrome image may be formed.

また,本形態のプリンタドライバ40は,用紙に印刷される印刷データに対応する画像の画像ファイルであるプレビューファイルを生成し,そのプレビューファイルを表示するプレビュー機能を有している。また,本形態のプリンタドライバ40は,プレビュー機能を利用するか否かの設定を行う機能を有している。   The printer driver 40 according to the present embodiment has a preview function for generating a preview file that is an image file of an image corresponding to print data to be printed on paper, and displaying the preview file. The printer driver 40 of this embodiment has a function for setting whether to use the preview function.

具体的に,本形態のプリンタドライバ40は,プレビュー機能を使用する場合,印刷データに加え,その印刷データに対応するプレビューファイルを生成し,プレビューア42を起動する。そして,プレビューア42にプレビューファイルを表示させる。一方,プレビュー機能を使用しない場合には,プレビューファイルを生成せず,プレビューア42を起動することなく,印刷データを生成してプリンタ2に送信する。プリンタドライバ40の詳細については後述する。   Specifically, when using the preview function, the printer driver 40 of this embodiment generates a preview file corresponding to the print data in addition to the print data, and starts the previewer 42. Then, the preview file is displayed on the previewer 42. On the other hand, when the preview function is not used, print data is generated and transmitted to the printer 2 without generating a preview file and without starting the previewer 42. Details of the printer driver 40 will be described later.

なお,本明細書におけるプレビュー機能は,アプリケーションプログラム61が具備している機能ではなく,前述したようにプリンタドライバ40が具備する機能である。2in1等の集約印刷やウォータマークの付与等の加工は,プリンタドライバ40が印刷データを生成する際に行うこともあり,プリンタドライバ40が行う加工はアプリケーションプログラム61によるプレビューでは反映されない。一方,プリンタドライバ40によるプレビューは,プリンタドライバ40が行う加工を反映したプレビューファイルを表示できる。そのため,プリンタドライバ40によるプレビューは,アプリケーションプログラム61によるプレビューと比較して,用紙に印刷される画像イメージをより正確に表示できる利点がある。   The preview function in this specification is not a function provided in the application program 61 but a function provided in the printer driver 40 as described above. Processing such as 2-in-1 integrated printing and watermarking may be performed when the printer driver 40 generates print data, and the processing performed by the printer driver 40 is not reflected in the preview by the application program 61. On the other hand, the preview by the printer driver 40 can display a preview file reflecting the processing performed by the printer driver 40. Therefore, the preview by the printer driver 40 has an advantage that the image image printed on the paper can be displayed more accurately than the preview by the application program 61.

[プリンタドライバの構成]
続いて,プリンタドライバ40の構成について,図2を参照しつつ説明する。なお,PC1には,オペレーティングシステム(OS)50として,Microsoft Windows(登録商標)が組み込まれているものとする。
[Configuration of printer driver]
Next, the configuration of the printer driver 40 will be described with reference to FIG. The PC 1 is assumed to incorporate Microsoft Windows (registered trademark) as the operating system (OS) 50.

プリンタドライバ40は,印刷ジョブの各種設定に関するユーザ入力を可能にするユーザインターフェースドライバ41と,印刷イメージを表示部16に表示するプレビューア42と,印刷データおよびプレビューファイルを生成するプリンタグラフィックスドライバ43とを有している。   The printer driver 40 includes a user interface driver 41 that enables user input regarding various settings of a print job, a previewer 42 that displays a print image on the display unit 16, and a printer graphics driver 43 that generates print data and a preview file. And have.

具体的に,ユーザインターフェースドライバ41は,印刷の際の各種の属性をユーザに設定させる印刷設定画面を提供する。印刷設定画面では,用紙サイズ,用紙種類,印刷品質,印刷向き等の,一般的な印刷設定の他,プレビュー機能を利用するか否かの設定や,1つの論理ページの画像を複数枚の用紙に割り付けて印刷するポスター印刷を行うか否かの設定を行うことが可能である。また,ユーザインターフェースドライバ41は,プレビュー機能を利用する場合に,プレビューア42を起動する機能を有している。   Specifically, the user interface driver 41 provides a print setting screen that allows the user to set various attributes at the time of printing. On the print setting screen, in addition to general print settings such as paper size, paper type, print quality, and print orientation, settings for whether to use the preview function, and images of one logical page are displayed on multiple sheets of paper. It is possible to set whether or not to perform poster printing that is assigned to and printed. The user interface driver 41 has a function of starting the previewer 42 when using the preview function.

プレビューア42は,図3に示すようなプレビュー画面420を表示する。プレビュー画面420は,前述した印刷設定画面でユーザにより選択された印刷設定を反映した用紙1面分に相当するプレビューファイルを表示するイメージ領域421と,表示対象のページを選択するページ選択領域422と,印刷指示を受け付ける印刷実行ボタン423と,印刷ジョブを中止するキャンセルボタン424とを有している。   The previewer 42 displays a preview screen 420 as shown in FIG. The preview screen 420 includes an image area 421 for displaying a preview file corresponding to one sheet of paper reflecting the print setting selected by the user on the print setting screen described above, and a page selection area 422 for selecting a display target page. , A print execution button 423 for receiving a print instruction, and a cancel button 424 for canceling the print job.

ページ選択領域422中で,イメージ領域421に表示中のページ番号には,下線が表示される。これにより,ユーザは,イメージ領域421に表示中のページ番号を把握できる。また,ページ選択領域422には,プレビューファイルが生成された数分のページ番号が表示され,ユーザは,印刷ジョブを構成する総ページ数を把握できる。   In the page selection area 422, the page number being displayed in the image area 421 is underlined. Thereby, the user can grasp the page number being displayed in the image area 421. The page selection area 422 displays the number of page numbers corresponding to the number of generated preview files, and the user can grasp the total number of pages constituting the print job.

印刷実行ボタン423が押下されると,プレビューア42はプレビューファイルに対応する印刷データをプリンタ2に送信する。一方,キャンセルボタン424が押下されると,プレビューア42はプレビューファイルを消去する。そして,印刷実行ボタン423あるいはキャンセルボタン424が押下されると,プレビューア42が終了する。   When the print execution button 423 is pressed, the previewer 42 transmits print data corresponding to the preview file to the printer 2. On the other hand, when the cancel button 424 is pressed, the previewer 42 deletes the preview file. When the print execution button 423 or the cancel button 424 is pressed, the previewer 42 ends.

プリンタグラフィックスドライバ43は,印刷対象となる画像データの加工処理や,加工処理が反映された画像データに基づく,物理用紙単位のプレビューファイルの生成処理や,加工処理が反映された画像データに基づく,物理用紙単位の印刷データの生成処理を行う。加工処理としては,例えば,ウォータマーク,ヘッダー,フッター等の合成,拡大,縮小等の倍率変更,画像回転,2in1,4in1等の集約,ポスター印刷用の分割等の,印刷設定画面で選択される印刷設定に対応する処理が該当する。   The printer graphics driver 43 is based on processing of image data to be printed, generation of a preview file in units of physical paper based on image data reflecting the processing, and image data reflecting the processing. Then, print data generation processing in units of physical paper is performed. The processing is selected on the print setting screen, for example, composition of watermark, header, footer, etc., magnification change such as enlargement or reduction, image rotation, aggregation of 2in1, 4in1, etc., division for poster printing, etc. This corresponds to the processing corresponding to the print setting.

プレビューファイルのファイル形式は,プレビューア42で表示できるファイル形式であればよく,本形態では印刷対象画像の内容に応じて選択される。選択されるファイル形式としては,ビットマップ(BMP)形式と,JPEG形式と,PNG形式とがある。また,BMP形式については,さらにモノクロBMP,16色BMP,256色BMP,24ビットBMPが選択可能である。   The file format of the preview file may be any file format that can be displayed by the previewer 42, and is selected according to the contents of the image to be printed in this embodiment. The selected file format includes a bitmap (BMP) format, a JPEG format, and a PNG format. As for the BMP format, monochrome BMP, 16-color BMP, 256-color BMP, and 24-bit BMP can be selected.

[印刷プレビュー方式]
続いて,印刷プレビュー方式について説明する。本形態のプリントシステム100では,前述したようにプレビュー表示を行って印刷を行う方法である印刷プレビュー方式と,プレビュー表示を行わずに印刷を行う方法である直接印刷方式とがある。このうち,直接印刷方式は,一般的な印刷方式であり,説明を省略する。以下,印刷プレビュー方式での印刷手順について説明する。
[Print preview method]
Next, the print preview method will be described. As described above, the print system 100 according to the present embodiment includes a print preview method that is a method for performing printing by performing a preview display and a direct printing method that is a method for performing printing without performing a preview display. Of these, the direct printing method is a general printing method, and a description thereof will be omitted. A printing procedure using the print preview method will be described below.

印刷プレビュー方式にて印刷を行う場合には,先ず,アプリケーションプログラム61がユーザからの印刷指示を受け付け,印刷開始通知を出力する。そして,OS50がアプリケーションプログラム61からその印刷開始通知を受け付け,アプリケーションプログラム61から画像データの取得を開始する。   When printing is performed by the print preview method, first, the application program 61 receives a print instruction from the user and outputs a print start notification. Then, the OS 50 receives the print start notification from the application program 61 and starts acquiring image data from the application program 61.

そして,OS50は,取得した画像データに基づいてプリンタグラフィックスドライバ43に対して描画命令を出力する。OS50は,描画命令を出力した後は,プリンタグラフィックスドライバ43が応答するまで待機する。   Then, the OS 50 outputs a drawing command to the printer graphics driver 43 based on the acquired image data. After outputting the drawing command, the OS 50 waits until the printer graphics driver 43 responds.

プリンタグラフィックスドライバ43は,描画命令を受け付けると,その描画命令に従ってビットマップ形式の画像データを生成し,必要に応じてその画像データに画像回転等の加工を行う。さらに画像データに基づいて,印刷用の印刷データと,プレビューア42用のプレビューファイルとを生成する。プレビューファイルには,印刷対象となる画像データの他,ページ番号の情報等が記憶される。プリンタグラフィックスドライバ43は,プレビューファイルの生成が完了すると,終了をOS50に応答する。プリンタドライバ40は,上述のような物理用紙単位のプレビューファイルの生成を,画像データを受け付ける度に行い,最終ページの処理が完了するまで繰り返す。   Upon receiving a drawing command, the printer graphics driver 43 generates bitmap format image data according to the drawing command, and performs processing such as image rotation on the image data as necessary. Further, print data for printing and a preview file for the previewer 42 are generated based on the image data. The preview file stores page number information and the like in addition to image data to be printed. When the generation of the preview file is completed, the printer graphics driver 43 responds to the OS 50 with termination. The printer driver 40 generates a preview file in units of physical paper as described above every time image data is received, and repeats until the processing of the last page is completed.

アプリケーションプログラム61が最終ページの画像データの受け渡しを完了させると,取得終了通知を出力する。OS50は,アプリケーションプログラム61から取得終了通知を受け付けると,ユーザインターフェースドライバ41に印刷終了イベントを発行する。ユーザインターフェースドライバ41は,印刷終了イベントを受け付けると,プレビューア42を起動する。   When the application program 61 completes the delivery of the last page of image data, it outputs an acquisition end notification. When the OS 50 receives an acquisition end notification from the application program 61, it issues a print end event to the user interface driver 41. The user interface driver 41 activates the previewer 42 when receiving a print end event.

プレビューア42は,起動後あるいは起動と同時に,プリンタグラフィックスドライバ43が生成したプレビューファイルを読み出し,先頭ページのプレビューファイルをイメージ領域421に表示する。   The previewer 42 reads the preview file generated by the printer graphics driver 43 after the activation or simultaneously with the activation, and displays the preview file of the first page in the image area 421.

その後,プレビューア42は,ユーザからの,印刷指示あるいはキャンセル指示を受け付ける。プレビューア42は,ユーザからの印刷指示を受け付けると,プレビューファイルに対応する印刷データをプリンタ2に送信する。つまり,印刷プレビュー方式の場合,プレビューア42からの指示によって,印刷データをプリンタ2に送信する。一方,プレビューア42は,ユーザからのキャンセル指示を受け付けると,印刷ジョブを中止する。   Thereafter, the previewer 42 receives a print instruction or a cancel instruction from the user. When receiving a print instruction from the user, the previewer 42 transmits print data corresponding to the preview file to the printer 2. That is, in the case of the print preview method, print data is transmitted to the printer 2 in accordance with an instruction from the previewer 42. On the other hand, when receiving a cancel instruction from the user, the previewer 42 stops the print job.

[印刷処理]
続いて,前述した印刷プレビュー方式の印刷手順を実現するPC1の印刷処理について,図4のフローチャートを参照しつつ説明する。図4は,PC1がプリンタドライバ40やOS50を利用して実現する手順を示しており,アプリケーションプログラム61を介して印刷対象の画像データの受け付けを開始したことを契機にCPU11によって実行される。
[Print processing]
Next, the printing process of the PC 1 that realizes the printing procedure of the above-described print preview method will be described with reference to the flowchart of FIG. FIG. 4 shows a procedure realized by the PC 1 using the printer driver 40 and the OS 50, and is executed by the CPU 11 when the reception of image data to be printed is started via the application program 61.

印刷処理では,先ず,先頭の1ページ分の,印刷対象画像のデータである印刷画像データを取得する(S101)。具体的にS101では,OS50がアプリケーションプログラム61から取得した画像データを24ビットBMP形式のBMPデータに変換し,変換後のBMPデータをプリンタドライバ40のプリンタグラフィックスドライバ43に引き渡す。言い換えると,S101では,プリンタドライバ40が印刷対象画像の24ビットBMP形式の画像データを取得する。なお,モノクロ印刷が設定されている場合には,モノクロBMP形式や256色BMP形式の画像データを取得してもよい。   In the printing process, first, print image data, which is data of an image to be printed, for the first page is acquired (S101). Specifically, in S101, the OS 50 converts the image data acquired from the application program 61 into BMP data in the 24-bit BMP format, and passes the converted BMP data to the printer graphics driver 43 of the printer driver 40. In other words, in S101, the printer driver 40 acquires 24-bit BMP format image data of the image to be printed. When monochrome printing is set, image data in monochrome BMP format or 256 color BMP format may be acquired.

S101の後,取得した印刷画像データのサイズが閾値より小さいか否かを判断する(S102)。なお,S101で取得される印刷画像データは,後述する印刷データの元となるデータであり,当該印刷画像データのサイズが大きいほど,印刷データのサイズも大きくなる。つまり,S102は,印刷データのサイズが基準となるサイズより小さいか否かを判断していることに相当する。S102は,判断処理の一例である。   After S101, it is determined whether the size of the acquired print image data is smaller than a threshold value (S102). Note that the print image data acquired in S101 is data that is the basis of print data described later, and the size of the print data increases as the size of the print image data increases. That is, S102 corresponds to determining whether or not the size of the print data is smaller than the reference size. S102 is an example of determination processing.

印刷画像データのサイズが閾値より小さい場合には(S102:YES),取得した印刷画像データをそのままプレビューファイルに利用しても,データサイズの大きさに伴う問題は生じ難い。そのため,S101で取得した24ビットBMP形式の印刷画像データをコピーし,24ビットBMP形式のプレビューファイルを生成する(S121)。   When the size of the print image data is smaller than the threshold (S102: YES), even if the acquired print image data is used as it is for the preview file, a problem associated with the size of the data hardly occurs. Therefore, the 24-bit BMP format print image data acquired in S101 is copied to generate a 24-bit BMP format preview file (S121).

印刷画像データのサイズが閾値より小さくない場合には(S102:NO),S101で取得した印刷画像データの色数が3より少ないか否かを判断する(S103)。S103は,判断処理の一例であり,基準値となる「3」は,第2色基準値の一例である。   If the size of the print image data is not smaller than the threshold (S102: NO), it is determined whether or not the number of colors of the print image data acquired in S101 is less than 3 (S103). S103 is an example of determination processing, and “3” as a reference value is an example of a second color reference value.

印刷画像データの色数が3より少ない場合には(S103:YES),1ピクセルあたりの色表現に必要なビット数が1ビットあれば足りるため,S101で取得した印刷画像データに基づいて,当該印刷画像データよりも1ピクセルあたりの色表現に必要なビット数が少ないBMP形式で,プレビューファイルを生成する(S131)。例えば,モノクロBMP形式や256色BMP形式でプレビューファイルを生成する。   When the number of colors of the print image data is less than 3 (S103: YES), the number of bits necessary for color representation per pixel is only 1 bit. Therefore, based on the print image data acquired in S101, A preview file is generated in the BMP format, which requires fewer bits for color expression per pixel than the print image data (S131). For example, the preview file is generated in a monochrome BMP format or a 256 color BMP format.

印刷画像データの色数が3より少なくない場合には(S103:NO),印刷画像データに写真画像が有るか否かを判断する(S104)。プリンタドライバ40は,S101にて印刷画像データを取得する際,OS50から描画命令を受け付ける。この描画命令は,文字,図形,写真画像等,オブジェクトごとに行われる命令であり,プリンタドライバ40は,描画命令に基づいて印刷画像データに写真画像が有るか否かを判断できる。S104は,判断処理の一例である。   If the number of colors of the print image data is not less than 3 (S103: NO), it is determined whether or not there is a photographic image in the print image data (S104). The printer driver 40 receives a drawing command from the OS 50 when acquiring print image data in S101. This drawing command is a command that is executed for each object such as characters, graphics, and photographic images, and the printer driver 40 can determine whether or not there is a photographic image in the print image data based on the drawing command. S104 is an example of determination processing.

印刷画像データに写真画像が有る場合には(S104:YES),非圧縮のファイル形式であるBMP形式ではデータサイズが大きくなる。そのため,S101で取得した印刷画像データに基づいて,圧縮率が高く,写真画像を含む画像ファイルのファイル形式に適しているJPEG形式で,プレビューファイルを生成する(S141)。   When there is a photographic image in the print image data (S104: YES), the data size becomes large in the BMP format that is an uncompressed file format. Therefore, based on the print image data acquired in S101, a preview file is generated in a JPEG format that has a high compression rate and is suitable for the file format of an image file including a photographic image (S141).

印刷画像データに写真画像が無い場合には(S104:NO),S101で取得した印刷画像データの色数が16より多いか否かを判断する(S105)。S105は,判断処理の一例であり,基準値となる「16」は,第1色基準値の一例である。   If there is no photograph image in the print image data (S104: NO), it is determined whether or not the number of colors of the print image data acquired in S101 is greater than 16 (S105). S105 is an example of determination processing, and “16” serving as a reference value is an example of a first color reference value.

印刷画像データの色数が16より多い場合には(S105:YES),写真画像と同様に,データサイズが大きくなる。そのため,S101で取得した印刷画像データに基づいて,JPEG形式でプレビューファイルを生成する(S141)。   When the number of colors of the print image data is greater than 16 (S105: YES), the data size is increased as in the case of the photographic image. Therefore, a preview file is generated in JPEG format based on the print image data acquired in S101 (S141).

一方,印刷画像データの色数が16より多くない場合には(S105:NO),印刷画像データに写真画像のような複雑な画像が含まれないと推測される。そこで,S101で取得した印刷画像データに基づいて,JPEGよりもより図形を記憶するファイル形式に適したPNG形式で,プレビューファイルを生成する(S111)。S111,S121,S131,およびS141は,画像ファイル生成処理の一例である。   On the other hand, when the number of colors of the print image data is not more than 16 (S105: NO), it is estimated that the print image data does not include a complex image such as a photographic image. Therefore, based on the print image data acquired in S101, a preview file is generated in a PNG format suitable for a file format for storing graphics more than JPEG (S111). S111, S121, S131, and S141 are examples of image file generation processing.

S111,S121,S131,あるいはS141にてプレビューファイルを生成した後は,S101で取得した印刷画像データに基づいて,PDL形式の印刷データを生成する(S112)。S112は,印刷データ生成処理の一例である。また,プレビューア42を起動し,生成したプレビューファイルをプレビューア42に読み出させる読出指示を出力する(S113)。なお,既にプレビューア42が起動している場合には,起動指示を省略する。   After generating the preview file in S111, S121, S131, or S141, PDL format print data is generated based on the print image data acquired in S101 (S112). S112 is an example of print data generation processing. Also, the previewer 42 is activated, and a read instruction for causing the previewer 42 to read the generated preview file is output (S113). If the previewer 42 is already activated, the activation instruction is omitted.

S113の後は,次のページが有るか否かを判断する(S114)。次のページが有る場合には(S114:YES),S101に移行して,次のページについてのプレビューファイルを生成する。一方,次のページが無い場合には(S114:NO),印刷処理を終了する。   After S113, it is determined whether there is a next page (S114). If there is a next page (S114: YES), the process proceeds to S101 to generate a preview file for the next page. On the other hand, if there is no next page (S114: NO), the printing process is terminated.

以上詳細に説明したように印刷処理を実行するPC1では,S101で取得した印刷画像データの内容,換言すればその後に生成される印刷データの内容に応じて,S111,S121,S131,あるいはS141にて好適なファイル形式のプレビューファイルを生成する。その結果として,プレビューファイルの生成や読み出しに伴う遅延や,必要以上のプレビューファイルの圧縮を低減できる。   As described in detail above, the PC 1 that executes the printing process performs S111, S121, S131, or S141 in accordance with the contents of the print image data acquired in S101, in other words, the contents of the print data generated thereafter. A preview file having a suitable file format is generated. As a result, it is possible to reduce delays associated with generation and reading of preview files and unnecessary compression of preview files.

[ポスター印刷での印刷処理]
続いて,ポスター印刷が設定されている場合における印刷処理について,図5のフローチャートを参照しつつ説明する。図5は,ポスター印刷が設定されている場合の印刷処理の手順を示しており,前述した図4の印刷処理と同様に,アプリケーションプログラム61を介して印刷対象の画像データの受け付けを開始したことを契機にCPU11によって実行される。
[Printing process for poster printing]
Next, a printing process when poster printing is set will be described with reference to the flowchart of FIG. FIG. 5 shows the procedure of the printing process when the poster printing is set, and the reception of the image data to be printed has been started via the application program 61 as in the printing process of FIG. In response to this, it is executed by the CPU 11.

本形態の印刷処理では,先ず,1つのポスターを構成する全ページ分の印刷画像データを取得する(S201)。S201で取得される印刷画像データは全て24ビットBMP形式の印刷画像データである。   In the printing process of this embodiment, first, print image data for all pages constituting one poster is acquired (S201). All the print image data acquired in S201 is print image data in 24-bit BMP format.

S201の後,取得した印刷画像データ全てについてデータサイズが閾値より小さいか否かを判断する(S202)。全ての印刷画像データのデータサイズが閾値より小さい場合には(S202:YES),S201で取得した各印刷画像データをコピーし,各印刷画像データに対応する24ビットBMP形式のプレビューファイルをそれぞれ生成する(S221)。   After S201, it is determined whether or not the data size of all the acquired print image data is smaller than the threshold (S202). If the data size of all the print image data is smaller than the threshold (S202: YES), each print image data acquired in S201 is copied, and a 24-bit BMP format preview file corresponding to each print image data is generated. (S221).

少なくとも1つの印刷画像データのデータサイズが閾値より小さくない場合には(S202:NO),S201で取得した印刷画像データ全てについて色数が3より少ないか否かを判断する(S203)。全ての印刷画像データの色数が3より少ない場合には(S203:YES),S201で取得した各印刷画像データに基づいて,当該各印刷画像データよりも1ピクセルあたりの色表現に必要なビット数が少ないBMP形式で,各印刷画像データに対応するプレビューファイルをそれぞれ生成する(S231)。   If the data size of at least one print image data is not smaller than the threshold (S202: NO), it is determined whether or not the number of colors is less than 3 for all the print image data acquired in S201 (S203). When the number of colors of all the print image data is less than 3 (S203: YES), based on each print image data acquired in S201, the bits necessary for color expression per pixel rather than each print image data A preview file corresponding to each print image data is generated in the BMP format with a small number (S231).

少なくとも1つの印刷画像データの色数が3より少なくない場合には(S203:NO),ポスターを構成する各ページのうち,少なくとも1ページについて写真画像が有るか否かを判断する(S204)。少なくとも1ページについて写真画像が有る場合には(S204:YES),S201で取得した各印刷画像データに基づいて,JPEG形式で,各印刷画像データに対応するプレビューファイルをそれぞれ生成する(S241)。   If the number of colors of at least one print image data is not less than 3 (S203: NO), it is determined whether or not there is a photographic image for at least one of the pages constituting the poster (S204). If there is a photo image for at least one page (S204: YES), a preview file corresponding to each print image data is generated in JPEG format based on each print image data acquired in S201 (S241).

全てのページで写真画像が無い場合には(S204:NO),ポスターを構成する各ページのうち,少なくとも1ページについて色数が16より多いか否かを判断する(S205)。少なくとも1ページについて色数が16より多い場合には(S205:YES),写真画像と同様に,S201で取得した各印刷画像データに基づいて,JPEG形式で,各印刷画像データに対応するプレビューファイルをそれぞれ生成する(S241)。   If there are no photographic images on all pages (S204: NO), it is determined whether or not the number of colors is greater than 16 for at least one page among the pages constituting the poster (S205). If at least one page has more than 16 colors (S205: YES), a preview file corresponding to each print image data in JPEG format based on each print image data acquired in S201, as in the case of a photographic image. Are respectively generated (S241).

一方,全てのページで色数が16より多くない場合には(S205:NO),S201で取得した印刷画像データに基づいて,PNG形式で,各印刷画像データに対応するプレビューファイルをそれぞれ生成する(S211)。   On the other hand, if the number of colors is not more than 16 on all pages (S205: NO), a preview file corresponding to each print image data is generated in PNG format based on the print image data acquired in S201. (S211).

S211,S221,S231,あるいはS241にてプレビューファイルを生成した後は,S201で取得した各印刷画像データに基づいて,各印刷画像データに対応するPDL形式の印刷データをそれぞれ生成する(S212)。また,プレビューア42を起動し,生成したプレビューファイルをプレビューア42に読み出させる指示を出力する(S213)。なお,プレビューア42は,イメージ領域421に,1ポスター分のプレビューファイル全てを表示してもよいし,1ポスターを構成する用紙1枚分のページの1つを表示してもよい。   After generating the preview file in S211, S221, S231, or S241, PDL format print data corresponding to each print image data is generated based on each print image data acquired in S201 (S212). Also, the previewer 42 is activated, and an instruction for causing the previewer 42 to read the generated preview file is output (S213). Note that the previewer 42 may display all the preview files for one poster in the image area 421 or may display one of the pages for one sheet constituting one poster.

S213の後は,次のポスター印刷が有るか否かを判断する(S214)。次のポスター印刷が有る場合には(S214:YES),S201に移行して,次のポスター印刷についてのプレビューファイルを生成する。一方,次のポスター印刷が無い場合には(S214:NO),印刷処理を終了する。   After S213, it is determined whether or not there is a next poster print (S214). If there is a next poster print (S214: YES), the process proceeds to S201 to generate a preview file for the next poster print. On the other hand, if there is no next poster printing (S214: NO), the printing process is terminated.

以上詳細に説明したようにポスター印刷での印刷処理では,ポスターを構成する各ページのうち,一部のページに対応するプレビューファイルが他のページと異なるファイル形式で生成されると,画質にムラができる可能性がある。そこで,1ポスターを構成する全てのページが同じファイル形式のプレビューファイルとなるように,1つのポスターを構成する複数のページ単位で,S202,S203,S204,S205で判断し,プレビューファイルのファイル形式を統一している。その結果として,ポスター印刷の際にページ間に生じる画質のムラを抑制しつつ,プレビューファイルの生成や読み出しに伴う遅延や,必要以上のプレビューファイルの圧縮を低減できる。   As described in detail above, in print processing with poster printing, if preview files corresponding to some of the pages that make up the poster are generated in a different file format from other pages, the image quality will be uneven. May be possible. Therefore, the file format of the preview file is determined in S202, S203, S204, and S205 in units of a plurality of pages constituting one poster so that all the pages constituting one poster become preview files of the same file format. Is unified. As a result, while suppressing unevenness in image quality that occurs between pages during poster printing, it is possible to reduce delays associated with generation and reading of preview files and unnecessary compression of preview files.

[プレビューアの動作]
続いて,プレビューア42にプレビューファイルを読み出させるプレビュー読出処理の手順について,図6のフローチャートを参照しつつ説明する。プレビュー読出処理は,印刷処理のS113等,プレビューア42がプレビューファイルの読出指示を受け付けたことを契機に,CPU11によって実行される。
[Previewer operation]
Next, the procedure of the preview reading process for causing the previewer 42 to read the preview file will be described with reference to the flowchart of FIG. The preview reading process is executed by the CPU 11 when the previewer 42 receives an instruction to read a preview file, such as S113 of the printing process.

プレビュー読出処理では,先ず,プレビューア42にてプレビューファイルを読み出す(S301)。プレビューファイルは,ジョブごとにプリンタグラフィックスドライバ43によって所定のフォルダに生成されており,プレビューア42は読出指示で指定されたジョブのプレビューファイルを当該フォルダから読み出す。なお,当該フォルダにプレビューファイルが無い場合や,既に全てのプレビューファイルを読み出し済みであった場合には,S302以降の処理を実行せずにプレビュー読出処理を終了する。   In the preview reading process, first, a preview file is read by the previewer 42 (S301). The preview file is generated for each job in a predetermined folder by the printer graphics driver 43, and the previewer 42 reads the preview file of the job specified by the read instruction from the folder. If there is no preview file in the folder, or if all the preview files have already been read, the preview reading process is terminated without executing the processes in and after S302.

次に,ページ選択領域422に,S301で読み出したプレビューファイルのページ番号を追加する(S302)。本形態では,プレビューファイルのヘッダー領域にページ番号が記憶される,あるいはファイル名にページ番号が付加される等,プレビューファイルの生成時にページ番号の情報がプレビューファイルに付加されており,プレビューファイル自体からページ番号を取得することができる。   Next, the page number of the preview file read in S301 is added to the page selection area 422 (S302). In this embodiment, page number information is added to the preview file when the preview file is generated, such as the page number is stored in the header area of the preview file, or the page number is added to the file name. You can get the page number from

次に,イメージ領域421に表示されているプレビューファイルがあるか否かを判断する(S303)。表示されているプレビューファイルが無ければ(S303:NO),読み出したプレビューファイルのうちの先頭ページのプレビューファイルを,イメージ領域421に表示する(S311)。そして,ページ選択領域422に表示されているページ番号のうち,イメージ領域421に表示したプレビューファイルに対応するページ番号に下線を追加する(S312)。   Next, it is determined whether there is a preview file displayed in the image area 421 (S303). If there is no displayed preview file (S303: NO), the preview file of the first page of the read preview files is displayed in the image area 421 (S311). Of the page numbers displayed in the page selection area 422, an underline is added to the page number corresponding to the preview file displayed in the image area 421 (S312).

S312の後,あるいはイメージ領域421に表示されているプレビューファイルがある場合には(S303:YES),S301で読み出したプレビューファイルにJPEG形式のプレビューファイルがあるか否かを判断する(S304)。JPEG形式は,圧縮率が高い不可逆圧縮方式を採用しているため,圧縮後の画像と印刷対象画像とが一致しない可能性がある。そのため,JPEG形式のプレビューファイルがある場合には(S304:YES),図7に示すように,ページ選択領域422内のそのプレビューファイルに対応するページ番号に,注意を促す警告アイコン426を表示する(S321)。S321の後,あるいはJPEG形式のプレビューファイルが無い場合には(S304:NO),プレビュー読出処理を終了する。   After S312, or when there is a preview file displayed in the image area 421 (S303: YES), it is determined whether or not there is a JPEG format preview file read in S301 (S304). Since the JPEG format employs an irreversible compression method with a high compression rate, there is a possibility that the image after compression does not match the image to be printed. Therefore, when there is a JPEG format preview file (S304: YES), as shown in FIG. 7, a warning icon 426 for calling attention is displayed at the page number corresponding to the preview file in the page selection area 422. (S321). After S321 or when there is no JPEG format preview file (S304: NO), the preview reading process ends.

プレビューア42は,警告アイコン426の押下を受け付けると,図8に示すように,警告メッセージボックス427を表示する。このように画質が劣化している可能性をユーザに通知することで,実際に出力される画像と画質が異なった場合のユーザの不安の低減が期待できる。警告アイコン426および警告メッセージボックス427は,通知処理の一例である。   When the previewer 42 receives pressing of the warning icon 426, the previewer 42 displays a warning message box 427 as shown in FIG. By notifying the user of the possibility that the image quality has deteriorated in this way, it is possible to reduce the user's anxiety when the image quality differs from the actually output image. The warning icon 426 and the warning message box 427 are examples of notification processing.

なお,本実施の形態は単なる例示にすぎず,本発明を何ら限定するものではない。したがって本発明は当然に,その要旨を逸脱しない範囲内で種々の改良,変形が可能である。例えば,印刷装置としてはプリンタに限るものではなく,コピー機,FAX,あるいは印刷機能を有する複合機等であってもよい。また,情報処理装置としてはPCに限るものではなく,ワークステーション,スマートフォン,PDA等であってもよい。   Note that this embodiment is merely an example, and does not limit the present invention. Therefore, the present invention can naturally be improved and modified in various ways without departing from the gist thereof. For example, the printing apparatus is not limited to a printer, and may be a copier, a FAX, or a multifunction machine having a printing function. Further, the information processing apparatus is not limited to a PC, and may be a workstation, a smartphone, a PDA, or the like.

また,実施の形態では,プレビューア42をプリンタドライバ40に含めているが,プレビューファイルを表示することに特化すれば,プレビューアはプリンタドライバ40専用のモジュールである必要はなく,プレビューファイルを読み出すことが可能なモジュールであればよい。例えば,プレビューファイルのファイル形式がBMP形式であれば,OS50が提供するビューアプログラムを起動し,そのビューアプログラムにプレビューファイルを表示させてもよい。   In the embodiment, the previewer 42 is included in the printer driver 40. However, if it is specialized to display a preview file, the previewer does not have to be a module dedicated to the printer driver 40, and the preview file is not included. Any module that can be read out may be used. For example, if the file format of the preview file is the BMP format, a viewer program provided by the OS 50 may be activated and the preview file may be displayed on the viewer program.

また,実施の形態のプレビューア42は,1ページ単位でプレビューファイルを表示しているが,複数ページの一覧表示ができるように構成してもよい。また,プレビューファイルの拡大表示あるいは縮小表示ができるように構成してもよい。   The previewer 42 according to the embodiment displays the preview file in units of one page, but may be configured to display a list of a plurality of pages. Further, the preview file may be configured to be enlarged or reduced.

また,実施の形態では,プレビューファイルのファイル形式として,1ピクセルあたりの色表現に必要なビット数が異なる2種類のBMP,JPEG,PNGを採用しているが,これらに限るものではない。例えば,条件に応じて,GIF,TIFF,XMLを採用してもよい。   In the embodiment, two types of BMP, JPEG, and PNG having different numbers of bits required for color expression per pixel are employed as the file format of the preview file, but the present invention is not limited to these. For example, GIF, TIFF, or XML may be employed depending on conditions.

また,実施の形態では,1つのジョブについて,ページ単位あるいはポスター印刷であれば1ポスター分のページ単位でプレビューファイルのファイル形式を決定しているが,これに限るものではない。例えば,ジョブ単位でファイル形式を決定してもよい。ただし,印刷対象画像は,ページごとに色数やオブジェクトの内容が異なることが想定される。そのため,ページ単位あるいは1ポスター分のページ単位でファイル形式を決定する方が,より好適なファイル形式とすることが期待できる。   In the embodiment, the file format of the preview file is determined in units of pages for one job, or in the case of poster printing for each job. However, the present invention is not limited to this. For example, the file format may be determined for each job. However, it is assumed that the image to be printed has a different number of colors and object contents for each page. Therefore, it can be expected that the file format is determined more favorably in the unit of page or the unit of page for one poster.

また,実施の形態では,プレビューファイルのファイル形式を決定するための条件として,データサイズ(S102),色数(S103,S105),特定のオブジェクトの有無(S104)とを判断しているが,これらを全て行う必要はない。すなわち,このうち1つだけを判断してもよいし,複数判断してもよい。また,これらの条件は一例であって,他の条件を加えてもよい。   In the embodiment, the data size (S102), the number of colors (S103, S105), and the presence / absence of a specific object (S104) are determined as conditions for determining the file format of the preview file. It is not necessary to do all of these. That is, only one of these may be determined, or a plurality may be determined. These conditions are only examples, and other conditions may be added.

また,実施の形態では,プレビュー機能に利用するプレビューデータを生成する際に本発明を適用しているが,これに限るものではない。すなわち,本発明は印刷データに対応する画像データを生成する際に適用でき,例えば,印刷履歴を記憶するログデータを生成する際にも適用できる。   In the embodiment, the present invention is applied when generating preview data used for the preview function. However, the present invention is not limited to this. That is, the present invention can be applied when generating image data corresponding to print data. For example, the present invention can also be applied when generating log data for storing a print history.

1 パーソナルコンピュータ(PC)
2 プリンタ
40 プリンタドライバ
42 プレビューア
50 OS
61 アプリケーションプログラム
1 Personal computer (PC)
2 Printer 40 Printer driver 42 Previewer 50 OS
61 Application program

Claims (9)

印刷対象画像のデータである印刷画像データに基づいて,印刷用のデータである印刷データを生成する印刷データ生成処理と,
印刷画像データのサイズまたは印刷画像データの色数または印刷画像データに含まれるオブジェクトの種類があらかじめ決められた条件を満たすか否かを判断する判断処理と,
前記印刷データ生成処理にて生成された印刷データに対応する画像の画像ファイルを,前記判断処理にて肯定判断された場合と否定判断された場合とで,異なるファイル形式で生成する画像ファイル生成処理と,
を情報処理装置に実行させることを特徴とするプログラム。
Print data generation processing for generating print data that is data for printing based on print image data that is data of a print target image;
A determination process for determining whether the size of the print image data, the number of colors of the print image data, or the type of object included in the print image data satisfies a predetermined condition;
Image file generation processing for generating an image file of an image corresponding to the print data generated in the print data generation processing in different file formats depending on whether the determination is affirmative or negative When,
A program characterized by causing an information processing apparatus to execute.
請求項1に記載するプログラムにおいて,
前記画像ファイル生成処理では,圧縮方式が異なる少なくとも2種類のファイル形式の画像ファイルを生成可能であり,前記条件を,印刷画像データの色数が第1色基準値より多いこととし,前記判断処理にて印刷画像データの色数が前記第1色基準値より多いと判断された場合に,前記判断処理にて印刷画像データの色数が前記第1色基準値より多くないと判断された場合と比較して,より圧縮されるファイル形式の画像ファイルを生成することを特徴とするプログラム。
In the program according to claim 1,
In the image file generation process, it is possible to generate image files of at least two types of file formats having different compression methods, and the condition is that the number of colors of the print image data is greater than the first color reference value, and the determination process When it is determined that the number of colors of the print image data is greater than the first color reference value, the determination process determines that the number of colors of the print image data is not greater than the first color reference value. A program that generates an image file in a file format that is more compressed than
請求項1または請求項2に記載するプログラムにおいて,
前記画像ファイル生成処理では,圧縮方式が異なる少なくとも2種類のファイル形式の画像ファイルを生成可能であり,前記条件を,印刷画像データに写真画像が含まれることとし,前記判断処理にて印刷画像データに写真画像が含まれると判断された場合に,JPEG形式の画像ファイルを生成し,前記判断処理にて印刷画像データに写真画像が含まれないと判断された場合に,JPEG形式以外の画像ファイルを生成することを特徴とするプログラム。
In the program according to claim 1 or claim 2,
In the image file generation process, it is possible to generate image files of at least two types of file formats with different compression methods, and the condition is that the print image data includes a photographic image. If it is determined that the image includes a photographic image, a JPEG format image file is generated. If it is determined in the determination process that the print image data does not include a photographic image, an image file other than the JPEG format is generated. A program characterized by generating
請求項2または請求項3に記載するプログラムにおいて,
前記判断処理にて肯定判断された場合に,前記画像ファイル生成処理にて生成された画像ファイルの画像が劣化している可能性がある旨を通知する通知処理
を前記情報処理装置に実行させることを特徴とするプログラム。
In the program according to claim 2 or claim 3,
Causing the information processing apparatus to execute notification processing for notifying that there is a possibility that an image of the image file generated by the image file generation processing has deteriorated when an affirmative determination is made in the determination processing. A program characterized by
請求項1から請求項4のいずれか1つに記載するプログラムにおいて,
前記画像ファイル生成処理では,前記条件を,印刷画像データのサイズがサイズ基準値よりも小さいこととし,前記判断処理にて印刷画像データのサイズが前記サイズ基準値より小さいと判断された場合に,印刷画像データと同ファイル形式の画像ファイルを生成し,前記判断処理にて印刷画像データのサイズが前記サイズ基準値より小さくないと判断された場合に,印刷画像データよりもサイズが小さくなるファイル形式の画像ファイルを生成することを特徴とするプログラム。
In the program according to any one of claims 1 to 4,
In the image file generation process, the condition is that the size of the print image data is smaller than a size reference value, and the determination process determines that the size of the print image data is smaller than the size reference value. An image file having the same file format as the print image data is generated, and when it is determined in the determination process that the size of the print image data is not smaller than the size reference value, the file format is smaller than the print image data. A program characterized by generating an image file.
請求項1から請求項5のいずれか1つに記載するプログラムにおいて,
前記印刷データ生成処理では,ビットマップ形式の印刷画像データに基づいて,印刷データを生成し,
前記画像ファイル生成処理では,前記条件を,印刷画像データの色数が第2色基準値より少ないこととし,前記判断処理にて印刷画像データの色数が前記第2色基準値より少ないと判断された場合に,1ピクセルあたりの色表現に必要なビット数が印刷画像データより少ないビットマップファイルを生成し,前記判断処理にて印刷画像データの色数が前記第2色基準値より少なくないと判断された場合に,当該ビットマップファイルのファイル形式以外のファイル形式の画像ファイルを生成することを特徴とするプログラム。
In the program according to any one of claims 1 to 5,
In the print data generation process, print data is generated based on the bitmap format print image data,
In the image file generation process, the condition is that the number of colors of the print image data is less than a second color reference value, and the determination process determines that the number of colors of the print image data is less than the second color reference value. In this case, a bit map file having fewer bits required for color expression per pixel than the print image data is generated, and the number of colors of the print image data is not less than the second color reference value in the determination process. A program that generates an image file having a file format other than the file format of the bitmap file when it is determined.
請求項1から請求項6のいずれか1つに記載するプログラムにおいて,
前記判断処理では,印刷データを印刷するシート単位で,前記条件を満たすか否かを判断し,
前記画像ファイル生成処理では,前記シート単位で別ファイルの画像ファイルを生成することを特徴とするプログラム。
In the program according to any one of claims 1 to 6,
In the determination process, it is determined whether or not the condition is satisfied for each sheet on which print data is printed
In the image file generation process, an image file of another file is generated for each sheet.
請求項1から請求項7のいずれか1つに記載するプログラムにおいて,
前記判断処理では,印刷データを生成する際の印刷設定が,1つの論理ページを複数のシートに割り付ける設定の場合に,前記複数のシート単位で,前記条件を満たすか否かを判断し,
前記画像ファイル生成処理では,前記複数のシート単位で判断した場合に,1つの論理ページが割り付けられる前記複数のシート全てで共通のファイル形式の画像ファイルを生成することを特徴とするプログラム。
In the program according to any one of claims 1 to 7,
In the determination process, when the print setting when generating the print data is a setting for allocating one logical page to a plurality of sheets, it is determined whether or not the condition is satisfied for each of the plurality of sheets.
The image file generation processing generates an image file having a common file format for all of the plurality of sheets to which one logical page is allocated when the determination is made in units of the plurality of sheets.
印刷装置と通信する通信部と,
制御部と,
を備え,
前記制御部は,
印刷対象画像のデータである印刷画像データに基づいて,印刷用のデータである印刷データを生成する印刷データ生成処理と,
印刷画像データのサイズまたは印刷画像データの色数または印刷画像データに含まれるオブジェクトの種類があらかじめ決められた条件を満たすか否かを判断する判断処理と,
前記印刷データ生成処理にて生成された印刷データに対応する画像の画像ファイルを,前記判断処理にて肯定判断された場合と否定判断された場合とで,異なるファイル形式で生成する画像ファイル生成処理と,
前記印刷データ生成処理にて生成された印刷データを,前記通信部を介して前記印刷装置に送信する送信処理と,
を実行すること特徴とする情報処理装置。
A communication unit that communicates with the printing device;
A control unit;
With
The controller is
Print data generation processing for generating print data that is data for printing based on print image data that is data of a print target image;
A determination process for determining whether the size of the print image data, the number of colors of the print image data, or the type of object included in the print image data satisfies a predetermined condition;
Image file generation processing for generating an image file of an image corresponding to the print data generated in the print data generation processing in different file formats depending on whether the determination is affirmative or negative When,
A transmission process for transmitting the print data generated in the print data generation process to the printing apparatus via the communication unit;
An information processing apparatus characterized by executing
JP2013202434A 2013-09-27 2013-09-27 Program and information processor Pending JP2015069360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013202434A JP2015069360A (en) 2013-09-27 2013-09-27 Program and information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013202434A JP2015069360A (en) 2013-09-27 2013-09-27 Program and information processor

Publications (1)

Publication Number Publication Date
JP2015069360A true JP2015069360A (en) 2015-04-13

Family

ID=52835974

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013202434A Pending JP2015069360A (en) 2013-09-27 2013-09-27 Program and information processor

Country Status (1)

Country Link
JP (1) JP2015069360A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020087255A (en) * 2018-11-30 2020-06-04 ブラザー工業株式会社 Support program, information processing apparatus, and printing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020087255A (en) * 2018-11-30 2020-06-04 ブラザー工業株式会社 Support program, information processing apparatus, and printing method
JP7230467B2 (en) 2018-11-30 2023-03-01 ブラザー工業株式会社 Support program, information processing device, and printing method

Similar Documents

Publication Publication Date Title
JP5887926B2 (en) Print control apparatus and program
JP6454213B2 (en) Image output system, image processing apparatus, image output apparatus, method and program therefor
US9979846B2 (en) Non-transitory computer readable mediums and information processing apparatus generating print data and preview data
JP5103339B2 (en) Dynamic printer driver user interface generation
JP2008243005A (en) Printer, printing system, and printing method
JP2011154552A (en) Information processing device, print control program, computer readable recording medium, print device, and print system
EP2175397A2 (en) Image forming apparatus and method thereof
US10592180B2 (en) Information processing device, information processing method, and recording medium
JP2012045816A (en) Image forming apparatus, preview image processing method, program, and recording medium
JP5577766B2 (en) Print control apparatus and print control program
US20230102837A1 (en) Non-transitory computer-readable medium storing support program
US9030702B2 (en) Client apparatus, printing system, and display method for converting printing formats, generating preview images, and displaying preview images
US10310788B2 (en) Control method for generating data used for printing and information processing apparatus
JP5929374B2 (en) Program and information processing apparatus
US9165225B2 (en) Program and information processing apparatus
JP2015069360A (en) Program and information processor
JP2009003725A (en) Print controller and program of printer driver
JP2021111229A (en) Information processing device, and generation method and program for image data
JP6519942B2 (en) Image forming apparatus and program
US9434195B2 (en) Printing instruction apparatus, printing system, printing instruction method, and computer readable medium
JP2012123692A (en) Image processing device, stick-out determination method, and computer program
US11886945B2 (en) Non-transitory computer-readable medium storing support program
US8531715B2 (en) Method and system for forming image, and external device
JP5104446B2 (en) Print control apparatus, program, and system
US8228533B2 (en) Image processing system, image processing method, computer readable medium, and computer data signal