JP2007087283A - Graphic drawing device and graphic drawing program - Google Patents

Graphic drawing device and graphic drawing program Download PDF

Info

Publication number
JP2007087283A
JP2007087283A JP2005277877A JP2005277877A JP2007087283A JP 2007087283 A JP2007087283 A JP 2007087283A JP 2005277877 A JP2005277877 A JP 2005277877A JP 2005277877 A JP2005277877 A JP 2005277877A JP 2007087283 A JP2007087283 A JP 2007087283A
Authority
JP
Japan
Prior art keywords
polygon
vertex
unit
gradient
coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005277877A
Other languages
Japanese (ja)
Other versions
JP4664169B2 (en
Inventor
Masaki Hamada
雅樹 濱田
Akira Torii
晃 鳥居
Hiroshi Onishi
宏 大西
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2005277877A priority Critical patent/JP4664169B2/en
Publication of JP2007087283A publication Critical patent/JP2007087283A/en
Application granted granted Critical
Publication of JP4664169B2 publication Critical patent/JP4664169B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a graphic drawing device capable of determining a polygonal outline (edge) from vertex information input in an arbitrary order, rapidly painting out the inside of a polygon and rapidly drawing the polygon by simple operation without needing a storage region for storing intersection coordinates of polygonal edges and a scanning line, and to provide a program for achieving the graphic drawing function in a computer. <P>SOLUTION: A vertex sorting part inputs information on the polygon including the vertex coordinates of the polygon and carries out numbering sequentially in the ascending order of Y-coordinates out of vertexes. A gradient computing part computes the gradients of the edges on the outer periphery of the polygon based on the sequence of the vertex coordinates. A polygonal shape determining part determines polygonal shape based on the size relation of the computed gradients. Based on the determined polygonal shape, an edge forming part computes the intersection coordinates with the scanning line by sequentially adding the gradients on two right and left edges from a drawing start point. A painting-out processing part performs painting-out processing between the computed intersections with the scanning line. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、多角形を描画する図形描画装置及び図形描画機能をコンピュータに実現させるプログラムに関するものである。   The present invention relates to a graphic drawing apparatus for drawing a polygon and a program for causing a computer to realize a graphic drawing function.

従来の多角形を描画する図形描画装置としては、例えば特開平5-46783号公報(特許文献1)で示されているものが提案されている。これは多角形の頂点を入力された順に結んで輪郭線を生成し、輪郭線で形成される多角形を描画するという方式をとり、多角形と走査線との交点座標、色情報などを保存するための画像メモリを備えている。
従って、上記の方法では、多角形の頂点座標が入力される順序によっては、図10(G)に示すように図形がねじれた形で描画されてしまう場合がある。例えば、(E)のように必ずV1⇒V2⇒V3⇒V4の順序で頂点座標を設定し、設定された順序で四角形の輪郭線を生成するようにしていた場合には、(F)のような四角形を描画したい場合でも頂点座標の入力順序が(F)のようになると(G)のようにねじれた形で描画されてしまう。このような描画結果を避けるためには、多角形形状の判定が必要となる。
As a conventional figure drawing apparatus for drawing a polygon, for example, the one shown in Japanese Patent Laid-Open No. 5-46783 (Patent Document 1) has been proposed. This creates a contour line by connecting the vertices of the polygon in the order in which they are entered, and draws the polygon formed by the contour line, saving the coordinates of the intersection of the polygon and the scanning line, color information, etc. An image memory is provided.
Therefore, in the above method, depending on the order in which the vertex coordinates of the polygon are input, the figure may be drawn in a twisted form as shown in FIG. For example, when the vertex coordinates are always set in the order of V1⇒V2⇒V3⇒V4 as shown in (E) and the rectangular outline is generated in the set order, as shown in (F) Even if it is desired to draw a simple rectangle, if the input order of the vertex coordinates is as shown in (F), it is drawn in a twisted form as shown in (G). In order to avoid such a drawing result, it is necessary to determine a polygonal shape.

また、特開平7-105405号公報(特許文献2)では、描画対象の多角形を複数の三角形に分割して描画する方法が開示されている。さらに、多角形が四角形である場合には、形状判定を利用してそれ以上の多角形の処理と分離し、処理性能を向上する方式が示されている。なお、特許文献2では、多角形分割後の三角形または四角形の形状判定に外積演算を利用している。   Japanese Patent Laid-Open No. 7-105405 (Patent Document 2) discloses a method of drawing a polygon to be drawn by dividing it into a plurality of triangles. Furthermore, when the polygon is a quadrangle, a method is shown in which shape determination is used to separate processing from further polygons to improve processing performance. In Patent Document 2, outer product calculation is used for shape determination of a triangle or a quadrangle after polygon division.

特開平5-46783号公報JP-A-5-46783 特開平7-105405号公報JP-A-7-105405

特許文献1に開示される多角形描画方式では、多角形のエッジと走査線との交点座標を保存するための画像メモリを備えるために、描画領域の縦方向のサイズ分だけの記憶領域が必要であり、ハードウェア規模の削減にも限界があるという課題があった。
また、特許文献2に開示される技術においては、多角形形状の判定に外積演算を利用しており、描画処理の度に多大な計算を必要とするという課題がある。このように、従来の多角形描画技術では、任意の順序で入力された頂点情報から多大な計算量を要することなく高速な描画を実行することが困難であった。
The polygon drawing method disclosed in Patent Document 1 includes an image memory for storing the intersection coordinates of the polygon edge and the scanning line, and therefore requires a storage area corresponding to the vertical size of the drawing area. However, there is a problem that there is a limit in reducing the hardware scale.
Further, the technique disclosed in Patent Document 2 uses a cross product operation for determining a polygonal shape, and there is a problem that a large amount of calculation is required for each drawing process. Thus, with the conventional polygon drawing technique, it is difficult to execute high-speed drawing without requiring a large amount of calculation from vertex information input in an arbitrary order.

この発明は上記のような問題点を解決するためになされたもので、任意の順序で入力された頂点情報から多角形の輪郭線(エッジ)を判定し、多角形内部の塗潰しを高速に行うことを可能とする。
また、多角形のエッジと走査線との交点座標を保存するための記憶領域を必要とせず、単純な演算によって多角形を高速に描画できる図形描画装置およびこの図形描画機能をコンピュータに実現させるプログラムを得ることを目的とする。
The present invention has been made to solve the above-described problems. A polygon outline (edge) is determined from vertex information input in an arbitrary order, and the polygon is filled at high speed. Make it possible to do.
In addition, a graphic drawing apparatus capable of drawing a polygon at high speed by a simple calculation without requiring a storage area for storing the coordinates of the intersection between the polygon edge and the scanning line, and a program for causing the computer to realize this graphic drawing function The purpose is to obtain.

この発明に係る図形描画装置は、多角形の頂点座標を含む多角形の情報を入力し、前記頂点の中でY座標が小さいものから順に番号付けを行う頂点ソート部と、頂点ソート部が決定した頂点座標の順序に基づいて前記多角形の外周となるエッジの勾配を算出する勾配算出部と、前記勾配算出部が算出した勾配の大小関係に基づいて多角形の形状を判定する多角形形状判定部と、多角形形状判定部が判定した多角形の形状に基づいて描画開始点から左右2つのエッジについて勾配を順次加算して走査線との交点の座標を算出するエッジ生成部と、エッジ生成部が算出した走査線との交点間の塗潰し処理を行う塗潰し処理部とを備えるものである。   The figure drawing apparatus according to the present invention inputs polygon information including the vertex coordinates of a polygon, and the vertex sorting unit that performs numbering in order from the smallest Y coordinate among the vertices, and the vertex sorting unit determine A gradient calculating unit that calculates a gradient of an edge that is an outer periphery of the polygon based on the order of the vertex coordinates, and a polygon shape that determines a polygonal shape based on a magnitude relationship of the gradients calculated by the gradient calculating unit An edge generation unit that calculates the coordinates of the intersection with the scanning line by sequentially adding gradients for the two left and right edges from the drawing start point based on the polygon shape determined by the polygon shape determination unit; A paint processing unit that performs paint processing between intersections with the scanning line calculated by the generation unit.

この発明に係る図形描画装置によれば、勾配算出部が算出した勾配の大小関係に基づく単純な判定条件を利用して任意の順序で入力された頂点情報に基づいた多角形の形状を多角形形状判定部が判定し、多角形の形状に基づいてエッジ生成部で算出された描画開始点から左右2つのエッジと走査線との交点の座標間の塗潰し処理を塗潰し処理部が行う構成であるので、多角形内部の塗潰しを高速に行うことができ多角形描画を高速に行えるという効果がある。また、Y座標が最小となる頂点を描画開始点として、Y座標をインクリメントしながら逐次処理を行うため走査線とエッジとの交点座標を保存するための記憶領域を必要としない。   According to the graphic drawing device according to the present invention, the polygonal shape based on the vertex information input in an arbitrary order using a simple determination condition based on the magnitude relation of the gradient calculated by the gradient calculating unit A configuration in which the paint processing unit performs the paint processing between the coordinates of the intersection of the two left and right edges and the scanning line from the drawing start point determined by the shape determination unit and calculated by the edge generation unit based on the polygonal shape Therefore, there is an effect that the inside of the polygon can be filled at a high speed and the polygon can be drawn at a high speed. Further, since the processing is sequentially performed while the Y coordinate is incremented with the vertex having the minimum Y coordinate as the drawing start point, a storage area for storing the intersection coordinate between the scanning line and the edge is not required.

実施の形態1.
図1は、この発明の実施の形態1による図形描画装置の構成を示すブロック図である。実施の形態1による図形描画装置7は、頂点ソート部1、勾配算出部2、多角形形状判定部3、エッジ生成部4及び塗潰し処理部5から構成され、図形描画装置7によって生成されたピクセルデータがフレームバッファ6に保持され、保持されたピクセルデータは適宜読み出されて表示される。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of a graphic drawing apparatus according to Embodiment 1 of the present invention. The graphic drawing device 7 according to the first embodiment includes a vertex sorting unit 1, a gradient calculating unit 2, a polygon shape determining unit 3, an edge generating unit 4, and a painting processing unit 5, and is generated by the graphic drawing device 7. Pixel data is held in the frame buffer 6, and the held pixel data is read and displayed as appropriate.

頂点ソート部1は、電子データとして入力された多角形の頂点の情報をY座標の小さいものから順に番号付けを行う。勾配算出部2では、頂点ソート部1が求めたY座標が最小となる頂点を起点とし、他の頂点とを結んだ線分の勾配を算出する。多角形形状判定部3は、勾配算出部2が算出した勾配の大小関係を比較し、多角形の形状を判定する。エッジ生成部4では、多角形形状判定部3が判定した多角形の形状に基づき、描画開始点の座標に対してY座標をインクリメントしながら勾配算出部2が算出した勾配を順次加算することにより、エッジと走査線との交点の座標を算出する。塗潰し処理部5では、エッジ生成部4が算出したエッジと走査線との交点の座標に基づいて塗潰し処理を実行する。フレームバッファ6には、図形描画装置7が生成した多角形のピクセルデータを保持する。   The vertex sorting unit 1 numbers polygon vertex information input as electronic data in order from the smallest Y coordinate. The gradient calculation unit 2 calculates the gradient of a line segment connecting the other vertexes with the vertex having the minimum Y coordinate obtained by the vertex sorting unit 1 as a starting point. The polygon shape determination unit 3 compares the gradient magnitudes calculated by the gradient calculation unit 2 and determines the polygonal shape. The edge generation unit 4 sequentially adds the gradient calculated by the gradient calculation unit 2 while incrementing the Y coordinate with respect to the coordinates of the drawing start point based on the polygon shape determined by the polygon shape determination unit 3. The coordinates of the intersection between the edge and the scanning line are calculated. The painting processing unit 5 performs painting processing based on the coordinates of the intersection between the edge calculated by the edge generation unit 4 and the scanning line. The frame buffer 6 holds polygonal pixel data generated by the graphic drawing device 7.

また、図形描画装置7の構成要素である頂点ソート部1、勾配算出部2、多角形形状判定部3、エッジ生成部4及び塗潰し処理部5は、本発明の趣旨に沿う図形描画プログラムをコンピュータに読み込ませ、各部の動作を制御することにより、当該コンピュータ上でソフトウエアとハードウェアが協働した具体的な手段として実現することもできる。このコンピュータには、通信機能を有し、上記図形描画プログラムを実行することができる携帯電話や携帯情報端末も含まれる。なお、コンピュータ自体の構成及びその基本的な機能については、当業者が当該技術分野の技術常識に基づいて容易に認識できるものであり、この発明の本質に直接関わるものでないので詳細な記載を省略する。   In addition, the vertex sort unit 1, the gradient calculation unit 2, the polygon shape determination unit 3, the edge generation unit 4 and the painting processing unit 5 which are constituent elements of the graphic drawing device 7 are provided with a graphic drawing program in accordance with the spirit of the present invention. It can be realized as a specific means in which software and hardware cooperate on the computer by causing the computer to read and controlling the operation of each unit. The computer includes a mobile phone and a portable information terminal that have a communication function and can execute the graphic drawing program. The configuration of the computer itself and its basic functions can be easily recognized by those skilled in the art based on the common general technical knowledge in the technical field, and are not directly related to the essence of the present invention. To do.

図2は、この発明による多角形描画処理手順を説明するための図であり、例として四角形を描画する場合を示す。ここで、図形描画装置7が搭載されたコンピュータのCPUから入力された多角形の情報として、頂点の座標(x1,y1)〜(x4,y4)が設定されたものとする。また、入力される頂点の座標はどの順序であってもよく、頂点ソート部1によってY座標の小さいものから順にV1(x1,y1)〜V4(x4,y4)となるように改めて番号付けを行う。従って、図2の表記は、前記頂点ソート部1による処理を行った後の状態と考えればよい。   FIG. 2 is a diagram for explaining a polygon drawing processing procedure according to the present invention, and shows a case of drawing a rectangle as an example. Here, it is assumed that the coordinates (x1, y1) to (x4, y4) of the vertices are set as polygon information input from the CPU of the computer on which the graphic drawing device 7 is mounted. In addition, the coordinates of the input vertices may be in any order, and the vertex sorting unit 1 renumbers them so that V1 (x1, y1) to V4 (x4, y4) are in order from the smallest Y coordinate. Do. Therefore, the notation in FIG. 2 may be considered as a state after the processing by the vertex sorting unit 1 is performed.

この発明では、多角形の各頂点を通る水平線によってn次多角形を(n−1)個の台形または三角形の領域に分割し、Y座標が小さい方の領域から順に(1)、(2)、(3)の領域と定義する。図2のような四角形の場合には、Y座標が最小となる頂点から反
時計回りに見た頂点の順序がV1⇒V2⇒V3⇒V4となる場合(A)と、V1⇒V3⇒V4⇒V2となる場合(B)の2通りに分類することができる。
また、多角形の頂点から任意の2点を選択してできる線分の中で、多角形の輪郭線上にあるものをエッジと呼ぶことにする。例えば、図2(A)においてエッジに相当するのは、V1V2、V1V4、V2V3およびV3V4であり、図2(B)においてエッジに相当するのは、V1V2、V1V3、V2V4およびV3V4である。
In the present invention, the n-order polygon is divided into (n-1) trapezoidal or triangular regions by a horizontal line passing through each vertex of the polygon, and (1), (2) in order from the region with the smallest Y coordinate. , (3) region. In the case of a quadrangle as shown in FIG. 2, the order of the vertices viewed counterclockwise from the vertex having the smallest Y coordinate is V1⇒V2⇒V3⇒V4 (A), and V1⇒V3⇒V4⇒. When it becomes V2, it can be classified into two types (B).
Further, among the line segments formed by selecting any two points from the vertexes of the polygon, those on the outline of the polygon are called edges. For example, V1V2, V1V4, V2V3, and V3V4 correspond to the edges in FIG. 2A, and V1V2, V1V3, V2V4, and V3V4 correspond to the edges in FIG. 2B.

一方、四角形の頂点が図3のように四角形に凹みが生じるような条件で入力された場合には、図3(C)、(D)のいずれの四角形を描画すればよいかを判断することができない。これは、図形の性質上回避できない問題点であり、この発明の本質に直接関わるものでない。以後、この発明では凸型の多角形のみを取り扱うものとする。   On the other hand, if the vertex of the quadrangle is input under the condition that the dent is formed in the quadrangle as shown in FIG. 3, it is determined which quadrangle of FIGS. 3C and 3D should be drawn. I can't. This is a problem that cannot be avoided due to the nature of the figure, and is not directly related to the essence of the present invention. Hereinafter, only convex polygons will be handled in the present invention.

次に動作について説明する。
図形描画装置7は、CPUから描画するn次多角形の情報としてn個の頂点の座標、描画色等の情報が設定され、起動命令を受けることにより動作を開始する。起動命令を受けると、頂点ソート部1が起動して頂点のY座標の小さい順にV1〜Vnまで番号付けを行う。
Next, the operation will be described.
The graphic drawing device 7 is set with information on coordinates of n vertices, drawing colors, etc. as information of the n-th order polygon drawn from the CPU, and starts operating upon receipt of an activation command. When the activation command is received, the vertex sorting unit 1 is activated and numbers V1 to Vn in ascending order of the Y coordinate of the vertex.

勾配算出部2は、頂点ソート部1で決定された番号の情報を用いて、頂点のY座標が最小の点V1と、多角形の他の頂点とを結んだ線分の勾配を算出する。図2のように四角形を描画する場合には、エッジV1V2、V1V3、V1V4の3つの勾配を算出する。なお、これらの勾配は以下の式(1)〜(3)による演算で算出する。
dx12=(x2−x1)/(y2−y1) ・・・(1)
dx13=(x3−x1)/(y3−y1) ・・・(2)
dx14=(x4−x1)/(y4−y1) ・・・(3)
The gradient calculation unit 2 calculates the gradient of the line segment connecting the point V1 having the minimum Y coordinate of the vertex and the other vertex of the polygon, using the information of the number determined by the vertex sorting unit 1. When drawing a quadrangle as shown in FIG. 2, three gradients of edges V1V2, V1V3, and V1V4 are calculated. These gradients are calculated by calculations according to the following formulas (1) to (3).
dx12 = (x2-x1) / (y2-y1) (1)
dx13 = (x3-x1) / (y3-y1) (2)
dx14 = (x4-x1) / (y4-y1) (3)

多角形形状判定部3は、上式で求められた3つの勾配の大小関係を判定し、勾配が最大と最小になる2つのエッジを決定する。なお、n次多角形の場合には、n−1個の勾配の大小関係を判定する。   The polygon shape determination unit 3 determines the magnitude relationship between the three gradients obtained by the above equation, and determines two edges at which the gradient is maximum and minimum. In the case of an n-order polygon, the magnitude relation of n-1 gradients is determined.

エッジ生成部4は、いわゆるDDA(ディジタル微分解析器)を利用し、勾配算出部2が算出した勾配を、図7に示すように描画開始点のX座標に対して順次加算することにより、エッジと走査線との交点の座標を算出する。例えば、図7のような四角形を描画する場合、領域(1)においてエッジと走査線との交点の座標x12(y)およびx13(y)を以下の式(4)、(5)により順次算出する。ただし、走査線のY座標をyとおく。
x12(y)=X1+dx12×(y−Y1) ・・・(4)
x13(y)=X1+dx13×(y−Y1) ・・・(5)
The edge generation unit 4 uses a so-called DDA (digital differential analyzer), and sequentially adds the gradient calculated by the gradient calculation unit 2 to the X coordinate of the drawing start point as shown in FIG. And the coordinates of the intersection of the scanning line. For example, when a quadrangle as shown in FIG. 7 is drawn, the coordinates x12 (y) and x13 (y) of the intersection of the edge and the scanning line in the region (1) are sequentially calculated by the following equations (4) and (5). To do. However, the Y coordinate of the scanning line is set to y.
x12 (y) = X1 + dx12 × (y−Y1) (4)
x13 (y) = X1 + dx13 × (y−Y1) (5)

塗潰し処理部5は、エッジ生成部4で求められた2つのエッジと走査線との交点間を結ぶように順次ピクセルを生成する。また、Y座標が(1)〜(3)の各領域内の最終値に達した場合には、描画領域を次の領域に移行する処理を行う。   The painting processing unit 5 sequentially generates pixels so as to connect the intersections between the two edges obtained by the edge generation unit 4 and the scanning line. Further, when the Y coordinate reaches the final value in each of the areas (1) to (3), a process of shifting the drawing area to the next area is performed.

次に実施の形態1による多角形描画処理の詳細について説明する。
図4は、実施の形態1の図形描画装置による多角形描画処理の流れを示すフローチャートであり、この図に沿って説明する。
先ず、頂点ソート部1は、上述したように、頂点のY座標の小さい順にV1〜Vnまで番号付けを行う(ステップST1)。次に、勾配算出部2は、頂点のY座標が最小の点V1とそれ以外のn−1個の頂点V2〜Vnとを結ぶ各線分の勾配の算出を行う。図2のように四角形を描画する場合には、エッジV1V2、V1V3およびV1V4の勾配を算出する。(ステップST2)。
なお、この勾配の値は絶対値ではなく、正負を勘案した値とする。
Next, details of the polygon rendering process according to the first embodiment will be described.
FIG. 4 is a flowchart showing the flow of polygon drawing processing by the graphic drawing apparatus of the first embodiment, and will be described with reference to this figure.
First, as described above, the vertex sorting unit 1 performs numbering from V1 to Vn in ascending order of the Y coordinate of the vertex (step ST1). Next, the gradient calculation unit 2 calculates the gradient of each line segment connecting the point V1 having the smallest Y coordinate of the vertex and the (n−1) vertexes V2 to Vn. When a quadrilateral is drawn as shown in FIG. 2, the gradients of the edges V1V2, V1V3, and V1V4 are calculated. (Step ST2).
Note that the value of the gradient is not an absolute value but a value that takes into account positive and negative.

次に、多角形形状判定部3は、勾配算出部2で算出されたn−1個の勾配の大小関係を判定する。図2のような四角形を描画する場合には、上式(1)〜(3)で求められた3つの勾配の大小関係を判定し、勾配が最大及び最小となるエッジを決定し、これらを領域(1)におけるアクティブエッジと決定する(ステップST3)。ここでは、図2において太線で示したエッジが、領域(1)におけるアクティブエッジとなる。また、領域(1)におけるアクティブエッジが決定されれば、領域(2)および(3)におけるアクティブエッジも図5に示すように自動的に決定される。ただし、図5では領域(1)において最初にV1V2を選択した側のエッジをエッジ1、もう一方のエッジをエッジ2として表記している。同時に、領域の境界に達した時にアクティブエッジを切り替えるか否かを判定するための更新フラグを図6のように定める。なお、勾配が最大でも最小でもなかったエッジの勾配に関しては、今後の計算で使用しない。   Next, the polygon shape determination unit 3 determines the magnitude relationship of the n−1 gradients calculated by the gradient calculation unit 2. When drawing a quadrangle as shown in FIG. 2, the magnitude relationship between the three gradients obtained by the above formulas (1) to (3) is determined, the edge where the gradient is maximum and minimum is determined, and these are determined. The active edge in the region (1) is determined (step ST3). Here, an edge indicated by a thick line in FIG. 2 is an active edge in the region (1). If the active edge in the region (1) is determined, the active edges in the regions (2) and (3) are also automatically determined as shown in FIG. However, in FIG. 5, the edge on the side where V1V2 is first selected in the region (1) is represented as edge 1 and the other edge is represented as edge 2. At the same time, an update flag for determining whether or not to switch the active edge when the boundary of the region is reached is determined as shown in FIG. Note that the gradient of the edge whose gradient is not the maximum or minimum is not used in future calculations.

続いて、エッジ生成部4は、前記多角形形状判定部3で決定した2つのアクティブエッジに対して描画開始点の座標に勾配とy座標の増加分の積をそれぞれ加算していくことにより、エッジと走査線との交点のX座標を求める(ステップST4)。
その後、塗潰し処理部5は、エッジ生成部4が算出した2つのエッジと走査線との交点同士を結ぶように順次ピクセルを生成して塗潰し処理を行う(ステップST5)。さらにY座標が最終値であるか否かの判定を行う(ステップST6)。Y座標が最終値でない場合には、Y座標のインクリメントを行った後(ステップST7)、(ステップST4)〜(ステップST6)の処理を繰り返す。Y座標が最終値である場合には、図2の領域(1)〜(3)のいずれの領域の最終値であるかによって処理を分岐する。
Subsequently, the edge generation unit 4 adds the product of the increase of the gradient and the y coordinate to the coordinates of the drawing start point for the two active edges determined by the polygon shape determination unit 3, respectively. The X coordinate of the intersection of the edge and the scanning line is obtained (step ST4).
Thereafter, the painting processing unit 5 sequentially creates pixels so as to connect the intersections between the two edges calculated by the edge generation unit 4 and the scanning line, and performs painting processing (step ST5). Further, it is determined whether or not the Y coordinate is the final value (step ST6). If the Y coordinate is not the final value, the Y coordinate is incremented (step ST7), and then the processes of (step ST4) to (step ST6) are repeated. If the Y coordinate is the final value, the process branches depending on which of the areas (1) to (3) in FIG. 2 is the final value.

Y座標が領域(1)の最終値(y2)である場合には、領域(2)の描画処理に移行する(ステップST9)。ここで、図6に示した更新フラグが1であるエッジに関しては、アクティブエッジの切り替えが必要であるため、新たに勾配の算出を行う。四角形を描画する場合には、図5に示したように四角形の種類(A)の場合はエッジV2V3また四角形の種類(B)の場合はV2V4の勾配を算出する。
また、ここで領域(3)で使用するエッジV3V4の勾配の算出も同時に行っておく。この勾配は、(ステップST3)において選択されなかった勾配と置き換えて保存しておく。ここで、2つの勾配を並列して算出することにより、領域(3)に移行する際の除算によるオーバーヘッドを省略することが可能となる。その後、Y座標のインクリメントを行った後(ステップST7)、(ステップST4)〜(ステップST6)の処理を繰り返す。
When the Y coordinate is the final value (y2) of the area (1), the process proceeds to the drawing process of the area (2) (step ST9). Here, regarding the edge whose update flag is 1 shown in FIG. 6, since the active edge needs to be switched, the gradient is newly calculated. When drawing a rectangle, as shown in FIG. 5, the gradient of the edge V2V3 is calculated for the type of rectangle (A), and the gradient of V2V4 is calculated for the type of rectangle (B).
In addition, the gradient of the edge V3V4 used in the region (3) is calculated at the same time. This gradient is stored in place of the gradient not selected in (Step ST3). Here, by calculating the two gradients in parallel, it is possible to omit the overhead due to division when shifting to the region (3). Then, after incrementing the Y coordinate (step ST7), the processes of (step ST4) to (step ST6) are repeated.

Y座標が領域(2)の最終値(y3)である場合には、領域(3)の描画処理に移行する(ステップST11)。アクティブエッジの勾配は前記のように既に求められているので、新たに勾配の算出を行う必要はない。また、図6に示した更新フラグが1であるエッジに関しては、上記(ステップST9)で算出しておいたエッジV3V4の勾配に置き換える。その後、Y座標のインクリメントを行った後(ステップST7)、(ステップST4)〜(ステップST6)の処理を繰り返す。
Y座標が領域(3)の最終値(y4)である場合には、描画を終了する(ステップST12)。
When the Y coordinate is the final value (y3) of the area (2), the process proceeds to the drawing process of the area (3) (step ST11). Since the gradient of the active edge has already been obtained as described above, it is not necessary to newly calculate the gradient. Further, the edge with the update flag 1 shown in FIG. 6 is replaced with the gradient of the edge V3V4 calculated in the above (step ST9). Then, after incrementing the Y coordinate (step ST7), the processes of (step ST4) to (step ST6) are repeated.
If the Y coordinate is the final value (y4) of the area (3), the drawing is terminated (step ST12).

以上のように、この実施の形態1では、多角形を描画する際に頂点座標がランダムに入力された場合でも、勾配の大小比較という単純な判定条件で多角形の形状を分類することによって、図10(G)のようなねじれが生じることなく多角形を描画することが可能となる。また、多角形の描画を走査線とエッジとの交点座標を保存するための記憶容量を使用せずに行うことが可能である。従って、本実施の形態1による図形描画装置7のハードウェア化を行う場合でも回路規模を小さく抑えることができる。さらに、塗潰し処理部5は水平方向にX座標が連続するようにピクセルを生成するようにしたため、例えばフレームバッファ6にSDRAMを使用する場合にはバースト転送機能を有効に利用して、高速に描画を行うことができるという効果がある。   As described above, in the first embodiment, even when vertex coordinates are randomly input when drawing a polygon, by classifying the polygon shape under a simple determination condition of gradient magnitude comparison, It becomes possible to draw a polygon without twisting as shown in FIG. Further, polygon drawing can be performed without using a storage capacity for storing the intersection coordinates of the scanning line and the edge. Therefore, the circuit scale can be kept small even when the graphic drawing device 7 according to the first embodiment is implemented as hardware. Furthermore, since the fill processing unit 5 generates pixels so that the X coordinate is continuous in the horizontal direction, for example, when using SDRAM for the frame buffer 6, the burst transfer function can be used effectively and at high speed. There is an effect that drawing can be performed.

実施の形態2.
以上の実施の形態1では、多角形を単色で塗潰すことを前提としたものであるが、次に多角形の各頂点色(例えばRGBの各成分)を入力し、多角形のエッジ上および内部の領域については線形補間により塗潰し色を算出することでグラデーション塗潰しを行うような場合に対応する実施の形態を示す。
図8は、このような場合の、図形描画装置の構成を示すブロック図である。実施の形態2による図形描画装置14は、頂点ソート部8、3並列の除算器を備えた勾配算出部9、多角形形状判定部10、エッジ生成部11及び塗潰し処理部12から構成され、図形描画装置14で生成され、フレームバッファ13に保持されたピクセルデータが適宜読み出されて表示される。
Embodiment 2. FIG.
In the first embodiment described above, it is assumed that the polygon is filled with a single color. Next, each vertex color of the polygon (for example, each component of RGB) is input, and on the edge of the polygon and An embodiment corresponding to a case where gradation filling is performed by calculating a filling color by linear interpolation for the inner region will be described.
FIG. 8 is a block diagram showing the configuration of the graphic drawing apparatus in such a case. The graphic drawing device 14 according to the second embodiment includes a vertex sorting unit 8, a gradient calculation unit 9 including a parallel divider, a polygon shape determination unit 10, an edge generation unit 11, and a painting processing unit 12. Pixel data generated by the graphic drawing device 14 and held in the frame buffer 13 is appropriately read and displayed.

次に実施の形態2の動作について説明する。
図形描画装置14は、CPUから描画するn次多角形の情報としてn個の頂点の座標、n個の頂点それぞれの描画色等の情報が設定され、起動命令を受けることにより動作を開始する。起動命令を受けると、頂点ソート部8が起動してCPUが設定した頂点の座標をY座標の小さい順にソートしてV1〜Vnまで番号付けを行う。
勾配算出部9は、頂点ソート部8で決定された番号の情報を用いて、頂点のY座標が最小の点V1と、多角形の他の頂点とを結んだ線分の勾配を算出する。多角形形状判定部10は、実施の形態1の場合と同様に勾配算出部9で求められた勾配の大小関係を判定し、勾配が最大及び最小となる2つのエッジを決定する。
Next, the operation of the second embodiment will be described.
The graphic drawing apparatus 14 is set with information on the coordinates of n vertices and the drawing colors of each of the n vertices as information on the n-order polygon to be drawn from the CPU, and starts operation upon receiving an activation command. When the activation command is received, the vertex sorting unit 8 is activated and the vertex coordinates set by the CPU are sorted in ascending order of the Y coordinate and numbered from V1 to Vn.
The gradient calculation unit 9 calculates the gradient of the line segment connecting the point V1 having the minimum Y coordinate of the vertex and the other vertex of the polygon by using the number information determined by the vertex sorting unit 8. The polygon shape determination unit 10 determines the magnitude relationship between the gradients obtained by the gradient calculation unit 9 as in the case of the first embodiment, and determines two edges at which the gradient is maximum and minimum.

その後、勾配算出部9は、多角形形状判定部10で判定された各アクティブエッジに対して描画色の各成分の勾配を算出する処理を行う。このため勾配算出部9は図8に示すような3並列の除算器を備える。例えば、エッジV1V2に対しては以下の式(6)〜(8)を用いて描画色のR、G、B各成分の勾配dr12、dg12、db12を算出する。ただし、頂点V1(x1,y1)の描画色を(r1,g1,b1)、頂点V2(x2,y2)の描画色を(r2,g2,b2)とする。
dr12=(r2−r1)/(x2−x1) ・・・(6)
dg12=(g2−g1)/(x2−x1) ・・・(7)
db12=(b2−b1)/(x2−x1) ・・・(8)
Thereafter, the gradient calculating unit 9 performs a process of calculating the gradient of each component of the drawing color for each active edge determined by the polygon shape determining unit 10. For this purpose, the gradient calculation unit 9 includes three parallel dividers as shown in FIG. For example, for the edge V1V2, the gradients dr12, dg12, and db12 of the R, G, and B components of the drawing color are calculated using the following equations (6) to (8). However, the drawing color of the vertex V1 (x1, y1) is (r1, g1, b1), and the drawing color of the vertex V2 (x2, y2) is (r2, g2, b2).
dr12 = (r2-r1) / (x2-x1) (6)
dg12 = (g2-g1) / (x2-x1) (7)
db12 = (b2-b1) / (x2-x1) (8)

式(6)〜(8)の計算は、図2のような四角形の場合には図6に示した更新フラグが更新された時のみ行えばよい。従って、上式(6)〜(8)の計算は四角形全体で合計4回だけ行えばよく、毎回同様の計算を繰り返し行う必要はない。   The calculations of equations (6) to (8) may be performed only when the update flag shown in FIG. 6 is updated in the case of a square as shown in FIG. Accordingly, the calculations of the above formulas (6) to (8) need only be performed a total of four times for the entire square, and it is not necessary to repeat the same calculation every time.

エッジ生成部11は、実施の形態1の処理に加えて、勾配算出部9が算出した描画色の勾配を、描画開始点の描画色に対して順次加算することにより、エッジと走査線との交点の描画色を算出する。例えばエッジV1V2に対しては以下の式(9)〜(12)の計算を、Y座標をインクリメントするごとに行う。   In addition to the processing of the first embodiment, the edge generation unit 11 sequentially adds the gradient of the drawing color calculated by the gradient calculation unit 9 to the drawing color at the drawing start point, so that the edge and the scanning line The drawing color of the intersection is calculated. For example, for the edge V1V2, the following equations (9) to (12) are calculated every time the Y coordinate is incremented.

r12=r1+dr12×(y−y1) ・・・(9)
g12=g1+dg12×(y−y1) ・・・(10)
b12=b1+db12×(y−y1) ・・・(11)
r12 = r1 + dr12 × (y−y1) (9)
g12 = g1 + dg12 × (y−y1) (10)
b12 = b1 + db12 × (y−y1) (11)

塗潰し処理部12は、エッジ生成部11で求められた2つのエッジと走査線との交点間を結ぶように順次ピクセルを生成する。その際、勾配算出部9は、エッジの勾配算出に用いた除算器を再利用して、各走査線に対して以下の式(12)〜(14)により描画色のR、G、B各成分の勾配dr、dg、dbを算出しておく。ただし、走査線左端の点の座標を(xl,yl)、描画色を(rl,gl,bl)、走査線右端の点の座標を(xr,yr)、描画色を(rr,gr,br)とする。   The painting processing unit 12 sequentially generates pixels so as to connect the intersections between the two edges obtained by the edge generation unit 11 and the scanning line. At that time, the gradient calculation unit 9 reuses the divider used for calculating the gradient of the edge, and draws R, G, and B for each of the drawing colors according to the following equations (12) to (14) for each scanning line. The component gradients dr, dg, and db are calculated in advance. However, the coordinates of the leftmost point of the scanning line are (xl, yl), the drawing color is (rl, gl, bl), the coordinates of the rightmost point of the scanning line is (xr, yr), and the drawing color is (rr, gr, br). ).

dr=(rr−rl)/(xr−xl) ・・・(12)
dg=(gr−gl)/(xr−xl) ・・・(13)
db=(br−bl)/(xr−xl) ・・・(14)
dr = (rr−rl) / (xr−xl) (12)
dg = (gr−gl) / (xr−xl) (13)
db = (br−bl) / (xr−xl) (14)

その後、エッジと走査線との交点間を結ぶように順次ピクセルを生成する処理を行う際に、以下の式(15)〜(17)により、走査線上に位置する各ピクセルの描画色r(x)、g(x)、b(x)の算出を上記式(12)〜(14)の結果を利用して行う。ただし、走査線上の点のX座標をpxとする。
r(x)=rl+dr×(px−x1) ・・・(15)
g(x)=gl+dg×(px−x1) ・・・(16)
b(x)=bl+db×(px−x1) ・・・(17)
Thereafter, when processing for sequentially generating pixels so as to connect the intersections between the edge and the scanning line is performed, the drawing color r (x) of each pixel located on the scanning line is expressed by the following equations (15) to (17). ), G (x), and b (x) are calculated using the results of the above equations (12) to (14). However, the X coordinate of the point on the scanning line is set to px.
r (x) = rl + dr × (px−x1) (15)
g (x) = gl + dg × (px−x1) (16)
b (x) = bl + db × (px−x1) (17)

図9は、図2(A)のような四角形のグラデーション塗潰しを行う場合の除算器1〜3の使用状態を説明するための図である。この実施の形態2では、エッジの勾配と描画色のR、G、B各成分の勾配を、除算器を無駄なく活用して算出することが可能である。   FIG. 9 is a diagram for explaining a usage state of the dividers 1 to 3 when performing a rectangular gradation filling as shown in FIG. In the second embodiment, the gradient of the edge and the gradient of each of the R, G, and B components of the drawing color can be calculated using the divider without waste.

以上のように、本発明の実施の形態2では、多角形の各頂点色の線形補間によるグラデーション塗潰しを高速に実現することが可能となる。また、図形描画装置14のハードウェア化を行う時に回路規模が増大する要因となる除算器に関しても、総数を3個のみに抑えて実現することが可能である。   As described above, according to Embodiment 2 of the present invention, it is possible to realize gradation filling by linear interpolation of each vertex color of a polygon at high speed. Further, the number of dividers that cause the circuit scale to increase when the graphic drawing device 14 is implemented in hardware can be realized by limiting the total number to only three.

実施の形態3.
以上の実施の形態2では、多角形の各頂点色を入力し、グラデーション塗潰しを行うようにしたものであるが、多角形の各頂点に対応するテクスチャアドレスを指定し、多角形のエッジ上および内部の領域については線形補間によりテクスチャアドレスを算出することで、任意の多角形に対するテクスチャ貼り付けを行うことも可能である。この実施の形態3では、実施の形態2においてRGBの3要素の中から2つの要素をテクスチャアドレスの演算と共用することによって、全く同様の構成により実現することが可能である。また、グラデーション処理とテクスチャアドレスの計算を両方とも利用することにより、いわゆるテクスチャブレンドの効果も容易に実現できる。
Embodiment 3 FIG.
In the second embodiment described above, each vertex color of the polygon is input and gradation filling is performed. However, the texture address corresponding to each vertex of the polygon is designated, and the polygon edge is selected. In addition, it is also possible to apply a texture to an arbitrary polygon by calculating a texture address by linear interpolation for the inner area. In the third embodiment, two elements out of the three elements of RGB in the second embodiment can be shared with the texture address calculation, so that the same configuration can be realized. Also, by using both gradation processing and texture address calculation, so-called texture blending effects can be easily realized.

実施の形態4.
以上の実施の形態では、塗潰し処理部5または塗潰し処理部13において走査線ごとに1ラインずつ塗潰し処理を行っていたものであるが、塗潰しは4×4、8×4などのタイル(ブロック)単位で行ってもよい。この実施の形態では、タイルのY軸方向のサイズ分だけ走査線両端の座標、描画色、描画色の勾配などを一時的に保存しておくための記憶領域が必要となる。
Embodiment 4 FIG.
In the above embodiment, the painting processing unit 5 or the painting processing unit 13 performs the painting process for each scanning line, but the painting is performed by 4 × 4, 8 × 4, or the like. You may carry out per tile (block). In this embodiment, a storage area is required for temporarily storing the coordinates of the scanning line ends, the drawing color, the gradient of the drawing color, and the like by the size of the tile in the Y-axis direction.

この発明に係る図形描画技術は2D/3Dグラフィックスコアに適用され、多角形描画において任意の順序で入力された頂点情報から単純な判定条件によって多角形を分類出来る様にした。走査線との交点座標保存用の記憶領域を必要としないので、ハードウェア規模を小さくできる。
また、従来の2Dグラフィックスコアに比較してグラデーションで塗り潰し、テクスチャ貼り付けなど様々な追加機能が付加可能な2D/3Dグラフィックスコアが提供できる。
The graphic drawing technique according to the present invention is applied to a 2D / 3D graphic score so that polygons can be classified by simple determination conditions from vertex information input in an arbitrary order in polygon drawing. Since a storage area for storing the intersection coordinates with the scanning line is not required, the hardware scale can be reduced.
Further, it is possible to provide a 2D / 3D graphic score that can be added with various additional functions such as painting with a gradation and pasting a texture in comparison with a conventional 2D graphic score.

この発明の実施の形態1による図形描画装置の構成を示すブロック図である。It is a block diagram which shows the structure of the figure drawing apparatus by Embodiment 1 of this invention. 多角形(四角形)描画方式を説明するための図である。It is a figure for demonstrating a polygon (rectangle) drawing system. 凹みのある四角形の説明図である。It is explanatory drawing of the square with a dent. 実施の形態1による多角形(四角形)描画処理の流れを示すフローチャートである。6 is a flowchart illustrating a flow of polygon (rectangular) drawing processing according to the first embodiment. 図2の四角形のアクティブエッジ選択順序を示す図である。It is a figure which shows the square active edge selection order of FIG. 図2の四角形のエッジ更新フラグを示す図である。It is a figure which shows the square edge update flag of FIG. エッジ生成部4のエッジ算出方式を説明するための図である。It is a figure for demonstrating the edge calculation system of the edge production | generation part 4. FIG. この発明の実施の形態2による図形描画装置の構成を示すブロック図である。It is a block diagram which shows the structure of the figure drawing apparatus by Embodiment 2 of this invention. 勾配算出部9に含まれる除算器の処理状況を説明するための図である。FIG. 6 is a diagram for explaining a processing status of a divider included in a gradient calculation unit 9; 従来の多角形描画装置において図形がねじれて描画されてしまう場合を説明するための図である。It is a figure for demonstrating the case where a figure will be twisted and drawn in the conventional polygon drawing apparatus.

符号の説明Explanation of symbols

1、8;頂点ソート部、2、9;勾配算出部、3、10;多角形形状判定部、4、11;エッジ生成部、5、12;塗潰し処理部、6、13;フレームバッファ、7、14;図形描画装置。   1, 8; vertex sort unit, 2, 9; gradient calculation unit, 3, 10; polygon shape determination unit, 4, 11; edge generation unit, 5, 12; paint processing unit, 6, 13; 7, 14: Graphic drawing apparatus.

Claims (6)

多角形の頂点座標を含む多角形の情報を入力し、前記頂点の中でY座標の小さいものから順に番号付けを行う頂点ソート部と、
前記頂点ソート部が決定した頂点座標の順序に基づいて前記多角形の外周となるエッジの勾配を算出する勾配算出部と、
前記勾配算出部が算出した勾配の大小関係に基づいて多角形の形状を判定する多角形形状判定部と、
前記多角形形状判定部で判定された多角形の形状に基づいて、描画開始点から左右2つのエッジについて勾配を順次加算して走査線との交点の座標を算出するエッジ生成部と、
前記エッジ生成部が算出した走査線との交点間の塗潰し処理を行う塗潰し処理部とを備えた図形描画装置。
A vertex sort unit that inputs polygon information including the vertex coordinates of a polygon and performs numbering in order from the smallest Y coordinate among the vertices;
A gradient calculating unit that calculates a gradient of an edge that is an outer periphery of the polygon based on the order of the vertex coordinates determined by the vertex sorting unit;
A polygonal shape determining unit that determines a polygonal shape based on the magnitude relationship of the gradients calculated by the gradient calculating unit;
Based on the polygon shape determined by the polygon shape determination unit, an edge generation unit that calculates the coordinates of the intersection with the scanning line by sequentially adding gradients for the two left and right edges from the drawing start point;
A graphic drawing apparatus comprising: a painting processing unit that performs painting processing between intersections with the scanning line calculated by the edge generation unit.
勾配算出部は、入力された頂点のY座標が最小となる点とそれ以外の頂点とを結んだ(頂点数−1)個の線分に対して勾配の算出を行うことを特徴とする請求項1記載の図形描画装置。   The gradient calculation unit calculates a gradient with respect to (number of vertices −1) line segments connecting a point having the minimum Y coordinate of the input vertex and the other vertices. Item 2. A drawing apparatus according to Item 1. 多角形形状判定部は、勾配算出部が算出した(頂点数−1)個の勾配の大小比較を行い、勾配が最大または最小となった2つのエッジの情報を元に多角形の形状を判定することを特徴とする請求項1又は請求項2記載の図形描画装置。   The polygon shape determination unit compares the magnitudes of the (number of vertices-1) gradients calculated by the gradient calculation unit, and determines the polygonal shape based on the information of two edges having the maximum or minimum gradient. The graphic drawing apparatus according to claim 1, wherein the graphic drawing apparatus is a graphic drawing apparatus. 塗潰し処理部は、多角形の各頂点を通る水平線によって(頂点数−1)個の台形または三角形の領域に分割して、水平方向に連続して画素を生成することにより塗潰し処理を行うことを特徴とする請求項1から請求項3のうちのいずれか1項記載の図形描画装置。   The painting processing unit performs painting processing by dividing a trapezoidal or triangular area into (vertex number-1) trapezoidal or triangular areas by a horizontal line passing through each vertex of the polygon, and continuously generating pixels in the horizontal direction. The graphic drawing apparatus according to claim 1, wherein the graphic drawing apparatus is one of the first to third aspects. 頂点ソート部に入力される多角形の情報は頂点座標と頂点座標における描画色を含み、
勾配算出部は、除算器を備え、除算器は多角形のエッジの勾配を算出すると共に、多角形情報の描画色を基に多角形内部の描画色を算出するための勾配計算も行うことを特徴とする請求項1から請求項4のうちのいずれか1項記載の図形描画装置。
The polygon information input to the vertex sort section includes the vertex coordinates and the drawing color at the vertex coordinates.
The gradient calculation unit includes a divider, and the divider calculates a gradient of a polygon edge and performs gradient calculation for calculating a drawing color inside the polygon based on a drawing color of the polygon information. The graphic drawing apparatus according to claim 1, wherein the graphic drawing apparatus is characterized in that:
多角形の頂点座標を含む多角形の情報を入力し、前記頂点の中でY座標が小さいものから順に順序付けを行う頂点ソート部、前記頂点ソート部が決定した頂点座標の順序に基づいて前記多角形の外周となるエッジの勾配を算出する勾配算出部、前記勾配算出部が算出した勾配の大小関係に基づいて多角形の形状を判定する多角形形状判定部、前記多角形形状判定部で判定された多角形の形状に基づいて描画開始点から左右2つのエッジについて勾配を順次加算して、走査線との交点の座標を算出するエッジ生成部、前記エッジ生成部が算出した走査線との交点間の塗潰し処理を行う塗潰し処理部としてコンピュータを機能させる図形描画プログラム。   The polygon information including the vertex coordinates of the polygon is input, and the vertex sorting unit that performs ordering in order from the smallest Y coordinate among the vertices, the multiplicity based on the order of the vertex coordinates determined by the vertex sorting unit. A gradient calculation unit that calculates a gradient of an edge that is an outer periphery of a square, a polygon shape determination unit that determines a polygon shape based on a magnitude relationship of gradients calculated by the gradient calculation unit, and a determination by the polygon shape determination unit An edge generation unit that calculates the coordinates of the intersection with the scanning line by sequentially adding gradients for the two left and right edges from the drawing start point based on the polygonal shape, and the scanning line calculated by the edge generation unit A graphic drawing program that causes a computer to function as a paint processing unit that performs paint processing between intersections.
JP2005277877A 2005-09-26 2005-09-26 Graphic drawing apparatus and graphic drawing program Active JP4664169B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005277877A JP4664169B2 (en) 2005-09-26 2005-09-26 Graphic drawing apparatus and graphic drawing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005277877A JP4664169B2 (en) 2005-09-26 2005-09-26 Graphic drawing apparatus and graphic drawing program

Publications (2)

Publication Number Publication Date
JP2007087283A true JP2007087283A (en) 2007-04-05
JP4664169B2 JP4664169B2 (en) 2011-04-06

Family

ID=37974181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005277877A Active JP4664169B2 (en) 2005-09-26 2005-09-26 Graphic drawing apparatus and graphic drawing program

Country Status (1)

Country Link
JP (1) JP4664169B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008276535A (en) * 2007-04-27 2008-11-13 Sharp Corp Drawing information processor, drawing information processing method, drawing informaton processing program, and computer-readable storage medium recording drawing information processing program
JP2008282208A (en) * 2007-05-10 2008-11-20 Renesas Technology Corp Paint-out processing device, graphic display device and paint-out processing method
JP2012113737A (en) * 2012-02-21 2012-06-14 Canon Inc Information processor and image processor
JP2014182594A (en) * 2013-03-19 2014-09-29 Mitsubishi Electric Corp Parallel rendering device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05108824A (en) * 1991-10-18 1993-04-30 Fujitsu Ltd Outline extracting method for polygon
JPH0659665A (en) * 1992-08-08 1994-03-04 Ricoh Co Ltd Image processing device
JPH10116348A (en) * 1996-10-11 1998-05-06 Canon Inc Plotting device and method, and storage medium
JP2000242802A (en) * 1999-02-22 2000-09-08 Fuji Xerox Co Ltd Graphic processor
JP2001188912A (en) * 2000-01-05 2001-07-10 Matsushita Electric Ind Co Ltd Method and device for drawing trapezoid
JP2003029959A (en) * 2001-07-10 2003-01-31 Toshiba Corp 3d graphics processor
JP2004029864A (en) * 2002-06-03 2004-01-29 Mitsubishi Electric Corp Triangular polygon plotting apparatus and triangular polygon plotting method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05108824A (en) * 1991-10-18 1993-04-30 Fujitsu Ltd Outline extracting method for polygon
JPH0659665A (en) * 1992-08-08 1994-03-04 Ricoh Co Ltd Image processing device
JPH10116348A (en) * 1996-10-11 1998-05-06 Canon Inc Plotting device and method, and storage medium
JP2000242802A (en) * 1999-02-22 2000-09-08 Fuji Xerox Co Ltd Graphic processor
JP2001188912A (en) * 2000-01-05 2001-07-10 Matsushita Electric Ind Co Ltd Method and device for drawing trapezoid
JP2003029959A (en) * 2001-07-10 2003-01-31 Toshiba Corp 3d graphics processor
JP2004029864A (en) * 2002-06-03 2004-01-29 Mitsubishi Electric Corp Triangular polygon plotting apparatus and triangular polygon plotting method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008276535A (en) * 2007-04-27 2008-11-13 Sharp Corp Drawing information processor, drawing information processing method, drawing informaton processing program, and computer-readable storage medium recording drawing information processing program
JP2008282208A (en) * 2007-05-10 2008-11-20 Renesas Technology Corp Paint-out processing device, graphic display device and paint-out processing method
JP2012113737A (en) * 2012-02-21 2012-06-14 Canon Inc Information processor and image processor
JP2014182594A (en) * 2013-03-19 2014-09-29 Mitsubishi Electric Corp Parallel rendering device

Also Published As

Publication number Publication date
JP4664169B2 (en) 2011-04-06

Similar Documents

Publication Publication Date Title
KR101916341B1 (en) Gradient adjustment for texture mapping for multiple render targets with resolution that varies by screen location
US7554546B1 (en) Stippled lines using direct distance evaluation
EP1847965A1 (en) Plotting device and plotting method
EP2107528B1 (en) Method of and arrangement for rendering a path
JPS6380375A (en) Texture mapping device
JP4664169B2 (en) Graphic drawing apparatus and graphic drawing program
JP4370438B2 (en) Vector image drawing apparatus, vector image drawing method and program
JPH0660173A (en) Method and apparatus for reducing picture
US6473091B1 (en) Image processing apparatus and method
JP3979162B2 (en) Image processing apparatus and method
JPWO2016092588A1 (en) Drawing apparatus and drawing method
US10593111B2 (en) Method and apparatus for performing high throughput tessellation
US7372466B2 (en) Image processing apparatus and method of same
JPH07272000A (en) Texture mapping device
JP4622165B2 (en) Image memory control device, graphic operation device, and rendering processing method
JPH09180000A (en) Three-dimensional graphics controller
JP2003132347A (en) Image processor
CN106485767B (en) Method and device for drawing symbols
JP3587105B2 (en) Graphic data processing device
KR100742155B1 (en) Method and apparatus for making scan line
US20040004620A1 (en) Image processing apparatus and method of same
JPH0350686A (en) Graphic processing system
JP2003187260A (en) Image rendering program, recording medium in which image rendering program is recorded, image rendering apparatus and method
KR100927131B1 (en) Method and system of anti-aliasing
CN114723865A (en) Rendering method and device for rounded square frame and map rendering method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101005

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101129

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110104

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110106

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4664169

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140114

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250