JPH0589249A - Sector generating device - Google Patents

Sector generating device

Info

Publication number
JPH0589249A
JPH0589249A JP27695491A JP27695491A JPH0589249A JP H0589249 A JPH0589249 A JP H0589249A JP 27695491 A JP27695491 A JP 27695491A JP 27695491 A JP27695491 A JP 27695491A JP H0589249 A JPH0589249 A JP H0589249A
Authority
JP
Japan
Prior art keywords
arc
point
raster
fan
dda
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
JP27695491A
Other languages
Japanese (ja)
Inventor
Hiroshi Ishii
石井  博
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.)
NEC Home Electronics Ltd
NEC Corp
Original Assignee
NEC Home Electronics Ltd
Nippon Electric 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 NEC Home Electronics Ltd, Nippon Electric Co Ltd filed Critical NEC Home Electronics Ltd
Priority to JP27695491A priority Critical patent/JPH0589249A/en
Publication of JPH0589249A publication Critical patent/JPH0589249A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To generate a sectoral figure, whose inside is painted out, by hardware or software having a simple configuration. CONSTITUTION:An arc digital differential analyzing(DDA) operation part 12 receives parameters such as coordinates of both end points and the radius of an arc from a parameter setting part 10 and scans and converts the arc by DDA of a circle based on the Bresenham circle drawing algorithm to obtain raster lattice points Pi on the arc from the start point to the end point one by one. A segment DDA operation part 14 receives not only coordinate data of the point of the pivot of a sector to be drawn from the parameter setting part 10 but also coordinate data of raster lattice points on the arc obtained by the arc DDA operation part 12 and discriminates all picture elements which segments connecting respective points on the arc and the point of the pivot of the sector pass. An output part 16 outputs coordinate data of picture elements passing respective segments, which are obtained by the segment DDA operation part 14 with respect to raster lattice points on the arc, as data of raster coordinates of segments connecting raster lattice points and the pivot point of the sector.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ・グラフ
ィックス技術に係り、特に内部を塗り潰した扇形を発生
する装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to computer graphics technology, and more particularly, to an apparatus for generating a fan-shaped interior.

【0002】[0002]

【従来の技術】従来、内部を塗り潰した扇形を発生する
技法として、図9に示すように、描画すべき扇形の輪郭
(内部を塗り潰さない扇形)Sを発生し、着目したスキ
ャンラインRi と扇形輪郭Sとの交点Pi ,Qi を求
め、それら2つの交点Pi ,Qiを直線で結ぶ方法があ
る。扇形輪郭Sは、扇形の要の点Oと両端点A,Bとを
結ぶ2つの線分OA,OBおよび両端点A,B間を結ぶ
円弧ABによって構成されるため、この方式において
は、 交点Pi ,Qi が共に円弧AB上に位置する領域、 一方の交点Pi が線分OA上に位置し、他方の交点Q
i が円弧AB上に位置する領域、 一方の交点Pi が線分OA上に位置し、他方の交点Q
i が線分OB上に位置する領域、 の3つの領域に場合分けして、各領域別に塗り潰しを行
う。
2. Description of the Related Art Conventionally, as a technique for generating a fan shape whose interior is filled, as shown in FIG. 9, a fan-shaped outline (fan shape that does not fill the interior) S to be drawn is generated, and a scan line Ri and a fan shape are focused. There is a method of obtaining intersection points Pi and Qi with the contour S and connecting these two intersection points Pi and Qi with a straight line. The fan-shaped contour S is composed of two line segments OA and OB that connect the point O of the fan-shaped point and the end points A and B, and an arc AB that connects the end points A and B. A region in which both Pi and Qi are located on the arc AB, one intersection point Pi is located on the line segment OA, and the other intersection point Q is
i is a region located on the arc AB, one intersection point Pi is located on the line segment OA, and the other intersection point Q is
The area is divided into three areas, i is an area located on the line segment OB, and the area is filled.

【0003】[0003]

【発明が解決しようとする課題】上記のように、従来の
扇形発生装置においては、3つの領域,,に場合
分けして、各領域別に交点Pi ,Qi を求めて扇形輪郭
S内の塗り潰しを行わなければならないため、演算が繁
雑となり、演算装置のハードウェアまたはソフトウェア
が複雑になるという不具合があった。
As described above, in the conventional fan-shaped generating device, the areas inside the fan-shaped contour S are filled by dividing the areas into three areas, and the intersection points Pi and Qi for each area. Since it has to be performed, the calculation becomes complicated, and the hardware or software of the calculation device becomes complicated.

【0004】本発明は、かかる問題点に鑑みてなされた
もので、簡単な構成のハードウェアまたはソフトウェア
で内部を塗り潰した扇形の図形を発生することができる
装置を提供することを目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a device capable of generating a fan-shaped figure whose interior is filled with hardware or software having a simple structure.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
め、本発明の扇形発生装置は、格子点座標系上で内部を
塗り潰した扇形の図形を描画するための扇形発生装置に
おいて、与えられたパラメータから描画すべき扇形の輪
郭を規定する円弧をスキャン変換する円弧発生手段と、
前記円弧発生手段によって求められた前記円弧上の各点
と前記描画すべき扇形の要の点とを結ぶ直線が通過する
全ての画素の座標をラスタ座標として出力する線分発生
手段とを具備する構成とした。
In order to achieve the above-mentioned object, a fan-shaped generator of the present invention is provided in a fan-shaped generator for drawing a fan-shaped figure whose interior is filled on a grid point coordinate system. Arc generating means for scan-converting an arc defining a fan-shaped contour to be drawn from the parameters,
Line segment generating means for outputting, as raster coordinates, the coordinates of all pixels through which a straight line connecting each point on the arc determined by the arc generating means and the point of the fan shape to be drawn passes. It was composed.

【0006】[0006]

【作用】円弧発生手段のスキャン変換により円弧上のラ
スタ格子点が求められると、そのラスタ格子点と要の点
とを結ぶ直線(Li)を両点の座標から定義することがで
きる。
When the raster grid points on the circular arc are obtained by the scan conversion of the circular arc generating means, the straight line (Li) connecting the raster grid points and the required points can be defined from the coordinates of both points.

【0007】この直線(Li)が定義されると、たとえば
ブレゼンハムの直線描画アルゴリズムを用いた直線DD
Aを演算することにより、該ラスタ格子点と扇形の要の
点との間のラスタ画素を求めることができる。しかし、
このような手法によると、隣り合う直線(Li),(Li+
1)の間でラスタ画素として選択されない画素(非ラスタ
画素)が生じることがあり、それらの画素の部分は非塗
り潰し部分となる。
When this straight line (Li) is defined, a straight line DD using, for example, the Bresenham straight line drawing algorithm
By calculating A, the raster pixel between the raster grid point and the fan-shaped essential point can be obtained. But,
According to such a method, adjacent straight lines (Li), (Li +
Pixels that are not selected as raster pixels (non-raster pixels) may occur between 1), and those pixel portions become non-filled portions.

【0008】本発明では、各直線(Li)が通過する全て
の画素をラスタ画素として選択するような演算を行う。
これによって、隣り合う任意の直線(Li),(Li+1)の
間は必ずラスタ画素で埋まり、非塗り潰し部分は発生し
ない。
In the present invention, an arithmetic operation is performed so that all pixels passing through each straight line (Li) are selected as raster pixels.
As a result, the space between adjacent arbitrary straight lines (Li) and (Li + 1) is always filled with raster pixels, and a non-filled portion does not occur.

【0009】このように、本発明では、描画すべき扇形
の円弧上の各点と要の点との間に線分を定義し、各線分
上および隣り合う線分の間を隙間なく塗り潰すようにし
たので、従来のような領域別の場合分けを行う必要はな
く、始点から終点まで一律的な演算によって内部を塗り
潰した扇形の図形を発生することができる。
As described above, according to the present invention, a line segment is defined between each point on a circular arc of a fan shape to be drawn and a point of interest, and each line segment and adjacent line segments are filled with no space. Since this is done, it is not necessary to perform case classification for each area as in the conventional case, and it is possible to generate a fan-shaped figure whose interior is filled by a uniform calculation from the start point to the end point.

【0010】[0010]

【実施例】以下、図1〜図8を参照して本発明の実施例
を説明する。図1は、本発明の一実施例による扇形発生
装置の構成を示す。この扇形発生装置は、パラメータ設
定部10、円弧DDA演算部12、線分DDA演算部1
4および出力部16からなる。
Embodiments of the present invention will be described below with reference to FIGS. FIG. 1 shows the configuration of a fan-shaped generator according to an embodiment of the present invention. This fan-shaped generator includes a parameter setting unit 10, an arc DDA calculation unit 12, and a line segment DDA calculation unit 1.
4 and the output unit 16.

【0011】パラメータ設定部10には、描画すべき扇
形を規定するパラメータ、たとえば要の点Oおよび両端
点A,Bのそれぞれの座標や円弧の中心角、半径などが
設定される。これらのパラメータは、入力ルーチンの下
でユーザのキー操作またはポインティング操作によって
設定入力されてよい。
In the parameter setting unit 10, parameters for defining a fan shape to be drawn, such as coordinates of each point O and both end points A and B, a central angle of a circular arc, and a radius are set. These parameters may be set and input by a user's key operation or pointing operation under an input routine.

【0012】円弧DDA演算部12は、パラメータ設定
部10より両端点A,Bの座標および円弧の半径等のパ
ラメータを受けて、ブレゼンハム (Bresenham)の円描画
アルゴリズムに基づいた円のDDA (テ゛ィシ゛タル・テ゛ィファレンシ
ャル・アナライシ゛ンク゛)により円弧ABをスキャン変換して、図
8に示すように、円弧AB上の各ラスタ格子点Pi を始
点Aから終点Bまで1つずつ求める。
The circular arc DDA calculation unit 12 receives parameters such as the coordinates of both end points A and B and the radius of the circular arc from the parameter setting unit 10 and receives a DDA (digital digit) of a circle based on the Bresenham circle drawing algorithm. The circular arc AB is scan-converted by the differential analysis), and as shown in FIG. 8, each raster grid point Pi on the circular arc AB is obtained from the starting point A to the ending point B one by one.

【0013】線分DDA演算部14は、パラメータ設定
部10より描画すべき扇形の要の点Oの座標データを受
けるとともに、円弧DDA演算部12で求められた円弧
AB上の各ラスタ格子点Pi の座標データを受け、円弧
AB上の各点Pi と扇形の要の点Oとを結ぶ線分Li が
通過する全画素を判別し、それらの画素の座標データを
出力する。
The line segment DDA calculation unit 14 receives from the parameter setting unit 10 the coordinate data of the required point O of the fan shape to be drawn, and each raster grid point Pi on the arc AB determined by the arc DDA calculation unit 12. All the pixels through which the line segment Li connecting each point Pi on the arc AB and the point O of the fan shape passes, and the coordinate data of those pixels is output.

【0014】出力部16は、円弧AB上の各ラスタ格子
点Pi に対して線分DDA演算部14で求められた各線
分Li 回りの画素の座標データを、円弧AB上のラスタ
格子点Pi と扇形の要の点Oとを結ぶ線分のラスタ座標
のデータとして出力する。出力部16からのラスタ座標
のデータは、CRTディスプレイ上での描画のため表示
装置(図示せず)に送出されるか、あるいは記録紙上で
の描画のため印画装置(図示せず)に送出されるか、あ
るいは保存のため画像メモリ(図示せず)に送出されて
よい。
The output unit 16 converts the coordinate data of the pixels around each line segment Li obtained by the line segment DDA calculation unit 14 for each raster grid point Pi on the arc AB into the raster lattice point Pi on the arc AB. It is output as raster coordinate data of a line segment connecting the point O of the fan shape. The raster coordinate data from the output unit 16 is sent to a display device (not shown) for drawing on a CRT display, or is sent to a printing device (not shown) for drawing on recording paper. Alternatively, it may be sent to an image memory (not shown) for storage.

【0015】次に、図2および図3につき線分DDA演
算部14の作用を説明する。図2および図3において、
Fi,j は格子点、Gi,j は画素である。この例では、F
0,0が描画すべき楕円の要の点Oで、F8,5が描画すべき
楕円の輪郭を規定する円弧AB上の1つのラスタ格子点
Pi であり、直線Li が円弧AB上のラスタ格子点Pi
と扇形の要の点Oとを結ぶ直線である。
Next, the operation of the line segment DDA calculation unit 14 will be described with reference to FIGS. 2 and 3,
Fi, j is a grid point, and Gi, j is a pixel. In this example, F
0,0 is a point O of the ellipse to be drawn, F8,5 is one raster grid point Pi on the arc AB defining the contour of the ellipse to be drawn, and the straight line Li is the raster grid on the arc AB. Point Pi
Is a straight line connecting the point O of the fan shape.

【0016】図2は、ブレゼンハムの直線描画アルゴリ
ズムをそのまま用いて直線Li のDDAを演算した場合
に得られる画素のラスタ座標を示す。ブレゼンハムの直
線描画アルゴリズムによれば、与えられた直線の傾きに
応じてxまたはyを1単位(格子点距離)ずつ増加さ
せ、実際の直線の位置と最も近い格子点位置との距離を
調べることによって、もう一方の変数yまたはxの増分
(0または1)を決定する。
FIG. 2 shows the raster coordinates of pixels obtained when the DDA of the straight line Li is calculated using the Bresenham straight line drawing algorithm as it is. According to Bresenham's straight line drawing algorithm, x or y is increased by one unit (grid point distance) according to the inclination of a given straight line, and the distance between the actual straight line position and the closest grid point position is investigated. Determines the increment (0 or 1) of the other variable y or x.

【0017】図示の例では、X軸に対する直線Li の傾
きθが0<θ<45゜であるから、格子点座標をx方向
に1単位ずつ増加させたときのyの増分を決定すること
になる。たとえば始点F0,0 からx方向に1単位ずつ増
加させたとき、直線x=1と直線Li との交点J1 に対
する距離(誤差)は格子点F1,1 のほうが格子点F1,0
よりも短い(近い)から、格子点F1,1 が選択され、し
たがって、画素G1,1がラスタ画素(塗り潰すべき画
素)として選択される。このようにして、始点F0,0
(O)と終点F8,5 (Pi )の間で、格子点F1,1 ,F
2,1 ,F3,2 ,F4,3 ,F5,3 ,F6,4 ,F7,4 がそれ
ぞれラスタ格子点として選択され、画素G1,1 ,G2,1
,G3,2 ,G4,3 ,G5,3 ,G6,4 ,G7,4 がラスタ
画素となる。
In the illustrated example, since the inclination θ of the straight line Li with respect to the X axis is 0 <θ <45 °, it is decided to determine the increment of y when the grid point coordinate is increased by one unit in the x direction. Become. For example, when the distance from the starting point F0,0 is increased by one unit in the x direction by one unit, the distance (error) from the intersection J1 between the straight line x = 1 and the straight line Li to the grid point F1,1 is greater for the grid point F1,1.
Since it is shorter (closer), the grid point F1,1 is selected, and thus the pixel G1,1 is selected as a raster pixel (pixel to be filled). In this way, the starting point F0,0
Between (O) and the end point F8,5 (Pi), the grid points F1,1, F
2,1, F3,2, F4,3, F5,3, F6,4 and F7,4 are selected as raster grid points, and pixels G1,1 and G2,1 are selected.
, G3,2, G4,3, G5,3, G6,4, G7,4 are raster pixels.

【0018】上記のようにブレゼンハムの直線描画アル
ゴリズムをそのまま適用すると、直線Li が通過するに
も関わらず、ラスタ画素として選択されない画素G1,0
,G3,1 ,G4,2 ,G6,3 が存在する。これがため、
円弧AB上の隣り合うラスタ座標点Pi ,Pi+1 と要の
点Oとをそれぞれ結ぶ隣合う線分Li ,Li+1 の間でラ
スタ画素でない画素が存在することがあり、したがって
その画素の領域では塗り潰しされない結果となる場合が
ある。
If the Bresenham straight line drawing algorithm is applied as it is as described above, the pixel G1,0 which is not selected as a raster pixel although the straight line Li passes through is selected.
, G3,1, G4,2, G6,3 exist. Because of this
There may be a pixel that is not a raster pixel between the adjacent line segments Li and Li + 1 connecting the adjacent raster coordinate points Pi and Pi + 1 on the arc AB and the point O, respectively. Areas may result in not being filled.

【0019】本実施例では、そのような非塗り潰し部分
が発生しないようにブレゼンハムの直線描画アルゴリズ
ムの誤差評価法を変更する。すなわち、本実施例の線分
DDA演算部14においては、ブレゼンハムの直線描画
アルゴリズムを基に直線LiのDDAを演算して、本来
のラスタ画素G0.0 ,G1,1 ,G2,1 ,G3,2 ,G4,3
,G5,3 ,G6,4 ,G7,4 を求めるとともに、それら
の画素以外で直線Li が通過する画素G1,0 ,G3,1 ,
G4,2 ,G6,3 もラスタ画素に加える。これらの付加的
ラスタ画素の判別方法としては、たとえばx方向に1単
位ずつ増加させたときの直線x=Nと直線Liとの交点
JN の座標から判定する方法がある。
In this embodiment, the error evaluation method of Bresenham's straight line drawing algorithm is changed so that such non-filled portions do not occur. That is, in the line segment DDA calculation unit 14 of the present embodiment, the DDA of the straight line Li is calculated based on the Bresenham straight line drawing algorithm, and the original raster pixels G0.0, G1,1, G2,1, G3, 2, G4,3
, G5,3, G6,4, G7,4 are determined, and pixels G1,0, G3,1, other than those pixels through which the straight line Li passes,
G4,2 and G6,3 are also added to the raster pixels. As a method of discriminating these additional raster pixels, for example, there is a method of discriminating from the coordinates of the intersection JN of the straight line x = N and the straight line Li when they are increased by one unit in the x direction.

【0020】したがって、本実施例の線分DDA演算に
よれば、図3に示すように、円弧上の各ラスタ格子点P
i と扇形の要の点Oとを結ぶ直線Li が通過する全ての
画素G0,0 ,G1,0 ,G1,1 ,G2,1 ,G3,1 ,G3,2
,G4,2 ,G4,3,G5,3 ,G6,3 ,G6,4 ,G7,4 が
ラスタ画素として選択され、それらの画素のそれぞれの
格子点F0,0 ,F1,0 ,F1,1 ,F2,1 ,F3,1 ,F3,
2 ,F4,2 ,F4,3 ,F5,3 ,F6,3 ,F6,4 ,F7,4
がラスタ座標として選択される。
Therefore, according to the line segment DDA calculation of the present embodiment, as shown in FIG.
All pixels G0,0, G1,0, G1,1, G2,1, G3,1, G3,2 through which a straight line Li connecting i and the point O of the sector shape passes
, G4,2, G4,3, G5,3, G6,3, G6,4, G7,4 are selected as raster pixels, and their respective grid points F0,0, F1,0, F1,1 are selected. , F2,1, F3,1, F3,
2, F4,2, F4,3, F5,3, F6,3, F6,4, F7,4
Is selected as the raster coordinate.

【0021】図4は、本実施例の線分DDA演算による
塗り潰しの様子を示す。図中、点線KABは描画すべき扇
形の円弧ABの一部であり、格子点Pi,Pi+1 ,Pi+2
は円弧DDA演算部12で求められた円弧AB上のラ
スタ格子点であり、Oは描画すべき扇形の要の点であ
る。
FIG. 4 shows how the line segment DDA operation of this embodiment fills. In the figure, the dotted line KAB is a part of a fan-shaped arc AB to be drawn, and the grid points Pi, Pi + 1, Pi + 2
Is a raster grid point on the arc AB determined by the arc DDA calculation unit 12, and O is a key point of a fan shape to be drawn.

【0022】このような3つのラスタ格子点Pi ,Pi+
1 ,Pi+2 と扇形の要の点Oとを結ぶ線分Li ,Li+1
,Li+2 が定義されるが、本実施例の線分DDA演算
によれば、各線分Li ,Li+1 ,Li+2 が通過する全て
の画素がラスタ画素として選択されるため、図示のよう
に、線分Li ,Li+1 ,Li+2の間の空間は必ずラスタ
画素で埋まり、非塗り潰し部分が発生することはない。
Such three raster grid points Pi and Pi +
Line segments Li and Li + 1 connecting 1 and Pi + 2 to the point O of the fan shape
, Li + 2 are defined, but according to the line segment DDA calculation of the present embodiment, all the pixels through which each line segment Li, Li + 1, Li + 2 pass are selected as raster pixels, so As described above, the space between the line segments Li, Li + 1, and Li + 2 is always filled with raster pixels, and a non-filled portion does not occur.

【0023】図5〜図7は、線分Li ,Li+1 ,Li+2
の各々について線分DDA演算部14により求められた
ラスタ画素の分布を示す。図4の塗り潰し領域は、これ
ら各線分回りのラスタ画素を重ね合わせたものに相当す
る。
5 to 7 show line segments Li, Li + 1, Li + 2.
The distribution of raster pixels obtained by the line segment DDA calculation unit 14 for each of the above. The filled area in FIG. 4 corresponds to a combination of these raster pixels around each line segment.

【0024】上記のように、本実施例によれば、図8に
示すように、描画すべき扇形の円弧AB上の各ラスタ格
子点Pi と扇形の要の点Oとの間に線分Li を描画し、
その際に隣り合う線分Li-1 ,Li ,Li+1 間を隙間な
く塗り潰すことができる。したがって、従来のように複
数の塗り潰し領域別に場合分けする必要がなく、始点A
から終点Bまで一律的な演算によって完全塗り潰しの扇
形図形を発生することができる。
As described above, according to the present embodiment, as shown in FIG. 8, a line segment Li is provided between each raster grid point Pi on the arc AB of the fan shape to be drawn and the point O of the fan shape. Draw
At this time, the line segments Li-1, Li, Li + 1 adjacent to each other can be filled without any space. Therefore, it is not necessary to divide the case into a plurality of filled areas as in the conventional case, and the start point A
A completely filled fan-shaped figure can be generated by uniform calculation from the end point B to the end point B.

【0025】[0025]

【発明の効果】以上説明したように、本発明によれば、
描画すべき扇形の円弧上の各点をスキャン変換によって
求め、その求めた円弧上の各点と扇形の要の点との間を
結ぶ直線が通過する全ての画素の座標をラスタ座標とし
て出力することによって内部を塗り潰した扇形の図形を
発生するようにしたので、簡単な構成のハードウェアま
たはソフトウェアによって扇形発生装置を実現すること
ができる。
As described above, according to the present invention,
Each point on the circular arc of the sector to be drawn is obtained by scan conversion, and the coordinates of all the pixels passing through the straight line connecting each point on the determined arc and the point of the sector are output as raster coordinates. As a result, a fan-shaped figure whose interior is filled is generated, so that the fan-shaped generator can be realized by hardware or software having a simple structure.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例による扇形発生装置の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a fan-shaped generator according to an embodiment of the present invention.

【図2】実施例の線分DDA演算部の作用を説明するた
めの比較図である。
FIG. 2 is a comparative diagram for explaining the operation of the line segment DDA calculation unit of the embodiment.

【図3】実施例の線分DDA演算部の作用を説明するた
めの図である。
FIG. 3 is a diagram for explaining an operation of a line segment DDA calculation unit of the embodiment.

【図4】実施例による扇形内の塗り潰しの様子を示す図
である。
FIG. 4 is a diagram showing a state of filling in a fan shape according to an example.

【図5】図4の塗り潰し領域を構成する第1の直線回り
のラスタ画素の分布を示す図である。
5 is a diagram showing a distribution of raster pixels around a first straight line forming the filled area in FIG. 4;

【図6】図4の塗り潰し領域を構成する第2の直線回り
のラスタ画素の分布を示す図である。
FIG. 6 is a diagram showing a distribution of raster pixels around a second straight line forming the filled area in FIG. 4;

【図7】図4の塗り潰し領域を構成する第3の直線回り
のラスタ画素の分布を示す図である。
7 is a diagram showing a distribution of raster pixels around a third straight line forming the filled area in FIG. 4;

【図8】実施例による塗り潰し扇形図形の生成過程を示
す図である。
FIG. 8 is a diagram showing a process of generating a filled fan-shaped figure according to the embodiment.

【図9】従来の扇形発生装置による塗り潰し扇形図形の
生成過程を示す図である。
FIG. 9 is a diagram showing a process of generating a filled fan-shaped figure by a conventional fan-shaped generator.

【符号の説明】[Explanation of symbols]

10 パラメータ設定部 12 円弧DDA演算部 14 線分DDA演算部 16 出力部 10 parameter setting unit 12 circular arc DDA calculation unit 14 line segment DDA calculation unit 16 output unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】格子点座標系上で内部を塗り潰した扇形の
図形を描画するための扇形発生装置において、 与えられたパラメータから描画すべき扇形の輪郭を規定
する円弧をスキャン変換する円弧発生手段と、 前記円弧発生手段によって求められた前記円弧上の各点
と前記描画すべき扇形の要の点とを結ぶ直線が通過する
全ての画素の座標をラスタ座標として出力する線分発生
手段と、を具備したことを特徴とする扇形発生装置。
1. A fan generating device for drawing a fan-shaped figure whose interior is filled on a grid point coordinate system, and an arc generating means for scan-converting an arc defining a fan-shaped contour to be drawn from given parameters. A line segment generating means for outputting, as raster coordinates, the coordinates of all pixels through which a straight line connecting each point on the arc determined by the arc generating means and the point of the fan shape to be drawn passes. A fan-shaped generator comprising:
JP27695491A 1991-09-27 1991-09-27 Sector generating device Pending JPH0589249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27695491A JPH0589249A (en) 1991-09-27 1991-09-27 Sector generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27695491A JPH0589249A (en) 1991-09-27 1991-09-27 Sector generating device

Publications (1)

Publication Number Publication Date
JPH0589249A true JPH0589249A (en) 1993-04-09

Family

ID=17576730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27695491A Pending JPH0589249A (en) 1991-09-27 1991-09-27 Sector generating device

Country Status (1)

Country Link
JP (1) JPH0589249A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000137478A (en) * 1998-11-02 2000-05-16 Kansei Corp Painted out figure generating method and device using the method
CN108574869A (en) * 2018-03-29 2018-09-25 珠海迈科智能科技股份有限公司 A kind of method that DVB set-top box interfaces support fan-shaped special efficacy

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000137478A (en) * 1998-11-02 2000-05-16 Kansei Corp Painted out figure generating method and device using the method
CN108574869A (en) * 2018-03-29 2018-09-25 珠海迈科智能科技股份有限公司 A kind of method that DVB set-top box interfaces support fan-shaped special efficacy
CN108574869B (en) * 2018-03-29 2021-03-16 珠海迈科智能科技股份有限公司 Method for supporting fan-shaped special effect on DVB set top box interface

Similar Documents

Publication Publication Date Title
KR920001801B1 (en) Picture size magnification method and device
US5422987A (en) Method and apparatus for changing the perspective view of a three-dimensional object image displayed on a display screen
US4484347A (en) Method of image transformation in a display device
EP0263517B1 (en) Lithography apparatus
JP3286796B2 (en) Method and image creation device for reducing the amount of storage required
JPH0771936A (en) Device and method for processing image
GB2150797A (en) Graphic display system
JPH0589249A (en) Sector generating device
JPH03119387A (en) Method and apparatus for forming contour of digital type surface
KR100748572B1 (en) Rasterization of polytopes in cylindrical coordinates
JPH064679A (en) Image processor
GB2226478A (en) Converting rectilinear (x,y) information into pixel position for a raster scan display of plural horizontal resolutions
JPH09120450A (en) Image processor
JPH11175740A (en) Method and device for drawing thin line
EP0339758B1 (en) Image processing apparatus for performing projective transformations
JP2806679B2 (en) Character generator
JPS6232519B2 (en)
JP2001266138A (en) Picture conversion processor, picture conversion processing method and information recording medium
JPH04290178A (en) Method of imaging objective and its system
JPH0795404A (en) Method and apparatus for reproduction of shaded image
JP3094691B2 (en) Drawing processing device
JP2641393B2 (en) Digital halftone screen generation method and apparatus
JPH08279038A (en) Thick-line drawing device
JP2884630B2 (en) Line image approximation method and apparatus
JPH0668247A (en) Method and device for varying power of digital image data