JP2023134195A - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP2023134195A
JP2023134195A JP2022039573A JP2022039573A JP2023134195A JP 2023134195 A JP2023134195 A JP 2023134195A JP 2022039573 A JP2022039573 A JP 2022039573A JP 2022039573 A JP2022039573 A JP 2022039573A JP 2023134195 A JP2023134195 A JP 2023134195A
Authority
JP
Japan
Prior art keywords
color conversion
color
data
conversion method
intermediate data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2022039573A
Other languages
Japanese (ja)
Inventor
拓哉 井上
Takuya Inoue
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 JP2022039573A priority Critical patent/JP2023134195A/en
Publication of JP2023134195A publication Critical patent/JP2023134195A/en
Pending legal-status Critical Current

Links

Images

Abstract

To prevent occurrence of mismatch of drawing colors in a same page in printing color data in a monochrome mode.SOLUTION: A page analysis unit reads a drawing instruction and generates intermediate data on the basis of, the drawing instruction. A color conversion unit generates a color conversion table for density enhancement. The page analysis unit determines whether to perform fallback processing because the generated intermediate data does not fall within an intermediate data storage area of a RAM. In performing the fallback processing, a color conversion method setting unit sets and changes a color conversion method from "density enhancement" to "gray-scaling all colors." An image processing control unit temporarily renders the intermediate data stored in the RAM, and registers raster image data after the rendering in the intermediate data unable to be stored in the RAM as a background image. The image processing control unit performs color conversion by using the color conversion unit, and generates the raster image data on the basis of the intermediate data for one page.SELECTED DRAWING: Figure 3

Description

本発明は、カラーデータをモノクロ印刷するための画像処理技術に関するものである。 The present invention relates to an image processing technique for monochrome printing of color data.

画像形成装置がRGB形式などで複数の色成分で表される複数の色を含むカラー原稿をグレースケール形式で出力する場合、一般的には、入力されるRGB値を、全カラー値を対象とする一律の変換式(NTSC変換など)を用いてグレー値に変換して出力する。全カラー値を対象として行われる色変換(以下、全カラー対象色変換と呼ぶ。)は、階調性が求められている原稿に有効である。 When an image forming apparatus outputs a color original in grayscale format that includes multiple colors represented by multiple color components, such as in RGB format, the input RGB values are generally converted to include all color values. It is converted into a gray value using a uniform conversion formula (such as NTSC conversion) and output. Color conversion performed on all color values (hereinafter referred to as all-color color conversion) is effective for documents requiring gradation.

一方、原稿の同一ページ内で使用されている色に変換対象を絞り、各色の濃度値と各ページで使用される色数に応じてグレーの濃度値間隔を出来るだけ大きく設定する色変換方法が提案されている。この方法は、色分けされた要素間の弁別性が重要なグラフなどを含む原稿に有効である。特許文献1には、PDLデータを解析して生成された1ページ分の色変換テーブルに基づき、レンダリング開始前に中間データの使用色テーブルを書き換える技術が開示されている。 On the other hand, there is a color conversion method that narrows down the conversion target to the colors used within the same page of the original and sets the gray density value interval as large as possible according to the density value of each color and the number of colors used on each page. Proposed. This method is effective for manuscripts that include graphs and the like in which distinguishability between color-coded elements is important. Patent Document 1 discloses a technique for rewriting a color table used in intermediate data before starting rendering, based on a color conversion table for one page generated by analyzing PDL data.

特開2020-49939号公報Japanese Patent Application Publication No. 2020-49939

ところで画像形成装置では、1ページ分の中間データを生成している途中でメモリオーバーフローが発生すると、それまでに生成した中間データを一旦レンダリングし、残りを別の中間データとして生成するフォールバック処理が行われる。しかしながら、特許文献1の技術では、フォールバック処理が行われ、ページ途中までの中間データからラスタ画像データを生成すると、その後に生成されたラスタ画像データとの間で描画色の不整合が生じる場合がある。これは、色変換テーブルに設定される色が中間データを生成する過程で逐次追加されるため、色数に基づきグレー値の間隔を設定する場合、例えばページ途中とページ全体とでは色変換テーブルに設定される色数が変化してグレー値も変化するためである。 By the way, in an image forming apparatus, if a memory overflow occurs while generating intermediate data for one page, a fallback process is performed that temporarily renders the intermediate data generated so far and generates the remaining intermediate data as other intermediate data. It will be done. However, in the technology of Patent Document 1, fallback processing is performed, and when raster image data is generated from intermediate data up to the middle of the page, a mismatch in drawing color may occur with raster image data generated after that. There is. This is because the colors set in the color conversion table are added sequentially during the process of generating intermediate data, so when setting gray value intervals based on the number of colors, for example, in the middle of a page and on the entire page, the color conversion table is This is because the number of colors set changes and the gray value also changes.

そこで、本発明は、カラーデータをモノクロで印刷する際、同一ページ内の描画色に不整合が生じるのを防止することを目的とする。 SUMMARY OF THE INVENTION Therefore, an object of the present invention is to prevent mismatching of drawn colors on the same page when printing color data in monochrome.

本発明は、画像処理装置であって、カラーデータをモノクロで印刷するための印刷ジョブに含まれるPDLデータに基づき印刷用のラスタ画像データを生成する画像処理装置であって、
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析手段と、前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換手段と、前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析手段が1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記色変換手段に対して前記第1の色変換方法と異なる第2の色変換方法を設定する設定手段と、前記記憶装置に格納されている中間データおよび前記色変換手段による色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理手段と、を備えることを特徴とする。
The present invention is an image processing apparatus that generates raster image data for printing based on PDL data included in a print job for printing color data in monochrome,
an analysis means for analyzing the PDL data to generate intermediate data for each drawing command and sequentially storing the generated intermediate data in a storage device; and a plurality of colors represented by a plurality of color components specified in the PDL data. color conversion means for converting each density value into a single color density value using a color conversion method specified in the print job; and a first color conversion means for improving distinctiveness as the color conversion method in the print job. When a color conversion method is specified and the intermediate data obtained while the analysis means is generating one page of intermediate data cannot be stored in the storage device, the color conversion method is a setting means for setting a second color conversion method different from the first color conversion method; and a setting means for setting a second color conversion method different from the first color conversion method; An image processing means for generating raster image data.

本発明によれば、カラーデータをモノクロで印刷する際、同一ページ内の描画色に不整合が生じるのを防止することができる。 According to the present invention, when color data is printed in monochrome, it is possible to prevent mismatching of drawn colors within the same page.

画像形成装置のハードウェア構成の一例を示すブロック図である。FIG. 1 is a block diagram showing an example of a hardware configuration of an image forming apparatus. 画像形成装置のソフトウェア構成の一例を示す図である。1 is a diagram illustrating an example of a software configuration of an image forming apparatus. 第1実施形態におけるDL生成処理を示すフローチャートである。It is a flowchart which shows DL generation processing in a 1st embodiment. 第1実施形態におけるフォールバック処理および画像形成処理を示すフローチャートである。7 is a flowchart showing fallback processing and image forming processing in the first embodiment. 第2実施形態におけるDL生成処理を示すフローチャートである。It is a flowchart which shows DL generation processing in a 2nd embodiment. 第2実施形態における画像形成処理を示すフローチャートである。7 is a flowchart showing image forming processing in a second embodiment. 第3実施形態におけるDL生成処理を示すフローチャートである。It is a flowchart which shows DL generation processing in a 3rd embodiment. 第3実施形態における画像形成処理を示すフローチャートである。7 is a flowchart showing image forming processing in a third embodiment. 第4実施形態におけるDL生成処理を示すフローチャートである。It is a flowchart which shows DL generation processing in a 4th embodiment. 第4実施形態におけるフォールバック処理および画像形成処理を示すフローチャートである。12 is a flowchart showing fallback processing and image forming processing in a fourth embodiment.

以下、本発明を実施するための形態について図面を用いて説明する。なお、以下の実施の形態に記載されている構成要素は、本発明の例としての形態を示すものであり、本発明の範囲をそれらのみに限定するものではない。 EMBODIMENT OF THE INVENTION Hereinafter, the form for implementing this invention is demonstrated using drawings. Note that the constituent elements described in the following embodiments represent exemplary embodiments of the present invention, and the scope of the present invention is not limited thereto.

<第1実施形態>
以下、本発明を実施するための第1実施形態について図面を用いて説明する。第1実施形態は、印刷データのページ毎に使用される色数を取得し、所定の色数を超えた場合に色変換方法を切り替えるものである。
<First embodiment>
DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment for carrying out the present invention will be described below with reference to the drawings. The first embodiment acquires the number of colors used for each page of print data, and switches the color conversion method when the number of colors exceeds a predetermined number.

図1は、本発明に適用される印刷システムの構成例を示す図である。本システムでは、ホストコンピュータ101と画像形成装置110とがLAN102を介して接続されている。ユーザは、印刷するページ情報を示すPDLデータをホストコンピュータ101において生成し、ホストコンピュータ101からLAN102を介して画像形成装置110に送信する。本実施形態における画像形成装置110は、MFP(Multi Function Printer)であっても、SFP(Single Function Printer)のうちいずれのプリンタであってもよい。また、画像形成装置110は、MFPやSFP以外のプリンタであってもよい。 FIG. 1 is a diagram showing an example of the configuration of a printing system to which the present invention is applied. In this system, a host computer 101 and an image forming apparatus 110 are connected via a LAN 102. A user generates PDL data indicating page information to be printed in the host computer 101, and transmits it from the host computer 101 to the image forming apparatus 110 via the LAN 102. The image forming apparatus 110 in this embodiment may be either an MFP (Multi Function Printer) or an SFP (Single Function Printer). Furthermore, the image forming apparatus 110 may be a printer other than an MFP or an SFP.

[画像形成装置におけるハードウェア構成について]
図1を用いて、第1実施形態の画像形成装置110におけるハードウェア構成例を説明する。画像形成装置110は、例えば、画像出力デバイスであり、記録媒体に画像を形成するプリンタ部111を含む。また、画像形成装置110は、ホストコンピュータ101からLANを介してPDLデータ(ページ記述言語で記述された印刷データ)を取得する。
[About the hardware configuration of the image forming apparatus]
An example of the hardware configuration in the image forming apparatus 110 of the first embodiment will be described using FIG. 1. The image forming apparatus 110 is, for example, an image output device, and includes a printer section 111 that forms an image on a recording medium. The image forming apparatus 110 also obtains PDL data (print data written in a page description language) from the host computer 101 via the LAN.

プリンタ部111は、デバイスI/F235と接続され、CPU220で生成された画像データをシート(紙)に出力する処理を行う。CPU220は、画像形成装置110の全体(各部)を制御するための中央処理部である。RAM222は、CPU220が動作するためのシステムワークメモリである。また、RAM222は、取得したPDLデータや、画像形成処理のために生成される中間データ、レンダリング処理を行う際の作業領域であるワーク領域や、入力された画像データを一時的に格納するためのメモリでもある。ROM221は、例えばブートROMであり、システムのブートプログラムが格納されている。記憶部223は、例えばハードディスクドライブであり、各種処理のためのシステムソフトウェアおよび取得したPDLデータを格納する。 The printer unit 111 is connected to the device I/F 235 and performs a process of outputting image data generated by the CPU 220 onto a sheet (paper). The CPU 220 is a central processing unit for controlling the entire image forming apparatus 110 (each part). The RAM 222 is a system work memory for the CPU 220 to operate. In addition, the RAM 222 is used to temporarily store acquired PDL data, intermediate data generated for image forming processing, a work area that is a work area when performing rendering processing, and input image data. It's also memory. The ROM 221 is, for example, a boot ROM, and stores a system boot program. The storage unit 223 is, for example, a hard disk drive, and stores system software for various processes and acquired PDL data.

操作部I/F225は、各種メニューや印刷指示された印刷データに関する情報等を表示するための表示部を有する操作部113に対するインターフェース部であり、操作部113に対して操作画面データを出力する。また、操作部I/F225は、操作部113を介してユーザが入力した情報をCPU220に伝える。ネットワークI/F226は、LAN102を介して外部装置(例えばホストコンピュータ101)との間で情報のやり取りを行うためのインターフェースである。これらCPU220、ROM221、RAM222、記憶部223、操作部I/F225およびネットワークI/F226は、システムバス227に接続されている。 The operation unit I/F 225 is an interface unit for the operation unit 113 that has a display unit for displaying various menus, information regarding print data instructed to be printed, etc., and outputs operation screen data to the operation unit 113. Further, the operation unit I/F 225 transmits information input by the user via the operation unit 113 to the CPU 220. The network I/F 226 is an interface for exchanging information with an external device (for example, the host computer 101) via the LAN 102. These CPU 220 , ROM 221 , RAM 222 , storage section 223 , operation section I/F 225 , and network I/F 226 are connected to a system bus 227 .

画像バスI/F228は、システムバス227と画像データを高速に転送する画像バス230とを接続するためのインターフェースであり、データ構造を変換するバスブリッジである。画像バス230には、RIP(ラスタイメージプロセッサ)231、画像編集部232、画像圧縮部233、画像伸長部234、デバイスI/F235が接続されている。これらは、CPU220によって制御されるハードウェアであるが、CPU220とは異なる命令を有するプログラムを実行可能なサブプロセッサによって制御される構成でも可能である。 The image bus I/F 228 is an interface for connecting the system bus 227 and the image bus 230 that transfers image data at high speed, and is a bus bridge that converts data structure. A RIP (raster image processor) 231, an image editing section 232, an image compression section 233, an image decompression section 234, and a device I/F 235 are connected to the image bus 230. These are hardware controlled by the CPU 220, but a configuration in which they are controlled by a sub-processor that can execute a program having instructions different from the CPU 220 is also possible.

RIP231は、CPU220からの指示に基づき、PDLデータコードや中間データ(ディスプレイリスト、DL)を解析し、印刷用のラスタ画像データに展開する。またRIP231は、ラスタ画像データの他に、ラスタ画像データの各画素が、文字や線、グラフィック、イメージ、背景等のどのオブジェクトに対応するかを示す属性データを生成する。 The RIP 231 analyzes the PDL data code and intermediate data (display list, DL) based on instructions from the CPU 220, and develops it into raster image data for printing. In addition to the raster image data, the RIP 231 generates attribute data indicating which object, such as a character, a line, a graphic, an image, or a background, each pixel of the raster image data corresponds to.

画像編集部232は、RIP231によって展開されたラスタ画像データに対し、色空間変換や輪郭補正といった画素単位の画像編集を行う。 The image editing unit 232 performs pixel-by-pixel image editing such as color space conversion and contour correction on the raster image data developed by the RIP 231.

画像圧縮部233は、印刷処理に応じてRIP231のイメージ展開で得られる画像を圧縮し、画像バスI/F228を通してRAM222に格納する。 The image compression unit 233 compresses an image obtained by image expansion by the RIP 231 in accordance with print processing, and stores the compressed image in the RAM 222 via the image bus I/F 228.

画像伸長部234は、RAM222に格納された画像を伸長し、印刷処理に応じて画像バス230を通してRIP231やデバイスI/F235に伸長結果を転送する。画像圧縮部233と画像伸長部234はユーザによってボックス保存が指定された場合に、RIP231による展開後のラスタ画像データを保存し、ユーザの指示に応じて印刷する際に使用する。また、RIP231による展開処理がプリンタ部111の印刷処理よりも早い場合に、一時的に保存するために使用する場合もある。 The image decompression unit 234 decompresses the image stored in the RAM 222 and transfers the decompression result to the RIP 231 and device I/F 235 via the image bus 230 according to print processing. The image compression section 233 and the image expansion section 234 are used to save the raster image data after expansion by the RIP 231 when the user specifies box storage, and to print the data according to the user's instructions. Further, when the rasterization processing by the RIP 231 is faster than the printing processing by the printer unit 111, it may be used for temporary storage.

デバイスI/F235は、プリンタ部111にデータを送信するためのインターフェースである。 The device I/F 235 is an interface for transmitting data to the printer unit 111.

図2は、本発明に関わる画像形成装置110において、CPU220がROM221や記憶部223からRAM222に展開し実行するソフトウェアモジュール構成の一例を示す図である。 FIG. 2 is a diagram showing an example of the configuration of software modules that the CPU 220 expands from the ROM 221 and the storage unit 223 to the RAM 222 and executes in the image forming apparatus 110 according to the present invention.

データ入力部201は、ホストコンピュータ101からネットワークI/F226とLAN102を介して印刷データを受信するモジュールである。 The data input unit 201 is a module that receives print data from the host computer 101 via the network I/F 226 and the LAN 102.

ジョブ解析部202は、図2に示すモジュールの設定を受信した印刷データを解析して取得する、または印刷データから取得できなかった場合は予め画像形成装置110に設定された設定値を取得するモジュールである。より具体的には、印刷データに含まれるPJL(Printer Job Language)やJDF(Job Definition Format)等のPDLデータや色変換方法などを指定する印刷設定情報を取得し解析する。 The job analysis unit 202 is a module that analyzes and acquires the settings of the module shown in FIG. It is. More specifically, print setting information that specifies PDL data such as PJL (Printer Job Language) and JDF (Job Definition Format), a color conversion method, etc. included in the print data is acquired and analyzed.

ページ解析部203は、ページ毎の情報解析を行うモジュールである。具体的には印刷データに含まれるページ記述言語(PDL:Printer DeScription Language)を取得し、各ページに含まれる描画命令を解析し、中間データを生成する。 The page analysis unit 203 is a module that analyzes information for each page. Specifically, the page description language (PDL) included in the print data is acquired, the drawing commands included in each page are analyzed, and intermediate data is generated.

画像処理制御部204は、RIP231、画像編集部232、画像圧縮部233、画像伸長部234を制御するモジュールである。 The image processing control section 204 is a module that controls the RIP 231, the image editing section 232, the image compression section 233, and the image expansion section 234.

プリンタ制御部205は、デバイスI/F235とプリンタ部111を制御するモジュールである。 The printer control unit 205 is a module that controls the device I/F 235 and the printer unit 111.

色情報取得部211は、印刷データに含まれる色処理に関わる設定を取得するモジュールである。従って、図2に示す設定の他にも、ガンマ補正値や使用するICCプロファイルの指定も含まれるが、本実施形態においては説明を省略する。 The color information acquisition unit 211 is a module that acquires settings related to color processing included in print data. Therefore, in addition to the settings shown in FIG. 2, the settings also include designation of the gamma correction value and the ICC profile to be used, but their description will be omitted in this embodiment.

色変換方法設定部212は、ページ解析部203がページ毎の描画命令から描画色に関する情報を解析するモジュールである。第1実施形態では、ページ内で使われている色値とその数を解析対象とする場合を説明する。なお、色値とは、複数の色成分によって表される色の濃度値である。 The color conversion method setting unit 212 is a module in which the page analysis unit 203 analyzes information regarding drawing colors from drawing instructions for each page. In the first embodiment, a case will be described in which the color values and the number of color values used within a page are to be analyzed. Note that the color value is the density value of a color represented by a plurality of color components.

色変換部213は、色情報取得部212の解析結果に基づき、濃度強調用の色変換テーブル、または全カラー対象グレースケール化するための変換式に基づき、中間データの使用色テーブルの色値の変換を実施するモジュールである。なお、濃度強調用の色変換テーブルは、色変換方法に「濃度強調」が設定されている場合、色変換部213が生成する。また、色変換方法に「全カラー対象グレースケール化」が設定されている場合、色変換部213は、予め指定された色変換式に基づき使用色テーブルの色値の変換を行う。なお、本開示ではPDLデータで指定された色値をグレー値に変換する構成を例に説明するが、カラーモノクロ変換であればグレー以外の他の単一の色に変換する構成としてもよい。 The color conversion unit 213 converts the color values of the used color table of the intermediate data based on the analysis result of the color information acquisition unit 212 and the color conversion table for density emphasis or the conversion formula for converting all colors to gray scale. This is a module that performs the conversion. Note that the color conversion table for density emphasis is generated by the color conversion unit 213 when "density emphasis" is set as the color conversion method. Furthermore, when "grayscaling of all colors" is set as the color conversion method, the color conversion unit 213 converts the color values of the used color table based on a color conversion formula specified in advance. Note that in this disclosure, a configuration in which a color value specified in PDL data is converted into a gray value will be described as an example, but in the case of color monochrome conversion, a configuration in which the color value specified in PDL data is converted to a single color other than gray may be used.

以上が、第1実施形態におけるソフトウェアモジュール構成であるが、各モジュール内にサブモジュールが存在するといった構成も当然可能である。以降、第1実施形態におけるデータ入力からプリンタ部111への出力までの処理についてフローチャートを用いて説明する。 The above is the software module configuration in the first embodiment, but it is of course possible to have a configuration in which submodules exist within each module. Hereinafter, processing from data input to output to the printer unit 111 in the first embodiment will be explained using a flowchart.

図3に、第1実施形態における、モノクロ印刷のための色変換方法に濃度強調が設定された印刷ジョブで、フォールバック処理が行われる時に色変換方法を全カラー対象グレースケール化に切り替える処理を説明するフローチャートを示す。 FIG. 3 shows the process of switching the color conversion method to grayscale for all colors when fallback processing is performed in a print job in which density emphasis is set as the color conversion method for monochrome printing in the first embodiment. A flowchart for explanation is shown.

S301において、ジョブ解析部202は、データ入力部201が取得した印刷ジョブに含まれる印刷データからジョブ開始命令を読み込む。続いて、ジョブ解析部202は色情報取得部211を用いてカラーモード設定命令を読み込む。色情報取得部211の読み込んだ結果から、グレーデータへの変換が必要な印刷ジョブである場合、かつ、色変換方法に「濃度強調」が設定されている場合の処理についてのみ説明する。その他の指定だった場合は、従来技術の通りであるため説明を省略する。 In S301, the job analysis unit 202 reads a job start command from print data included in the print job acquired by the data input unit 201. Next, the job analysis unit 202 uses the color information acquisition unit 211 to read the color mode setting command. Only the processing when the print job requires conversion to gray data based on the result read by the color information acquisition unit 211 and when "density emphasis" is set as the color conversion method will be described. If the designation is other than that, the description is omitted because it is the same as the conventional technology.

S302において、ページ解析部203は、ページ開始命令を読み込む。このとき、ページに対する色変換方法を「濃度強調」に設定する。また、濃度強調処理で必要となるページ内の色数カウントを0にして初期化する。 In S302, the page analysis unit 203 reads a page start command. At this time, the color conversion method for the page is set to "density emphasis". Further, the count of the number of colors in the page, which is necessary for density emphasis processing, is initialized to 0.

S303において、ページ解析部203は、描画命令を読み込む。 In S303, the page analysis unit 203 reads a drawing command.

S304において、ページ解析部203は、色変換方法が「濃度強調」であり、かつ、S303で読み込んだ描画命令が、塗りつぶしカラー指定命令等のページ内の描画に関わる命令だった場合、命令内容を色変換方法設定部212に伝え、S305に移行する。色変換方法が「濃度強調」でない、または、S303で読み込んだ描画命令がページ内の描画に関わる命令でなかった場合、S313に移行する。 In S304, if the color conversion method is "density emphasis" and the drawing command read in S303 is a command related to drawing within the page, such as a fill color specification command, the page analysis unit 203 determines the content of the command. The color conversion method setting unit 212 is informed, and the process moves to S305. If the color conversion method is not "density emphasis" or if the drawing command read in S303 is not a command related to drawing within the page, the process moves to S313.

S305において、色変換方法設定部212は、ページ解析部203が読み込んだ色指定に関わる描画命令から使用される色数をカウントする。なおこの時、同一ページ内で一度カウントした色については、その後、同じ色が出てきても色数にカウントしない。 In S305, the color conversion method setting unit 212 counts the number of colors used from the drawing command related to color specification read by the page analysis unit 203. Note that at this time, colors that have been counted once within the same page are not counted in the number of colors even if the same color appears thereafter.

S306において、色変換方法設定部212は、ページ内で使用される色数が、所定の閾値を超えたか否かを判定する。より具体的には、色数の合計がプリンタ部111で表現可能なグレーデータの階調数を超えた場合など、カラーデータを視認可能な濃度差を持つグレーデータに変換できるか否かを判定する。使用色の色数が所定の閾値以下の場合は、S307に移行し、使用色の色数が所定の閾値を超えた場合は、S308に移行する。 In S306, the color conversion method setting unit 212 determines whether the number of colors used within the page exceeds a predetermined threshold. More specifically, in cases where the total number of colors exceeds the number of gradations of gray data that can be expressed by the printer unit 111, it is determined whether the color data can be converted to gray data with a visible density difference. do. If the number of colors used is less than or equal to the predetermined threshold, the process moves to S307, and if the number of colors used exceeds the predetermined threshold, the process moves to S308.

S307において、色変換部213は、濃度強調用の色変換テーブルを生成する。色変換テーブルについては従来技術になるため、説明を省略する。 In S307, the color conversion unit 213 generates a color conversion table for density emphasis. Since the color conversion table is a prior art, its explanation will be omitted.

S308において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。 In S308, the color conversion method setting unit 212 changes the setting of the color conversion method from "density emphasis" to "grayscaling for all colors." Due to this change in the color conversion method, the color conversion unit 213 no longer generates a color conversion table for density emphasis.

S309において、ページ解析部203は、描画命令に基づき中間データを生成する。具体的には、相対座標とベジェ曲線で表現される描画命令や登録された文字(フォント)を実際の出力解像度と用紙サイズに合わせた絶対座標のパス点列に変換する。 In S309, the page analysis unit 203 generates intermediate data based on the drawing command. Specifically, drawing commands and registered characters (fonts) expressed in relative coordinates and Bezier curves are converted into path point sequences in absolute coordinates that match the actual output resolution and paper size.

S310において、ページ解析部203は、1ページ分の中間データを生成中に得られた途中の中間データがRAM222の中間データ格納領域内に収まらないためにフォールバック処理を行うか否かを判定する。フォールバック処理を行わない場合は、変換した中間データをRAM222に順次格納し、S303に戻り、次の描画命令を読み込む。フォールバック処理を行う場合は、S311に移行する。 In S310, the page analysis unit 203 determines whether to perform fallback processing because the intermediate data obtained during generation of one page of intermediate data does not fit within the intermediate data storage area of the RAM 222. . If fallback processing is not performed, the converted intermediate data is sequentially stored in the RAM 222, the process returns to S303, and the next drawing command is read. If fallback processing is to be performed, the process moves to S311.

S311において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。フォールバック処理を行う場合、フォールバック処理の実施に伴って「濃度強調」を取り消して「全カラー対象グレースケール化」に変更したことを示すログを残す、また、ユーザに通知する構成にしても構わない。 In S311, the color conversion method setting unit 212 changes the setting of the color conversion method from "density emphasis" to "grayscaling for all colors." Due to this change in the color conversion method, the color conversion unit 213 no longer generates a color conversion table for density emphasis. When performing fallback processing, a log indicating that "density emphasis" has been canceled and "grayscale conversion for all colors" has been changed as a result of the fallback processing is executed, and the configuration also notifies the user. I do not care.

S312において、画像処理制御部204は、RAM222に格納されている中間データを一旦レンダリングし、レンダリング後のラスタ画像データをRAM222に格納できなかった中間データに背景画像として登録する、フォールバック処理を実行する。このときRAM222に格納されている、1ページ分の中間データに満たない中間データのレンダリングは、使用色テーブルの色値を「全カラー対象グレースケール化」用の色変換式で算出したグレー値に基づき行われる。そして中間データを格納するための領域をRAM222に確保して、RAM222に格納できなかった、レンダリング後のラスタ画像データが背景画像として登録された中間データをRAM222に順次格納し、S303に戻って次の描画命令を読み込む。RAM222に中間データを格納するための領域を確保する方法としては、レンダリング済みの中間データを削除または上書き可能にするようにしてもよい。S312の詳細については、図4(a)に示すフローチャートを用いて後述する。 In S312, the image processing control unit 204 executes a fallback process in which the intermediate data stored in the RAM 222 is rendered once, and the rendered raster image data is registered as a background image in the intermediate data that could not be stored in the RAM 222. do. At this time, rendering of the intermediate data stored in the RAM 222 that is less than one page's worth of intermediate data is performed by converting the color values of the color table used into gray values calculated using the color conversion formula for "grayscaling for all colors". Based on this. Then, an area for storing the intermediate data is secured in the RAM 222, and the intermediate data in which the rendered raster image data that could not be stored in the RAM 222 is registered as a background image is sequentially stored in the RAM 222, and the process returns to S303 for the next step. Load the drawing instructions for. As a method for securing an area for storing intermediate data in the RAM 222, rendered intermediate data may be deleted or overwritten. Details of S312 will be described later using the flowchart shown in FIG. 4(a).

このように、色変換方法が「濃度強調」であり、かつ、S303で読み込んだ描画命令がページ内の描画に関わる命令である間は、S303からS312までの処理を繰り返す。そして、色変換方法が「濃度強調」でなく、または、S303で読み込んだ描画命令がページ内の描画に関わる命令でない場合、S313に移行する。 In this way, as long as the color conversion method is "density emphasis" and the drawing command read in S303 is a command related to drawing within the page, the processes from S303 to S312 are repeated. Then, if the color conversion method is not "density emphasis" or if the drawing command read in S303 is not a command related to drawing within the page, the process moves to S313.

S313において、ページ解析部203は、S303で読み込んだ描画命令が改ページ命令か否かを判定し、改ページ命令であった場合、S314に移行し、改ページ命令でない場合、S315に移行する。 In S313, the page analysis unit 203 determines whether the drawing command read in S303 is a page break command. If it is a page break command, the process moves to S314; if it is not a page break command, the process moves to S315.

S314において、ページ解析部203は、中間データにページ終了を意味するジョブ終了命令を追加し、1ページ分の中間データと色変換方法を画像処理制御部204およびRIP231に通知する。 In S314, the page analysis unit 203 adds a job end command indicating the end of the page to the intermediate data, and notifies the image processing control unit 204 and the RIP 231 of one page's worth of intermediate data and the color conversion method.

S315において、画像処理制御部204は、通知された1ページ分の中間データに基づきラスタ画像データを生成して、S302に戻る。S315の詳細については、図4(b)に示すフローチャートを用いて後述する。 In S315, the image processing control unit 204 generates raster image data based on the notified intermediate data for one page, and returns to S302. Details of S315 will be described later using the flowchart shown in FIG. 4(b).

S316において、ページ解析部203は、S303で読み込んだ描画命令がジョブ終了命令であるか否かを判定し、ジョブ終了命令である場合は、S316に移行し、ジョブ終了命令でない場合は、S309に移行する。 In S316, the page analysis unit 203 determines whether the drawing command read in S303 is a job end command. If it is a job end command, the process advances to S316; if it is not a job end command, the process advances to S309. Transition.

S317において、ページ解析部203は、ジョブ解析部202に印刷ジョブに含まれる全ページ分の中間データ変換が完了した旨を通知し、本シーケンスを終了する。 In S317, the page analysis unit 203 notifies the job analysis unit 202 that intermediate data conversion for all pages included in the print job has been completed, and ends this sequence.

図4(a)に、第1実施形態に係る画像処理制御部204によるフォールバック処理を説明するフローチャートを示す。 FIG. 4A shows a flowchart illustrating fallback processing by the image processing control unit 204 according to the first embodiment.

S411において、画像処理制御部204は、中間データのおよび色変換テーブルの格納場所、実行すべき色変換方法を取得する。なお、本実施形態においてフォールバック処理が行われる場合、色変換方法は「全カラー対象グレースケール化」に設定されている。 In S411, the image processing control unit 204 acquires the storage location of the intermediate data and the color conversion table, and the color conversion method to be executed. Note that when fallback processing is performed in this embodiment, the color conversion method is set to "grayscale conversion for all colors."

S412において、画像処理制御部204は、色変換部213を用いて、全カラー対象グレースケール化用の色変換式に基づき中間データの使用色テーブルの色値を変換する。 In S412, the image processing control unit 204 uses the color conversion unit 213 to convert the color values of the used color table of the intermediate data based on the color conversion formula for converting all colors to gray scale.

S413において、画像処理制御部204は、RIP231を用いて、中間データおよびグレースケール化した使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。 In S413, the image processing control unit 204 uses the RIP 231 to generate raster image data matching the output resolution and paper size based on the intermediate data and the grayscaled color table.

S414において、画像処理制御部204は、S413で生成したラスタ画像データを、RAM222に格納できなかった中間データに背景画像として登録し、ラスタ画像データを生成済みの中間データに代えてRAM222に格納する。 In S414, the image processing control unit 204 registers the raster image data generated in S413 as a background image in the intermediate data that could not be stored in the RAM 222, and stores the raster image data in the RAM 222 in place of the generated intermediate data. .

図4(b)に、1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のRIP231を用いたラスタ画像データ生成処理を説明するフローチャートを示す。 FIG. 4B shows a flowchart illustrating raster image data generation processing using the RIP 231 of the image processing control unit 204 that has received notification of one page's worth of intermediate data and a color conversion method.

S421において、画像処理制御部204は、中間データのおよび色変換テーブルの格納場所、実行すべき色変換方法を取得する。 In S421, the image processing control unit 204 acquires the storage location of the intermediate data and color conversion table, and the color conversion method to be executed.

S422において、画像処理制御部204は、設定されている色変換方法を判定し、「濃度強調」が設定されていればS423に移行し、「全カラー対象グレースケール化」が設定されていればS424に移行する。 In S422, the image processing control unit 204 determines the set color conversion method, and if "density emphasis" is set, the process moves to S423, and if "grayscale conversion for all colors" is set, the process proceeds to S423. The process moves to S424.

S423において、画像処理制御部204は、色変換部213を用いて、色変換結果の濃度強調用の色変換テーブルを取得し、取得した色変換テーブルを用いて中間データの使用色テーブルの色値を変換する。 In S423, the image processing control unit 204 uses the color conversion unit 213 to acquire a color conversion table for density emphasis of the color conversion result, and uses the acquired color conversion table to change the color values of the color table used in the intermediate data. Convert.

S424において、画像処理制御部204は、色変換部213を用いて、全カラー対象グレースケール化用の色変換式に基づき中間データの使用色テーブルの色値を変換する。 In S424, the image processing control unit 204 uses the color conversion unit 213 to convert the color values of the color table used in the intermediate data based on the color conversion formula for converting all colors to gray scale.

S425において、画像処理制御部204は、RIP231を用いて、中間データおよびグレースケール化した使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。 In S425, the image processing control unit 204 uses the RIP 231 to generate raster image data matching the output resolution and paper size based on the intermediate data and the grayscaled color table.

以上が1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のラスタ画像データ生成処理であり、これらの処理は、CPU220が実行するページ解析部203により生成された中間データに対してRIP231によって実行される。従って、図3に示すジョブ解析とページ解析は、図4に示すラスタ画像データ生成処理と並列に動作することになる。 The above is the raster image data generation process of the image processing control unit 204 that has been notified of the intermediate data for one page and the color conversion method, and these processes are performed using the intermediate data generated by the page analysis unit 203 executed by the CPU 220. is executed by the RIP 231. Therefore, the job analysis and page analysis shown in FIG. 3 operate in parallel with the raster image data generation process shown in FIG. 4.

これらの処理により、色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる場合、濃度強調の色変換処理をキャンセルすることで、描画色の不整合を防止できる。 With these processes, when fallback processing is performed for a print job in which density emphasis is set as the color conversion method, mismatching of drawn colors can be prevented by canceling the density emphasis color conversion process.

<第2実施形態>
以下、本発明を実施するための第2実施形態について図面を用いて説明する。第2実施形態は、濃度強調が設定された印刷ジョブで、フォールバックが発生した時に全カラー対象グレースケール化および輪郭強調に処理を切り替えてリカバリするものである。なお、第2実施形態の印刷制御装置の構成は、図1に示す第1実施形態の構成と同様である。以下では、第1実施形態と異なる点について説明する。
<Second embodiment>
A second embodiment for carrying out the present invention will be described below with reference to the drawings. In the second embodiment, when a fallback occurs in a print job in which density emphasis is set, the process is switched to grayscale for all colors and edge emphasis for recovery. Note that the configuration of the print control device of the second embodiment is similar to the configuration of the first embodiment shown in FIG. Below, points different from the first embodiment will be explained.

図5に、第2実施形態に係るモノクロ印刷のための色変換方法に濃度強調が設定された印刷ジョブで、フォールバック処理が行われる時に色変換方法を全カラー対象グレースケール化に切り替え、かつ輪郭強調処理を行う処理を説明するフローチャートを示す。 FIG. 5 shows that in a print job in which density emphasis is set as the color conversion method for monochrome printing according to the second embodiment, the color conversion method is switched to grayscale for all colors when fallback processing is performed, and A flowchart illustrating processing for performing contour enhancement processing is shown.

S501において、ジョブ解析部202はデータ入力部201が取得した入力データからジョブ開始命令を読み込む。続いて、ジョブ解析部202は色情報取得部211を用いてカラーモード設定命令を読み込む。色情報取得部211の読み込んだ結果から、グレーデータへの変換が必要な印刷ジョブである場合、かつ、色変換方法に「濃度強調」が設定されている場合の処理についてのみ説明する。その他の指定だった場合は、従来技術の通りであるため説明を省略する。 In S501, the job analysis unit 202 reads a job start command from the input data acquired by the data input unit 201. Next, the job analysis unit 202 uses the color information acquisition unit 211 to read the color mode setting command. Only the processing when the print job requires conversion to gray data based on the result read by the color information acquisition unit 211 and when "density emphasis" is set as the color conversion method will be described. If the designation is other than that, the description is omitted because it is the same as the conventional technology.

S502において、ページ解析部203は、ページ開始命令を読み込む。このとき、ページに対する色変換方法に「濃度強調」を設定する。また、濃度強調処理で必要となるページ内の色数カウントを0で初期化する。 In S502, the page analysis unit 203 reads a page start command. At this time, "density emphasis" is set as the color conversion method for the page. Further, the count of the number of colors in a page, which is necessary for density emphasis processing, is initialized to 0.

S503において、ページ解析部203は、描画命令を読み込む。 In S503, the page analysis unit 203 reads a drawing command.

S504において、ページ解析部203は、色変換方法が「濃度強調」であり、かつ、S503で読み込んだ描画命令が、塗りつぶしカラー指定命令等のページ内の描画に関わる命令だった場合、命令内容を色変換方法設定部212に伝え、S505に移行する。色変換方法が「濃度強調」でない、または、S903で読み込んだ描画命令がページ内の描画に関わる命令でなかった場合、S913に移行する。 In S504, if the color conversion method is "density emphasis" and the drawing command read in S503 is a command related to drawing within the page, such as a fill color specification command, the page analysis unit 203 determines the content of the command. The color conversion method setting unit 212 is informed, and the process moves to S505. If the color conversion method is not "density emphasis" or if the drawing command read in S903 is not a command related to drawing within the page, the process moves to S913.

S505において、色変換方法設定部212は、ページ解析部203が読み込んだ色指定に関わる描画命令から使用される色数をカウントする。なおこの時、同一ページ内で一度カウントされた色については、その後、同じ色が出てきても色数にカウントしない。 In S505, the color conversion method setting unit 212 counts the number of colors used from the drawing command related to color specification read by the page analysis unit 203. Note that at this time, colors that have been counted once within the same page are not counted in the number of colors even if the same color appears thereafter.

S506において、色変換方法設定部212は、ページ内で使用される色数が、所定の閾値を超えたか否かを判定する。より具体的には、色数の合計がプリンタ部111で表現可能なグレーデータの階調数を超えた場合など、カラーデータを視認可能な濃度差を持つグレーデータに変換することができるか否かを判定する。使用色の色数が所定の閾値以下の場合は、S507に移行し、使用色の色数が所定の閾値を超えた場合は、S508に移行する。 In S506, the color conversion method setting unit 212 determines whether the number of colors used within the page exceeds a predetermined threshold. More specifically, in cases where the total number of colors exceeds the number of gradations of gray data that can be expressed by the printer unit 111, it is possible to convert color data into gray data with visible density differences. Determine whether If the number of colors used is less than or equal to the predetermined threshold, the process moves to S507, and if the number of colors used exceeds the predetermined threshold, the process moves to S508.

S507において、色変換部213は、濃度強調用の色変換テーブルを生成する。色変換テーブルについては従来技術になるため、説明を省略する。 In S507, the color conversion unit 213 generates a color conversion table for density emphasis. Since the color conversion table is a prior art, its explanation will be omitted.

S508において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」および「輪郭強調」に設定変更する。「輪郭強調」設定時は、RIP231で生成される属性データを輪郭強調用の属性データに変換するよう指示する属性データ変換指示を画像処理制御部204に通知する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。 In S508, the color conversion method setting unit 212 changes the setting of the color conversion method from "density emphasis" to "grayscaling for all colors" and "outline emphasis". When "contour enhancement" is set, the image processing control unit 204 is notified of an attribute data conversion instruction to convert the attribute data generated by the RIP 231 into attribute data for edge enhancement. Due to this change in the color conversion method, the color conversion unit 213 no longer generates a color conversion table for density emphasis.

S509において、ページ解析部203は、描画命令に基づき中間データを生成する。具体的には、相対座標とベジェ曲線で表現される描画命令や登録された文字(フォント)を実際の出力解像度と用紙サイズに合わせた絶対座標のパス点列に変換する。 In S509, the page analysis unit 203 generates intermediate data based on the drawing command. Specifically, drawing commands and registered characters (fonts) expressed in relative coordinates and Bezier curves are converted into path point sequences in absolute coordinates that match the actual output resolution and paper size.

S510において、ページ解析部203は、1ページ分の中間データを生成中に得られた途中の中間データがRAM222の中間データ格納領域内に収まらないためにフォールバック処理を行うか否かを判定する。フォールバック処理を行わない場合は、生成した中間データをRAM222に順次格納し、S503に戻り、次の描画命令を読み込みに行く。フォールバック処理する場合は、S511に移行する。 In S510, the page analysis unit 203 determines whether to perform fallback processing because the intermediate data obtained while generating one page of intermediate data does not fit within the intermediate data storage area of the RAM 222. . If fallback processing is not to be performed, the generated intermediate data is sequentially stored in the RAM 222, the process returns to S503, and the next drawing command is read. If fallback processing is to be performed, the process moves to S511.

S511において、色変換部213は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」および「輪郭強調」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。「輪郭強調」が設定された場合は、ラスタ画像データの各画素に対応するオブジェクトの属性を示す属性データを輪郭強調用の属性データに変換するよう画像処理制御部204に通知する。フォールバック処理を行う場合、フォールバック処理の実施に伴って「濃度強調」を取り消して「全カラー対象グレースケール化」および「輪郭強調」に変更したことをログに残す、また、ユーザに通知する構成にしても構わない。 In S511, the color conversion unit 213 changes the setting of the color conversion method from "density emphasis" to "grayscaling for all colors" and "outline emphasis". Due to this change in the color conversion method, the color conversion unit 213 no longer generates a color conversion table for density emphasis. If "outline enhancement" is set, the image processing control unit 204 is notified to convert attribute data indicating the attribute of the object corresponding to each pixel of the raster image data into attribute data for edge enhancement. When performing fallback processing, record in the log that "density emphasis" has been canceled and changed to "grayscale for all colors" and "contour emphasis" and notify the user. It doesn't matter if it's configured.

S512において、画像処理制御部204は、属性データ変換指示を取得し、RAM222に格納されている中間データを「全カラー対象グレースケール化」でレンダリングする。そしてレンダリング後のラスタ画像データをRAM222に格納できなかった中間データに背景画像として登録する。このときRAM222に格納されている、1ページ分の中間データのうちの一部の中間データのレンダリングは、使用色テーブルの色値を「全カラー対象グレースケール化」用の色変換式で算出したグレー値に基づき行われる。そして中間データを格納するための領域をRAM222に確保して、RAM222に格納できなかった、レンダリング後のラスタ画像データが背景画像として登録された中間データをRAM222に順次格納し、S503に戻って次の描画命令を読み込む。RAM222に中間データを格納するための領域を確保する方法としては、レンダリング済みの中間データを削除または上書き可能にするようにしてもよい。このS512のフォールバック処理は、第1実施形態のS312と同様に図4(a)に示すフローチャートで説明するように行う。 In S512, the image processing control unit 204 obtains the attribute data conversion instruction, and renders the intermediate data stored in the RAM 222 in "grayscale conversion for all colors". The rendered raster image data is then registered as a background image in the intermediate data that could not be stored in the RAM 222. At this time, rendering of a portion of the intermediate data for one page stored in the RAM 222 was performed by calculating the color values of the used color table using a color conversion formula for "grayscaling for all colors". This is done based on gray values. Then, an area for storing the intermediate data is secured in the RAM 222, and the intermediate data in which the rendered raster image data that could not be stored in the RAM 222 is registered as a background image is sequentially stored in the RAM 222, and the process returns to S503 for the next step. Load the drawing instructions for. As a method for securing an area for storing intermediate data in the RAM 222, rendered intermediate data may be deleted or overwritten. This fallback process in S512 is performed as described in the flowchart shown in FIG. 4A, similar to S312 in the first embodiment.

このように、色変換方法が「濃度強調」であり、かつ、S503で読み込んだ描画命令がページ内の描画に関わる命令である間は、S503からS512までの処理を繰り返す。そして、色変換方法が「濃度強調」でなく、または、S503で読み込んだ描画命令がページ内の描画に関わる命令でない場合、S513に移行する。 In this way, as long as the color conversion method is "density emphasis" and the drawing command read in S503 is a command related to drawing within the page, the processes from S503 to S512 are repeated. Then, if the color conversion method is not "density emphasis" or if the drawing command read in S503 is not a command related to drawing within the page, the process moves to S513.

S513において、ページ解析部203は、S503で読み込んだ描画命令が改ページ命令か否かを判定し、改ページ命令であった場合、S514に移行し、改ページ命令でなかった場合、S515に移行する。 In S513, the page analysis unit 203 determines whether the drawing command read in S503 is a page break command. If it is a page break command, the process moves to S514; if it is not a page break command, the process moves to S515. do.

S514において、ページ解析部203は、中間データにページ終了を意味するジョブ終了命令を追加し、1ページ分の中間データと色変換方法を画像処理制御部204およびRIP231に通知する。 In S514, the page analysis unit 203 adds a job end command indicating the end of the page to the intermediate data, and notifies the image processing control unit 204 and the RIP 231 of one page's worth of intermediate data and the color conversion method.

S515において、画像処理制御部204は、通知された1ページ分の中間データに基づきラスタ画像データを生成して、S502に戻る。このS515の詳細については、図6に示すフローチャートを用いて後述する。 In S515, the image processing control unit 204 generates raster image data based on the notified intermediate data for one page, and returns to S502. The details of S515 will be described later using the flowchart shown in FIG.

S516において、ページ解析部203は、S503で読み込んだ描画命令がジョブ終了命令であるか否かを判定し、ジョブ終了命令である場合は、S516に移行し、ジョブ終了命令でない場合は、S509に移行する。 In S516, the page analysis unit 203 determines whether the drawing command read in S503 is a job end command. If it is a job end command, the process moves to S516; if it is not a job end command, the process moves to S509. Transition.

S517において、ページ解析部203は、ジョブ解析部202に印刷ジョブに含まれる全ページ分の中間データ変換が完了した旨を通知し、本シーケンスを終了する。 In S517, the page analysis unit 203 notifies the job analysis unit 202 that intermediate data conversion for all pages included in the print job has been completed, and ends this sequence.

図6に、1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204がRIP231および画像編集部232を用いて行うラスタ画像データ生成処理を説明するフローチャートを示す。 FIG. 6 shows a flowchart illustrating raster image data generation processing performed by the image processing control unit 204, which has been notified of the intermediate data for one page and the color conversion method, using the RIP 231 and the image editing unit 232.

S601において、画像処理制御部204は、中間データの場所、色変換テーブルの場所、実行すべき色変換方法を取得する。 In S601, the image processing control unit 204 acquires the location of the intermediate data, the location of the color conversion table, and the color conversion method to be executed.

S602において、画像処理制御部204は、色変換方法として「濃度強調」が設定されているか否かを判定し、「濃度強調」が設定されている場合はS603に移行し、「濃度強調」が設定されていない場合はS603に移行する。 In S602, the image processing control unit 204 determines whether "density emphasis" is set as the color conversion method, and if "density emphasis" is set, the process moves to S603, and "density emphasis" is set. If it has not been set, the process moves to S603.

S603において、画像処理制御部204は、色変換部213を用いて、色変換結果の濃度強調用の色変換テーブルを用いて中間データの使用色テーブルの色値を変換する。 In S603, the image processing control unit 204 uses the color conversion unit 213 to convert the color values of the used color table of the intermediate data using the color conversion table for density emphasis of the color conversion result.

S604において、画像処理制御部204は、色変換部213を用いて、全カラー対象グレースケール化用の色変換式に基づき中間データの使用色テーブルの色値を変換する。 In S604, the image processing control unit 204 uses the color conversion unit 213 to convert the color values of the color table used in the intermediate data based on the color conversion formula for converting all colors to gray scale.

S605において、画像処理制御部204は、属性データ変換指示に従って、属性データを、単一の色の濃度値間隔が所定の閾値以下となるオブジェクト間の境界を決定するための輪郭強調用の属性データに変換する。 In step S605, the image processing control unit 204 converts the attribute data into attribute data for contour enhancement for determining boundaries between objects where the density value interval of a single color is equal to or less than a predetermined threshold, according to the attribute data conversion instruction. Convert to

S606において、画像処理制御部204は、画像処理制御部204が中間データおよびグレースケール化した使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。 In S606, the image processing control unit 204 generates raster image data that matches the output resolution and paper size based on the intermediate data and the color table converted into grayscale by the image processing control unit 204.

S607において、画像処理制御部204は、輪郭強調用の属性データが含まれているか否かを判定し、輪郭強調用の属性データが含まれている場合は、S608に移行し、輪郭強調用の属性データが含まれていない場合は、本シーケンスを終了する。 In S607, the image processing control unit 204 determines whether or not attribute data for edge enhancement is included. If attribute data for edge enhancement is included, the process proceeds to S608, and the image processing control unit 204 determines whether attribute data for edge enhancement is included. If attribute data is not included, this sequence ends.

S608において、画像処理制御部204は、画像編集部232を用いて、輪郭強調用の属性データに基づき、単一の色の濃度値間隔が所定の閾値以下である画素領域間の境界を強調する輪郭強調処理をラスタ画像データに対して実行する。輪郭強調処理の具体的手段は従来技術と差異が無いため説明を省略する。 In S608, the image processing control unit 204 uses the image editing unit 232 to emphasize the boundaries between pixel areas where the density value interval of a single color is equal to or less than a predetermined threshold based on the attribute data for edge enhancement. Execute contour enhancement processing on raster image data. The specific means for contour enhancement processing is the same as that of the prior art, so a description thereof will be omitted.

以上が1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のラスタ画像データ生成処理である。これらの処理は、CPU220が実行するページ解析部203により生成された中間データに対して、RIP231や画像編集部232によって実行される。従って、図5に示すジョブ解析部202とページ解析部203の処理は、図6に示すラスタ画像データ生成処理と並列に動作することになる。 The above is the raster image data generation process of the image processing control unit 204 that has received notification of one page's worth of intermediate data and the color conversion method. These processes are executed by the RIP 231 and the image editing unit 232 on intermediate data generated by the page analysis unit 203 executed by the CPU 220. Therefore, the processing by the job analysis unit 202 and the page analysis unit 203 shown in FIG. 5 operates in parallel with the raster image data generation processing shown in FIG. 6.

これらの処理により、色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる場合、色変換方法を全カラー対象グレースケール化に切り替え、かつ輪郭強調処理を行う。その結果、ユーザに弁別性向上と描画色の不整合の防止を実現できる。 As a result of these processes, when fallback processing is performed on a print job for which density emphasis is set as the color conversion method, the color conversion method is switched to grayscale conversion for all colors, and edge emphasis processing is performed. As a result, it is possible for the user to improve discrimination and prevent mismatching of drawn colors.

<第3実施形態>
以下、本発明を実施するための第3実施形態について図面を用いて説明する。第3実施形態は、濃度強調が設定された印刷ジョブで、フォールバック処理が行われた時に中間データをレンダリングせずに補助記憶装置223に退避して処理を継続するリカバリである。なお、第3実施形態の印刷制御装置の構成は、図1に示す第1実施形態の構成と同様である。以下では、第1実施形態と異なる点について説明する。
<Third embodiment>
A third embodiment for implementing the present invention will be described below with reference to the drawings. The third embodiment is a recovery process in which intermediate data is saved to the auxiliary storage device 223 without being rendered and processing is continued when fallback processing is performed for a print job in which density emphasis is set. Note that the configuration of the print control device of the third embodiment is similar to the configuration of the first embodiment shown in FIG. Below, points different from the first embodiment will be explained.

図7に、第3実施形態における、モノクロ印刷のための色変換方法に「濃度強調」が設定された印刷ジョブで、フォールバック処理が行われる時に中間データをレンダリングせずに補助記憶装置223に退避して処理を継続する処理のフローチャートを示す。 FIG. 7 shows that in a print job in which "density emphasis" is set as the color conversion method for monochrome printing in the third embodiment, intermediate data is stored in the auxiliary storage device 223 without being rendered when fallback processing is performed. A flowchart of the process of saving and continuing the process is shown.

S701において、ジョブ解析部202は、データ入力部201が取得した入力データからジョブ開始命令を読み込む。続いて、ジョブ解析部202は色情報取得部211を用いてカラーモード設定命令を読み込む。色情報取得部211の読み込んだ結果から、グレーデータへの変換が必要な印刷ジョブである場合、かつ、色変換方法に「濃度強調」が設定されている場合の処理についてのみ説明する。その他の指定だった場合は、従来技術の通りであるため説明を省略する。 In S701, the job analysis unit 202 reads a job start command from the input data acquired by the data input unit 201. Next, the job analysis unit 202 uses the color information acquisition unit 211 to read the color mode setting command. Only the processing when the print job requires conversion to gray data based on the result read by the color information acquisition unit 211 and when "density emphasis" is set as the color conversion method will be described. If the designation is other than that, the description is omitted because it is the same as the conventional technology.

S702において、ページ解析部203は、ページ開始命令を読み込む。このとき、ページに対する色変換方法に「濃度強調」を設定する。また、濃度強調処理で必要となるページ内の色数カウントを0で初期化する。 In S702, the page analysis unit 203 reads a page start command. At this time, "density emphasis" is set as the color conversion method for the page. Further, the count of the number of colors in a page, which is necessary for density emphasis processing, is initialized to 0.

S703において、ページ解析部203は、描画命令を読み込む。 In S703, the page analysis unit 203 reads a drawing command.

S704において、ページ解析部203は、色変換方法が「濃度強調」であり、かつ、S703にて読み込んだ描画命令が、塗りつぶしカラー指定命令等のページ内の描画に関わる命令だった場合、命令内容を色変換方法設定部212に伝え、S705に移行する。色変換方法が「濃度強調」でない、または、S703で読み込んだ描画命令がページ内の描画に関わる命令でなかった場合、S713に移行する。 In S704, if the color conversion method is "density emphasis" and the drawing command read in S703 is a command related to drawing within the page, such as a fill color specification command, the page analysis unit 203 determines the content of the command. is transmitted to the color conversion method setting unit 212, and the process moves to S705. If the color conversion method is not "density emphasis" or if the drawing command read in S703 is not a command related to drawing within the page, the process moves to S713.

S705において、色変換方法設定部212は、ページ解析部203が読み込んだ色指定に関わる描画命令から使用される色数をカウントする。なおこの時、同一ページ内で一度カウントされた色については、その後、同じ色が出てきても色数にカウントしない。 In S705, the color conversion method setting unit 212 counts the number of colors used from the drawing command related to color specification read by the page analysis unit 203. Note that at this time, colors that have been counted once within the same page are not counted in the number of colors even if the same color appears thereafter.

S706において、色変換方法設定部212は、ページ内で使用される色数が、所定の閾値を超えたか否かを判定する。より具体的には、色数の合計がプリンタ部111で表現可能なグレーデータの階調数を超えた場合など、カラーデータを視認可能な濃度差を持つグレーデータに変換することができるか否かを判定する。使用色の色数が所定の閾値以下の場合は、S707に移行し、使用色の色数が所定の閾値を超えた場合は、S708に移行する。 In S706, the color conversion method setting unit 212 determines whether the number of colors used within the page exceeds a predetermined threshold. More specifically, in cases where the total number of colors exceeds the number of gradations of gray data that can be expressed by the printer unit 111, it is possible to convert color data into gray data with visible density differences. Determine whether If the number of colors used is less than or equal to the predetermined threshold, the process moves to S707, and if the number of colors used exceeds the predetermined threshold, the process moves to S708.

S707において、色変換部213は、濃度強調用の色変換テーブルを生成する。色変換テーブルについては従来技術になるため、説明を省略する。 In S707, the color conversion unit 213 generates a color conversion table for density emphasis. Since the color conversion table is a prior art, its explanation will be omitted.

S708において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。 In S708, the color conversion method setting unit 212 changes the setting of the color conversion method from "density emphasis" to "grayscaling for all colors." Due to this change in the color conversion method, the color conversion unit 213 no longer generates a color conversion table for density emphasis.

S709において、ページ解析部203は、描画命令に基づき中間データを生成する。具体的には、相対座標とベジェ曲線で表現される描画命令や登録された文字(フォント)を実際の出力解像度と用紙サイズに合わせた絶対座標のパス点列に変換する。 In S709, the page analysis unit 203 generates intermediate data based on the drawing command. Specifically, drawing commands and registered characters (fonts) expressed in relative coordinates and Bezier curves are converted into path point sequences in absolute coordinates that match the actual output resolution and paper size.

S710において、ページ解析部203は、1ページ分の中間データを生成中に得られた途中の中間データがRAM222の中間データ格納領域内に収まらないためにフォールバック処理を行うか否かを判定する。フォールバック処理を行わない場合は、生成した中間データをRAM222に順次格納し、S703に戻り、次の描画命令を読み込む。フォールバック処理を行う場合は、S711に移行する。 In S710, the page analysis unit 203 determines whether to perform fallback processing because the intermediate data obtained while generating one page of intermediate data does not fit within the intermediate data storage area of the RAM 222. . If fallback processing is not to be performed, the generated intermediate data is sequentially stored in the RAM 222, the process returns to S703, and the next drawing command is read. If fallback processing is to be performed, the process moves to S711.

S711において、ページ解析部203は、中間データをRAM222から補助記憶装置223に退避して格納(スプール)が可能か否かを判定する。中間データを補助記憶装置223に退避可能である場合は、S712に移行し、退避できない場合は、S713に移行する。 In S711, the page analysis unit 203 determines whether the intermediate data can be saved from the RAM 222 to the auxiliary storage device 223 and stored (spooled). If the intermediate data can be saved to the auxiliary storage device 223, the process moves to S712, and if it cannot be saved, the process moves to S713.

S712において、ページ解析部203は、RAM222に格納された中間データおよびRAM222に格納できなかった中間データを補助記憶装置223に格納し、S703に戻り、次の描画命令を読み込む。 In S712, the page analysis unit 203 stores the intermediate data stored in the RAM 222 and the intermediate data that could not be stored in the RAM 222 in the auxiliary storage device 223, returns to S703, and reads the next drawing command.

S713において、色変換方法設定部213は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。中間データを補助記憶装置223に退避できず、フォールバック処理を行う場合、フォールバック処理に伴って「濃度強調」を取り消して「全カラー対象グレースケール化」に変更したことをログに残す、また、ユーザに通知する構成にしても構わない。 In S713, the color conversion method setting unit 213 changes the setting of the color conversion method from "density emphasis" to "grayscaling for all colors." Due to this change in the color conversion method, the color conversion unit 213 no longer generates a color conversion table for density emphasis. If the intermediate data cannot be saved to the auxiliary storage device 223 and fallback processing is performed, it is possible to record in the log that "density emphasis" has been canceled and changed to "grayscale conversion for all colors" along with the fallback processing, and , the user may be notified.

S714において、画像処理制御部204は、RAM222に格納されている中間データを一旦レンダリングし、レンダリング後のラスタ画像データをRAM222に格納できなかった中間データに背景画像として登録する、フォールバック処理を実行する。このときRAM222に格納されている、1ページ分の中間データのうちの一部の中間データのレンダリングは、使用色テーブルの色値を「全カラー対象グレースケール化」用の色変換式で算出したグレー値に基づき行われる。そして中間データを格納するための領域をRAM222、または補助記憶装置223に確保し、RAM222に格納できなかった、レンダリング後のラスタ画像データが背景画像として登録された中間データをRAM222、または補助記憶装置223に格納する。その後、S703に戻って次の描画命令を読み込む。RAM222に中間データを格納するための領域を確保する方法としては、レンダリング済みの中間データを削除または上書き可能にするようにしてもよい。このS714のフォールバック処理は、第1実施形態のS312と同様に図4(a)に示すフローチャートで説明するように行う。 In S714, the image processing control unit 204 executes a fallback process in which the intermediate data stored in the RAM 222 is rendered once, and the rendered raster image data is registered as a background image in the intermediate data that could not be stored in the RAM 222. do. At this time, rendering of a portion of the intermediate data for one page stored in the RAM 222 was performed by calculating the color values of the used color table using a color conversion formula for "grayscaling for all colors". This is done based on gray values. Then, an area for storing the intermediate data is secured in the RAM 222 or the auxiliary storage device 223, and the intermediate data in which the rendered raster image data that could not be stored in the RAM 222 is registered as a background image is stored in the RAM 222 or the auxiliary storage device. 223. After that, the process returns to S703 and reads the next drawing command. As a method for securing an area for storing intermediate data in the RAM 222, rendered intermediate data may be deleted or overwritten. This fallback process in S714 is performed as described in the flowchart shown in FIG. 4A, similar to S312 in the first embodiment.

このように、色変換方法が「濃度強調」であり、かつ、S703で読み込んだ描画命令がページ内の描画に関わる命令である間は、S703からS714までの処理を繰り返す。そして、色変換方法が「濃度強調」でなく、または、S703で読み込んだ描画命令がページ内の描画に関わる命令でない場合、S715に移行する。 In this way, as long as the color conversion method is "density emphasis" and the drawing command read in S703 is a command related to drawing within the page, the processes from S703 to S714 are repeated. If the color conversion method is not "density emphasis" or if the drawing command read in S703 is not a command related to drawing within the page, the process moves to S715.

S715において、ページ解析部203は、S703で読み込んだ描画命令が改ページ命令であるか否かを判定し、改ページ命令であった場合、S716に移行し、改ページ命令でなかった場合、S717に移行する。 In S715, the page analysis unit 203 determines whether the drawing command read in S703 is a page break command. If it is a page break command, the process moves to S716; if it is not a page break command, the process advances to S717. to move to.

S716において、ページ解析部203は、中間データにページ終了を意味するジョブ終了命令を追加し、1ページ分の中間データと色変換方法を画像処理制御部204およびRIP231に通知する。 In S716, the page analysis unit 203 adds a job end command indicating the end of the page to the intermediate data, and notifies the image processing control unit 204 and the RIP 231 of one page's worth of intermediate data and the color conversion method.

S717において、画像処理制御部204は、通知された1ページ分の中間データに基づきラスタ画像データを生成して、S702に戻る。このS717の詳細については、図8に示すフローチャートを用いて後述する。 In S717, the image processing control unit 204 generates raster image data based on the notified intermediate data for one page, and returns to S702. The details of S717 will be described later using the flowchart shown in FIG.

S718において、ページ解析部203は、S703で読み込んだ描画命令がジョブ終了命令であるか否かを判定し、ジョブ終了命令である場合、S718に移行し、ジョブ終了命令でない場合は、S709に移行する。 In S718, the page analysis unit 203 determines whether the drawing command read in S703 is a job end command, and if it is a job end command, the process moves to S718, and if it is not a job end command, the process moves to S709. do.

S719において、ページ解析部203は、ジョブ解析部202に印刷ジョブに含まれる全ページ分の中間データ変換が完了した旨を通知し、本シーケンスを終了する。 In S719, the page analysis unit 203 notifies the job analysis unit 202 that intermediate data conversion for all pages included in the print job has been completed, and ends this sequence.

図8に、RAM222または補助記憶装置223に格納された1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204がRIP231を用いて行うラスタ画像データ生成処理を説明するフローチャートを示す。 FIG. 8 shows a flowchart illustrating raster image data generation processing performed by the image processing control unit 204 using the RIP 231 after receiving one page of intermediate data stored in the RAM 222 or the auxiliary storage device 223 and notification of the color conversion method. show.

S801において、画像処理制御部204は、中間データの場所、色変換テーブルの場所、実行すべき色変換方法を取得する。 In S801, the image processing control unit 204 acquires the location of the intermediate data, the location of the color conversion table, and the color conversion method to be executed.

S802において、画像処理制御部204は、色変換方法として、「濃度強調」が設定されているか否かを判定し、「濃度強調」が設定されている場合、S803に移行し、「濃度強調」が設定されていない場合、S804に移行する。 In S802, the image processing control unit 204 determines whether "density emphasis" is set as the color conversion method, and if "density emphasis" is set, the process moves to S803 and "density emphasis" is set. If not set, the process moves to S804.

S803において、画像処理制御部204は、色変換部213を用いて、色変換結果の濃度変調用の色変換テーブルを用いて中間データの使用色テーブルの色値を変換する。 In S803, the image processing control unit 204 uses the color conversion unit 213 to convert the color values of the used color table of the intermediate data using the color conversion table for density modulation of the color conversion result.

S804において、画像処理制御部204は、色変換部213を用いて、全カラー対象グレースケール化用の色変換式に基づき中間データの使用色テーブルの色値を変換する。 In S804, the image processing control unit 204 uses the color conversion unit 213 to convert the color values of the color table used in the intermediate data based on the color conversion formula for converting all colors to grayscale.

S805において、画像処理制御部204は、中間データおよびグレースケール化した使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。 In S805, the image processing control unit 204 generates raster image data matching the output resolution and paper size based on the intermediate data and the grayscale color table.

以上が1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のラスタ画像データ生成処理であり、これらの処理は、CPU220が実行するページ解析部203の指示により、RIP231によって実行される。従って、図7に示すジョブ解析とページ解析は図8に示す画像形成処理と並列に動作することになる。 The above is the raster image data generation process of the image processing control unit 204 that has been notified of one page's worth of intermediate data and color conversion method, and these processes are executed by the RIP 231 according to instructions from the page analysis unit 203 executed by the CPU 220. executed. Therefore, the job analysis and page analysis shown in FIG. 7 operate in parallel with the image forming process shown in FIG. 8.

これらの処理により、色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる場合、中間データを記憶装置に退避して処理を継続する。その結果、濃度強調による弁別性向上と描画色の不整合の防止を実現できる。また、記憶装置にも退避できない場合は濃度強調処理をキャンセルすることで、描画色の不整合を防止することができる。 As a result of these processes, when fallback processing is performed for a print job in which density emphasis is set as the color conversion method, intermediate data is saved to the storage device and processing continues. As a result, it is possible to improve discrimination by emphasizing density and prevent mismatching of drawn colors. Furthermore, if the data cannot be saved to the storage device, the density enhancement process can be canceled to prevent mismatching of drawn colors.

<第4実施形態>
以下、本発明を実施するための第4実施形態について図面を用いて説明する。第4実施形態は、色変換方法に濃度強調が設定された印刷ジョブで、フォールバック処理が行われる時に濃度強調用の色変換テーブルの生成は継続し、中間データではなくラスタ画像データに対して濃度強調用の色変換を実行するリカバリ処理である。なお、第4実施形態の印刷制御装置の構成は、図1に示す第1実施形態の構成と同様である。以下では、第1実施形態と異なる点について説明する。
<Fourth embodiment>
Hereinafter, a fourth embodiment for implementing the present invention will be described using the drawings. In the fourth embodiment, for a print job in which density emphasis is set as the color conversion method, the generation of the color conversion table for density emphasis continues when fallback processing is performed, and the color conversion table for density emphasis is generated for raster image data instead of intermediate data. This is recovery processing that executes color conversion for density emphasis. Note that the configuration of the print control device of the fourth embodiment is similar to the configuration of the first embodiment shown in FIG. Below, points different from the first embodiment will be explained.

図9に、第4実施形態に係るモノクロ印刷のための色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる時に濃度強調用の色変換テーブルの生成を継続し、ラスタ画像データに対して色変換を行う処理を説明するフローチャートを示す。 FIG. 9 shows that when fallback processing is performed in a print job in which density emphasis is set as the color conversion method for monochrome printing according to the fourth embodiment, generation of a color conversion table for density emphasis is continued, and the raster image is A flowchart illustrating a process of performing color conversion on data is shown.

S901において、ジョブ解析部202は、データ入力部201が取得した入力データからジョブ開始命令を読み込む。続いて、ジョブ解析部202は色情報取得部211を用いてカラーモード設定命令を読み込む。色情報取得部211の読み込んだ結果から、グレーデータへの変換が必要な印刷ジョブである場合、かつ、色変換方法に「濃度強調」が設定されている場合の処理についてのみ説明する。その他の指定だった場合は、従来技術の通りであるため説明を省略する。 In S901, the job analysis unit 202 reads a job start command from the input data acquired by the data input unit 201. Next, the job analysis unit 202 uses the color information acquisition unit 211 to read the color mode setting command. Only the processing when the print job requires conversion to gray data based on the result read by the color information acquisition unit 211 and when "density emphasis" is set as the color conversion method will be described. If the designation is other than that, the description is omitted because it is the same as the conventional technology.

S902において、ページ解析部203は、ページ開始命令を読み込む。このとき、ページに対する色変換方法に「濃度強調」を設定する。また、濃度強調処理で必要となるページ内の色数カウントを0で初期化する。 In S902, the page analysis unit 203 reads a page start command. At this time, "density emphasis" is set as the color conversion method for the page. Further, the count of the number of colors in a page, which is necessary for density emphasis processing, is initialized to 0.

S903において、ページ解析部203は、描画命令を読み込む。 In S903, the page analysis unit 203 reads a drawing command.

S904において、ページ解析部203は、色変換方法が「濃度強調」であり、かつ、S903で読み込んだ描画命令が、塗りつぶしカラー指定命令等のページ内の描画に関わる命令だった場合、命令内容を色変換方法設定部212に伝え、S905に移行する。色変換方法が「濃度強調」でない、または、S903で読み込んだ描画命令がページ内の描画に関わる命令でなかった場合、S913に移行する。 In S904, if the color conversion method is "density emphasis" and the drawing command read in S903 is a command related to drawing within the page, such as a fill color specification command, the page analysis unit 203 determines the content of the command. The color conversion method setting unit 212 is informed, and the process moves to S905. If the color conversion method is not "density emphasis" or if the drawing command read in S903 is not a command related to drawing within the page, the process moves to S913.

S905において、色変換方法設定部212は、ページ解析部203が読み込んだ色指定に関わる描画命令からページ内で使用される色数をカウントする。なおこの時、同一ページ内で一度カウントした色については、その後、同じ色を色数にカウントしない。 In S905, the color conversion method setting unit 212 counts the number of colors used within the page from the drawing command related to color specification read by the page analysis unit 203. Note that at this time, for colors that have been counted once within the same page, the same color is not counted in the number of colors thereafter.

S906において、色変換方法設定部212は、ページ内で使用される色数が、所定の閾値を超えたか否かを判定する。より具体的には、色数の合計がプリンタ部111で表現可能なグレーデータの階調数を超えた場合など、カラーデータを視認可能な濃度差を持つグレーデータに変換できるか否かを判定する。色数が所定の閾値以下の場合は、S907に移行し、色数が所定の閾値を超えた場合は、S908に移行する。輪郭強調を用いる色変換方法に切り替えることになる。 In S906, the color conversion method setting unit 212 determines whether the number of colors used within the page exceeds a predetermined threshold. More specifically, in cases where the total number of colors exceeds the number of gradations of gray data that can be expressed by the printer unit 111, it is determined whether the color data can be converted to gray data with a visible density difference. do. If the number of colors is less than or equal to the predetermined threshold, the process moves to S907, and if the number of colors exceeds the predetermined threshold, the process moves to S908. This means switching to a color conversion method that uses edge enhancement.

S907において、色変換部213は、濃度強調用の色変換テーブルを生成する。色変換テーブルについては従来技術になるため、説明を省略する。 In S907, the color conversion unit 213 generates a color conversion table for density emphasis. Since the color conversion table is a prior art, its explanation will be omitted.

S908において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。 In S908, the color conversion method setting unit 212 changes the color conversion method from "density emphasis" to "grayscaling for all colors." Due to this change in the color conversion method, the color conversion unit 213 no longer generates a color conversion table for density emphasis.

S909において、ページ解析部203は、描画命令に基づき中間データを生成する。具体的には、相対座標とベジェ曲線で表現される描画命令や登録された文字(フォント)を実際の出力解像度と用紙サイズに合わせた絶対座標のパス点列に変換する。 In S909, the page analysis unit 203 generates intermediate data based on the drawing command. Specifically, drawing commands and registered characters (fonts) expressed in relative coordinates and Bezier curves are converted into path point sequences in absolute coordinates that match the actual output resolution and paper size.

S910において、ページ解析部203は、1ページ分の中間データを生成中に得られた途中の中間データがRAM222の中間データ格納領域内に収まらないためにフォールバック処理を行うか否かを判定する。フォールバック処理を行わない場合は、変換した中間データをRAM222に順次格納し、S903に戻り、次の描画命令を読み込む。フォールバック処理を行う場合は、S911に移行する。 In S910, the page analysis unit 203 determines whether to perform fallback processing because the intermediate data obtained while generating one page of intermediate data does not fit within the intermediate data storage area of the RAM 222. . If fallback processing is not performed, the converted intermediate data is sequentially stored in the RAM 222, the process returns to S903, and the next drawing command is read. If fallback processing is to be performed, the process moves to S911.

S911において、画像処理制御部204は、RAM222に格納されている中間データを一旦レンダリングし、レンダリング後のラスタ画像データをRAM222に格納できなかった中間データの背景画像として登録する、フォールバック処理を実行する。このときRAM222に格納されている、1ページ分の中間データのうちの一部の中間データのレンダリングは、描画命令で指定された色値のままの使用色テーブルに基づき行われる。そして中間データを格納するための領域をRAM222に確保して、RAM222に格納できなかった、レンダリング後のラスタ画像データが背景画像として登録された中間データをRAM222に順次格納し、S903に戻って次の描画命令を読み込む。RAM222に中間データを格納するための領域を確保する方法としては、レンダリング済みの中間データを削除または上書き可能にするようにしてもよい。このS911のフォールバック処理は、図10(a)に示すフローチャートを用いて後述する。 In S911, the image processing control unit 204 executes fallback processing to once render the intermediate data stored in the RAM 222 and register the rendered raster image data as a background image of the intermediate data that could not be stored in the RAM 222. do. At this time, rendering of a portion of intermediate data of one page of intermediate data stored in the RAM 222 is performed based on the used color table with the color values specified by the drawing command. Then, an area for storing the intermediate data is secured in the RAM 222, and the intermediate data in which the rendered raster image data that could not be stored in the RAM 222 is registered as a background image is sequentially stored in the RAM 222, and the process returns to S903 for the next step. Load the drawing instructions for. As a method for securing an area for storing intermediate data in the RAM 222, rendered intermediate data may be deleted or overwritten. This fallback process in S911 will be described later using the flowchart shown in FIG. 10(a).

このように、色変換方法が「濃度強調」であり、かつ、S703で読み込んだ描画命令がページ内の描画に関わる命令である間は、S903からS911までの処理を繰り返し、濃度強調用の色変換テーブルの生成も継続する。そして、色変換方法が「濃度強調」でなく、または、S903で読み込んだ描画命令がページ内の描画に関わる命令でない場合、S912に移行する。 In this way, while the color conversion method is "density emphasis" and the drawing command read in S703 is a command related to drawing within the page, the processes from S903 to S911 are repeated, and the color for density emphasis is Conversion table generation continues. If the color conversion method is not "density emphasis" or if the drawing command read in S903 is not a command related to drawing within the page, the process moves to S912.

S912において、ページ解析部203は、S903で読み込んだ描画命令が改ページ命令であるか否かを判定し、改ページ命令であった場合、S913に移行し、改ページ命令でなかった場合、S914に移行する。 In S912, the page analysis unit 203 determines whether the drawing command read in S903 is a page break command. If it is a page break command, the process moves to S913; if it is not a page break command, the process advances to S914. to move to.

S913において、ページ解析部203は、中間データにページ終了を意味するジョブ終了命令を追加し、1ページ分の中間データと色変換方法を画像処理制御部204およびRIP231に通知する。 In S913, the page analysis unit 203 adds a job end command indicating the end of the page to the intermediate data, and notifies the image processing control unit 204 and the RIP 231 of one page's worth of intermediate data and the color conversion method.

S914において、画像処理制御部204は、通知された1ページ分の中間データに基づきラスタ画像データを生成して、S902に戻る。このS914の詳細については、図10に示すフローチャートを用いて後述する。 In S914, the image processing control unit 204 generates raster image data based on the notified intermediate data for one page, and returns to S902. The details of S914 will be described later using the flowchart shown in FIG.

S915において、ページ解析部203は、S903で読み込んだ描画命令がジョブ終了命令であるか否かを判定し、ジョブ終了命令である場合、S915に移行し、ジョブ終了命令でない場合は、S909に移行する。 In S915, the page analysis unit 203 determines whether the drawing command read in S903 is a job end command, and if it is a job end command, the process moves to S915, and if it is not a job end command, the process moves to S909. do.

S916において、ページ解析部203は、ジョブ解析部202に印刷ジョブに含まれる全ページ分の中間データ変換が完了した旨を通知し、本シーケンスを終了する。 In S916, the page analysis unit 203 notifies the job analysis unit 202 that intermediate data conversion for all pages included in the print job has been completed, and ends this sequence.

図10(a)に、第4実施形態に係る画像処理制御部204によるフォールバック処理を説明するフローチャートを示す。 FIG. 10A shows a flowchart illustrating fallback processing by the image processing control unit 204 according to the fourth embodiment.

S1011において、画像処理制御部204は、中間データのおよび色変換テーブルの格納場所、実行すべき色変換方法を取得する。 In S1011, the image processing control unit 204 acquires the storage location of the intermediate data and color conversion table, and the color conversion method to be executed.

S1012において、画像処理制御部204は、RIP231を用いて、中間データおよび描画命令で指定された色値の使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。 In S1012, the image processing control unit 204 uses the RIP 231 to generate raster image data matching the output resolution and paper size based on the intermediate data and the color table for the color values specified in the drawing command.

S1013において、画像処理制御部204は、S1012で生成したラスタ画像データを、RAM222に格納できなかった中間データに背景画像として登録し、ラスタ画像データを生成済みの中間データに代えてRAM222に格納する。 In S1013, the image processing control unit 204 registers the raster image data generated in S1012 as a background image in the intermediate data that could not be stored in the RAM 222, and stores the raster image data in the RAM 222 instead of the generated intermediate data. .

図10(b)に、1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204がRIP231および画像編集部232を用いて行うラスタ画像データ生成処理を説明するフローチャートを示す。 FIG. 10B shows a flowchart illustrating raster image data generation processing performed by the image processing control unit 204 using the RIP 231 and the image editing unit 232 after receiving notification of the intermediate data for one page and the color conversion method.

S1021において、画像処理制御部204は、中間データの場所、色変換テーブルの場所、実行すべき色変換方法を取得する。 In S1021, the image processing control unit 204 acquires the location of the intermediate data, the location of the color conversion table, and the color conversion method to be executed.

S1022において、画像処理制御部204は、RIP231を用いて、中間データと使用色テーブルに基づき、出力解像度と用紙サイズに合わせたカラーのラスタ画像データの生成を行う。 In step S1022, the image processing control unit 204 uses the RIP 231 to generate color raster image data matching the output resolution and paper size based on the intermediate data and the color table used.

S1023において、画像処理制御部204は、色変換方法として「濃度強調」が設定されているか否か判定し、「濃度強調」が設定されている場合はS1024に移行し、「濃度強調」が設定されていない場合はS1025に移行する。 In S1023, the image processing control unit 204 determines whether "density emphasis" is set as the color conversion method, and if "density emphasis" is set, the process moves to S1024, and "density emphasis" is set. If not, the process moves to S1025.

S1024において、画像処理制御部204は、画像編集部232を用いて、色変換結果の濃度強調用の色変換テーブルを用いてラスタ画像データの色値を画素単位で比較して、ラスタ画像データの各画素の色値をグレー値に変換する。 In S1024, the image processing control unit 204 uses the image editing unit 232 to compare the color values of the raster image data pixel by pixel using the color conversion table for density emphasis of the color conversion result, and Convert the color value of each pixel to a gray value.

S1025において、画像処理制御部204は、画像編集部232を用いて、全カラー対象グレースケール化用の色変換式に基づきラスタ画像データの各画素の画素値をグレー値に変換する。 In S1025, the image processing control unit 204 uses the image editing unit 232 to convert the pixel value of each pixel of the raster image data into a gray value based on a color conversion formula for converting all colors to gray scale.

以上が1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のラスタ画像データ生成処理であり、これらの処理は、CPU220が実行するページ解析部203の指示により、RIP231や画像編集部232によって実行される。従って、図9に示すジョブ解析とページ解析は図10に示すラスタ画像データ生成処理と並列に動作することになる。 The above is the raster image data generation process of the image processing control unit 204 that has been notified of the intermediate data and color conversion method for one page, and these processes are performed by the RIP 231 and the This is executed by the image editing section 232. Therefore, the job analysis and page analysis shown in FIG. 9 operate in parallel with the raster image data generation process shown in FIG. 10.

これらの処理により、色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる場合、中間データから色変換せずにラスタ画像データを生成する。そして、継続して生成した濃度強調用の色変換テーブルに基づき、生成したラスタ画像データに対して濃度強調の色変換を実施する。その結果、濃度強調による弁別性向上と描画色の不整合の防止を実現できる。 Through these processes, when fallback processing is performed for a print job in which density emphasis is set as the color conversion method, raster image data is generated from intermediate data without color conversion. Then, based on the continuously generated color conversion table for density emphasis, color conversion for density emphasis is performed on the generated raster image data. As a result, it is possible to improve discrimination by emphasizing density and prevent mismatching of drawn colors.

なお本実施形態では、ラスタ画像データに対する色変換は、画像編集部232を用いて行う構成としたが、ラスタ画像データに対する色変換を色変換部213に持たせ、色変換部213を用いて行う構成としてもよい。 Note that in this embodiment, color conversion for raster image data is performed using the image editing unit 232; however, the color conversion unit 213 is provided with color conversion for raster image data, and is performed using the color conversion unit 213. It may also be a configuration.

(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention provides a system or device with a program that implements one or more of the functions of the embodiments described above via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. This can also be achieved by processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

203 ページ解析部
204 画像処理制御部
212 色変換方法設定部
213 色変換部
203 Page analysis section 204 Image processing control section 212 Color conversion method setting section 213 Color conversion section

Claims (19)

カラーデータをモノクロで印刷するための印刷ジョブに含まれるPDLデータに基づき印刷用のラスタ画像データを生成する画像処理装置であって、
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析手段と、
前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換手段と、
前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析手段が1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記色変換手段に対して前記第1の色変換方法と異なる第2の色変換方法を設定する設定手段と、
前記記憶装置に格納されている中間データおよび前記色変換手段による色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理手段と、
を備えることを特徴とする画像処理装置。
An image processing device that generates raster image data for printing based on PDL data included in a print job for printing color data in monochrome,
an analysis unit that analyzes the PDL data to generate intermediate data for each drawing command, and sequentially stores the generated intermediate data in a storage device;
color conversion means for converting each density value of a plurality of colors represented by a plurality of color components specified in the PDL data into a single color density value using a color conversion method specified in the print job; ,
When the first color conversion method that improves discriminability is specified as the color conversion method in the print job, the analysis means uses intermediate data obtained while generating intermediate data for one page. a setting means for setting a second color conversion method different from the first color conversion method to the color conversion means when the color cannot be stored in the storage device;
image processing means for generating raster image data of the single color based on intermediate data stored in the storage device and a color conversion result by the color conversion means;
An image processing device comprising:
前記第1の色変換方法は、前記複数の色の数に応じて前記複数の色のそれぞれの濃度値に対応する前記単一の色の濃度値を変える色変換方法であり、
前記第2の色変換方法は、前記複数の色の数に応じて前記複数の色のそれぞれの濃度値に対応する前記単一の色の濃度値を変えない色変換方法である、
ことを特徴とする請求項1に記載の画像処理装置。
The first color conversion method is a color conversion method that changes the density value of the single color corresponding to the density value of each of the plurality of colors according to the number of the plurality of colors,
The second color conversion method is a color conversion method that does not change the density value of the single color corresponding to the density value of each of the plurality of colors according to the number of the plurality of colors.
The image processing device according to claim 1, characterized in that:
前記第1の色変換方法は、前記複数の色の数に応じて前記単一の色の濃度値間隔を設定した色変換テーブルに基づき、前記複数の色のそれぞれの濃度値を対応する前記単一の色の濃度値に変換する色変換方法である、
ことを特徴とする請求項1又は2に記載の画像処理装置。
The first color conversion method converts the density value of each of the plurality of colors into the corresponding unit based on a color conversion table in which density value intervals of the single color are set according to the number of the plurality of colors. It is a color conversion method that converts to the density value of one color.
The image processing device according to claim 1 or 2, characterized in that:
前記設定手段は、前記第1の色変換方法が指定されているときに、前記複数の色の数が予め定められた閾値を超えた場合、前記色変換手段に対して前記第1の色変換方法を取り消して前記第1の色変換方法と異なる第2の色変換方法を設定する、
ことを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。
When the first color conversion method is specified and the number of the plurality of colors exceeds a predetermined threshold, the setting means causes the color conversion means to perform the first color conversion. canceling the method and setting a second color conversion method different from the first color conversion method;
The image processing apparatus according to any one of claims 1 to 3, characterized in that:
前記解析手段が前記途中の中間データを前記記憶装置に格納できなくなった場合、
前記画像処理手段は、前記記憶装置に格納されている中間データおよび前記色変換手段による色変換結果に基づき、ページの一部を成す前記単一の色のラスタ画像データを生成し、
前記解析手段は、前記記憶装置に格納できなかった前記途中の中間データに対して前記ページの一部を成すラスタ画像データを背景画像として登録して前記記憶装置に格納する、
ことを特徴とする請求項1乃至4のいずれか1項に記載の画像処理装置。
If the analysis means is unable to store the intermediate data in the storage device,
The image processing means generates raster image data of the single color forming part of a page based on intermediate data stored in the storage device and a color conversion result by the color conversion means,
The analysis means registers raster image data forming a part of the page as a background image for the intermediate data that could not be stored in the storage device, and stores the raster image data in the storage device.
The image processing apparatus according to any one of claims 1 to 4.
前記ラスタ画像データに対して、前記単一の色の濃度値間隔が所定の閾値以下である画素領域間の境界を強調する輪郭強調処理を行う輪郭強調手段、
をさらに備えることを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。
an edge enhancement unit that performs edge enhancement processing on the raster image data to emphasize boundaries between pixel areas where the density value interval of the single color is equal to or less than a predetermined threshold;
The image processing apparatus according to any one of claims 1 to 5, further comprising: an image processing apparatus according to claim 1;
前記画像処理手段は、前記1ページ分の中間データに含まれるオブジェクトに対応する画素に対して当該オブジェクトの属性を示す値を格納した属性データを生成し、
前記輪郭強調手段は、前記属性データに基づき前記境界を決定する、
ことを特徴とする請求項6に記載の画像処理装置。
The image processing means generates attribute data in which a value indicating an attribute of the object is stored for a pixel corresponding to the object included in the one page of intermediate data,
The contour emphasizing means determines the boundary based on the attribute data,
The image processing apparatus according to claim 6, characterized in that:
前記解析手段は、前記1ページ分の中間データを構成する1ページ分に満たない複数の中間データを生成して前記記憶装置に格納し、
前記画像処理手段は、前記記憶装置に格納された前記1ページ分の中間データである前記複数の中間データに基づき、前記色変換手段による色変換結果に基づきラスタ画像データの生成を行う、
ことを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。
The analysis means generates a plurality of pieces of intermediate data that are less than one page of intermediate data that constitute the one page of intermediate data, and stores them in the storage device;
The image processing means generates raster image data based on the color conversion result by the color conversion means based on the plurality of intermediate data that is intermediate data for one page stored in the storage device.
The image processing device according to any one of claims 1 to 7.
カラーデータをモノクロで印刷するための印刷ジョブに含まれるPDLデータに基づき印刷用のラスタ画像データを生成する画像処理装置であって、
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析手段と、
前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換手段と、
前記記憶装置に格納されている中間データおよび前記色変換手段による色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理手段と、
を備え、
前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析手段が1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記画像処理手段は、前記記憶装置に格納されている中間データに基づき前記色変換結果を用いずに前記複数の色を含むラスタ画像データを生成し、前記色変換手段は、前記複数の色を含むラスタ画像データの各画素の画素値に対して前記第1の色変換方法で変換を行う、
ことを特徴とする画像処理装置。
An image processing device that generates raster image data for printing based on PDL data included in a print job for printing color data in monochrome,
an analysis unit that analyzes the PDL data to generate intermediate data for each drawing command, and sequentially stores the generated intermediate data in a storage device;
color conversion means for converting each density value of a plurality of colors represented by a plurality of color components specified in the PDL data into a single color density value using a color conversion method specified in the print job; ,
image processing means for generating raster image data of the single color based on intermediate data stored in the storage device and a color conversion result by the color conversion means;
Equipped with
When the first color conversion method that improves discriminability is specified as the color conversion method in the print job, the analysis means uses intermediate data obtained while generating intermediate data for one page. If the image cannot be stored in the storage device, the image processing means generates raster image data including the plurality of colors based on the intermediate data stored in the storage device without using the color conversion result; The color conversion means converts the pixel value of each pixel of the raster image data including the plurality of colors using the first color conversion method.
An image processing device characterized by:
前記第1の色変換方法は、前記複数の色の数に応じて前記複数の色のそれぞれの濃度値に対応する前記単一の色の濃度値を変える色変換方法である、
ことを特徴とする請求項9に記載の画像処理装置。
The first color conversion method is a color conversion method that changes the density value of the single color corresponding to the density value of each of the plurality of colors according to the number of the plurality of colors.
The image processing device according to claim 9.
前記第1の色変換方法は、前記複数の色の数に応じて前記単一の色の濃度値の間隔を設定する色変換方法である、
ことを特徴とする請求項9又は10に記載の画像処理装置。
The first color conversion method is a color conversion method that sets an interval between density values of the single color according to the number of the plurality of colors.
The image processing apparatus according to claim 9 or 10.
前記解析手段が前記途中の中間データを前記記憶装置に格納できなくなった場合、
前記画像処理手段は、前記記憶装置に格納された中間データに基づき、ページの一部を成す前記複数の色を含むラスタ画像データを生成し、
前記解析手段は、前記記憶装置に格納できなかった前記途中の中間データに対して前記ページの一部を成すラスタ画像データを背景画像として登録して前記記憶装置に格納する、
ことを特徴とする請求項9乃至11のいずれか1項に記載の画像処理装置。
If the analysis means is unable to store the intermediate data in the storage device,
The image processing means generates raster image data including the plurality of colors forming part of a page based on intermediate data stored in the storage device,
The analysis means registers raster image data forming a part of the page as a background image for the intermediate data that could not be stored in the storage device, and stores the raster image data in the storage device.
The image processing device according to any one of claims 9 to 11.
前記印刷ジョブにおいて前記第1の色変換方法が指定されているときに、前記複数の色の数が予め定められた閾値を超えた場合、前記色変換手段に対して前記第1の色変換方法を取り消して前記第1の色変換方法と異なる第2の色変換方法を設定する設定手段、
をさらに備えることを特徴とする請求項9乃至12のいずれか1項に記載の画像処理装置。
When the first color conversion method is specified in the print job, if the number of the plurality of colors exceeds a predetermined threshold, the first color conversion method is specified for the color conversion means. setting means for canceling the color conversion method and setting a second color conversion method different from the first color conversion method;
The image processing device according to any one of claims 9 to 12, further comprising:
前記第2の色変換方法は、前記複数の色のそれぞれの濃度値に基づき、前記複数の色のそれぞれの濃度値を対応する前記単一の色の濃度値に変換する色変換方法である、
ことを特徴とする請求項1乃至8、13のいずれか1項に記載の画像処理装置。
The second color conversion method is a color conversion method that converts each density value of the plurality of colors into a corresponding density value of the single color based on the density value of each of the plurality of colors.
The image processing apparatus according to any one of claims 1 to 8 and 13.
前記第1の色変換方法は、前記複数の色の数に応じて前記単一の色の濃度値間隔を設定した色変換テーブルに基づき、前記複数の色のそれぞれの濃度値を対応する前記単一の色の濃度値に変換する色変換方法である、
ことを特徴とする請求項1乃至14のいずれか1項に記載の画像処理装置。
The first color conversion method converts the density value of each of the plurality of colors into the corresponding unit based on a color conversion table in which density value intervals of the single color are set according to the number of the plurality of colors. It is a color conversion method that converts to the density value of one color.
The image processing device according to any one of claims 1 to 14.
請求項1乃至10のいずれか1項に記載の画像処理装置と、
前記画像処理装置により生成されたラスタ画像データに基づき記録媒体に画像を形成する画像形成手段と、
を備えることを特徴とする画像形成装置。
An image processing device according to any one of claims 1 to 10,
image forming means for forming an image on a recording medium based on raster image data generated by the image processing device;
An image forming apparatus comprising:
カラーデータをモノクロで印刷するための印刷ジョブに含まれるPDLデータに基づき印刷用のラスタ画像データを生成する画像処理方法であって、
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析ステップと、
前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換ステップと、
前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析ステップが1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記色変換ステップに対して前記第1の色変換方法を取り消して前記第1の色変換方法と異なる第2の色変換方法を設定する設定ステップと、
前記記憶装置に格納されている中間データおよび前記色変換ステップによる色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理ステップと、
を有することを特徴とする画像処理方法。
An image processing method for generating raster image data for printing based on PDL data included in a print job for printing color data in monochrome, the method comprising:
an analysis step of analyzing the PDL data to generate intermediate data for each drawing command, and sequentially storing the generated intermediate data in a storage device;
a color conversion step of converting each density value of a plurality of colors represented by a plurality of color components specified in the PDL data into a single color density value using a color conversion method specified in the print job; ,
When the first color conversion method that improves discriminability is specified as the color conversion method in the print job, the analysis step uses intermediate data obtained during generation of intermediate data for one page. a setting step of canceling the first color conversion method for the color conversion step and setting a second color conversion method different from the first color conversion method if the color conversion method cannot be stored in the storage device;
an image processing step of generating raster image data of the single color based on the intermediate data stored in the storage device and the color conversion result of the color conversion step;
An image processing method comprising:
カラーデータをモノクロで印刷するための印刷ジョブに含まれるPDLデータに基づき印刷用のラスタ画像データを生成する画像処理方法であって、
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析ステップと、
前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換ステップと、
前記記憶装置に格納されている中間データおよび前記色変換ステップによる色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理ステップと、
を有し、
前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析ステップが1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記画像処理ステップにおいて、前記色変換結果を用いずに前記複数の色を含むラスタ画像データを生成し、1ページ分の当該複数の色を含むラスタ画像データの各画素の画素値に対して前記第1の色変換方法で色変換する、
ことを特徴とする画像処理方法。
An image processing method for generating raster image data for printing based on PDL data included in a print job for printing color data in monochrome, the method comprising:
an analysis step of analyzing the PDL data to generate intermediate data for each drawing command, and sequentially storing the generated intermediate data in a storage device;
a color conversion step of converting each density value of a plurality of colors represented by a plurality of color components specified in the PDL data into a single color density value using a color conversion method specified in the print job; ,
an image processing step of generating raster image data of the single color based on the intermediate data stored in the storage device and the color conversion result of the color conversion step;
has
When the first color conversion method that improves discriminability is specified as the color conversion method in the print job, the analysis step uses intermediate data obtained during generation of intermediate data for one page. If the image cannot be stored in the storage device, in the image processing step, raster image data including the plurality of colors is generated without using the color conversion results, and one page of raster image data including the plurality of colors is generated. converting the pixel value of each pixel using the first color conversion method;
An image processing method characterized by:
コンピュータを請求項1乃至15のいずれか1に記載の画像処理装置として機能させるためのプログラム。 A program for causing a computer to function as the image processing device according to any one of claims 1 to 15.
JP2022039573A 2022-03-14 2022-03-14 Image processing apparatus, image processing method, and program Pending JP2023134195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022039573A JP2023134195A (en) 2022-03-14 2022-03-14 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022039573A JP2023134195A (en) 2022-03-14 2022-03-14 Image processing apparatus, image processing method, and program

Publications (1)

Publication Number Publication Date
JP2023134195A true JP2023134195A (en) 2023-09-27

Family

ID=88143700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022039573A Pending JP2023134195A (en) 2022-03-14 2022-03-14 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP2023134195A (en)

Similar Documents

Publication Publication Date Title
JP4574457B2 (en) Image processing apparatus and method
JP4817934B2 (en) Image processing apparatus and method
JP6824052B2 (en) Image processing device, its control method, and program
JP2010103681A (en) Image processing device and method
JPH111029A (en) Color print system, color printer, and computer readable recording medium storing computer executable program
JP2017024321A (en) Image processor, image formation device, and image processing time prediction method and program
US11671548B2 (en) Image processing apparatus, method, and product for converting color data of objects into gray data based on positions of objects for improved discriminability
JP2023134195A (en) Image processing apparatus, image processing method, and program
JP2014200014A (en) Image processing device and image processing method
JP2022037793A (en) Image processing apparatus, control method of image processing apparatus and program
JP2016115963A (en) Image processing apparatus, image processing method and program
US20090244559A1 (en) Image rasterizing apparatus and image rasterizing method
US8437046B2 (en) Image processing apparatus and method for outputting an image subjected to pseudo-halftone processing
JP2011139162A (en) Image encoding device, control method, and program
JP2001169120A (en) Method, device, and system for image processing
JP2006285792A (en) Image processor and image processing method
JP2023033977A (en) Image forming device, image forming device control method and program
JP4086425B2 (en) Image processing apparatus and method
JP7005796B2 (en) Image forming device, its control method, and program
JP2023033978A (en) Image forming device, image forming device control method, image processing device, image processing method and program
JP5599033B2 (en) Image processing apparatus and method, and program
JP7150487B2 (en) Information processing device, information processing method, and program
JP6775558B2 (en) Image stretcher and its control method and program
JP5202265B2 (en) Image processing apparatus, program, and control method for image processing apparatus
JP2009194458A (en) Image processing apparatus, and image processing method