JP5268813B2 - Computer program - Google Patents

Computer program Download PDF

Info

Publication number
JP5268813B2
JP5268813B2 JP2009171630A JP2009171630A JP5268813B2 JP 5268813 B2 JP5268813 B2 JP 5268813B2 JP 2009171630 A JP2009171630 A JP 2009171630A JP 2009171630 A JP2009171630 A JP 2009171630A JP 5268813 B2 JP5268813 B2 JP 5268813B2
Authority
JP
Japan
Prior art keywords
compression
data
image
image data
setting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2009171630A
Other languages
Japanese (ja)
Other versions
JP2011028404A (en
Inventor
誉幸 平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2009171630A priority Critical patent/JP5268813B2/en
Publication of JP2011028404A publication Critical patent/JP2011028404A/en
Application granted granted Critical
Publication of JP5268813B2 publication Critical patent/JP5268813B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Facsimiles In General (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To transfer image data generated by an application to an image forming apparatus without decreasing image quality excessively. <P>SOLUTION: A control unit 41 and a data compression process unit 42 are achieved by executing a driver program 21. If image data output from an application 32-i has a bitmap format, the control unit 41 causes the data compression process unit 42 to compress the image data by a compression method (reversible delta row compression or irreversible JPEG compression) corresponding to the set value of image compression setting, and transfers the compressed image data to the image forming apparatus 2. If the data is compressed by an irreversible compression method (e.g., JPEG compression), the image data output from the application 32-i is directly transferred to the image forming apparatus 2 regardless of the value set for the image compression. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、コンピュータプログラムに関するものである。   The present invention relates to a computer program.

ホストコンピュータからプリンタへ画像データを転送する際、転送データ量を減少させるために、画像データを圧縮してから転送することがある。そのような場合、ホストコンピュータにおいて、画像データの圧縮、転送および伸張の合計時間が短くなるように圧縮方式を選択したり(例えば特許文献1参照)、画像データの内容に応じて圧縮方式を選択したり(例えば特許文献2参照)している。   When image data is transferred from the host computer to the printer, the image data may be compressed before being transferred in order to reduce the amount of transfer data. In such a case, the host computer selects a compression method so that the total time of image data compression, transfer, and expansion is shortened (see, for example, Patent Document 1), or selects a compression method according to the content of the image data. (See, for example, Patent Document 2).

特開平9−146732号公報JP-A-9-146732 特開2001−282482号公報JP 2001-282482 A

上述のような画像データの転送処理をドライバが行うが、ホストコンピュータでは、ドライバの他にアプリケーションが動作しており、そのアプリケーションが、プリンタなどの画像形成装置へ転送する画像データを生成する。   The driver performs the image data transfer process as described above. In the host computer, an application is operating in addition to the driver, and the application generates image data to be transferred to an image forming apparatus such as a printer.

アプリケーションが生成する画像データの形式には複数あり、ビットマップ形式で画像データが生成される場合や、JPEG(Joint Photographic Experts Group)形式で画像データが生成される場合がある。   There are a plurality of image data formats generated by an application, and image data may be generated in a bitmap format, or image data may be generated in a JPEG (Joint Photographic Experts Group) format.

上述の技術では、アプリケーションにより生成される画像データのデータ形式に拘わらず画像データを圧縮してしまうため、画像形成装置により伸張された画像データの画質が劣化してしまう可能性がある。例えば、JPEG方式のような非可逆圧縮方式の場合、圧縮率を高くすると、モスキートノイズなどが画像に発生し、画質が低下する。   In the above-described technique, the image data is compressed regardless of the data format of the image data generated by the application. Therefore, the image quality of the image data expanded by the image forming apparatus may be deteriorated. For example, in the case of an irreversible compression method such as the JPEG method, if the compression rate is increased, mosquito noise or the like is generated in the image, and the image quality is degraded.

本発明は、上記の問題に鑑みてなされたものであり、アプリケーションにより生成される画像データのデータ形式に応じて、必要以上に画質を劣化させずに画像データを画像形成装置へ転送させることができるコンピュータプログラムを得ることを目的とする。   The present invention has been made in view of the above problems, and can transfer image data to an image forming apparatus without degrading image quality more than necessary according to the data format of image data generated by an application. The purpose is to obtain a computer program that can be used.

上記の課題を解決するために、本発明では以下のようにした。   In order to solve the above problems, the present invention is configured as follows.

本発明に係るコンピュータプログラムは、コンピュータを、(a)アプリケーションから出力される画像データを、可逆圧縮方式および非可逆圧縮方式で圧縮可能なデータ圧縮処理部、および(b)アプリケーションからの印刷要求があると、そのアプリケーションから出力される画像データのデータ形式を特定するとともに、画像形成装置への画像データ転送時のデータ圧縮についての画像圧縮設定の設定値を特定し、データ形式がビットマップ形式である場合には、画像圧縮設定の設定値に対応する前記可逆圧縮方式または前記非可逆圧縮方式でデータ圧縮処理部に画像データを圧縮させ、圧縮後の画像データを画像形成装置へ転送し、データ形式が非可逆圧縮方式で圧縮されている形式である場合には、画像圧縮設定の設定値に拘わらず、データ圧縮処理部で圧縮せずに、アプリケーションから出力された画像データをそのまま画像形成装置へ転送する制御部として機能させる。データ圧縮処理部は、画像データを、デルタロウ方式またはJPEG方式で圧縮可能であり、制御部は、データ形式がビットマップ形式である場合には、デルタロウ方式およびJPEG方式のうち、画像圧縮設定の設定値に対応する圧縮方式でデータ圧縮処理部に画像データを圧縮させ、データ形式がJPEG形式である場合には、データ圧縮処理部による非可逆圧縮方式の圧縮率が、アプリケーションによるデータ形式が非可逆圧縮方式で圧縮されている場合の圧縮率とは異なるときでも、画像圧縮設定の設定値に拘わらず、データ圧縮処理部で圧縮せずに、アプリケーションから出力された画像データをそのまま画像形成装置へ転送する。そして、データ圧縮処理部は、画像データを圧縮する際の非可逆圧縮方式の圧縮率を、可逆圧縮方式の圧縮率より高くする。 The computer program according to the present invention includes: (a) a data compression processing unit capable of compressing image data output from an application by a lossless compression method and an irreversible compression method; and (b) a print request from the application. If there is, the data format of the image data output from the application is specified, the setting value of the image compression setting for the data compression at the time of image data transfer to the image forming apparatus is specified, and the data format is a bitmap format. In some cases, the data compression processing unit compresses the image data by the lossless compression method or the lossy compression method corresponding to the set value of the image compression setting, and the compressed image data is transferred to the image forming apparatus, If the format is compressed using the lossy compression method, regardless of the setting value of the image compression setting. , Without compression in the data compression processing section, to function as a control unit for transferring the image data output from an application to directly image forming apparatus. The data compression processing unit can compress the image data by the delta row method or the JPEG method, and when the data format is a bitmap format, the control unit sets the image compression setting among the delta row method and the JPEG method. If the data compression processing unit compresses the image data with the compression method corresponding to the value and the data format is JPEG format, the compression rate of the lossy compression method by the data compression processing unit is irreversible. Even when the compression rate is different from the compression rate when the image is compressed by the compression method, the image data output from the application is directly transferred to the image forming apparatus without being compressed by the data compression processing unit regardless of the set value of the image compression setting. Forward. The data compression processing unit makes the compression rate of the lossy compression method when compressing the image data higher than the compression rate of the lossless compression method.

これにより、アプリケーションにより生成される画像データが特定の非可逆圧縮方式で圧縮されたものである場合には、再度の圧縮処理を行わずに画像データを転送する。つまり、画像圧縮設定の設定値により可逆圧縮方式が指定される場合でも、アプリケーションからの画像データが特定の非可逆圧縮方式で圧縮済みであれば、可逆圧縮方式での圧縮は行われないし、非可逆圧縮方式による再度の圧縮も行われない。したがって、必要以上に画質を劣化させずに画像データを画像形成装置へ転送させることができる。また、画像圧縮設定の設定値に基づいて非可逆圧縮方式が選択される場合には、データ転送量が少なくなるため、高速に印刷処理が実行される。一方、画像圧縮設定の設定値に基づいて可逆圧縮方式が選択される場合には、データ転送量が多くなるが、データの圧縮・伸張に起因する画質劣化が生じない。 Thereby, when the image data generated by the application is compressed by a specific lossy compression method, the image data is transferred without performing the compression process again. In other words, even when the lossless compression method is specified by the setting value of the image compression setting, if the image data from the application is already compressed with a specific lossy compression method, the compression with the lossless compression method is not performed. No re-compression by the lossless compression method is performed. Therefore, it is possible to transfer image data to the image forming apparatus without degrading image quality more than necessary. In addition, when the lossy compression method is selected based on the setting value of the image compression setting, the data transfer amount is reduced, so that the printing process is executed at high speed. On the other hand, when the lossless compression method is selected based on the setting value of the image compression setting, the data transfer amount increases, but image quality deterioration due to data compression / decompression does not occur.

また、本発明に係るコンピュータプログラムは、上記のコンピュータプログラムに加え、次のようにしてもよい。この場合、画像データの圧縮方式を示すデータが画像データのヘッダに含められる。
The computer program according to the present invention, in addition to the above computer program, may be as follows. In this case, data indicating the compression method of the image data is included in the header of the image data.

これにより、画像形成装置では、その圧縮方式に対応して画像データを適切に伸張することができる。   As a result, the image forming apparatus can appropriately decompress the image data in accordance with the compression method.

本発明によれば、アプリケーションにより生成される画像データのデータ形式に応じて、必要以上に画質を劣化させずに画像データを画像形成装置へ転送させることができるコンピュータプログラムを得ることができる。   According to the present invention, it is possible to obtain a computer program that can transfer image data to an image forming apparatus without degrading image quality more than necessary according to the data format of image data generated by an application.

図1は、本発明の実施の形態1に係るドライバプログラムをインストールされた端末装置の構成を主に示すブロック図である。FIG. 1 is a block diagram mainly showing a configuration of a terminal device installed with a driver program according to Embodiment 1 of the present invention. 図2は、本発明の実施の形態1に係るドライバプログラムによる処理について説明するフローチャートである。FIG. 2 is a flowchart for explaining processing by the driver program according to Embodiment 1 of the present invention. 図3は、グラフィックス詳細設定ウィンドウの一例を示す図である。FIG. 3 is a diagram illustrating an example of a graphics details setting window.

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

図1は、本発明の実施の形態1に係るドライバプログラムをインストールされた端末装置の構成を主に示すブロック図である。端末装置1は、例えばパーソナルコンピュータなどであり、端末装置1には、所定の通信路(周辺機器インタフェースケーブル、コンピュータネットワークなど)を介して画像形成装置2が接続されている。画像形成装置2は、印刷機能、画像読取機能およびファクシミリ送受信機能のうちの少なくとも1つを有する装置である。   FIG. 1 is a block diagram mainly showing a configuration of a terminal device installed with a driver program according to Embodiment 1 of the present invention. The terminal device 1 is, for example, a personal computer. The image forming apparatus 2 is connected to the terminal device 1 via a predetermined communication path (peripheral device interface cable, computer network, etc.). The image forming apparatus 2 is an apparatus having at least one of a printing function, an image reading function, and a facsimile transmission / reception function.

端末装置1は、入力装置11、表示装置12、通信装置13、データ格納装置14およびコンピュータ15を有する。   The terminal device 1 includes an input device 11, a display device 12, a communication device 13, a data storage device 14, and a computer 15.

入力装置11は、ユーザ操作を検出し電気信号として出力する装置である。入力装置11としては、キーボード、マウス、タッチパネルなどが使用される。   The input device 11 is a device that detects a user operation and outputs it as an electrical signal. As the input device 11, a keyboard, a mouse, a touch panel, or the like is used.

表示装置12は、電気信号を入力されその電気信号に応じた画像を画面に表示する装置である。表示装置12としては、液晶ディスプレイなどが使用される。   The display device 12 is a device that receives an electrical signal and displays an image corresponding to the electrical signal on a screen. A liquid crystal display or the like is used as the display device 12.

通信装置13は、所定の通信路を介して画像形成装置2などの周辺機器とデータ通信を行う装置である。通信装置13としては、周辺機器インタフェース、ネットワークインタフェースカードなどが使用される。   The communication device 13 is a device that performs data communication with peripheral devices such as the image forming apparatus 2 via a predetermined communication path. As the communication device 13, a peripheral device interface, a network interface card, or the like is used.

データ格納装置14は、データおよびプログラムを格納する装置である。この実施の形態1では、データ格納装置14は、画像形成装置2用のドライバプログラム21、そのドライバプログラム21を使用可能な複数のアプリケーションプログラム22−1,22−2、およびドライバプログラム21の設定データ23を格納している。データ格納装置14としては、ハードディスクドライバ、不揮発性メモリなどが使用される。ドライバプログラム21は、コンピュータプログラムの一例である。   The data storage device 14 is a device that stores data and programs. In the first embodiment, the data storage device 14 includes a driver program 21 for the image forming apparatus 2, a plurality of application programs 22-1 and 22-2 that can use the driver program 21, and setting data for the driver program 21. 23 is stored. As the data storage device 14, a hard disk driver, a nonvolatile memory, or the like is used. The driver program 21 is an example of a computer program.

設定データ23には、画像圧縮設定が含まれる。画像圧縮設定は、画像形成装置2への画像データ転送時のデータ圧縮についての設定であり、画像圧縮設定の設定値は、画質優先または転送速度優先を示す。画像圧縮設定の設定値が画質優先を示す場合には、この設定により低圧縮率の可逆圧縮方式が指定され、画像圧縮設定の設定値が転送速度優先を示す場合には、この設定により高圧縮率の非可逆圧縮方式が指定される。   The setting data 23 includes image compression settings. The image compression setting is a setting for data compression at the time of image data transfer to the image forming apparatus 2, and the setting value of the image compression setting indicates image quality priority or transfer speed priority. When the setting value of the image compression setting indicates image quality priority, this setting specifies a lossless compression method with a low compression rate. When the setting value of the image compression setting indicates transfer speed priority, this setting is used for high compression. A rate lossy compression scheme is specified.

コンピュータ15は、図示せぬCPU(Central Processing Unit)、RAM(Random Access Memory)、ROM(Read Only Memory)などを備え、プログラムをRAMにロードし、CPUで実行することにより、各種処理部を実現する装置である。   The computer 15 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), a ROM (Read Only Memory), etc. (not shown), loads various programs into the RAM, and executes them by the CPU, thereby realizing various processing units. It is a device to do.

ドライバプログラム21がコンピュータ15で実行されることにより、画像形成装置2へのデータ転送、データ処理などを行う処理部であるドライバ31が実現される。ドライバ31には、制御部41とデータ圧縮処理部42とが含まれる。   When the driver program 21 is executed by the computer 15, a driver 31 that is a processing unit that performs data transfer, data processing, and the like to the image forming apparatus 2 is realized. The driver 31 includes a control unit 41 and a data compression processing unit 42.

制御部41は、アプリケーション32−i(i=1,2)からの印刷要求があると、そのアプリケーション32−iから出力される画像データのデータ形式を特定するとともに、設定データ23に基づき画像圧縮設定の設定値を特定し、データ形式がビットマップ形式である場合には、画像圧縮設定の設定値に対応する圧縮方式(可逆圧縮方式または非可逆圧縮方式)でデータ圧縮処理部42に画像データを圧縮させ、圧縮後の画像データを画像形成装置2へ転送し、データ形式が非可逆圧縮方式で圧縮されている形式である場合には、画像圧縮設定の設定値に拘わらず、データ圧縮処理部42で圧縮せずに、アプリケーション32−iから出力された画像データをそのまま画像形成装置2へ転送する処理部である。制御部41は、通信装置13を制御して画像データを転送する。   When there is a print request from the application 32-i (i = 1, 2), the control unit 41 specifies the data format of the image data output from the application 32-i and compresses the image based on the setting data 23. When the setting value is specified and the data format is a bitmap format, the image data is sent to the data compression processing unit 42 by a compression method (lossless compression method or lossy compression method) corresponding to the setting value of the image compression setting. And the compressed image data is transferred to the image forming apparatus 2, and the data compression processing is performed regardless of the set value of the image compression setting when the data format is a format compressed by the lossy compression method. This is a processing unit that transfers the image data output from the application 32-i as it is to the image forming apparatus 2 without being compressed by the unit 42. The control unit 41 controls the communication device 13 to transfer image data.

なお、制御部41は、データ圧縮処理部42による非可逆圧縮方式の圧縮率が、アプリケーション32−iによるデータ形式が非可逆圧縮方式で圧縮されている場合の圧縮率とは異なる場合でも、データ形式が非可逆圧縮方式で圧縮されている形式である場合には、画像圧縮設定の設定値に拘わらず、データ圧縮処理部42で圧縮せずに、アプリケーションから出力された画像データをそのまま画像形成装置2へ転送する。   Note that the control unit 41 does not provide the data even when the compression rate of the lossy compression method by the data compression processing unit 42 is different from the compression rate when the data format by the application 32-i is compressed by the lossy compression method. When the format is a format compressed by the lossy compression method, the image data output from the application is formed as it is without being compressed by the data compression processing unit 42 regardless of the setting value of the image compression setting. Transfer to device 2.

データ圧縮処理部42は、アプリケーション32−1,32−2から出力される画像データを、可逆圧縮方式および非可逆圧縮方式で圧縮することができる処理部である。この実施の形態では、データ圧縮部42は、可逆圧縮方式の1つであるデルタロウ方式および非可逆圧縮方式の1であるJPEG方式でデータを圧縮することができる。   The data compression processing unit 42 is a processing unit capable of compressing image data output from the applications 32-1 and 32-2 by a lossless compression method and a lossy compression method. In this embodiment, the data compression unit 42 can compress data by the delta row method, which is one of the lossless compression methods, and the JPEG method, which is one of the lossy compression methods.

なお、データ圧縮処理部42は、非可逆圧縮方式の圧縮率を、可逆圧縮方式の圧縮率より高くする。ここでは、圧縮率は、例えば(圧縮前データサイズ−圧縮後データサイズ)/圧縮前データサイズなどと定義される。このため、圧縮率が高いほど、圧縮後のデータサイズが小さくなる。   The data compression processing unit 42 sets the compression rate of the irreversible compression method to be higher than the compression rate of the lossless compression method. Here, the compression rate is defined as, for example, (data size before compression−data size after compression) / data size before compression. For this reason, the higher the compression ratio, the smaller the data size after compression.

データ圧縮処理部42または制御部41は、画像データの圧縮方式を示すデータを画像データのヘッダに含める。これにより、画像形成装置2においてそのデータを参照することにより圧縮方式が特定され、その圧縮方式に対応して画像データを適切に伸張することができる。   The data compression processing unit 42 or the control unit 41 includes data indicating the compression method of the image data in the header of the image data. Thereby, the compression method is specified by referring to the data in the image forming apparatus 2, and the image data can be appropriately decompressed in accordance with the compression method.

また、アプリケーションプログラム22−1,22−2がコンピュータ15で実行されることにより、アプリケーション32−1,32−2が実現される。アプリケーション32−1,32−2は、それぞれ、文書作成、数値計算など、ある特定の目的のための処理を行う処理部である。アプリケーション32−1,32−2は、ドライバ31を使用して、画像形成装置2に印刷を実行させることができる。印刷を実行させる際には、アプリケーション32−1,32−2は、印刷用の画像データを生成し、ドライバ31に渡す。ここでは、そのとき、アプリケーション32−1は、ビットマップ形式の画像データを生成し、アプリケーション32−2は、JPEG形式の画像データを生成する。   In addition, the application programs 22-1 and 22-2 are executed by the computer 15, thereby realizing the applications 32-1 and 32-2. Each of the applications 32-1 and 32-2 is a processing unit that performs processing for a specific purpose such as document creation and numerical calculation. The applications 32-1 and 32-2 can cause the image forming apparatus 2 to execute printing using the driver 31. When executing printing, the applications 32-1 and 32-2 generate image data for printing and pass it to the driver 31. Here, at that time, the application 32-1 generates image data in the bitmap format, and the application 32-2 generates image data in the JPEG format.

また、図1に示す画像形成装置2は、プリンタ、複合機などといった装置であり、制御回路51、通信装置52および演算処理装置53を有する。   The image forming apparatus 2 illustrated in FIG. 1 is a device such as a printer or a multifunction peripheral, and includes a control circuit 51, a communication device 52, and an arithmetic processing device 53.

制御回路51は、例えば電子写真方式のプリントエンジン(図示せず)を制御して、画像を用紙へ印刷する回路である。通信装置52は、端末装置1の通信装置13とデータ通信可能な装置である。   The control circuit 51 is a circuit that controls an electrophotographic print engine (not shown), for example, and prints an image on paper. The communication device 52 is a device capable of data communication with the communication device 13 of the terminal device 1.

演算処理装置53は、コンピュータやデジタルシグナルプロセッサなどであり、制御部61、画像処理部62およびデータ伸張処理部63を実現する。制御部61は、画像処理後の画像データで制御回路51を制御する処理部である。画像処理部62は、ラスタライズ、多値化処理などの他、必要に応じて画像の拡大・縮小、回転などの処理を画像データに対して行う処理部である。データ伸張処理部63は、圧縮されている画像データが受信された場合にその画像データを伸張する処理部である。したがって、画像形成装置2では、圧縮されている画像データが通信装置52により受信されると、データ伸張処理部63が、その画像データのヘッダから圧縮方式を特定してその画像データを伸張し、その後、画像処理部62が、その画像データに対して画像処理を適宜行い、制御部61は、画像処理後の画像データを使用して制御回路51を動作させて、画像の印刷を実行させる。   The arithmetic processing unit 53 is a computer, a digital signal processor, or the like, and implements a control unit 61, an image processing unit 62, and a data expansion processing unit 63. The control unit 61 is a processing unit that controls the control circuit 51 with image data after image processing. The image processing unit 62 is a processing unit that performs processing such as image enlargement / reduction and rotation on the image data as necessary in addition to rasterization and multi-value processing. The data decompression processing unit 63 is a processing unit that decompresses image data when compressed image data is received. Therefore, in the image forming apparatus 2, when the compressed image data is received by the communication device 52, the data decompression processing unit 63 identifies the compression method from the header of the image data, decompresses the image data, Thereafter, the image processing unit 62 appropriately performs image processing on the image data, and the control unit 61 causes the control circuit 51 to operate using the image data after the image processing to execute image printing.

次に、上記装置の動作について説明する。   Next, the operation of the above apparatus will be described.

図2は、本発明の実施の形態1に係るドライバプログラム21による処理について説明するフローチャートである。   FIG. 2 is a flowchart for explaining processing by the driver program 21 according to the first embodiment of the present invention.

制御部41は、アプリケーション32−1またはアプリケーション32−2からの印刷要求を検出すると(ステップS1)、設定データ23に基づき、データ転送時の画像圧縮設定の設定値を特定する(ステップS2)。   When the control unit 41 detects a print request from the application 32-1 or the application 32-2 (step S1), the control unit 41 specifies a setting value of the image compression setting at the time of data transfer based on the setting data 23 (step S2).

また、制御部41は、アプリケーション32−1またはアプリケーション32−2から出力される画像データのデータ形式を特定する(ステップS3)。画像データのデータ形式は、印刷要求をしたアプリケーション32−1またはアプリケーション32−2の種別、画像データの内容などに基づいて特定される。   Further, the control unit 41 specifies the data format of the image data output from the application 32-1 or the application 32-2 (step S3). The data format of the image data is specified based on the type of the application 32-1 or the application 32-2 that has requested printing and the content of the image data.

そして、制御部41は、そのデータ形式がJPEG形式であるか否かを判定する(ステップS4)。   Then, the control unit 41 determines whether or not the data format is a JPEG format (step S4).

そのデータ形式が例えばビットマップ形式でありJPEG形式ではないを判定した場合(ステップS4)、制御部41は、設定データ23における画像圧縮設定の設定値が転送速度優先を示しているか否かを判定する(ステップS5)。   When it is determined that the data format is, for example, the bitmap format and not the JPEG format (step S4), the control unit 41 determines whether or not the setting value of the image compression setting in the setting data 23 indicates the transfer speed priority. (Step S5).

設定データ23における画像圧縮設定の設定値が転送速度優先を示していると判定した場合、制御部41は、データ圧縮処理部42に画像データをJPEG方式で圧縮させ(ステップS6)、圧縮後の画像データを、通信装置13を介して画像形成装置2へ転送する(ステップS7)。   When it is determined that the setting value of the image compression setting in the setting data 23 indicates the transfer speed priority, the control unit 41 causes the data compression processing unit 42 to compress the image data by the JPEG method (step S6), and after the compression. The image data is transferred to the image forming apparatus 2 via the communication device 13 (step S7).

一方、設定データ23における画像圧縮設定の設定値が転送速度優先を示していないと判定した場合(つまり、設定データ23における画像圧縮設定の設定値が画質優先を示していると判定した場合)、制御部41は、データ圧縮処理部42に画像データをデルタロウ方式で圧縮させ(ステップS8)、圧縮後の画像データを、通信装置13を介して画像形成装置2へ転送する(ステップS7)。   On the other hand, when it is determined that the setting value of the image compression setting in the setting data 23 does not indicate transfer speed priority (that is, when the setting value of the image compression setting in the setting data 23 indicates image quality priority), The control unit 41 causes the data compression processing unit 42 to compress the image data by the delta row method (step S8), and transfers the compressed image data to the image forming apparatus 2 via the communication device 13 (step S7).

また、ステップS4において、印刷要求をしたアプリケーション32−iから出力されたデータ形式がJPEG形式であるを判定した場合、制御部41は、そのまま、そのJPEG形式の画像データを、通信装置13を介して画像形成装置2へ転送する(ステップS7)。   If it is determined in step S4 that the data format output from the application 32-i that has requested printing is the JPEG format, the control unit 41 directly transmits the image data in the JPEG format via the communication device 13. To the image forming apparatus 2 (step S7).

このように、アプリケーション32−iからの画像データのデータ形式がJPEG形式である場合には、ドライバ31は、設定データ23における画像圧縮設定の設定値に拘わらず、その画像データをそのまま転送する。   As described above, when the data format of the image data from the application 32-i is the JPEG format, the driver 31 transfers the image data as it is regardless of the setting value of the image compression setting in the setting data 23.

ここで、画像圧縮設定の設定値の入力および変更について説明する。   Here, input and change of the setting value of the image compression setting will be described.

ドライバ31は、所定のユーザ操作が入力装置11により検出されると、グラフィックス詳細設定ウィンドウを表示装置12に表示させる。図3は、グラフィックス詳細設定ウィンドウの一例を示す図である。グラフィックス詳細設定ウィンドウでは、画像処理オプションとして、画像圧縮設定の設定値を入力するための2つのラジオボタン101,102が表示される。   When a predetermined user operation is detected by the input device 11, the driver 31 causes the display device 12 to display a graphics detailed setting window. FIG. 3 is a diagram illustrating an example of a graphics details setting window. In the graphics details setting window, two radio buttons 101 and 102 for inputting setting values of image compression settings are displayed as image processing options.

2つのラジオボタン101,102から1つのみが選択可能となっている。そして、ラジオボタン101が選択された場合には、ドライバ31は、設定データ23における画像圧縮設定の設定値を、転送速度優先を示す値に設定し、ラジオボタン102が選択された場合には、ドライバ31は、設定データ23における画像圧縮設定の設定値を、画質優先を示す値に設定する。   Only one of the two radio buttons 101 and 102 can be selected. When the radio button 101 is selected, the driver 31 sets the setting value of the image compression setting in the setting data 23 to a value indicating transfer speed priority, and when the radio button 102 is selected, The driver 31 sets the setting value of the image compression setting in the setting data 23 to a value indicating image quality priority.

このようにして、グラフィカルユーザインタフェースにより、ユーザ操作に従って、画像圧縮設定の設定値が決定され、設定データ23として保存される。   In this manner, the setting value of the image compression setting is determined by the graphical user interface according to the user operation, and is stored as the setting data 23.

以上のように、上記実施の形態によれば、ドライバ31の制御部41は、アプリケーション32−iからの印刷要求があると、そのアプリケーション32−iから出力される画像データのデータ形式を特定するとともに、画像圧縮設定の設定値を特定し、データ形式がビットマップ形式である場合には、画像圧縮設定の設定値に対応する圧縮方式(デルタロウ方式といった可逆圧縮方式またはJPEG方式といった非可逆圧縮方式)でデータ圧縮処理部42に画像データを圧縮させ、圧縮後の画像データを画像形成装置2へ転送し、データ形式が非可逆圧縮方式で圧縮されている形式(ここでは、JPEG形式)である場合には、画像圧縮設定の設定値に拘わらず、データ圧縮処理部42で圧縮せずに、アプリケーション32−iから出力された画像データをそのまま画像形成装置2へ転送する。   As described above, according to the above embodiment, when there is a print request from the application 32-i, the control unit 41 of the driver 31 specifies the data format of the image data output from the application 32-i. In addition, when the setting value of the image compression setting is specified and the data format is a bitmap format, the compression method corresponding to the setting value of the image compression setting (a lossless compression method such as a delta row method or an irreversible compression method such as a JPEG method) ), The data compression processing unit 42 compresses the image data, transfers the compressed image data to the image forming apparatus 2, and the data format is a format compressed in the lossy compression method (here, JPEG format). In this case, regardless of the setting value of the image compression setting, the data is not compressed by the data compression processing unit 42 and output from the application 32-i. Directly transferred to the image forming apparatus 2 to image data.

これにより、アプリケーション32−iにより生成される画像データが特定の非可逆圧縮方式で圧縮されたものである場合には、ドライバ31で再度の圧縮処理を行わずに、画像データを転送する。つまり、画像圧縮設定の設定値により可逆圧縮方式が指定される場合でも、アプリケーション32−iからの画像データが特定の非可逆圧縮方式で圧縮済みであれば、可逆圧縮方式での圧縮は行われないし、非可逆圧縮方式による再度の圧縮も行われない。したがって、必要以上に画質を劣化させずに画像データを画像形成装置2へ転送させることができる。また、その場合、ドライバ31で圧縮処理を行わないため、画像データをただちに転送でき、画像データの転送時間が短くなる。   Thus, when the image data generated by the application 32-i is compressed by a specific lossy compression method, the image data is transferred without performing the compression process again by the driver 31. That is, even when the lossless compression method is designated by the setting value of the image compression setting, if the image data from the application 32-i has been compressed by a specific lossy compression method, the compression by the lossless compression method is performed. Also, re-compression by the lossy compression method is not performed. Therefore, the image data can be transferred to the image forming apparatus 2 without deteriorating the image quality more than necessary. In that case, since the driver 31 does not perform compression processing, the image data can be transferred immediately, and the transfer time of the image data is shortened.

なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。   The above-described embodiments are preferred examples of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. is there.

例えば、上記実施の形態では、可逆圧縮方式としてデルタロウ方式を使用しているが、例えばランレングス方式といった別の方式を使用してもよい。また、上記実施の形態では、非可逆圧縮方式としてJPEG方式を使用しているが、別の方式を使用してもよい。   For example, in the above embodiment, the delta row method is used as the lossless compression method, but another method such as a run length method may be used. Moreover, in the said embodiment, although the JPEG system is used as a lossy compression system, you may use another system.

また、上記実施の形態では、画像形成装置2に転送された画像データは印刷に使用されているが、他の機能(ファクシミリ送信など)に使用するようにしてもよい。   In the above embodiment, the image data transferred to the image forming apparatus 2 is used for printing, but may be used for other functions (facsimile transmission and the like).

本発明は、例えば、プリンタ、コピー機、複合機などの画像形成装置のためのデバイスドライバに適用可能である。   The present invention can be applied to a device driver for an image forming apparatus such as a printer, a copier, or a multifunction peripheral.

2 画像形成装置
15 コンピュータ
21 ドライバプログラム(コンピュータプログラムの一例)
32−1,32−2 アプリケーション
41 制御部
42 データ圧縮処理部
2 Image forming apparatus 15 Computer 21 Driver program (an example of a computer program)
32-1 and 32-2 Application 41 Control unit 42 Data compression processing unit

Claims (2)

コンピュータを、
アプリケーションから出力される画像データを、可逆圧縮方式および非可逆圧縮方式で圧縮可能なデータ圧縮処理部、および
前記アプリケーションからの印刷要求があると、そのアプリケーションから出力される画像データのデータ形式を特定するとともに、画像形成装置への画像データ転送時のデータ圧縮についての画像圧縮設定の設定値を特定し、前記データ形式がビットマップ形式である場合には、前記画像圧縮設定の設定値に対応する前記可逆圧縮方式または前記非可逆圧縮方式で前記データ圧縮処理部に前記画像データを圧縮させ、圧縮後の画像データを前記画像形成装置へ転送し、前記データ形式が非可逆圧縮方式で圧縮されている形式である場合には、前記画像圧縮設定の設定値に拘わらず、前記データ圧縮処理部で圧縮せずに、前記アプリケーションから出力された画像データをそのまま前記画像形成装置へ転送する制御部
として機能させ
前記データ圧縮処理部は、前記画像データを、デルタロウ方式またはJPEG方式で圧縮可能であり、
前記制御部は、前記データ形式がビットマップ形式である場合には、デルタロウ方式およびJPEG方式のうち、前記画像圧縮設定の設定値に対応する圧縮方式で前記データ圧縮処理部に前記画像データを圧縮させ、前記データ形式がJPEG形式である場合には、前記データ圧縮処理部による前記非可逆圧縮方式の圧縮率が、前記アプリケーションによる前記データ形式が非可逆圧縮方式で圧縮されている場合の圧縮率とは異なるときでも、前記画像圧縮設定の設定値に拘わらず、前記データ圧縮処理部で圧縮せずに、前記アプリケーションから出力された画像データをそのまま前記画像形成装置へ転送し、
前記データ圧縮処理部は、前記画像データを圧縮する際の前記非可逆圧縮方式の圧縮率を、前記可逆圧縮方式の圧縮率より高くすること、
を特徴とするコンピュータプログラム。
Computer
A data compression processing unit that can compress image data output from an application using a lossless compression method or a lossy compression method, and when there is a print request from the application, the data format of the image data output from the application is specified. In addition, the setting value of the image compression setting for the data compression at the time of transferring the image data to the image forming apparatus is specified, and when the data format is a bitmap format, the setting value of the image compression setting is supported. The data compression processing unit compresses the image data by the lossless compression method or the lossy compression method, transfers the compressed image data to the image forming apparatus, and the data format is compressed by the lossy compression method. The data compression processing unit does not compress the data regardless of the setting value of the image compression setting. And functioning as a control unit that directly transfers the image data output from the application to the image forming apparatus ,
The data compression processing unit can compress the image data by a delta row method or a JPEG method,
When the data format is a bitmap format, the control unit compresses the image data into the data compression processing unit using a compression method corresponding to a setting value of the image compression setting, among a delta row method and a JPEG method. When the data format is JPEG format, the compression rate of the lossy compression method by the data compression processing unit is the compression rate when the data format by the application is compressed by the lossy compression method. Even when different from the above, regardless of the setting value of the image compression setting, the image data output from the application is directly transferred to the image forming apparatus without being compressed by the data compression processing unit,
The data compression processing unit makes the compression rate of the lossy compression method higher than the compression rate of the lossless compression method when compressing the image data;
A computer program characterized by the above.
前記画像データの圧縮方式を示すデータが前記画像データのヘッダに含められることを特徴とする請求項1記載のコンピュータプログラム。 Claim 1 Symbol placement computer program data indicating the compression method of the image data is characterized in that it is included in a header of the image data.
JP2009171630A 2009-07-22 2009-07-22 Computer program Active JP5268813B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009171630A JP5268813B2 (en) 2009-07-22 2009-07-22 Computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009171630A JP5268813B2 (en) 2009-07-22 2009-07-22 Computer program

Publications (2)

Publication Number Publication Date
JP2011028404A JP2011028404A (en) 2011-02-10
JP5268813B2 true JP5268813B2 (en) 2013-08-21

Family

ID=43637102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009171630A Active JP5268813B2 (en) 2009-07-22 2009-07-22 Computer program

Country Status (1)

Country Link
JP (1) JP5268813B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07306760A (en) * 1994-05-12 1995-11-21 Canon Inc Electronic device and control method thereof
JP3342236B2 (en) * 1995-06-09 2002-11-05 キヤノン株式会社 Information processing apparatus and control method therefor
JP2000194516A (en) * 1998-12-28 2000-07-14 Canon Inc Image processing method and apparatus
JP4166399B2 (en) * 2000-01-21 2008-10-15 富士フイルム株式会社 Data format converter
JP2007060058A (en) * 2005-08-23 2007-03-08 Sharp Corp Printer control apparatus, printer control method, printer control program, and recording medium

Also Published As

Publication number Publication date
JP2011028404A (en) 2011-02-10

Similar Documents

Publication Publication Date Title
CN101101478B (en) Information processing device, information processing method and information processing system
JP6107246B2 (en) Image processing apparatus, image processing apparatus control method, and image processing apparatus control program
JP5268813B2 (en) Computer program
US20100165395A1 (en) Image processing apparatus, image processing system, and control method for image processing apparatus
US8582153B2 (en) Image forming apparatus and method
JP2009086989A (en) Image forming system, image forming apparatus and program
JP4185443B2 (en) Image forming system, information terminal device included therein, and control method of image forming system
JP2010237816A (en) Server device, client device, client server system, image output method, and program
JP5145278B2 (en) Image processing device
JP5245853B2 (en) Image forming apparatus
JP6914027B2 (en) Image forming device, image forming method
US9049404B2 (en) Image processing apparatus and method that perform multiple image processes, and storage medium storing a program thereof, for decompressing a compressed image according to first and second information indicating image processing to be performed
TWI908159B (en) Printing device and printing method
JP5576033B2 (en) Data processing device
US8207979B2 (en) Image processing apparatus, image processing method, and computer program product
JP2007215001A (en) Image processing apparatus, image processing system, and image processing method
JP5004322B2 (en) Data transfer control method, apparatus, and image forming apparatus
JP6140973B2 (en) Image processing apparatus, image processing method, and program
JP4952153B2 (en) Printing apparatus and printing method
TW202600360A (en) Printing device and printing method
US20040239997A1 (en) Method and apparatus to process facsimile data using a computer
JP5145277B2 (en) Image processing device
JP2002240368A (en) Still image printer controller
JP2008263311A (en) Image forming apparatus
JP2011049698A (en) Image forming apparatus and image forming system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110926

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120919

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120925

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121109

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130507

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5268813

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150