JP5112223B2 - Image processing apparatus and image processing program - Google Patents

Image processing apparatus and image processing program Download PDF

Info

Publication number
JP5112223B2
JP5112223B2 JP2008220192A JP2008220192A JP5112223B2 JP 5112223 B2 JP5112223 B2 JP 5112223B2 JP 2008220192 A JP2008220192 A JP 2008220192A JP 2008220192 A JP2008220192 A JP 2008220192A JP 5112223 B2 JP5112223 B2 JP 5112223B2
Authority
JP
Japan
Prior art keywords
gradation
image
image processing
color
path
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.)
Expired - Fee Related
Application number
JP2008220192A
Other languages
Japanese (ja)
Other versions
JP2010056931A (en
Inventor
英雄 中原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2008220192A priority Critical patent/JP5112223B2/en
Publication of JP2010056931A publication Critical patent/JP2010056931A/en
Application granted granted Critical
Publication of JP5112223B2 publication Critical patent/JP5112223B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、テキストやイメージやパス図形で構成されるデータの印刷要求を処理する印刷処理装置などの画像処理装置及び画像処理プログラムに関する。   The present invention relates to an image processing apparatus such as a print processing apparatus that processes a print request for data composed of text, images, and path graphics, and an image processing program.

従来より、例えば、グラデーションフィル図形の描画に関し、グラデーションの生成が指示されると呼び出されるグラデーション生成部により、渡された色の変化方向のベクトル及びその始終点の色情報を用いて、始点と終点を結ぶ直線に垂直でその内部の色値が均一となる複数の隣接する帯状領域を設定し、その帯状領域と走査線との交点を求めて色の変化点とし、走査線毎に、この変化点及び変換点間の色を順次求め、走査線方向のグラデーションパターンを生成することが行われている(例えば特許文献1参照)。   Conventionally, for example, with respect to drawing of a gradation fill figure, the start point and the end point are used by the gradation generation unit that is called when the generation of the gradation is instructed, using the passed color change direction vector and the start and end point color information. A plurality of adjacent band-like areas that are perpendicular to the straight line connecting the lines and in which the color values are uniform are set, and the intersection between the band-like area and the scanning line is obtained as a color change point, and this change is made for each scanning line. A color between a dot and a conversion point is sequentially obtained to generate a gradation pattern in the scanning line direction (see, for example, Patent Document 1).

また、プリンタや複写機、ファクシミリ装置あるいはこれらの複合機等、印刷機能を有する画像形成装置においては、一度、1頁分の印刷ジョブを複数のバンドに分割してから中間コードに変換してメモリ領域に蓄積し、蓄積された中間コードをビットイメージにラスタライズして頁単位で画像印刷することで、メモリ領域を節約する構成が知られている。   Also, in an image forming apparatus having a printing function such as a printer, a copier, a facsimile machine, or a multifunction machine of these, once a print job for one page is divided into a plurality of bands and then converted into an intermediate code and stored in a memory. There is known a configuration that saves a memory area by accumulating in an area, rasterizing the accumulated intermediate code into a bit image, and printing an image in units of pages.

例えば、グラデーションフィル図形の描画に関し、グラデーションを検知したときに、1ラインのピクセル情報を次のラインのピクセルに複製していく手法が提案されている。この手法は、グラフィックスにより描画命令(中間コード)により新規描画をする物を対象とした高速化であり、ピクセルの色を計算してグラディエントなパターンを作成し、複製することでグラデーションを描画するものである(例えば特許文献2参照)。   For example, with respect to drawing of a gradation fill figure, a technique has been proposed in which pixel information of one line is copied to pixels of the next line when gradation is detected. This technique is a high-speed target for objects that are newly drawn by graphics drawing commands (intermediate code), and creates gradient patterns by calculating the color of pixels and drawing gradients by duplicating them. (See, for example, Patent Document 2).

上記特許文献2に記載された画像処理装置では、グラディエントオブジェクトの描画処理において、画像処理オブジェクトが水平方向あるいは垂直方向に何層のグラデーションがあるかを検知し、検知したグラデーションの第一層のみを計算し、第二層以下に第一層をコピーして使用することにより、垂直、水平方向に一定パターンのグラデーションを多層持つオブジェクトの生成時間を短縮して、画像の高速処理を可能としている。   In the image processing apparatus described in Patent Document 2, in the gradient object drawing process, the image processing object detects how many gradations there are in the horizontal direction or the vertical direction, and only the detected first layer of the gradation is detected. By calculating and copying and using the first layer below the second layer, it is possible to shorten the generation time of an object having a plurality of gradations of a constant pattern in the vertical and horizontal directions, and to perform high-speed image processing.

特開平11−25282号公報Japanese Patent Laid-Open No. 11-25282 特開2001−101413号公報JP 2001-101413 A

ところで、従来のグラデーション描画の手法では、バンド方向の色の変化が大きい場合には、色が変化するたびにグラデーションパターンの色を変化させる必要があるため、処理速度が低下することがある問題があった。すなわち、バンド方向へのグラデーションパターンへの置き換えにおいて、色の変化する方向とバンドの方向の組み合わせによっては、多数のグラデーションパターンへの置き換えに多数の色が変化する。置き換え処理においてはグラデーションの色が変わる毎にパターンへ置き換えるための色が変化する位置を求める計算が必要であり、処理速度低下の原因となる。   By the way, in the conventional gradation drawing method, when the color change in the band direction is large, it is necessary to change the color of the gradation pattern every time the color changes, so the processing speed may be reduced. there were. That is, in the replacement with the gradation pattern in the band direction, depending on the combination of the direction in which the color changes and the direction of the band, a large number of colors change in the replacement with a large number of gradation patterns. In the replacement process, it is necessary to calculate the position where the color for replacement with the pattern changes every time the gradation color changes, which causes a reduction in processing speed.

そこで、本発明の目的は、上述の如き従来の問題点に鑑み、複雑なグラデーションの色の変化についても処理速度が低下することなく、また、単純なグラデーションは高速に処理することのできる画像処理装置及び画像処理プログラムを提供することにある。   In view of the above-described conventional problems, the object of the present invention is to perform image processing capable of processing a simple gradation at high speed without reducing the processing speed even for a complicated gradation color change. An apparatus and an image processing program are provided.

本発明の更に他の目的、本発明によって得られる具体的な利点は、以下に説明される実施の形態の説明から一層明らかにされる。   Other objects of the present invention and specific advantages obtained by the present invention will become more apparent from the description of embodiments described below.

本発明に係る画像処理装置は、外部装置と通信するための通信手段と、上記通信手段により受信した外部装置からの要求がグラデーションの描画処理である場合に、バンド方向の色の変化の割合を閾値との比較結果に基づき判定するグラデーション処理方法判定手段と、指定されたグラデーションのイメージを作成するグラデーションイメージ作成手段と、パスの塗りつぶし処理を行うフィル処理手段と、パスを指定された幅で塗るストローク処理手段を備え、上記グラデーション処理方法判定手段による判定結果に基づいて、バンド方向の色の変化の割合が大きい場合には、上記グラデーションイメージ作成手段によりグラデーションのラインイメージを作成して上記フィル処理手段によりパスの塗りつぶし処理を行い、ラインイメージによりパスの領域を描画し、上記グラデーション処理方法判定手段による判定結果に基づいて、バンド方向の色の変化の割合が小さい場合には上記ストローク処理手段によりパスを指定された幅で塗ることにより、同じ色の領域をパスで描画することを特徴とする。 The image processing apparatus according to the present invention provides a communication means for communicating with an external apparatus, and a ratio of a color change in a band direction when a request from the external apparatus received by the communication means is a gradation drawing process. A gradation processing method determining means for determining based on a comparison result with a threshold, a gradation image generating means for generating a designated gradation image, a fill processing means for performing a path filling process, and a path with a specified width. comprising a stroke processing means, based on a determination result by the gradation process determining unit, when the rate of change of the color of the band direction is large, the fill process by creating a line image of the gradient by the gradient image creation unit The path is filled by means to create a line image By drawing the pass area, and based on the determination result by the gradation processing method determination means, when the rate of color change in the band direction is small, the path is painted with the specified width by the stroke processing means, It is characterized by drawing an area of the same color with a path.

上記画像処理装置において、例えば、上記グラデーションイメージ作成手段は、指定されたグラデーションの開始位置、終了位置、描画対象の外接矩形領域及びグラデーションで指定された色情報を元にグラデーションのラインイメージを作成するものとすることができる。   In the image processing apparatus, for example, the gradation image creating means creates a gradation line image based on a designated gradation start position and end position, a circumscribed rectangular area to be drawn, and color information designated by gradation. Can be.

また、上記画像処理装置において、例えば、上記グラデーションイメージ作成手段は、描画対象の外接矩形と指定されたグラデーションの開始位置、終了位置が一致していない場合、その領域を含めたラインイメージを作成するものとすることができる。   In the image processing apparatus, for example, the gradation image creating means creates a line image including the region when the circumscribed rectangle to be drawn does not match the designated gradation start position and end position. Can be.

さらに、上記画像処理装置において、例えば、上記グラデーションイメージ作成手段は、グラデーションの開始位置と終了位置が描画対象領域の外接矩形の外側にある場合、外接矩形を描画できる長さのラインイメージを作成するものとすることができる。   Further, in the image processing apparatus, for example, the gradation image creating unit creates a line image having a length that allows drawing of the circumscribed rectangle when the start position and end position of the gradation are outside the circumscribed rectangle of the drawing target area. Can be.

本発明は、外部装置と通信するための通信手段により受信した上記外部装置からの要求に応じて描画を行う画像処理装置に備えられたコンピュータにより実行される画像処理プログラムであって、受信した外部装置からの要求がグラデーションの描画処理である場合に、バンド方向の色の変化の割合を閾値との比較結果に基づき判定し、その判定結果に基づいて、バンド方向の色の変化の割合が大きい場合には、グラデーションのラインイメージを作成してパスの塗りつぶし処理を行い、ラインイメージによりパスの領域を描画し、また、上記判定結果に基づいて、バンド方向の色の変化の割合が小さい場合には、指定された幅で塗ることにより、同じ色の領域をパスで描画する処理を上記画像処理装置に備えられたコンピュータにより実行させることを特徴とする。 The present invention is an image processing program executed by a computer provided in an image processing apparatus that performs drawing in response to a request from the external apparatus received by a communication means for communicating with the external apparatus. When the request from the apparatus is a gradation drawing process, the ratio of the color change in the band direction is determined based on the comparison result with the threshold value, and the ratio of the color change in the band direction is large based on the determination result. In this case, a gradation line image is created, the path is filled, the path area is drawn by the line image, and the color change rate in the band direction is small based on the determination result. Executes the process of drawing the same color area with a pass by painting with the specified width by the computer equipped in the above image processing device And characterized in that.

本発明では、受信した外部装置からの要求がグラデーションの描画処理である場合に、バンド方向の色の変化の割合を閾値との比較結果に基づき判定し、その判定結果に基づいて、バンド方向の色の変化の割合が大きい場合には、グラデーションのラインイメージを作成してパスの塗りつぶし処理を行い、ラインイメージによりパスの領域を描画し、また、上記判定結果に基づいて、バンド方向の色の変化の割合が小さい場合には、指定された幅で塗ることにより、同じ色の領域をパスで描画するので、グラデーションの描画に関して1ラインイメージを作成することで、複雑なグラデーションの色の変化についても処理速度の低下が起きることなく、また、単純なグラデーションについてはフィルにより高速に処理することができる。 In the present invention, when the received request from the external device is a gradation drawing process, the ratio of the color change in the band direction is determined based on the comparison result with the threshold value, and the band direction is determined based on the determination result. If the rate of color change is large, create a line image of the gradation and fill the path, draw the area of the path with the line image, and based on the above judgment result, When the rate of change is small, the same color area is drawn with a path by painting with the specified width. Therefore, by creating a one-line image for gradation drawing, it is possible to change complicated gradation color changes. However, the processing speed does not decrease, and simple gradation can be processed at high speed by filling.

以下、本発明の実施の形態について、図面を参照して詳細に説明する。なお、本発明は以下の例に限定されるものではなく、本発明の要旨を逸脱しない範囲で、任意に変更可能であることは言うまでもない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Needless to say, the present invention is not limited to the following examples, and can be arbitrarily changed without departing from the gist of the present invention.

本発明は、例えば図1に示すようにホストコンピュータ10と画像処理装置20がLANなどのネットワーク15を介して相互に通信可能に接続されてなる印刷システム1における画像処理装置20に適用される。   The present invention is applied to, for example, an image processing apparatus 20 in a printing system 1 in which a host computer 10 and an image processing apparatus 20 are connected to each other via a network 15 such as a LAN as shown in FIG.

この印刷システム1において、画像処理装置20は、ホストコンピュータ10から供給される印刷データを印刷する機能を備えたプリンタ装置であって、装置全体の制御および各種演算処理を行うコンピュータ(CPU)30、プログラムやデータを格納するためのリードオンリメモリ(ROM)40、作業領域として一時的にプログラムやデータを記憶するためのランダムアクセスメモリ(RAM)50、各種情報の表示および各種指示の入力に使用される操作パネル部60、電子写真式プロセス等の周知の作像プロセスを用いて、各種データを用紙などの記録媒体上に印刷する印刷部70、およびネットワーク15に接続するためのLANカードなどの通信インターフェース80などがバス90を介して相互に接続されている。   In the printing system 1, the image processing apparatus 20 is a printer apparatus having a function of printing print data supplied from the host computer 10, and includes a computer (CPU) 30 that controls the entire apparatus and performs various arithmetic processes. A read only memory (ROM) 40 for storing programs and data, a random access memory (RAM) 50 for temporarily storing programs and data as a work area, used for displaying various information and inputting various instructions. Communication using an operation panel unit 60, a printing unit 70 for printing various data on a recording medium such as paper using a known image forming process such as an electrophotographic process, and a LAN card for connection to the network 15 An interface 80 and the like are connected to each other via a bus 90.

画像処理装置20には、その機能的な構成を図2のブロック図に示すように、通信インターフェース80を介してデータを受信するデータ受信部31、データ受信部31により受信したデータの解析を行なうデータ解析部32、データ解析部32からの指示に従って描画データを処理する描画データ処理部33、描画データ処理部33で作成されたディスプレイリストからビデオRAM上にビットマップを作成する描画部34、システムのメモリを管理するメモリ管理部35、システムの共通情報を管理し、システムの制御を行なうシステム制御部36などが、CPU30による処理機能として搭載されており、描画部34により作成されたビットマップに従って印刷部70が実際に記録媒体に印刷を行う。   The functional structure of the image processing apparatus 20 is shown in the block diagram of FIG. 2. The data receiving unit 31 receives data via the communication interface 80 and analyzes the data received by the data receiving unit 31. A data analysis unit 32, a drawing data processing unit 33 that processes drawing data in accordance with an instruction from the data analysis unit 32, a drawing unit 34 that creates a bitmap on a video RAM from a display list created by the drawing data processing unit 33, and a system A memory management unit 35 that manages the memory of the system, a system control unit 36 that manages system common information and controls the system, and the like are mounted as processing functions by the CPU 30, and according to the bitmap created by the drawing unit 34 The printing unit 70 actually prints on the recording medium.

描画データ処理部33は、その構成を図3に示すように、拡大縮小の設定行列や現在有効なスクリーン等の描画に関係する設定情報を管理する描画環境管理部331、イメージデータの処理を行うイメージ処理部332、ベクターデータの処理を行うベクター処理部333、文字データの処理を行なう文字処理部334、クリップ処理を行うクリップ処理部335、各処理部332〜335で処理された情報を元にディスプレイリストを作成するディスプレイリスト作成部336などを有する。   As shown in FIG. 3, the drawing data processing unit 33 performs processing of image data, a drawing environment management unit 331 that manages setting information related to drawing, such as an enlargement / reduction setting matrix and a currently valid screen. Based on the information processed by the image processing unit 332, the vector processing unit 333 that processes vector data, the character processing unit 334 that processes character data, the clip processing unit 335 that performs clip processing, and the processing units 332 to 335 A display list creation unit 336 for creating a display list is included.

さらに、ベクター処理部333は、グラデーションの処理を同色の矩形等のベクタオブジェクトのフィルにより行うか、イメージにより描画するかの判定を行うグラデーション処理方法判定部3331、指定されたグラデーションのイメージを作成するグラデーションイメージ作成部3332、パスの塗りつぶし処理を行うフィル処理部3333、パスを指定された幅で塗るストローク処理部3334等を備える。   Further, the vector processing unit 333 creates a specified gradation image, a gradation processing method determination unit 3331 that determines whether gradation processing is performed by filling a vector object such as a rectangle of the same color or drawing by an image. A gradation image creation unit 3332, a fill processing unit 3333 that performs path painting processing, a stroke processing unit 3334 that paints a path with a specified width, and the like.

この印刷システム1において、画像処理装置20に備えられたCPU30は、例えばROM40から読み出される画像処理プログラムに従って次のように画像処理を実行する。   In the printing system 1, the CPU 30 provided in the image processing apparatus 20 executes image processing as follows in accordance with an image processing program read from the ROM 40, for example.

すなわち、この画像処理装置20の制御部30は、ホストコンピュータ1から送られてくるデータを通信インターフェース80を介してデータ受信部31により受け取り、受け取ったデータをデータ解析部32により解析する。   That is, the control unit 30 of the image processing apparatus 20 receives data sent from the host computer 1 via the communication interface 80 by the data receiving unit 31 and analyzes the received data by the data analyzing unit 32.

データ解析部32によりデータを解析して得られる描画命令は、描画データ処理部33により処理され、描画データのうちグラデーションに関するものはベクタ処理部333に渡される。   The drawing command obtained by analyzing the data by the data analysis unit 32 is processed by the drawing data processing unit 33, and the drawing data related to gradation is passed to the vector processing unit 333.

ベクタ処理部333で処理されたグラデーションは、1ラインのイメージに置き換えられた場合はイメージ処理部332により処理され、ディスプレイリスト作成部336でディスプレイリストが作成される。また、1ラインのイメージに置き換えない場合は、ベクタ処理部333で矩形等の帯状領域のパスとして処理され、ディスプレイリスト作成部336でディスプレイリストが作成される。ディスプレイリスト作成部で336作成されたディスプレイリストは、描画部34に渡され、ビデオRAMにビットマップとして書き込まれる。印刷部70は、そのビットマップを記録媒体へ出力する。   When the gradation processed by the vector processing unit 333 is replaced with a one-line image, the gradation is processed by the image processing unit 332, and a display list is generated by the display list creation unit 336. If the image is not replaced with a one-line image, the vector processing unit 333 processes it as a path of a band-like area such as a rectangle, and the display list creation unit 336 creates a display list. The display list created by the display list creation unit 336 is transferred to the drawing unit 34 and written as a bitmap in the video RAM. The printing unit 70 outputs the bitmap to the recording medium.

ここで、グラデーションの方向についての例として、図4の(A),(B),(C)に、横グラデーション101、斜めグラデーション102、縦グラデーション103を示す。この例ではページ全体にグラデーションがかかっている様子を表している。図4の(A)に示す横グラデーション101は、上の方のバンドは黒で描画し、下の方のバンドは白で描画している。図4のバンドの方向とは、グラデーションの描画時に走査する方向を表す。この方向に沿って処理を行なう場合はメモリのアクセス効率が良いため高速な処理が行える。   Here, as an example of the direction of gradation, FIGS. 4A, 4B, and 4C show a horizontal gradation 101, an oblique gradation 102, and a vertical gradation 103, respectively. In this example, gradation is applied to the entire page. In the horizontal gradation 101 shown in FIG. 4A, the upper band is drawn in black, and the lower band is drawn in white. The band direction in FIG. 4 represents a scanning direction when drawing a gradation. When processing is performed along this direction, high-speed processing can be performed because the memory access efficiency is good.

従来の手法では、図4(B)に示す斜めグラデーション102の場合、グラデーションの始点と終点を結ぶ直線に垂直で、同じ色で構成される複数の帯状領域が、それぞれバンドを構成する走査線(バンド方向の1ラインイメージ)一つ一つに対してどのように交差するかを求め、走査線ごとのグラデーションパターンを生成するようにしていた。このような従来の手法では、図4の(A)に示す横グラデーション101のように、バンド方向の色の変化がない、または、少ない場合には走査線と帯状領域が交差する箇所を求めることが少ないため、有効であるが、図4(B)に示す斜めグラデーション102や図4(C)に示す縦グラデーション103ではバンド方向の色の変化が多くなるため多数の交点を求める必要があり、計算コストがかかる。   In the conventional method, in the case of the oblique gradation 102 shown in FIG. 4B, a plurality of strip-like regions that are perpendicular to the straight line connecting the start point and the end point of the gradation and are formed of the same color are each a scanning line ( (One line image in the band direction) How to intersect one by one was determined, and a gradation pattern for each scanning line was generated. In such a conventional method, as in the horizontal gradation 101 shown in FIG. 4A, when there is no change in the color in the band direction or when there is little, a point where the scanning line and the band-like region intersect is obtained. However, in the diagonal gradation 102 shown in FIG. 4B and the vertical gradation 103 shown in FIG. 4C, the color change in the band direction increases, so it is necessary to obtain a large number of intersections. Calculation cost is required.

この画像処理装置20では、図4の(A)に示す斜めグラデーションや図4(C)に示す縦グラデーションでバンド方向の色の変化が大きい場合に、走査線ごとのグラデーションパターンを作成するのではなく、図5のフローチャートに示すような手順に従ってグラデーションの描画処理を行い、ベクタ処理部333において、グラデーションの方向の1ラインのイメージを作成し、それをグラデーションの方向と垂直な方向に拡大することによりグラデーションの描画を行う。また、このようなイメージにより処理を行うか、同じ色毎の帯状領域の塗りつぶしによる処理を行うかの判定を行う。   In this image processing device 20, when the color change in the band direction is large in the diagonal gradation shown in FIG. 4A or the vertical gradation shown in FIG. 4C, the gradation pattern for each scanning line is not created. Instead, the gradation drawing process is performed according to the procedure shown in the flowchart of FIG. 5, and the vector processing unit 333 creates an image of one line in the gradation direction and enlarges it in the direction perpendicular to the gradation direction. To draw gradation. In addition, it is determined whether processing is performed based on such an image or whether processing is performed by filling a band-like region for each same color.

すなわち、ベクタ処理部333では、グラデーションの描画命令が入力されると(ステップS1)、まず、グラデーション処理方法判定部3331において、バンド方向の色変化の割合が大きいか否かの判定処理を行う(ステップS2)。ここでは、グラデーション処理方法判定部3331が、対象となる走査線を描画する上で色の変化がある閾値よりも大きいか否かにより判定する。詳細には、グラデーション処理方法判定部3331が、対象となる走査線のイメージデータに対して同じ色のドットが何ドット続いているかを分析して、所定の閾値と比較する。グラデーション処理方法判定部3331は、続けて配列される同じ色のドット数が閾値よりも小さければ、色変化の割合が大きいと判定する。   That is, when a gradation drawing command is input to the vector processing unit 333 (step S1), first, the gradation processing method determination unit 3331 performs a determination process as to whether or not the rate of color change in the band direction is large ( Step S2). Here, the gradation processing method determination unit 3331 determines whether or not the change in color is larger than a threshold value when drawing the target scanning line. Specifically, the gradation processing method determination unit 3331 analyzes how many dots of the same color continue for the image data of the target scanning line, and compares it with a predetermined threshold value. The gradation processing method determination unit 3331 determines that the rate of color change is large if the number of dots of the same color arranged in succession is smaller than the threshold value.

ここで、グラデーション処理方法判定部3331により走査線のイメージを分析した結果を記録する1例を次の表1に示す。   Here, an example in which the result of analyzing the image of the scanning line by the gradation processing method determination unit 3331 is recorded is shown in Table 1 below.

Figure 0005112223
Figure 0005112223

表1は、走査線に同じ色のドットが続けて配列されているドット数を示している。表1の例では、続けて配列される同じ色のドット数の平均値は7.5となる。閾値が10であれば、続けて配列される同じ色のドット数は閾値よりも小さいので、グラデーション処理方法判定部3331は、対象となる走査線の色変化の割合が大きいと判定する。   Table 1 shows the number of dots in which dots of the same color are continuously arranged on the scanning line. In the example of Table 1, the average number of dots of the same color arranged in succession is 7.5. If the threshold value is 10, the number of dots of the same color arranged in succession is smaller than the threshold value, so the gradation processing method determination unit 3331 determines that the rate of color change of the target scanning line is large.

なお、閾値は予め画像処理装置30に設定された数値であり、製造者や装置管理者が適宜設定することができるものである。   The threshold value is a numerical value set in advance in the image processing apparatus 30 and can be set as appropriate by the manufacturer or the apparatus manager.

ステップS2における判定結果がYES、すなわち、色変化の割合が大きい場合には、グラデーションイメージ作成部3332により、指定されたグラデーションのイメージを作成して(ステップS3)、イメージによりパスの領域を描画する(ステップS4)。グラデーションイメージ作成部3332が行なう描画処理の詳細については、後述する。   If the determination result in step S2 is YES, that is, if the rate of color change is large, the gradation image creation unit 3332 creates a designated gradation image (step S3), and draws a path area based on the image. (Step S4). Details of the drawing process performed by the gradation image creating unit 3332 will be described later.

また、ステップS2における判定結果がNO、すなわち、上記閾値より色変化の割合が小さければ、ストローク処理部3334により、パスを指定された幅で塗る処理を行い、同じ色の領域をパスで描画する(ステップS5)。この場合は、ストローク処理部3334により、グラデーションで色が変化するなかで同じ色が連続する帯状の領域についてのパスを作成し、その色でパスの塗りつぶし処理を行う。これをグラデーションで変化する色ごとに行うことでグラデーション全体を描画する。   If the determination result in step S2 is NO, that is, if the rate of color change is smaller than the threshold value, the stroke processing unit 3334 performs a process of painting a path with a specified width, and draws an area of the same color with the path. (Step S5). In this case, the stroke processing unit 3334 creates a path for a band-like region in which the same color continues while the color changes by gradation, and performs a path filling process with that color. The entire gradation is drawn by performing this for each color that changes in the gradation.

すなわち、この画像処理装置20では、データ受信部31により受信したホストコンピュータ30からの要求がグラデーションの描画処理である場合に(ステップS1)、グラデーション処理方法判定部3331において、バンド方向の色の変化の割合が大きいか否かにより、グラデーションの処理を同色のベクタオブジェクトのフィルにより行うか、イメージにより描画するかの判定を行い(ステップS2)、その判定結果に基づいて、バンド方向の色の変化の割合が大きい場合には、グラデーションイメージ作成部3332によりグラデーションのラインイメージを作成して(ステップS3)、パスの塗りつぶし処理を行い、ラインイメージによりパスの領域を描画し(ステップS4)、また、上記判定結果に基づいて、バンド方向の色の変化の割合が小さい場合には、ストローク処理部3334により、指定された幅で塗ることにより、同じ色の領域をパスで描画する(ステップS5)。   That is, in the image processing apparatus 20, when the request from the host computer 30 received by the data receiving unit 31 is gradation drawing processing (step S1), the gradation processing method determining unit 3331 changes the color in the band direction. It is determined whether gradation processing is performed by filling a vector object of the same color or drawing is performed by an image depending on whether the ratio is large (step S2). Based on the determination result, the color change in the band direction is determined. Is large, a gradation line image is created by the gradation image creation unit 3332 (step S3), the path is filled, a path area is drawn by the line image (step S4), and Based on the determination result, the color in the band direction If the rate of change is small, the stroke processing unit 3334, by painting with a specified width, to draw the region of the same color in the path (step S5).

ここで、グラデーションイメージ作成部3332では、指定されたグラデーションの開始位置、終了位置、描画対象の外接矩形領域及びグラデーションで指定された色情報を元にグラデーションのラインイメージを作成する。   The gradation image creation unit 3332 creates a gradation line image based on the designated gradation start position and end position, the circumscribed rectangular area to be drawn, and the color information designated by the gradation.

例えば、図6に示す描画対象の外接矩形領域100にしてグラデーションの描画を行う場合に、図7に示すようなグラデーションのラインイメージ110を作成する。図6において、矢印A,Bは、それぞれグラデーションの開始位置、終了位置を示す。   For example, when gradation is drawn in the circumscribed rectangular region 100 to be drawn shown in FIG. 6, a gradation line image 110 as shown in FIG. 7 is created. In FIG. 6, arrows A and B indicate the start position and end position of gradation, respectively.

また、描画対象の外接矩形100と指定されたグラデーションの開始位置、終了位置が一致していない場合の例を図8に示す。図8の全体が描画対象の外接矩形100’を表す。図8において、A’とB’は、それぞれグラデーションの開始位置と終了位置を表している。この場合、黒色の三角形の領域Cと白色の三角形の領域Dはグラデーションの指定された領域の外側となる。この例では、それぞれ開始位置を黒、終了位置を白で表してある。それ以外にもグラデーションを繰り返す方法などが描画データから指定される。このような場合についても、図9に示すようにその領域C,Dを含めたラインイメージ111を作成することにより描画対象の領域全体をグラデーションで描画することができる。また、グラデーションの開始位置と終了位置が描画対象領域の外接矩形の外側にある場合は外接矩形を描画できる長さのラインイメージを作成すればよい。   FIG. 8 shows an example in which the circumscribed rectangle 100 to be drawn does not match the start position and end position of the designated gradation. 8 represents a circumscribed rectangle 100 'to be drawn. In FIG. 8, A 'and B' represent the start position and end position of gradation, respectively. In this case, the black triangular area C and the white triangular area D are outside the area designated for gradation. In this example, the start position is represented by black and the end position is represented by white. In addition to this, a method of repeating gradation is specified from the drawing data. Even in such a case, the entire drawing target area can be drawn with gradation by creating a line image 111 including the areas C and D as shown in FIG. If the start and end positions of the gradation are outside the circumscribed rectangle of the drawing target area, a line image having a length capable of drawing the circumscribed rectangle may be created.

このようにして、ベクタ処理部333では、ステップS3においてグラデーションイメージ作成部3332により描画対象の外接矩形100についてのラインイメージを作成して、次のステップS5においてイメージによりパスの領域を描画で作成したグラデーションのラインイメージをイメージ処理部332へ渡す。   In this way, in the vector processing unit 333, a line image of the circumscribed rectangle 100 to be drawn is created by the gradation image creation unit 3332 in step S3, and a path region is created by drawing in the next step S5. The gradation line image is passed to the image processing unit 332.

また、描画する領域がパスにより指定されている場合はクリップ処理部335によりグラデーションをかける領域に対してクリップ処理を行う。   If the area to be drawn is specified by the path, the clip processing unit 335 performs clip processing on the area to which gradation is applied.

そして、イメージ処理部332では、ベクタ処理部333のグラデーションイメージ作成部3332が作成したラインイメージ110と指定したイメージの位置や向きや拡大方向によりパスで指定された形状を塗り、次のようにして、イメージを描画する。   In the image processing unit 332, the line image 110 created by the gradation image creation unit 3332 of the vector processing unit 333 is painted with the shape designated by the path according to the position, orientation, and enlargement direction of the designated image, as follows. Draw an image.

まず、図10の(A)に示すように、描画する形状200の一点P1を選択する。そしてその点と対応づくラインイメージ110上の位置を計算する。次に図10の(B)に示すように、ラインイメージ110のその点D1の色をコピーする。   First, as shown in FIG. 10A, one point P1 of the shape 200 to be drawn is selected. Then, the position on the line image 110 corresponding to the point is calculated. Next, as shown in FIG. 10B, the color of the point D1 of the line image 110 is copied.

指定した一点P1の描画が行えたら、図10の(C)に示すように次の点P2に処理を移す。そして同じように計算し、図10(D)に示すようにラインイメージ110の対応する点D2の色をコピーする。   If the designated one point P1 can be drawn, the process moves to the next point P2 as shown in FIG. Then, the same calculation is performed, and the color of the corresponding point D2 in the line image 110 is copied as shown in FIG.

このようにして、描画したい形状についての全ての点P1,P2,・・・Pnについての色をラインイメージ110上の位置を計算してコピーすることにより、図11に示すように、形状200全体をグラデーションにより描画することができる。   In this way, by calculating the positions on the line image 110 and copying the colors for all the points P1, P2,... Pn for the shape to be drawn, as shown in FIG. Can be drawn with gradation.

上述の如き構成の画像処理装置20では、受信した外部装置からの要求がグラデーションの描画処理である場合に、バンド方向の色の変化の割合が大きいか否かにより、グラデーションの処理を同色のベクタオブジェクトのフィルにより行うか、イメージにより描画するかの判定を行い、その判定結果に基づいて、バンド方向の色の変化の割合が大きい場合には、グラデーションのラインイメージを作成してパスの塗りつぶし処理を行い、ラインイメージによりパスの領域を描画し、また、上記判定結果に基づいて、バンド方向の色の変化の割合が小さい場合には、指定された幅で塗ることにより、同じ色の領域をパスで描画するので、グラデーションの描画に関して1ラインイメージを作成することで、複雑なグラデーションの色の変化についても処理速度の低下が起きることなく、また、単純なグラデーションについてはフィルにより高速に処理することができる。   In the image processing apparatus 20 configured as described above, when the received request from the external apparatus is the gradation drawing process, the gradation process is performed depending on whether the rate of color change in the band direction is large or not. Judgment is made by filling the object or drawing by image. Based on the result of the decision, if the rate of color change in the band direction is large, a line image of gradation is created and the path is filled. And draw the pass area with the line image, and if the rate of color change in the band direction is small based on the determination result, paint the area with the same color by painting with the specified width. Since drawing is done with a pass, creating a one-line image for gradation drawing makes it possible to change complex gradation colors. Have without also lowering the processing speed occurs and, also, for the simple gradient can be processed at high speed by the fill.

本発明の画像処理装置とホストコンピュータを有する印刷システムを示すブロック図である。1 is a block diagram showing a printing system having an image processing apparatus and a host computer of the present invention. 本発明の画像処理装置の機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the image processing apparatus of this invention. 本発明の画像処理装置における描画データ処理部の機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the drawing data process part in the image processing apparatus of this invention. グラデーションの方向についての例を模式的示す図である。It is a figure which shows typically the example about the direction of gradation. 本発明の画像処理装置におけるグラデーションの描画処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the drawing process of the gradation in the image processing apparatus of this invention. 本発明の画像処理装置により描画するグラデーションの例を模式的に示す図である。It is a figure which shows typically the example of the gradation drawn with the image processing apparatus of this invention. 本発明の画像処理装置により作成したラインイメージを模式的に示す図である。It is a figure which shows typically the line image produced with the image processing apparatus of this invention. 描画対象の外接矩形と指定されたグラデーションの開始位置、終了位置が一致していない場合の例を模式的示す図である。It is a figure which shows typically the example in case the starting position and end position of the designated gradation do not correspond with the circumscribed rectangle of drawing object. 指定点の外側の領域を含めたラインイメージを模式的示す図である。It is a figure which shows typically the line image including the area | region outside the designated point. 本発明の画像処理装置のイメージ処理部によるイメージの描画過程を模式的示す図である。It is a figure which shows typically the image drawing process by the image processing part of the image processing apparatus of this invention. 形状全体をグラデーションにより描画したイメージを模式的示す図である。It is a figure which shows typically the image which drawn the whole shape by gradation.

符号の説明Explanation of symbols

1 印刷システム、10 ホストコンピュータ、15 ネットワーク、20 画像処理装置、30 CPU、40 ROM、31 データ受信部、32 データ解析部、33 描画データ処理部、34 描画部、35 メモリ管理部、36 システム制御部、50 RAM、60 操作パネル部、70 印刷部、80 通信インターフェース、90 バス、331 描画環境管理部、332イメージ処理部、333 ベクター処理部、334 文字処理部、335 クリップ処理部、336 ディスプレイリスト作成部、3331 グラデーション処理判定部、3332 グラデーションイメージ処理部、3333 フィル処理部、3334 ストローク処理部 1 printing system, 10 host computer, 15 network, 20 image processing device, 30 CPU, 40 ROM, 31 data receiving unit, 32 data analyzing unit, 33 drawing data processing unit, 34 drawing unit, 35 memory management unit, 36 system control Part, 50 RAM, 60 operation panel part, 70 printing part, 80 communication interface, 90 bus, 331 drawing environment management part, 332 image processing part, 333 vector processing part, 334 character processing part, 335 clip processing part, 336 display list Creation unit, 3331 Gradation processing determination unit, 3332 Gradation image processing unit, 3333 Fill processing unit, 3334 Stroke processing unit

Claims (6)

外部装置と通信するための通信手段と、
上記通信手段により受信した外部装置からの要求がグラデーションの描画処理である場合に、バンド方向の色の変化の割合を閾値との比較結果に基づき判定するグラデーション処理方法判定手段と、
指定されたグラデーションのイメージを作成するグラデーションイメージ作成手段と、
パスの塗りつぶし処理を行うフィル処理手段と、
パスを指定された幅で塗るストローク処理手段を備え、
上記グラデーション処理方法判定手段による判定結果に基づいて、バンド方向の色の変化の割合が大きい場合には、上記グラデーションイメージ作成手段によりグラデーションのラインイメージを作成して上記フィル処理手段によりパスの塗りつぶし処理を行い、ラインイメージによりパスの領域を描画し、
上記グラデーション処理方法判定手段による判定結果に基づいて、バンド方向の色の変化の割合が小さい場合には上記ストローク処理手段によりパスを指定された幅で塗ることにより、同じ色の領域をパスで描画することを特徴とする画像処理装置。
A communication means for communicating with an external device;
A gradation processing method determination unit that determines a rate of change in color in the band direction based on a comparison result with a threshold when the request from the external device received by the communication unit is a gradation drawing process;
A gradient image creation means for creating a specified gradient image;
Fill processing means for performing path filling processing;
It has stroke processing means to paint the path with specified width,
Based on the determination result by the gradation process determining unit, when the rate of change of the color of the band direction is large, the path through the fill processing means to create a line image of the gradient by the gradient image creation means filling process , Draw the path area with the line image,
Based on the determination result by the gradation processing method determining means, when the rate of color change in the band direction is small, the same color area is drawn with the pass by painting the path with the specified width by the stroke processing means. An image processing apparatus.
上記グラデーションイメージ作成手段は、指定されたグラデーションの開始位置、終了位置、描画対象の外接矩形領域及びグラデーションで指定された色情報を元にグラデーションのラインイメージを作成することを特徴とする請求項1記載の画像処理装置。   2. The gradation image creating means creates a gradation line image based on a designated gradation start position and end position, a circumscribed rectangular area to be drawn, and color information designated by gradation. The image processing apparatus described. 上記グラデーションイメージ作成手段は、描画対象の外接矩形と指定されたグラデーションの開始位置、終了位置が一致していない場合、その領域を含めたラインイメージを作成することを特徴とする請求項2記載の画像処理装置。   3. The gradation image creating means creates a line image including the area when a circumscribed rectangle to be drawn does not coincide with a designated gradation start position and end position. Image processing device. 上記グラデーションイメージ作成手段は、グラデーションの開始位置と終了位置が描画対象領域の外接矩形の外側にある場合、外接矩形を描画できる長さのラインイメージを作成することを特徴とする請求項2記載の画像処理装置。   3. The gradation image creating means creates a line image having a length capable of drawing the circumscribed rectangle when the start position and the end position of the gradation are outside the circumscribed rectangle of the drawing target area. Image processing device. 上記グラデーション処理方法判定手段は、対象となる走査線のイメージデータに対して同じ色のドットが何ドット続いているかを分析して、所定の閾値と比較し、続けて配列される同じ色のドット数が閾値よりも小さければ、色変化の割合が大きいと判定することを特徴とする請求項1乃至請求項4の何れか1項に記載の画像処理装置。The gradation processing method determining means analyzes how many dots of the same color continue for the image data of the target scanning line, compares it with a predetermined threshold value, and continuously arranges dots of the same color The image processing apparatus according to claim 1, wherein if the number is smaller than a threshold value, it is determined that the color change rate is large. 外部装置と通信するための通信手段により受信した上記外部装置からの要求に応じて描画を行う画像処理装置に備えられたコンピュータにより実行される画像処理プログラムであって、
受信した外部装置からの要求がグラデーションの描画処理である場合に、バンド方向の色の変化の割合を閾値との比較結果に基づき判定し、
その判定結果に基づいて、バンド方向の色の変化の割合が大きい場合には、グラデーションのラインイメージを作成してパスの塗りつぶし処理を行い、ラインイメージによりパスの領域を描画し、
また、上記判定結果に基づいて、バンド方向の色の変化の割合が小さい場合には、指定された幅で塗ることにより、同じ色の領域をパスで描画する処理を上記画像処理装置に備えられたコンピュータにより実行させることを特徴とする画像処理プログラム。
An image processing program executed by a computer provided in an image processing apparatus that performs drawing in response to a request from the external apparatus received by a communication unit for communicating with an external apparatus,
When the received request from the external device is a gradation drawing process, the rate of color change in the band direction is determined based on the comparison result with the threshold ,
Based on the determination result, if the rate of color change in the band direction is large, create a gradation line image, fill the path, draw the path area with the line image,
In addition, based on the determination result, when the rate of color change in the band direction is small, the image processing apparatus is provided with a process of drawing an area of the same color with a pass by painting with a specified width. An image processing program that is executed by a computer.
JP2008220192A 2008-08-28 2008-08-28 Image processing apparatus and image processing program Expired - Fee Related JP5112223B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008220192A JP5112223B2 (en) 2008-08-28 2008-08-28 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008220192A JP5112223B2 (en) 2008-08-28 2008-08-28 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2010056931A JP2010056931A (en) 2010-03-11
JP5112223B2 true JP5112223B2 (en) 2013-01-09

Family

ID=42072369

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008220192A Expired - Fee Related JP5112223B2 (en) 2008-08-28 2008-08-28 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP5112223B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7316829B2 (en) 2019-04-15 2023-07-28 キヤノン株式会社 Information processing device, information processing method, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0787302A (en) * 1993-09-16 1995-03-31 Fuji Xerox Co Ltd Document processor

Also Published As

Publication number Publication date
JP2010056931A (en) 2010-03-11

Similar Documents

Publication Publication Date Title
JP6029344B2 (en) Image processing apparatus, image processing method, and program
US8149461B2 (en) Image processing apparatus and method to compensate for displacement of different printing positions in different colors
JP2011070337A (en) Image processing system and image processing program
JP3680109B2 (en) Printing system
JP4510847B2 (en) Image processing apparatus and image processing program
US7330196B2 (en) Apparatus and method for image processing capable of accelerating image overlay process
JP6202908B2 (en) Image processing apparatus, image processing method, and program
US10593030B2 (en) Image forming apparatus capable of changing thickness of character, control method therefor, and storage medium storing control program therefor
KR100709364B1 (en) Method and apparatus for generating pattern image
JP5112223B2 (en) Image processing apparatus and image processing program
CN105704347A (en) Image processing apparatus and image processing method
JP2019098580A (en) Image forming apparatus
EP1988490A1 (en) Selective density enhancement of graphical objects
JP2013026865A (en) Image processing apparatus and image processing method
JP2017097463A (en) Print control system, print control device, and program
JP6904717B2 (en) Image processing equipment, its control method, and programs
JP5790000B2 (en) Printing apparatus and printing method therefor
JP2007083556A (en) Image processor and image processing method
US8792133B2 (en) Rendering data processing apparatus, rendering data processing method, print apparatus, print method, and computer-readable medium
JP6145877B2 (en) Color mode determination apparatus and program
JP5720335B2 (en) Image processing apparatus and image processing program
JP3968989B2 (en) Image processing apparatus, image processing method, and storage medium storing image processing program
JP2007081886A (en) Drawing processing apparatus
JPH11138920A (en) Image processor, data processing method therefor and memory medium storing computer readable program
JP5764992B2 (en) Image processing apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120321

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120507

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121010

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151019

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5112223

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees