JP2005260871A - Image processor and image processing method, and computer-readable recording medium with program for allowing computer to execute image processing method recorded thereon - Google Patents

Image processor and image processing method, and computer-readable recording medium with program for allowing computer to execute image processing method recorded thereon Download PDF

Info

Publication number
JP2005260871A
JP2005260871A JP2004073331A JP2004073331A JP2005260871A JP 2005260871 A JP2005260871 A JP 2005260871A JP 2004073331 A JP2004073331 A JP 2004073331A JP 2004073331 A JP2004073331 A JP 2004073331A JP 2005260871 A JP2005260871 A JP 2005260871A
Authority
JP
Japan
Prior art keywords
horizontal
value
clipping
horizontal line
polygon
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004073331A
Other languages
Japanese (ja)
Inventor
Naohito Shiraishi
尚人 白石
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2004073331A priority Critical patent/JP2005260871A/en
Publication of JP2005260871A publication Critical patent/JP2005260871A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To execute image drawing processing of an optional clipping graphic with a small memory capacity at high speed. <P>SOLUTION: An image processor for capturing optional polygonal clipping information and providing an output of a drawn image includes: a main memory 104 for storing the polygonal clipping information and image data after image drawing; a CPU 101 for writing polygonal clipping information to the main memory 104 and transferring a band image drawing command; and an image drawing unit 105 that scans the polygonal clipping information stored in the main memory 104 in a horizontal direction to read a start point and an end point of the clipping graphic in crossing with the scanned line for each line to execute polygonal clipping, and that draws an image of the result to the main memory 104 as band data. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、デジタル複写機、デジタルカメラ、プリンタなどに利用される画像処理装置および画像処理方法、並びに画像処理方法をコンピュータに実行させるプログラムを記録したコンピュータ読み取り可能な記録媒体に関するものである。   The present invention relates to an image processing apparatus and an image processing method used for a digital copying machine, a digital camera, a printer, and the like, and a computer-readable recording medium on which a program for causing a computer to execute the image processing method is recorded.

従来、クリッピング処理は3Dグラフィックスのポリゴン単位のデータを幾何変換し、2次元スクリーンへ投影させたときに、2次元スクリーンからはみ出た部分をなくすために2次元クリッピングを行なうアルゴリズムが幾つか知られている。その代表例として、リエントラント型多角形クリッピング方式がある(たとえば、非特許文献1参照)。   Conventionally, several clipping algorithms have been known to perform 2D clipping in order to eliminate the portion that protrudes from the 2D screen when geometrically transforming 3D graphics polygon data and projecting it onto the 2D screen. ing. A typical example is a reentrant polygon clipping method (see Non-Patent Document 1, for example).

また、図25に示すように、2次元スクリーンのクリッピングインドウに対しP1〜P8の端点を結ぶ多角形をクリッピングするとき、まずは、クリッピングインドウの左端に注目し、P1〜P8間のラインクロスする点、P1〜P2間をクロスする点をそれぞれ求め、端点を増やし接続し、新たな多角形を形成し、同様にクリッピングインドウの上に注目して同様な処理を行ない、新たな多角形を形成し、同様にクリッピングインドウの右端に注目し、同様な処理を行ない、新たな多角形を形成し、同様にクリッピングインドウの下に注目し、同様な処理を行ない、新たな多角形を形成し、Q1〜Q10の端点を持ったクリッピング後の多角形を形成することが可能である。   Also, as shown in FIG. 25, when clipping a polygon that connects the end points of P1 to P8 to the clipping window of the two-dimensional screen, first, pay attention to the left edge of the clipping window, and the line crossing between P1 and P8 , Find the points that cross between P1 and P2, respectively, increase the number of end points and connect them to form a new polygon. Similarly, pay attention to the clipping window and perform the same processing to form a new polygon. Similarly, pay attention to the right edge of the clipping window and perform the same processing to form a new polygon, and similarly pay attention to the bottom of the clipping window and perform the same processing to form a new polygon, Q1 It is possible to form a polygon after clipping having an end point of ~ Q10.

そして、この非特許文献1のSutherland−Hodgmanのアルゴリズムをハードウエア化した方式としてクリッピング処理装置が開示されている(たとえば、特許文献1参照)。一般的に、このSutherland−Hodgmanのアルゴリズムは2次元スクリーンのような4角形のクリッピング図形に対してクリッピング処理を行ない、かなり複雑化するが、多角形のクリッピングも可能である。凹図形の多角形のクリッピングの場合は、常に多角形クリッピングの内部および外部を判定しながら処理を進める必要がある。   A clipping processing device is disclosed as a hardware implementation of the Sutherland-Hodgman algorithm of Non-Patent Document 1 (see, for example, Patent Document 1). In general, the Sutherland-Hodgman algorithm performs a clipping process on a quadrangular clipping figure such as a two-dimensional screen and is considerably complicated, but polygon clipping is also possible. In the case of clipping of concave polygons, it is necessary to proceed while always determining the inside and outside of polygon clipping.

また、プリンタのシステムでの任意図形のクリッピング処理の例であり、多角形クリッピングの図形を別領域に描画し、バンドバッファへ図形を描画するとき、その図形の位置に対応する先に別領域へ描画された多角形クリッピング画像を読み込んでAND処理を行ない、バンドバッファへ描画する方法が知られている(たとえば、特許文献2参照)。   In addition, this is an example of clipping processing for an arbitrary figure in the printer system. When a polygon clipping figure is drawn in another area and the figure is drawn in the band buffer, the area corresponding to the position of that figure is moved to another area. A method is known in which a drawn polygon clipping image is read, AND processing is performed, and drawing is performed in a band buffer (see, for example, Patent Document 2).

また、2次元多角形図形を各水平ライン毎に開始点X、終点X値へ変換し、描画するオーダードエッジリストアルゴリズム方式が知られている(たとえば、非特許文献2)。この方式を3次元グラフィックスのポリゴン描画でハードウエア化した方式が画像処理装置として開示されている(たとえば、特許文献3参照)。   Also, an ordered edge list algorithm method is known in which a two-dimensional polygonal figure is converted into a start point X and an end point X value for each horizontal line and drawn (for example, Non-Patent Document 2). A method in which this method is implemented as hardware by polygon drawing of three-dimensional graphics is disclosed as an image processing apparatus (see, for example, Patent Document 3).

特許第2983728号公報Japanese Patent No. 2983728 特開平8−297737号公報JP-A-8-297737 特許第3332165号公報Japanese Patent No. 3332165 Sutherland,Ivan,E And Hodgman Gray,W"Reentrant Polygon Clipping"CACM Vol.17 pp32−42,1974:David F.Rogers"Procedural Elements For Computer Graphics"1985Sutherland, Ivan, E And Hodgman Gray, W "Reentrant Polygon Clipping" CACM Vol.17 pp32-42, 1974: David F. Rogers "Procedural Elements For Computer Graphics" 1985 David F.Rogers"Procedural Elements For Computer Graphics"1985David F. Rogers "Procedural Elements For Computer Graphics" 1985

しかしながら、上記に示されるような非特許文献1(Sutherland−Hodgman)のアルゴリズムを使用した方法にあっては、2次元スクリーンのような四角形のクリッピング図形に対して処理する場合には、あまり演算量が気にならないが、任意多角形図形に行なう場合、多くの演算量と、クリッピング図形の辺ごとにクリッピング処理を行なうことで、多くのステップを必要とするため、多くの処理時間がかかるとともに、作成されたクリッピング後の図形も、当初、四角形描画の処理が任意の多角形描画の処理になるため、図形を描画するアルゴリズムも複雑になるとともにハードウエア化を行なうことが困難であった。   However, in the method using the algorithm of Non-Patent Document 1 (Sutherland-Hodgman) as shown above, when processing is performed on a rectangular clipping figure such as a two-dimensional screen, the amount of calculation is too small. I don't care about it, but when performing it on an arbitrary polygon figure, it takes a lot of processing time because it requires many steps by performing a large amount of computation and clipping processing for each side of the clipping figure. In the created figure after clipping, since the process of drawing a rectangle is initially an arbitrary polygon drawing process, the algorithm for drawing the figure becomes complicated and it is difficult to implement the hardware.

また、特許文献2に開示されている方法にあっては、任意のクリッピング図形を別領域へ描画された形で記憶するため、MAX時は、バンド領域分あるいははページ領域分の記憶領域を必要とする。また、描画時に描画された任意クリッピング図形を常に読み込み、クリッピング図形と描画図形のAND処理を行ないながらバンドメモリへ描画するため、メモリのアクセス量が大きくなり、処理速度の低下も生じるといった問題点があった。   In addition, in the method disclosed in Patent Document 2, since an arbitrary clipping figure is stored in a form drawn in another area, a storage area for a band area or a page area is required for MAX. And In addition, since the arbitrary clipping figure drawn at the time of drawing is always read and drawing to the band memory while performing the AND processing of the clipping figure and the drawing figure, the amount of memory access increases and the processing speed also decreases. there were.

本発明は、上記に鑑みてなされたものであって、任意のクリッピング図形の描画処理を少ないメモリ容量でかつ高速に実行可能にすることを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to enable drawing processing of an arbitrary clipping figure with a small memory capacity and at high speed.

上述した課題を解決し、目的を達成するために、請求項1にかかる発明は、任意の多角形クリッピング情報を取り込んで描画出力を行なう画像処理装置において、前記多角形クリッピング情報、描画後画像データを格納するデータ格納領域と、前記データ格納領域に多角形クリッピング情報を書き込み、バンドの描画コマンドを転送する転送・制御手段と、前記データ格納領域に格納されている前記多角形クリッピング情報を水平方向にスキャンし、そのラインと交差するクリッピング図形の開始点および終点をライン毎に読み込んで多角形クリッピングを実行し、前記データ格納領域にバンドデータとして描画する描画手段と、を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, the invention according to claim 1 is an image processing apparatus that captures arbitrary polygon clipping information and performs drawing output. A data storage area for storing data, transfer / control means for writing polygon clipping information in the data storage area and transferring a band drawing command, and the polygon clipping information stored in the data storage area in the horizontal direction. And drawing means for performing polygon clipping by reading the starting point and the ending point of a clipping figure that intersects the line for each line, drawing the data as band data in the data storage area, and To do.

この請求項1にかかる発明によれば、描画手段が、任意の多角形クリッピング図形を、水平方向にライン毎にスキャンし、この水平ラインにクロスする任意クリッピング図形の開始点と終点の情報のみを読み込み、描画するメモリワードの描画パターンとクリッピングパターンをリアルタイムで生成してデータ格納領域にバンドデータとして描画することにより、各水平スキャンラインとクロスする開始点値と終点値のみの情報として図形を描画することが可能になる。   According to the first aspect of the present invention, the drawing means scans an arbitrary polygon clipping figure for each line in the horizontal direction, and obtains only information on the start and end points of the arbitrary clipping figure that crosses the horizontal line. By drawing the drawing pattern and clipping pattern of the memory word to be read and drawn in real time and drawing it as band data in the data storage area, the figure is drawn only as the information of the start point value and end point value crossing each horizontal scan line. It becomes possible to do.

また、請求項2にかかる発明は、前記描画処理手段は、描画コマンド解析手段と、水平クリッピング情報生成手段と、水平ライン描画手段と、水平クリッピング情報生成手段と、を備え、前記描画コマンド解析手段は、前記転送・制御手段からの描画コマンドを受け取り、描画する水平ラインのY値を前記水平クリッピング情報生成手段へ転送し、前記水平ライン描画手段へ水平ラインの開始X値と終点X値を送り、前記水平クリッピング情報生成手段は、前記描画コマンド解析手段から描画する水平ラインのY値を受け取り、前記多角形クリッピング情報からY値の水平方向の多角形クリッピング情報を読み込み、前記水平ライン描画手段は、前記描画コマンド解析手段から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、前記データ格納手段のワードごとの描画パターンを生成して前記階調処理手段へ転送し、描画ワードの水平ワード数である描画ワード番号を前記水平クリッピング情報生成手段へ転送し、前記水平クリッピング情報生成手段は、前記水平ライン描画手段からの描画ワード番号に対応するクリップパターンを生成し、当該描画後画像データを前記データ格納領域に描画することを特徴とする。   According to a second aspect of the present invention, the drawing processing means comprises drawing command analyzing means, horizontal clipping information generating means, horizontal line drawing means, and horizontal clipping information generating means, and the drawing command analyzing means. Receives the drawing command from the transfer / control means, transfers the Y value of the horizontal line to be drawn to the horizontal clipping information generation means, and sends the start X value and end point X value of the horizontal line to the horizontal line drawing means. The horizontal clipping information generating means receives the Y value of the horizontal line to be drawn from the drawing command analyzing means, reads the horizontal polygon clipping information of the Y value from the polygon clipping information, and the horizontal line drawing means The horizontal line drawing process is started from the start X value and the end X value of the horizontal line from the drawing command analysis means. Then, a drawing pattern for each word in the data storage means is generated and transferred to the gradation processing means, a drawing word number that is the number of horizontal words of the drawing word is transferred to the horizontal clipping information generating means, and the horizontal clipping The information generating means generates a clip pattern corresponding to the drawing word number from the horizontal line drawing means, and draws the post-drawing image data in the data storage area.

この請求項2にかかる発明によれば、請求項1において、描画コマンド解析手段が、転送・制御手段からの描画コマンドを受け取って描画する水平ラインのY値を水平クリッピング情報生成手段へ転送し、また、水平ライン描画手段へ水平ラインの開始X値と終点X値を送り、水平クリッピング情報生成手段が、描画コマンド解析手段から描画する水平ラインのY値を受け取り、上記多角形クリッピング情報からY値の水平方向の多角形クリッピング情報を読み込み、水平ライン描画手段が、描画コマンド解析手段から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、前記データ格納手段のワードごとの描画パターンを生成して階調処理手段へ転送し、描画ワードの水平ワード数である描画ワード番号を水平クリッピング情報生成手段へ転送し、水平クリッピング情報生成手段が、水平ライン描画手段からの描画ワード番号に対応するクリップパターンを生成し、当該画像描画データをデータ格納領域に描画することにより、各水平スキャンラインとクロスする開始点値と終点値のみの情報として任意の多角形クリッピング図形を描画することが可能になる。   According to the invention of claim 2, in claim 1, the drawing command analysis means receives the drawing command from the transfer / control means and transfers the Y value of the horizontal line to be drawn to the horizontal clipping information generation means, Also, the horizontal line start means and the end point X value are sent to the horizontal line drawing means, and the horizontal clipping information generating means receives the Y value of the horizontal line to be drawn from the drawing command analyzing means, and the Y value is obtained from the polygon clipping information. The horizontal polygon drawing information is read, and the horizontal line drawing means starts drawing processing of the horizontal line from the start X value and the end point X value of the horizontal line from the drawing command analysis means, and for each word of the data storage means A drawing pattern is generated and transferred to the gradation processing means, and the drawing word number, which is the number of drawing words in the horizontal direction, is Each horizontal scan line is transferred to the information generation unit, and the horizontal clipping information generation unit generates a clip pattern corresponding to the drawing word number from the horizontal line drawing unit and draws the image drawing data in the data storage area. It is possible to draw an arbitrary polygon clipping figure as information of only the starting point value and the ending point value that crosses.

また、請求項3にかかる発明は、任意の多角形クリッピング情報を取り込んで描画出力を行なう画像処理方法において、前記多角形クリッピング情報、描画後画像バンドデータを格納するデータ格納領域と、前記データ格納領域に多角形クリッピング情報を書き込み、バンドの描画コマンドを転送する転送・制御工程と、前記データ格納領域に格納されている前記多角形クリッピング情報を水平方向にスキャンし、そのラインと交差するクリッピング図形の開始点および終点をライン毎に読み込んで多角形クリッピングを実行し、前記データ格納領域に描画後画像データバンドとして描画する描画工程と、を含むことを特徴とする。   According to a third aspect of the present invention, there is provided an image processing method for capturing and outputting arbitrary polygon clipping information, a data storage area for storing the polygon clipping information and post-drawing image band data, and the data storage. Transfer and control process for writing polygon clipping information in the area and transferring the band drawing command, and clipping figure that scans the polygon clipping information stored in the data storage area in the horizontal direction and intersects the line A drawing step of reading the starting point and the ending point of each line for each line, executing polygon clipping, and drawing as a post-drawing image data band in the data storage area.

この請求項3にかかる発明によれば、描画工程において、任意の多角形クリッピング図形を、水平方向にライン毎にスキャンし、この水平ラインにクロスする任意クリッピング図形の開始点と終点の情報のみを読み込み、描画するメモリワードの描画パターンとクリッピングパターンをリアルタイムで生成してデータ格納領域にバンドデータとして描画することにより、各水平スキャンラインとクロスする開始点値と終点値のみの情報として図形を描画することが可能になる。   According to the invention of claim 3, in the drawing step, an arbitrary polygon clipping figure is scanned for each line in the horizontal direction, and only the information on the start point and end point of the arbitrary clipping figure that crosses the horizontal line is obtained. By drawing the drawing pattern and clipping pattern of the memory word to be read and drawn in real time and drawing it as band data in the data storage area, the figure is drawn only as the information of the start point value and end point value crossing each horizontal scan line. It becomes possible to do.

また、請求項4にかかる発明は、前記描画処理工程は、描画コマンド解析工程と、水平クリッピング情報生成工程と、水平ライン描画工程と、水平クリッピング情報生成工程と、を含み、前記描画コマンド解析工程は、前記転送・制御工程からの描画コマンドを受け取り、描画する水平ラインのY値を前記水平クリッピング情報生成工程へ転送し、前記水平ライン描画工程へ水平ラインの開始X値と終点X値を送り、前記水平クリッピング情報生成工程は、前記描画コマンド解析工程から描画する水平ラインのY値を受け取り、前記多角形クリッピング情報からY値の水平方向の多角形クリッピング情報を読み込み、前記水平ライン描画工程は、前記描画コマンド解析工程から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、前記データ格納手段のワードごとの描画パターンを生成して前記階調処理工程へ転送し、描画ワードの水平ワード数である描画ワード番号を前記水平クリッピング情報生成工程へ転送し、前記水平クリッピング情報生成工程は、前記水平ライン描画工程からの描画ワード番号に対応するクリップパターンを生成し、当該描画後画像データを前記データ格納領域に描画することを特徴とする。   According to a fourth aspect of the present invention, the drawing processing step includes a drawing command analyzing step, a horizontal clipping information generating step, a horizontal line drawing step, and a horizontal clipping information generating step, and the drawing command analyzing step Receives the drawing command from the transfer / control step, transfers the Y value of the horizontal line to be drawn to the horizontal clipping information generation step, and sends the start X value and the end point X value of the horizontal line to the horizontal line drawing step. The horizontal clipping information generating step receives the Y value of the horizontal line to be drawn from the drawing command analyzing step, reads the horizontal polygon clipping information of the Y value from the polygon clipping information, and the horizontal line drawing step From the drawing command analysis step, the horizontal line drawing process is started from the horizontal line start X value and end point X value. Then, a drawing pattern for each word in the data storage means is generated and transferred to the gradation processing step, a drawing word number that is the number of horizontal words of the drawing word is transferred to the horizontal clipping information generation step, and the horizontal clipping is performed. The information generation step generates a clip pattern corresponding to the drawing word number from the horizontal line drawing step, and draws the drawn image data in the data storage area.

この請求項4にかかる発明によれば、請求項3において、描画コマンド解析工程が、転送・制御工程からの描画コマンドを受け取て描画する水平ラインのY値を水平クリッピング情報生成工程へ転送し、また、水平ライン描画工程へ水平ラインの開始X値と終点X値を送り、水平クリッピング情報生成工程が、描画コマンド解析工程から描画する水平ラインのY値を受け取り、上記多角形クリッピング情報からY値の水平方向の多角形クリッピング情報を読み込み、水平ライン描画工程が、描画コマンド解析工程から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、前記データ格納工程のワードごとの描画パターンを生成して階調処理工程へ転送し、描画ワードの水平ワード数である描画ワード番号を水平クリッピング情報生成工程へ転送し、水平クリッピング情報生成工程が、水平ライン描画工程からの描画ワード番号に対応するクリップパターンを生成し、当該描画後画像データをデータ格納領域に描画することにより、各水平スキャンラインとクロスする開始点値と終点値のみの情報として任意の多角形クリッピング図形を描画することが可能になる。   According to the invention of claim 4, in claim 3, the drawing command analysis step receives the drawing command from the transfer / control step and transfers the Y value of the horizontal line to be drawn to the horizontal clipping information generation step, Also, the horizontal line start process sends the horizontal line start X value and end point X value, and the horizontal clipping information generation process receives the Y value of the horizontal line to be drawn from the drawing command analysis process. The horizontal polygon clipping information is read, and the horizontal line drawing process starts the drawing process of the horizontal line from the start X value and the end point X value of the horizontal line from the drawing command analysis process. A drawing pattern is generated and transferred to the gradation processing step, and the drawing word number, which is the horizontal word number of the drawing word, is horizontally clipped. The horizontal clipping information generation step generates a clip pattern corresponding to the drawing word number from the horizontal line drawing step, and draws the image data after drawing in the data storage area, thereby performing each horizontal scan. It becomes possible to draw an arbitrary polygon clipping figure as information of only the start point value and the end point value crossing the line.

また、請求項5にかかる発明は、前記請求項3または4に記載の画像処理方法を、コンピュータに実行させるプログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。   The invention according to claim 5 is a computer-readable recording medium in which a program for causing a computer to execute the image processing method according to claim 3 or 4 is recorded.

この請求項5にかかる発明によれば、前記請求項3または4に記載の画像処理方法を、プログラムとしてコンピュータ読み取り可能な記録媒体に記録することにより、コンピュータ上で前記請求項3または4に記載の画像処理方法を実行することが可能になる。   According to the invention according to claim 5, the image processing method according to claim 3 or 4 is recorded on a computer-readable recording medium as a program, whereby the image processing method according to claim 3 or 4 is recorded on a computer. It is possible to execute the image processing method.

本発明(請求項1)にかかる画像処理装置は、描画手段が、任意の多角形クリッピング図形を、水平方向にライン毎にスキャンし、この水平ラインにクロスする任意クリッピング図形の開始点と終点の情報のみを読み込み、描画するメモリワードの描画パターンとクリッピングパターンをリアルタイムで生成してデータ格納領域にバンドデータとして描画することにより、各水平スキャンラインとクロスする開始点値と終点値のみの情報として図形を描画することが可能になるため、任意のクリッピング図形の描画処理を少ないメモリ容量でかつ高速に実行することができるという効果を奏する。   In the image processing apparatus according to the present invention (Claim 1), the drawing means scans an arbitrary polygon clipping figure for each line in the horizontal direction, and sets the start point and end point of the arbitrary clipping figure that crosses the horizontal line. By reading only the information, generating the drawing pattern and clipping pattern of the memory word to be drawn in real time and drawing it as band data in the data storage area, only the start point value and the end point value crossing each horizontal scan line Since a figure can be drawn, the drawing process of an arbitrary clipping figure can be executed at a high speed with a small memory capacity.

また、本発明(請求項2)にかかる画像処理装置は、請求項1において、描画コマンド解析手段が、転送・制御手段からの描画コマンドを受け取て描画する水平ラインのY値を水平クリッピング情報生成手段へ転送し、また、水平ライン描画手段へ水平ラインの開始X値と終点X値を送り、水平クリッピング情報生成手段が、描画コマンド解析手段から描画する水平ラインのY値を受け取り、上記多角形クリッピング情報からY値の水平方向の多角形クリッピング情報を読み込み、水平ライン描画手段が、描画コマンド解析手段から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、前記データ格納手段のワードごとの描画パターンを生成して階調処理手段へ転送し、描画ワードの水平ワード数である描画ワード番号を水平クリッピング情報生成手段へ転送し、水平クリッピング情報生成手段が、水平ライン描画手段からの描画ワード番号に対応するクリップパターンを生成し、階調処理手段へ転送し、さらに階調処理手段が、水平ライン描画手段からの描画パターンと水平クリッピング情報生成手段からのクリップパターンから階調処理を行ない当該バンドデータをデータ格納領域に描画することにより、各水平スキャンラインとクロスする開始点値と終点値のみの情報として任意の多角形クリッピング図形を描画することが可能になるため、任意のクリッピング図形の描画処理を少ないメモリ容量でかつ高速に実行することができるという効果を奏する。   An image processing apparatus according to a second aspect of the present invention is the image processing apparatus according to the first aspect, wherein the drawing command analysis unit generates a horizontal clipping information by generating a Y value of a horizontal line to be drawn upon receiving a drawing command from the transfer / control unit. To the horizontal line drawing means, and the horizontal clipping information generating means receives the Y value of the horizontal line to be drawn from the drawing command analyzing means, and the polygon The horizontal polygon drawing information of the Y value is read from the clipping information, and the horizontal line drawing means starts the drawing process of the horizontal line from the start X value and the end point X value of the horizontal line from the drawing command analysis means, and stores the data The drawing pattern for each word of the means is generated and transferred to the gradation processing means, and the drawing word number, which is the horizontal word number of the drawing word, is stored. The horizontal clipping information generation unit generates a clip pattern corresponding to the drawing word number from the horizontal line drawing unit, transfers the clip pattern to the gradation processing unit, and the gradation processing unit further transfers the horizontal line to the clipping information generation unit. By performing gradation processing from the drawing pattern from the drawing means and the clip pattern from the horizontal clipping information generating means and drawing the band data in the data storage area, only the start point value and the end point value that cross each horizontal scan line can be obtained. Since any polygonal clipping figure can be drawn as information, the drawing process of any clipping figure can be executed at a high speed with a small memory capacity.

また、本発明(請求項3)にかかる画像処理方法は、描画工程において、任意の多角形クリッピング図形を、水平方向にライン毎にスキャンし、この水平ラインにクロスする任意クリッピング図形の開始点と終点の情報のみを読み込み、描画するメモリワードの描画パターンとクリッピングパターンをリアルタイムで生成してデータ格納領域にバンドデータとして描画することにより、各水平スキャンラインとクロスする開始点値と終点値のみの情報として図形を描画することが可能になるため、任意のクリッピング図形の描画処理を少ないメモリ容量でかつ高速に実行することができるという効果を奏する。   In the image processing method according to the present invention (claim 3), in the drawing step, an arbitrary polygonal clipping figure is scanned line by line in the horizontal direction, and the starting point of the arbitrary clipping figure that crosses the horizontal line By reading only the end point information, generating the drawing pattern and clipping pattern of the memory word to be drawn in real time and drawing it as band data in the data storage area, only the start point value and end point value that crosses each horizontal scan line Since it is possible to draw a graphic as information, there is an effect that a drawing process of an arbitrary clipping graphic can be executed at a high speed with a small memory capacity.

また、本発明(請求項4)にかかる画像処理方法は、請求項3において、描画コマンド解析工程が、転送・制御工程からの描画コマンドを受け取て描画する水平ラインのY値を水平クリッピング情報生成工程へ転送し、また、水平ライン描画工程へ水平ラインの開始X値と終点X値を送り、水平クリッピング情報生成工程が、描画コマンド解析工程から描画する水平ラインのY値を受け取り、上記多角形クリッピング情報からY値の水平方向の多角形クリッピング情報を読み込み、水平ライン描画工程が、描画コマンド解析工程から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、前記データ格納工程のワードごとの描画パターンを生成して階調処理工程へ転送し、描画ワードの水平ワード数である描画ワード番号を水平クリッピング情報生成工程へ転送し、水平クリッピング情報生成工程が、水平ライン描画工程からの描画ワード番号に対応するクリップパターンを生成し、階調処理工程へ転送し、さらに階調処理工程が、水平ライン描画工程からの描画パターンと水平クリッピング情報生成工程からのクリップパターンから階調処理を行ない当該バンドデータをデータ格納領域に描画することにより、各水平スキャンラインとクロスする開始点値と終点値のみの情報として任意の多角形クリッピング図形を描画することが可能になるため、任意のクリッピング図形の描画処理を少ないメモリ容量でかつ高速に実行することができるという効果を奏する。   The image processing method according to the present invention (Claim 4) is the image processing method according to Claim 3, wherein the drawing command analysis step receives the drawing command from the transfer / control step and generates the Y value of the horizontal line to be drawn. And the horizontal clipping information generation step receives the Y value of the horizontal line to be drawn from the drawing command analysis step, and sends the horizontal line to the horizontal line drawing step. The horizontal polygon clipping information of the Y value is read from the clipping information, and the horizontal line drawing process starts the horizontal line drawing process from the start X value and the end point X value of the horizontal line from the drawing command analysis process, and stores the data. A drawing pattern for each word in the process is generated and transferred to the gradation processing process, and the drawing word number, which is the horizontal word number of the drawing word, is stored. Transfer to the clipping information generation step, where the horizontal clipping information generation step generates a clip pattern corresponding to the drawing word number from the horizontal line drawing step, transfers it to the gradation processing step, and further the gradation processing step By performing gradation processing from the drawing pattern from the drawing process and the clip pattern from the horizontal clipping information generation process and drawing the band data in the data storage area, only the start point value and end point value crossing each horizontal scan line can be obtained. Since any polygonal clipping figure can be drawn as information, the drawing process of any clipping figure can be executed at a high speed with a small memory capacity.

また、本発明(請求項5)にかかる記録媒体は、プログラムとしてコンピュータ読み取り可能な記録媒体に記録することにより、コンピュータ上で前記請求項3または4に記載の画像処理方法を実行することができるという効果を奏する。   The recording medium according to the present invention (Claim 5) can execute the image processing method according to Claim 3 or 4 on a computer by recording the program on a computer-readable recording medium as a program. There is an effect.

以下に添付図面を参照して、この発明にかかる画像処理装置および画像処理方法、並びに画像処理方法をコンピュータに実行させるプログラムを記録したコンピュータ読み取り可能な記録媒体の最良な実施の形態を詳細に説明する。   Exemplary embodiments of an image processing apparatus, an image processing method, and a computer-readable recording medium storing a program for causing a computer to execute the image processing method will be described below in detail with reference to the accompanying drawings. To do.

本発明は、任意クリッピング図形を、各水平スキャンラインとクロスする開始点X値と終点X値の情報へ加工して記憶し、バンドメモリへ図形を描画するときに、描画する水平ラインにクロスする任意クリッピング図形の開始点X値と終点X値の情報のみを読み込み、リアルタイムで描画するメモリワードの描画パターンとクリッピングパターンを生成してAND処理を行ない、バンドメモリへ描画することにより、任意クリッピング図形での描画処理を高速に行なうことができ、しかも処理が単純であるためにハードウエア化が容易になり、かつ任意クリッピング図形を各水平スキャンラインとクロスする開始点X値と終点X値の情報のみを記憶して処理することで、記憶領域を少なくすることを可能とするものである。以下、具体的に説明する。   According to the present invention, an arbitrary clipping figure is processed and stored into information of a start point X value and an end point X value that cross each horizontal scan line, and when drawing a figure to the band memory, it crosses the horizontal line to be drawn. Read only the starting point X value and end point X value information of the arbitrary clipping figure, generate the drawing pattern and clipping pattern of the memory word to be drawn in real time, perform AND processing, and draw it in the band memory. Can be performed at high speed, and since the processing is simple, it is easy to implement hardware, and information on the start point X value and end point X value at which an arbitrary clipping figure crosses each horizontal scan line By storing and processing only this, it is possible to reduce the storage area. This will be specifically described below.

(実施の形態)
まず、本発明による画像処理装置が搭載される画像形成装置(プリンタ)の構成および動作について説明する。図1は、本発明の実施の形態にかかる画像形成装置の機構部の構成例を示す説明図である。以下、図1の画像形成装置をカラープリンタと記述する。なお、この実施の形態ではレーザーカラープリンタを例にとるが、インクジェットプリンタなど他のカラープリンタであってもよい。
(Embodiment)
First, the configuration and operation of an image forming apparatus (printer) in which the image processing apparatus according to the present invention is mounted will be described. FIG. 1 is an explanatory diagram illustrating a configuration example of a mechanism unit of an image forming apparatus according to an embodiment of the present invention. Hereinafter, the image forming apparatus of FIG. 1 is described as a color printer. In this embodiment, a laser color printer is taken as an example, but another color printer such as an ink jet printer may be used.

図1に示すカラープリンタ100は、レーザー光書込みおよび電子写真プロセスにしたがい、4色(Y(イエロー)、M(マゼンタ)、C(シアン)、K(ブラック))の画像をそれぞれ独立に配置された作像系1Y、1M、1C、1Kで形成し、この4色の画像を記録紙に順次重ね合わせて転写し合成する4ドラムタンデムエンジンタイプの画像形成装置である。   The color printer 100 shown in FIG. 1 has four colors (Y (yellow), M (magenta), C (cyan)), and K (black)) arranged independently according to the laser beam writing and the electrophotographic process. This is a four-drum tandem engine type image forming apparatus that forms the image forming systems 1Y, 1M, 1C, and 1K, and sequentially superimposes and transfers these four color images on a recording sheet.

各作像系1Y、1M、1C、1Kは、像担持体としての感光体、たとえば小径のOPC(有機感光体)ドラム2Y、2M、2C、2Kを有し、このOPCドラム2Y、2M、2C、2Kを取り囲むように作像の上流側から帯電手段としての帯電ローラ3Y、3M、3C、3Kと、OPCドラム2Y、2M、2C、2K上の静電潜像をそれぞれ現像剤で現像してY、M、C、K各色のトナー像とする現像装置4Y、4M、4C、4Kと、クリーニング装置5Y、5M、5C、5Kと、除電装置6Y、6M、6C、6Kなどが配置されている。   Each of the image forming systems 1Y, 1M, 1C, and 1K includes a photoconductor as an image carrier, for example, small-diameter OPC (organic photoconductor) drums 2Y, 2M, 2C, and 2K, and the OPC drums 2Y, 2M, and 2C. The electrostatic latent images on the charging rollers 3Y, 3M, 3C, and 3K as charging means and the OPC drums 2Y, 2M, 2C, and 2K are developed with a developer from the upstream side of image formation so as to surround 2K. Developing devices 4Y, 4M, 4C, and 4K that generate toner images of Y, M, C, and K colors, cleaning devices 5Y, 5M, 5C, and 5K, and static eliminating devices 6Y, 6M, 6C, and 6K are arranged. .

各現像装置4Y、4M、4C、4Kの脇には、Yトナー、Mトナー、Cトナー、Kトナーをそれぞれ現像装置4Y、4M、4C、4Kへ所定の色のトナーを補給するトナーボトルユニット7Y、7M、7C、7Kが配置されている。また、各作像系1Y、1M、1C、1Kはそれぞれ独立に配置されたレーザーによる光書き込み装置8Y、8M、8C、8Kが配置され、この光書き込み装置8Y、8M、8C、8Kはレーザー光源としてのレーザーダイオード(LD)光源9Y、9M、9C、9Kや、コリメートレンズ10Y、10M、10C、10K、fθレンズ11Y、11M、11C、11K、といった光学部品、偏向走査手段としてのポリゴンミラー12Y、12M、12C、12K、折り返しミラー13Y、13M、13C、13K、14Y、14M、14C、14Kなどを有する。   Beside each developing device 4Y, 4M, 4C, and 4K, a toner bottle unit 7Y that supplies toner of a predetermined color to the developing devices 4Y, 4M, 4C, and 4K with Y toner, M toner, C toner, and K toner, respectively. , 7M, 7C, 7K are arranged. In addition, each of the image forming systems 1Y, 1M, 1C, and 1K is provided with laser-based optical writing devices 8Y, 8M, 8C, and 8K. The optical writing devices 8Y, 8M, 8C, and 8K are laser light sources. Laser diode (LD) light sources 9Y, 9M, 9C, and 9K, collimating lenses 10Y, 10M, 10C, and 10K, fθ lenses 11Y, 11M, 11C, and 11K, polygon mirrors 12Y as deflection scanning means, 12M, 12C, and 12K, and folding mirrors 13Y, 13M, 13C, 13K, 14Y, 14M, 14C, and 14K.

各作像系1Y、1M、1C、1Kは垂直に配列され、その右側には転写ベルトユニット15がOPCドラム2Y、2M、2C、2Kに接する形で配置される。転写ベルトユニット15は、転写ベルト16がローラ17〜20に張架されて駆動源(不図示)により回転駆動される。装置下側には転写材としての記録紙が収納された給紙トレイ21が配置され、装置上部に熱定着ローラと加圧ローラを有する定着装置22、排紙ローラ23および排紙トレイ24が配設されている。   The image forming systems 1Y, 1M, 1C, and 1K are arranged vertically, and the transfer belt unit 15 is arranged on the right side so as to be in contact with the OPC drums 2Y, 2M, 2C, and 2K. The transfer belt unit 15 is rotationally driven by a drive source (not shown) with the transfer belt 16 stretched around rollers 17 to 20. A paper feed tray 21 storing recording paper as a transfer material is disposed on the lower side of the apparatus, and a fixing device 22 having a heat fixing roller and a pressure roller, a paper discharge roller 23, and a paper discharge tray 24 are arranged at the top of the apparatus. It is installed.

作像時には、各作像系1Y、1M、1C、1Kにおいて、それぞれ、OPCドラム2Y、2M、2C、2Kが駆動源(不図示)により回転駆動され、帯電ローラ3Y、3M、3C、3KによりOPCドラム2Y、2M、2C、2Kが一様に帯電されて光書き込み装置8Y、8M、8C、8Kが各色の画像データに基づきレーザーダイオードを変調し、そのレーザー光を偏向走査してOPCドラム2Y、2M、2C、2Kに光書込みを行なうことによって、OPCドラム2Y、2M、2C、2K上に静電潜像が形成される。   At the time of image formation, in each image forming system 1Y, 1M, 1C, 1K, the OPC drums 2Y, 2M, 2C, 2K are rotationally driven by a driving source (not shown), and are charged by charging rollers 3Y, 3M, 3C, 3K. The OPC drums 2Y, 2M, 2C, and 2K are uniformly charged, and the optical writing devices 8Y, 8M, 8C, and 8K modulate the laser diode based on the image data of each color, and deflect and scan the laser light to scan the OPC drum 2Y. By performing optical writing on 2M, 2C, and 2K, electrostatic latent images are formed on the OPC drums 2Y, 2M, 2C, and 2K.

このOPCドラム2Y、2M、2C、2K上の静電潜像はそれぞれ現像装置4Y、4M、4C、4Kにより現像されてY、M、C、K各色のトナー像となり、一方、給紙トレイ21から給紙ローラ25により転写紙が水平方向に給紙されて搬送系により作像系1Y、1M、1C、1K方向へ垂直に搬送される。この記録紙は、転写ベルト16に静電的に吸着保持されて転写ベルト16により搬送され、転写バイアス印加手段(不図示)により転写バイアスが印加されてOPCドラム2Y、2M、2C、2K上のY、M、C、K各色のトナー像を順次に重ねて合わせて記録紙に転写することでフルカラー画像が記録紙上に形成される。このフルカラー画像が形成された記録紙は、定着装置22によりフルカラーのトナー画像が熱および圧力の作用によって定着されて排紙ローラ23により排紙トレイ24へ排出される。   The electrostatic latent images on the OPC drums 2Y, 2M, 2C, and 2K are developed by developing devices 4Y, 4M, 4C, and 4K, respectively, to become toner images of colors Y, M, C, and K, while the paper feed tray 21 Then, the transfer paper is fed in the horizontal direction from the paper feed roller 25 and is conveyed vertically in the image forming systems 1Y, 1M, 1C and 1K by the transport system. This recording paper is electrostatically attracted and held on the transfer belt 16 and conveyed by the transfer belt 16, and a transfer bias is applied by a transfer bias applying means (not shown) so as to be on the OPC drums 2Y, 2M, 2C and 2K. A full color image is formed on the recording paper by sequentially superimposing and transferring the toner images of each color Y, M, C, and K onto the recording paper. The recording paper on which the full-color image is formed is fixed by the fixing device 22 to the full-color toner image by the action of heat and pressure, and is discharged to the discharge tray 24 by the discharge roller 23.

つぎに、以上のように構成されたカラープリンタにおける画像処理装置の構成および動作について説明する。図2は、図1における画像形成装置の電装・制御系の構成を示すブロック図である。この電装・制御系は、カラープリンタ100全体の制御を行なうCPU101、メモリコントローラ103に接続されCPU101とメモリコントローラ103間のインターフェイス制御を実行するCPUI/F102、メインメモリ104を制御しCPU101のローカルバス、復号化装置、画像処理装置、符号化装置とメインメモリとの転送を制御するメモリコントローラ103を備えている。   Next, the configuration and operation of the image processing apparatus in the color printer configured as described above will be described. FIG. 2 is a block diagram showing the configuration of the electrical / control system of the image forming apparatus in FIG. This electrical / control system is a CPU 101 that controls the entire color printer 100, a CPU I / F 102 that is connected to the memory controller 103 and executes interface control between the CPU 101 and the memory controller 103, a main memory 104, and a local bus of the CPU 101. A memory controller 103 that controls transfer between the decoding device, the image processing device, the encoding device, and the main memory is provided.

また、CPU101からの描画コマンドを受け取りメインメモリ104のバンドを描画する描画装置105、メインメモリ104の2値バンドデータを符号化し、メインメモリ104へ符号を転送する符号化装置106、符号化装置106により符号化された符号を受け取り、各版を復号化し、C(シアン),M(マゼンタ),Y(イエロー)、K(ブラック)版のエンジンコントローラへ転送する復号化装置107、復号化装置107から画像データを受け取って各版のプリンタエンジン109に転送するエンジンコントローラ108、C,M,Y,K各版の画像を形成するプリンタエンジン109(図1参照)を備えている。   Also, a drawing device 105 that receives a drawing command from the CPU 101 and draws a band of the main memory 104, an encoding device 106 that encodes binary band data in the main memory 104, and transfers the code to the main memory 104, an encoding device 106 The decoding device 107, the decoding device 107, which receives the code encoded by, decodes each plate, and transfers it to the C (cyan), M (magenta), Y (yellow), and K (black) plate engine controllers. An engine controller 108 that receives image data from the printer engine 109 and transfers the image data to the printer engine 109 of each plate, and a printer engine 109 (see FIG. 1) that forms images of C, M, Y, and K plates.

また、ネットワークに接続されネットワークから各種データやコマンドなどを受け取ってメモリコントローラ103を介して各種のコントローラに接続されている通信コントローラ110、プリント出力する画像やCPU101の制御プログラムや各種データなどを格納するメインメモリ104、ROM112、パネルコントローラ113などと、CPU101、メインメモリ104とのインターフェイス制御を実行するローカルI/F111、文字などのフォント情報やCPU101の制御プログラムなどを格納するROM112、オペレーションパネル114を制御するパネルコントローラ113、ユーザーの入力操作をプリンタへ知らせるオペレーションパネル114を備えている。   Further, the communication controller 110 connected to the network, receiving various data and commands from the network, and connected to the various controllers via the memory controller 103, stores images to be printed, the control program of the CPU 101, various data, and the like. Controls main memory 104, ROM 112, panel controller 113, etc., CPU 101, local I / F 111 for executing interface control with main memory 104, ROM 112 for storing font information such as characters, control program for CPU 101, and operation panel 114 A panel controller 113 for controlling the user, and an operation panel 114 for notifying the printer of a user input operation.

図3は、本発明の実施の形態にかかる画像処理の流れを示すブロック図である。図において、CPU101は、メインメモリの多角形クリップ情報領域104cへ多角形クリップ情報を書き込む。そして、描画処理装置105へバンドの描画コマンドを送る。メインメモリ104(図2参照)は、CPU101により書き込まれた多角形クリップ情報を記憶する。描画装置105は、CPU101からのコマンドにしたがってメインメモリ104の多角形クリップ情報領域104cの多角形クリップ情報を読み込んで多角形クリッピングを行ないバンドメモリ領域104aへバンドを描画する。メインメモリ104は、描画処理装置105により描画されたバンドデータを記憶する。符号化装置106は、メインメモリ104のバンドメモリ領域104aのバンドデータを読み込んで符号化し、メインメモリ104の符号ページメモリ領域104bへ符号を送る。メインメモリ104は、符号化装置106から符号を受け取り記憶する。復号化装置107は、メインメモリ104に記憶されたバンド毎の符号からなる1ページ分の符号を読み込んで復号化し、エンジンコントローラへ転送しプリンタエンジン109でプリント出力する。   FIG. 3 is a block diagram showing a flow of image processing according to the embodiment of the present invention. In the figure, the CPU 101 writes polygon clip information in the polygon clip information area 104c of the main memory. Then, a band drawing command is sent to the drawing processing apparatus 105. The main memory 104 (see FIG. 2) stores polygon clip information written by the CPU 101. The drawing device 105 reads polygon clip information in the polygon clip information area 104c of the main memory 104 in accordance with a command from the CPU 101, performs polygon clipping, and draws a band in the band memory area 104a. The main memory 104 stores the band data drawn by the drawing processing device 105. The encoding device 106 reads and encodes the band data in the band memory area 104 a of the main memory 104, and sends the code to the code page memory area 104 b of the main memory 104. The main memory 104 receives the code from the encoding device 106 and stores it. The decoding device 107 reads and decodes the code for one page including the code for each band stored in the main memory 104, transfers the code to the engine controller, and prints it out with the printer engine 109.

図4は、本発明の実施の形態にかかる画像処理の概念を示すブロック図である。図において、CPU101により、メインメモリ104の多角形クリップ情報メモリ領域104cへ多角形クリップ情報を書き込み、バンドの描画コマンドを生成し、描画処理装置105へ転送する。描画処理装置は105は、メインメモリ104の多角形クリップ情報メモリ領域104cの多角形クリップ情報を読み込んで多角形クリッピングを行ない、メインメモリ104のバンドメモリ領域104aへバンドを描画する。さらに符号化装置106により、メインメモリ104のバンドメモリ領域104aへバンドを読み込んで符号化し、メインメモリ104の符号ページメモリ領域104bへ符号を書き込む。メインメモリ104は、CPU101からの多角形クリップ情報、描画処理装置105からのバンドの描画データ、符号化装置106からの符号1ページ分を記憶する。復号化装置107により、プリンタエンジン109に同期してメインメモリ104の符号ページメモリ領域104bの符号を復号化しエンジンコントローラ108へ転送する。エンジンコントローラ108は、復号化装置107から受け取った階調処理後の画像をプリンタエンジン109へ転送する。   FIG. 4 is a block diagram showing the concept of image processing according to the embodiment of the present invention. In the figure, the CPU 101 writes polygon clip information into the polygon clip information memory area 104 c of the main memory 104, generates a band drawing command, and transfers it to the drawing processing device 105. The drawing processing device 105 reads polygon clip information in the polygon clip information memory area 104 c of the main memory 104, performs polygon clipping, and draws a band in the band memory area 104 a of the main memory 104. Further, the encoding device 106 reads and encodes the band into the band memory area 104 a of the main memory 104, and writes the code into the code page memory area 104 b of the main memory 104. The main memory 104 stores polygon clip information from the CPU 101, band drawing data from the drawing processing device 105, and one code page from the encoding device 106. The code in the code page memory area 104 b of the main memory 104 is decoded by the decoding device 107 in synchronization with the printer engine 109 and transferred to the engine controller 108. The engine controller 108 transfers the gradation-processed image received from the decoding device 107 to the printer engine 109.

図5は、図2におけるメインメモリ104のフォーマット例を示す説明図である。バンドメモリ領域104aは、バンドデータを格納する。符号ページメモリ領域104bは、符号化された1ページ分のバンドの符号データを複数ページ分格納する領域である。多角形クリップ情報メモリ領域104cは、図7に示すような多角形クリップの外形情報を格納する領域であり、図8−1に示す例のように(A)のような多角形クリップ図形に対し、(B)のように水平ラインとクロスする複数のX始点(クリップの開始点),X終点(クリップの終了点)を図8−2に示すようなフォーマットで格納している。図9に他の例を示す。図8の例では、多角形クリップ図形の存在する垂直方向の始点(CLIPYS)と終点(CLIPYE)を別に持ち、図8−2の情報の場所を示すが、図9ではバンドの高さ分の容量を持ち、0番目の水平ラインにクロスするクリップ情報がないために最初から、始点、終点とも0,0が入り、ここに情報がないことを示している。プログラム領域は、各種のCPUのプログラムを格納する領域である。   FIG. 5 is an explanatory diagram showing a format example of the main memory 104 in FIG. The band memory area 104a stores band data. The code page memory area 104b is an area for storing a plurality of pages of encoded data of an encoded band for one page. The polygon clip information memory area 104c is an area for storing the outline information of the polygon clip as shown in FIG. 7, and for the polygon clip figure as shown in FIG. A plurality of X start points (clip start points) and X end points (clip end points) crossing the horizontal line are stored in a format as shown in FIG. FIG. 9 shows another example. In the example of FIG. 8, the vertical start point (CLIPYS) and the end point (CLIPYE) where the polygon clip figure exists are separately provided and the information location of FIG. 8-2 is shown. In FIG. 9, the height of the band is shown. Since there is no clip information having a capacity and crossing the 0th horizontal line, 0 and 0 are entered at the start and end points from the beginning, indicating that there is no information. The program area is an area for storing various CPU programs.

図7は、多角形クリップ情報が指定された領域に四角形を描画する例であり、バンドメモリ上の符号201は多角形クリップ、符号202は四角形、符号203は多角形クリップ201と四角形204とのオーバラップ領域である。図8−1は多角形クリップ情報、図8−2は図8−1における多角形クリップ情報のフォーマットの例を示す説明図である。図9は、他の多角形クリップ情報のフォーマット例を示す説明図である。   FIG. 7 is an example in which a rectangle is drawn in an area in which polygon clip information is specified. Reference numeral 201 on the band memory is a polygon clip, reference numeral 202 is a rectangle, reference numeral 203 is a polygon clip 201 and a rectangle 204. It is an overlap area. 8-1 is polygon clip information, and FIG. 8-2 is an explanatory diagram showing an example of the format of polygon clip information in FIG. 8-1. FIG. 9 is an explanatory diagram showing a format example of other polygon clip information.

図6は、本発明の実施の形態にかかる図2における画像処理の流れを示すブロック図であり、矢印番号の順に以下のように処理する。CPU101は、メインメモリ104の多角形クリップ情報メモリ領域104cに多角形クリップ情報を書き込む。描画装置105は、メインメモリ104の多角形クリップ情報メモリ領域104cの多角形クリップ情報を読み込む。描画装置105は、メインメモリ104のバンドメモリ領域104aへ多角形クリッピングを行ないながら描画処理を行なう。符号化装置105は、完成したバンドデータをメインメモリ104から読み込み符号化を行ない、符号化したバンドデータをメインメモリ103の符号ページ領域へ送る。復号化装置107は、完成されたページ符号データをメインメモリ104から読み込んで復号化し、復号化したページデータをエンジンコントローラ108へ送る。エンジンコントローラ108はプリンタエンジン109を制御しプリント出力を行なう。   FIG. 6 is a block diagram showing the flow of the image processing in FIG. 2 according to the embodiment of the present invention. Processing is performed in the order of the arrow numbers as follows. The CPU 101 writes the polygon clip information in the polygon clip information memory area 104 c of the main memory 104. The drawing device 105 reads the polygon clip information in the polygon clip information memory area 104 c of the main memory 104. The drawing device 105 performs drawing processing while performing polygon clipping on the band memory area 104 a of the main memory 104. The encoding device 105 reads the completed band data from the main memory 104, performs encoding, and sends the encoded band data to the code page area of the main memory 103. The decoding device 107 reads the completed page code data from the main memory 104 and decodes it, and sends the decoded page data to the engine controller 108. The engine controller 108 controls the printer engine 109 to perform print output.

図10は、本発明の実施の形態にかかる描画装置105の構成および処理を示すブロック図である。図において、描画コマンド解析装置122は、CPU101から描画コマンド121(ライン描画、四角形描画など)を受け取り、水平ラインのコマンドへ変換する。このとき、描画する水平ラインのY値を水平クリッピング情報生成装置126へ転送し、水平ライン描画装置123へ水平ラインの開始X値と終点X値を送る。水平クリッピング情報生成装置126は、描画コマンド解析装置122から描画する水平ラインのY値を受け取り、多角形クリッピング情報(メインメモリの多角形クリップ情報メモリ領域104cの内容)からY値の水平方向の多角形クリッピング情報を読み込む。水平ライン描画装置123は、描画コマンド解析装置122から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、メモリのワードごとの描画パターンを生成し階調処理装置124へ転送し、描画ワードの水平ワード数である描画ワード番号を水平クリッピング情報生成装置126へ転送する。水平クリッピング情報生成装置126は、水平ライン描画装置123からの描画ワード番号に対応するクリップパターンを生成し、階調処理装置124へ転送する。階調処理装置124は、水平ライン描画装置123からの描画パターンと水平クリッピング情報生成装置126からのクリップパターンから階調処理を行ないバンドメモリ領域104aへ描画していく。   FIG. 10 is a block diagram showing a configuration and processing of the drawing apparatus 105 according to the embodiment of the present invention. In the figure, a drawing command analyzer 122 receives a drawing command 121 (line drawing, quadrilateral drawing, etc.) from the CPU 101 and converts it into a horizontal line command. At this time, the Y value of the horizontal line to be drawn is transferred to the horizontal clipping information generating device 126, and the start X value and end point X value of the horizontal line are sent to the horizontal line drawing device 123. The horizontal clipping information generation device 126 receives the Y value of the horizontal line to be drawn from the drawing command analysis device 122, and determines the Y value in the horizontal direction from the polygon clipping information (the contents of the polygon clip information memory area 104c of the main memory). Reads square clipping information. The horizontal line drawing device 123 starts horizontal line drawing processing from the start X value and end point X value of the horizontal line from the drawing command analysis device 122, generates a drawing pattern for each word in the memory, and transfers it to the gradation processing device 124. Then, the drawing word number, which is the number of horizontal words of the drawing word, is transferred to the horizontal clipping information generating device 126. The horizontal clipping information generation device 126 generates a clip pattern corresponding to the drawing word number from the horizontal line drawing device 123 and transfers it to the gradation processing device 124. The gradation processing device 124 performs gradation processing from the drawing pattern from the horizontal line drawing device 123 and the clip pattern from the horizontal clipping information generating device 126 and draws it in the band memory area 104a.

図11は、図10における水平ライン描画装置123が生成する描画パターンと水平クリッピング情報生成装置126が生成するクリップパターンの例を示す説明図である。各パターンはメモリの1ワードのサイズと同じであり、クリップパターンは描画する水平ラインにかかる多角形クリップ図形の有効なBITを"1"にし、描画パターンはこの例では水平ラインにかかる四角形描画の有効なBITを"1"にしている。この描画パターンとクリップパターンのAND処理されたパターンが描画する有効領域になる。   FIG. 11 is an explanatory diagram illustrating an example of a drawing pattern generated by the horizontal line drawing device 123 and a clip pattern generated by the horizontal clipping information generation device 126 in FIG. Each pattern has the same size as one word in the memory, the clip pattern sets the effective BIT of the polygon clip figure for the horizontal line to be drawn to "1", and the drawing pattern is a rectangle drawing for the horizontal line in this example. The effective BIT is set to “1”. A pattern obtained by ANDing the drawing pattern and the clip pattern is an effective area to be drawn.

図12は、図10における描画装置105の動作処理を示すフローチャートであり、CPU101によって実行される。この図において、まず、描画コマンド解析装置122は描画コマンド121を読み込み(ステップS1)、水平開始/終点X値を水平ライン描画装置123へ送り、そのY値を水平クリッピング情報生成装置126へ送る(ステップS2)。続いて、水平クリッピング情報生成装置126は、描画コマンド解析装置122からのY値によりYラインの多角形クリッピング情報のメモリアドレスを求め、1ライン分のクリッピング情報を読み込む(ステップS3)。さらに水平ライン描画装置123は、描画コマンド解析装置122からの水平開始/終点X値により、描画するワードの番号の開始番号と終点番号を求め、開始点をIXとし(ステップS4)。その描画ワード番号IXを水平クリッピング情報生成装置126へ転送する(ステップS5)。続いて、水平ライン描画装置123は、描画ワード番号IXの描画パターンを求め、諧調処理装置124へ転送する(ステップS6)。さらに水平クリッピング情報生成装置126は、描画ワード番号IXのクリッピングパターンを求め、諧調処理装置124へ転送する(ステップS7)。諧調処理装置124は、得られたクリッピングパターンと描画パターンとをAND処理して諧調処理する画素を求め、諧調処理を行なう(ステップS8)。その後、IXが描画ワード番号の終点であるか否かを判断し(ステップS9)、終点であれば、さらに全てのY値を処理したか否かを判断し(ステップS10)、全てのY値を処理したならば、この処理動作を終了する。一方、ステップS9においてIXが描画ワード番号の終点でなければステップS5に戻り、ステップS10において全てのY値を処理していなければステップS2に戻る。   FIG. 12 is a flowchart showing an operation process of the drawing apparatus 105 in FIG. 10 and is executed by the CPU 101. In this figure, first, the drawing command analysis device 122 reads the drawing command 121 (step S1), sends the horizontal start / end point X value to the horizontal line drawing device 123, and sends the Y value to the horizontal clipping information generation device 126 (step S1). Step S2). Subsequently, the horizontal clipping information generator 126 obtains the memory address of polygon clipping information for the Y line from the Y value from the drawing command analyzer 122, and reads the clipping information for one line (step S3). Further, the horizontal line drawing device 123 obtains the start number and end number of the number of the word to be drawn based on the horizontal start / end point X value from the drawing command analysis device 122, and sets the start point to IX (step S4). The drawing word number IX is transferred to the horizontal clipping information generator 126 (step S5). Subsequently, the horizontal line drawing device 123 obtains a drawing pattern of the drawing word number IX and transfers it to the gradation processing device 124 (step S6). Further, the horizontal clipping information generation device 126 obtains a clipping pattern of the drawing word number IX and transfers it to the gradation processing device 124 (step S7). The gradation processing device 124 performs AND processing on the obtained clipping pattern and drawing pattern to obtain pixels for gradation processing, and performs gradation processing (step S8). Thereafter, it is determined whether or not IX is the end point of the drawing word number (step S9). If it is the end point, it is further determined whether or not all Y values have been processed (step S10), and all the Y values are determined. This processing operation is terminated. On the other hand, if IX is not the end point of the drawing word number in step S9, the process returns to step S5. If all Y values are not processed in step S10, the process returns to step S2.

図13は、図2における描画装置105の詳細構成を示すブロック図である。この描画装置105は、メモリコントローラI/F120、描画コマンド解析装置122、水平ライン描画装置123、諧調処理装置124、水平クリッピング情報生成装置126、書き込みアドレス生成装置127、パラメータ記憶装置128、コントローラ129を備えている。   FIG. 13 is a block diagram showing a detailed configuration of the drawing apparatus 105 in FIG. The drawing device 105 includes a memory controller I / F 120, a drawing command analysis device 122, a horizontal line drawing device 123, a gradation processing device 124, a horizontal clipping information generation device 126, a write address generation device 127, a parameter storage device 128, and a controller 129. I have.

描画コマンド解析装置122は、CPU101からの描画コマンドを受け取り、各水平ラインのX始点/X終点値と、その水平ラインのY値を求め、水平ライン描画装置123へ転送し、その水平ラインのY値を水平クリッピング情報生成装置126へ転送する。水平ライン描画装置123は、描画コマンド解析装置からの水平ラインのX始点/X終点値とその水平ラインのY値を受け取り、水平ラインのX始点から、メモリのワード単位の描画パターンとその水平ラインにおけるX始点のメモリのワードのアドレスである先頭アドレスを階調処理装置124へ転送する。   The drawing command analysis device 122 receives the drawing command from the CPU 101, obtains the X start point / X end value of each horizontal line and the Y value of the horizontal line, transfers them to the horizontal line drawing device 123, and transfers the Y of the horizontal line. The value is transferred to the horizontal clipping information generator 126. The horizontal line drawing device 123 receives the X start point / X end point value of the horizontal line and the Y value of the horizontal line from the drawing command analysis device, and from the X start point of the horizontal line, the drawing pattern and its horizontal line in memory units. Is transferred to the gradation processing unit 124.

また、生成した描画パターンの水平ライン上でのワード番号を水平クリッピング情報生成装置126へ転送する。水平クリッピング情報生成装置126は、描画コマンド解析装置122から描画する水平ラインのY値を受け取り、メモリコントローラI/F120へメインメモリ104の多角形クリップ情報メモリ領域 104cのY値のアドレスを生成して送り、Y値のスキャンラインの複数個のクリップ開始点とクリップ終点をメモリコントローラI/F120をかいしてメインメモリ104の多角形クリップ情報メモリ領域104cから受け取る。   Further, the word number on the horizontal line of the generated drawing pattern is transferred to the horizontal clipping information generating device 126. The horizontal clipping information generation device 126 receives the Y value of the horizontal line to be drawn from the drawing command analysis device 122, and generates the address of the Y value of the polygon clip information memory area 104c of the main memory 104 to the memory controller I / F 120. The plurality of clip start points and clip end points of the Y value scan line are received from the polygon clip information memory area 104 c of the main memory 104 through the memory controller I / F 120.

そして、水平ライン描画装置123から、順次、描画するワード番号を受け取り、クリップパターンを生成し、階調処理装置124へ転送する。階調処理装置124は、水平ライン描画装置123からの描画パターンと水平クリッピング情報生成装置126からのクリップパターンを順次受け取り、この2つのパターンをAND処理したパターンに対しC,M,Y,K版のデイザ処理を行ない、メモリコントローラI/F120をかいしてメインメモリ104のバンドメモリ領域104aへ描画処理を行なう。また、書き込みアドレス生成装置127は、階調処理装置124のC,M,Y,K版のデータに同期してメインメモリ104のバンドメモリ領域104aのメモリアドレスを生成する。パラメータ記憶装置128は、描画装置105が必要なパラメータをCPU101から設定され、記憶している。コントローラ129は、描画装置105の全体を制御する。   Then, word numbers to be drawn are sequentially received from the horizontal line drawing device 123, a clip pattern is generated, and transferred to the gradation processing device 124. The gradation processing device 124 sequentially receives the drawing pattern from the horizontal line drawing device 123 and the clip pattern from the horizontal clipping information generation device 126, and performs C-, M-, Y-, and K-version on the pattern obtained by ANDing these two patterns. The dither process is performed, and the drawing process is performed on the band memory area 104 a of the main memory 104 through the memory controller I / F 120. The write address generator 127 generates a memory address of the band memory area 104 a of the main memory 104 in synchronization with the C, M, Y, and K plane data of the gradation processor 124. The parameter storage device 128 is set by the CPU 101 and stores parameters necessary for the drawing device 105. The controller 129 controls the entire drawing apparatus 105.

図14は、図13における水平クリッピング情報生成装置126の詳細構成を示すブロック図である。この水平クリッピング情報生成装置126は、多角形クリップ情報読み込み装置130、多角形クリップデータ格納装置131、対象ワード開始/終点X生成装置132、描画クリップパターン生成装置133、描画ワードの終点X値生成装置134、多角形クリップアドレス生成装置135を備えている。   FIG. 14 is a block diagram showing a detailed configuration of the horizontal clipping information generating device 126 in FIG. The horizontal clipping information generation device 126 includes a polygon clip information reading device 130, a polygon clip data storage device 131, a target word start / end point X generation device 132, a drawing clip pattern generation device 133, and a drawing word end point X value generation device. 134, a polygonal clip address generation device 135 is provided.

多角形クリップアドレス生成装置135は、描画コマンド解析装置122から描画する水平ラインのY値を受け取り、メインメモリ104のYラインの多角形クリップ情報のアドレスを計算し、メモリコントローラI/F103へ多角形クリップ読み込みアドレスを転送する。多角形クリップ情報読み込み装置130は、多角形クリップアドレス生成装置135で求めたアドレスによりアクセスされたメインメモリ104のYラインの多角形クリップ情報を多角形クリップデータ格納装置131へ転送する。   The polygon clip address generation device 135 receives the Y value of the horizontal line to be drawn from the drawing command analysis device 122, calculates the polygon clip information address of the Y line in the main memory 104, and sends the polygon to the memory controller I / F 103. Transfer clip reading address. The polygon clip information reading device 130 transfers the polygon clip information of the Y line of the main memory 104 accessed by the address obtained by the polygon clip address generation device 135 to the polygon clip data storage device 131.

また、多角形クリップデータ格納装置131は、多角形クリップ情報読み込み装置130からのYラインの多角形クリップ情報を格納し、対象ワード開始/終点X生成装置132へ転送する。描画ワードの開始/終点X値生成装置134は、水平ライン描画装置123からの描画する水平ラインのメモリのワード番号を受け取り、そのワードの開始X値と終点X値を図15に示すように求める。   Further, the polygon clip data storage device 131 stores the Y-line polygon clip information from the polygon clip information reading device 130 and transfers it to the target word start / end point X generation device 132. The drawing word start / end X value generator 134 receives the word number of the memory of the horizontal line to be drawn from the horizontal line drawing device 123, and obtains the start X value and end X value of the word as shown in FIG. .

この図15において、描画ワード番号が5の例では、メモリワードのBIT数を32とすると、メモリワードBIT数×描画ワード番号=描画ワード開始X値であるため、32×5=160であり、メモリワードBIT数×(描画ワード番号+1)=描画ワード終点X値であるため、32×6=192となる。   15, in the example in which the drawing word number is 5, assuming that the number of BITs of the memory word is 32, the number of memory words BIT × the drawing word number = the drawing word start X value, so that 32 × 5 = 160. Since the number of memory words BIT × (drawing word number + 1) = drawing word end point X value, 32 × 6 = 192.

また、対象ワード開始/終点X生成装置132は、多角形クリップデータ格納装置131から多角形クリップ情報である複数のクリップ開始/終点値と、描画ワードの開始/終点X値生成装置134からの描画ワード開始/終点X値を受け取り、水平開始X値と水平終点X値を求め、描画クリップパターン生成装置133へ転送する。この水平開始X値と水平終点X値は、図15に示す描画ワード番号が7の例のように水平開始X値、水平終点X値は、描画ワード開始点X値と描画ワード終点X値の中のクリップパターンの開始点X値と終点X値を求める。   The target word start / end point X generation device 132 also draws a plurality of clip start / end values that are polygon clip information from the polygon clip data storage device 131 and a drawing word start / end point X value generation device 134. The word start / end X value is received, the horizontal start X value and the horizontal end X value are obtained, and transferred to the drawing clip pattern generation device 133. The horizontal start X value and the horizontal end point X value are the horizontal start X value and the horizontal end point X value of the drawing word start point X value and the drawing word end point X value as in the example of the drawing word number 7 shown in FIG. The start point X value and end point X value of the inside clip pattern are obtained.

描画クリップパターン生成装置133は、対象ワード開始/終点X生成装置からクリップパターンの開始点X値と終点X値とクリップフラグを受け取り、クリップパターンを生成する。このクリップフラグは描画可能な領域が存在するか/しないか?を示すフラグであり、このフラグが"0"(描画可能な領域が存在しない)であれば、クリップパターンは無条件で0x00000となる。   The drawing clip pattern generation device 133 receives the clip pattern start point X value, end point X value, and clip flag from the target word start / end point X generation device, and generates a clip pattern. Does this clip flag show / do not have a drawable area? If this flag is “0” (there is no drawable area), the clip pattern is unconditionally 0x00000.

図16は、図14における多角形クリップデータ格納装置131の詳細構成を示すブロック図である。この多角形クリップデータ格納装置131は、水平開始X値をそれぞれ記憶するレジスタ136,138,140,142、水平終点X値それぞれを記憶するレジスタ137,139,141,143を備えている。   FIG. 16 is a block diagram showing a detailed configuration of the polygon clip data storage device 131 in FIG. The polygon clip data storage device 131 includes registers 136, 138, 140, 142 for storing horizontal start X values, and registers 137, 139, 141, 143 for storing horizontal end X values, respectively.

図17−1〜図17−2は、図14における水平クリッピング情報生成装置126の処理動作を示すフローチャートである。図において、ステップS11〜S16では、多角形クリップデータ格納装置131の多角形クリップ情報の複数のクリップ開始/終点X値に対し、描画ワードの開始/終点X値生成装置134からの描画ワード開始X値と描画ワード終点X値を比較し、関係するクリップ開始/終点X値を求める。さらにステップS7〜S37において、その関係するクリップ開始/終点X値と描画ワード開始X値と描画ワード終点X値から描画クリップパターン生成装置133へ送る水平開始X値と水平終点X値を求めている。ここで、ステップS17〜S23の処理を詳細に説明すると、ステップS17〜S23において、関係するクリップ開始/終点X値と描画ワード開始X値が1番目であるかを確認し、ステップS17〜S20で、クリップ開始X値と描画ワード開始X値のうち、大きいほうを水平開始X値とし、ステップS21〜S23で、クリップ終点X値と描画ワード終点X値のうち、小さいほうを水平終点X値としている。   17A and 17B are flowcharts illustrating the processing operation of the horizontal clipping information generation device 126 in FIG. In the figure, in steps S11 to S16, a drawing word start / end X value generator 134 draws a drawing word start X for a plurality of clip start / end X values of polygon clip information in the polygon clip data storage device 131. The value and the drawing word end point X value are compared to determine the related clip start / end point X value. Further, in steps S7 to S37, a horizontal start X value and a horizontal end point X value to be sent to the drawing clip pattern generation device 133 are obtained from the related clip start / end point X value, drawing word start X value, and drawing word end point X value. . Here, the processing in steps S17 to S23 will be described in detail. In steps S17 to S23, it is confirmed whether the related clip start / end point X value and drawing word start X value are first, and in steps S17 to S20. The larger one of the clip start X value and the drawing word start X value is set as the horizontal start X value. In steps S21 to S23, the smaller one of the clip end point X value and the drawing word end X value is set as the horizontal end point X value. Yes.

図18は、図14の水平クリッピング情報生成装置126における描画クリップパターン生成装置133の処理動作を示すフローチャートである。図において、まず、クリップフラグが0であるか否かを判断し(ステップS41)、クリップフラグが0であれば、クリップパターンを0x0000 0000とし(ステップS42)、ステップS44に進む。一方、ステップ41においてクリップフラグが0でなければ、水平開始/終点X値からクリップパターンを生成する(ステップS43)。続いて、クリップパターンを諧調処理装置124に転送し(ステップS44)、この処理動作を終了する。   FIG. 18 is a flowchart showing the processing operation of the drawing clip pattern generation device 133 in the horizontal clipping information generation device 126 of FIG. In the figure, first, it is determined whether or not the clip flag is 0 (step S41). If the clip flag is 0, the clip pattern is set to 0x0000 0000 (step S42), and the process proceeds to step S44. On the other hand, if the clip flag is not 0 in step 41, a clip pattern is generated from the horizontal start / end X values (step S43). Subsequently, the clip pattern is transferred to the gradation processing device 124 (step S44), and this processing operation is terminated.

図19は、図13の描画装置105における水平ライン描画装置123の処理動作を示すフローチャートである。まず、水平ライン描画装置123は、描画コマンド解析装置122からの水平開始/終点X値により、描画するワードの番号の開始番号と終点番号を求め、開始点をIXとする(ステップS51)。続いて、描画ワード番号IXを水平クリッピング情報生成装置126へ転送する(ステップS52)。さらにIXは左端でかつ右端であるか否かを判断する(ステップS53)。ここでIXが左端でかつ右端である場合、水平開始X値と水平終点X値から描画パターンを生成する(ステップS54)。一方、ステップS53においてIXが左端でかつ右端ではない場合、さらにIXは左端であるか否かを判断する(ステップS55)。ここでIXが左端である場合、水平開始X値から描画パターンを生成する(ステップS56)。一方、ステップS55においてIXが左端ではない場合、さらにIXは右端であるか否かを判断する(ステップS57)。ここでIXが右端である場合、水平終点X値から描画パターンを生成する。一方、ステップS57においてIXが右端でない場合、描画パターンを0xFFFF FFFFとし(ステップS59)、描画パターンを諧調処理装置124へ転送する(ステップS60)。そして、IXが描画ワードの終点であるかを判断し(ステップS61)、終点になるまで上記動作を繰り返し実行する。また、上記ステップS54,S56,S58を実行した後にステップS60に進む。   FIG. 19 is a flowchart showing the processing operation of the horizontal line drawing device 123 in the drawing device 105 of FIG. First, the horizontal line drawing device 123 obtains the start number and end number of the number of the word to be drawn based on the horizontal start / end point X value from the drawing command analysis device 122, and sets the start point to IX (step S51). Subsequently, the drawing word number IX is transferred to the horizontal clipping information generating device 126 (step S52). Further, it is determined whether IX is the left end and the right end (step S53). Here, when IX is the left end and the right end, a drawing pattern is generated from the horizontal start X value and the horizontal end X value (step S54). On the other hand, if IX is the left end and not the right end in step S53, it is further determined whether or not IX is the left end (step S55). Here, when IX is the left end, a drawing pattern is generated from the horizontal start X value (step S56). On the other hand, if IX is not the left end in step S55, it is further determined whether or not IX is the right end (step S57). When IX is the right end here, a drawing pattern is generated from the horizontal end point X value. On the other hand, if IX is not the right end in step S57, the drawing pattern is set to 0xFFFF FFFF (step S59), and the drawing pattern is transferred to the gradation processing device 124 (step S60). Then, it is determined whether IX is the end point of the drawing word (step S61), and the above operation is repeatedly executed until the end point is reached. Further, after executing steps S54, S56, and S58, the process proceeds to step S60.

図20は、図10における諧調処理装置124の詳細構成を示すブロック図である。図において、この諧調処理装置124は、しきい値マトリックスアドレス生成装置145、しきい値マトリックス記憶装置146、データ分配装置147、比較装置148〜151、各色の固定長データ生成装置152〜155、各色のFIFO(First−In First−Out)156〜159、MUX(マルチプレクサ)160、CMYKアドレス生成装置161、MUX(マルチプレクサ)162、AND装置163、コントローラ164を備えている。   FIG. 20 is a block diagram showing a detailed configuration of the gradation processing device 124 in FIG. In the figure, the gradation processing device 124 includes a threshold matrix address generation device 145, a threshold matrix storage device 146, a data distribution device 147, comparison devices 148 to 151, fixed-length data generation devices 152 to 155 for each color, and each color. FIFO (First-In First-Out) 156 to 159, MUX (multiplexer) 160, CMYK address generation device 161, MUX (multiplexer) 162, AND device 163, and controller 164.

しきい値マトリックスアドレス生成装置145は、しきい値のサイズを受け取りしきい値マトリックス記憶装置146のアドレスを生成する。しきい値マトリックス記憶装置146は、各種ののしきい値マトリックスを格納する。データ分配装置147は、しきい値マトリックス記憶装置146からC,M,Y,K版のしきい値を受け取り、各版の判定装置へ値を分配する。   The threshold matrix address generator 145 receives the threshold size and generates an address for the threshold matrix store 146. The threshold matrix storage device 146 stores various threshold matrices. The data distribution device 147 receives the threshold values for the C, M, Y, and K plates from the threshold matrix storage device 146 and distributes the values to the determination devices for each plate.

比較装置148は、データ分配装置147からのC版のしきい値とパラメータ記憶装置128(図13参照)からのC版の画素データを受け取って比較し、C版の階調処理後のデータを作成する。比較装置149は、データ分配装置147からのM版のしきい値とパラメータ記憶装置128(図13参照)からのM版の画素データを受け取って比較し、M版の階調処理後のデータを作成する。比較装置150は、データ分配装置147からのY版のしきい値とパラメータ記憶装置128(図13参照)からのY版の画素データを受け取って比較し、Y版の階調処理後のデータを作成する。比較装置151は、データ分配装置147からのK版のしきい値とパラメータ記憶装置128(図13参照)からのK版の画素データを受け取って比較し、K版の階調処理後のデータを作成する。   The comparison device 148 receives and compares the threshold value of the C plate from the data distribution device 147 and the pixel data of the C plate from the parameter storage device 128 (see FIG. 13), and compares the data after gradation processing of the C plate. create. The comparison device 149 receives and compares the M version threshold value from the data distribution device 147 and the M version pixel data from the parameter storage device 128 (see FIG. 13), and compares the M version gradation-processed data. create. The comparison device 150 receives and compares the Y version threshold value from the data distribution device 147 and the Y plate pixel data from the parameter storage device 128 (see FIG. 13), and compares the Y plate gradation processed data. create. The comparison device 151 receives and compares the K version threshold value from the data distribution device 147 and the K plate pixel data from the parameter storage device 128 (see FIG. 13), and compares the K plate gradation processed data. create.

C固定長データ生成装置152は、比較装置148からのC版の階調処理後のデータを順次受け取り、固定長データへ変換する(図22参照)。M固定長データ生成装置153は、比較装置149からM版の階調処理後のデータを順次受け取り、固定長データへ変換する(図22参照)。Y固定長データ生成装置154は、比較装置150からY版の階調処理後のデータを順次受け取り、固定長データへ変換する(図22参照)。K固定長データ生成装置155は、比較装置151からK版の階調処理後のデータを順次受け取り、固定長データへ変換する(図22参照)。   The C fixed length data generation device 152 sequentially receives the data after the gradation processing of the C plane from the comparison device 148 and converts it into fixed length data (see FIG. 22). The M fixed length data generation device 153 sequentially receives the data after the M-level gradation processing from the comparison device 149 and converts it into fixed length data (see FIG. 22). The Y fixed length data generation device 154 sequentially receives the data after Y-level gradation processing from the comparison device 150 and converts it into fixed length data (see FIG. 22). The K fixed length data generation device 155 sequentially receives the data after gradation processing of the K plane from the comparison device 151 and converts it into fixed length data (see FIG. 22).

C−FIFO156は、C固定長データ生成装置152からのC版諧調処理後のワードデータを受け取り一時格納する。M−FIFO157は、M固定長データ生成装置153からのM版諧調処理後のワードデータを受け取り一時格納する。Y−FIFO158は、Y固定長データ生成装置154からのY版諧調処理後のワードデータを受け取り一時格納する。K−FIFO157は、K固定長データ生成装置155からのK版諧調処理後のワードデータを受け取り一時格納する。   The C-FIFO 156 receives the word data after the C version gradation processing from the C fixed length data generation device 152 and temporarily stores it. The M-FIFO 157 receives the word data after the M version gradation processing from the M fixed length data generation device 153 and temporarily stores it. The Y-FIFO 158 receives the word data after Y version gradation processing from the Y fixed length data generation device 154 and temporarily stores it. The K-FIFO 157 receives the word data after the K version gradation processing from the K fixed length data generation device 155 and temporarily stores it.

MUX160は、YMCK各版のFIFO156〜159からのデータを受け取り、順次選択してメモリコントローラI/F120へ転送する。CMYKアドレス生成装置161は、水平ライン描画装置123からの物理アドレスである先頭アドレスに各版の原点アドレスを加算し、各版の先頭アドレスを求めMUX162へ転送する。MUX162は、CMYK各版の先頭アドレスからメインメモリ104に書き込む階調処理後の画像データの先頭アドレスを選択し、書き込みアドレス生成装置127(図13参照)へ転送する。AND装置163は、水平ライン描画装置123(図13参照)からの描画パターンと水平クリッピング情報生成装置126(図13参照)からのクリップパターンを受け取り、AND処理を行ない、描画する領域を求め、コントローラ164へ転送する。コントローラ164は、階調処理装置124の全体を制御する。   The MUX 160 receives the data from the FIFOs 156 to 159 of each version of YMCK, selects them sequentially, and transfers them to the memory controller I / F 120. The CMYK address generation device 161 adds the origin address of each plate to the start address which is a physical address from the horizontal line drawing device 123, obtains the start address of each plate, and transfers it to the MUX 162. The MUX 162 selects the start address of the image data after gradation processing to be written in the main memory 104 from the start address of each version of CMYK, and transfers it to the write address generation device 127 (see FIG. 13). The AND device 163 receives the drawing pattern from the horizontal line drawing device 123 (see FIG. 13) and the clip pattern from the horizontal clipping information generation device 126 (see FIG. 13), performs AND processing, obtains a drawing area, and Transfer to 164. The controller 164 controls the entire gradation processing device 124.

図21は、図20のように構成された諧調処理装置124の処理動作を示すフローチャートである。この一連の動作はコントローラ164によって実行される。まず、WDATAとして描画パターンANDクリップパターンをセットし(ステップS71)、IXを0に初期化する(ステップS72)。続いて、WDATAのIXビット目が1であるか否かを判断する(ステップS73)。ここで、WDATAのIXビット目が1である場合、しきい値(C,Y,M,K)データを比較装置148〜151で比較し、2値化する(ステップS74)。さらにこの2値か(C,M,Y,K)データを固定長データに追加する(ステップS75)。続いて、上記データが固定長まで成長したか否かを判断し(ステップS76)、成長したならばC,M,Y,Kの固定長データを各FIFO156〜159に書き込み(ステップS77)、ディザのアドレスを水平方向にカウントアップする(ステップS78)。   FIG. 21 is a flowchart showing the processing operation of the gradation processing device 124 configured as shown in FIG. This series of operations is executed by the controller 164. First, a drawing pattern AND clip pattern is set as WDATA (step S71), and IX is initialized to 0 (step S72). Subsequently, it is determined whether or not the IX bit of WDATA is 1 (step S73). Here, when the IXth bit of WDATA is 1, the threshold values (C, Y, M, K) data are compared by the comparison devices 148 to 151 and binarized (step S74). Further, the binary or (C, M, Y, K) data is added to the fixed length data (step S75). Subsequently, it is determined whether or not the data has grown to a fixed length (step S76). If the data has grown, the fixed length data of C, M, Y, and K is written to each of the FIFOs 156 to 159 (step S77). Are counted up in the horizontal direction (step S78).

続いて、ディザの水平方向のアドレスが水平方向のサイズを超えたか否かを判断する(ステップS79)。ここで当該サイズを超えた場合、ディザのアドレスを水平方向のアドレスをクリアし(ステップS80)、IXが最終BITであるか否かを判断する(ステップS81)。ここで、IXが最終BITでなければそのIXを1つ進ませ(ステップS82)、ステップS73に戻る。   Subsequently, it is determined whether or not the dither horizontal address exceeds the horizontal size (step S79). If the size is exceeded, the dither address is cleared from the horizontal address (step S80), and it is determined whether IX is the final BIT (step S81). If IX is not the final BIT, the IX is advanced by one (step S82), and the process returns to step S73.

一方、ステップS81においてIXが最終BITであると判断した場合、C,M,Y,KのFIFO中の諧調処理後のデータを先頭アドレスの示すメインメモリ104のバンドメモリ領域104aへ順次書き込み(ステップS83)、固定長まで達していないデータがあるか否かを判断する(ステップS84)。ここで、固定長まで達していないデータがある場合、固定長まで達していない諧調処理後のデータをメインメモリ104のバンドメモリ領域104aへ書き込む。   On the other hand, if it is determined in step S81 that IX is the final BIT, the data after gradation processing in the C, M, Y, K FIFO is sequentially written to the band memory area 104a of the main memory 104 indicated by the head address (step S81). S83), it is determined whether there is data that has not reached the fixed length (step S84). Here, if there is data that has not reached the fixed length, data after gradation processing that has not reached the fixed length is written to the band memory area 104 a of the main memory 104.

一方、ステップS73においてWDATAの1ビット目が1ではないと判断した場合、ステップS79に移行する。また、ステップS76において固定長までデータが成長していない場合、ステップS78に移行する。また、ステップS79においてディザの水平方向のアドレスが水平方向のサイズを超えていない場合、ステップS81に進む。   On the other hand, if it is determined in step S73 that the first bit of WDATA is not 1, the process proceeds to step S79. If the data has not grown to the fixed length in step S76, the process proceeds to step S78. If the dither horizontal address does not exceed the horizontal size in step S79, the process proceeds to step S81.

図22は、図20における各版の固定長データ生成装置152〜155の内部構成を示すブロック図である。この固定長データ生成装置152〜155は、シフタ165、OR装置166、レジスタ167、レジスタ168、レジスタ169、加算器170を備えている。   FIG. 22 is a block diagram showing the internal configuration of the fixed-length data generating apparatuses 152 to 155 for each version in FIG. Each of the fixed-length data generation devices 152 to 155 includes a shifter 165, an OR device 166, a register 167, a register 168, a register 169, and an adder 170.

シフタ165は、比較装置148〜151(図20参照)からの2値データを受け取り、レジスタ169からの値だけシフトしOR装置166へ転送する。OR装置166は、シフタ165がシフトした2値データをOR処理し、レジスタ167へ送る。レジスタ167は、OR装置166でOR処理され、追加された2値データを格納する。レジスタ168は、固定長に達したデータを格納する。加算器170は、比較装置148〜151(図20参照)から2値データを受けるごとに"1"を加算していく。レジスタ169は、シフト値を格納する。   The shifter 165 receives binary data from the comparison devices 148 to 151 (see FIG. 20), shifts the value from the register 169, and transfers it to the OR device 166. The OR device 166 ORs the binary data shifted by the shifter 165 and sends it to the register 167. The register 167 stores the added binary data that has been ORed by the OR device 166. The register 168 stores data that has reached the fixed length. The adder 170 adds “1” every time binary data is received from the comparison devices 148 to 151 (see FIG. 20). The register 169 stores the shift value.

ところで、これまで説明してきた画像処理方法(動作)を、プログラム化し、コンピュータ読み取り可能な記録媒体に記録し、コンピュータ上で実行することもできる。また、画像処理方法の一部をネットワーク上に有し、通信回線を通して実現することもできる。   By the way, the image processing method (operation) described so far can be programmed, recorded on a computer-readable recording medium, and executed on the computer. Further, a part of the image processing method can be provided on a network and realized through a communication line.

すなわち、この実施の形態で説明した画像処理方法は、図23に示すように、あらかじめ用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータ(CPU30)で実行することにより実現される。このプログラムは、キーボード35の操作などにより、メモリ31、ハードディスク34、フレキシブルディスク37、CD−ROM(Compact−Disc Read Only Memory)36、MO(Magneto Optical)、DVD(Digital Versatile Disc)などのコンピュータで読み取り可能な記録媒体に記録され、コンピュータ(CPU30)によって記録媒体から読み出し、必要に応じて表示装置33に表示することによって実行される。また、必要に応じてこの画像処理方法のデータを通信装置32から外部装置に送受信することも可能である。   That is, the image processing method described in this embodiment is realized by executing a program prepared in advance on a computer (CPU 30) such as a personal computer or a workstation as shown in FIG. This program is operated by a computer such as a memory 31, a hard disk 34, a flexible disk 37, a CD-ROM (Compact-Disc Read Only Memory) 36, an MO (Magneto Optical), a DVD (Digital Versatile Disc) by operating the keyboard 35. The program is recorded on a readable recording medium, read from the recording medium by a computer (CPU 30), and displayed on the display device 33 as necessary. In addition, data of this image processing method can be transmitted and received from the communication device 32 to an external device as necessary.

また、このプログラムは、図24に示すように、上記記録媒体を介して、インターネット30などのネットワークによってパーソナルコンピュータなどの装置41〜43に配布することができる。   Further, as shown in FIG. 24, this program can be distributed to devices 41 to 43 such as a personal computer via the recording medium via a network such as the Internet 30.

すなわち、このプログラムは、たとえばコンピュータに内蔵されている記録媒体としてのハードディスクに、あらかじめインストールした状態で提供することができる。プログラムは記録媒体に一時的あるいは永続的に格納し、コンピュータにユニットとして組み込んだり、あるいは着脱式の記録媒体として利用することで、パッケージソフトウェアとして提供することができる。   That is, this program can be provided in a state of being installed in advance on a hard disk as a recording medium built in the computer, for example. The program can be temporarily or permanently stored in a recording medium, and can be provided as packaged software by being incorporated in a computer as a unit or being used as a removable recording medium.

記録媒体としては、たとえば、フレキシブルディスク、CD−ROM、MOディスク、DVD、磁気ディスク、半導体メモリなどが利用できる。   As the recording medium, for example, a flexible disk, a CD-ROM, an MO disk, a DVD, a magnetic disk, a semiconductor memory, and the like can be used.

プログラムは、ダウンロードサイトから、LAN(Local Area Network)やインターネットといったネットワークを介して、有線または無線でコンピュータに転送し、そのコンピュータにおいて、内蔵するハードディスクなどの記憶装置にダウンロードさせるようにすることができる。   The program can be transferred from a download site to a computer wired or wirelessly via a network such as a LAN (Local Area Network) or the Internet, and downloaded to a storage device such as a built-in hard disk in the computer. .

以上のように、本発明にかかる画像処理装置および画像処理方法、並びに画像処理方法をコンピュータに実行させるプログラムを記録したコンピュータ読み取り可能な記録媒体は、デジタル複写機やプリンタなどの画像形成装置、デジタルカメラなどに有用であり、特に、任意の多角形クリッピング図形の描画処理を少ないメモリ容量でかつ高速に行なう必要がある画像処理システムに適している。   As described above, an image processing apparatus and an image processing method according to the present invention, and a computer-readable recording medium on which a program for causing a computer to execute the image processing method is recorded are an image forming apparatus such as a digital copying machine or a printer, a digital It is useful for cameras and the like, and is particularly suitable for an image processing system that needs to perform drawing processing of an arbitrary polygon clipping figure with a small memory capacity and high speed.

本発明の実施の形態にかかる画像形成装置の機構部の構成例を示す説明図である。3 is an explanatory diagram illustrating a configuration example of a mechanism unit of the image forming apparatus according to the embodiment of the present invention. 図1における画像形成装置の電装・制御系の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of an electrical / control system of the image forming apparatus in FIG. 1. 本発明の実施の形態にかかる画像処理の流れを示すブロック図である。It is a block diagram which shows the flow of the image processing concerning embodiment of this invention. 本発明の実施の形態にかかる画像処理の概念を示すブロック図である。It is a block diagram which shows the concept of the image processing concerning embodiment of this invention. 図2におけるメインメモリのフォーマット例を示す説明図である。It is explanatory drawing which shows the example of a format of the main memory in FIG. 本発明の実施の形態にかかる図2における画像処理の流れを示すブロック図である。It is a block diagram which shows the flow of the image processing in FIG. 2 concerning embodiment of this invention. 多角形クリップ情報が指定された領域に四角形を描画する例を示す説明図である。It is explanatory drawing which shows the example which draws a rectangle in the area | region where polygon clip information was designated. 多角形クリップ図形および当該図形に対する水平ラインアドレスを示す説明図である。It is explanatory drawing which shows the horizontal line address with respect to a polygon clip figure and the said figure. 図8−1におけるフォーマットを示す図表である。It is a chart which shows the format in FIGS. 多角形クリップ図形に対する他のフォーマット例を示す説明図である。It is explanatory drawing which shows the other example of a format with respect to a polygon clip figure. 本発明の実施の形態にかかる描画装置の構成および処理を示すブロック図である。It is a block diagram which shows the structure and process of the drawing apparatus concerning embodiment of this invention. 図10における水平ライン描画装置が生成する描画パターンと水平クリッピング情報生成装置が生成するクリップパターンの例を示す説明図である。It is explanatory drawing which shows the example of the drawing pattern which the horizontal line drawing apparatus in FIG. 10 produces | generates, and the clip pattern which a horizontal clipping information production | generation apparatus produces | generates. 図10における描画装置の動作処理を示すフローチャートである。It is a flowchart which shows the operation | movement process of the drawing apparatus in FIG. 図2における描画装置の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the drawing apparatus in FIG. 図13における水平クリッピング情報生成装置の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the horizontal clipping information generation apparatus in FIG. 本発明の実施の形態にかかる描画パターンおよびクリップパターンの処理動作を示す説明図である。It is explanatory drawing which shows the drawing pattern and clip pattern processing operation concerning embodiment of this invention. 図14における多角形クリップデータ格納装置の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the polygon clip data storage apparatus in FIG. 図14における水平クリッピング情報生成装置の処理動作(1)を示すフローチャートである。It is a flowchart which shows the processing operation (1) of the horizontal clipping information generation apparatus in FIG. 図14における水平クリッピング情報生成装置の処理動作(2)を示すフローチャートである。It is a flowchart which shows the processing operation (2) of the horizontal clipping information generation apparatus in FIG. 図14の水平クリッピング情報生成装置における描画クリップパターン生成装置の処理動作を示すフローチャートである。It is a flowchart which shows the processing operation of the drawing clip pattern generation apparatus in the horizontal clipping information generation apparatus of FIG. 図13の描画装置における水平ライン描画装置の処理動作を示すフローチャートである。It is a flowchart which shows the processing operation of the horizontal line drawing apparatus in the drawing apparatus of FIG. 図10における諧調処理装置の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the gradation processing apparatus in FIG. 図20のように構成された諧調処理装置の処理動作を示すフローチャートである。It is a flowchart which shows the processing operation of the gradation processing apparatus comprised like FIG. 図20における各版の固定長データ生成装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the fixed length data generation apparatus of each version in FIG. 本発明の実施の形態にかかる画像処理方法をコンピュータに実行させる例を示すブロック図である。It is a block diagram which shows the example which makes a computer perform the image processing method concerning embodiment of this invention. 本発明の実施の形態にかかる画像処理方法をネットワーク上からダウンロードして実行させる例を示すブロック図である。It is a block diagram which shows the example which downloads and performs the image processing method concerning embodiment of this invention from a network. 従来におけるリエントラント型(または再入)多角形クリッピング例を示す説明図である。It is explanatory drawing which shows the example of the conventional reentrant type (or reentry) polygon clipping.

符号の説明Explanation of symbols

100 カラープリンタ
101 CPU
103 メモリコントローラ
104 メインメモリ
104a バンドメモリ領域
104b 符号ページメモリ領域
104c 多角形クリップ情報メモリ領域
105 描画装置
106 符号化装置
107 復号化装置
108 エンジンコントローラ
109 プリンタエンジン
121 描画コマンド
122 描画コマンド解析装置
123 水平ライン描画装置
124 階調処理装置
125 多角形クリップ情報
126 水平クリッピング情報生成装置
127 書き込みアドレス生成装置
131 多角形クリップデータ格納装置
100 color printer 101 CPU
DESCRIPTION OF SYMBOLS 103 Memory controller 104 Main memory 104a Band memory area 104b Code page memory area 104c Polygon clip information memory area 105 Drawing apparatus 106 Encoding apparatus 107 Decoding apparatus 108 Engine controller 109 Printer engine 121 Drawing command 122 Drawing command analysis apparatus 123 Horizontal line Drawing device 124 Gradation processing device 125 Polygonal clip information 126 Horizontal clipping information generating device 127 Write address generating device 131 Polygonal clip data storage device

Claims (5)

任意の多角形クリッピング情報を取り込んで描画出力を行なう画像処理装置において、
前記多角形クリッピング情報、描画後画像データを格納するデータ格納領域と、
前記データ格納領域に多角形クリッピング情報を書き込み、バンドの描画コマンドを転送する転送・制御手段と、
前記データ格納領域に格納されている前記多角形クリッピング情報を水平方向にスキャンし、そのラインと交差するクリッピング図形の開始点および終点をライン毎に読み込んで多角形クリッピングを実行し、前記データ格納領域に描画後画像データとして描画する描画手段と、
を備えたことを特徴とする画像処理装置。
In an image processing apparatus that captures arbitrary polygon clipping information and performs drawing output,
A data storage area for storing the polygon clipping information and the image data after rendering;
Transfer / control means for writing polygon clipping information in the data storage area and transferring a band drawing command;
The polygon clipping information stored in the data storage area is scanned in the horizontal direction, the starting point and the end point of a clipping figure intersecting the line are read for each line, and polygon clipping is executed, and the data storage area A drawing means for drawing the image data after the drawing,
An image processing apparatus comprising:
前記描画処理手段は、
描画コマンド解析手段と、水平クリッピング情報生成手段と、水平ライン描画手段と、水平クリッピング情報生成手段と、を備え、
前記描画コマンド解析手段は、前記転送・制御手段からの描画コマンドを受け取り、描画する水平ラインのY値を前記水平クリッピング情報生成手段へ転送し、前記水平ライン描画手段へ水平ラインの開始X値と終点X値を送り、
前記水平クリッピング情報生成手段は、前記描画コマンド解析手段から描画する水平ラインのY値を受け取り、前記多角形クリッピング情報からY値の水平方向の多角形クリッピング情報を読み込み、
前記水平ライン描画手段は、前記描画コマンド解析手段から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、前記データ格納手段のワードごとの描画パターンを生成して前記階調処理手段へ転送し、描画ワードの水平ワード数である描画ワード番号を前記水平クリッピング情報生成手段へ転送し、
前記水平クリッピング情報生成手段は、前記水平ライン描画手段からの描画ワード番号に対応するクリップパターンを生成し当該描画後画像データを前記データ格納領域に描画することを特徴とする請求項1に記載の画像処理装置。
The drawing processing means includes:
A drawing command analyzing means, a horizontal clipping information generating means, a horizontal line drawing means, and a horizontal clipping information generating means,
The drawing command analysis unit receives a drawing command from the transfer / control unit, transfers a Y value of a horizontal line to be drawn to the horizontal clipping information generation unit, and sends a horizontal line start X value to the horizontal line drawing unit. Send end X value,
The horizontal clipping information generating means receives the Y value of the horizontal line to be drawn from the drawing command analyzing means, reads the horizontal polygon clipping information of the Y value from the polygon clipping information,
The horizontal line drawing means starts horizontal line drawing processing from the start X value and end point X value of the horizontal line from the drawing command analysis means, generates a drawing pattern for each word of the data storage means, and generates the gradation Transfer to the processing means, transfer the drawing word number which is the number of horizontal words of the drawing word to the horizontal clipping information generation means,
The horizontal clipping information generation unit generates a clip pattern corresponding to a drawing word number from the horizontal line drawing unit, and draws the drawn image data in the data storage area. Image processing device.
任意の多角形クリッピング情報を取り込んで描画出力を行なう画像処理方法において、
前記多角形クリッピング情報、描画後画像データを格納するデータ格納領域と、
前記データ格納領域に多角形クリッピング情報を書き込み、バンドの描画コマンドを転送する転送・制御工程と、
前記データ格納領域に格納されている前記多角形クリッピング情報を水平方向にスキャンし、そのラインと交差するクリッピング図形の開始点および終点をライン毎に読み込んで多角形クリッピングを実行し、前記データ格納領域に描画後画像データバンドデータとして描画する描画工程と、
を含むことを特徴とする画像処理方法。
In an image processing method for drawing and outputting arbitrary polygon clipping information,
A data storage area for storing the polygon clipping information and the image data after rendering;
A polygon transfer information is written in the data storage area, and a transfer / control step for transferring a band drawing command;
The polygon clipping information stored in the data storage area is scanned in the horizontal direction, the starting point and the end point of a clipping figure intersecting the line are read for each line, and polygon clipping is executed, and the data storage area A drawing process of drawing as image data band data after drawing on;
An image processing method comprising:
前記描画処理工程は、
前記描画コマンド解析工程と、水平クリッピング情報生成工程と、水平ライン描画工程と、水平クリッピング情報生成工程と、を含み、
描画コマンド解析工程は、前記転送・制御工程からの描画コマンドを受け取り、描画する水平ラインのY値を前記水平クリッピング情報生成工程へ転送し、前記水平ライン描画工程へ水平ラインの開始X値と終点X値を送り、
前記水平クリッピング情報生成工程は、前記描画コマンド解析工程から描画する水平ラインのY値を受け取り、前記多角形クリッピング情報からY値の水平方向の多角形クリッピング情報を読み込み、
前記水平ライン描画工程は、前記描画コマンド解析工程から水平ラインの開始X値と終点X値から水平ラインの描画処理を開始し、前記データ格納手段のワードごとの描画パターンを生成して前記階調処理工程へ転送し、描画ワードの水平ワード数である描画ワード番号を前記水平クリッピング情報生成工程へ転送し、
前記水平クリッピング情報生成工程は、前記水平ライン描画工程からの描画ワード番号に対応するクリップパターンを生成し、当該描画後画像データを前記データ格納領域に描画することを特徴とする請求項3に記載の画像処理方法。
The drawing processing step includes
The drawing command analysis step, horizontal clipping information generation step, horizontal line drawing step, and horizontal clipping information generation step,
The drawing command analysis step receives a drawing command from the transfer / control step, transfers the Y value of the horizontal line to be drawn to the horizontal clipping information generation step, and starts the horizontal line start X value and the end point to the horizontal line drawing step. Send X value,
The horizontal clipping information generation step receives the Y value of a horizontal line to be drawn from the drawing command analysis step, reads the horizontal polygon clipping information of the Y value from the polygon clipping information,
The horizontal line drawing step starts horizontal line drawing processing from the start X value and end point X value of the horizontal line from the drawing command analysis step, generates a drawing pattern for each word of the data storage means, and generates the gradation Transfer to the processing step, transfer the drawing word number, which is the number of horizontal words of the drawing word, to the horizontal clipping information generation step,
4. The horizontal clipping information generation step generates a clip pattern corresponding to a drawing word number from the horizontal line drawing step, and draws the drawn image data in the data storage area. Image processing method.
前記請求項3または4に記載の画像処理方法を、コンピュータに実行させるプログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。   5. A computer-readable recording medium on which a program for causing a computer to execute the image processing method according to claim 3 is recorded.
JP2004073331A 2004-03-15 2004-03-15 Image processor and image processing method, and computer-readable recording medium with program for allowing computer to execute image processing method recorded thereon Pending JP2005260871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004073331A JP2005260871A (en) 2004-03-15 2004-03-15 Image processor and image processing method, and computer-readable recording medium with program for allowing computer to execute image processing method recorded thereon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004073331A JP2005260871A (en) 2004-03-15 2004-03-15 Image processor and image processing method, and computer-readable recording medium with program for allowing computer to execute image processing method recorded thereon

Publications (1)

Publication Number Publication Date
JP2005260871A true JP2005260871A (en) 2005-09-22

Family

ID=35086134

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004073331A Pending JP2005260871A (en) 2004-03-15 2004-03-15 Image processor and image processing method, and computer-readable recording medium with program for allowing computer to execute image processing method recorded thereon

Country Status (1)

Country Link
JP (1) JP2005260871A (en)

Similar Documents

Publication Publication Date Title
JP5369982B2 (en) Image processing apparatus and image processing method
JP4979357B2 (en) Image forming apparatus and control method thereof
JP4133369B2 (en) Image processing apparatus, method, and program
JP2005309865A (en) Image processing apparatus and method, and computer readable recording medium for recording program for causing computer to implement this method
JP4568685B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing a program for causing a computer to execute the image processing method
JP2009169584A (en) Image processing apparatus, image processing method and program
US9299016B2 (en) Misregistration correcting method and apparatus for use in image processing apparatus
JP4490783B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing a program for causing a computer to execute the image processing method
JP2005260871A (en) Image processor and image processing method, and computer-readable recording medium with program for allowing computer to execute image processing method recorded thereon
JP5084543B2 (en) Image processing apparatus and image processing method
JP4450651B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing a program for causing a computer to execute the image processing method
JP5218332B2 (en) Image processing apparatus and image processing method
JP2011000794A (en) Image forming apparatus, image forming method and program executing image forming method
JP5201040B2 (en) Image processing apparatus, image processing method, and program
JP2005262624A (en) Image processing apparatus, image processing method, and computer readable recording medium having program for making computer execute image processing method recorded therein
JP2010166238A (en) Image forming apparatus, image forming method and print data generation program
JP2004236042A (en) Image processor and image processing method
JP2005305873A (en) Image processor, method of processing image, and computer readable recording medium containing program for allowing computer to execute the method
JP2004237674A (en) Image processor
JP2006192729A (en) Image forming apparatus and method of processing data therein
JP2005258650A (en) Image processor and image processing method and computer-readable recording medium for recording program for making computer perform image processing method
JP2004230742A (en) Image processor and image processing method
JP5123721B2 (en) Image forming apparatus, method, and program
JP2008044236A (en) Image processor, image processing method, and program for being executed by computer
JP2013008247A (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060724

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080304

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080318

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080519

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080617