JPH07123281A - Color printer - Google Patents

Color printer

Info

Publication number
JPH07123281A
JPH07123281A JP5270346A JP27034693A JPH07123281A JP H07123281 A JPH07123281 A JP H07123281A JP 5270346 A JP5270346 A JP 5270346A JP 27034693 A JP27034693 A JP 27034693A JP H07123281 A JPH07123281 A JP H07123281A
Authority
JP
Japan
Prior art keywords
color
data
rgb
ymck
color data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5270346A
Other languages
Japanese (ja)
Other versions
JP3071349B2 (en
Inventor
Takeshi Onodera
健 小野寺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP5270346A priority Critical patent/JP3071349B2/en
Publication of JPH07123281A publication Critical patent/JPH07123281A/en
Application granted granted Critical
Publication of JP3071349B2 publication Critical patent/JP3071349B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a high speed color printer with high resolution having RGB color blend function without increasing the memory capacity. CONSTITUTION:Color data Y1M1C1K1 at an address of a frame memory area 110 of YMCK form corresponding to a position of drawing a picture drawing object are acquired and the data Y1M1C1K1 are inversely converted by using a color conversion circuit 107 inverting color data of YMCK form into color data of RGB form into data R1G1B. Then the color data R1G1B1 and drawn color data R0G0B0 of a picture drawing object are blended by using, e.g. a picture drawing logic blend and resulting data R2G2B2 are converted into data Y2M2C2K2 by using a color conversion circuit 106 converting color data of RGB form into color data of YMCK form into data Y2M2C2K2 and color data of an area of the frame memory area 110 of YMCK form corresponding to a position of drawing picture object are replaced with the data Y2M2C2K2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば減法混色を用い
てフルカラー画像を印刷するカラー印刷装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color printing apparatus for printing a full-color image by using subtractive color mixture.

【0002】[0002]

【従来の技術】従来、カラーの背景画像(destination)
にカラーの描画オブジェクト(source)を重ね合わせる、
いわゆる描画論理としては、addOver,addPin,subOver,s
ubPin,adMax,adMin,blend 等が知られている。addOver
はsourceとdestination のRGB値の和に最も近い色を
destinationに割り当てるもので、RGB成分のいずれ
かの和が最大許容値を越える場合、桁上がりは無視さ
れ、RGB値はその値から最大許容値を差し引いた値が
使用されるというものである。
2. Description of the Related Art Conventionally, a color background image (destination)
Overlay the color drawing object (source) on,
The so-called drawing logic is addOver, addPin, subOver, s
ubPin, adMax, adMin, blend, etc. are known. addOver
Is the color closest to the sum of the RGB values of source and destination
When the sum of any of the RGB components exceeds the maximum allowable value, the carry is ignored and the RGB value is obtained by subtracting the maximum allowable value from that value.

【0003】addPinはsourceとdestination のRGB値
の和に最も近い色をdestination に割り当てるもので、
RGB成分のいずれかの和が最大許容値を越える場合、
RGB値は最大許容値の値が使用されるというものであ
る。subOver はsourceとdestination のRGB値の差に
最も近い色をdestinationに割り当てるもので、RGB
成分のいずれかの差が“0”より小さい場合、桁上がり
は無視され、RGB値はその値から最大許容値を引いた
値が使用されるというものである。
AddPin assigns the color closest to the sum of the RGB values of source and destination to destination.
If the sum of any of the RGB components exceeds the maximum allowable value,
The RGB value is that the maximum allowable value is used. subOver assigns the color closest to the difference between the RGB values of source and destination to destination.
If the difference in any of the components is less than "0", the carry is ignored and the RGB value is used as its value minus the maximum allowed value.

【0004】subPinはsourceとdestination のRGB値
の差に最も近い色をdestination に割り当てるもので、
RGB成分のいずれかの差が“0”より小さい場合、R
GB値は“0”が使用されるというものである。adMax
はsourceとdestination のRGB値を比較し、RGB成
分各々の彩度が大きい方の値をdestination に収めるも
のである。RGB成分の比較は各々独立して行われるの
で、結果としての色がsourceまたはdestination の色の
いずれかになるとはかぎらない。
SubPin assigns a color closest to the difference between the RGB values of source and destination to destination.
If the difference between any of the RGB components is less than “0”, R
The GB value is that "0" is used. adMax
Is to compare the RGB values of the source and the destination, and to store the value of the RGB component with the higher saturation in the destination. Since the RGB component comparisons are made independently of each other, the resulting color may not be either the source or destination color.

【0005】adMin はsourceとdestination のRGB値
を比較し、RGB成分各々の彩度が小さい方の値をdest
ination に収めるものである。RGB成分の比較は各々
独立して行われるので、結果としての色がsourceまたは
destination の色のいずれかになるとはかぎらない。bl
end はsourceとdestination のRGB値の加重平均値を
destination に置き換えるもので、以下の式で算出され
る。
AdMin compares the RGB values of source and destination and dest the value of the RGB component with the smaller saturation.
It is something to put in ination. The RGB components are compared independently, so the resulting color is source or
It may not be one of the destination colors. bl
end is the weighted average of source and destination RGB values
It is replaced with destination and calculated by the following formula.

【0006】 destination =source*weight+destination * (1−weight) ここで、weightは“0”から“1”までの値である。こ
れらの描画論理は、もともとホストコンピュータのCR
Tの色処理を基本としているため、RGB形式を基本と
して作成されている。従って、本描画論理をカラープリ
ンタで実現するためにはRGB3色のカラープレーンを
有する必要があった。
Destination = source * weight + destination * (1-weight) Here, weight is a value from “0” to “1”. Originally, these drawing logics were the CR of the host computer.
Since it is based on T color processing, it is created based on RGB format. Therefore, in order to implement this drawing logic in a color printer, it is necessary to have color planes of RGB three colors.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、カラー
プリンタ自体は、紙に印刷するという性格上、加法混色
を用いるCRTとは異なり、減法混色を用いて色を表現
しているため、YMC(イエロー、マゼンタ、シアン)
或いはYMCK(イエロー、マゼンタ、シアン、ブラッ
ク)という色要素を用いてフルカラー画像を表現してい
る。
However, since the color printer itself expresses colors using subtractive color mixing, unlike CRTs that use additive color mixing, because of the nature of printing on paper, YMC (Yellow, Magenta, cyan)
Alternatively, a full-color image is expressed using YMCK (yellow, magenta, cyan, black) color elements.

【0008】このため、カラープレーンとしてRGBプ
レーンを用いる場合は、YMCK(或いはYMC)プレ
ーンも同時に持ち、一旦変換してから印刷部に出力する
か、或いは印刷部に画像を転送する際にRGBからYM
CK(或いはYMC)に変換しながら画像転送する必要
があった。前者の場合、2種類の色形式のラスタプレー
ンが必要となって大量のメモリを必要とするという問題
点があり、後者の場合、YMCK(或いはYMC)各プ
レーンにデータを転送するたびにRGB3色からデータ
を獲得してYMCK(或いはYMC)に色変換する必要
があるため、印刷装置が高解像度であったり、高速であ
る場合、画像転送スピードが印刷装置の処理速度に間に
合わないという問題点があった。
Therefore, when the RGB plane is used as the color plane, it also has a YMCK (or YMC) plane at the same time, and once converted, outputs the image to the printing unit, or outputs the image from the RGB to the printing unit. YM
It was necessary to transfer images while converting to CK (or YMC). In the former case, there is a problem that a raster plane of two types of color formats is required and a large amount of memory is required, and in the latter case, RGB 3 colors are used every time data is transferred to each YMCK (or YMC) plane. Since it is necessary to obtain data from the printer and perform color conversion into YMCK (or YMC), there is a problem that the image transfer speed cannot meet the processing speed of the printing device when the printing device has high resolution or high speed. there were.

【0009】本発明は、上記課題を解決するために成さ
れたもので、メモリ容量を増大させることなく、RGB
のカラーブレンド機能を有する高速、かつ高解像度のカ
ラー印刷装置を提供することを目的とする。
The present invention has been made in order to solve the above-mentioned problems, and it is possible to realize RGB without increasing the memory capacity.
It is an object of the present invention to provide a high-speed and high-resolution color printing apparatus having the color blending function of.

【0010】[0010]

【課題を解決するための手段】及び[Means for Solving the Problems] and

【作用】上記目的を達成するために、本発明のカラー印
刷装置は以下の構成を備える。即ち、減法混色を用いて
フルカラー画像を印刷するカラー印刷装置であって、加
法混色の色データを減法混色の色データに変換する第1
の色変換手段と、減法混色の色データを加法混色の色デ
ータに変換する第2の色変換手段と、加法混色の2種類
の色データを混合して新たな色データを作成する色混合
手段とを備え、前記第2の色変換手段で変換された加法
混色の色データと入力された加法混色の色データとを前
記色混合手段により混合し、混合された色データを前記
第1の色変換手段で色変換して出力することを特徴とす
る。
In order to achieve the above object, the color printing apparatus of the present invention has the following configuration. That is, a color printing apparatus that prints a full-color image using subtractive color mixture, which converts color data of additive color mixture into color data of subtractive color mixture
Color conversion means, second color conversion means for converting color data of subtractive color mixture to color data of additive color mixture, and color mixing means for creating new color data by mixing two kinds of color data of additive color mixture And mixing the color data of the additive color mixture converted by the second color conversion means and the input color data of the additive color mixture by the color mixing means, and mixing the mixed color data with the first color. It is characterized in that the conversion means performs color conversion and outputs.

【0011】また好ましくは、前記加法混色の色データ
はRGBデータであり、減法混色の色データはYMCK
データ、或いはYMCデータであることを特徴とする。
Further preferably, the color data of the additive color mixture is RGB data, and the color data of the additive color mixture is YMCK.
It is characterized by being data or YMC data.

【0012】[0012]

【実施例】以下、図面を参照して、本発明に係る好適な
一実施例を詳細に説明する。 <第1実施例>図1は、第1実施例におけるYMCK形
式のフルカラー印刷装置のブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of the present invention will be described in detail below with reference to the drawings. <First Embodiment> FIG. 1 is a block diagram of a YMCK format full-color printer according to the first embodiment.

【0013】図1において、101はホストコンピュー
タであり、破線で示すYMCKフルカラー印刷装置の制
御ユニット102と、不図示のコネクタを介して接続さ
れている。制御ユニット102はホストコンピュータ1
01からコマンド及びデータ等を受け取って印刷出力す
るように構成されている。103はCPUであり、本Y
MCKフルカラー印刷装置の全制御を行うための演算・
制御を行う。104は受信バッファであり、ホストコン
ピュータ101よりのコマンド及びデータ等の受信デー
タを一時的に蓄える。105はプログラムROMであ
り、後述する図2に示すフローチャートによる一連の制
御を実行するためのプログラム等が格納されている。1
06は後述するアルゴリズムによってRGB形式の色デ
ータをYMCK形式の色データに変換するための色変換
回路であり、107は後述するアルゴリズムによってY
MCK形式の色データをRGB形式の色データに逆変換
するための色変換回路である。108はRAMであり、
CPU103がプログラムを実行する際にワークエリア
として機能する。また、RAM108内には現在の描画
論理を格納する描画論理フラグ109とYMCKのラス
タデータを格納するフレームメモリ領域110が含まれ
る。111は画像出力部であり、フレームメモリ領域1
10に格納されているYMCKのラスタデータを順次Y
MCKカラー印刷エンジンであるカラー・レーザ・ビー
ム・プリンタ112に出力する。更に、本制御ユニット
101には不図示の電源が接続されている。
In FIG. 1, reference numeral 101 denotes a host computer, which is connected to a control unit 102 of the YMCK full-color printing apparatus indicated by a broken line via a connector (not shown). The control unit 102 is the host computer 1
It is configured to receive a command, data, etc. from 01 and print out. 103 is a CPU, and this is Y
Calculation to control all MCK full-color printers
Take control. A reception buffer 104 temporarily stores received data such as commands and data from the host computer 101. Reference numeral 105 denotes a program ROM, which stores programs and the like for executing a series of controls according to a flowchart shown in FIG. 2 described later. 1
Reference numeral 06 represents a color conversion circuit for converting RGB format color data into YMCK format color data by an algorithm described later, and 107 represents Y by the algorithm described later.
A color conversion circuit for inversely converting MCK format color data into RGB format color data. 108 is a RAM,
The CPU 103 functions as a work area when the program is executed. Further, the RAM 108 includes a drawing logic flag 109 for storing the current drawing logic and a frame memory area 110 for storing the YMCK raster data. An image output unit 111 is a frame memory area 1
YMCK raster data stored in 10
Output to the color laser beam printer 112 which is an MCK color print engine. Further, a power source (not shown) is connected to the control unit 101.

【0014】次に、RGB形式の色データをYMCK形
式の色データに変換する色変換回路106及びYMCK
形式の色データをRGB形式の色データに逆変換する色
変換回路107について説明する。RGB形式の色デー
タをYMC形式の色データに変換する際、減法混色モデ
ルを仮定すると、 r=Yb -yb -mb -c g=Yg -yg -mg -c b=Yr -yr -mr -c のように表すことができる。
Next, the color conversion circuit 106 and YMCK for converting the RGB format color data into the YMCK format color data.
A color conversion circuit 107 for inversely converting format color data into RGB format color data will be described. When converting color data in the RGB format to color data of the YMC format, assuming a subtractive color model, r = Y b -y M b -m C b -c g = Y g -y M g -m C g - It can be expressed as c b = Y r -y M r -m C r -c .

【0015】この両辺に−log をとり、まとめると、Taking -log on both sides and summarizing,

【0016】[0016]

【数1】 [Equation 1]

【0017】上式の逆変換をとって、係数をまとめる
と、
By taking the inverse transformation of the above equation and putting the coefficients together,

【0018】[0018]

【数2】 [Equation 2]

【0019】となる。ここで、YMC形式のデータをY
MCK形式のデータに変換するために、いわゆる墨加刷
及び下色除去を行う。これらの処理は以下の式で示され
る。 K=k* min (Y′,M′,C′),0≦k≦1 Y=Y′−K,M=M′−K,C=C′−K 以上の変換によりRGBデータをYMCKデータに変換
することができる。
It becomes Here, YMC format data is Y
In order to convert the data into MCK format data, so-called black printing and undercolor removal are performed. These processes are shown by the following formulas. K = k * min (Y ', M', C '), 0≤k≤1 Y = Y'-K, M = M'-K, C = C'-K RGB data is converted to YMCK data by the above conversion. Can be converted to.

【0020】更に、YMCKデータをRGBデータに逆
変換するために上記変換式の逆算により、 Y′=Y+K,M′=M+K,C′=C+K
Further, in order to inversely convert the YMCK data into the RGB data, by the inverse calculation of the above conversion formula, Y '= Y + K, M' = M + K, C '= C + K

【0021】[0021]

【数3】 [Equation 3]

【0022】 R=10-log b,G=10-log g,B=10-log r のようにして変換される。色変換回路106及び107
は、上記変換アルゴリズムをロジック回路を用いてハー
ドウェア化したものである。次に、図1の構成を備える
本カラー印刷装置の動作について図2に示すフローチャ
ートに従って説明する。
Conversion is performed as R = 10 −log b , G = 10 −log g , and B = 10 −log r . Color conversion circuits 106 and 107
Is a hardware implementation of the above conversion algorithm using a logic circuit. Next, the operation of the color printing apparatus having the configuration of FIG. 1 will be described with reference to the flowchart shown in FIG.

【0023】まず、カラー印刷装置本体に電源が供給さ
れると、ステップS201へ進み、現在の描画論理フラ
グ109をoverWrite (上書き)描画論理に、YMCK
形式のフレームメモリ領域110の内容を“0”(白)
にそれぞれ初期化する。次に、ステップS202でホス
トコンピュータ101よりデータを受信し、受信したデ
ータを受信バッファ104に格納し、この格納した受信
バッファ104から1単位コード分のデータを読み取
る。そして、ステップS203で、受信データをコマン
ドとして解釈し、これが描画コマンドか、描画論理変更
コマンドか、排紙コマンドかを判断してコマンド分岐を
行う。
First, when power is supplied to the main body of the color printing apparatus, the process proceeds to step S201, where the current drawing logic flag 109 is set to overWrite (overwrite) drawing logic and YMCK.
Format frame memory area 110 contents to "0" (white)
Initialize to each. Next, in step S202, data is received from the host computer 101, the received data is stored in the reception buffer 104, and one unit code of data is read from the stored reception buffer 104. Then, in step S203, the received data is interpreted as a command, and it is determined whether this is a drawing command, a drawing logic change command, or a paper discharge command, and command branching is performed.

【0024】ここで、描画論理変更コマンドと判断され
た場合、ステップS204へ進み、指定された描画論理
コマンドの種類(addOver,addPin,subOver,subPin,adMa
x,adMin,blend,overWrite のいずれか)を描画論理フラ
グ109に設定し、ステップS202に戻る。他方、ス
テップS203で描画コマンドと判断された場合、ステ
ップS205へ進み、その描画対象オブジェクトとその
描画色R000 を獲得し、ステップS206で描画
論理フラグ109に設定されている描画論理で、YMC
K形式のフレーム領域110に描画し、ステップS20
2に戻る。
If the drawing logic change command is determined, the process proceeds to step S204, and the specified drawing logic command type (addOver, addPin, subOver, subPin, adMa) is added.
x, adMin, blend, overWrite) is set in the drawing logic flag 109, and the process returns to step S202. On the other hand, if the drawing command is determined in step S203, the process proceeds to step S205, the drawing target object and the drawing color R 0 G 0 B 0 are acquired, and the drawing logic set in the drawing logic flag 109 in step S206. Then YMC
Drawing in the K-format frame area 110, step S20
Return to 2.

【0025】更に他方、ステップS203で排紙命令と
判断された場合、ステップS207へ進み、YMCK形
式のフレームメモリ領域110の内容を画像出力部11
1を介して順次YMCKカラー印刷エンジンであるカラ
ー・レーザ・ビーム・プリンタ112に出力し、ステッ
プS202に戻る。次に、図2に示すステップS206
の詳細を、描画論理フラグ109にblendが設定されて
いる場合を例に、図3に示すフローチャートに従って説
明する。
On the other hand, if it is determined in step S203 that the instruction is a paper discharge instruction, the flow advances to step S207 to display the contents of the YMCK format frame memory area 110 in the image output unit 11.
The data is sequentially output to the color laser beam printer 112, which is the YMCK color print engine, via 1 and the process returns to step S202. Next, step S206 shown in FIG.
Will be described in detail with reference to the flowchart shown in FIG. 3, taking as an example the case where blend is set in the drawing logic flag 109.

【0026】まず、ステップS301で、YMCK形式
のフレームメモリ領域110の描画オブジェクトを描画
する位置に相当する色データY1111 を獲得す
る。次に、ステップS302で、このY1111
をYMCK形式の色データをRGB形式の色データに逆
変換する色変換回路107を用いて、R111 に逆
変換する。次に、ステップS303で、このR11
1 と描画オブジェクトの描画色R000 とを描画論
理blend によって混色する。この結果R222 は、 [R2G2B2]=[R0G0B0* weight+[R1G1B1* (1−weight) によって求められる。
First, in step S301, color data Y 1 M 1 C 1 K 1 corresponding to the position for drawing a drawing object in the YMCK format frame memory area 110 is acquired. Next, in step S302, this Y 1 M 1 C 1 K 1
Is inversely converted into R 1 G 1 B 1 by using a color conversion circuit 107 for inversely converting YMCK format color data into RGB format color data. Next, in step S303, this R 1 G 1 B
1 and the drawing color R 0 G 0 B 0 of the drawing object are mixed by the drawing logic blend. Consequently R 2 G 2 B 2 are determined by [R 2 G 2 B 2] = [R 0 G 0 B 0] * weight + [R 1 G 1 B 1] * (1-weight).

【0027】次に、ステップS304で、このR22
2 をRGB形式の色データをYMCK形式の色データ
に変換する色変換回路106を用いて、Y222
2 に変換し、このY2222 でYMCK形式のフ
レームメモリ領域110の描画オブジェクトを描画する
位置に相当する色データを置き換える。尚、描画論理フ
ラグ109の内容がblend 以外の場合には、ステップS
303の混色の変換式がそれぞれの描画論理によって以
下のように変更される。
Next, in step S304, this R 2 G 2
Using a color conversion circuit 106 that converts B 2 RGB color data into YMCK color data, Y 2 M 2 C 2 K
2, and the color data corresponding to the position for drawing the drawing object in the YMCK format frame memory area 110 is replaced with this Y 2 M 2 C 2 K 2 . If the content of the drawing logic flag 109 is other than blend, step S
The conversion formula of the color mixture of 303 is changed as follows according to each drawing logic.

【0028】addOver の場合、 [R2G2B2]=[R0G0B0]+[R1G1B1]>[RmaxGmaxBmax]? [R0+R1-Rmax G0+G1-Gmax B0+B1-Bmax]:[R0+R1 G0+G1 B0+B1] addPinの場合、 [R2G2B2]=min([R0G0B0]+[R1G1B1],[RmaxGmaxBmax]) subOver の場合、 [R2G2B2]=[R1G1B1]−[R0G0B0]<[RminGminBmin]? [Rmin-R1+R0 Gmin-G1+G0 Bmin-B1+B0]:[R1-R0 G1-G0 B1-B0] subPinの場合、 [R2G2B2]=max([R1G1B1]−[R0G0B0],[RminGminBmin]) adMax の場合、 [R2G2B2]=max([R1G1B1], [R0G0B0]) adMin の場合、 [R2G2B2]=min([R1G1B1],[R0G0B0]) overWrite の場合、 [R2G2B2]=[R0G0B0] <第2実施例>図4は、第2実施例におけるYMC形式
のフルカラー印刷装置のブロック図である。
In the case of addOver, [R 2 G 2 B 2 ] = [R 0 G 0 B 0 ] + [R 1 G 1 B 1 ]> [R max G max B max ]? [R 0 + R 1 -R max G 0 + G 1 -G max B 0 + B 1 -B max ]: [R 0 + R 1 G 0 + G 1 B 0 + B 1 ] In case of addPin, [R 2 G 2 B 2 ] = min ([R 0 G 0 B 0 ] + [R 1 G 1 B 1 ], [R max G max B max ]) In case of subOver, [R 2 G 2 B 2 ] = [ R 1 G 1 B 1 ]-[R 0 G 0 B 0 ] <[R min G min B min ]? [R min -R 1 + R 0 G min -G 1 + G 0 B min -B 1 + B 0 ]: [R 1 -R 0 G 1 -G 0 B 1 -B 0 ] In case of subPin, [R 2 G 2 B 2] = max ([R 1 G 1 B 1] - [R 0 G 0 B 0], [R min G min B min]) for adMax, [R 2 G 2 B 2] = max ([R 1 G 1 B 1 ], [R 0 G 0 B 0 ]) In the case of adMin, [R 2 G 2 B 2 ] = min ([R 1 G 1 B 1 ], [R 0 G 0 B 0 ]) In the case of overWrite, [R 2 G 2 B 2 ] = [R 0 G 0 B 0 ] <Second Embodiment> FIG. 4 is a block diagram of a YMC format full-color printing apparatus in the second embodiment.

【0029】図4において、401はホストコンピュー
タであり、破線で示すYMCフルカラー印刷装置の制御
ユニット402と、不図示のコネクタを介して接続され
ている。制御ユニット402はホストコンピュータ40
1からコマンド及びデータ等を受け取って印刷出力する
ように構成されている。403はCPUであり、本YM
Cフルカラー印刷装置の全制御を行うための演算・制御
を行う。404は受信バッファであり、ホストコンピュ
ータ401よりのコマンド及びデータ等の受信データを
一時的に蓄える。405はプログラムROMであり、後
述する図5のフローチャートによる一連の制御を実行す
るためのプログラム等が格納されている。406は後述
するアルゴリズムによってRGB形式の色データをYM
C形式の色データに変換する色変換回路であり、407
は後述するアルゴリズムによってYMC形式の色データ
をRGB形式の色データに逆変換する色変換回路であ
る。408はRAMであり、CPU403がプログラム
を実行する際にワークエリアとして機能する。また、R
AM408内には現在の描画論理を格納する描画論理フ
ラグ409とYMCのラスタデータを格納するフレーム
メモリ領域410が含まれる。411は画像出力部であ
り、フレームメモリ領域410に格納されているYMC
データを順次YMCカラー印刷エンジンであるカラー・
レーザ・ビーム・プリンタ412に出力する。更に、本
制御ユニット401には不図示の電源が接続されてい
る。
In FIG. 4, reference numeral 401 denotes a host computer, which is connected to a control unit 402 of the YMC full-color printing device indicated by a broken line via a connector (not shown). The control unit 402 is the host computer 40
It is configured to receive a command, data, etc. from 1 and print out. 403 is a CPU, and this YM
C Performs calculations and controls to control the full-color printing device. A reception buffer 404 temporarily stores reception data such as commands and data from the host computer 401. A program ROM 405 stores programs and the like for executing a series of controls according to the flowchart of FIG. 5 described later. Reference numeral 406 represents YM color data in RGB format according to an algorithm described later.
407 is a color conversion circuit for converting into C format color data.
Is a color conversion circuit for inversely converting YMC format color data into RGB format color data by an algorithm described later. A RAM 408 functions as a work area when the CPU 403 executes the program. Also, R
The AM 408 includes a drawing logic flag 409 for storing the current drawing logic and a frame memory area 410 for storing the YMC raster data. An image output unit 411 is a YMC stored in the frame memory area 410.
Data are sequentially printed in YMC color printing engine,
Output to the laser beam printer 412. Furthermore, a power source (not shown) is connected to the control unit 401.

【0030】次に、RGB形式の色データをYMC形式
の色データに変換する色変換回路406及びYMC形式
の色データをRGB形式の色データに逆変換する色変換
回路407について説明する。RGB形式の色データを
YMC形式の色データに変換する際、減法混色モデルを
仮定すると、 r=Yb -yb -mb -c g=Yg -yg -mg -c b=Yr -yr -mr -c のように表すことができる。
Next, a color conversion circuit 406 for converting RGB format color data into YMC format color data and a color conversion circuit 407 for inverse conversion of YMC format color data into RGB format color data will be described. When converting color data in the RGB format to color data of the YMC format, assuming a subtractive color model, r = Y b -y M b -m c b -c g = Y g -y M g -m c g - It can be expressed as c b = Y r -y M r -m cr -c .

【0031】この式の両辺に−log をとり、まとめる
と、
Taking -log on both sides of this equation and summarizing,

【0032】[0032]

【数4】 [Equation 4]

【0033】上式の逆変換をとって、係数をまとめる
と、
Taking the inverse transformation of the above equation and putting the coefficients together,

【0034】[0034]

【数5】 [Equation 5]

【0035】となる。以上の変換によりRGBデータを
YMCデータに変換することができる。更に、YMCデ
ータをRGBデータに逆変換するために、上記変換式の
逆算により、
[0035] By the above conversion, RGB data can be converted into YMC data. Further, in order to inversely convert the YMC data into RGB data, by the inverse calculation of the above conversion formula,

【0036】[0036]

【数6】 [Equation 6]

【0037】 R=10-log b,G=10-log g,B=10-log r のようにして変換される。色変換回路406及び407
は、上記変換アルゴリズムをロジック回路を用いてハー
ドウェア化したものである。次に、図4の構成を備える
本カラー印刷装置の動作について図5に示すフローチャ
ートに従って説明する。
Conversion is performed as R = 10 −log b , G = 10 −log g , and B = 10 −log r . Color conversion circuits 406 and 407
Is a hardware implementation of the above conversion algorithm using a logic circuit. Next, the operation of the color printing apparatus having the configuration of FIG. 4 will be described with reference to the flowchart shown in FIG.

【0038】まず、カラー印刷装置本体に電源が供給さ
れると、ステップS501へ進み、現在の描画論理フラ
グ409をoverWrite (上書き)描画論理に、YMC形
式のフレームメモリ領域410の内容を“0”(白)に
それぞれ初期化する。次に、ステップS502でホスト
コンピュータ401よりデータを受信し、受信したデー
タを受信バッファ404に格納し、この格納した受信バ
ッファ404から1単位コード分のデータを読み取る。
そして、ステップS503で、受信データをコマンドと
して解釈し、これが描画コマンドか、描画論理設定コマ
ンドか、排紙コマンドかを判断してコマンド分岐を行
う。
First, when power is supplied to the main body of the color printing apparatus, the process advances to step S501 to set the current drawing logic flag 409 to the overWrite drawing logic and set the contents of the YMC format frame memory area 410 to "0". Initialize each to (white). Next, in step S502, data is received from the host computer 401, the received data is stored in the reception buffer 404, and one unit code of data is read from the stored reception buffer 404.
Then, in step S503, the received data is interpreted as a command, and it is determined whether this is a drawing command, a drawing logic setting command, or a paper discharge command, and command branching is performed.

【0039】ここで、描画論理設定コマンドと判断され
た場合、ステップS504へ進み、指定された描画論理
コマンドの種類(addOver,addPin,subOver,subPin,adMa
x,adMin,blend,overWrite のいずれか)を描画論理フラ
グ409に設定し、ステップS502に戻る。他方、ス
テップS503で描画コマンドと判断された場合、ステ
ップS505へ進み、その描画対象オブジェクトとその
描画色R000 を獲得し、ステップS506で描画
論理フラグ409に設定されている描画論理で、YMC
形式のフレーム領域410に描画し、ステップS502
に戻る。
If it is determined that the command is a drawing logic setting command, the flow advances to step S504 to proceed to the specified drawing logic command type (addOver, addPin, subOver, subPin, adMa).
x, adMin, blend, overWrite) is set in the drawing logic flag 409, and the process returns to step S502. On the other hand, if the drawing command is determined in step S503, the process proceeds to step S505, the drawing target object and the drawing color R 0 G 0 B 0 are acquired, and the drawing logic flag 409 set in step S506. Then YMC
Draw in the frame area 410 of the format, and step S502
Return to.

【0040】更に他方、ステップS503で排紙命令と
判断された場合、ステップS507でYMC形式のフレ
ームメモリ領域410の内容を画像出力部411を介し
て順次YMCカラー印刷エンジンであるカラー・レーザ
・ビーム・プリンタ412に出力し、ステップS502
に戻る。次に、図5に示すステップS506の詳細を、
描画論理フラグ409にblendが設定されている場合を
例に、図6に示すフローチャートに従って説明する。
On the other hand, if it is determined in step S503 that a paper discharge command has been issued, the contents of the YMC format frame memory area 410 are sequentially output through the image output unit 411 to the color laser beam, which is the YMC color print engine, in step S507. -Output to the printer 412, step S502
Return to. Next, the details of step S506 shown in FIG.
A case where blend is set in the drawing logic flag 409 will be described as an example according to the flowchart shown in FIG.

【0041】まず、ステップS601で、YMC形式の
フレームメモリ領域610の描画オブジェクトを描画す
る位置に相当する色データY111 を獲得する。次
に、ステップS602で、このY111 をYMC形
式の色データをRGB形式の色データに逆変換する色変
換回路407を用いて、R111 に逆変換する。次
に、ステップS603で、このR111 と描画オブ
ジェクトの描画色R000 とを描画論理blend によ
って混色する。この結果R222 は、 [R2G2B2]=[R0G0B0*weight +[R1G1B1* (1−weight) によって求められる。
First, in step S601, color data Y 1 M 1 C 1 corresponding to a position for drawing a drawing object in the YMC format frame memory area 610 is acquired. Next, in step S602, the Y 1 M 1 C 1 is inversely converted into R 1 G 1 B 1 by using a color conversion circuit 407 which inversely converts YMC format color data into RGB format color data. Next, in step S603, the R 1 G 1 B 1 and the drawing color R 0 G 0 B 0 of the drawing object are mixed by the drawing logic blend. Consequently R 2 G 2 B 2 are determined by [R 2 G 2 B 2] = [R 0 G 0 B 0] * weight + [R 1 G 1 B 1] * (1-weight).

【0042】次に、ステップS604で、このR22
2 をRGB形式の色データをYMC形式の色データに
変換する色変換回路406を用いて、Y222 に変
換し、このY222 でYMC形式のフレームメモリ
領域410の描画オブジェクトを描画する位置に相当す
る色データを置き換える。尚、描画論理フラグ409の
内容がblend 以外の場合には、ステップS603の混色
の変換式がそれぞれの描画論理によって以下のように変
更される。
Next, in step S604, this R 2 G 2
B 2 is converted into Y 2 M 2 C 2 using a color conversion circuit 406 that converts RGB format color data into YMC format color data, and this Y 2 M 2 C 2 is used to convert the YMC frame memory area 410. Replace the color data corresponding to the drawing position of the drawing object. When the content of the drawing logic flag 409 is other than blend, the color mixing conversion formula in step S603 is changed as follows according to each drawing logic.

【0043】addOver の場合、 [R2G2B2]=[R0G0B0]+[R1G1B1]>[RmaxGmaxBmax]? [R0+R1-Rmax G0+G1-Gmax B0+B1-Bmax]:[R0+R1 G0+G1 B0+B1] addPinの場合、 [R2G2B2]=min([R0G0B0]+[R1G1B1],[RmaxGmaxBmax]) subOver の場合、 [R2G2B2]=[R1G1B1]−[R0G0B0]<[RminGminBmin]? [Rmin-R1+R0 Gmin-G1+G0 Bmin-B1+B0]:[R1-R0 G1-G0 B1-B0] subPinの場合、 [R2G2B2]=max([R1G1B1]−[R0G0B0],[RminGminBmin]) adMax の場合、 [R2G2B2]=max([R1G1B1],[R0G0B0]) adMin の場合、 [R2G2B2]=min([R1G1B1],[R0G0B0]) overWrite の場合、 [R2G2B2]=[R0G0B0] 以上説明したように、第1及び第2実施例によれば、R
GB形式で入力される色データを有する描画データをY
MCK又はYMC形式のラスタメモリに書き込む際に、
予めラスタメモリ上の描画データの描画位置に格納され
ているYMCK又はYMCデータを獲得し、YMCK又
はYMC形式からRGB形式に変換し、得られたRGB
データと描画データのRGB形式で入力された色データ
とを混合して新たなRGBデータを得、得られたRGB
データを前記RGB形式からYMCK又はYMC形式に
変換し、ラスタメモリ上の描画データの描画位置に書き
込むことにより、YMCK或いはYMC形式のフルカラ
ー印刷装置において、RGBのラスタープレーンを有す
ることなく、省メモリ、かつ高速にRGBのカラーブレ
ンド機能(色の各種描画論理)を実現できるという効果
がある。
In the case of addOver, [R 2 G 2 B 2 ] = [R 0 G 0 B 0 ] + [R 1 G 1 B 1 ]> [R max G max B max ]? [R 0 + R 1 -R max G 0 + G 1 -G max B 0 + B 1 -B max ]: [R 0 + R 1 G 0 + G 1 B 0 + B 1 ] In case of addPin, [R 2 G 2 B 2 ] = min ([R 0 G 0 B 0 ] + [R 1 G 1 B 1 ], [R max G max B max ]) In case of subOver, [R 2 G 2 B 2 ] = [ R 1 G 1 B 1 ]-[R 0 G 0 B 0 ] <[R min G min B min ]? [R min -R 1 + R 0 G min -G 1 + G 0 B min -B 1 + B 0 ]: [R 1 -R 0 G 1 -G 0 B 1 -B 0 ] In case of subPin, [R 2 G 2 B 2] = max ([R 1 G 1 B 1] - [R 0 G 0 B 0], [R min G min B min]) for adMax, [R 2 G 2 B 2] = max ([R 1 G 1 B 1 ], [R 0 G 0 B 0 ]) In the case of adMin, [R 2 G 2 B 2 ] = min ([R 1 G 1 B 1 ], [R 0 G 0 B 0 ]) In the case of overWrite, [R 2 G 2 B 2 ] = [R 0 G 0 B 0 ] As described above, according to the first and second embodiments, R
Y for drawing data having color data input in GB format
When writing to MCK or YMC format raster memory,
RGB obtained by acquiring YMCK or YMC data stored in advance in the drawing position of the drawing data on the raster memory and converting from YMCK or YMC format to RGB format
The data and the color data input in the RGB format of the drawing data are mixed to obtain new RGB data, and the obtained RGB
By converting the data from the RGB format to the YMCK or YMC format and writing the data at the drawing position of the drawing data on the raster memory, the YMCK or YMC format full-color printing apparatus does not have an RGB raster plane and saves memory. Moreover, there is an effect that a color blending function of RGB (various color drawing logics) can be realized at high speed.

【0044】尚、第1及び第2実施例では、印刷出力装
置としてカラー・レーザ・プリンタを用いたが、カラー
・インクジェット・プリンタ、カラー・熱転写プリンタ
(昇華型を含む)、カラー銀塩プリンタ等、YMC或い
はYMCK形式のカラー印刷装置であればどのようなタ
イプの印刷装置に適用しても構わない。また、第1及び
第2実施例では、RGB←→YMC或いはRGB←→Y
MCKの色変換をハードウェア回路を用いて実現した
が、ソフトウェアで行っても構わない。逆に、第1及び
第2実施例では、addOver,addPin,subOver,subPin,adMa
x,adMin,blend,overWrite 等の論理描画をソフトウェア
を用いて実現したが、ハードウェアのロジック回路で実
現しても構わないし、その方がより高速に実行できる利
点がある。更に、RGB←→YMC或いはRGB←→Y
MCKの色変換回路とaddOver,addPin,subOver,subPin,
adMax,adMin,blend,overWrite 等の論理描画回路とを合
体させることにより、より高速に実行が可能になる。
In the first and second embodiments, the color laser printer is used as the print output device, but a color ink jet printer, a color thermal transfer printer (including a sublimation type), a color silver salt printer, etc. , YMC or YMCK format color printing apparatus may be applied to any type of printing apparatus. In addition, in the first and second embodiments, RGB ← → YMC or RGB ← → Y
Although the color conversion of MCK is realized by using a hardware circuit, it may be performed by software. On the contrary, in the first and second embodiments, addOver, addPin, subOver, subPin, adMa
Although logic drawing such as x, adMin, blend, and overWrite is realized by using software, it may be realized by a hardware logic circuit, which has an advantage that it can be executed at higher speed. Furthermore, RGB ← → YMC or RGB ← → Y
MCK color conversion circuit and addOver, addPin, subOver, subPin,
By combining with logic drawing circuits such as adMax, adMin, blend, and overWrite, it becomes possible to execute at higher speed.

【0045】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或いは装置にプロ
グラムを供給することによって達成される場合にも適用
できることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can also be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0046】[0046]

【発明の効果】以上説明したように、本発明によれば、
メモリ容量を増大させることなく、RGBのカラーブレ
ンド機能を有する高速、かつ高解像度のカラー印刷装置
を提供することが可能となる。
As described above, according to the present invention,
It is possible to provide a high-speed and high-resolution color printing device having an RGB color blending function without increasing the memory capacity.

【図面の簡単な説明】[Brief description of drawings]

【図1】第1実施例におけるYMCK形式のカラー印刷
装置の構成を示す概略ブロックである。
FIG. 1 is a schematic block diagram showing the configuration of a YMCK color printer according to a first embodiment.

【図2】YMCK形式のカラー印刷装置における制御を
表すフローチャートである。
FIG. 2 is a flowchart showing control in a YMCK format color printing apparatus.

【図3】描画論理部のアルゴリズムの詳細を示すフロー
チャートである。
FIG. 3 is a flowchart showing details of an algorithm of a drawing logic unit.

【図4】第2実施例におけるYMC形式のカラー印刷装
置の構成を示す概略ブロック図である。
FIG. 4 is a schematic block diagram showing a configuration of a YMC format color printing apparatus in a second embodiment.

【図5】YMC形式のカラー印刷装置における制御を表
すフローチャートである。
FIG. 5 is a flowchart showing control in a YMC color printer.

【図6】描画論理部のアルゴリズムの詳細を示すフロー
チャートである。
FIG. 6 is a flowchart showing details of an algorithm of a drawing logic unit.

【符号の説明】[Explanation of symbols]

101 ホストコンピュータ 102 YMCKフルカラー印刷装置の制御ユニット 103 CPU 104 受信バッファ 105 プログラムROM 106 RGB→YMCK色変換回路 107 YMCK→RGB色変換回路 108 RAM 109 YMCKフレームメモリ領域 110 描画論理フラグ 111 画像出力部 112 YMCK方式カラー・レーザ・プリンタ 101 Host Computer 102 Control Unit of YMCK Full Color Printer 103 CPU 104 Reception Buffer 105 Program ROM 106 RGB → YMCK Color Conversion Circuit 107 YMCK → RGB Color Conversion Circuit 108 RAM 109 YMCK Frame Memory Area 110 Drawing Logic Flag 111 Image Output Section 112 YMCK Method Color laser printer

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06T 11/00 H04N 1/46 9192−5L G06F 15/72 310 4226−5C H04N 1/46 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06T 11/00 H04N 1/46 9192-5L G06F 15/72 310 4226-5C H04N 1/46 Z

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 減法混色を用いてフルカラー画像を印刷
するカラー印刷装置であって、 加法混色の色データを減法混色の色データに変換する第
1の色変換手段と、 減法混色の色データを加法混色の色データに変換する第
2の色変換手段と、 加法混色の2種類の色データを混合して新たな色データ
を作成する色混合手段とを備え、 前記第2の色変換手段で変換された加法混色の色データ
と入力された加法混色の色データとを前記色混合手段に
より混合し、混合された色データを前記第1の色変換手
段で色変換して出力することを特徴とするカラー印刷装
置。
1. A color printing apparatus for printing a full-color image using subtractive color mixing, comprising: first color conversion means for converting color data of the additive color mixture into color data of the subtractive color mixture; and color data of the subtractive color mixture. The second color conversion means includes a second color conversion means for converting color data of additive color mixture and a color mixing means for mixing two kinds of color data of additive color mixture to create new color data. The converted color data of the additive color mixture and the input color data of the additive color mixture are mixed by the color mixing means, and the mixed color data is converted by the first color conversion means and output. And color printing equipment.
【請求項2】 前記加法混色の色データはRGBデータ
であり、減法混色の色データはYMCKデータ、或いは
YMCデータであることを特徴とする請求項1記載のカ
ラー印刷装置。
2. The color printing apparatus according to claim 1, wherein the color data of the additive color mixture is RGB data, and the color data of the additive color mixture is YMCK data or YMC data.
JP5270346A 1993-10-28 1993-10-28 Color printing apparatus and control method for color printing apparatus Expired - Fee Related JP3071349B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5270346A JP3071349B2 (en) 1993-10-28 1993-10-28 Color printing apparatus and control method for color printing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5270346A JP3071349B2 (en) 1993-10-28 1993-10-28 Color printing apparatus and control method for color printing apparatus

Publications (2)

Publication Number Publication Date
JPH07123281A true JPH07123281A (en) 1995-05-12
JP3071349B2 JP3071349B2 (en) 2000-07-31

Family

ID=17484986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5270346A Expired - Fee Related JP3071349B2 (en) 1993-10-28 1993-10-28 Color printing apparatus and control method for color printing apparatus

Country Status (1)

Country Link
JP (1) JP3071349B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6781714B1 (en) 1999-02-12 2004-08-24 Nec Corporation Color image processing system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6781714B1 (en) 1999-02-12 2004-08-24 Nec Corporation Color image processing system and method

Also Published As

Publication number Publication date
JP3071349B2 (en) 2000-07-31

Similar Documents

Publication Publication Date Title
US6897988B1 (en) Image processing apparatus, image processing method, and storage medium for color matching
US6075514A (en) Color table look-up having last value memory
JP4148511B2 (en) Image processing apparatus, drawing data processing method, and program for executing the method
JP2002044479A (en) Color management method and device
US7010161B2 (en) Image processing device, image processing method, and computer readable medium storing program for image color correction with priority to one of color reproduction and brightness
JP2009154365A (en) Image processing apparatus, image processing method, image processing program and recording medium
JP2010041267A (en) Image processing apparatus, image processing method, and computer readable recording medium storing program for performing the method
JP2008072650A (en) Image processor, image forming apparatus, and program
JP2008179120A (en) System and program for forming image
US6046748A (en) Cooperative filter and raster operation evaluation model
JP3071349B2 (en) Color printing apparatus and control method for color printing apparatus
JP2008061069A (en) Image processing apparatus, image output device, terminal device, and image forming system, and program
US6979069B2 (en) Color conversion processing method, color conversion processing apparatus, and color conversion processing program storage medium
JP6794821B2 (en) Image processing equipment and computer programs
JP2006260532A (en) Image forming apparatus and method
JP4524578B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP4081773B2 (en) Color printing system and color printer
JP4421646B2 (en) Image processing apparatus, drawing data processing method, and program for executing the method
JP2004147301A (en) Color conversion processing method, color conversion processing apparatus, and color conversion processing program
JP2962746B2 (en) Image processing apparatus and method
JP3250552B2 (en) Color print processing apparatus and color print processing method
JP3864405B2 (en) Color printing system and color printer
JP2006019899A (en) Color converting apparatus and color converting method
JP4706732B2 (en) Color conversion apparatus, color conversion program, and color conversion method
US8351099B2 (en) Hue specific monochromatic printing mechanism

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000501

LAPS Cancellation because of no payment of annual fees