JP2000011191A - Color image output method, apparatus and recording medium - Google Patents
Color image output method, apparatus and recording mediumInfo
- Publication number
- JP2000011191A JP2000011191A JP10180167A JP18016798A JP2000011191A JP 2000011191 A JP2000011191 A JP 2000011191A JP 10180167 A JP10180167 A JP 10180167A JP 18016798 A JP18016798 A JP 18016798A JP 2000011191 A JP2000011191 A JP 2000011191A
- Authority
- JP
- Japan
- Prior art keywords
- image
- bit
- color
- document
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
- Record Information Processing For Printing (AREA)
Abstract
(57)【要約】
【課題】 既存のPDLインタープリタを改造すること
なく、省メモリでかつ精度よく画像種を識別してラスタ
ー処理する。
【解決手段】 プリンタ・ドライバー4から発行される
描画コマンドはラスタ展開7され、メモリ8に格納され
る。コマンド変換装置6は描画コマンドの画像種を識別
し、コマンドの色データを識別コードに変換した後、ラ
スタ展開7し、メモリ9に格納する。色変換、二値化処
理装置10、11は、メモリ8、9を読み出し、画像種
に応じた処理をメモリ8に施し、データをプリンタ12
に送る。
(57) [Problem] To perform raster processing by identifying an image type with low memory and with high accuracy without modifying an existing PDL interpreter. A drawing command issued from a printer driver (4) is rasterized (7) and stored in a memory (8). The command conversion device 6 identifies the image type of the drawing command, converts the color data of the command into an identification code, rasterizes the image, and stores it in the memory 9. The color conversion / binarization processing devices 10 and 11 read the memories 8 and 9, perform processing according to the image type on the memory 8, and
Send to
Description
【0001】[0001]
【発明の属する技術分野】本発明は、カラー画像出力処
理に関し、特にPDL(Page Descripti
on Language)インタープリタにおけるラス
ター処理を行うカラー画像出力方法、装置および記録媒
体に関し、カラープリンタ等のコントローラ装置あるい
はコンピュータに搭載されるプリンタ・ドライバー・ソ
フトウェアなどに適用される技術である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image output process, and more particularly to a PDL (Page Descriptive).
The present invention relates to a color image output method, apparatus, and recording medium for performing raster processing in an on-language interpreter, and is a technique applied to a controller device such as a color printer or printer driver software installed in a computer.
【0002】[0002]
【従来の技術】一般に、コンピュータにより作成した文
書をプリンタに出力する場合には以下の手順で処理す
る。即ち、 (1)文書データを複数の描画コマンド群へ変換する。 (2)プリンタ・ドライバーと言われるソフトウェアや
プリンタ・コントローラ装置で描画コマンドを解析して
ラスタイメージを作成する(一般に、上記の処理をラス
ターオペレーションという)。 (3)ラスターイメージに対し、色変換処理や擬似中間
調処理などを施してプリンタ出力信号を生成する。 (4)印刷を実行する。2. Description of the Related Art Generally, when a document created by a computer is output to a printer, the following processing is performed. That is, (1) the document data is converted into a plurality of drawing command groups. (2) A raster image is created by analyzing drawing commands with software called a printer driver or a printer controller device (generally, the above processing is called a raster operation). (3) A printer output signal is generated by performing color conversion processing, pseudo halftone processing, and the like on the raster image. (4) Execute printing.
【0003】ところで、好ましいカラー画像を出力する
ためには、自然画像、文字、グラフィックなど、画像の
種類によって異なる色処理や中間調処理が必要になる。
従って、種々の画像種を含むカラー・イメージ情報を出
力するためには、画像種ごとに適した画像処理を施せる
ようなアーキテクチャーが必要となる。In order to output a preferable color image, it is necessary to perform different color processing and halftone processing depending on the type of the image, such as a natural image, a character, and a graphic.
Therefore, in order to output color image information including various image types, an architecture that can perform image processing suitable for each image type is required.
【0004】このようなカラー・イメージ情報を出力す
る従来技術としては、(A)ビットマップメモリを画像
種ごとに用意して、それぞれ個別にラスターイメージを
作成する方法と、(B)ラスタイメージの生成後、ラス
ターイメージをスキャンして画素毎に属性の判定を行う
方法(例えば、特開平9−284548号公報を参照)
などがある。Conventional techniques for outputting such color image information include (A) a method of preparing a bitmap memory for each image type and individually creating raster images, and (B) a method of preparing raster images. After generation, a method of scanning a raster image and determining an attribute for each pixel (for example, see Japanese Patent Application Laid-Open No. 9-284548)
and so on.
【0005】[0005]
【発明が解決しようとする課題】上記した(A)の方法
では、画像種ごとにラスターイメージを格納するための
メモリを用意するため、区別する画像種が多くなると大
量のメモリを浪費してしまうという問題がある。また、
ラスタオペレーションを行うPDLインタプリタも大幅
に変更しなければならず、ラスターオペレーション処理
方式の変更が困難になってしまう。In the above method (A), since a memory for storing a raster image is prepared for each image type, a large amount of memory is wasted when the number of image types to be distinguished increases. There is a problem. Also,
The PDL interpreter that performs the raster operation must also be changed significantly, making it difficult to change the raster operation processing method.
【0006】また(B)の方法では、ラスターイメージ
を用いて像域分離を行っているので、誤判定が生じ易い
という問題がある。前掲した公報も3×3の画素単位で
像城分離処理しているので、誤判定が生じる可能性があ
る。In the method (B), since image area separation is performed using a raster image, there is a problem that erroneous determination is likely to occur. Also in the above-mentioned publication, the image castle separation processing is performed in units of 3 × 3 pixels, so that an erroneous determination may occur.
【0007】本発明の目的は、既存のPDLインタープ
リタを改造することなく、省メモリでかつ精度よく画像
種を識別してラスター処理するカラー画像出力方法、装
置および記録媒体を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a color image output method, apparatus, and recording medium for performing a raster processing by identifying an image type with high accuracy without memory modification without modifying an existing PDL interpreter.
【0008】[0008]
【課題を解決するための手段】前記目的を達成するため
に、請求項1記載の発明では、描画命令で記述された文
書画像をビットイメージに展開して出力するカラー画像
出力方法であって、前記文書画像をビットイメージに展
開と共に、画像種を表すコードをビットイメージに展開
することを特徴としている。According to the first aspect of the present invention, there is provided a color image output method for developing a document image described by a drawing command into a bit image and outputting the bit image. The document image is developed into a bit image, and the code representing the image type is developed into a bit image.
【0009】請求項2記載の発明では、前記描画命令毎
に前記文書画像の画像種を判別し、該判別された画像種
に対して所定のコードを割り当て、前記描画命令中の色
データを該所定コードに変換して展開することを特徴と
している。In the invention according to claim 2, the image type of the document image is determined for each of the rendering commands, a predetermined code is assigned to the determined image type, and the color data in the rendering command is converted to the color data. It is characterized by being converted into a predetermined code and developed.
【0010】請求項3記載の発明では、前記画像種の
内、少なくとも文字とビットマップに対して異なるコー
ドを割り当てることを特徴としている。According to a third aspect of the present invention, different codes are assigned to at least characters and bitmaps in the image type.
【0011】請求項4記載の発明では、前記文書画像が
展開されない領域に対しては、背景を表すコードを割り
当てることを特徴としている。According to a fourth aspect of the present invention, a code representing a background is assigned to an area where the document image is not developed.
【0012】請求項5記載の発明では、前記描画命令が
複数の画像種間で演算を行う命令であるとき、該演算命
令を実行する領域に対して所定のコードを割り当てて展
開することを特徴としている。In the invention described in claim 5, when the drawing instruction is an instruction for performing an operation between a plurality of image types, a predetermined code is assigned to an area where the operation instruction is executed and developed. And
【0013】請求項6記載の発明では、描画命令で記述
された文書画像をビットイメージに展開して画像出力手
段に出力するカラー画像出力装置であって、前記文書画
像をビットイメージに展開して格納する第1の手段と、
前記文書画像の画像種を判別する手段と、該判別された
画像種に割り当てられた所定コードをビットイメージに
展開して格納する第2の手段と、前記第1、2の手段か
ら画素単位で読み出し、前記第2の手段から読み出され
る画像種に応じた最適な処理を前記第1の手段の各画素
に施して前記画像出力手段に出力する手段とを備えたこ
とを特徴としている。According to a sixth aspect of the present invention, there is provided a color image output apparatus for developing a document image described by a drawing command into a bit image and outputting the bit image to an image output means, wherein the document image is developed into a bit image. First means for storing;
Means for determining the image type of the document image, second means for expanding a predetermined code assigned to the determined image type into a bit image and storing the bit image, and Means for reading, performing an optimum process in accordance with an image type read from the second means to each pixel of the first means, and outputting to the image output means.
【0014】請求項7記載の発明では、描画命令で記述
された文書画像をビットイメージに展開して印刷手段に
出力するカラー画像出力装置であって、前記文書画像を
ビットイメージに展開して格納する第1の手段と、前記
文書画像の画像種を判別する手段と、該判別された画像
種に対して所定のコードを割り当て、前記描画命令中の
色データを該所定コードに変換する手段と、該所定コー
ドをビットイメージに展開して格納する第2の手段と、
前記第1、2の手段から画素単位で読み出し、前記第2
の手段から読み出される画像種に応じた最適な処理を前
記第1の手段の各画素に施して前記印刷手段に出力する
手段とを備えたことを特徴としている。According to a seventh aspect of the present invention, there is provided a color image output device for developing a document image described by a drawing command into a bit image and outputting the bit image to a printing unit, wherein the document image is developed into a bit image and stored. A first means for performing the processing, a means for determining an image type of the document image, a means for assigning a predetermined code to the determined image type, and a means for converting color data in the drawing command into the predetermined code. Second means for expanding the predetermined code into a bit image and storing the bit image;
The pixel data is read out from the first and second means in pixel units,
Means for applying optimal processing to each pixel of the first means in accordance with the type of image read from the means and outputting to the printing means.
【0015】請求項8記載の発明では、描画命令で記述
された文書画像をビットイメージに展開して印刷装置に
出力する機能をコンピュータに実現させるためのプログ
ラムを記録したコンピュータ読み取り可能な記録媒体で
あって、前記文書画像をビットイメージに展開して格納
する機能と、前記文書画像の画像種を判別する機能と、
該判別された画像種に対して所定のコードを割り当て、
該所定コードをビットイメージに展開して格納する機能
と、前記格納機能から読み出された各画素に対して画像
種に応じた最適な処理を施す機能と、該最適な処理が施
された前記ビットイメージの文書画像を前記印刷装置に
送信する機能をコンピュータに実現させるためのプログ
ラムを記録したコンピュータ読み取り可能な記録媒体で
あることを特徴としている。According to the eighth aspect of the present invention, a computer-readable recording medium in which a program for causing a computer to realize a function of developing a document image described by a drawing command into a bit image and outputting the bit image to a printing apparatus is recorded. A function of expanding the document image into a bit image and storing it; a function of determining an image type of the document image;
Allocating a predetermined code to the determined image type,
A function of expanding the predetermined code into a bit image and storing the function, a function of performing an optimum process according to an image type on each pixel read from the storage function, and a process of performing the optimum process. The computer-readable recording medium stores a program for causing a computer to realize a function of transmitting a bit image document image to the printing apparatus.
【0016】[0016]
【発明の実施の形態】以下、本発明の一実施例を図面を
用いて具体的に説明する。 (実施例1)図2は、種々の図形が含まれるカラー・イ
メージの一例である。このイメージは、1つの文書中に
自然画像(ビットマップ)、フォント(文字)、線画、
単色の塗りつぶしパターン(棒グラフ)などを含んでい
る。以下、このイメージを印刷する場合を例にして本発
明の実施例を説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be specifically described below with reference to the drawings. (Embodiment 1) FIG. 2 is an example of a color image including various figures. This image contains natural images (bitmaps), fonts (characters), line drawings,
Includes a solid color fill pattern (bar graph). Hereinafter, an embodiment of the present invention will be described by taking the case of printing this image as an example.
【0017】図1は、本発明の実施例1の構成を示し、
プリンタ・コントローラ内でラスタオペレーションを行
う場合のシステム構成例である。通常、オペレーティン
グ・システム2は描画のための専用モジュール3を具備
していて、この描画モジュール3がディスプレイやプリ
ンタに対する描画処理を管理している。FIG. 1 shows a configuration of a first embodiment of the present invention.
1 is a system configuration example when performing a raster operation in a printer controller. Normally, the operating system 2 includes a dedicated module 3 for drawing, and the drawing module 3 manages a drawing process for a display or a printer.
【0018】例えば、オペレータが何らかのアプリケー
ション1を使って画面で編集した図2に示すような文書
イメージをプリンタに印刷する場合、アプリケーション
1は印刷ジョブを始めるという命令を描画モジュール3
に送信する。描画モジュール3は印刷開始のメッセージ
を受け取ると、アプリケーション1で作成された文書画
像データをプリンタ・ドライバー4が解釈可能なコマン
ドに変換して、プリンタ・ドライバー4にコマンドを送
信する。For example, when an operator prints a document image as shown in FIG. 2 edited on a screen by using some application 1 on a printer, the application 1 issues a command to start a print job to the drawing module 3.
Send to Upon receiving the print start message, the drawing module 3 converts the document image data created by the application 1 into a command that can be interpreted by the printer driver 4 and transmits the command to the printer driver 4.
【0019】プリンタ・ドライバー4はオペレーティン
グ・システム2から受け取ったコマンドをプリンタ・コ
ントローラ5が解釈可能な描画コマンドに変換してロー
カル接続あるいはネットワーク接続されたプリンタ・コ
ントローラ5にコマンドを送信する。プリンタ・コント
ローラ5は、後述するラスターオペレーション及び画像
変換手段によりプリンタ12に送信可能なデータに変換
して印刷動作を開始する。印刷が終了すると、アプリケ
ーション1は印刷終了の命令を描画モジュール3に送信
し、オペレータが再び編集可能な状態になる。The printer driver 4 converts a command received from the operating system 2 into a drawing command that can be interpreted by the printer controller 5 and transmits the command to the printer controller 5 connected locally or over a network. The printer controller 5 converts the data into data that can be transmitted to the printer 12 by a raster operation and image conversion means described later, and starts a printing operation. When printing is completed, the application 1 sends a print end command to the drawing module 3 and the operator can again edit.
【0020】次に、本発明の特徴であるラスターオペレ
ーション処理について説明する。図4は、本発明のラス
ターオペレーションの処理フローチャートである。Next, the raster operation processing which is a feature of the present invention will be described. FIG. 4 is a processing flowchart of the raster operation of the present invention.
【0021】前述したプリンタ・ドライバー4から送ら
れる描画コマンドは、画像種に対応した多数の描画命令
で構成される。通常、この描画命令には描画対象の画像
種(例えばビットマップ、文字、ライン、パターンな
ど)、形状、位置情報、色データ等の情報が含まれる。
一例を挙げると文字の描画コマンドとして DrawText(“ホームコンピューテイン
グ...”,rect,color) というコマンド形態になる。ここで、“ホームコンピュ
ーテイング...”は、描画するテキスト文書の内容、
rectは描画するビットマップ上の領域、color
は描画色を表している。ビットマップ等、他の画像種に
対してもそれぞれに適したコマンド群が送られる。The drawing command sent from the printer driver 4 is composed of a large number of drawing commands corresponding to image types. Normally, the drawing command includes information such as the type of image to be drawn (eg, bitmap, character, line, pattern, etc.), shape, position information, and color data.
As an example, a drawing command of a character has a command form of DrawText (“home computing ...”, rect, color). Here, “home computing ...” is the content of the text document to be drawn,
Rect is the area on the bitmap to be drawn, color
Represents a drawing color. A command group suitable for each of other image types such as a bitmap is transmitted.
【0022】上記の描画コマンドに対するラスタオペレ
ーションは2系統で処理が行われる。一つは、一般的な
ラスタオペレーションであり、描画コマンドに従って忠
実にラスタ展開装置7で展開処理(RIP(Raste
r Image Processor)処理)を施し
(ステップ101)、生成されたラスターイメージをビ
ットマップメモリ8(A)に格納する(ステップ10
2)。The raster operation for the above-mentioned drawing command is processed in two systems. One is a general raster operation, in which raster processing is performed faithfully by the raster developing device 7 in accordance with a drawing command (RIP (Raster)).
r Image Processor) (step 101), and the generated raster image is stored in the bitmap memory 8 (A) (step 10).
2).
【0023】もう一つは、画像種を識別するためのラス
ター展開が行われる。即ち、描画コマンドの色データ
を、コマンド変換装置6で画像種識別コードに変換した
後、先のラスターオペレーションと同じラスタ展開装置
7で展開処理を施し、生成されたイメージをビットマッ
プメモリ9(B)に格納する。この方法では、第1のラ
スタ展開と第2のラスタ展開が同期して処理されるた
め、ビットマップメモリBを参照することにより、画素
毎に誤判定のない画像種の識別ができる。The other is raster development for identifying image types. That is, after the color data of the drawing command is converted into an image type identification code by the command conversion device 6, the same raster processing as in the previous raster operation is performed, and the generated image is subjected to the bitmap memory 9 (B ). In this method, since the first raster development and the second raster development are processed in synchronization, by referring to the bitmap memory B, it is possible to identify an image type without erroneous determination for each pixel.
【0024】以下、図4を参照して、本発明の処理動作
を説明する。ここでは説明の都合上、画像種ごとの識別
コードを以下のように割り当てて説明する。すなわち、 背景=0 文字=1 線=2 矩形=3 ビットマップ=4 その他=5 まず、何も描画が行われない領域を識別できるようにす
るために、ラスタオペレーションの開始時にビットマッ
プメモリ8(B)の内容を背景の識別コード0で初期化
しておく。The processing operation of the present invention will be described below with reference to FIG. Here, for convenience of explanation, an identification code for each image type is assigned as follows. That is, background = 0 character = 1 line = 2 rectangle = 3 bitmap = 4 others = 5 First, in order to be able to identify an area where nothing is drawn, the bitmap memory 8 ( The contents of B) are initialized with the background identification code 0.
【0025】その後、描画コマンドごとに識別コードを
割り当ててラスター展開を実行する。図4に示すよう
に、まずコマンド変換装置6は描画コマンドが文字に対
するものか否かを判定し(ステップ103)、文字なら
ば描画コマンドの色データを文字の識別コードである1
に変更し(ステップ110)、ラスタ展開装置7はラス
タ展開を実行し(ステップ108)、画像種コードをビ
ットマップメモリ9(B)に格納する(ステップ10
9)。After that, raster development is executed by assigning an identification code to each drawing command. As shown in FIG. 4, first, the command conversion device 6 determines whether or not the drawing command is for a character (step 103).
(Step 110), the raster developing device 7 executes raster developing (Step 108), and stores the image type code in the bitmap memory 9 (B) (Step 10).
9).
【0026】文字でないと判定されたとき、次に、線画
の描画コマンドであるか否かを判定し(ステップ10
4)、線画ならば色データを線の識別コードである2に
変更し(ステップ111)、ラスタ展開し(ステップ1
08)、ビットマップメモリ9(B)に格納する(ステ
ップ109)。以下同様にして矩形の描画コマンドを処
理し(ステップ105、112)、ビットマップの描画
コマンドを処理し(ステップ106、113)、上記し
た何れのコマンドにも該当しない場合にはデフォルトの
識別コード5を割り当てる(ステップ107)。If it is determined that the command is not a character, it is next determined whether or not the command is a line drawing command (step 10).
4) If it is a line drawing, the color data is changed to 2 which is a line identification code (step 111), and raster development is performed (step 1).
08), and stored in the bitmap memory 9 (B) (step 109). In the same manner, a rectangular drawing command is processed (steps 105 and 112), and a bitmap drawing command is processed (steps 106 and 113). Is assigned (step 107).
【0027】上記した処理によって、ビットマップメモ
リBの内容がどのように変化するかについて図5を用い
ながら説明する。図5では、 (1)ビットマップを描画 (2)文字を描画 (3)ビットマップを描画 という、3つの描画コマンドを実行したものである。How the contents of the bitmap memory B are changed by the above processing will be described with reference to FIG. In FIG. 5, three drawing commands of (1) drawing a bitmap, (2) drawing a character, and (3) drawing a bitmap are executed.
【0028】最初の段階(図5(a))では、ビットマ
ップメモリBには、背景コードを表す0が割り当てられ
ている。次にビットマップの描画が行われると、ビット
マップの描画領域がすべて識別コード4に書き換えられ
る(図5(b))。次に、文字描画のコマンドを受け取
った場合には、色データを1に変更してラスタ展開を行
うため、文字の部分だけが1の値を持つ色で描画される
ため、図5(c)のようになる。次のビットマップ描画
コマンドを受け取ると前記したと同様の処理が行われ、
図5(d)のようにビットマップメモリB の内容が更
新される。In the first stage (FIG. 5A), 0 representing the background code is assigned to the bitmap memory B. Next, when the bitmap is drawn, the entire drawing area of the bitmap is rewritten with the identification code 4 (FIG. 5B). Next, when a character drawing command is received, since the rasterization is performed by changing the color data to 1, only the character portion is drawn in a color having a value of 1, so that FIG. become that way. When the next bitmap drawing command is received, the same processing as described above is performed,
The contents of the bitmap memory B are updated as shown in FIG.
【0029】以上説明したように、本実施例では描画対
象がそれぞれ複雑に重なり合っていても画像種の識別コ
ードをビットマップメモリ上に正確に生成することがで
きる。また、ビットマップメモリBは、必ずしもビット
マップメモリAと同じ記憶容量を持つ必要がない。例え
ば上記の例では、画像種の識別コードは6種類であるの
で画素あたり3ビットのメモリを用意すればよい。As described above, in this embodiment, the identification code of the image type can be accurately generated on the bitmap memory even if the objects to be drawn overlap each other in a complicated manner. Further, the bitmap memory B does not necessarily have to have the same storage capacity as the bitmap memory A. For example, in the above example, since there are six types of image type identification codes, a 3-bit memory per pixel may be prepared.
【0030】上記した処理を図2の文書データに対して
施すと、最終的にビットマップメモリBには図3に示す
ような画像種の識別コードから構成された画像が生成さ
れることになる。When the above processing is performed on the document data shown in FIG. 2, an image composed of the image type identification codes shown in FIG. 3 is finally generated in the bit map memory B. .
【0031】上記した実施例では、6種類の割り当てパ
ターンを用いたが、この例に限らず、文字とそれ以外と
いうパターンでもよいし、他のパターンでもよい。但
し、少なくとも文字とビットマップでは明らかに好まし
い画像変換処理が異なるため、この2つの画像種につい
ては異なった識別コードを割り当てることが望ましい。In the above embodiment, six types of allocation patterns are used. However, the present invention is not limited to this example, and patterns of characters and other patterns may be used, or other patterns may be used. However, since the preferable image conversion processing is clearly different at least for characters and bitmaps, it is desirable to assign different identification codes to the two image types.
【0032】上記した処理によって画像種の識別コード
を保持したビットマップが生成されると、これに従って
画像種を判別しながらビットマップメモリAに対する画
像変換処理を行ってプリンタへの出力信号を生成する。
ビットマップメモリAに格納されているイメージは、通
常ディスプレイと同じく各画素24ビット(あるいは8
ビット)程度の色深度を持ったRGB信号になってい
る。プリンタは一般に他の色信号(通常CMYKデー
タ)で印刷されるため、RGB→CMYK変換などの色
変換処理が必要になる。また、インクジェットプリンタ
など通常のカラープリンタでは、階調がディスプレイよ
りも少ないものが多く、その場合には擬似中間調処理が
必要になる。本実施例の画像変換処理としては、上記し
た色変換処理や擬似中間調処理に限定されるものではな
く、他の処理を追加してもよい。When a bitmap holding an image type identification code is generated by the above-described processing, an image conversion process is performed on the bitmap memory A while discriminating the image type according to the generated bitmap, thereby generating an output signal to the printer. .
The image stored in the bitmap memory A has 24 bits (or 8 bits) for each pixel as in a normal display.
Bit) of the RGB signal. Since a printer is generally printed with another color signal (usually CMYK data), a color conversion process such as RGB → CMYK conversion is required. Further, in a general color printer such as an ink jet printer, there are many printers having a smaller number of gradations than a display, and in that case, a pseudo halftone process is required. The image conversion processing of this embodiment is not limited to the above-described color conversion processing and pseudo halftone processing, and other processing may be added.
【0033】最適化処理の例として、RGB→CMYK
色変換の場合について説明する。一般に、RGB→CM
YK色変換の際は、黒文字は黒インクのみで出力し、自
然画などの連続階調画像の黒部分は、CMYKの4色で
印刷するように色変換する方が画質面から見て望まし
い。そこで、色変換処理装置10で色変換を行う場合に
は、画素単位でビットマップメモリAとBを読み出し
て、ビットマップのコードを持つ画素に対しては4色へ
の色変換を行い、文字のコードを持つ画素に対しては、
黒単色で出力するように色変換する。また、二値化処理
装置11における中間調処理についても、文字の場合に
はディザ処理、ビットマップ領域には誤差拡散処理を施
し、これにより画像種ごとに最適化処理が可能になる。As an example of the optimization processing, RGB → CMYK
The case of color conversion will be described. Generally, RGB → CM
At the time of YK color conversion, it is more desirable from the viewpoint of image quality to output black characters only with black ink and perform color conversion so that the black portion of a continuous tone image such as a natural image is printed in four colors of CMYK. Therefore, when color conversion is performed by the color conversion processing device 10, the bitmap memories A and B are read out on a pixel-by-pixel basis, and color conversion into four colors is performed for pixels having a bitmap code. For pixels with the code
Color conversion is performed so as to output black single color. Also, with regard to the halftone processing in the binarization processing device 11, dither processing is performed for characters, and error diffusion processing is performed for bitmap areas, thereby enabling optimization processing for each image type.
【0034】また、本発明によれば描画が行われていな
い背景部分については背景用の識別コードとして0が割
り当てられている。従って、背景領域のみに特別の処理
を行うことが可能になる。例えば、背景領域に対しては
プリンタ側では通常印字を行わないため、背景コードが
設定されている画素に対しては、色変換処理や中間調処
理などを行わず、直接C、M、Y、K=0としてデータ
をプリンタに送信すれば、高速な印字動作が可能にな
る。According to the present invention, 0 is assigned as a background identification code to a background portion where no drawing is performed. Therefore, special processing can be performed only on the background area. For example, since the printer does not normally perform printing on the background area, color conversion processing and halftone processing are not performed on pixels for which a background code is set, and C, M, Y, If the data is transmitted to the printer with K = 0, a high-speed printing operation becomes possible.
【0035】さらに、より複雑な例として、複数の描画
対象同士で演算処理などが行われる場合がある。例え
ば、下位のレイヤーにビットマップが描画され、その上
に透明度を設定した文字を描画するような場合がある。
このような場合には、文字に対して透明度が設定されて
いることから、画面上では文字と背景のビットマップイ
メージが淡く混ざって表示されていることになる。この
ような場合には、文字ともビットマップとも異なる新た
な画像種の設定が必要になる。そこで、レイヤー間での
演算命令を受けた場合には、演算領域を表す新たな識別
コードを設定する。このようなコードを設定することに
より、色変換処理などの最適化を簡単に行うことができ
る。Further, as a more complicated example, there is a case where arithmetic processing is performed between a plurality of drawing targets. For example, there is a case where a bitmap is drawn on a lower layer, and a character with transparency set is drawn thereon.
In such a case, since the transparency is set for the characters, the bitmap images of the characters and the background are displayed on the screen in a lightly mixed state. In such a case, it is necessary to set a new image type different from the character and the bitmap. Therefore, when an operation instruction between layers is received, a new identification code representing the operation area is set. By setting such a code, optimization such as color conversion processing can be easily performed.
【0036】(実施例2)上記した実施例1は、プリン
タ・コントローラ内でラスタ・オペレーションを行う場
合の実施例である。ところで、安価なインクジェットプ
リンタ等ではプリンタ・コントローラ内ではラスターオ
ペレーションは行わずにプリンタドライバーでラスター
オペレーションを施し、ビットマップイメージに展開し
てからプリンタにデータを送信している。図6は、この
場合の構成例を示す。Embodiment 2 Embodiment 1 described above is an embodiment in which a raster operation is performed in a printer controller. By the way, in an inexpensive ink-jet printer or the like, a raster operation is performed by a printer driver without performing a raster operation in a printer controller, developed into a bitmap image, and then transmitted to the printer. FIG. 6 shows a configuration example in this case.
【0037】実施例1では、ラスターオペレーションな
どの処理をコントローラ内の装置で行っていたが、図6
に示す実施例2では、コマンド変換、ラスタ展開などの
各処理をプリンタ・ドライバーのソフトウェア(コマン
ド変換モジュールなどの各モジュール)で処理している
点が異なるだけで、基本的な処理内容は実施例1と同じ
である。In the first embodiment, the processing such as the raster operation is performed by the device in the controller.
The second embodiment is different from the first embodiment only in that each process such as command conversion and raster development is performed by software of a printer driver (each module such as a command conversion module). Same as 1.
【0038】なお、本発明は上記した実施例に限定され
ず、上記したプリンタ・ドライバーのソフトウェアをC
D−ROMなどの記録媒体に記録させてもよい。本発明
のラスターオペレーションを実行させるときは、上記し
た記録媒体に記録されたプログラムを読み出し、これを
OSの一部として組み込むことによって本発明の処理機
能が実現される。Note that the present invention is not limited to the above-described embodiment, and the software of the above-described printer driver is
It may be recorded on a recording medium such as a D-ROM. When executing the raster operation of the present invention, the processing function of the present invention is realized by reading out the program recorded on the above-mentioned recording medium and incorporating it as a part of the OS.
【0039】[0039]
【発明の効果】以上、説明したように、本発明によれ
ば、描画命令で記述される文書画像をビットイメージに
展開と共に、画像種の識別コードをビットイメージに展
開しているので、PDLインタープリタを改造すること
なく、少ないメモリでかつ高精度に画像種を識別するこ
とができ、従って画像種に応じた最適な画像処理を施す
ことが可能となる。As described above, according to the present invention, the document image described by the drawing command is developed into a bit image and the identification code of the image type is developed into a bit image. The image type can be identified with a small amount of memory and with high accuracy without remodeling, so that it is possible to perform the optimal image processing according to the image type.
【図1】本発明の実施例1の構成を示す。FIG. 1 shows a configuration of a first exemplary embodiment of the present invention.
【図2】複数の画像種で構成される文書画像の例を示
す。FIG. 2 shows an example of a document image composed of a plurality of image types.
【図3】文書画像に対する画像種判定結果の例を示す。FIG. 3 shows an example of an image type determination result for a document image.
【図4】本発明のラスターオペレーションの処理フロー
チャートである。FIG. 4 is a processing flowchart of a raster operation of the present invention.
【図5】画像種の識別コードがメモリに書き込まれる過
程を示す。FIG. 5 shows a process of writing an image type identification code into a memory.
【図6】本発明の実施例2の構成を示す。FIG. 6 shows a configuration of a second exemplary embodiment of the present invention.
1 アプリケーション 2 オペレーティングシステム 3 描画モジュール 4 プリンタ・ドライバ 5 プリンタ・コントローラ 6 コマンド変換装置 7 ラスタ展開装置 8、9 ビットマップ・メモリ 10 色変換処理装置 11 二値化処理装置 12 印刷装置 DESCRIPTION OF SYMBOLS 1 Application 2 Operating system 3 Drawing module 4 Printer driver 5 Printer controller 6 Command conversion device 7 Raster development device 8, 9 Bitmap memory 10 Color conversion processing device 11 Binarization processing device 12 Printing device
Claims (8)
イメージに展開して出力するカラー画像出力方法であっ
て、前記文書画像をビットイメージに展開と共に、画像
種を表すコードをビットイメージに展開することを特徴
とするカラー画像出力方法。1. A color image output method for developing a document image described by a drawing command into a bit image and outputting the bit image, wherein the document image is developed into a bit image and a code representing an image type is developed into a bit image. A color image output method.
を判別し、該判別された画像種に対して所定のコードを
割り当て、前記描画命令中の色データを該所定コードに
変換して展開することを特徴とする請求項1記載のカラ
ー画像出力方法。2. An image type of the document image is determined for each drawing command, a predetermined code is assigned to the determined image type, and color data in the drawing command is converted into the predetermined code. 2. The color image output method according to claim 1, wherein the color image is developed.
トマップに対して異なるコードを割り当てることを特徴
とする請求項2記載のカラー画像出力方法。3. The color image output method according to claim 2, wherein different codes are assigned to at least characters and bitmaps among the image types.
ては、背景を表すコードを割り当てることを特徴とする
請求項2記載のカラー画像出力方法。4. The color image output method according to claim 2, wherein a code representing a background is assigned to an area where the document image is not developed.
行う命令であるとき、該演算命令を実行する領域に対し
て所定のコードを割り当てて展開することを特徴とする
請求項2記載のカラー画像出力方法。5. The image processing apparatus according to claim 2, wherein when the drawing instruction is an instruction for performing an operation between a plurality of image types, a predetermined code is assigned to an area where the operation instruction is executed and developed. Color image output method.
イメージに展開して画像出力手段に出力するカラー画像
出力装置であって、前記文書画像をビットイメージに展
開して格納する第1の手段と、前記文書画像の画像種を
判別する手段と、該判別された画像種に割り当てられた
所定コードをビットイメージに展開して格納する第2の
手段と、前記第1、2の手段から画素単位で読み出し、
前記第2の手段から読み出される画像種に応じた最適な
処理を前記第1の手段の各画素に施して前記画像出力手
段に出力する手段とを備えたことを特徴とするカラー画
像出力装置。6. A color image output device which develops a document image described by a drawing command into a bit image and outputs the bit image to an image output means, wherein the first means develops the document image into a bit image and stores it. Means for discriminating the image type of the document image, second means for developing a predetermined code assigned to the discriminated image type into a bit image and storing the bit image, and pixel data from the first and second means. Read in units,
A color image output apparatus comprising: means for performing an optimum process according to an image type read from the second means on each pixel of the first means and outputting the processed image to the image output means.
イメージに展開して印刷手段に出力するカラー画像出力
装置であって、前記文書画像をビットイメージに展開し
て格納する第1の手段と、前記文書画像の画像種を判別
する手段と、該判別された画像種に対して所定のコード
を割り当て、前記描画命令中の色データを該所定コード
に変換する手段と、該所定コードをビットイメージに展
開して格納する第2の手段と、前記第1、2の手段から
画素単位で読み出し、前記第2の手段から読み出される
画像種に応じた最適な処理を前記第1の手段の各画素に
施して前記印刷手段に出力する手段とを備えたことを特
徴とするカラー画像出力装置。7. A color image output device which develops a document image described by a drawing command into a bit image and outputs the bit image to a printing means, wherein the first means develops the document image into a bit image and stores it. Means for discriminating the image type of the document image, means for allocating a predetermined code to the discriminated image type, converting color data in the drawing command into the predetermined code, A second unit for developing and storing the image as an image; and reading out the image data in units of pixels from the first and second units, and performing an optimum process according to an image type read out from the second unit. Means for applying to a pixel and outputting to the printing means.
イメージに展開して印刷装置に出力する機能をコンピュ
ータに実現させるためのプログラムを記録したコンピュ
ータ読み取り可能な記録媒体であって、前記文書画像を
ビットイメージに展開して格納する機能と、前記文書画
像の画像種を判別する機能と、該判別された画像種に対
して所定のコードを割り当て、該所定コードをビットイ
メージに展開して格納する機能と、前記格納機能から読
み出された各画素に対して画像種に応じた最適な処理を
施す機能と、該最適な処理が施された前記ビットイメー
ジの文書画像を前記印刷装置に送信する機能をコンピュ
ータに実現させるためのプログラムを記録したコンピュ
ータ読み取り可能な記録媒体。8. A computer-readable recording medium storing a program for causing a computer to realize a function of expanding a document image described by a drawing command into a bit image and outputting the bit image to a printing apparatus, wherein the document image Into a bit image, a function to determine the image type of the document image, a predetermined code assigned to the determined image type, and the predetermined code expanded into a bit image and stored. And a function of performing an optimum process on each pixel read from the storage function according to an image type, and transmitting the bit image document image subjected to the optimum process to the printing apparatus. And a computer-readable recording medium on which a program for causing a computer to realize the function of performing the function is recorded.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18016798A JP3636891B2 (en) | 1998-06-26 | 1998-06-26 | Color image output method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18016798A JP3636891B2 (en) | 1998-06-26 | 1998-06-26 | Color image output method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000011191A true JP2000011191A (en) | 2000-01-14 |
| JP3636891B2 JP3636891B2 (en) | 2005-04-06 |
Family
ID=16078578
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP18016798A Expired - Fee Related JP3636891B2 (en) | 1998-06-26 | 1998-06-26 | Color image output method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3636891B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003530652A (en) * | 2000-04-11 | 2003-10-14 | オーセ プリンティング システムズ ゲゼルシャフト ミットベシュレンクテル ハフツング | Method for creating and outputting at least one printed page |
| US7667711B2 (en) | 2005-06-07 | 2010-02-23 | Ricoh Company, Ltd. | Image processing system, a method thereof, and a recording medium thereof |
-
1998
- 1998-06-26 JP JP18016798A patent/JP3636891B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003530652A (en) * | 2000-04-11 | 2003-10-14 | オーセ プリンティング システムズ ゲゼルシャフト ミットベシュレンクテル ハフツング | Method for creating and outputting at least one printed page |
| US7667711B2 (en) | 2005-06-07 | 2010-02-23 | Ricoh Company, Ltd. | Image processing system, a method thereof, and a recording medium thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3636891B2 (en) | 2005-04-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0933723B1 (en) | Printing apparatus | |
| US7692813B2 (en) | Image processing apparatus and method, and storage medium | |
| US7505174B2 (en) | Image processing method, system and apparatus, and storage medium | |
| US6512595B1 (en) | Data processing apparatus, data processing method, and medium | |
| US6429950B1 (en) | Method and apparatus for applying object characterization pixel tags to image data in a digital imaging device | |
| JP3175498B2 (en) | Black area identification method for ink jet color printing | |
| JP4135195B2 (en) | Print processing system, print processing method, and computer-readable recording medium on which print processing control program is recorded | |
| US6388757B1 (en) | Printing apparatus, printing system, and a method for acquiring character resources of the printing system | |
| JP4428743B2 (en) | Image processing method and apparatus, printer, image processing system, and storage medium | |
| JP2001101431A (en) | Image processing apparatus and image processing method | |
| JPH1166327A (en) | Image processing method, image processing apparatus, and recording medium | |
| JP4109785B2 (en) | Image processing apparatus and method, and computer-readable memory | |
| JP4514168B2 (en) | Image processing system and image processing method | |
| JP3636891B2 (en) | Color image output method | |
| JP4356953B2 (en) | Image processing system, image processing apparatus, control method therefor, and storage medium | |
| US5867637A (en) | Document processing with flexible resolution and output style | |
| JP3690057B2 (en) | OUTPUT CONTROL SYSTEM, OUTPUT CONTROL METHOD, RECORDING MEDIUM RECORDING OUTPUT CONTROL PROGRAM, DATA GENERATION DEVICE USED FOR OUTPUT CONTROL SYSTEM, DATA CONVERSION DEVICE USED IN OUTPUT CONTROL SYSTEM, DATA CONVERSION CONTROL METHOD, AND RECORDING MEDIUM RECORDING DATA CONVERSION CONTROL PROGRAM | |
| JP4217332B2 (en) | Image processing apparatus and method, and computer-readable memory | |
| JP4306841B2 (en) | Image processing apparatus and method, and computer-readable memory | |
| JP2006244248A (en) | Image processing apparatus, image processing method, and program for executing image processing method | |
| JP2006140597A (en) | Print control apparatus, print control method, computer program, and storage medium | |
| JPH11191055A (en) | Printing system, data processing method of printing system, and storage medium storing computer readable program | |
| JP2003196648A (en) | Image processing method and apparatus, storage medium and program product | |
| JPH1051652A (en) | Information processing unit and method | |
| JP3584144B2 (en) | Image processing apparatus and method and storage medium storing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040928 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041125 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050104 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050106 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080114 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090114 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100114 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110114 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120114 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130114 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140114 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |