JP2015097400A - Color conversion device, method and program for color designation printing - Google Patents

Color conversion device, method and program for color designation printing Download PDF

Info

Publication number
JP2015097400A
JP2015097400A JP2014256771A JP2014256771A JP2015097400A JP 2015097400 A JP2015097400 A JP 2015097400A JP 2014256771 A JP2014256771 A JP 2014256771A JP 2014256771 A JP2014256771 A JP 2014256771A JP 2015097400 A JP2015097400 A JP 2015097400A
Authority
JP
Japan
Prior art keywords
color
print
classification
converted
colors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014256771A
Other languages
Japanese (ja)
Other versions
JP2015097400A5 (en
JP6070682B2 (en
Inventor
小林 正樹
Masaki Kobayashi
正樹 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2014256771A priority Critical patent/JP6070682B2/en
Publication of JP2015097400A publication Critical patent/JP2015097400A/en
Publication of JP2015097400A5 publication Critical patent/JP2015097400A5/en
Application granted granted Critical
Publication of JP6070682B2 publication Critical patent/JP6070682B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide a color conversion device, a method and a program for realizing color designation printing in a print operation which can realize color designation printing desired by a user for print object data in which a plurality of colors are designated as a print command.SOLUTION: A color space conversion section 102 receives input of a print command from an application section 108 and converts colors designated by the print command into colors on a color space expressed by brightness, saturation and hue. A color classification section 103 classifies the converted color in one classification color among a plurality of classification colors using the brightness, saturation and hue of the color as a reference. A classification color → print color conversion section 104 converts each of the classification colors classified on the basis of color correspondence information in which correspondence between the plurality of classification colors and one or more print colors is set into one print color among the one or more print colors, and outputs the print color in correspondence with the input print command.

Description

本発明は、印刷動作において色指定印刷を実現するための色変換装置、方法、及びプログラムに関する。   The present invention relates to a color conversion apparatus, method, and program for realizing color designation printing in a printing operation.

印刷装置等への印刷動作において、トナーまたはインクを節約しながらチラシ等の大量の印刷を行うことを目的として、印刷色を指定した色指定印刷が行われる。例えば、「赤」と「黒」の2色を指定した2色刷りである。   In a printing operation to a printing apparatus or the like, color designation printing in which a printing color is designated is performed for the purpose of printing a large amount of leaflets or the like while saving toner or ink. For example, a two-color printing in which two colors of “red” and “black” are designated.

従来、アプリケーションプログラムからの印刷コマンドで指定された主色または副色の印刷色をプリンタで設定された第1または第2のインク色に変換し、変換された印刷色情報を含む印刷コマンドをプリンタに送信することで、2色印刷を実現した技術が知られている(例えば特許文献1に記載の技術)。   Conventionally, a primary or secondary print color designated by a print command from an application program is converted to a first or second ink color set by a printer, and the print command including the converted print color information is converted to a printer. A technique that realizes two-color printing by transmitting to (for example, a technique described in Patent Document 1) is known.

この場合、主色または副色と第1または第2のインク色とのカラー対応情報がユーザ等によって予め設定される。そして、印刷コマンドの発行時に、主色が指定されているか副色が指定されているかが検出され、その検出された色が予め設定されたカラー対応情報に基づいて第1または第2のインク色に変換される。   In this case, color correspondence information between the main color or sub color and the first or second ink color is preset by the user or the like. Then, when the print command is issued, it is detected whether the primary color or the secondary color is specified, and the detected color is the first or second ink color based on preset color correspondence information. Is converted to

特許第4052415号公報Japanese Patent No. 4052415

ここで、ユーザが、アプリケーションソフトウェア上で複数の色(所謂フルカラー)を用いて印刷対象となるテキストデータ、グラフィックデータ、イメージデータ等またはそれらの組合せのデータ(以下、「印刷対象データ」と呼ぶ)を作成し、その印刷対象データに基づいて例えば印刷色を指定(例えば「赤」と「黒」の2色を指定)した色指定印刷を行いたいとする。   Here, text data, graphic data, image data, etc. to be printed using a plurality of colors (so-called full color) on the application software, or a combination thereof (hereinafter referred to as “printing target data”). , And for example, it is desired to perform color designation printing in which print colors are designated (for example, two colors of “red” and “black” are designated) based on the print target data.

この場合、従来は、印刷対象データに対応する各印刷コマンドに指定されている色情報から主色(例えば「赤」)の色情報が検出され、その主色の色情報がプリンタの例えば第1のインク色(例えば「赤」インク色)の色情報に変換される。また、印刷コマンドに指定されている主色以外の色情報が検出されたときには、その色情報がプリンタの例えば第2のインク色(例えば「黒」インク色)の色情報に変換される。   In this case, conventionally, color information of the main color (for example, “red”) is detected from the color information specified in each print command corresponding to the print target data, and the color information of the main color is, for example, the first information of the printer. Is converted into color information of the ink color (for example, “red” ink color). When color information other than the main color specified in the print command is detected, the color information is converted into color information of the second ink color (for example, “black” ink color) of the printer.

しかしながら、従来は、印刷対象データ中の特定の色を例えば2色印刷色中のいずれかに対応させるという単純な指定しかできなかった。このため、ユーザが所望する2色印刷を行うためには、印刷対象データを作成する段階から2色印刷を強く意識した色指定を行う必要があった。
この結果、従来は、例えば予め作成されている多色パンフレットの印刷対象データに対して、ユーザが所望する色指定印刷を行うことは困難であるという問題点を有していた。
However, in the past, only a simple designation of associating a specific color in the print target data with, for example, one of the two-color print colors has been possible. For this reason, in order to perform the two-color printing desired by the user, it is necessary to perform color designation with a strong awareness of two-color printing from the stage of creating the print target data.
As a result, conventionally, for example, it has been difficult to perform color designation printing desired by a user on print target data of a multicolor brochure prepared in advance.

そこで、本発明は、印刷コマンドとして複数の色(所謂フルカラー)が指定されている印刷対象データに対してユーザが所望する色指定印刷を実現することをする。   Therefore, the present invention realizes color designation printing desired by a user for print target data in which a plurality of colors (so-called full color) are designated as print commands.

態様の一例では、印刷コマンドで指定されているRGB指定色を、明度、彩度、および色相によって表現される色空間上の変換色に変換する色空間変換部と、
該変換色を、該変換色の明度、彩度、および色相を基準に、黒色およびグレー色を含む複数の分類色のうちの1つの分類色に分類する色分類部と、
前記複数の分類色と1色以上の印刷色との対応関係を設定した色対応関係情報に基づいて、前記1色以上の印刷色の中から前記1つの分類色に対応付けられた1つの印刷色を決定し、該1つの印刷色を前記印刷コマンドに対応付ける分類色印刷色対応付け部と、
を備え、
前記色分類部は、
前記変換色の明度が所定の明度閾値に比較して大きくない場合に、該変換色を黒色の分類色に分類し、前記変換色の明度が前記明度閾値に比較して同じか又は大きい場合であって、該変換色の彩度が所定の彩度閾値に比較して大きくない場合に、該変換色をグレー色の分類色に分類する。
In an example of the aspect, a color space conversion unit that converts the RGB designated color specified by the print command into a converted color on a color space expressed by brightness, saturation, and hue;
A color classification unit that classifies the converted color into one classified color among a plurality of classified colors including black and gray colors based on the lightness, saturation, and hue of the converted color;
One print associated with the one classification color out of the one or more print colors based on color correspondence information in which a correspondence relation between the plurality of classification colors and one or more print colors is set. A classification color print color associating unit that determines a color and associates the one print color with the print command;
With
The color classification unit
When the brightness of the converted color is not large compared to a predetermined brightness threshold, the converted color is classified into a black classification color, and the brightness of the converted color is the same or larger than the brightness threshold. If the saturation of the converted color is not greater than a predetermined saturation threshold, the converted color is classified into a gray classification color.

本発明によれば、印刷コマンドとして複数の色(所謂フルカラー)が指定されている印刷対象データに対してユーザが所望する色指定印刷を実現することが可能となる。   According to the present invention, it is possible to realize color designation printing desired by a user for print target data in which a plurality of colors (so-called full color) are designated as print commands.

本実施形態による色変換装置のブロック図である。It is a block diagram of the color conversion apparatus by this embodiment. HSL色空間の説明図である。It is explanatory drawing of HSL color space. 本色分類の説明図である。It is explanatory drawing of this color classification. 本実施形態の印刷システムのハードウェア構成図である。It is a hardware block diagram of the printing system of this embodiment. 色分類のための閾値データのデータ構成例を示す図である。It is a figure which shows the data structural example of the threshold value data for color classification. 印刷色設定データのデータ構成例を示す図である。It is a figure which shows the data structural example of printing color setting data. カラー設定画面の構成例を示す図である。It is a figure which shows the structural example of a color setting screen. カラー設定データのデータ構成例を示す図である。It is a figure which shows the data structural example of color setting data. 分類色→印刷色変換テーブルのデータ構成例を示す図(ケースA)である。It is a figure (case A) which shows the example of a data structure of a classification color-> printing color conversion table. 分類色−>印刷色変換テーブルのデータ構成例を示す図(ケースB)である。It is a figure (case B) which shows the example of a data structure of a classification color-> printing color conversion table. 分類色−>印刷色変換テーブルのデータ構成例を示す図(ケースC)である。It is a figure (case C) which shows the example of a data structure of classification color-> printing color conversion table. 分類色−>印刷色変換テーブルのデータ構成例を示す図(ケースD)である。It is a figure (case D) which shows the example of a data structure of classification color-> printing color conversion table. 本実施形態による色変換処理を示すフローチャートである。It is a flowchart which shows the color conversion process by this embodiment. 色分類処理を示すフローチャートである。It is a flowchart which shows a color classification process. 本実施形態の印刷対象データの例を示す図である。It is a figure which shows the example of the printing object data of this embodiment. 本実施形態における「赤以外は「黒」に変換する」処理を示す説明図である。It is explanatory drawing which shows the process which "converts it into" black "except red" in this embodiment. 本実施形態における「黒以外は「赤」に変換する」処理を示す説明図である。It is explanatory drawing which shows the process which "converts other than black to" red "" in this embodiment. 本実施形態におけるテキストおよびグラフィックについて「黒以外は「赤」に変換する」とし、イメージについて「全て「黒」に変換する」処理を示す説明図である。It is explanatory drawing which shows the process of "converting into" red "except for black" about the text and the graphic in this embodiment, and "converting into all" black "" about an image. 本実施形態におけるテキストについて「全て「赤」に変換する」とし、イメージ、グラフィックについて「全て「黒」に変換する」処理を示す説明図である。FIG. 11 is an explanatory diagram illustrating a process of “converting all to“ red ”” for text and “converting all to“ black ”” for images and graphics in the present embodiment. 本実施形態におけるテキスト、グラフィック、イメージの全てについて「赤以外は「黒」に変換する」とし、さらにイメージについて「黒:元濃度保持」とする処理を示す説明図である。It is explanatory drawing which shows the process which makes it "convert to" black "except red" about all of the text in this embodiment, a graphic, and an image, and also sets it as "black: original density maintenance" about an image. 本実施形態におけるテキスト、グラフィック、イメージの全てについて「黒以外は「赤」に変換する」とし、さらにイメージについて「赤:元濃度保持」とする処理を示す説明図である。It is explanatory drawing which shows the process which makes it "convert into" red "except black" about all the texts, graphics, and images in this embodiment, and also sets "red: original density maintenance" about an image. 本実施形態における中間調の処理の説明図(その1)である。It is explanatory drawing (the 1) of the process of the halftone in this embodiment. 本実施形態における中間調の処理の説明図(その2)である。It is explanatory drawing (the 2) of the process of the halftone in this embodiment.

以下、本発明を実施するための形態について図面を参照しながら詳細に説明する。
図1は、本実施形態による色変換装置のブロック図である。
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram of the color conversion apparatus according to the present embodiment.

本実施形態では、ホストコンピュータ100が、印刷を実行するプリンタ装置110に、例えばUSB(Universal Serial Bus)ケーブルまたはLAN(Local Area Network)接続(ケーブルまたは無線)によって接続される。   In the present embodiment, the host computer 100 is connected to the printer apparatus 110 that executes printing by, for example, a USB (Universal Serial Bus) cable or a LAN (Local Area Network) connection (cable or wireless).

そして、本実施形態による色変換装置は例えば、ホストコンピュータ100上で実行されるプリンタドライバ101の一部機能として実装される。   The color conversion apparatus according to the present embodiment is mounted as a partial function of the printer driver 101 executed on the host computer 100, for example.

この場合、プリンタドライバ101中の色変換機能は、ホストコンピュータ100上で実行される例えばワードプロセッサソフトウェアまたは表計算ソフトウェアなどのアプリケーション部108からの印刷コマンドを処理して、各印刷コマンドで指定されている色を印刷色に変換する。   In this case, the color conversion function in the printer driver 101 is designated by each print command by processing a print command from the application unit 108 such as word processor software or spreadsheet software executed on the host computer 100. Convert colors to print colors.

そして、プリンタドライバ101中の特には図示しない印刷コマンド実行機能は、印刷色に変換された印刷コマンドを解釈して、各印刷コマンドに対応する印刷イメージデータを、画像記憶部109内の各印刷コマンドで指定されている印刷色に対応する画像メモリに展開する。印刷色が例えば、赤色と黒色の2色である場合には、K(blacK)ステーション用の画像メモリと、C(Cyan)ステーション用の画像メモリに、それぞれ印刷イメージデータが展開される。   A print command execution function (not shown) in the printer driver 101 interprets the print command converted into the print color and converts the print image data corresponding to each print command to each print command in the image storage unit 109. The image is expanded in the image memory corresponding to the print color specified in. For example, when the print colors are two colors of red and black, the print image data is developed in the image memory for the K (blakK) station and the image memory for the C (Cyan) station.

プリンタドライバ101は、画像記憶部109内の各画像メモリに展開された印刷イメージデータを、プリンタ装置110に転送する。プリンタ装置110は、ホストコンピュータ100側の画像記憶部109と同様の画像記憶部111を備えている。ホストコンピュータ100側の画像記憶部109内の例えばKステーションとCステーション用の各画像メモリ内に展開された各印刷イメージデータは、プリンタ装置110側の画像記憶部111内のKステーションとCステーション用の各画像メモリに転送される。プリンタ装置110側の画像記憶部110内の各ステーションの画像メモリは、印刷実行部112で印刷実行される各トナー色に対応している。2色刷りが実行される場合には、印刷実行部112には例えば、Kステーションに対応して黒色の印刷色のトナーがセットされ、Cステーションに対応して赤色の印刷色のトナーがセットされている。これにより、印刷実行部112において、画像記憶部111内のKステーション用の画像メモリに転送された印刷イメージデータが黒色の印刷色で印刷され、Cステーション用の画像メモリに転送された印刷イメージデータが赤色の印刷色で印刷される。   The printer driver 101 transfers the print image data expanded in each image memory in the image storage unit 109 to the printer device 110. The printer apparatus 110 includes an image storage unit 111 similar to the image storage unit 109 on the host computer 100 side. For example, each print image data developed in each image memory for K station and C station in the image storage unit 109 on the host computer 100 side is used for K station and C station in the image storage unit 111 on the printer apparatus 110 side. To each image memory. The image memory of each station in the image storage unit 110 on the printer device 110 side corresponds to each toner color to be printed by the print execution unit 112. When two-color printing is executed, for example, black print color toner is set corresponding to the K station, and red print color toner is set corresponding to the C station. Yes. As a result, the print image data transferred to the image memory for the K station in the image storage unit 111 in the print execution unit 112 is printed in black print color, and the print image data transferred to the image memory for the C station. Is printed in red printing color.

プリンタドライバ101内の機能として実現される色変換装置は、以下の構成を有する。   A color conversion apparatus realized as a function in the printer driver 101 has the following configuration.

色空間変換部102は、アプリケーション部108から印刷コマンドを入力し、印刷コマンドで指定されている色を、明度、彩度、および色相によって表現される色空間上の色に変換する。この色空間は例えば、色相(Hue)、彩度(Saturation)、輝度または明度(Lightness/LuminanceまたはIntensity)の3つの成分からなるHSL(「HLS」とも称する)色空間である。   The color space conversion unit 102 receives a print command from the application unit 108, and converts the color specified by the print command into a color on a color space expressed by lightness, saturation, and hue. This color space is, for example, an HSL (also referred to as “HLS”) color space including three components of hue (Hue), saturation (Saturation), luminance, and brightness (Lightness / Luminance or Intensity).

色分類部103は、その変換された色を、色の明度、彩度、および色相を基準に複数の分類色のうちの1つの分類色に分類する。この色分類部103は例えば、変換された色の明度が所定の明度閾値に比較して大きくない場合に、その変換された色を黒色の分類色に分類する。色分類部103は例えば、変換された色の明度が上記所定の明度閾値に比較して大きい場合であって、その変換された色の彩度が所定の彩度閾値に比較して大きくない場合に、その変換された色をグレー色の分類色に分類する。色分類部103は例えば、変換された色の明度が上記所定の明度閾値に比較して大きく、かつ変換された色の彩度も上記所定の彩度閾値に比較して大きい場合に、その変換された色の色相に基づいて変換された色を黒色およびグレー色以外の複数の分類色(例えば、赤色、黄色、緑色、青色)に分類する。   The color classification unit 103 classifies the converted color into one of a plurality of classification colors based on the lightness, saturation, and hue of the color. For example, when the brightness of the converted color is not large compared to a predetermined brightness threshold, the color classification unit 103 classifies the converted color into a black classification color. For example, the color classification unit 103 is a case where the lightness of the converted color is larger than the predetermined lightness threshold value, and the saturation of the converted color is not large compared to the predetermined lightness threshold value. Then, the converted color is classified into a gray classification color. For example, the color classification unit 103 converts the converted color when the lightness of the converted color is larger than the predetermined lightness threshold and the saturation of the converted color is larger than the predetermined saturation threshold. The color converted on the basis of the hue of the selected color is classified into a plurality of classification colors other than black and gray (for example, red, yellow, green, and blue).

分類色→印刷色変換部104は、複数の分類色と1色以上の印刷色との対応関係を設定した色対応関係情報に基づいて分類された分類色の各々を1色以上の印刷色のうちの1つの印刷色に変換し、その印刷色を入力した印刷コマンドに対応させて出力する。   The classification color → print color conversion unit 104 sets each of the classification colors classified based on the color correspondence information in which the correspondence relation between a plurality of classification colors and one or more printing colors is set to one or more printing colors. One of the print colors is converted, and the print color is output in correspondence with the input print command.

本実施形態ではさらに、印刷色ごとに、その印刷色に中間調を使う旨が予め設定されている場合に、その印刷色に変換される色分類部103にて分類された分類色に対応する色空間上の明度に基づいて、その印刷色における印刷濃度を算出し、算出された印刷濃度をその印刷色に設定する中間調制御部105をさらに備えてよい。   Further, in the present embodiment, for each print color, when it is set in advance that a halftone is used for the print color, it corresponds to the classified color classified by the color classification unit 103 converted to the print color. A halftone control unit 105 may be further provided that calculates the print density of the print color based on the lightness in the color space and sets the calculated print density to the print color.

また、本実施形態ではさらに、印刷色ごとに、その印刷色に中間調を使う旨が予め設定されている場合において、さらにその印刷色に変換される色分類部103にて分類された分類色の元濃度を保持する設定がされている場合に、算出された印刷濃度に色分類部103にて分類された分類色に対応する所定の定数を乗算し、その乗算の結果得られる印刷濃度を印刷色に設定する元濃度保持制御部106をさらに備えてよい。   Further, in the present embodiment, for each print color, when it is preset that a halftone is used for the print color, the classified color further classified by the color classification unit 103 converted to the print color Is set to hold the original density, the calculated print density is multiplied by a predetermined constant corresponding to the classified color classified by the color classification unit 103, and the print density obtained as a result of the multiplication is multiplied by An original density holding control unit 106 that sets the print color may be further provided.

本実施形態では加えて、以下のような設定部107を備えてよい。この設定部107はまず例えば、分類色→印刷色変換部104にて使用される色対応関係情報を設定する色対応関係情報設定部として機能する。また、設定部107は例えば、印刷色ごとに、その印刷色に中間調を使うか否かを設定する中間調設定部として機能する。さらに、設定部107は例えば、印刷色ごとに、その印刷色に中間調を使う旨が予め設定されている場合において、さらにその印刷色に変換される色分類部103にて分類された分類色の元濃度を保持するか否かを設定する元濃度保持設定部として機能する。   In addition to this embodiment, the following setting unit 107 may be provided. The setting unit 107 first functions as a color correspondence information setting unit that sets color correspondence information used in the classification color → print color conversion unit 104, for example. For example, the setting unit 107 functions as a halftone setting unit that sets whether to use a halftone for each print color. Further, the setting unit 107, for example, in the case where it is set in advance for each print color that the halftone is used for the print color, is further classified by the color classification unit 103 that is converted to the print color. Functions as an original density holding setting unit for setting whether or not to hold the original density.

図1に示される構成において、色空間変換部102、色分類部103、分類色→印刷色変換部104、中間調制御部105、元濃度保持制御部106、および設定部107の各機能部は、ホストコンピュータ100内ではなく、ホストコンピュータ100から入力される印刷コマンド、またはプリンタ装置110に接続される特には図示しない記録媒体に記憶されている印刷対象データを印刷処理することにより生成される印刷コマンドを処理する機能として、プリンタ装置110上で稼働するように構成してもよい。   In the configuration shown in FIG. 1, the color space conversion unit 102, color classification unit 103, classification color → print color conversion unit 104, halftone control unit 105, original density retention control unit 106, and setting unit 107 have functional units. The print command generated from the print command input from the host computer 100, not the host computer 100, or the print target data stored in the recording medium (not shown) connected to the printer device 110 is printed. It may be configured to operate on the printer apparatus 110 as a function for processing a command.

図2は、色空間変換部102において変換されるHSL色空間の説明図である。例えばHSL色空間における明度Lと彩度Sと色相Hとの関係は、図2に示されるような双円錐形状を有する。   FIG. 2 is an explanatory diagram of the HSL color space converted by the color space conversion unit 102. For example, the relationship among lightness L, saturation S, and hue H in the HSL color space has a biconical shape as shown in FIG.

明度Lは、人間の色に対する感覚において、色の明るさに対応している。明度Lが大きければ、人間はその色をより明るい色として感じる。逆に、明度Lが小さければ、人間はその色をより暗い色として感じ、明度Lが非常に小さければ、人間はその色を黒色に近い色として感じる。明度Lは、例えばL=0のときに黒色になり、L=1のときに白色になる。   The lightness L corresponds to the brightness of the color in the sense of human color. If the lightness L is large, the human perceives the color as a brighter color. On the contrary, if the lightness L is small, the human will feel the color as a darker color, and if the lightness L is very small, the human will feel the color as a color close to black. The lightness L is, for example, black when L = 0 and white when L = 1.

彩度Sは、人間の色に対する感覚において、色のあざやかさに対応している。彩度Sが大きければ、人間はその色をよりあざやかな色として感じる。逆に、彩度Sが小さければ、人間はその色をよりくすんだ色として感じ、彩度Sが非常に小さければ、人間はその色をグレー色に近い色として感じる。
図2の双円錐形状から理解されるように、彩度Sは、明度Lによって、そのとり得る範囲が定まる。図2の例では、彩度Sは、明度L=0.5のときに最大の彩度値をとることができ、そこからL=0またはL=1になるに従って、とり得る彩度の大きさが小さくなる。
The saturation S corresponds to the vividness of the color in the human sense of color. If the saturation S is large, humans feel that color as a more vivid color. On the contrary, if the saturation S is small, the human feels the color more dull, and if the saturation S is very small, the human feels the color close to a gray color.
As can be understood from the bicone shape of FIG. 2, the possible range of the saturation S is determined by the lightness L. In the example of FIG. 2, the saturation S can take the maximum saturation value when the lightness L = 0.5, and the possible saturation increases as L = 0 or L = 1. Becomes smaller.

色相Hは、人間の色に対する感覚において、色の種類に対応している。色相Hは、例えば0°から360°までの値として規定できる。そして、H=0°または360°付近では、人間はその色を赤色に近い色として感じる。H=60°付近では、人間はその色を黄色に近い色として感じる。H=120°付近では、人間はその色を緑色に近い色として感じる。H=240°付近では、人間はその色を青色に近い色として感じる。   The hue H corresponds to the type of color in the sense of human color. The hue H can be defined as a value from 0 ° to 360 °, for example. In the vicinity of H = 0 ° or 360 °, the human perceives the color as a color close to red. In the vicinity of H = 60 °, humans perceive the color as a color close to yellow. In the vicinity of H = 120 °, a human feels that color as a color close to green. In the vicinity of H = 240 °, the human perceives the color as a color close to blue.

図1の色空間変換部102は、印刷コマンドに指定されている例えばRGB色空間上の色を、HSL色空間上の色に変換する。その上で、本実施形態の色分類部103は、図2の色空間の関係を用いて、HSL色空間上の色に変換された色を、例えば図2のように定義される明度L、彩度S、および色相Hを基準にして、次のように分類する。
図3は、本実施形態における色分類の説明図である。
The color space conversion unit 102 in FIG. 1 converts, for example, a color in the RGB color space specified in the print command into a color in the HSL color space. In addition, the color classification unit 103 of the present embodiment uses the color space relationship of FIG. 2 to convert the color converted into the color on the HSL color space, for example, the lightness L, which is defined as shown in FIG. Based on the saturation S and the hue H, classification is performed as follows.
FIG. 3 is an explanatory diagram of color classification in the present embodiment.

色分類部103は例えば、変換された色の図2で定義される明度Lが、図3(a)に示されるように、所定の黒色判定閾値(明度閾値)Blaに比較して大きくない範囲301(0≦L≦Bla)にある場合に、その変換された色を「黒色」の分類色に分類する。黒色判定閾値Blaの値は、例えば0.01程度である。
これにより、印刷コマンドで指定された色の明度Lが非常に小さければ、人間が感じるのと同様に、その色を「黒色」に分類することができる。
For example, the color classification unit 103 has a range in which the lightness L defined in FIG. 2 of the converted color is not large compared to a predetermined black determination threshold (lightness threshold) Bla, as shown in FIG. In the case of 301 (0 ≦ L ≦ Bla), the converted color is classified into the “black” classification color. The value of the black determination threshold value Bla is, for example, about 0.01.
Thus, if the lightness L of the color specified by the print command is very small, the color can be classified as “black” in the same way as a human sense.

次に、色分類部103は例えば、変換された色の明度が黒色判定閾値Blaに比較して大きい場合であって、その変換された色の図2で定義される彩度Sが、図3(b)に示されるように、所定のグレー色判定閾値(彩度閾値)Gryに比較して大きくない範囲302(0≦S≦Gry)にある場合に、その変換された色を「グレー色」の分類色に分類する。グレー色判定閾値Gryの値は、例えば0.01程度である。
これにより、印刷コマンドで指定された色の彩度Sが非常に小さければ、人間が感じるのと同様に、その色を「グレー色」に分類することができる。
Next, the color classification unit 103 is, for example, a case where the brightness of the converted color is greater than the black determination threshold value Bla, and the saturation S defined in FIG. As shown in (b), in the range 302 (0 ≦ S ≦ Gry) that is not larger than a predetermined gray color determination threshold value (saturation threshold value) Gry, the converted color is expressed as “gray color”. ”. The value of the gray color determination threshold Gry is about 0.01, for example.
As a result, if the saturation S of the color specified by the print command is very small, the color can be classified as “gray color” in the same way as a human sense.

さらに色分類部103は例えば、変換された色の明度Lが黒色判定閾値Blaに比較して大きく、かつ変換された色の彩度Sもグレー色判定閾値Gryに比較して大きい場合に、その変換された色の図2で定義される色相Hに基づいて、変換された色を「黒色」および「グレー色」以外の複数の分類色(例えば、「赤色」、「黄色」、「緑色」、「青色」)に分類する。   Further, for example, when the lightness L of the converted color is larger than the black determination threshold value Bla and the saturation S of the converted color is larger than the gray color determination threshold value Gry, the color classification unit 103 Based on the hue H defined in FIG. 2 of the converted color, the converted color is classified into a plurality of classification colors other than “black” and “gray” (for example, “red”, “yellow”, “green”). , “Blue”).

具体的には、色分類部103は、変換された色の色相Hが、図3(b)に示されるように、所定の赤色黄色境界閾値RYに比較して小さくなく、所定の黄色緑色境界閾値YGに比較して小さい範囲304にある場合に、その変換された色を「黄色」に分類する。赤色黄色境界閾値RYの値は、例えば52.5°程度、明度L=0.5の場合のRGB値でいえばRGB:255−223−0程度である。黄色緑色境界閾値YGは、例えば67.5°程度、明度L=0.5の場合のRGB値でいえばRGB:223−255−0程度である。   Specifically, the color classification unit 103 determines that the hue H of the converted color is not smaller than the predetermined red-yellow boundary threshold value RY as shown in FIG. When it is in a range 304 smaller than the threshold YG, the converted color is classified as “yellow”. The value of the red-yellow boundary threshold value RY is, for example, about RGB: 255-223-0 in terms of RGB values when the brightness L = 0.5. The yellow-green boundary threshold YG is, for example, about RGB: 223-255-0 in terms of RGB values when the brightness L is about 0.5.

また、色分類部103は、変換された色の色相Hが、図3(b)に示されるように、所定の黄色緑色境界閾値YGに比較して小さくなく、所定の緑色青色境界閾値GBに比較して小さい範囲305にある場合に、その変換された色を「緑色」に分類する。緑色青色境界閾値GBの値は、例えば180°程度、明度L=0.5の場合のRGB値でいえばRGB:0−255−255程度である。   Further, the color classification unit 103 determines that the hue H of the converted color is not smaller than the predetermined yellow-green boundary threshold YG and is set to the predetermined green-blue boundary threshold GB as shown in FIG. If it is in the smaller range 305, the converted color is classified as “green”. The value of the green-blue boundary threshold GB is, for example, about RGB: 0-255-255 in terms of the RGB value when the brightness L = 0.5.

また、色分類部103は、変換された色の色相Hが、図3(b)に示されるように、所定の緑色青色境界閾値GBに比較して小さくなく、所定の青色赤色境界閾値BRに比較して小さい範囲306にある場合に、その変換された色を「青色」に分類する。青色赤色境界閾値BRの値は、例えば300°程度、明度L=0.5の場合のRGB値でいえばRGB:255−0−255程度である。   In addition, the color classification unit 103 determines that the hue H of the converted color is not smaller than the predetermined green-blue boundary threshold GB and is set to the predetermined blue-red boundary threshold BR as shown in FIG. If it is in the smaller range 306, the converted color is classified as “blue”. The value of the blue-red boundary threshold BR is, for example, about RGB: 255-0-255 in terms of RGB values when the brightness L is 0.5.

そして、色分類部103は、変換された色の色相Hが、図3(b)に示されるように、上記以外の範囲、すなわち所定の青色赤色境界閾値BRから0°までの範囲と0°から所定の赤色黄色境界閾値RYまでの範囲303にある場合に、その変換された色を「赤色」に分類する。   The color classification unit 103 then converts the hue H of the converted color into a range other than the above, that is, a range from the predetermined blue-red boundary threshold BR to 0 ° and 0 ° as shown in FIG. To a predetermined red / yellow boundary threshold value RY, the converted color is classified as “red”.

なお、本実施形態ではさらに、通常の赤色は「赤色」に、また通常より濃い赤色は「黒赤」に分類できるようにするために、分類色として「赤色2」「赤色3」を備えることができる。色分類部103は、上述のようにして赤色への分類を行った後に、変換された色の明度Lが所定の赤色赤色2境界閾値R1に比較して小さくなければ最終的な分類色を「赤色」とする。また、色分類部103は、上述のようにして赤色への分類を行った後に、変換された色の明度Lが所定の赤色赤色2境界閾値R1に比較して小さく所定の赤色2赤色3境界閾値R2に比較して小さくなければ最終的な分類色を「赤色」より濃い「赤色2」とする。さらに色分類部103は、上述のようにして赤色への分類を行った後に、変換された色の明度Lが所定の赤色2赤色3境界閾値R2に比較して小さければ最終的な分類色を「赤色2」よりさらに濃い「赤色3」とする。「赤色2」「赤色3」の各分類色を使用しないときは、赤色赤色2境界閾値R1および赤色2赤色3境界閾値R2をともに0とすればよい。   In the present embodiment, “red 2” and “red 3” are provided as classification colors so that normal red can be classified as “red” and darker red than usual can be classified as “black red”. Can do. After performing the classification to red as described above, the color classification unit 103 determines the final classification color as long as the lightness L of the converted color is not smaller than the predetermined red-red two boundary threshold value R1. Red. In addition, after the color classification unit 103 performs the classification to red as described above, the lightness L of the converted color is smaller than the predetermined red-red 2-boundary threshold R1, and the predetermined red 2-red 3-boundary. If it is not smaller than the threshold value R2, the final classification color is “red 2” which is darker than “red”. Further, after the color classification unit 103 performs the classification to red as described above, if the lightness L of the converted color is smaller than the predetermined red 2 red 3 boundary threshold value R2, the final classification color is determined. “Red 3” is darker than “Red 2”. When the classification colors “red 2” and “red 3” are not used, both the red red 2 boundary threshold value R1 and the red 2 red 3 boundary threshold value R2 may be set to 0.

これにより、印刷コマンドで指定された色の明度Lが黒色判定閾値Blaに比較して大きく、かつ彩度Sがグレー色判定閾値Gryに比較して大きい範囲では、その色を人間が感じるのと同様の赤色、黄色、緑色、青色に分類することができる。   As a result, in a range where the lightness L of the color specified by the print command is large compared to the black determination threshold value Bla and the saturation S is large compared to the gray color determination threshold value Gry, humans feel that color. Similar red, yellow, green and blue can be classified.

本実施形態では、上述のように例えばHSL色空間上で人間の感覚に合わせて複数に分類された分類色と、プリンタ装置110の印刷実行部112にて印刷可能な1色以上の印刷色との対応関係が色対応関係情報として設定される。
この色対応関係情報は、例えば図1の設定部107によって、ユーザが、ホストコンピュータ100の表示画面上で設定することができる。この場合、分類色を人間の感覚の基準で指定することができるため、印刷対象データ中の黒色、グレー色、赤色、黄色、緑色、青色といった人間の感覚上のどの色を、赤色または黒色といったどの印刷色に対応させるかを、直感的に指定することが可能となる。
In the present embodiment, as described above, for example, classified colors classified into a plurality according to human senses in the HSL color space, and one or more print colors that can be printed by the print execution unit 112 of the printer device 110. Are set as color correspondence information.
The color correspondence information can be set on the display screen of the host computer 100 by the user, for example, using the setting unit 107 shown in FIG. In this case, since the classification color can be designated based on human sense standards, any color on the human sense such as black, gray, red, yellow, green, and blue in the print target data is red or black. It is possible to intuitively specify which print color corresponds to.

ユーザが希望するように指定した色対応関係情報に基づいて、図1の分類色→印刷色変換部104が、色分類部103にて分類された分類色の各々を1色以上の印刷色のうちの1つの印刷色に変換し、その印刷色を入力した印刷コマンドに対応させて出力することができる。この結果、複数色を用いて作成された例えばパンフレットなどの印刷対象データに対して、ユーザが希望する通りの色指定印刷を実行することが可能となる。   Based on the color correspondence information designated as desired by the user, the classified color → print color conversion unit 104 in FIG. 1 converts each of the classified colors classified by the color classification unit 103 into one or more print colors. One of the print colors can be converted, and the print color can be output in correspondence with the input print command. As a result, it is possible to perform color designation printing as desired by the user for print target data such as a pamphlet created using a plurality of colors.

本実施形態ではさらに、例えば設定部107において印刷色ごとに中間調を使うか否かを設定することにより、その設定されている場合には、図1の中間調制御部105が、その印刷色に変換される色分類部103にて分類された分類色に対応する色空間上の明度に基づいて、その印刷色における印刷濃度を算出してその印刷色に設定することができる。   In this embodiment, for example, by setting whether or not halftone is used for each print color in the setting unit 107, the halftone control unit 105 in FIG. Based on the lightness in the color space corresponding to the classified color classified by the color classification unit 103 converted into, the print density in the print color can be calculated and set to the print color.

例えば、ユーザは、色指定印刷において、例えば赤色(または黒色)の印刷色については、自然な階調の中間調で印刷を行いたいと希望する場合がある。本実施形態では、人間は中間調を色の明るさとしてとらえることに着目し、その印刷色に変換される印刷コマンド中の元の色の例えば図2で定義されるHSL色空間上の明度Lに応じて、その印刷色の印刷濃度が制御される。これにより、ユーザが希望する中間調による色指定印刷を実現することが可能となる。   For example, in color-designated printing, for example, for a red (or black) print color, the user may desire to print with a natural gradation halftone. In the present embodiment, attention is paid to the fact that humans perceive the halftone as the brightness of the color, and the lightness L in the HSL color space defined in FIG. 2, for example, of the original color in the print command converted to the print color. Accordingly, the print density of the print color is controlled. As a result, it is possible to realize color designation printing in a halftone desired by the user.

なお、印刷色に変換される分類色が黒色またはグレー色の場合には、中間調として制御される明度Lの範囲は、明度Lの全範囲(0≦L≦1)にわたる。これに対して、分類色が黒色およびグレー色以外の赤、黄、緑、青などの色の場合には、中間調として制御される明度Lの範囲を、これらの色が最高彩度となるL=0.5から白(L=1)までの範囲(0.5≦L≦1)とする。そこで、本実施形態では、印刷濃度を制御する明度Lの範囲を、分類色によって可変させることにより、印刷色ごとに自然な階調を実現することが可能となる。   When the classification color to be converted into the print color is black or gray, the range of brightness L controlled as a halftone is the entire range of brightness L (0 ≦ L ≦ 1). On the other hand, when the classified color is a color other than black and gray, such as red, yellow, green, and blue, these colors have the highest saturation within the lightness L range controlled as a halftone. A range from L = 0.5 to white (L = 1) (0.5 ≦ L ≦ 1) is set. Therefore, in the present embodiment, it is possible to realize a natural gradation for each print color by changing the range of the lightness L for controlling the print density according to the classification color.

本実施形態ではさらに、例えば設定部107において、印刷色に中間調を使う旨を設定した場合に、さらにその印刷色に変換する分類色の元濃度を保持する設定することにより、その設定がされている場合に、中間調として算出された印刷色の印刷濃度に、その印刷色に変換された分類色に対応する所定の定数を乗算して、印刷濃度を補正することができる。
ユーザによっては、印刷色の印刷濃度をその印刷色に変換される分類色の元の明度Lに忠実に対応させたほうがよいと希望する場合がある。このような場合には、元濃度保持の設定を行うことにより、ユーザの希望通りの中間調で印刷を行うことが可能となる。
Further, in the present embodiment, for example, when the setting unit 107 sets that the halftone is used for the print color, the setting is performed by further setting the original density of the classified color to be converted to the print color. In this case, it is possible to correct the print density by multiplying the print density of the print color calculated as a halftone by a predetermined constant corresponding to the classified color converted to the print color.
Depending on the user, it may be desired that the print density of the print color should correspond faithfully to the original lightness L of the classified color converted to the print color. In such a case, it is possible to perform printing in halftone as desired by the user by setting the original density retention.

以上の図1から図3で説明したようにして、本実施形態では、印刷コマンドとして複数の色が指定されている印刷対象データに対してユーザが所望する色指定印刷を実現することが可能となる。   As described above with reference to FIGS. 1 to 3, in the present embodiment, it is possible to realize color designation printing desired by the user for print target data in which a plurality of colors are designated as print commands. Become.

図4は、上述した図1で示される本実施形態の機能を実現するホストコンピュータ100およびプリンタ装置110からなる本実施形態の印刷システムのハードウェア構成図である。   FIG. 4 is a hardware configuration diagram of the printing system according to the present embodiment including the host computer 100 and the printer apparatus 110 that realize the functions of the present embodiment illustrated in FIG. 1 described above.

ホストコンピュータ100は、CPU401、ROM402、RAM403、入力装置404、出力装置405、USBまたはLANインタフェース(以下、「USB/LAN I/F」と称する)406、外部記憶装置407、および可搬記録媒体409が挿入される可搬記録媒体駆動装置408を備え、これらがバスによって接続された構成を有する。   The host computer 100 includes a CPU 401, ROM 402, RAM 403, input device 404, output device 405, USB or LAN interface (hereinafter referred to as “USB / LAN I / F”) 406, external storage device 407, and portable recording medium 409. The portable recording medium driving device 408 is inserted, and these are connected by a bus.

図4に示されるホストコンピュータ100の構成は本実施形態の印刷システムを実現できるホストコンピュータ100の一例であり、そのようなホストコンピュータ100はこの構成に限定されるものではない。   The configuration of the host computer 100 shown in FIG. 4 is an example of the host computer 100 that can realize the printing system of the present embodiment, and such a host computer 100 is not limited to this configuration.

CPU401は、当該ホストコンピュータ100全体の制御を行う。RAM(ランダムアクセスメモリ)403は、プログラムの実行、データ更新等の際に、ROM(リードオンリーメモリ)402または外部記憶装置407(或いは可搬記録媒体409)に記憶されているプログラム又はデータを一時的に格納するメモリである。
CPU401は、図1のプリンタドライバ101またはアプリケーション部108のプログラムをROM402または外部記憶装置407(或いは可搬記録媒体409)からRAM403に読み出して実行することにより、ホストコンピュータ100全体の制御を行う。
RAM403には、プリンタ装置110に転送される印刷イメージデータを記憶するための、図1の画像記憶部109内の各画像メモリ領域が確保されている。
The CPU 401 controls the entire host computer 100. A RAM (Random Access Memory) 403 temporarily stores a program or data stored in a ROM (Read Only Memory) 402 or an external storage device 407 (or a portable recording medium 409) when executing a program, updating data, or the like. This is a memory to store automatically.
The CPU 401 controls the entire host computer 100 by reading the program of the printer driver 101 or the application unit 108 of FIG. 1 from the ROM 402 or the external storage device 407 (or the portable recording medium 409) to the RAM 403 and executing it.
In the RAM 403, each image memory area in the image storage unit 109 of FIG. 1 for storing print image data transferred to the printer apparatus 110 is secured.

入力装置404は図1のプリンタドライバ101やアプリケーション部108の実行時に、ユーザがホストコンピュータ100に対して各種入力を行うための装置であり、出力装置405は例えば上記入力時の確認や実行データ等の表示を行うディスプレイ装置である。   The input device 404 is a device for the user to make various inputs to the host computer 100 when executing the printer driver 101 and the application unit 108 of FIG. 1, and the output device 405 includes, for example, the confirmation and execution data at the time of the input. It is a display apparatus which displays.

外部記憶装置407は、例えばハードディスク記憶装置またはソリッドディスク記憶装置であり、図1のプリンタドライバ101やアプリケーション部108のプログラムデータや各種データを記憶する。   The external storage device 407 is, for example, a hard disk storage device or a solid disk storage device, and stores program data and various data of the printer driver 101 and the application unit 108 of FIG.

可搬記録媒体駆動装置408は、光ディスクやSDRAM、コンパクトフラッシュ(登録商標)等の可搬記録媒体409を収容するもので、外部記憶装置407の補助の役割を有する。また、プリンタドライバ101やアプリケーション部108の各種プログラムのインストール等を行う。   The portable recording medium driving device 408 accommodates a portable recording medium 409 such as an optical disk, SDRAM, or Compact Flash (registered trademark), and has an auxiliary role for the external storage device 407. Also, various programs for the printer driver 101 and the application unit 108 are installed.

USB/LAN I/F406は、例えばUSB(ユニバーサルシリアルバス)、LAN(ローカルエリアネットワーク)、又はWiFi無線の通信回線を接続するための装置である。ホストコンピュータ100とプリンタ装置110も、このUSB/LAN I/F406を用いて接続される。   The USB / LAN I / F 406 is a device for connecting, for example, a USB (Universal Serial Bus), a LAN (Local Area Network), or a WiFi wireless communication line. The host computer 100 and the printer device 110 are also connected using this USB / LAN I / F 406.

本実施形態による印刷システムは、図13および図14のフローチャートや図8から図12のデータ構成等で実現される図1のプリンタドライバ101の機能を搭載したプログラムをCPU401が実行することで実現される。そのプログラムは、例えば外部記憶装置407や可搬記録媒体409に記録して配布してもよく、或いはUSB/LAN I/F406によりLANやインターネット等のネットワークから取得できるようにしてもよい。   The printing system according to the present embodiment is realized by the CPU 401 executing a program having the function of the printer driver 101 of FIG. 1 realized by the flowcharts of FIGS. 13 and 14 and the data configuration of FIGS. 8 to 12. The The program may be distributed by being recorded in, for example, the external storage device 407 or the portable recording medium 409, or may be acquired from a network such as a LAN or the Internet by the USB / LAN I / F 406.

プリンタ装置110は、CPU411、ROM412、RAM413、USB/LAN I/F414、プリンタエンジンインタフェース(以下、「プリンタエンジンI/F」と称する)415、プリント制御LSI416、およびプリンタエンジン417を備え、これらがバスによって接続された構成を有する。   The printer apparatus 110 includes a CPU 411, a ROM 412, a RAM 413, a USB / LAN I / F 414, a printer engine interface (hereinafter referred to as “printer engine I / F”) 415, a print control LSI 416, and a printer engine 417. It has the structure connected by.

図4に示されるプリンタ装置110の構成は本実施形態の印刷システムを実現できるプリンタ装置110の一例であり、そのようなプリンタ装置110はこの構成に限定されるものではない。   The configuration of the printer apparatus 110 shown in FIG. 4 is an example of the printer apparatus 110 that can implement the printing system of the present embodiment, and such a printer apparatus 110 is not limited to this configuration.

CPU411は、当該プリンタ装置110全体の制御を行う。RAM413は、印刷制御プログラムの実行、データ更新等の際に、ROM412に記憶されているプログラム又はデータを一時的に格納するメモリである。
CPU411は、特には図示しない印刷制御のためのプログラムをROM412からRAM413に読み出して実行することにより、プリンタ装置110全体の制御を行う。
RAM413には、ホストコンピュータ100からプリンタ装置110に転送された印刷イメージデータを記憶するための、図1の画像記憶部111内の各画像メモリ領域が確保されている。
The CPU 411 controls the printer apparatus 110 as a whole. The RAM 413 is a memory that temporarily stores a program or data stored in the ROM 412 when executing a print control program, updating data, or the like.
The CPU 411 controls the entire printer device 110 by reading a program for print control (not shown) from the ROM 412 to the RAM 413 and executing it.
In the RAM 413, each image memory area in the image storage unit 111 in FIG. 1 for storing print image data transferred from the host computer 100 to the printer apparatus 110 is secured.

USB/LAN I/F414は、ホストコンピュータ100内のUSB/LAN I/F406と同様の通信回線を接続するための装置である。   The USB / LAN I / F 414 is a device for connecting a communication line similar to the USB / LAN I / F 406 in the host computer 100.

ホストコンピュータ100のRAM403内の画像メモリ領域(図1の画像記憶部109に対応)からUSB/LAN I/F406を介して送信された印刷イメージデータは、プリンタ装置110において、CPU411の制御に従って、USB/LAN I/F414を介してRAM413内の画像メモリ領域(図1の画像記憶部111に対応)に書き込まれる。その後、プリント制御LSI 416が、RAM413内の画像メモリ領域に書き込まれた印刷イメージデータを、プリンタエンジンI/F415を介して、プリンタエンジン417に転送する。
プリンタエンジン417は、印刷機構を備え、上述のようにRAM413内の各画像メモリ領域から転送された各印刷イメージデータを、各画像メモリ領域に対応する各トナーを用いて重ねて印刷処理する。
Print image data transmitted from the image memory area in the RAM 403 of the host computer 100 (corresponding to the image storage unit 109 in FIG. 1) via the USB / LAN I / F 406 is transferred to the USB in the printer device 110 according to the control of the CPU 411. The data is written into the image memory area in the RAM 413 (corresponding to the image storage unit 111 in FIG. 1) via the / LAN I / F 414. Thereafter, the print control LSI 416 transfers the print image data written in the image memory area in the RAM 413 to the printer engine 417 via the printer engine I / F 415.
The printer engine 417 includes a printing mechanism, and prints the print image data transferred from each image memory area in the RAM 413 as described above by using each toner corresponding to each image memory area.

図5は、色分類のための閾値データのデータ構成例を示す図である。
図3で説明した黒色判定閾値Bla、グレー色判定閾値Gry、赤色黄色境界閾値RY、黄色緑色境界閾値YG、緑色青色境界閾値GB、青色赤色境界閾値BR、赤色赤色2境界閾値R1、および赤色2赤色3境界閾値R1の図5に示される各閾値データごとに、図5に示される各設定値が、図4の外部記憶装置407またはRAM403に記憶される。図4のCPU401は、各閾値データの名前を指定して、対応する設定値を読み出すことができる。
なお、図5の「閾値の意味」という項目は、本実施形態の説明のために便宜上掲載したものである。
FIG. 5 is a diagram illustrating a data configuration example of threshold data for color classification.
The black determination threshold value Bla, the gray color determination threshold value Gry, the red / yellow boundary threshold value RY, the yellow / green boundary threshold value YG, the green / blue boundary threshold value GB, the blue / red boundary threshold value BR, the red / red two boundary threshold value R1, and the red 2 described in FIG. Each set value shown in FIG. 5 is stored in the external storage device 407 or the RAM 403 in FIG. 4 for each threshold value data shown in FIG. 5 for the red 3 boundary threshold value R1. The CPU 401 in FIG. 4 can read the corresponding setting value by designating the name of each threshold data.
Note that the item “meaning threshold” in FIG. 5 is included for convenience of explanation of the present embodiment.

図5の各閾値データごとの設定値は、予めシステムの構築時に固定値として図4のROM402または外部記憶装置407に記憶させてもよいし、設定ファイルとして、ユーザが任意に変更可能としてもよい。ユーザが変更可能とすることにより、図3で説明した分類色の分類基準を、ユーザの要求に合うように自由に変更することが可能となる。   The setting value for each threshold data in FIG. 5 may be stored in advance in the ROM 402 or the external storage device 407 in FIG. 4 as a fixed value when the system is constructed, or may be arbitrarily changed by the user as a setting file. . By making the user changeable, it becomes possible to freely change the classification standard of the classification color described in FIG. 3 to meet the user's request.

図6は、印刷色を設定するための印刷色設定データのデータ構成例を示す図である。
本実施形態では、分類色の変換先となる印刷色データColとして、Col=0〜7の8色を指定することができる。そして、各印刷色ごとに、C、M、Y、Kの4つのステーション位置(トナー位置)のトナー量濃度値(パーセント値)が設定される。言い換えれば、図4のプリンタエンジン417は、C、M、Y、Kの4つのステーション位置に対応する4本のトナーを装着可能なように構成されている。本実施形態で説明する2色印刷が実行される場合には、プリンタエンジン417において例えば、Kステーションに対応するトナー位置に「黒色」の印刷色に対応するトナーが装着され、Cステーションに対応するトナー位置に「赤色」の印刷色に対応するトナーが装着され、MおよびYステーションに対応するトナー位置にはトナーは装着されない。これらの組合せは、もちろんこれに限られるものではない。
FIG. 6 is a diagram illustrating a data configuration example of print color setting data for setting a print color.
In the present embodiment, eight colors of Col = 0 to 7 can be designated as the print color data Col that is the conversion destination of the classified color. For each print color, toner amount density values (percentage values) at four station positions (toner positions) of C, M, Y, and K are set. In other words, the printer engine 417 of FIG. 4 is configured to be able to mount four toners corresponding to the four station positions of C, M, Y, and K. When the two-color printing described in the present embodiment is executed, for example, the printer engine 417 mounts the toner corresponding to the printing color “black” at the toner position corresponding to the K station, and corresponds to the C station. The toner corresponding to the “red” printing color is attached to the toner position, and the toner is not attached to the toner positions corresponding to the M and Y stations. Of course, these combinations are not limited to this.

図6の例では、印刷色データCol=0は、例えば「黒色」の印刷色に対応し、Kステーションのトナー量濃度値が100%に設定され、その他のC、M、Yの各ステーションのトナー量濃度値は0%に設定される。印刷色データCol=1は、例えば「赤色」の印刷色に対応し、Cステーションのトナー量濃度値が100%に設定され、その他のM、Y、Kの各ステーションのトナー量濃度値は0%に設定される。その他の印刷色データCol=2〜7については、全てのステーションのトナー量濃度値は0%に設定され、未使用とされる。   In the example of FIG. 6, the print color data Col = 0 corresponds to, for example, a “black” print color, the toner amount density value of the K station is set to 100%, and the other C, M, and Y stations are set. The toner amount density value is set to 0%. The print color data Col = 1 corresponds to, for example, “red” print color, the toner amount density value of the C station is set to 100%, and the toner amount density values of the other M, Y, and K stations are 0. % Is set. For other print color data Col = 2 to 7, the toner amount density values of all the stations are set to 0% and are not used.

図6に示される各印刷色データCol(0〜7)ごと、および各ステーション(C、M、Y、K)ごとのトナー量濃度値が、図4の外部記憶装置407またはRAM403に記憶される。図4のCPU401は、各印刷色データCol(0〜7)を指定して、対応する各ステーション(C、M、Y、K)ごとのトナー量濃度値を読み出すことができる。
なお、図6の「名称」という項目は、本実施形態の説明のために便宜上掲載したものである。
The toner amount density value for each print color data Col (0 to 7) and each station (C, M, Y, K) shown in FIG. 6 is stored in the external storage device 407 or RAM 403 in FIG. . The CPU 401 in FIG. 4 can specify each print color data Col (0 to 7) and read the toner amount density value for each corresponding station (C, M, Y, K).
Note that the item “name” in FIG. 6 is provided for convenience of explanation of the present embodiment.

図7は、図1のプリンタドライバ101中の設定部107の機能として実現されるカラー設定画面の構成例を示す図である。図4のCPU401は、特には図示しないカラー設定画面制御プログラムを実行することにより、図4の出力装置405のディスプレイに例えば図7に示されるカラー設定画面を表示することができ、ユーザはこの画面において、入力装置404のキーボードまたはマウスを操作しながら、カラー設定を行うことができる。   FIG. 7 is a diagram illustrating a configuration example of a color setting screen realized as a function of the setting unit 107 in the printer driver 101 of FIG. The CPU 401 in FIG. 4 can display a color setting screen shown in FIG. 7, for example, on the display of the output device 405 in FIG. 4 by executing a color setting screen control program (not shown). The color setting can be performed while operating the keyboard or mouse of the input device 404.

ユーザは、図7に示されるカラー設定画面において、図1のアプリケーション部108で作成した印刷対象データのテキストデータ、グラフィックデータ、およびイメージデータのそれぞれについて、まず、以下の4つの変換種類のうちのそれぞれいずれか1つを選択設定することができる。
全て「黒」に変換する
全て「赤」に変換する
黒以外は「赤」に変換する
赤以外は「黒」に変換する
図7において、左端に「●」印が付いている変換種類がユーザによって選択されたものであり、「○」印が付いている変換種類は選択されていない。
図7の例では、「テキスト」および「グラフィック」については「赤以外は「黒」に変換する」、「イメージ」については全て「黒」に変換するという変換種類が選択されていることが示されている。
In the color setting screen shown in FIG. 7, the user first selects one of the following four conversion types for each of the text data, graphic data, and image data of the print target data created by the application unit 108 shown in FIG. Any one of them can be selected and set.
Convert all to “black” Convert all to “red” Convert to “red” for anything other than black Convert to “black” for anything other than red In FIG. 7, the conversion type with the “●” mark at the left end is the user The conversion type marked with “◯” is not selected.
In the example of FIG. 7, “Text” and “Graphics” are selected as “Convert to black” except “Red”, and “Image” is all converted to “Black”. Has been.

次に、ユーザは、カラー設定画面において、色詳細として、「黒色」および「赤色」のそれぞれについて、
中間調を使う
元濃度保持
の選択設定をすることができる。図7において、「■」印が付いている色詳細がユーザによって選択されたものであり、「□」印が付いている色詳細は選択されていない。
図7の例では、「テキスト」および「グラフィック」については「黒色」および「赤色」ともに「中間調を使う」旨が設定され、「イメージ」については「黒色」のみが「中間調を使う」旨が設定され、「赤色」については中間調は使わない旨が設定されている。また、「テキスト」については「黒色」および「赤色」ともに「元濃度保持」はしない旨が設定され、「グラフィック」については「赤色」のみ「元濃度保持」をする旨が設定され、「イメージ」については「黒色」のみ「元濃度保持」をする旨が設定されている。
なお、「中間調を使う」が設定されていない場合には、「元濃度保持」は設定できないように画面表示が制御される。すなわち、元濃度保持をするか否かは、中間調を使う設定がされている場合のみ設定することができる。
Next, on the color setting screen, as the color details, for each of “black” and “red”,
You can select whether to maintain the original density using halftones. In FIG. 7, the color details with the “■” mark are selected by the user, and the color details with the “□” mark are not selected.
In the example of FIG. 7, “use halftone” is set for both “black” and “red” for “text” and “graphic”, and only “black” uses “halftone” for “image”. Is set, and “red” is set not to use halftones. For “Text”, “Black” and “Red” are both set to “Do not keep original density”, and “Graphic” is set to “Keep original density” only for “Red”. Is set to “hold original density” only for “black”.
If “use halftone” is not set, the screen display is controlled so that “main density retention” cannot be set. That is, whether or not to maintain the original density can be set only when the setting to use halftone is set.

図7のカラー設定画面の例により、図1のアプリケーション部108から或る印刷対象データに対する各印刷コマンドが発行された場合に、その印刷コマンドがテキストデータの印刷を指示する印刷コマンドである場合には、ユーザにより、次のような指定が行われたことになる。まず、印刷コマンド中の色として赤系の色が指定されている場合には「赤色」の印刷色になり、それ以外の系列の色が指定されている場合には「黒色」の印刷色になるような色指定が行われる。そして、「黒色」および「赤色」の印刷色ともに中間調の自然な階調になるような制御が行われる。   When each print command for certain print target data is issued from the application unit 108 in FIG. 1 according to the example of the color setting screen in FIG. 7, the print command is a print command instructing printing of text data. Means that the user has made the following designation. First, if a red color is specified as the color in the print command, the print color will be "red". If any other color is specified, the print color will be "black". Color designation is performed. Then, control is performed so that both “black” and “red” print colors have a natural gradation of halftone.

また、印刷コマンドがグラフィックデータの印刷を指示する印刷コマンドである場合には、ユーザにより、次のような指定が行われたことになる。まず、印刷コマンド中の色として赤系の色が指定されている場合には「赤色」の印刷色になり、それ以外の系列の色が指定されている場合には「黒色」の印刷色になるような色指定が行われる。そして、「黒色」および「赤色」の印刷色ともに中間調の自然な階調になるような制御が行われる。さらに、「赤色」の印刷色については元濃度を保持するような制御が行われる。   Further, when the print command is a print command for instructing printing of graphic data, the following designation is made by the user. First, if a red color is specified as the color in the print command, the print color will be "red". If any other color is specified, the print color will be "black". Color designation is performed. Then, control is performed so that both “black” and “red” print colors have a natural gradation of halftone. Further, control is performed to maintain the original density for the “red” printing color.

さらに、印刷コマンドがイメージデータの印刷を指示する印刷コマンドである場合には、ユーザにより、次のような指定が行われたことになる。まず、印刷コマンド中の色としてどの色が指定されても全て「黒色」の印刷色になるような色指定が行われる。そして、「黒色」の印刷色について中間調の自然な階調になり、かつ元濃度を保持するような制御が行われる。   Further, when the print command is a print command for instructing printing of image data, the following designation is performed by the user. First, color designation is performed so that all black colors are designated regardless of which color is designated in the print command. Then, the control is performed so that the “black” print color has a halftone natural gradation and maintains the original density.

図8は、図7のカラー設定画面を用いてユーザにより設定されたカラー設定データのデータ構成例を示す図である。このカラー設定データは、図1で説明した色対応関係情報の一部を構成するものである。
図7に例示されるカラー設定に対応して、「テキスト」「グラフィック」「イメージ」のそれぞれについて、次のデータが記憶される。まず、変換種類として、
全て「黒」に変換する
全て「赤」に変換する
黒以外は「赤」に変換する
赤以外は「黒」に変換する
のいずれかが設定される。次に、「黒色」および「赤色」の印刷色ごとに、「中間調を使う」か否か(「ON」または「OFF」)と、「元濃度保持」をするか否か(「ON」または「OFF」)が設定される。
このカラー設定データは、図4の外部記憶装置407またはRAM403に記憶される。図4のCPU401は、「テキスト」「グラフィック」「イメージ」の別と、「黒色」または「赤色」の印刷色の別を指定することにより、変換種類の設定と、「黒色」または「赤色」ごとの「中間調を使う」か否かと「元濃度保持」をするか否かの設定を読み出すことができる。
FIG. 8 is a diagram showing a data configuration example of color setting data set by the user using the color setting screen of FIG. This color setting data constitutes a part of the color correspondence information described with reference to FIG.
Corresponding to the color setting illustrated in FIG. 7, the following data is stored for each of “text”, “graphic”, and “image”. First, as the conversion type,
Convert all to “black” Convert all to “red” Convert to “red” except for black Convert to “black” except for red. Next, for each “black” and “red” printing color, “use halftone” (“ON” or “OFF”) and “hold original density” (“ON”). Or “OFF”) is set.
The color setting data is stored in the external storage device 407 or the RAM 403 in FIG. The CPU 401 in FIG. 4 designates the type of “text”, “graphic”, and “image” and the type of print color “black” or “red”, thereby setting the conversion type and “black” or “red”. It is possible to read out the setting of whether to use “halftone” and whether to perform “main density retention”.

図9から図12は、図1の分類色→印刷色変換テーブルのデータ構成例を示す図である。このテーブルデータは、図1で説明した色対応関係情報の一部を構成するものである。   9 to 12 are diagrams showing examples of the data configuration of the classification color → print color conversion table of FIG. This table data constitutes a part of the color correspondence information described with reference to FIG.

図9、図10、図11、および図12はそれぞれ、図8のカラー設定データにおいて、「テキスト」「グラフィック」「イメージ」を問わず、変換種類として「赤以外は「黒」に変換する」が設定されたケースA、「黒以外は「赤」に変換する」が設定されたケースB、「全て「黒」に変換する」が設定されたケースC、および「全て「赤」に変換する」が設定されたケースDのそれぞれの場合に参照されるデータセット群である。   9, 10, 11, and 12, in the color setting data of FIG. 8, regardless of “text”, “graphic”, and “image”, the conversion type is “convert to“ black ”except for red” ” Is set, case B is set to “convert to“ red ”except for black”, case C is set to “convert to all“ black ””, and “all convert to“ red ”. ”Is a data set group referred to in each case D.

図9から図12の各分類色→印刷色変換テーブルにおいて、入力した印刷コマンドで指定されている色に対応する図3で説明した分類色データCnvとして、0(「黒色」)、1(「グレー色」)、2(「赤色」)、3(「緑色」)、4(「青色」)、5(「黄色」)、6(「赤色2」)、7(「赤色3」)がそれぞれ指定されたときに、次のようなデータが設定されている。まず、指定された分類色をどの印刷色(図6参照)に変換するかを示す印刷色データColが設定されている。また、指定された分類色に対して中間調制御処理を行うか否かが、項目Graの値「YES」(行う)または「NO」(行わない)として設定されている。さらに、指定された分類色に対して元濃度保持制御処理を行うか否かが、項目Dnsの値「YES」(行う)または「NO」(行わない)として設定されている。   In the classified color → print color conversion tables of FIGS. 9 to 12, the classified color data Cnv described in FIG. 3 corresponding to the color specified by the input print command is 0 (“black”), 1 (“ Gray "), 2 (" red "), 3 (" green "), 4 (" blue "), 5 (" yellow "), 6 (" red 2 "), 7 (" red 3 "), respectively When specified, the following data is set. First, print color data Col indicating which print color (see FIG. 6) the specified classified color is to be converted is set. Whether or not halftone control processing is to be performed for the specified classification color is set as the value “YES” (performed) or “NO” (not performed) of the item Gra. Further, whether or not to perform the original density holding control process for the specified classified color is set as the value “YES” (performed) or “NO” (not performed) of the item Dns.

さらに、図9から図12の各ケースの分類色→印刷色変換テーブルごとに、図8のカラー設定データにおいて、「テキスト」「グラフィック」「イメージ」を問わず、「黒色」の印刷色について、「中間調を使う」設定をしたか否か(ONまたはOFF)および「元濃度保持」の設定をしたか否か(ONまたはOFF)、ならびに「赤色」の印刷色について、「中間調を使う」設定をしたか否か(ONまたはOFF)および「元濃度保持」の設定をしたか否か(ONまたはOFF)の4つの設定値の組合せパターンごとに、データセットが設定される。
図9のケースAでは、A0、A1、A2、A3、およびA4の5つのデータセットが設定される。データセットA1、A2、A3、およびA4において、濃い背景が設定されている項目は、ケースAの最初のデータセットA0に対して変更された値であることを示している。
図10のケースBでは、B0、B1、B2、B3、およびB4の5つのデータセットが設定される。データセットB0において、濃い背景が設定されている項目は、図9のケースAのデータセットA0に対して変更された値であることを示している。また、データセットB1、B2、B3、およびB4において、濃い背景が設定されている項目は、ケースBの最初のデータセットB0に対して変更された値であることを示している。
図11のケースCでは、C0、C1、およびC2の3つのデータセットが設定される。データセットC0において、濃い背景が設定されている項目は、図9のケースAのデータセットA0に対して変更された値であることを示している。また、データセットC1、およびC2において、濃い背景が設定されている項目は、ケースCの最初のデータセットC0に対して変更された値であることを示している。
図12のケースDでは、D0、D3、およびD4の3つのデータセットが設定される。データセットD0において、濃い背景が設定されている項目は、図9のケースAのデータセットA0に対して変更された値であることを示している。また、データセットD3、およびD4において、濃い背景が設定されている項目は、ケースDの最初のデータセットD0に対して変更された値であることを示している。
Further, for each classification color → printing color conversion table of FIGS. 9 to 12, in the color setting data of FIG. 8, regardless of “text”, “graphic”, and “image”, the printing color of “black” Whether “use halftone” is set (ON or OFF), whether “hold original density” is set (ON or OFF), and the print color “red” is “use halftone” A data set is set for each combination pattern of the four set values of whether or not “ON” is set (ON or OFF) and “original density hold” is set or not (ON or OFF).
In case A of FIG. 9, five data sets A0, A1, A2, A3, and A4 are set. In the data sets A1, A2, A3, and A4, items for which a dark background is set indicate that the values are changed with respect to the first data set A0 of the case A.
In case B of FIG. 10, five data sets B0, B1, B2, B3, and B4 are set. In the data set B0, an item for which a dark background is set indicates that the value is changed with respect to the data set A0 of case A in FIG. In addition, in the data sets B1, B2, B3, and B4, the item for which the dark background is set indicates that the value is changed with respect to the first data set B0 of the case B.
In case C of FIG. 11, three data sets of C0, C1, and C2 are set. In the data set C0, an item for which a dark background is set indicates that the value is changed with respect to the data set A0 of case A in FIG. In addition, in the data sets C1 and C2, the item for which the dark background is set indicates that the value is changed with respect to the first data set C0 of the case C.
In case D of FIG. 12, three data sets D0, D3, and D4 are set. In the data set D0, an item for which a dark background is set indicates that the value is changed with respect to the data set A0 of case A in FIG. In addition, in the data sets D3 and D4, the item for which the dark background is set indicates that the value is changed with respect to the first data set D0 of the case D.

図9のケースAについて、さらに詳しく説明する。ケースAは、「赤以外は「黒」に変換する」という場合である。
ケースAにおいて、印刷コマンドで指定された色が「赤色」の分類色(分類色データCnv=2)に分類された場合、データセットによらず、その分類色は「赤色」の印刷色(印刷色データCol=1、図6の説明参照)に変換されることが設定されている。
また、「赤色2」および「赤色3」については、それらを分類されるための赤色赤色2境界閾値R1および赤色2赤色3境界閾値R2が本実施形態では0に設定されており(図5参照)、「赤色」との区別がされていない。このため、図9のケースAでは、印刷コマンドで指定された色が「赤色2」または「赤色3」の分類色(分類色データCnv=6または7)に分類された場合、データセットによらず、その分類色は「赤色」の印刷色(印刷色データCol=1)に変換されることが設定されている。
一方、印刷コマンドで指定された色が「赤色」以外の分類色(分類色データCnv=0、1、3、4、または5)に分類された場合、データセットによらず、その分類色は「黒色」の印刷色(印刷色データCol=0、図6の説明参照)に変換されることが設定されている。
Case A in FIG. 9 will be described in more detail. Case A is a case where “other than red is converted to“ black ””.
In case A, when the color specified by the print command is classified into the “red” classification color (classification color data Cnv = 2), the classification color is the “red” printing color (printing) regardless of the data set. Color data Col = 1, see FIG. 6).
For “red 2” and “red 3”, the red-red 2 boundary threshold value R1 and the red-red 2 red- 3 boundary threshold value R2 for classifying them are set to 0 in this embodiment (see FIG. 5). ) And “red” are not distinguished. For this reason, in case A in FIG. 9, when the color specified by the print command is classified into the classification color of “red 2” or “red 3” (classification color data Cnv = 6 or 7), it depends on the data set. Instead, the classification color is set to be converted to a “red” print color (print color data Col = 1).
On the other hand, when the color specified by the print command is classified into a classification color other than “red” (classification color data Cnv = 0, 1, 3, 4, or 5), the classification color is not related to the data set. Conversion to “black” print color (print color data Col = 0, see description of FIG. 6) is set.

また、図8のカラー設定データにおいて、「テキスト」「グラフィック」「イメージ」を問わず、「黒色」の印刷色について、「中間調を使う」とし(ON)、「元濃度保持」を設定せず(OFF)、「赤色」の印刷色について、「中間調を使う」とし(ON)、「元濃度保持」を設定しない(OFF)場合には、図9のケースAにおいて、データセットA0が参照される。データセットA0では、「元濃度保持」はいずれの場合も行われない設定のため、各分類色データCnvごとの元濃度保持制御処理項目Dnsには「NO」が設定される。また、データセットA0では、「黒色」および「赤色」ともに「中間調を使う」が設定されているため、各分類色データCnvごとの中間調制御処理項目Graには「YES」が設定されている。ただし、分類色データCnv=0(「黒色」)に分類された場合は、「黒色」については明度Lの範囲が0から黒色判定閾値Blaまでの非常に狭い範囲であり中間調制御処理を行う意味がない。このため、分類色データCnv=0に対応する中間調制御処理項目Graには「NO」が設定されている。   In the color setting data shown in FIG. 8, regardless of “text”, “graphic”, or “image”, “use halftone” is set to “ON” for “black” print color, and “original density retention” is set. In the case where “OFF” and “red” are set to “use halftone” (ON) and “original density retention” is not set (OFF), in case A of FIG. Referenced. In the data set A0, since “original density retention” is not set in any case, “NO” is set in the original density retention control processing item Dns for each classification color data Cnv. In the data set A0, since “use halftone” is set for both “black” and “red”, “YES” is set for the halftone control processing item Gra for each classification color data Cnv. Yes. However, when the classification color data Cnv = 0 (“black”) is classified, the range of lightness L for “black” is a very narrow range from 0 to the black determination threshold value Bla, and halftone control processing is performed. meaningless. Therefore, “NO” is set in the halftone control processing item Gra corresponding to the classification color data Cnv = 0.

次に、図8のカラー設定データにおいて、「テキスト」「グラフィック」「イメージ」を問わず、「黒色」の印刷色について、「中間調を使う」とし(ON)、「元濃度保持」も設定し(ON)、「赤色」の印刷色について、「中間調を使う」とし(ON)、「元濃度保持」を設定しない(OFF)場合には、図9のケースAにおいて、データセットA1が参照される。このデータセットA0とA1の違いは、「黒色」の印刷色について「元濃度保持」を設定しない(OFF)かする(ON)かの違いである。データセットA1では、元濃度保持制御処理は、中間調制御処理をする「黒色」の印刷色について実行される。従って、「黒色」の印刷色に変換される分類色(分類色データCnv=1、3、4、5)について、元濃度保持制御処理項目Dnsに「YES」が設定される。なお、「黒色」の分類色(分類色データCnv=0)については、前述したように中間調制御処理項目Graは「NO」に設定されているため、元濃度保持制御処理項目Dnsも「NO」に設定されている。   Next, in the color setting data of FIG. 8, regardless of “text”, “graphic”, and “image”, “use halftone” is set to “ON” for “black” print color, and “hold original density” is also set. If the print color of “red” is “use halftone” (ON) and “hold original density” is not set (OFF), in case A of FIG. Referenced. The difference between the data sets A0 and A1 is that “original density retention” is not set (OFF) or not (ON) for the “black” print color. In the data set A1, the original density retention control process is executed for the “black” print color for which the halftone control process is performed. Accordingly, “YES” is set in the original density retention control processing item Dns for the classification color (classification color data Cnv = 1, 3, 4, 5) converted to the “black” printing color. As described above, since the halftone control process item Gra is set to “NO” for the “black” classification color (classification color data Cnv = 0), the original density retention control processing item Dns is also set to “NO”. "Is set.

以下同様にして、図9から図12の各ケースおよび各データセットごとに、適切な分類色から印刷色への変換規則を図1の色対応関係情報として設定することが可能となる。   Similarly, for each case and each data set in FIGS. 9 to 12, an appropriate classification color to print color conversion rule can be set as the color correspondence information in FIG.

図13は、図1のプリンタドライバ101における色空間変換部102、色分類部103、分類色→印刷色変換部104、中間調制御部105、および元濃度保持制御部106の機能による色変換処理を実現するために、図4のホストコンピュータ100内のCPU401が実行する色変換処理を示すフローチャートである。このフローチャートが示す色変換処理は、図4のCPU401がROM402または外部記憶装置407に記憶された色変換処理の制御プログラムをRAM403をワークメモリとして用いながら実行する処理として実現される。   FIG. 13 shows color conversion processing by the functions of the color space conversion unit 102, color classification unit 103, classification color → print color conversion unit 104, halftone control unit 105, and original density retention control unit 106 in the printer driver 101 of FIG. 5 is a flowchart showing color conversion processing executed by the CPU 401 in the host computer 100 of FIG. The color conversion process shown in this flowchart is realized as a process in which the CPU 401 in FIG. 4 executes a color conversion process control program stored in the ROM 402 or the external storage device 407 while using the RAM 403 as a work memory.

まず、図1のアプリケーション部108から発行された印刷コマンドが1つずつ読み込まれながら、その印刷コマンドによって指定されている色情報であるRGB指定色情報が入力される(図13のステップS1301)。   First, while the print commands issued from the application unit 108 in FIG. 1 are read one by one, RGB designated color information that is color information designated by the print command is input (step S1301 in FIG. 13).

次に、ステップS1301で入力されたRGB指定色情報について、その色空間が、RGB色空間からHSL色空間に変換される(図13のステップS1302)。HSL色空間については、図2を用いて前述したが、具体的には例えば、下記の変換式群によって変換を行うことができる。ここで、R、G、およびBはそれぞれ、ステップS1301で入力されたRGB指定色情報のR成分値、G成分値、およびB成分値である。また、max(R,G,B)は、R成分値、G成分値、およびB成分値のうちの最大値を出力する関数である。min(R,G,B)は、R成分値、G成分値、およびB成分値のうちの最小値を出力する関数である。
MAX=max(R,G,B)
MIN=min(R,G,B)
明度L=(MAX+MIN)/2
明度Lを出力
MAXとMINが等しい場合
彩度S=0を出力
色相H=0を出力
MAXとMINが等しくない場合
明度L≦の場合:彩度S=(MAX−MIN)/(MAX+MIN)
明度L>0.5の場合:彩度S=(MAX−MIN)/(2−MAX−MIN)
彩度Sを出力
Cr=(MAX−R)/(MAX−MIN)
Cg=(MAX−G)/(MAX−MIN)
Cb=(MAX−B)/(MAX−MIN)
R成分値がMAXに等しいならば、H=Cb−Cg
G成分値がMAXに等しいならば、H=2+Cr−Cb
B成分値がMAXに等しいならば、H=4+Cg−Cr
H=60×H
H<0ならば、H=H+360
色相Hを出力
以上のステップS1302の処理は、図1の色空間変換部102の機能を実現する。
Next, the color space of the RGB designated color information input in step S1301 is converted from the RGB color space to the HSL color space (step S1302 in FIG. 13). The HSL color space has been described above with reference to FIG. 2. Specifically, for example, conversion can be performed by the following conversion equation group. Here, R, G, and B are the R component value, the G component value, and the B component value of the RGB designated color information input in step S1301, respectively. Max (R, G, B) is a function that outputs the maximum value among the R component value, the G component value, and the B component value. min (R, G, B) is a function that outputs the minimum value among the R component value, the G component value, and the B component value.
MAX = max (R, G, B)
MIN = min (R, G, B)
Lightness L = (MAX + MIN) / 2
Outputs lightness L When MAX and MIN are equal Saturation S = 0 is output Hue H = 0 is output When MAX and MIN are not equal Lightness L ≦: Saturation S = (MAX−MIN) / (MAX + MIN)
For lightness L> 0.5: Saturation S = (MAX−MIN) / (2-MAX−MIN)
Output saturation S Cr = (MAX-R) / (MAX-MIN)
Cg = (MAX-G) / (MAX-MIN)
Cb = (MAX-B) / (MAX-MIN)
If the R component value is equal to MAX, then H = Cb-Cg
If the G component value is equal to MAX, H = 2 + Cr−Cb
If B component value is equal to MAX, H = 4 + Cg-Cr
H = 60 × H
If H <0, H = H + 360
Output Hue H The above-described processing in step S1302 realizes the function of the color space conversion unit 102 in FIG.

次に、ステップS1302の色空間変換処理により得られた明度L、彩度S、および色相Hからなる変換後の色情報に対して、色分類処理が実行される(図13のステップS1303)。この処理は、図3を用いて前述した分類処理が実行され、図1の色分類部103の機能を実現する。この処理の詳細については、図14のフローチャートを用いて後述する。   Next, a color classification process is performed on the color information after conversion including the lightness L, saturation S, and hue H obtained by the color space conversion process in step S1302 (step S1303 in FIG. 13). In this process, the classification process described above with reference to FIG. 3 is executed, and the function of the color classification unit 103 in FIG. 1 is realized. Details of this processing will be described later with reference to the flowchart of FIG.

次に、分類色→印刷色変換処理が実行される(図13のステップS1304)。
具体的にはまず、ユーザによる図7に例示されるカラー設定画面の操作により図4のRAM403または外部記憶装置407に得られている図8に例示されるカラー設定データが参照される。
現在、テキストの印刷コマンドが入力されていれば、まず、図8の「テキスト」に関して設定されている変更種類が取得される。
さらに、「テキスト」に関して設定されている、「黒色」の印刷色について「中間調を使う」設定をしたか否かおよび「元濃度保持」の設定をしたか否か、ならびに「赤色」の印刷色について「中間調を使う」設定をしたか否かおよび「元濃度保持」の設定をしたか否かの4つの設定値が読み出される。
次に、図4のRAM403または外部記憶装置407に保持されている図9から図12に例示される分類色→印刷色変換テーブルのうち、取得された変更種類に対応するケースのテーブルが指定され、さらに取得された4つの設定値のパターンに対応するデータセットが指定される。そして、そのデータセット上の、ステップS1303で得られた分類色に対応する分類色データCnvの値に対応する、印刷色データCol、中間調制御処理項目Gra、および元濃度保持制御処理項目Dnsが読み出される。
読み出された印刷色データColに対応する印刷色が、分類色データCnvから変換される印刷色とされる。
以上のステップS1304の処理は、図1の分類色→印刷色変換部104の機能を実現する。
Next, the classification color → print color conversion process is executed (step S1304 in FIG. 13).
Specifically, first, the color setting data illustrated in FIG. 8 obtained in the RAM 403 or the external storage device 407 in FIG. 4 is referred to by the user operating the color setting screen illustrated in FIG.
If a text print command is currently input, first, the change type set for “text” in FIG. 8 is acquired.
In addition, whether or not “use halftone” and “hold original density” are set for the “black” print color set for “text”, and “red” print Four setting values are read out as to whether “use halftone” is set for the color and whether “hold original density” is set.
Next, among the classification color → print color conversion tables illustrated in FIGS. 9 to 12 held in the RAM 403 in FIG. 4 or the external storage device 407, a table of cases corresponding to the acquired change types is designated. Further, a data set corresponding to the acquired four setting value patterns is designated. Then, the print color data Col, halftone control processing item Gra, and original density holding control processing item Dns corresponding to the value of the classification color data Cnv corresponding to the classification color obtained in step S1303 on the data set are displayed. Read out.
The print color corresponding to the read print color data Col is the print color converted from the classified color data Cnv.
The processing in step S1304 described above realizes the function of the classification color → print color conversion unit 104 in FIG.

次に、ステップS1304で取得された中間調制御処理項目Graが「YES」であるか否かが判定される(図13のステップS1305)。   Next, it is determined whether or not the halftone control processing item Gra acquired in step S1304 is “YES” (step S1305 in FIG. 13).

中間調制御処理項目Graが「NO」でステップS1305の判定がNOならば、中間調制御処理および元濃度保持処理は実行されずにステップS1312の処理に移る。   If the halftone control process item Gra is “NO” and the determination in step S1305 is NO, the halftone control process and the original density holding process are not executed, and the process proceeds to step S1312.

中間調制御処理項目Graが「YES」でステップS1305の判定がYESならば、以下の中間調制御処理が実行される。   If the halftone control process item Gra is “YES” and the determination in step S1305 is YES, the following halftone control process is executed.

まず、ステップS1303で得られてる分類色が「黒色」または「グレー色」のいずれか(分類色データCnv=0または1)であるか否かが判定される(図13のステップS1306)。   First, it is determined whether or not the classification color obtained in step S1303 is “black” or “gray” (classification color data Cnv = 0 or 1) (step S1306 in FIG. 13).

分類色が「黒色」または「グレー色」のいずれかでステップS1306の判定がYESならば、中間調として制御される明度Lの範囲を全範囲(0.0≦L≦1.0)として、ステップS1304で決定された印刷色の印刷濃度を決定する。具体的には、まず、ステップS1302で算出されている明度Lは、0.0が「黒色」、1.0が「白色」となるので、これが反転させられて0.0が「白色」、1.0が「黒色」とされる。この反転させられた数値(1−L)が、演算濃度値として出力される。   If the classification color is “black” or “gray” and the determination in step S1306 is YES, the range of brightness L controlled as a halftone is set to the entire range (0.0 ≦ L ≦ 1.0). The print density of the print color determined in step S1304 is determined. Specifically, first, the lightness L calculated in step S1302 is 0.0 as “black” and 1.0 as “white”, and is inverted so that 0.0 is “white”. 1.0 is “black”. The inverted numerical value (1-L) is output as the calculated density value.

一方、分類色が「黒色」および「グレー色」のいずれでもなくステップS1306の判定がNOならば、中間調として制御される明度Lの範囲を上側範囲(0.5≦L≦1.0)として、ステップS1304で決定された印刷色の印刷濃度を決定する。例えば、「赤色」(RGB値:255−0−0)は、HSL色空間に変換する明度L=0.5となる。2色印刷では、この「赤色」を赤トナー100%で印刷したいため、ここでは、明度L=0.5で印刷濃度100%となるように調整される。明度Lは、0.0が「黒色」、1.0が「白色」となるので、明度Lの値の1.0〜0.5が0.0(印刷濃度0%)〜1.0(印刷濃度100%)とされる。このように変換された数値が、演算濃度値として出力される。   On the other hand, if the classification color is neither “black” nor “gray” and the determination in step S1306 is NO, the range of brightness L controlled as halftone is the upper range (0.5 ≦ L ≦ 1.0). As described above, the print density of the print color determined in step S1304 is determined. For example, “red” (RGB value: 255-0-0) has a lightness L = 0.5 for conversion to the HSL color space. In two-color printing, since it is desired to print this “red” with 100% red toner, it is adjusted here so that the lightness L = 0.5 and the printing density is 100%. Since the lightness L is 0.0 “black” and 1.0 is “white”, the lightness L value of 1.0 to 0.5 is 0.0 (print density 0%) to 1.0 ( Printing density 100%). The numerical value converted in this way is output as a calculated density value.

以上のステップS1305からS1308の一連の処理が、図1の中間調制御部105の機能を実現する。この一連の処理で算出された演算濃度値によって、後述するステップS1311の処理で、印刷色のトナー量濃度値を制御することにより、中間調の印刷が実現される。   The series of processing from steps S1305 to S1308 described above realizes the function of the halftone control unit 105 in FIG. Halftone printing is realized by controlling the toner amount density value of the print color in the process of step S1311 described later based on the calculated density value calculated in this series of processes.

次に、ステップS1304で取得された元濃度保持制御処理項目Dnsが「YES」であるか否かが判定される(図13のステップS1309)。   Next, it is determined whether or not the original density holding control process item Dns acquired in step S1304 is “YES” (step S1309 in FIG. 13).

元濃度保持制御処理項目Dnsが「NO」でステップS1309の判定がNOならば、元濃度保持制御処理は実行されずにステップS1311の処理に移る。   If the original density holding control process item Dns is “NO” and the determination in step S1309 is NO, the original density holding control process is not executed, and the process proceeds to step S1311.

元濃度保持制御処理項目Dnsが「YES」でステップS1309の判定がYESならば、以下の元濃度保持制御処理が実行される(図13のステップS1310)。   If the original density holding control process item Dns is “YES” and the determination in step S1309 is YES, the following original density holding control process is executed (step S1310 in FIG. 13).

「中間調を使う」設定がONの場合には、分類色がその色における濃度100%である場合に、ステップS1305からS1308の中間調制御処理によって、印刷色の印刷濃度も100%となるような変換が行われる。ほとんどのケースではこの変換が好ましいが印刷対象データによって不都合が生じる場合がある。
例えば、中間調制御処理では前述したように「赤色」(RGB値:255−0−0)が赤トナー100%での印刷になるように制御された。しかし、分類色が「赤色」のほかに、前述した「赤色2」または「赤色3」などの濃い赤色を用いていた場合、変換後の印刷色における印刷濃度の差がなくなってしまう。また、「赤色」(RGB値:255−0−0)と「緑色」(RGB値:0−255−0)と「黄色」(RGB値:255−255−0)を使用している場合、各色が印刷濃度100%への変換となるため、濃度差がつかない。そこで、このような不都合が生じないようにするために、「元濃度保持」設定がONの場合には、ステップS1307またはS1308で算出された演算濃度値に対して、分類色に応じた定数が乗算される(図13のステップS1310)。この場合の定数は、以下の通り規定される。
分類色が「黒色」の場合 :1.00
分類色が「グレー色」の場合:1.00
分類色が「赤色」の場合 :0.70
分類色が「緑色」の場合 :0.41
分類色が「青色」の場合 :0.89
分類色が「黄色」の場合 :0.11
また、「赤色2」「赤色3」については、「赤色」との区別に用いた赤色赤色2境界閾値R1および赤色2赤色3境界閾値R2(図5参照)に従い、「黒色」の乗算定数(1.00)と「赤色」の乗算定数から算出される。
例えば、RGB値:255−192−192で表される赤は、明度Lが約0.875である。この場合、中間調制御処理により、まず(1−0.875)が演算濃度値として算出される。さらに、ステップS1310の元濃度保持制御処理により、この演算濃度値に「赤色」の定数0.70が乗算されることにより、演算濃度値=0.17が最終的な演算濃度値として出力される。
When the “use halftone” setting is ON, when the classified color has a density of 100% in the color, the print density of the print color is also set to 100% by the halftone control process in steps S1305 to S1308. Conversion is performed. In most cases, this conversion is preferable, but inconvenience may occur depending on the data to be printed.
For example, in the halftone control process, as described above, “red” (RGB value: 255-0-0) is controlled to be printed with 100% red toner. However, when the classification color is “red” and a dark red color such as “red 2” or “red 3” described above is used, there is no difference in print density in the converted print color. When “red” (RGB value: 255-0-0), “green” (RGB value: 0-255-0) and “yellow” (RGB value: 255-255-0) are used, Since each color is converted to a printing density of 100%, there is no density difference. Therefore, in order to prevent such inconvenience, when the “original density retention” setting is ON, a constant corresponding to the classification color is set for the calculated density value calculated in step S1307 or S1308. Multiplication is performed (step S1310 in FIG. 13). The constant in this case is specified as follows.
When the classification color is “black”: 1.00
When the classification color is “gray”: 1.00
When the classification color is “red”: 0.70
When the classification color is “green”: 0.41
When the classification color is “blue”: 0.89
When the classification color is “yellow”: 0.11
For “red 2” and “red 3”, the multiplication constant of “black” (in accordance with the red-red 2 boundary threshold R1 and the red 2 red 3-boundary threshold R2 (see FIG. 5) used for the distinction from “red” ( 1.00) and the “red” multiplication constant.
For example, red represented by an RGB value: 255-192-192 has a lightness L of about 0.875. In this case, (1−0.875) is first calculated as the calculated density value by the halftone control process. Further, the calculated density value is multiplied by a “red” constant of 0.70 by the original density holding control process in step S1310, so that the calculated density value = 0.17 is output as the final calculated density value. .

以上のステップS1309およびS1310の処理が、図1の元濃度保持制御部106の機能を実現する。   The processes in steps S1309 and S1310 described above realize the function of the original density holding control unit 106 in FIG.

次に、以上の中間調制御処理および元濃度保持制御処理によって得られる演算濃度値に応じて、ステップS1304で決定された印刷色の印刷濃度が調整される(図13のステップS1311)。具体的には、ステップS1304で決定された印刷色に対応する印刷色データColに対応するC、M、Y、Kの各ステーションごとのトナー量濃度値が、図4の外部記憶装置407またはRAM403に記憶されている図6に例示される印刷色設定データから取得される。例えば、印刷色データCol=1(「赤色」)であれば、
[C:100%,M:0%,Y:0%,K:0%]
の各ステーションのトナー量濃度値に演算濃度値が乗算されることにより、例えば、
[C:17%,M:0%,Y:0%,K:0%]
とされる。
Next, the print density of the print color determined in step S1304 is adjusted according to the calculated density value obtained by the halftone control process and the original density holding control process (step S1311 in FIG. 13). Specifically, the toner amount density value for each of the C, M, Y, and K stations corresponding to the print color data Col corresponding to the print color determined in step S1304 is the external storage device 407 or RAM 403 in FIG. Is acquired from the print color setting data illustrated in FIG. For example, if the print color data Col = 1 (“red”),
[C: 100%, M: 0%, Y: 0%, K: 0%]
By multiplying the toner amount density value of each station by the calculated density value, for example,
[C: 17%, M: 0%, Y: 0%, K: 0%]
It is said.

このCMYK印刷色情報が、現在の印刷コマンドに対応させて出力され、図1のプリンタドライバ101による画像メモリ領域への出力処理が実行される(図13のステップS1312)。   The CMYK print color information is output in correspondence with the current print command, and the output process to the image memory area by the printer driver 101 in FIG. 1 is executed (step S1312 in FIG. 13).

最後に、次の印刷コマンドに対応するRGB指定色情報があるか否かが判定される(図13のステップS1313)。   Finally, it is determined whether there is RGB designated color information corresponding to the next print command (step S1313 in FIG. 13).

次のRGB指定色情報がありステップS1313の判定がYESならば、ステップS1301の処理に戻り、次のRGB指定色情報に対応する色変換処理が実行される。   If there is next RGB designated color information and the determination in step S1313 is YES, the process returns to step S1301, and color conversion processing corresponding to the next RGB designated color information is executed.

次のRGB指定色情報がなくなりステップS1313の判定がNOになったら、今回の印刷処理における色変換処理が終了する。   If there is no next RGB designated color information and the determination in step S1313 is NO, the color conversion process in the current printing process is terminated.

図14は、図13のステップS1303の色分類処理を示すフローチャートである。ここでは、図3を用いて前述した色分類処理が実行される。   FIG. 14 is a flowchart showing the color classification process in step S1303 of FIG. Here, the color classification process described above with reference to FIG. 3 is executed.

まず、図13のステップS1302で変換された色の明度Lが、図3(a)に示されるように、黒色判定閾値Bla以下であるか否かが判定される(図14のステップS1401)。   First, as shown in FIG. 3A, it is determined whether or not the lightness L of the color converted in step S1302 in FIG. 13 is equal to or less than the black determination threshold value Bla (step S1401 in FIG. 14).

0≦L≦BlaであってステップS1401の判定がYESならば、変換された色が分類色データCnv=0(「黒色」)に分類される。黒色判定閾値Blaの値は、前述したように、例えば0.01程度である。   If 0 ≦ L ≦ Bla and the determination in step S1401 is YES, the converted color is classified into classified color data Cnv = 0 (“black”). As described above, the value of the black determination threshold value Bla is, for example, about 0.01.

L>BlaであってステップS1401の判定がNOならば、図13のステップS1302で変換された色の彩度Sが、図3(b)に示されるように、グレー色判定閾値Gry以下であるか否かが判定される(図14のステップS1403)。   If L> Bla and the determination in step S1401 is NO, the saturation S of the color converted in step S1302 of FIG. 13 is equal to or less than the gray color determination threshold Gry as shown in FIG. 3B. Is determined (step S1403 in FIG. 14).

0≦S≦GryであってステップS1403の判定がYESならば、変換された色が分類色データCnv=1(「グレー色」)に分類される(図14のステップS1404)。前述したように、グレー色判定閾値Gryの値は、例えば0.01程度である。   If 0 ≦ S ≦ Gry and the determination in step S1403 is YES, the converted color is classified into classification color data Cnv = 1 (“gray color”) (step S1404 in FIG. 14). As described above, the value of the gray color determination threshold Gry is, for example, about 0.01.

S>GryであってステップS1403の判定がNOならば、図13のステップS1302で変換された色の色相Hが、図3(b)に示されるように、赤色黄色境界閾値RY以上であって、かつ黄色緑色境界閾値YGより小さいか否かが判定される(図14のステップS1405)。   If S> Gry and the determination in step S1403 is NO, the hue H of the color converted in step S1302 in FIG. 13 is greater than or equal to the red-yellow boundary threshold value RY, as shown in FIG. And whether it is smaller than the yellow-green boundary threshold YG is determined (step S1405 in FIG. 14).

RY≦H<YGであってステップS1405の判定がYESならば、変換された色が分類色データCnv=5(「黄色」)に分類される(図14のステップS1406)。前述したように、赤色黄色境界閾値RYの値は例えば52.5°程度、黄色緑色境界閾値YGは例えば67.5°程度である。   If RY ≦ H <YG and the determination in step S1405 is YES, the converted color is classified into classified color data Cnv = 5 (“yellow”) (step S1406 in FIG. 14). As described above, the value of the red / yellow boundary threshold RY is, for example, about 52.5 °, and the yellow-green boundary threshold YG is, for example, about 67.5 °.

H≧YGであってステップS1405の判定がNOならば、図13のステップS1302で変換された色の色相Hが、図3(b)に示されるように、黄色緑色境界閾値YG以上で、緑色青色境界閾値GBより小さいか否かが判定される(図14のステップS1407)。   If H ≧ YG and the determination in step S1405 is NO, the hue H of the color converted in step S1302 in FIG. 13 is greater than or equal to the yellow-green boundary threshold YG, as shown in FIG. It is determined whether or not it is smaller than the blue boundary threshold GB (step S1407 in FIG. 14).

YG≦H<GBであってステップS1407の判定がYESならば、変換された色が分類色データCnv=3(「緑色」)に分類される(図14のステップS1408)。前述したように、緑色青色境界閾値GBの値は例えば180°程度である。   If YG ≦ H <GB and the determination in step S1407 is YES, the converted color is classified into classification color data Cnv = 3 (“green”) (step S1408 in FIG. 14). As described above, the value of the green-blue boundary threshold GB is about 180 °, for example.

H≧GBであってステップS1407の判定がNOならば、図13のステップS1302で変換された色の色相Hが、図3(b)に示されるように、緑色青色境界閾値GB以上で、青色赤色境界閾値BRより小さいか否かが判定される(図14のステップS1409)。   If H ≧ GB and the determination in step S1407 is NO, the hue H of the color converted in step S1302 in FIG. 13 is greater than or equal to the green-blue boundary threshold GB as shown in FIG. It is determined whether it is smaller than the red boundary threshold BR (step S1409 in FIG. 14).

GB≦H<BRであってステップS1409の判定がYESならば、変換された色が分類色データCnv=4(「青色」)に分類される(図14のステップS1410)。前述したように、前述したように、青色赤色境界閾値BRの値は例えば300°程度である。   If GB ≦ H <BR and the determination in step S1409 is YES, the converted color is classified into classification color data Cnv = 4 (“blue”) (step S1410 in FIG. 14). As described above, as described above, the value of the blue-red boundary threshold BR is, for example, about 300 °.

H≧BRであってステップS1409の判定がNOならば、図13のステップS1302で変換された色の明度Lが赤色赤色2境界閾値R1以上であるか否かが判定される(図14のステップS1411)。   If H ≧ BR and the determination in step S1409 is NO, it is determined whether or not the lightness L of the color converted in step S1302 in FIG. 13 is greater than or equal to the red-red two boundary threshold R1 (step in FIG. 14). S1411).

L≧R1であってステップS1411の判定がYESならば、変換された色が分類色データCnv=2(「赤色」)に分類される(図14のステップS1412)。   If L ≧ R1 and the determination in step S1411 is YES, the converted color is classified into classification color data Cnv = 2 (“red”) (step S1412 in FIG. 14).

L<R1であってステップS1411の判定がNOならば、図13のステップS1302で変換された色の明度Lが赤色2赤色3境界閾値R2以上であるか否かが判定される(図14のステップS1413)。   If L <R1 and the determination in step S1411 is NO, it is determined whether or not the lightness L of the color converted in step S1302 in FIG. 13 is greater than or equal to red 2 red 3 boundary threshold R2 (FIG. 14). Step S1413).

R1>L≧R2であってステップS1413の判定がYESならば、変換された色が分類色データCnv=6(「赤色2」)に分類される(図14のステップS1414)。   If R1> L ≧ R2 and the determination in step S1413 is YES, the converted color is classified into classification color data Cnv = 6 (“red 2”) (step S1414 in FIG. 14).

L<R2であってステップS1413の判定がNOならば、変換された色が分類色データCnv=7(「赤色3」)に分類される(図14のステップS1415)。   If L <R2 and the determination in step S1413 is NO, the converted color is classified into classified color data Cnv = 7 (“red 3”) (step S1415 in FIG. 14).

図15は、本実施形態により色変換処理される印刷対象データの例を示す図である。
1501は「赤色」のテキストデータ、1502は「緑色」のグラフィックデータ、1503は複数色のイメージデータである。
なお、1501、1502、1503が参照する部分の破線枠は、説明において参照するときの便宜のために付与したもので、イメージデータを構成するものではない。以下、図16〜図23においても同様である。
FIG. 15 is a diagram illustrating an example of print target data subjected to color conversion processing according to the present embodiment.
1501 is “red” text data, 1502 is “green” graphic data, and 1503 is image data of a plurality of colors.
Note that the broken-line frames of the portions referenced by 1501, 1502, and 1503 are provided for convenience when referred to in the description, and do not constitute image data. The same applies to FIGS. 16 to 23.

図16は、図15の印刷対象データ例に対して、テキスト、グラフィック、イメージの全てのデータ形式について「赤以外は「黒」に変換する」印刷処理を実行した場合の色変換処理例を示す図である。
元々「赤色」のテキストデータ部分1601については、図9のケースAの分類色→印刷色変換テーブルの分類色データCnv=2が参照されることにより、印刷色データCol=1(「赤色」)が維持される。
また、元々「緑色」のグラフィックデータ部分1602については、図9のケースAの分類色→印刷色変換テーブルの分類色データCnv=3が参照されることにより、印刷色データCol=0(「黒色」)に変換される。
さらに、イメージデータ内の赤色のトマト部分1603については、図9のケースAの分類色→印刷色変換テーブルの分類色データCnv=2が参照されることにより、印刷色データCol=1(「赤色」)が維持される。
また、イメージデータ内の赤色以外の部分1604については、図9のケースAの分類色→印刷色変換テーブルの分類色データCnv=2以外が参照されることにより、印刷色データCol=0(「黒色」)に変換される。
FIG. 16 shows an example of color conversion processing when the print processing “convert to other than red“ black ”” is executed for all data formats of text, graphics, and images with respect to the print target data example of FIG. FIG.
For the original “red” text data portion 1601, the classification color data Cnv = 2 of the classification color of the case A → the printing color conversion table in FIG. 9 is referred to, so that the printing color data Col = 1 (“red”). Is maintained.
Further, with respect to the original “green” graphic data portion 1602, the classification color data Cnv = 3 of the classification color → printing color conversion table of case A in FIG. )).
Further, for the red tomato portion 1603 in the image data, the classification color data Cnv = 2 in the case A → printing color conversion table in FIG. 9 is referred to, so that the printing color data Col = 1 (“red )) Is maintained.
Further, with respect to the portion 1604 other than red in the image data, the print color data Col = 0 (““ Black ").

図17は、図15の印刷対象データ例に対して、テキスト、グラフィック、イメージの全てのデータ形式について「黒以外は「赤」に変換する」印刷処理を実行した場合の色変換処理例を示す図である。
元々「黒色」でない「赤色」のテキストデータ部分1701については、図10のケースBの分類色→印刷色変換テーブルの分類色データCnv=2が参照されることにより、印刷色データCol=1(「赤色」)が維持される。
また、「黒色」でない「緑色」のグラフィックデータ部分1702については、図10のケースBの分類色→印刷色変換テーブルの分類色データCnv=3が参照されることにより、印刷色データCol=1(「赤色」)に変換される。
さらに、イメージデータ内の黒色の部分1703については、図10のケースBの分類色→印刷色変換テーブルの分類色データCnv=0が参照されることにより、印刷色データCol=0(「黒色」)が維持される。
また、イメージデータ内の黒色以外の部分1704については、図10のケースBの分類色→印刷色変換テーブルの分類色データCnv=0以外が参照されることにより、印刷色データCol=1(「赤色」)に変換される。
FIG. 17 shows an example of color conversion processing when print processing “convert to non-black“ red ”” is performed for all data formats of text, graphics, and images for the print target data example of FIG. FIG.
For the “red” text data portion 1701 that is not originally “black”, the classification color data Cnv = 2 in the classification color → printing color conversion table of case B in FIG. “Red”) is maintained.
For the “green” graphic data portion 1702 that is not “black”, the classification color data Cnv = 3 in the classification color → printing color conversion table of case B in FIG. 10 is referred to, so that the printing color data Col = 1. ("Red").
Further, for the black portion 1703 in the image data, the print color data Col = 0 (“black”) is referenced by referring to the case B classification color → print color conversion table classification color data Cnv = 0 in FIG. ) Is maintained.
Further, with respect to the non-black portion 1704 in the image data, the print color data Col = 1 (““ Red ").

図18は、図15の印刷対象データ例に対して、テキストおよびグラフィックのデータ形式について「黒以外は「赤」に変換する」印刷処理を実行し、イメージのデータ形式について「全て「黒」に変換する」印刷処理を実行した場合の色変換処理例を示す図である。
「黒色」でない「赤色」のテキストデータ部分1801については、図10のケースBの分類色→印刷色変換テーブルの分類色データCnv=2が参照されることにより、印刷色データCol=1(「赤色」)が維持される。
また、「黒色」でない「緑色」のグラフィックデータ部分1802については、図10のケースBの分類色→印刷色変換テーブルの分類色データCnv=3が参照されることにより、印刷色データCol=1(「赤色」)に変換される。
さらに、イメージデータ部分1803については、図11のケースCの分類色→印刷色変換テーブルの各分類色データCnvが参照されることにより、印刷色データCol=0(「黒色」)に変換される。
FIG. 18 shows the print target data example of FIG. 15, print processing for “convert to“ red ”except for black” is performed for text and graphic data formats, and “all are black” for image data formats. FIG. 10 is a diagram illustrating an example of color conversion processing when a “convert” printing process is executed.
For the “red” text data portion 1801 that is not “black”, the classification color data Cnv = 2 of the classification color → printing color conversion table of case B in FIG. 10 is referred to, so that the printing color data Col = 1 (“ Red ") is maintained.
For the “green” graphic data portion 1802 that is not “black”, the classification color data Cnv = 3 in the classification color → printing color conversion table of case B in FIG. 10 is referred to, so that the printing color data Col = 1. ("Red").
Further, the image data portion 1803 is converted to print color data Col = 0 (“black”) by referring to the respective classification color data Cnv in the classification color → printing color conversion table of case C in FIG. .

図19は、図15の印刷対象データ例に対して、テキストデータについて「全て「赤」に変換する」印刷処理を実行し、イメージ、グラフィックの各データについて「全て「黒」に変換する」印刷処理を実行した場合の色変換処理例を示す図である。
テキストデータ部分1901については、図12のケースDの分類色→印刷色変換テーブルの各分類色データCnvが参照されることにより、印刷色データCol=1(「赤色」)に変換される。
また、グラフィックデータ部分1902およびイメージデータ部分1903については、図11のケースCの分類色→印刷色変換テーブルの各分類色データCnvが参照されることにより、印刷色データCol=0(「黒色」)に変換される。
FIG. 19 executes print processing for “convert all to“ red ”” for text data and “convert all to“ black ”” for image and graphic data for the print target data example of FIG. It is a figure which shows the example of a color conversion process at the time of performing a process.
The text data portion 1901 is converted to print color data Col = 1 (“red”) by referring to the respective classification color data Cnv in the classification color → print color conversion table of case D in FIG.
Further, for the graphic data portion 1902 and the image data portion 1903, the print color data Col = 0 (“black”) is referred to by referring to the respective color data Cnv in the case C → print color conversion table of FIG. ).

図20は、本実施形態におけるテキスト、グラフィック、イメージの全てについて「赤以外は「黒」に変換する」印刷処理を実行し、さらにイメージについて「黒:元濃度保持」を設定した場合の色変換処理例を示す図である。
基本的には、図16の場合と同様であるが、図9のデータセットA1が指定され、イメージ内で黒に変換される分類色データCnv=2以外の各分類色データCnvの中間調制御処理項目Graおよび元濃度保持制御処理項目Dnsの値「YES」が取得されて、図13のステップS1309→S1310の元濃度保持制御処理が実行される。この結果、イメージ内で黒に変換される中間調が自然な階調に変換される。
FIG. 20 shows a color conversion in the case where a print process of “convert to“ black ”except for red” ”is executed for all text, graphics, and images in this embodiment, and“ black: original density retention ”is set for the image. It is a figure which shows the process example.
16 is basically the same as the case of FIG. 16, but halftone control of each classified color data Cnv other than the classified color data Cnv = 2 that is designated as the data set A1 of FIG. 9 and is converted to black in the image. The value “YES” of the processing item Gra and the original density holding control processing item Dns is acquired, and the original density holding control process of steps S1309 to S1310 in FIG. 13 is executed. As a result, the halftone converted to black in the image is converted to a natural gradation.

図21は、テキスト、グラフィック、イメージの全てのデータについて「黒以外は「赤」に変換する」印刷処理を実行し、さらにイメージデータについて「赤:元濃度保持」を設定した場合の色変換処理例を示す図である。
基本的には、図17の場合と同様であるが、図10のデータセットB3が指定され、イメージ内で赤に変換される分類色データCnv=2の中間調制御処理項目Graおよび元濃度保持制御処理項目Dnsの値「YES」が取得されて、図13のステップS1309→S1310の元濃度保持制御処理が実行される。この結果、イメージ内で赤に変換される中間調が自然な階調に変換される。
FIG. 21 illustrates a color conversion process in which a print process “convert to“ red ”except for black” is executed for all data of text, graphics, and images, and “red: retain original density” is set for image data. It is a figure which shows an example.
Basically, it is the same as in FIG. 17, but the data set B3 in FIG. 10 is designated, and the halftone control processing item Gra of the classified color data Cnv = 2 to be converted into red in the image and the original density retention The value “YES” of the control process item Dns is acquired, and the original density holding control process of steps S1309 → S1310 in FIG. 13 is executed. As a result, the halftone converted to red in the image is converted to a natural gradation.

図22は、本実施形態における中間調の処理の説明図(その1)である。この例では、イメージデータについて、「赤以外は「黒」に変換する」印刷処理を実行し、さらにイメージについて「黒:中間調を使う」および「赤:中間調を使う」を設定した場合の色変換処理例を示す図である。
この場合、図22(a)に示されるように、印刷対象データ中の「水色」のイメージデータ部分2201と薄い「赤色」のイメージデータ部分2202がそれぞれ、図22(b)に示されるように、中間調の「黒色」のイメージデータ部分2203と中間調の「赤色」のイメージデータ部分2204に変換される。
一方、「黒:中間調を使う」設定を解除した場合、図22(c)に示されるように、中間調の「黒色」のイメージデータ部分2203をベタの「黒色」のイメージデータ部分2205に変化させることができる。
FIG. 22 is an explanatory diagram (part 1) of halftone processing in the present embodiment. In this example, print processing is performed for image data that is “convert to“ black ”except for red”, and “black: use halftone” and “red: use halftone” are set for the image. It is a figure which shows the example of a color conversion process.
In this case, as shown in FIG. 22A, a “light blue” image data portion 2201 and a light “red” image data portion 2202 in the print target data are respectively shown in FIG. Are converted into a halftone “black” image data portion 2203 and a halftone “red” image data portion 2204.
On the other hand, when the setting of “black: use halftone” is canceled, as shown in FIG. 22C, the halftone “black” image data portion 2203 is changed to a solid “black” image data portion 2205. Can be changed.

図23は、本実施形態における中間調の処理の説明図(その2)である。この例では、最初は図22の場合と同様に、イメージデータについて、「赤以外は「黒」に変換する」印刷処理を実行し、さらにイメージについて「黒:中間調を使う」および「赤:中間調を使う」を設定した場合の色変換処理例を示す図である。
この場合、図23(a)に示されるように、印刷対象データ中の「水色」のイメージデータ部分2201と薄い「赤色」のイメージデータ部分2202がそれぞれ、図22(b)の場合と同様の図23(b)に示されるように、中間調の「黒色」のイメージデータ部分2203と中間調の「赤色」のイメージデータ部分2204に変換される。
一方、「赤:中間調を使う」設定を解除した場合、図23(c)に示されるように、中間調の「赤色」のイメージデータ部分2204をベタの「赤色」のイメージデータ部分2301に変化させることができる。
さらに、「黒:中間調を使う」「赤:中間調を使う」の両方の設定を解除した場合、図23(d)に示されるように、中間調の「黒色」のイメージデータ部分2203と中間調の「赤色」のイメージデータ部分2204をそれぞれ、ベタの「黒色」のイメージデータ部分2205とベタの「赤色」のイメージデータ部分2301に変化させることができる。
FIG. 23 is an explanatory diagram (part 2) of halftone processing in the present embodiment. In this example, at first, as in the case of FIG. 22, a print process of “convert to“ black ”except for red” ”is executed for image data, and“ black: use halftone ”and“ red: FIG. 10 is a diagram illustrating an example of color conversion processing when “use halftone” is set.
In this case, as shown in FIG. 23A, the “light blue” image data portion 2201 and the light “red” image data portion 2202 in the print target data are respectively the same as those in FIG. As shown in FIG. 23B, the image data is converted into a halftone “black” image data portion 2203 and a halftone “red” image data portion 2204.
On the other hand, when the setting of “red: use halftone” is canceled, as shown in FIG. 23C, the halftone “red” image data portion 2204 is changed to a solid “red” image data portion 2301. Can be changed.
Further, when the settings of both “black: use halftone” and “red: use halftone” are canceled, as shown in FIG. 23 (d), the image data portion 2203 of halftone “black” is displayed. The halftone “red” image data portion 2204 can be changed to a solid “black” image data portion 2205 and a solid “red” image data portion 2301, respectively.

以上示したようにして、本実施形態によれば、印刷コマンドとして複数の色が指定されている印刷対象データに対してユーザが所望する多彩な色指定印刷を実現することが可能となる。   As described above, according to the present embodiment, it is possible to realize various color designation printing desired by the user for print target data in which a plurality of colors are designated as print commands.

以上の実施形態に関して、更に以下の付記を開示する。
(付記1)
印刷コマンドを入力し、該印刷コマンドで指定されている色を、明度、彩度、および色相によって表現される色空間上の色に変換する色空間変換部と、
該変換された色を、該色の明度、彩度、および色相を基準に複数の分類色のうちの1つの分類色に分類する色分類部と、
前記複数の分類色と1色以上の印刷色との対応関係を設定した色対応関係情報に基づいて前記分類された分類色の各々を前記1色以上の印刷色のうちの1つの印刷色に変換し、該印刷色を前記入力した印刷コマンドに対応させて出力する分類色→印刷色変換部と、
を備えることを特徴とする色指定印刷のための色変換装置。
(付記2)
前記色対応関係情報を設定する色対応関係情報設定部をさらに備える、
ことを特徴とする付記1に記載の色指定印刷のための色変換装置。
(付記3)
前記印刷色ごとに、該印刷色に中間調を使う旨が予め設定されている場合に、該印刷色に変換される前記分類された分類色に対応する前記色空間上の明度に基づいて、該印刷色における印刷濃度を算出し、該算出された印刷濃度を該印刷色に設定する中間調制御部をさらに備える、
ことを特徴とする付記1または2のいずれかに記載の色指定印刷のための色変換装置。
(付記4)
前記印刷色ごとに、該印刷色に中間調を使うか否かを設定する中間調設定部をさらに備える、
ことを特徴とする付記3に記載の色指定印刷のための色変換装置。
(付記5)
前記印刷色ごとに、該印刷色に中間調を使う旨が予め設定されている場合において、さらに該印刷色に変換される前記分類された分類色の元濃度を保持する設定がされている場合に、前記算出された印刷濃度に前記分類された分類色に対応する所定の定数を乗算し、該乗算の結果得られる印刷濃度を該印刷色に設定する元濃度保持制御部をさらに備える、
ことを特徴とする付記2または3のいずれかに記載の色指定印刷のための色変換装置。
(付記6)
前記印刷色ごとに、該印刷色に中間調を使う旨が予め設定されている場合において、さらに該印刷色に変換される前記分類された分類色の元濃度を保持するか否かを設定する元濃度保持設定部をさらに備える、
ことを特徴とする付記5に記載の色指定印刷のための色変換装置。
(付記7)
前記色分類部は、
前記変換された色の明度が所定の明度閾値に比較して大きくない場合に、該変換された色を黒色の分類色に分類し、
前記変換された色の明度が所定の明度閾値に比較して大きい場合であって、該変換された色の彩度が所定の彩度閾値に比較して大きくない場合に、該変換された色をグレー色の分類色に分類し、
前記変換された色の明度が所定の明度閾値に比較して大きく、かつ該変換された色の彩度が所定の彩度閾値に比較して大きい場合に、該変換された色の色相に基づいて該変換された色を前記黒色および前記グレー色以外の複数の分類色に分類する、
ことを特徴とする付記1ないし6のいずれかに記載の色指定印刷のための色変換装置。
(付記8)
印刷コマンドを入力し、該印刷コマンドで指定されている色を、明度、彩度、および色相によって表現される色空間上の色に変換する色空間変換ステップと、
該変換された色を、該色の明度、彩度、および色相を基準に複数の分類色のうちの1つの分類色に分類する色分類ステップと、
前記複数の分類色と1色以上の印刷色との対応関係を設定した色対応関係情報に基づいて前記分類された分類色の各々を前記1色以上の印刷色のうちの1つの印刷色に変換し、該印刷色を前記入力した印刷コマンドに対応させて出力する分類色→印刷色変換ステップと、
を実行することを備えることを特徴とする色指定印刷のための色変換方法。
(付記9)
印刷コマンドを入力し、該印刷コマンドで指定されている色を、明度、彩度、および色相によって表現される色空間上の色に変換する色空間変換ステップと、
該変換された色を、該色の明度、彩度、および色相を基準に複数の分類色のうちの1つの分類色に分類する色分類ステップと、
前記複数の分類色と1色以上の印刷色との対応関係を設定した色対応関係情報に基づいて前記分類された分類色の各々を前記1色以上の印刷色のうちの1つの印刷色に変換し、該印刷色を前記入力した印刷コマンドに対応させて出力する分類色→印刷色変換ステップと、
をコンピュータに実行させるためのプログラム。
(付記10)
前記コンピュータは、印刷を実行する印刷装置と接続され、
前記プログラムは、前記コンピュータ上で実行されるアプリケーションプログラムから発行される印刷コマンドを処理するプリンタドライバプログラムの一部として実行される、
ことを特徴とする付記9に記載のプログラム。
(付記11)
前記コンピュータは、印刷を実行する印刷装置に内蔵され、
前記プログラムは、前記印刷装置に接続されるコンピュータから入力される印刷コマンド、または前記印刷装置に接続される記録媒体に記憶されている印刷対象データを印刷処理することにより生成される印刷コマンドを処理するプログラムとして前記印刷装置において実行される、
ことを特徴とする付記9に記載のプログラム。
Regarding the above embodiment, the following additional notes are disclosed.
(Appendix 1)
A color space conversion unit that inputs a print command and converts a color specified by the print command into a color on a color space expressed by lightness, saturation, and hue;
A color classification unit that classifies the converted color into one of a plurality of classification colors based on the brightness, saturation, and hue of the color;
Based on the color correspondence information in which the correspondence between the plurality of classification colors and one or more printing colors is set, each of the classified classification colors is changed to one printing color among the one or more printing colors. A classification color → print color conversion unit that converts and outputs the print color corresponding to the input print command;
A color conversion apparatus for color-designated printing, comprising:
(Appendix 2)
A color correspondence information setting unit for setting the color correspondence information;
The color conversion apparatus for color designation printing according to Supplementary Note 1, wherein
(Appendix 3)
For each of the print colors, when it is preset that a halftone is used for the print color, based on the lightness on the color space corresponding to the classified color to be converted to the print color, A halftone control unit that calculates a print density of the print color and sets the calculated print density to the print color;
The color conversion apparatus for color designation printing according to any one of appendix 1 or 2, characterized by the above.
(Appendix 4)
A halftone setting unit for setting whether to use a halftone for the print color for each print color;
The color conversion apparatus for color designation printing according to Supplementary Note 3, wherein
(Appendix 5)
When it is set in advance for each print color that a halftone is used for the print color, and when the original density of the classified color to be converted to the print color is further set And an original density holding control unit that multiplies the calculated print density by a predetermined constant corresponding to the classified color and sets the print density obtained as a result of the multiplication to the print color.
The color conversion apparatus for color designation printing according to any one of appendix 2 or 3, characterized by the above.
(Appendix 6)
For each of the print colors, when it is set in advance that a halftone is used for the print color, it is further set whether or not to retain the original density of the classified color to be converted into the print color. An original density retention setting unit;
The color conversion apparatus for color designation printing according to appendix 5, wherein
(Appendix 7)
The color classification unit
If the lightness of the converted color is not large compared to a predetermined lightness threshold, classify the converted color into a black classification color;
The converted color when the brightness of the converted color is greater than a predetermined brightness threshold and the saturation of the converted color is not greater than the predetermined saturation threshold Are classified into gray classification colors,
Based on the hue of the converted color when the brightness of the converted color is greater than a predetermined brightness threshold and the saturation of the converted color is greater than a predetermined saturation threshold And classifying the converted color into a plurality of classification colors other than the black color and the gray color,
A color conversion apparatus for color designation printing according to any one of appendices 1 to 6, characterized in that:
(Appendix 8)
A color space conversion step of inputting a print command and converting a color designated by the print command into a color on a color space expressed by lightness, saturation, and hue;
A color classification step of classifying the converted color into one classification color among a plurality of classification colors based on the brightness, saturation, and hue of the color;
Based on the color correspondence information in which the correspondence between the plurality of classification colors and one or more printing colors is set, each of the classified classification colors is changed to one printing color among the one or more printing colors. A classification color → print color conversion step of converting and outputting the print color corresponding to the input print command;
A color conversion method for color designation printing, comprising:
(Appendix 9)
A color space conversion step of inputting a print command and converting a color designated by the print command into a color on a color space expressed by lightness, saturation, and hue;
A color classification step of classifying the converted color into one classification color among a plurality of classification colors based on the brightness, saturation, and hue of the color;
Based on the color correspondence information in which the correspondence between the plurality of classification colors and one or more printing colors is set, each of the classified classification colors is changed to one printing color among the one or more printing colors. A classification color → print color conversion step of converting and outputting the print color corresponding to the input print command;
A program that causes a computer to execute.
(Appendix 10)
The computer is connected to a printing device that executes printing,
The program is executed as a part of a printer driver program that processes a print command issued from an application program executed on the computer.
The program according to appendix 9, characterized by:
(Appendix 11)
The computer is built in a printing apparatus that performs printing,
The program processes a print command input from a computer connected to the printing apparatus or a print command generated by performing print processing on print target data stored in a recording medium connected to the printing apparatus. Executed in the printing apparatus as a program to
The program according to appendix 9, characterized by:

100 ホストコンピュータ
101 プリンタドライバ
102 色空間変換部
103 色分類部
104 分類色→印刷色変換部
105 中間調制御部
106 元濃度保持制御部
107 設定部
108 アプリケーション部
109 画像記憶部
110 プリンタ装置
111 画像記憶部
112 印刷実行部
401、411 CPU
402、412 RAM
403、413 ROM
404 入力装置
405 出力装置
406、414 USB/LAN I/F
407 外部記憶装置
408 可搬記録媒体駆動装置
409 可搬記録媒体
415 プリンタエンジンI/F
416 プリント制御LSI
417 プリンタエンジン
DESCRIPTION OF SYMBOLS 100 Host computer 101 Printer driver 102 Color space conversion part 103 Color classification part 104 Classification color-> Print color conversion part 105 Halftone control part 106 Original density maintenance control part 107 Setting part 108 Application part 109 Image storage part 110 Printer apparatus 111 Image storage Unit 112 Print execution unit 401, 411 CPU
402, 412 RAM
403, 413 ROM
404 Input device 405 Output device 406, 414 USB / LAN I / F
407 External storage device 408 Portable recording medium driving device 409 Portable recording medium 415 Printer engine I / F
416 Print Control LSI
417 Printer Engine

Claims (9)

印刷コマンドで指定されているRGB指定色を、明度、彩度、および色相によって表現される色空間上の変換色に変換する色空間変換部と、
該変換色を、該変換色の明度、彩度、および色相を基準に、黒色およびグレー色を含む複数の分類色のうちの1つの分類色に分類する色分類部と、
前記複数の分類色と1色以上の印刷色との対応関係を設定した色対応関係情報に基づいて、前記1色以上の印刷色の中から前記1つの分類色に対応付けられた1つの印刷色を決定し、該1つの印刷色を前記印刷コマンドに対応付ける分類色印刷色対応付け部と、
を備え、
前記色分類部は、
前記変換色の明度が所定の明度閾値に比較して大きくない場合に、該変換色を黒色の分類色に分類し、前記変換色の明度が前記明度閾値に比較して同じか又は大きい場合であって、該変換色の彩度が所定の彩度閾値に比較して大きくない場合に、該変換色をグレー色の分類色に分類する、
ことを特徴とする色指定印刷のための色変換装置。
A color space conversion unit that converts the RGB designated color specified by the print command into a converted color on a color space represented by brightness, saturation, and hue;
A color classification unit that classifies the converted color into one classified color among a plurality of classified colors including black and gray colors based on the lightness, saturation, and hue of the converted color;
One print associated with the one classification color out of the one or more print colors based on color correspondence information in which a correspondence relation between the plurality of classification colors and one or more print colors is set. A classification color print color associating unit that determines a color and associates the one print color with the print command;
With
The color classification unit
When the brightness of the converted color is not large compared to a predetermined brightness threshold, the converted color is classified into a black classification color, and the brightness of the converted color is the same or larger than the brightness threshold. If the saturation of the converted color is not large compared to a predetermined saturation threshold, the converted color is classified into a gray color.
A color conversion device for color designation printing characterized by the above.
前記色対応関係情報を設定する色対応関係情報設定部をさらに備える、
ことを特徴とする請求項1に記載の色指定印刷のための色変換装置。
A color correspondence information setting unit for setting the color correspondence information;
The color conversion apparatus for color designation printing according to claim 1.
前記1つの印刷色に中間調を使う旨が予め設定されている場合に、前記分類色に対応する前記色空間上の明度に基づいて、該1つの印刷色における第1の印刷濃度を算出し、該算出された第1の印刷濃度を該印刷色に設定する中間調制御部をさらに備える、
ことを特徴とする請求項1または2のいずれかに記載の色指定印刷のための色変換装置。
When it is preset that the halftone is used for the one print color, a first print density for the one print color is calculated based on the lightness in the color space corresponding to the classification color. A halftone control unit that sets the calculated first print density to the print color;
3. The color conversion apparatus for color designation printing according to claim 1, wherein the color conversion apparatus is for color designation printing.
前記1つの印刷色に中間調を使うか否かを設定する中間調設定部をさらに備える、
ことを特徴とする請求項3に記載の色指定印刷のための色変換装置。
A halftone setting unit for setting whether to use a halftone for the one print color;
The color conversion apparatus for color designation printing according to claim 3.
前記1つの印刷色に中間調を使う旨が予め設定されている場合において、さらに前記1つの分類色の元濃度を保持する設定がされている場合に、前記算出された第1の印刷濃度に前記1つの分類色に対応させて予め定められた係数を乗算し、該乗算の結果得られる第2の印刷濃度を該1つの印刷色に設定する元濃度保持制御部をさらに備える、
ことを特徴とする請求項3または4のいずれかに記載の色指定印刷のための色変換装置。
When it is set in advance that the halftone is used for the one print color, and when the original density of the one classified color is further set, the calculated first print density is set. An original density holding control unit that multiplies a predetermined coefficient corresponding to the one classification color and sets a second print density obtained as a result of the multiplication to the one print color;
The color conversion apparatus for color designation printing according to claim 3 or 4, wherein the color conversion apparatus is for color designation printing.
前記1つの印刷色に中間調を使う旨が予め設定されている場合において、さらに前記1つの分類色の元濃度を保持するか否かを設定する元濃度保持設定部をさらに備える、
ことを特徴とする請求項5に記載の色指定印刷のための色変換装置。
In the case where it is preset that the halftone is used for the one print color, the apparatus further includes an original density holding setting unit for setting whether to hold the original density of the one classified color.
The color conversion apparatus for color designation printing according to claim 5.
前記色分類部は、
前記変換色の明度が前記明度閾値に比較して同じか又は大きく、かつ該変換色の彩度が前記彩度閾値に比較して大きい場合に、該変換色の色相に基づいて該変換色を前記複数の分類色のうちの前記黒色および前記グレー色以外の1つの分類色に分類する、
ことを特徴とする請求項1ないし6のいずれかに記載の色指定印刷のための色変換装置。
The color classification unit
When the lightness of the converted color is the same or larger than the lightness threshold, and the saturation of the converted color is larger than the saturation threshold, the converted color is converted based on the hue of the converted color. Classifying into one classification color other than the black color and the gray color among the plurality of classification colors;
The color conversion apparatus for color designation printing according to any one of claims 1 to 6.
印刷コマンドで指定されているRGB指定色を、明度、彩度、および色相によって表現される色空間上の変換色に変換する色空間変換ステップと、
該変換色を、該変換色の明度、彩度、および色相を基準に、黒色およびグレー色を含む複数の分類色のうちの1つの分類色に分類する色分類ステップと、
前記複数の分類色と1色以上の印刷色との対応関係を設定した色対応関係情報に基づいて、前記1色以上の印刷色の中から前記1つの分類色に対応付けられた1つの印刷色を決定し、該1つの印刷色を前記印刷コマンドに対応付ける分類色印刷色対応付けステップと、
を含み、
前記色分類ステップでは、
前記変換色の明度が所定の明度閾値に比較して大きくない場合に、該変換色を黒色の分類色に分類し、前記変換色の明度が前記明度閾値に比較して同じか又は大きい場合であって、該変換色の彩度が所定の彩度閾値に比較して大きくない場合に、該変換色をグレー色の分類色に分類する、
ことを特徴とする色指定印刷のための色変換方法。
A color space conversion step of converting the RGB designated color specified by the print command into a converted color on a color space expressed by lightness, saturation, and hue;
A color classification step of classifying the converted color into one of a plurality of classified colors including black and gray based on the brightness, saturation, and hue of the converted color;
One print associated with the one classification color out of the one or more print colors based on color correspondence information in which a correspondence relation between the plurality of classification colors and one or more print colors is set. A classification color printing color associating step of determining a color and associating the one printing color with the printing command;
Including
In the color classification step,
When the brightness of the converted color is not large compared to a predetermined brightness threshold, the converted color is classified into a black classification color, and the brightness of the converted color is the same or larger than the brightness threshold. If the saturation of the converted color is not large compared to a predetermined saturation threshold, the converted color is classified into a gray color.
A color conversion method for color designation printing.
色変換装置を制御するコンピュータに、
印刷コマンドで指定されているRGB指定色を、明度、彩度、および色相によって表現される色空間上の変換色に変換する色空間変換機能、
該変換色を、該変換色の明度、彩度、および色相を基準に、黒色およびグレー色を含む複数の分類色のうちの1つの分類色に分類する色分類機能、
前記複数の分類色と1色以上の印刷色との対応関係を設定した色対応関係情報に基づいて、前記1色以上の印刷色の中から前記1つの分類色に対応付けられた1つの印刷色を決定し、該1つの印刷色を前記印刷コマンドに対応付ける分類色印刷色対応付け機能、
を実現させるためのプログラムであって、
前記色分類機能は、
前記変換色の明度が所定の明度閾値に比較して大きくない場合に、該変換色を黒色の分類色に分類し、前記変換色の明度が前記明度閾値に比較して同じか又は大きい場合であって、該変換色の彩度が所定の彩度閾値に比較して大きくない場合に、該変換色をグレー色の分類色に分類する、
プログラム。
To the computer that controls the color conversion device,
A color space conversion function for converting the RGB specified color specified by the print command into a conversion color on the color space expressed by lightness, saturation, and hue,
A color classification function for classifying the converted color into one classified color among a plurality of classified colors including black and gray colors based on the brightness, saturation, and hue of the converted color;
One print associated with the one classification color out of the one or more print colors based on color correspondence information in which a correspondence relation between the plurality of classification colors and one or more print colors is set. A color classification function for determining a color and associating the one print color with the print command;
Is a program for realizing
The color classification function is
When the brightness of the converted color is not large compared to a predetermined brightness threshold, the converted color is classified into a black classification color, and the brightness of the converted color is the same or larger than the brightness threshold. If the saturation of the converted color is not large compared to a predetermined saturation threshold, the converted color is classified into a gray color.
program.
JP2014256771A 2014-12-19 2014-12-19 Color conversion apparatus, color conversion method, and program Expired - Fee Related JP6070682B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014256771A JP6070682B2 (en) 2014-12-19 2014-12-19 Color conversion apparatus, color conversion method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014256771A JP6070682B2 (en) 2014-12-19 2014-12-19 Color conversion apparatus, color conversion method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2012263754A Division JP2014110521A (en) 2012-11-30 2012-11-30 Color conversion device, method and program for color designation printing

Publications (3)

Publication Number Publication Date
JP2015097400A true JP2015097400A (en) 2015-05-21
JP2015097400A5 JP2015097400A5 (en) 2015-09-10
JP6070682B2 JP6070682B2 (en) 2017-02-01

Family

ID=53374477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014256771A Expired - Fee Related JP6070682B2 (en) 2014-12-19 2014-12-19 Color conversion apparatus, color conversion method, and program

Country Status (1)

Country Link
JP (1) JP6070682B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007097171A (en) * 2005-09-26 2007-04-12 Toshiba Corp Image forming apparatus and subtractive color printing method
JP2007228115A (en) * 2006-02-22 2007-09-06 Kyocera Mita Corp Color classification apparatus and method, and image forming apparatus
JP2008067068A (en) * 2006-09-07 2008-03-21 Ricoh Co Ltd Image processing apparatus
JP2009005031A (en) * 2007-06-20 2009-01-08 Ricoh Co Ltd Image processing device, image processing method, control program, and recording medium
JP2009225451A (en) * 2008-03-18 2009-10-01 Toshiba Corp Image forming apparatus and method
JP2010205016A (en) * 2009-03-04 2010-09-16 Ricoh Co Ltd Information processing device and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007097171A (en) * 2005-09-26 2007-04-12 Toshiba Corp Image forming apparatus and subtractive color printing method
JP2007228115A (en) * 2006-02-22 2007-09-06 Kyocera Mita Corp Color classification apparatus and method, and image forming apparatus
JP2008067068A (en) * 2006-09-07 2008-03-21 Ricoh Co Ltd Image processing apparatus
JP2009005031A (en) * 2007-06-20 2009-01-08 Ricoh Co Ltd Image processing device, image processing method, control program, and recording medium
JP2009225451A (en) * 2008-03-18 2009-10-01 Toshiba Corp Image forming apparatus and method
JP2010205016A (en) * 2009-03-04 2010-09-16 Ricoh Co Ltd Information processing device and program

Also Published As

Publication number Publication date
JP6070682B2 (en) 2017-02-01

Similar Documents

Publication Publication Date Title
US9344604B2 (en) Display processing apparatus correcting color saturation due to gloss, image forming system, and computer program product
US8526061B2 (en) Image processing apparatus, image processing method, and computer program product
JP2003110868A (en) Image processing method, image processor, storage medium and program
JP2010041267A (en) Image processing apparatus, image processing method, and computer readable recording medium storing program for performing the method
JP2011082686A (en) Image processor, image forming system, and program
JP2014110521A (en) Color conversion device, method and program for color designation printing
US8982418B2 (en) Printing system, a printing method, and a computer program for performing color conversion on a print object
JP2015179995A (en) Image processing device and program
JP4563224B2 (en) Data conversion method and print instruction method
US9989875B2 (en) Image processing apparatus, image processing method, and storage medium
JP6070682B2 (en) Color conversion apparatus, color conversion method, and program
JP2015126277A (en) Image processing apparatus and image processing method
JP2018133670A (en) Print data processing device and program
JP5915302B2 (en) Image processing apparatus and program
JP2011109639A (en) Image processing apparatus and control method thereof
EP2375720B1 (en) Image processor
JP2016215512A (en) Image processor, image processing, and program
JP2006211579A (en) Color profile producing method and system
US10306104B2 (en) Image processing method and image processing apparatus that ensure efficient memory use, and recording medium therefor
JP2011239428A (en) Image processing device and its data conversion method
JP2007038578A (en) Apparatus and method of image processing
JP2021027502A (en) Image processing device, image processing method, and program
JP2014057120A (en) Image forming apparatus, image forming method, program, and recording medium
JP2012114521A (en) Image processing system and image processing method
JP2021044765A (en) Image processing device, image output device, image processing method, and program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150305

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150723

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150723

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160510

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160628

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160826

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161219

R150 Certificate of patent or registration of utility model

Ref document number: 6070682

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees