JPH1051652A - Information processing unit and method - Google Patents
Information processing unit and methodInfo
- Publication number
- JPH1051652A JPH1051652A JP8202059A JP20205996A JPH1051652A JP H1051652 A JPH1051652 A JP H1051652A JP 8202059 A JP8202059 A JP 8202059A JP 20205996 A JP20205996 A JP 20205996A JP H1051652 A JPH1051652 A JP H1051652A
- Authority
- JP
- Japan
- Prior art keywords
- area
- data
- information processing
- image
- image 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.)
- Withdrawn
Links
Landscapes
- Image Input (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
- Facsimile Image Signal Circuits (AREA)
- Dot-Matrix Printers And Others (AREA)
- Color, Gradation (AREA)
Abstract
(57)【要約】
【課題】 出力画像のうち描画イメージが存在する領域
を描画イメージ単位で効率よく識別し、識別した領域の
み画像処理を施すことにより拘束処理することを可能に
することを目的とする。
【解決手段】 描画コマンドによって示される入力画像
データを入力する入力手段と、前記描画コマンドに基づ
き描画領域を識別する識別手段と、前記識別手段によっ
て識別された描画領域に基づき、該描画領域に対応する
前記入力画像データに対して画像処理を行う画像処理手
段とを有し、前記識別手段は、前記描画コマンドで示さ
れる描画単位が線画で構成される図形である場合は、該
図形を複数の線分に分解し、該線分毎に描画領域を設定
することを特徴とする情報処理装置。
(57) [Summary] [PROBLEMS] To efficiently identify an area of an output image where a drawing image exists in drawing image units, and to perform a constraint process by performing image processing only on the identified area. And SOLUTION: Input means for inputting input image data indicated by a drawing command, identification means for identifying a drawing area based on the drawing command, and corresponding to the drawing area based on the drawing area identified by the identification means Image processing means for performing image processing on the input image data to be processed, and the identification means, when the drawing unit indicated by the drawing command is a figure constituted by a line drawing, converts the figure into a plurality of figures. An information processing apparatus, comprising: decomposing a line segment; and setting a drawing area for each line segment.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、描画コマンドで示
される入力画像データに対して処理を行う情報処理装置
及び方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus and method for processing input image data indicated by a drawing command.
【0002】[0002]
【従来の技術】従来、ホストコンピュータ側のプリンタ
ドライバに基づいて印刷情報を印刷装置に出力する印刷
システムにおいて、アプリケーションで作成したある出
力情報をプリンタに出力する場合、OS(オペレーティ
ングシステム)から送られてくる描画コマンドをプリン
タドライバに基づいてプリンタの出力制御コマンドにし
てプリンタに出力する。2. Description of the Related Art Conventionally, in a printing system that outputs print information to a printing apparatus based on a printer driver on a host computer side, when output information created by an application is output to a printer, it is sent from an OS (operating system). The incoming drawing command is output to the printer as a printer output control command based on the printer driver.
【0003】ページ記述言語を持つプリンタの場合、プ
リンタドライバによりOSの描画コマンドがプリンタの
持つページ記述言語に変換されプリンタに送られたの
ち、プリンタ上で画像イメージが作成され、プリンタエ
ンジンに送られ印刷される。プリンタに高度なページ記
述言語を持たないラスタ系プリンタの場合、プリンタド
ライバが、ホストコンピュータのメモリ上に画像イメー
ジを展開してそれをプリンタへ転送する。いずれの場合
もプリンタエンジンで印刷処理をする前に、メモリ上に
イメージデータを作成する行程が存在する。In the case of a printer having a page description language, a drawing command of the OS is converted into a page description language of the printer by a printer driver and sent to the printer. Then, an image is created on the printer and sent to a printer engine. Printed. In the case of a raster printer which does not have an advanced page description language, the printer driver develops an image on the memory of the host computer and transfers it to the printer. In any case, there is a process of creating image data on a memory before performing printing processing by the printer engine.
【0004】通常アプリケーションでイメージを作成す
る場合、色の情報はRGB各色の多階調やグレースケー
ルデータとして表現されている。一方、通常のプリンタ
は、ある座標においてインクやトナーを印刷媒体に出力
するかしないかを表すCMYK2値のデータとしてイメ
ージデータを管理した方が良い。よって、メモリ上にイ
メージデータを作成する工程においては、一旦、RGB
多階調イメージを作成し、それをプリンタインクの各色
を表すCMYK多値情報に変換し、次にインクを打つか
打たないかを表すCMYK2値のデータに変換する処理
が、多くの印刷システムで必要である。アプリケーショ
ンのRGB多階調データを最終的にCMYK2値データ
に変換する手法はいくつか考案されている。通常、これ
らの処理は、RGB多階調イメージデータの右上の座標
の点から1ピクセルごと水平方向に処理を行い、それを
画像の上から下へと順番に変換処理をして、画像全体に
ついて行う必要があった。In general, when an image is created by an application, color information is represented as multi-tone or gray scale data of each color of RGB. On the other hand, it is better for a normal printer to manage image data as CMYK two-value data indicating whether or not to output ink or toner on a print medium at a certain coordinate. Therefore, in the process of creating the image data on the memory, once the RGB data
In many printing systems, a multi-tone image is created, converted into CMYK multi-value information representing each color of printer ink, and then converted into CMYK binary data representing whether or not ink is to be applied. Is necessary. Several methods have been devised for finally converting RGB multi-tone data of an application into CMYK binary data. Normally, these processes are performed in the horizontal direction for each pixel from the coordinate point on the upper right of the RGB multi-tone image data, and are converted in order from the top to the bottom of the image, and the entire image is processed. Had to do.
【0005】[0005]
【発明が解決しようとする課題】このような画像処理は
イメージデータの全範囲について行う必要があった。よ
って、たとえ1ピクセルあたりの処理自体は単純でも、
画像全体ではかなりの繰り返し処理となり、そのため印
刷処理に時間がかかってしまう画像問題点があった。印
刷技術が進歩し印刷密度が高密度化していく最近では、
画像データはますます大きくなる傾向にあり、これら画
像処理の高速化が課題となっている。Such image processing needs to be performed for the entire range of image data. Therefore, even if the processing per pixel itself is simple,
There is an image problem that the printing process takes a long time because of the considerable repetitive processing for the entire image. In recent years, as printing technology has advanced and printing density has increased,
Image data tends to be larger and larger, and increasing the speed of image processing has been an issue.
【0006】本発明は、上記のような問題点を鑑み、出
力情報のうち描画イメージが存在する領域を描画イメー
ジ単位で効率良く識別し、識別した領域のみ画像処理を
施すことにより高速処理することを可能にすることを目
的とする。SUMMARY OF THE INVENTION In view of the above problems, the present invention efficiently performs high-speed processing by efficiently identifying an area where a drawing image exists in output information in units of a drawing image and performing image processing only on the identified area. The purpose is to enable.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するため
に、本願発明は、描画コマンドによって示される入力画
像データを入力する入力手段と、前記描画コマンドに基
づき描画領域を識別する識別手段と、前記識別手段によ
って識別された描画領域に基づき、該描画領域に対応す
る前記入力画像データに対して画像処理を行う画像処理
手段とを有し、前記識別手段は、前記描画コマンドで示
される描画単位が線画で構成される図形である場合は、
該図形を複数の線分に分解し、該線分毎に描画領域を設
定することを特徴とする。To achieve the above object, the present invention provides an input unit for inputting input image data indicated by a drawing command, an identification unit for identifying a drawing area based on the drawing command, Image processing means for performing image processing on the input image data corresponding to the drawing area based on the drawing area identified by the identification means, wherein the identification means comprises a drawing unit indicated by the drawing command. Is a graphic composed of line drawings,
The graphic is divided into a plurality of line segments, and a drawing area is set for each of the line segments.
【0008】[0008]
(実施形態1)以下に、本発明の実施形態について説明
する。(Embodiment 1) An embodiment of the present invention will be described below.
【0009】図1は本発明の一実施形態を示す印刷シス
テムの構成を表すブロック図である。図1において、1
30はホストコンピュータであり、Eather Ne
tやSCSIなどの通信バス7を介して印刷装置11
0、120が接続されている。なお、各印刷装置11
0、120は、プリンタコントローラ8、エンジン9
(例えばレーザプリンタエンジン、インクジェットエン
ジン)を備え、種々のサイズの記録媒体に画像、文字、
グラフィクス等を出力する。FIG. 1 is a block diagram showing the configuration of a printing system according to an embodiment of the present invention. In FIG. 1, 1
Reference numeral 30 denotes a host computer, which is Ether Ne.
printer 11 via a communication bus 7 such as t or SCSI.
0 and 120 are connected. Each printing device 11
0 and 120 are the printer controller 8 and the engine 9
(E.g., laser printer engine, ink jet engine), images, characters,
Outputs graphics and the like.
【0010】ホストコンピュータHCにおいては、1は
CPUで、ROM2に記憶されたOSによりシステム動
作が制御されており、図示しないFDドライブ、HDド
ライブ等から読み出した種々のアプリケーションプログ
ラムおよび各印刷装置110、120に対応したプリン
タドライバ(印刷制御プログラム)をCPU1が実行
し、アプリケーションプログラムに基づいて作成された
出力情報をプリンタドライバに基づいて印刷装置11
0、120に対応する出力コマンドにCPU1が変換
し、それぞれの印刷装置110、120に出力する。In the host computer HC, reference numeral 1 denotes a CPU, the system operation of which is controlled by an OS stored in a ROM 2. Various application programs read from an FD drive, an HD drive, and the like (not shown) and each printing device 110, The CPU 1 executes a printer driver (print control program) corresponding to the printer 120, and outputs output information created based on the application program to the printing apparatus 11 based on the printer driver.
The CPU 1 converts the output commands into output commands corresponding to 0 and 120, and outputs the output commands to the respective printing devices 110 and 120.
【0011】また、CPU1は図6、図7、図8、図9
のフローチャートに示すプリンタドライバに基づいて後
述する描画領域管理データの更新処理や、色変換処理、
2値化処理を実行する。The CPU 1 operates as shown in FIGS. 6, 7, 8, and 9.
Update processing of drawing area management data, color conversion processing,
Execute binarization processing.
【0012】3は、図3に示す出力情報を記憶するビッ
トマップメモリ、図4に示す描画領域管理データを記憶
するワークメモリ、前述した図示しないFDドライブや
HDドライブ等を介して読み出されたアプリケーション
プログラムやプリンタドライバを記憶するプログラムメ
モリ等に用いられるRAMである。4は図示しないCR
T等の表示装置へ出力情報を表示させるI/Fであり、
5は図示しないキーボードやポインティングデバイスか
らの入力情報を入力する入力部I/Fである。6は、上
述したCPU1、ROM2、RAM3、表示部I/F
4、入力I/Fが接続されるデータバスである。Reference numeral 3 denotes a bit map memory for storing output information shown in FIG. 3, a work memory for storing drawing area management data shown in FIG. 4, and data read out via the above-mentioned FD drive or HD drive (not shown). This is a RAM used as a program memory for storing application programs and printer drivers. 4 is CR not shown
I / F for displaying output information on a display device such as T,
Reference numeral 5 denotes an input unit I / F for inputting input information from a keyboard or a pointing device (not shown). Reference numeral 6 denotes the above-described CPU 1, ROM 2, RAM 3, display unit I / F
4. A data bus to which the input I / F is connected.
【0013】ホストコンピュータ130にネットワーク
などの所定の通信バス7を介して複数の印刷装置11
0、120が接続されて構成される印刷システムにおい
て、RAM3上に展開したRGB多階調イメージデータ
をインク、トナーなどの色材を用いて印刷しやすいよう
に最終的にCMYKの2値イメージデータに変換処理す
るシステムにおいて、イメージ描画が行われた領域を描
画コマンド単位で以下に説明する矩形で囲まれる領域で
管理する。A plurality of printing apparatuses 11 are connected to a host computer 130 via a predetermined communication bus 7 such as a network.
In a printing system configured by connecting 0, 120, RGB multi-tone image data developed on the RAM 3 is finally converted to CMYK binary image data so that it can be easily printed using color materials such as ink and toner. In a system that performs conversion processing, an area in which an image is drawn is managed in a unit enclosed by a rectangle described below for each drawing command.
【0014】図2はホストコンピュータのアプリケーシ
ョンプログラムに基づいてCPU1が作成した描画図形
に対し、その描画領域を矩形で管理する方法を示す。こ
の矩形は、その上辺、下辺が水平で、左辺と右辺が垂直
になるものとする。FIG. 2 shows a method of managing a drawing area of a drawing figure created by the CPU 1 based on an application program of a host computer by using a rectangle. In this rectangle, the upper side and the lower side are horizontal, and the left side and the right side are vertical.
【0015】描画図形が例えば10のような線分の場合
は、その始点と終点の座標から求められる矩形11によ
りその描画領域を表す。If the drawing figure is a line segment such as 10, for example, the drawing area is represented by a rectangle 11 obtained from the coordinates of the start point and the end point.
【0016】描画図形がいくつかの線分で構成されるよ
うな、矩形、多角形の場合で図形のなかを塗りつぶされ
た描画図形、例えば23、24に関しては、各線分の始
点と終点の座標の中から最も上と下の座標値、最も右と
左の座標値を求め、それらの座標から描画図形に隣接す
る矩形で描画領域を表す。矩形23では23自身、多角
形24では25でその描画領域を表す。In the case of a rectangular or polygonal drawing figure, such as 23 or 24, in which the drawing figure is composed of several line segments, for example, 23 and 24, the coordinates of the start point and end point of each line segment The top and bottom coordinate values and the rightmost and left coordinate values are obtained from, and the drawing area is represented by a rectangle adjacent to the drawing figure based on those coordinates. In the rectangle 23, the drawing area is represented by 23, and in the polygon 24, the drawing area is represented by 25.
【0017】描画図形がいくつかの線分で構成されるよ
うな、矩形、多角形の場合で図形のなかを塗りつぶさな
い描画図形、例えば12、17に関しては、図形を線分
に分解し、各線分の始点と終点の座標から求められる矩
形の和の領域で表す。このように線分に分解して考える
のは、単純にそれに隣接する矩形で管理すると、描画が
発生したと管理する領域に対して、実際に描画された部
分が非常に小さいので効率が悪いからである。例えば1
0のような矩形では、線分13、14、15、16を描
画領域とし、17のような多角形では、矩形18、1
9、20、21、22の和の領域で描画が行われた部分
を表し、それぞれの描画領域を図5の描画領域管理デー
タに登録する。With respect to drawing figures, such as 12 and 17, which do not fill the inside of a figure in the case of a rectangle or polygon in which the drawing figure is composed of several line segments, the figure is decomposed into line segments, and each line is divided. It is represented by the area of the sum of rectangles obtained from the coordinates of the start point and the end point of the minute. The reason for decomposing into line segments in this way is that simply managing them with rectangles adjacent to them is inefficient because the area actually drawn is very small compared to the area managed to be drawn. It is. For example, 1
In a rectangle such as 0, the line segments 13, 14, 15, and 16 are used as a drawing area.
The drawing area is represented by the sum area of 9, 20, 21, and 22, and each drawing area is registered in the drawing area management data of FIG.
【0018】描画図形が線分に分解できないような、楕
円、角の丸い矩形、ビットマップ、円弧、例えば26、
28、30、32のようなときは、それに隣接する矩形
で管理する。楕円26は27で、角の丸い矩形28は2
9で、ビットマップ30は31で、円弧32は33で表
す。このような図形は、通常、OSがそれに隣接する矩
形でその描画図形の座標値を指定する場合が多く、その
座標を求める手間が省ける。An ellipse, a rectangle with rounded corners, a bitmap, an arc, for example, 26, so that the drawing figure cannot be decomposed into line segments.
In the case of 28, 30, 32, etc., it is managed by a rectangle adjacent thereto. The ellipse 26 is 27 and the rounded rectangle 28 is 2
9, the bitmap 30 is represented by 31, and the arc 32 is represented by 33. In such a graphic, the OS usually specifies the coordinate value of the drawing graphic in a rectangle adjacent to the graphic in many cases, so that it is not necessary to find the coordinates.
【0019】34のようなテキストの場合は、テキスト
において指定されるフォント情報より、フォントの高さ
と個別の文字の横方向の長さを取得できるので、これら
からテキストの描画が行われた矩形領域35を求める。
ページ記述言語を持たないラスター系のプリンタでは、
描画イメージの作成、描画領域の管理とその後のRGB
多階調データをCMYK2値データへ変換する処理はホ
ストコンピュータHC内のプリンタドライバが行う。以
下、ホストコンピュータHC上のプリンタドライバで2
値のイメージデータを作成処理しプリンタに転送するラ
スタ系のプリンタシステムについて説明する。In the case of text such as 34, the height of the font and the length of each character in the horizontal direction can be obtained from the font information specified in the text. Find 35.
For raster printers without a page description language,
Creation of drawing image, management of drawing area and subsequent RGB
The process of converting multi-tone data into CMYK binary data is performed by a printer driver in the host computer HC. Hereinafter, the printer driver on the host computer HC
A raster-based printer system that creates value image data and transfers it to a printer will be described.
【0020】本実施形態では、前述する方法で描画コマ
ンド単位に描画が行われた矩形領域を求め、RGB多階
調イメージデータを最終的にCMYKの2値イメージデ
ータに変換する処理を対象とする水平方向のスキャンラ
イン上において、それらの描画領域を表す矩形が存在す
る幾つかの線分の間を最終的に実際に描画が行われた領
域であると判別する。The present embodiment is directed to a process of obtaining a rectangular area in which drawing is performed in units of a drawing command by the above-described method, and finally converting RGB multi-tone image data into CMYK binary image data. On a horizontal scan line, a portion between some line segments where rectangles representing these drawing regions exist is finally determined to be a region where drawing is actually performed.
【0021】図3はある水平ライン上における描画領域
の判別について説明するものである。図3で56で囲ま
れた領域はRAM3内に作成する印刷すべき1ページ分
のイメージ対象全体(出力情報)を表す。ここで、例え
ば水平ライン36においては、線分51の描画領域52
の左辺上の点39と右辺上の点40の間の部分と、テキ
スト53の描画領域54の左辺上の点41と右辺上の点
42の間の領域が描画が行われた部分である。水平ライ
ン37においては、線分51の描画領域52とビットマ
ップ55の描画領域56の和の領域となるので、52の
左辺上の点43と56の右辺上の点44の間の部分とな
る。水平ライン38においては、楕円57の描画領域5
8の左辺上の点45と右辺上の点46の間の部分と、多
角形59の描画領域60の左辺上の点47と右辺上の点
48の間の部分と、塗りつぶしのない矩形61の左辺上
の点49と右辺上の点50となる。FIG. 3 explains the determination of a drawing area on a certain horizontal line. In FIG. 3, an area surrounded by 56 represents the entire image object (output information) for one page to be created in the RAM 3 to be printed. Here, for example, in the horizontal line 36, the drawing area 52 of the line segment 51
The area between the point 39 on the left side and the point 40 on the right side and the area between the point 41 on the left side and the point 42 on the right side of the drawing area 54 of the text 53 are the drawn parts. Since the horizontal line 37 is an area of the sum of the drawing area 52 of the line segment 51 and the drawing area 56 of the bitmap 55, it is a part between the point 43 on the left side of 52 and the point 44 on the right side of 56. . In the horizontal line 38, the drawing area 5 of the ellipse 57
8, a portion between a point 46 on the left side and a point 46 on the right side, a portion between a point 47 on the left side of the drawing area 60 of the polygon 59 and a point 48 on the right side, and a rectangle 61 without solid color. A point 49 on the left side and a point 50 on the right side are obtained.
【0022】ページ記述言語を持たないラスター系のプ
リンタではホストコンピュータ上のプリンタドライバに
基づいてCPU1がイメージ展開処理を行うが、通常1
ページ分すべてのイメージを展開するだけの十分なメモ
リが搭載されていないので、横に細長く分割したバンデ
ィングと呼ばれる単位ごとにイメージをメモリ上に作成
する。アプリケーションに基づいてCPU1が作成した
描画コマンドをプリンタドライバに基づいてCPU1が
解析してバンディング上で描画が行われた矩形領域の座
標を計算し、バンディングのある水平ラインごとの描画
された範囲をCPU1が順次登録していく。In a raster printer having no page description language, the CPU 1 performs image expansion processing based on a printer driver on a host computer.
Since there is not enough memory to expand all the images for the page, an image is created on the memory for each unit called banding, which is divided horizontally and elongated. The CPU 1 analyzes the drawing command created by the CPU 1 based on the application based on the printer driver, calculates the coordinates of the rectangular area where the drawing is performed on the banding, and determines the drawing range of each horizontal line with banding. Are sequentially registered.
【0023】図4は、1水平ライン上の線分領域で表さ
れるある一つの描画部分を表すデータ構造を表し、図5
は図4のデータを用いて、プリンタドライバに基づいて
CPU1がバンディングメモリの1ライン毎に描画領域
を管理できるデータ構造を示す。FIG. 4 shows a data structure representing a certain drawing portion represented by a line segment area on one horizontal line.
4 shows a data structure by which the CPU 1 can manage the drawing area for each line of the banding memory based on the printer driver using the data of FIG.
【0024】図4のデータは3つの要素データで構成さ
れ、64のleftは描画部分の左の座標を表し、65
のrightは描画部分の右の座標を表す。leftと
rightではさまれた部分が描画が行われた部分を表
す。nextは同じ水平ライン上で次に右側に存在する
描画部分を表す図4と同じ構造のデータがあるRAM3
上のアドレスである。The data shown in FIG. 4 is composed of three element data. The left of 64 indicates the left coordinate of the drawing part,
Represents the right coordinate of the drawing part. The portion between left and right represents the portion where the drawing was performed. next is a RAM 3 having data having the same structure as that of FIG. 4 and representing a drawing portion existing on the next right side on the same horizontal line.
The above address.
【0025】図5の描画領域管理データは、このような
図4のデータのリストデータで構成される。図5でro
ot(k)は、k番目の水平ライン上で一番左にある描
画部分を表す図4で表されるデータへのポンイタであ
る。もし、その水平ライン上で描画が行われていないと
きあるいは初期状態のときは、root(k)はNUL
Lポインタ(アドレス0を指すポインタ)とする。ro
ot(k)が指すデータで表される描画部分の他に、水
平ライン上に描画が行われた部分があれば、root
(k)が指すデータの要素データnextは、次の最も
左側の描画部分を表すデータが存在するアドレスを指
す。このようにして、バンディングメモリ上のk番目の
水平ラインの描画部分をCPU1は、root(k)か
らデータを順にたぐっていくことにより知ることができ
る。The drawing area management data of FIG. 5 is composed of such list data of the data of FIG. In FIG. 5, ro
ot (k) is a pointer to the data shown in FIG. 4 representing the leftmost drawing portion on the k-th horizontal line. If drawing is not performed on the horizontal line or in the initial state, root (k) is NULL.
Let it be an L pointer (pointer pointing to address 0). ro
If there is a part drawn on a horizontal line in addition to the drawing part represented by the data pointed to by ot (k), root
The element data next of the data indicated by (k) indicates the address where the data representing the next leftmost drawing portion exists. In this way, the CPU 1 can know the drawing portion of the k-th horizontal line on the banding memory by tracing data in order from root (k).
【0026】描画イメージがある部分を水平ラインごと
に管理するのは、通常、色空間の変換や多階調イメージ
の2値化処理は、バンディングイメージの左上の座標の
点から水平方向右に順次適用し、これを上から下へ水平
ラインごとに繰り返し処理をするので、そのときに利用
し易いからである。The part where the drawing image is present is managed for each horizontal line. Normally, the conversion of the color space and the binarization processing of the multi-tone image are performed sequentially from the upper left coordinate point of the banding image to the right in the horizontal direction. This is because it is applied and the processing is repeated for each horizontal line from top to bottom, so that it is easy to use at that time.
【0027】次に図5の描画管理データの更新方法につ
いて述べる。Next, a method of updating the drawing management data shown in FIG. 5 will be described.
【0028】描画管理データの更新は図6のフローチャ
ートに示すプリンタドライバに基づいてCPU1が行
う。ここで、描画イメージの座標は図3の座標系60の
ように右方向、下方向が正の座標系であるとする。The CPU 1 updates the drawing management data based on the printer driver shown in the flowchart of FIG. Here, it is assumed that the coordinates of the drawn image are a right coordinate system and a downward coordinate system are positive as in a coordinate system 60 of FIG.
【0029】アプリケーションプログラムに基づいて描
画コマンドが作成された後、プリンタドライバに基づい
てCPI1がそのコマンドの描画領域を表す矩形を求め
る。ステップS1によりプリンタドライバに基づいてC
PU1は、矩形の上辺の座標値を変数kにストアする。
次にステップS2で、描画領域を表す矩形の左辺の座
標、右辺の座標を変数newLeft、newRigh
tに代入する。ステップS3で、後述する図7、図8の
フローチャートに基づいてCPU1が図5の描画領域管
理データを更新する。上記の処理は、描画領域管理デー
タのうち、あるコマンドの描画領域上の水平ラインにつ
いて行う。すなわち、ステップS4でkをインクリメン
トし、ステップS5で描画領域の下辺の座標と等しい
か、小さいと判断されるときはもう一度処理を繰り返
し、kが描画領域の下辺の座標値より大きい時は処理を
終了する。After the drawing command is created based on the application program, the CPI 1 obtains a rectangle representing the drawing area of the command based on the printer driver. In step S1, C is set based on the printer driver.
PU1 stores the coordinate value of the upper side of the rectangle in a variable k.
Next, in step S2, the coordinates of the left side and the right side of the rectangle representing the drawing area are set as variables newLeft and newRight.
Substitute t. In step S3, the CPU 1 updates the drawing area management data in FIG. 5 based on the flowcharts in FIGS. 7 and 8 described below. The above processing is performed on a horizontal line in a drawing area of a certain command in the drawing area management data. That is, k is incremented in step S4, and if it is determined in step S5 that it is equal to or smaller than the coordinates of the lower side of the drawing area, the processing is repeated again. finish.
【0030】図7、図8のフローチャートは、図6のス
テップS3の詳細である。ステップS6で、新たに登録
するある描画コマンドの描画領域を表す矩形の左辺の座
標と右辺の座標を、変数newLeft2とnewRi
ght2に代入する。ステップS7で、変数prevN
extにroot(k)のアドレスを代入する。ステッ
プS8でprevNextの参照値がNULL(ポイン
タが指す描画部分を表すデータが存在しないとき)のと
きは、図8のステップ87、88に進み、新規に描画部
分を表すデータを追加する。FIGS. 7 and 8 show the details of step S3 in FIG. In step S6, the coordinates of the left side and the right side of the rectangle representing the drawing area of a certain drawing command to be newly registered are set in variables newLeft2 and newRi.
ght2. In step S7, the variable prevN
The address of root (k) is substituted for ext. If the reference value of prevNext is NULL (when there is no data representing the drawing part pointed by the pointer) in step S8, the process proceeds to steps 87 and 88 in FIG. 8, and data representing a new drawing part is newly added.
【0031】ステップS8で、ポインタが指す描画部分
を表すデータが存在するときはそのデータを取得する。
prevNextが指すデータをカレントデータと呼ぶ
こととし、その要素left、right、nextを
以降curLeft、curRight、curNex
tと呼ぶ。ステップS10でcurLeft−1と新規
に登録しようとする描画領域の左の座標値newLef
t2を比較する。In step S8, if there is data representing the drawing portion pointed by the pointer, the data is obtained.
The data indicated by prevNext is called current data, and its elements left, right, and next are hereinafter referred to as curLeft, curRight, and curNex.
Called t. In step S10, curLeft-1 and the left coordinate value newLef of the drawing area to be newly registered
Compare t2.
【0032】newLeft2の方が小さいときはステ
ップS11に進み、新規に登録しようとする描画領域の
左の座標値newRight2とcurLeft−1を
比較する。newRight2の方が小さいときは新規
に登録しようとする描画領域はすでに存在する描画領域
と重なっておらず左側に位置することになり、root
(k)がその領域を指すようにステップS12、S13
でリストデータを作成する。If newLeft2 is smaller, the process proceeds to step S11, and the left coordinate value newRight2 of the drawing area to be newly registered is compared with curLeft-1. When newRight2 is smaller, the drawing area to be newly registered does not overlap with the existing drawing area and is located on the left side.
Steps S12 and S13 so that (k) indicates the area.
Create list data with.
【0033】ステップS11で、newRight2の
方が小さくないと判断されるときは、カレントデータの
領域が新たに登録する描画領域と連続しているか、また
は両者が重なっているときである。ステップS18でカ
レントデータの領域より右に描画部分を表すデータが存
在するか調べる。存在しないときはステップS21に進
む。存在するときは、ステップS19でその描画部分を
表すデータの左座標を変数nextLeftに代入し、
ステップS20でそれから1を引いたものとnewRi
ght2の値を比較する。If it is determined in step S11 that newRight2 is not smaller, it means that the current data area is continuous with the newly registered drawing area, or that both areas overlap. In step S18, it is checked whether data representing a drawing portion exists to the right of the current data area. If not, the process proceeds to step S21. If there is, in step S19, the left coordinate of the data representing the drawing portion is substituted for the variable nextLeft,
In step S20, subtract 1 from it and newRi
Compare the value of ght2.
【0034】newRight2の方が小さいときは、
新たに登録する描画領域はカレントデータの右隣の領域
と重なってもいないし、連続もしていないときである。
このときはステップS21、S22、S23でカレント
データの描画部分と新規に登録する描画領域の和をもと
めその領域でカレントデータを更新する。ステップS2
0でnewRight2が等しいか大きいときは、新た
に登録する描画領域はカレントデータの右隣の領域と重
なっているか、連続しているときである。このとき、カ
レントデータの領域は新たに登録する描画領域に含まれ
るため、後のステップS26により削除する。また、同
時にステップ24、S25により、右隣の描画部分を表
すデータを次に注目するカレントデータとするため、p
revNextの参照値を右隣の描画部分を表すデータ
のアドレス値で更新する。次にステップS18にもど
り、上で述べた考え方で、新たに注目するカレントデー
タに対して同様の処理を行う。When newRight2 is smaller,
This is when the newly registered drawing area does not overlap with the area to the right of the current data and does not continue.
In this case, in steps S21, S22 and S23, the sum of the drawing part of the current data and the drawing area to be newly registered is determined, and the current data is updated in that area. Step S2
When newRight2 is equal to or greater than 0, the newly registered drawing area is overlapped or continuous with the area to the right of the current data. At this time, since the area of the current data is included in the newly registered drawing area, it is deleted in step S26. At the same time, in steps 24 and S25, the data representing the drawing portion on the right side is set as the current data of interest next.
The reference value of revNext is updated with the address value of the data representing the drawing portion on the right. Next, the process returns to step S18, and the same processing is performed on the current data to be newly focused, based on the above-described concept.
【0035】ステップS10でnewLeft2がcu
rLeft−1より大きいか等しいときは、ステップS
14に進む。ステップS14で、newLeft2とc
urRight+1を比較する。newLeft2の方
が小さいか等しいときは、新たに登録する描画領域はカ
レントの領域と連続するか重なっていることになり、ス
テップS16の処理へ進む。ステップS16でnewL
eft2とcurLeftを比較し、curLeftの
方が大きいときはステップS18以降の処理で矛盾無く
動作するようにnewLeftの値をcurLeftの
値としておく。In step S10, newLeft2 is cu.
If greater than or equal to rLeft-1, step S
Proceed to 14. In step S14, newLeft2 and c
Compare urRight + 1. If newLeft2 is smaller or equal, the newly registered drawing area is continuous or overlaps with the current area, and the process proceeds to step S16. NewL in step S16
ef2 is compared with curLeft, and when curLeft is larger, the value of newLeft is set as the value of curLeft so that the operation after step S18 can be performed without contradiction.
【0036】ステップS14でnewLeft2の方が
大きいときは、新たに追加する描画領域はカレントデー
タが表す描画部分にと接しておらずその右側に位置する
ことになりS15に進む。ステップS15で、prev
Nextをカレントデータの一つ右側の描画部分をあら
わすデータのアドレスとして、次に着目するデータを変
更する。カレントデータの右隣に描画部分を表すデータ
が存在しないときは、新たに追加する画像領域は登録し
てあるデータよりも右側に位置することになり、ステッ
プS8の処理により、ステップS27、S28に進み、
描画管理データとして新規に登録される。If newLeft2 is larger in step S14, the drawing area to be newly added is not in contact with the drawing portion represented by the current data and is located on the right side of the drawing area, and the flow advances to step S15. In step S15, prev
Next is set as the address of the data representing the drawing portion on the right side of the current data, and the next data of interest is changed. If there is no data representing the drawing portion on the right of the current data, the image area to be newly added is located on the right side of the registered data, and the processing in step S8 causes steps S27 and S28 to be executed. Proceed,
It is newly registered as drawing management data.
【0037】図6、図7、図8のフローチャートによる
図5の描画領域管理データの更新はアプリケーションに
基づきCPU1がコマンドを実行するたびにプリンタド
ライバに基づきCPU1が行う。The update of the drawing area management data of FIG. 5 according to the flowcharts of FIGS. 6, 7 and 8 is performed by the CPU 1 based on the printer driver every time the CPU 1 executes a command based on an application.
【0038】そして、アプリケーションが生成するすべ
ての描画コマンドに対して、図6、図7、図8のフロー
チャートの処理を行えば、あるk番目の水平ラインにお
いては、root(k)よりリスト構造データをたぐっ
ていくことにより、そのライン上に存在する描画領域を
左から順番に線分単位で管理できるデータができ上がる
ことになる。こうして、図5の描画領域管理データの情
報を更新しながら、アプリケーションに基づいてCPU
1が作成する描画コマンドをプリンタドライバに基づい
てCPU1が解析し、RAM3のバンディングメモリ上
に多階調イメージを展開する。When the processing of the flowcharts in FIGS. 6, 7 and 8 is performed for all drawing commands generated by the application, the list structure data is obtained from root (k) at a certain k-th horizontal line. The data which can manage the drawing areas existing on the line in order from the left in units of line segments is obtained. In this way, while updating the information of the drawing area management data of FIG.
The CPU 1 analyzes the drawing command created by the CPU 1 based on a printer driver, and develops a multi-tone image on a banding memory of the RAM 3.
【0039】ホストコンピュータ130のOSは、通
常、イメージの色をRGB(Red、Green、Bl
ue)の輝度を表す3コンポーネントの階調データで表
現することが多く、このときバンディングメモリ上に作
成されるイメージデータはRGB階調データである。こ
れに対し、印刷装置は、各色材の濃度を表すデータでイ
メージを受信し印刷する。カラープリンタの場合は、C
MYK(シアン、マゼンタ、イエロー、黒)の入力を求
められることが多い。よって、プリンタドライバは上記
で作成されたRGB多階調イメージデータをまずCMY
Kの多階調イメージデータに変換する。変換の方法は、
補数変換、マスキング処理などの種々のプロセスが考え
られる。The OS of the host computer 130 usually converts the colors of the image into RGB (Red, Green, BL).
ue) is often represented by three-component gradation data representing the luminance, and the image data created on the banding memory at this time is RGB gradation data. On the other hand, the printing apparatus receives and prints an image with data representing the density of each color material. C for a color printer
It is often required to input MYK (cyan, magenta, yellow, black). Therefore, the printer driver first converts the RGB multi-tone image data created above into CMY
It is converted into K multi-tone image data. The conversion method is
Various processes such as complement conversion and masking are conceivable.
【0040】そして、プリンタドライバはCMYK多階
調イメージデータを、印刷装置が、色材をある座標で出
力するかしないかを表す2値のイメージデータに変換し
プリンタにコマンドとして転送する。これは、インクや
トナーなどの色材を用いて印刷を行う場合、例えば、階
調により出力量を制御するなどしてそれ自体で階調を表
現することは困難なので、通常、ある単位面積当たりの
色材の出力点の平均面積により濃度を表すようにする方
法がとられるからである。多階調イメージデータを2値
階調イメージデータに変換する方法は、ディザ法、誤差
拡散法などが考案されている。Then, the printer driver converts the CMYK multi-gradation image data into binary image data indicating whether or not the printing device outputs color materials at certain coordinates, and transfers the binary image data to the printer as a command. This is because, when printing is performed using a color material such as ink or toner, it is difficult to express the gradation by itself, for example, by controlling the output amount by the gradation. This is because a method is used in which the density is represented by the average area of the output points of the color materials. As a method of converting multi-tone image data into binary tone image data, a dither method, an error diffusion method, and the like have been devised.
【0041】この様に、RGBの各コンポーネントデー
タ形式で、RAM3上のバンディングメモリに作成され
たイメージデータはプリンタへコマンドとして転送され
るまでに幾つかのプロセスを通らなければならない。こ
れらのプロセス個々の処理はたとえ非常に単純であった
としても、イメージデータの各ピクセルごと、各色のコ
ンポーネントごとに処理を適用する必要が生じ、それを
イメージ全体に対して行うためかなりの繰り返し処理と
なって時間を要する。また、近年、プリンタ等の出力デ
バイスは高解像度化され、1ページあたりのピクセル数
が増大する傾向にある。As described above, the image data created in the banding memory on the RAM 3 in each of the RGB component data formats must go through several processes before being transferred to the printer as a command. Even if the processing of each of these processes is very simple, it will be necessary to apply the processing to each pixel of the image data and each component of each color, and it will be quite repetitive to perform it on the entire image It takes time. In recent years, output devices such as printers have a higher resolution, and the number of pixels per page tends to increase.
【0042】そこで、RGB多階調データをCMYK多
階調データに変換する処理や、CMYK多階調データを
CMYK2値に変換する処理をバンディングメモリ上で
実際にイメージが展開された部分のみとすることによ
り、印刷処理の高速化をはかる。すなわち、図5の描画
領域管理データを参照して水平ライン毎に描画が発生し
た部分を求め、図9のようなフローチャートを用いて、
その部分に対してRGB多階調データをCMYK多階調
データに変換する処理や、CMYK多階調データをCM
YK2値に変換する処理を適用する。Therefore, the process of converting the RGB multi-tone data to CMYK multi-tone data and the process of converting the CMYK multi-tone data to CMYK binary values are limited to the portion where the image is actually developed on the banding memory. Thus, the speed of the printing process is increased. That is, the portion where the drawing has occurred for each horizontal line is obtained with reference to the drawing region management data of FIG. 5, and the flowchart shown in FIG.
A process of converting RGB multi-tone data to CMYK multi-tone data for that portion,
A process of converting into a YK2 value is applied.
【0043】以下、図9のフローチャートについて説明
する。Hereinafter, the flowchart of FIG. 9 will be described.
【0044】ステップS29でインデックスkを初期化
する。インディックスk処理を行うバンディグメモリ縦
方向の座標値を表す。ステップS30で変数lastR
ightの初期化を行う。この変数は水平ライン上で最
後にデータ処理を行った描画部分の右座標を表す。ステ
ップS31で、処理を行おうとする水平ラインの描画管
理データを指すポインタを変数prevNextに代入
する。prevNextは描画部分を表す図4のデータ
を指すポインタとして使用される。ステップS32でp
revNextがNULLかどうか調べる。NULLの
ときは、lastRightの右側の部分に描画が行わ
れた部分が存在しないことを意味するので、その部分の
多階調RGBデータは白のイメージデータが存在するは
ずである。今、プリンタに送るコマンドで1のときイン
クを打ち、0のときインクを打たないものとすると、R
GB多階調データで白を表す部分を最終的にCMYK2
値のデータに変換するとすべて0になる。よって、描画
が行われていない部分は2値化処理をわざわざ適用する
必要はなく、ステップS39ですべて0のデータとして
プリンタコマンドを生成する。In step S29, the index k is initialized. Represents the vertical coordinate value of the band memory where the index k processing is performed. In step S30, the variable lastR
The initialization of "light" is performed. This variable indicates the right coordinate of the rendering part on which the data processing was last performed on the horizontal line. In step S31, a pointer indicating drawing management data of a horizontal line to be processed is assigned to a variable prevNext. prevNext is used as a pointer to the data of FIG. 4 representing the drawing part. In step S32, p
Check whether revNext is NULL. When NULL, it means that there is no drawn part in the right part of lastRight, so that the multi-tone RGB data of that part should have white image data. Assuming that the command to be sent to the printer is to eject ink when it is 1 and not to eject ink when it is 0, R
The part representing white in the GB multi-tone data is finally converted to CMYK2
When converted to value data, they all become 0. Therefore, it is not necessary to apply the binarization process to the portion where the drawing is not performed, and the printer command is generated as data of all 0 in step S39.
【0045】ステップS32でprevNextがNU
LLでないときは、prevNextが指す描画部分を
表すデータをステップS33で取得する。lastRi
ghtと描画部分の左座標の間の部分は描画が行われて
いないので、ステップS32でこの部分を白のデータと
してCMYK2値データを作成する。描画部分の左座標
と右座標での間の線分領域は、描画が行われているの
で、ステップS35でRGB多階調データからCMYK
多階調データに変換し、ステップS36でCMYK2値
データに変換する。次の繰り返し処理のため、ステップ
S37でlastRightの値を更新し、ステップS
38でprevNextの値を更新する。このようにし
て、ある水平ラインにおいて描画部分が表すデータがな
くなるまで、すなわちステップS32でprevNex
tNULLと判断されるまで、ステップS33からステ
ップS38の繰り返し処理を行う。In step S32, prevNext is set to NU.
If it is not LL, data representing the drawing part pointed to by prevNext is obtained in step S33. lastRi
Since the drawing is not performed on the portion between the ght and the left coordinate of the drawing portion, CMYK binary data is created in step S32 using this portion as white data. In the line segment area between the left coordinate and the right coordinate of the drawing portion, since the drawing is being performed, in step S35, the RGB multi-tone data is converted to CMYK data.
The data is converted into multi-tone data, and is converted into CMYK binary data in step S36. For the next repetition processing, the value of lastRight is updated in step S37, and
At 38, the value of prevNext is updated. In this way, until there is no more data representing the drawing portion in a certain horizontal line, that is, in step S32, prevNex
Until it is determined that tNULL, the processing from step S33 to step S38 is repeated.
【0046】ステップS40で、プリンタへ作成した2
値化データを転送する。In step S40, the 2
Transfer valued data.
【0047】ステップS41ではkをインクリメントす
る。ステップS42で、バンディングイメージ全体の処
理が終了したかどうかを判別し、終了していない場合は
つぎの水平ラインに対するroot(k)を参照し、描
画部分を表すデータを取得しながら同様の処理を続け
る。In step S41, k is incremented. In step S42, it is determined whether or not the processing of the entire banding image has been completed. If the processing has not been completed, similar processing is continued while obtaining data representing a drawing portion by referring to root (k) for the next horizontal line. .
【0048】ページ言語を持つプリンタにより印刷シス
テムでは、実際の画像イメージの作成は、プリンタ側で
行われるため、上のホストコンピュータ上のプリンタド
ライバで行われた描画領域判定、2値化処理はプリンタ
内部の同様の働きをもつプログラムに基づき実行され
る。In a printing system using a printer having a page language, since the actual creation of an image is performed on the printer side, the rendering area determination and binarization processing performed by the printer driver on the host computer are performed by the printer. It is executed based on a program with the same function inside.
【0049】以上のように、本実施形態によれば、ホス
トコンピュータにネットワークなどの所定の通信手段を
介して複数の印刷装置が接続されて構成する印刷システ
ムで、印刷情報、画像イメージを管理する記憶手段を持
ち、その記憶手段上で作成した多階調のイメージデータ
をインクやトナーで印刷しやすいように2値化処理をし
たのち出力する情報処理装置は、印刷情報を管理する記
憶手段におけるイメージデータ上で、実際に描画が行わ
れた領域を図5の描画管理データで管理する。そして描
画管理データを参照しながら、イメージデータの水平方
向のスキャナライン上で描画が行われた部分のみに、R
GB多階調イメージデータCMYK2値データへの色変
換処理(補数変換、マスキング処理、2値化処理等)を
実行することにより印刷処理全体の高速化をはかること
ができる。As described above, according to the present embodiment, a print system in which a plurality of printing apparatuses are connected to a host computer via a predetermined communication means such as a network manages print information and image images. An information processing apparatus having storage means, which outputs multi-gradation image data created on the storage means after performing binarization processing so as to be easily printed with ink or toner, and outputs the data. On the image data, the area where the drawing is actually performed is managed by the drawing management data of FIG. Then, while referring to the drawing management data, only the portion where the drawing is performed on the horizontal scanner line of the image data is performed.
By executing color conversion processing (complement conversion, masking processing, binarization processing, etc.) to the GB multi-tone image data CMYK binary data, it is possible to speed up the entire printing processing.
【0050】即ち、多階調の出力情報のうち描画イメー
ジが存在する領域を識別し、なお、上述の実施形態では
CMYK多階調データをCMYK2値に変換する処理を
行っているが、これはCMYK3値やCMYK4値等に
変換しても構わない。That is, in the multi-gradation output information, the region where the drawing image exists is identified, and in the above-described embodiment, the process of converting the CMYK multi-gradation data into the CMYK binary value is performed. It may be converted to a CMYK3 value or a CMYK4 value.
【0051】即ち、階調数を減らすH値化処理なら構わ
ない。That is, any H-value processing for reducing the number of gradations may be used.
【0052】識別された領域に色空間変換処理や2値化
処理を施すことにより、効率的な画像処理を達成するこ
とができる。By performing color space conversion processing and binarization processing on the identified areas, efficient image processing can be achieved.
【0053】また、多階調出力情報のうち、描画イメー
ジが存在する領域を識別し、識別された領域に色空間変
換処理や2値化処理をホストコンピュータ等の情報処理
装置で実行した後、プリンタ等の出力装置で印刷出力す
ることにより印刷処理の高速化を達成することができ
る。In the multi-tone output information, an area where a drawing image exists is identified, and a color space conversion process and a binarization process are performed on the identified area by an information processing device such as a host computer. By printing and outputting with an output device such as a printer, it is possible to achieve high-speed printing processing.
【0054】(その他の実施形態)図10は、ホストコ
ンピュータと接続できるインターフェースを持つファク
シミリにおける本発明の実施例を示す。131はホスト
コンピュータであり、シリアルケーブル、イーサネット
等の通信手段74を介してFAX1と接続されている。
ホストコンピュータ131において、68はCPUで、
ROM69やRAM70に記憶されたOSによりシステ
ムの動作が制御されており、図示しないFDドライブ、
HDドライブ等から読み出した種々のアプリケーション
プログラムにより作成された出力情報をホストコンピュ
ータ上のFAXドライバがFAX1に対応する出力コマ
ンドに変換し通信手段74を介して出力する。(Other Embodiments) FIG. 10 shows an embodiment of the present invention in a facsimile having an interface connectable to a host computer. Reference numeral 131 denotes a host computer, which is connected to the FAX 1 via communication means 74 such as a serial cable or Ethernet.
In the host computer 131, 68 is a CPU,
The operation of the system is controlled by an OS stored in the ROM 69 or the RAM 70, and an FD drive (not shown)
A FAX driver on a host computer converts output information created by various application programs read from an HD drive or the like into an output command corresponding to FAX1, and outputs the output command via a communication unit 74.
【0055】140、RS−422、イーサネットなど
のインターフェースを持ち、ホストコンピュータHC2
からのコマンドにより制御される。FAXコントローラ
75は、通信手段74より得られたコマンドをもとにF
AX送信部より他のFAXと通信を行い画像データを送
信する。FAXコントローラ75は、CPU76を持
ち、ROM78のプログラムにより制御される。また、
FAXコントローラ75はRAM77を持ち、これはC
PU75が画像データを作成し、他のFAXへその画像
データを転送するプログラムを実行すめための作業領域
として使用される。FAX1はFAX通信経路80によ
り他のFAXと通信を行う。The host computer HC2 has interfaces such as 140, RS-422, and Ethernet.
Controlled by a command from The FAX controller 75 sends F
The AX transmission unit communicates with another FAX and transmits image data. The FAX controller 75 has a CPU 76 and is controlled by a program in a ROM 78. Also,
The FAX controller 75 has a RAM 77,
The PU 75 is used as a work area for executing a program for creating image data and transferring the image data to another FAX. The FAX 1 communicates with another FAX via the FAX communication path 80.
【0056】ホストコンピュータ131によりファクシ
ミリで出力を行うとする。ここで、ホストコンピュータ
上で実行されるFAXドライバは、プリンタに対するプ
リンタドライバと同じように振舞う。アプリケーション
により、メニュー選択などで印刷作業を実行すると、ア
プリケーションの描画データはOSを介してFAXドラ
イバに渡される。Assume that the host computer 131 performs facsimile output. Here, the FAX driver executed on the host computer behaves similarly to the printer driver for the printer. When a printing operation is performed by the application by selecting a menu or the like, the drawing data of the application is transferred to the FAX driver via the OS.
【0057】FAXでは通常、モノクロのデータの送受
信を行うため、ホストコンピュータHC2上でアプリケ
ーションで作成されたRGBカラー多階調データをFA
Xドライバに基づいてモノクロ2値のデータにCPU6
8が変換した後、FAXのコマンドとして通信手段74
でFAXに転送する。In FAX, in order to transmit and receive monochrome data, RGB color multi-tone data created by an application on the host computer HC2 is usually converted to FA data.
The CPU 6 converts monochrome binary data based on the X driver.
8 is converted, and then transmitted as a facsimile command by the communication means 74.
To transfer to FAX.
【0058】CPU68がFAXドライバに基づいて、
アプリケーションデータの描画領域を図6、図7、図8
のフローチャートにより図4、図5のデータを作成して
管理し、図9のフローチャートにより描画行われた領域
のみアプリケーションのRGBデータを黒の多階調デー
タに変換し、さらに黒の2値データに変換する処理をお
こなうことにより、FAXで送信するイメージデータ作
成処理の高速化をはかる。The CPU 68 operates based on the facsimile driver,
Drawing area of application data is shown in FIGS.
4 and 5 are created and managed according to the flowchart of FIG. 4, and the RGB data of the application is converted into black multi-tone data only in the area where the drawing is performed according to the flowchart of FIG. By performing the conversion process, it is possible to speed up the process of creating image data to be transmitted by facsimile.
【0059】なお、本発明は複数の機器(たとえばホス
トコンピュータ、インタフェース機器、リーダ、プリン
タ等)から構成されるシステムに適用しても一つの機器
(たとえば複写機、ファクシミリ装置)からなる装置に
適用してもよい。The present invention can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.) or to an apparatus composed of one device (for example, a copying machine or a facsimile machine). May be.
【0060】また前述した実施形態の機能を実現するよ
うに各種のデバイスを動作させる様に該各種デバイスと
接続された装置或いはシステム内のコンピュータに、前
記実施形態機能を実現するためのソフトウエアのプログ
ラムコードを供給し、そのシステムあるいは装置のコン
ピュータ(CPUあるいはMPU)を格納されたプログ
ラムにしたがって前記各種デバイスを動作させることに
よって実現したものも本願発明の範疇に含まれる。Further, software for realizing the functions of the above-described embodiment is installed in an apparatus or a computer in a system connected to the various devices so as to operate the various devices so as to realize the functions of the above-described embodiment. The invention realized by supplying a program code and operating a computer (CPU or MPU) of the system or apparatus by operating the various devices according to a stored program is also included in the scope of the present invention.
【0061】またこの場合、前記ソフトウエアのプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコード自体、及びそのプログ
ラムコードをコンピュータに供給するための手段、例え
ばかかるプログラムコードを格納した記憶媒体は本発明
を構成する。In this case, the program code itself of the software realizes the functions of the above-described embodiment, and the program code itself and means for supplying the program code to the computer, for example, the program code The storage medium storing the information constitutes the present invention.
【0062】かかるプログラムコードを格納する記憶媒
体としては例えばフロッピーディスク、ハードディス
ク、光ディスク、光磁気ディスク、CD−ROM、磁気
テープ、不揮発性のメモリカード、ROM等を用いるこ
とができる。As a storage medium for storing such a program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, magnetic tape, nonvolatile memory card, ROM or the like can be used.
【0063】また、コンピュータが供給されたプログラ
ムコードを実行することにより、前述の実施形態の機能
が実現されるだけではなく、そのプログラムコードがコ
ンピュータにおいて稼働しているOS(オペーレーティ
ングシステム)、あるいは他のアプリケーションソフト
等と共同して前述の実施形態の機能が実現される場合に
もかかるプログラムコードは本願発明の実施形態に含ま
れることは言うまでもない。When the computer executes the supplied program code, not only the functions of the above-described embodiment are realized, but also the OS (operating system) on which the program code is running in the computer. Alternatively, even when the functions of the above-described embodiments are realized in cooperation with other application software or the like, it goes without saying that such program codes are included in the embodiments of the present invention.
【0064】更に供給されたプログラムコードが、コン
ピュータの機能拡張ボードやコンピュータに接続された
機能拡張ユニットに備わるメモリに格納された後そのプ
ログラムコードの指示に基づいてその機能拡張ボードや
機能格納ユニットに備わるCPU等が実際の処理の一部
または全部を行い、その処理によって前述した実施形態
の機能が実現される場合も本願発明に含まれることは言
うまでもない。Further, the supplied program code is stored in a memory provided in a function expansion board of the computer or a function expansion unit connected to the computer, and then stored in the function expansion board or the function storage unit based on the instruction of the program code. It is needless to say that the present invention also includes a case where a provided CPU or the like performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
【0065】[0065]
【発明の効果】以上説明したように、本発明によれば描
画コマンドで示される入力画像に対して効率よく画像処
理を行うことができ、高速に出力画像を得ることができ
るようにすることができる。As described above, according to the present invention, it is possible to efficiently perform image processing on an input image indicated by a drawing command, and to obtain an output image at high speed. it can.
【図1】本願実施形態1にかかる印刷システムの構成を
示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of a printing system according to a first embodiment of the present application.
【図2】描画領域の管理方法の1例を示す図である。FIG. 2 is a diagram illustrating an example of a drawing area management method.
【図3】画像全体で描画領域の管理方法の1例を示す図
である。FIG. 3 is a diagram illustrating an example of a method for managing a drawing area in an entire image.
【図4】画像イメージの水平ライン上の描画部分を線分
により管理する為のデータ構造を示す図である。FIG. 4 is a diagram showing a data structure for managing a drawing portion on a horizontal line of an image image by line segments.
【図5】図4で構成されるリストデータの構造を示す図
である。FIG. 5 is a diagram showing a structure of list data configured in FIG. 4;
【図6】描画コマンドの描画範囲を描画領域管理データ
に登録する処理を示すフローチャートである。FIG. 6 is a flowchart illustrating a process of registering a drawing range of a drawing command in drawing area management data.
【図7】ある1つの描画コマンドの描画範囲を描画領域
管理データに登録する処理の詳細を示すフローチャート
である。FIG. 7 is a flowchart illustrating details of processing for registering a drawing range of a certain drawing command in drawing area management data.
【図8】図7の1部の処理を示すフローチャートであ
る。FIG. 8 is a flowchart showing a process of a part of FIG. 7;
【図9】描画領域管理データを参照し、描画領域を判別
し、描画領域のみ画像処理を行う処理のフローチャート
である。FIG. 9 is a flowchart of a process of referring to drawing area management data, determining a drawing area, and performing image processing only on the drawing area.
【図10】他の実施形態の構成を示すブロック図であ
る。FIG. 10 is a block diagram illustrating a configuration of another embodiment.
フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/40 A Continued on the front page (51) Int.Cl. 6 Identification number Agency reference number FI Technical display location H04N 1/40 A
Claims (11)
データを入力する入力手段と、 前記描画コマンドに基づき描画領域を識別する識別手段
と、 前記識別手段によって識別された描画領域に基づき、該
描画領域に対応する前記入力画像データに対して画像処
理を行う画像処理手段とを有し、 前記識別手段は、前記描画コマンドで示される描画単位
が線画で構成される図形である場合は、該図形を複数の
線分に分解し、該線分毎に描画領域を設定することを特
徴とする情報処理装置。An input unit configured to input input image data indicated by a drawing command; an identification unit configured to identify a drawing area based on the drawing command; Image processing means for performing image processing on the corresponding input image data, wherein the identification means, when the drawing unit indicated by the drawing command is a figure composed of line drawings, An information processing apparatus characterized in that the information processing apparatus is decomposed into line segments and a drawing area is set for each line segment.
像データが含まれることを特徴とする請求項1記載の情
報処理装置。2. The information processing apparatus according to claim 1, wherein the input image data includes bitmap image data.
て格納する格納手段を有することを特徴とする請求項1
記載の情報処理装置。3. The apparatus according to claim 1, further comprising storage means for storing the identification result corresponding to a line.
An information processing apparatus according to claim 1.
位に分割できない場合は、該描画単位に隣接する矩形を
描画領域と設定することを特徴とする請求項1記載の情
報処理装置。4. The information processing apparatus according to claim 1, wherein, if the drawing unit cannot be divided into line segments, a rectangle adjacent to the drawing unit is set as a drawing area.
形内部を塗りつぶす処理を特定されている場合は、該描
画単位に隣接する矩形を描画領域と設定することを特徴
とする請求項1記載の情報処理装置。5. The method according to claim 1, wherein the identifying unit sets a rectangle adjacent to the rendering unit as a rendering area when a process of painting the inside of the graphic is specified for the rendering unit. Information processing device.
を特徴とする請求項1記載の情報処理装置。6. The information processing apparatus according to claim 1, wherein the image processing includes an N-value processing.
C,M,Y,K画像データに変換する色変換処理が含ま
れることを特徴とする請求項1記載の情報処理装置。7. The information processing apparatus according to claim 1, wherein said image processing includes a color conversion process for converting R, G, B image data into C, M, Y, K image data.
しては所定の値を割り当てることを特徴とする請求項1
記載の情報処理装置。8. A predetermined value is assigned to an area other than the identified drawing area.
An information processing apparatus according to claim 1.
定の位置に入力画像を展開する展開手段を有し、 前記画像処理手段は、前記格納手段に格納されているラ
インに対応した識別結果に基づき、前記展開された画像
の前記描画領域に対応する部分に対して前記画像処理を
行うことを特徴とする請求項2記載の情報処理方法。9. An image processing apparatus comprising: an expansion unit configured to expand an input image at a predetermined position on a memory based on the drawing command, wherein the image processing unit is configured to perform processing based on an identification result corresponding to a line stored in the storage unit. 3. The information processing method according to claim 2, wherein the image processing is performed on a portion of the developed image corresponding to the drawing area.
像データを入力し、 前記描画コマンドに基づき描画領域を識別し、 前記識別手段によって識別された描画領域に対応する前
記入力画像データに対して画像処理を行う情報処理方法
であって、 前記描画コマンドで示される描画単位が線画で構成され
る図形である場合は、該図形を複数の線分に分解し、該
線分毎に描画領域を設定することを特徴とする情報処理
方法。10. Input image data indicated by a drawing command is input, a drawing area is identified based on the drawing command, and image processing is performed on the input image data corresponding to the drawing area identified by the identification unit. In the information processing method to be performed, when the drawing unit indicated by the drawing command is a graphic constituted by a line drawing, the graphic is decomposed into a plurality of line segments, and a drawing area is set for each line segment. An information processing method characterized by the following.
ログラムコードを格納する記録媒体。11. A recording medium for storing a program code for realizing the image processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8202059A JPH1051652A (en) | 1996-07-31 | 1996-07-31 | Information processing unit and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8202059A JPH1051652A (en) | 1996-07-31 | 1996-07-31 | Information processing unit and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1051652A true JPH1051652A (en) | 1998-02-20 |
Family
ID=16451268
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8202059A Withdrawn JPH1051652A (en) | 1996-07-31 | 1996-07-31 | Information processing unit and method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1051652A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7864367B2 (en) | 2006-09-08 | 2011-01-04 | Konica Minolta Business Technologies, Inc. | Image processing system and image processing method |
| US8643897B2 (en) | 2011-01-06 | 2014-02-04 | Seiko Epson Corporation | Image processing device, image processing method, and image processing program |
| CN112434632A (en) * | 2020-12-01 | 2021-03-02 | 康佳集团股份有限公司 | Pattern recognition method, intelligent terminal and storage medium |
-
1996
- 1996-07-31 JP JP8202059A patent/JPH1051652A/en not_active Withdrawn
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7864367B2 (en) | 2006-09-08 | 2011-01-04 | Konica Minolta Business Technologies, Inc. | Image processing system and image processing method |
| US8643897B2 (en) | 2011-01-06 | 2014-02-04 | Seiko Epson Corporation | Image processing device, image processing method, and image processing program |
| CN112434632A (en) * | 2020-12-01 | 2021-03-02 | 康佳集团股份有限公司 | Pattern recognition method, intelligent terminal and storage medium |
| CN112434632B (en) * | 2020-12-01 | 2024-05-28 | 康佳集团股份有限公司 | Pattern recognition method, intelligent terminal and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0933723B1 (en) | Printing apparatus | |
| US7164493B1 (en) | Image processing method, system and apparatus, and storage medium | |
| JP2703914B2 (en) | Document image processing device | |
| US6512595B1 (en) | Data processing apparatus, data processing method, and medium | |
| US6323958B1 (en) | Printing apparatus | |
| US6332666B1 (en) | Printing apparatus, resolution conversion printing method for printing apparatus, and storage medium storing computer-readable program | |
| KR100322786B1 (en) | Page-makeup system | |
| US5699492A (en) | Black area discrimination system for ink jet color printing and method therefor | |
| JP2008005317A (en) | Image processing apparatus and method, and computer program and recording medium | |
| US6243174B1 (en) | Image processing device, color printing device, image processing method and medium recording image processing program | |
| JP4428743B2 (en) | Image processing method and apparatus, printer, image processing system, and storage medium | |
| JP4109785B2 (en) | Image processing apparatus and method, and computer-readable memory | |
| US7859713B2 (en) | Printing control apparatus, method and printer driver | |
| JP2001219601A (en) | Print control device and data processing method in print control device | |
| US5867637A (en) | Document processing with flexible resolution and output style | |
| JP4306841B2 (en) | Image processing apparatus and method, and computer-readable memory | |
| 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 | |
| JP3664351B2 (en) | Image processing apparatus, color printing apparatus, image processing method, and recording medium | |
| JP3636891B2 (en) | Color image output method | |
| JP4217332B2 (en) | Image processing apparatus and method, and computer-readable memory | |
| JP3829895B2 (en) | Image processing device | |
| JP2001086320A (en) | Information processing method and information processing apparatus | |
| JPH0898024A (en) | Information processing apparatus and information processing method | |
| JP2001277612A (en) | Print control apparatus and method, and storage medium | |
| JP2007081886A (en) | Drawing processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20031007 |