JPS6379187A - Graphic generating device - Google Patents

Graphic generating device

Info

Publication number
JPS6379187A
JPS6379187A JP22443286A JP22443286A JPS6379187A JP S6379187 A JPS6379187 A JP S6379187A JP 22443286 A JP22443286 A JP 22443286A JP 22443286 A JP22443286 A JP 22443286A JP S6379187 A JPS6379187 A JP S6379187A
Authority
JP
Japan
Prior art keywords
line
graphic
boundary line
coordinate
painting
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
JP22443286A
Other languages
Japanese (ja)
Inventor
Sanae Aoyanagi
早苗 青柳
Jun Yoshida
純 吉田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP22443286A priority Critical patent/JPS6379187A/en
Publication of JPS6379187A publication Critical patent/JPS6379187A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To paint out a graphic at a high speed by obtaining the X coordinates of the starting point and the end point of the painting-out of the segment in an X axis direction to the graphic having a border line including a curved line. CONSTITUTION:A border line dividing device 1 outputs effective scopes y1-y4 of Y to a graphic dividing device 2 corresponding to respective part border lines. The graphic is divided to a part graphic like P, Q and R, transferred to a graphic painting-out device 3 and paint out so that the border line of the painting-out start and the border line of the painting out completion can be displayed respectively by one function. For example, a part graphic Q sets y5 to a Y range register 4, sets the data of the starting line and the completion line of the border of a painting-out to constant register 6 and 7, a Y coordinate generating device generates successively the Y coordinates and function arithmetic units 8 and 9 calculate the X coordinates of respective intersections. A straight line generating device 12 obtains segment coordinates from the contents of starting line completing line data register 10 and 11, the address of a frame memory 13 is calculated, picture element data are written and the graphic is painted out.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、図形をX座標に対してX座標の値が唯一つ定
まる複数の境界線群に分割した後、Yの有効範囲と一対
の塗りつぶし開始の境界線と塗りつぶし終了の境界線の
組で定まる複数の部分図形に再構成して高速に図形を塗
りつぶす図形発生装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention divides a figure into a plurality of boundary line groups whose X coordinate value is uniquely determined, and then divides the figure into a plurality of boundary line groups in which the value of the X coordinate is determined uniquely. The present invention relates to a figure generation device that rapidly fills a figure by reconfiguring it into a plurality of partial figures defined by a set of a boundary line and a boundary line at the end of filling.

従来の技術 以下、図面を参照しながら、従来の図形発生装置におけ
る図形塗りつぶしの例を説明する。
BACKGROUND OF THE INVENTION An example of figure filling in a conventional figure generator will be described below with reference to the drawings.

第2図は、従来の図形発生の一原理図である。FIG. 2 is a diagram showing the principle of conventional figure generation.

入力図形の図形データを受は取った直線近似装置15は
曲線の境界線を直接返信する。直線のみから構成される
境界線の図形データを受は取った多角形塗りつぶし装置
16は、あるX座標に対してX軸方向の塗りつぶし開始
のX座標と塗りつぶし終了のX座標を求め、その間の線
分を塗りつふす。
The linear approximation device 15 that receives the graphic data of the input graphic directly returns the boundary line of the curve. The polygon filling device 16 that has received the graphic data of the boundary line consisting of only straight lines calculates the X-coordinate of the start of filling and the X-coordinate of the end of filling in the X-axis direction for a certain X-coordinate, and Fill in the amount.

また、第3図は、従来の図形発生の他の−原理図である
。境界線と内部の1点を図形データとして入力し境界の
輪郭線をフレームメモリに描画する輪郭線発生装置17
と、内部の一点より塗りつぶしを開始してフレームメモ
リの内容を読出して輪郭線上の点の値(色、濃度等)を
比較しながらフレームメモリに描画された輪郭線の内部
をビクセル単位に塗りつぶす図形塗りつぶし装置19と
フレームメモリI8とから構成される。
FIG. 3 is another principle diagram of conventional figure generation. A contour generation device 17 that inputs a boundary line and one point inside as graphic data and draws the boundary contour in a frame memory.
, starts filling from one point inside, reads the contents of the frame memory, and compares the values (color, density, etc.) of points on the outline, and then fills the inside of the outline drawn in the frame memory pixel by pixel. It is composed of a filling device 19 and a frame memory I8.

発明が解決しようとする問題点 しかしながら、第2図の構成では、出力図形は滑らかな
曲線の境界線を表現できない。また、第3図の構成では
、入力図形の構造を利用せずフレームメモ1月8の内容
を逐次読出しピクセル単位に比較しているので遅い。
Problems to be Solved by the Invention However, with the configuration shown in FIG. 2, the output figure cannot express smooth curved boundaries. Furthermore, the configuration shown in FIG. 3 is slow because the contents of the frame memo January 8 are sequentially read out and compared pixel by pixel without using the structure of the input graphic.

本発明は、上記問題点に鑑み、高速に図形を塗りつぶす
ための図形発生装置を提供するものである。
SUMMARY OF THE INVENTION In view of the above-mentioned problems, the present invention provides a figure generation device for filling in figures at high speed.

問題点を解決するための手段 上記問題点を解決するため、本発明の図形発生装置は、
入力図形をX座標に対してX座標の値が唯一つだけ得ら
れる部分境界線に分割する境界線分割装置と、X座標の
有効範囲と一対の塗りつぶしの境界線の組で定まる部分
図形に分割する図形分割装置とあるX座標に対してぬり
つぶしの始点および終点のX座標を求めてその間のX軸
方向の線分を塗りつぶすように図形塗りつぶし装置を備
え、高速に図形が発生するように構成した。
Means for Solving the Problems In order to solve the above problems, the figure generator of the present invention has the following features:
A boundary dividing device that divides an input figure into partial boundaries that have only one value for the X coordinate, and a partial figure that is determined by a set of the effective range of the X coordinate and a pair of filled boundaries. A figure dividing device is provided to calculate the X coordinates of the starting point and end point of filling with respect to a certain X coordinate, and a figure filling device is provided to fill in the line segment in the X axis direction between them, and is configured to generate figures at high speed. .

作用 本発明は上記した構成によって、曲線を含む境界線をも
つ図形に対しX軸方向の線分の塗りつぶしの始点と終点
のX座標を求め、図形の構造を利用して高速で塗りつぶ
すことが可能となる。
Effect of the Invention With the above-described configuration, the present invention is capable of determining the X coordinates of the starting point and end point of filling a line segment in the X-axis direction for a figure that has a boundary line including a curve, and is capable of filling the figure at high speed by utilizing the structure of the figure. becomes.

実施例 以下、本発明の一実施例の図形発生装置について、図面
を参照しながら説明する。
EXAMPLE Hereinafter, a graphic generator according to an example of the present invention will be described with reference to the drawings.

第1図は、本発明の実施例における図形発生装置のブロ
ック図であり、1は境界線分割装置で、2は図形分割装
置で、3は図形塗りつぶし装置である。6および7は塗
りつぶしの開始線または終了線の境界を定義するための
定数を格納する定数レジスタ、4は定数レビスタ6およ
び7に対応するY、1ffi標の上限および下限を規定
するYレンジレジスタ、5はX座標発生器、8は始線上
の一点の座標を発生するための関数演算器、9は路線上
の一点の座標を発生するための関数演算器、10は塗り
つぶしを開始するX座標を格納する始線データレジスタ
、11は塗りつぶしを終了するX座標を格納する絡線デ
ータレジスタ、12は塗りつぶしの始点および終点間に
画素データを発生する直線発生器、13はフレームメモ
リ、14は画素データのフレームメモリ13上のアドレ
スを求め書込む時の制御を行う書込み制御器である。
FIG. 1 is a block diagram of a figure generator according to an embodiment of the present invention, in which 1 is a boundary dividing device, 2 is a figure dividing device, and 3 is a figure filling device. 6 and 7 are constant registers that store constants for defining the boundaries of the start line or end line of filling; 4 is a Y range register that specifies the upper and lower limits of Y corresponding to constant Revisters 6 and 7; 1ffi mark; 5 is an X coordinate generator, 8 is a function calculator for generating the coordinates of a point on the starting line, 9 is a function calculator for generating the coordinates of a point on the line, and 10 is the X coordinate for starting filling. 11 is a connecting line data register that stores the X coordinate at which filling ends; 12 is a straight line generator that generates pixel data between the starting point and end point of filling; 13 is a frame memory; 14 is pixel data. This is a write controller that determines the address on the frame memory 13 and controls when writing.

以上のように構成された図形発生装置について、以下そ
の動作について説明する。
The operation of the graphic generator configured as described above will be explained below.

例えば第4図のような図形を塗りつぶす場合、境界線分
割装置1は、入力図形を同図の11.12,13゜14
のような境界線に分割して部分境界線とし、各部分境界
線に対応してYの有効範囲yl+ y2. y3. y
4を図形分割装置2に出力する。図形分割装置2は、塗
りつぶし開始の境界線および塗りつぶし終了の境界線が
各々一つの関数形で表されるようにP、Q、Hのような
部分図形に分割する。分割された部分図形は図形塗りつ
ぶし装置3に転送され塗りつぶされる。例えば、部分図
形Qは、y5をYレンジレジスタ4に、塗りつぶしの境
界の開始線と終了線を求めるために必要な定数データ、
3 : y=a* (x−b)**2+t−;=A*x
*x+B*x+C; (A、B、C)−(a、−2*a*b、a*b*b+c
) 12: y=−a* (x十b)**2−(;=A’ 
 **2+t−*x+c’  ;(A’ 、B’ 、C
’ )= (−a、−2*a*b。
For example, when filling in a figure as shown in Fig. 4, the boundary line dividing device 1 divides the input figure into
The effective range of Y is divided into partial boundaries such as yl+y2. y3. y
4 is output to the figure dividing device 2. The figure dividing device 2 divides the figure into partial figures such as P, Q, and H so that the fill-in start boundary line and the fill-in end boundary line are each represented by one function form. The divided partial figures are transferred to the figure filling device 3 and filled in. For example, for the partial figure Q, y5 is stored in the Y range register 4, constant data necessary to find the start line and end line of the boundary of filling,
3: y=a* (x-b)**2+t-;=A*x
*x+B*x+C; (A, B, C) - (a, -2*a*b, a*b*b+c
) 12: y=-a* (x0b)**2-(;=A'
**2+t-*x+c';(A',B', C
' ) = (-a, -2*a*b.

−2*t)*b−c) (但し、a、b、c>O) の(A、 B、 C) 、  (A”、B’ 、C”)
を定数レジスタ6および7に設定して、X座標発生器5
にX座標を順次発生させて2個の関数演算器8および9
に境界との交点のX座標を計算させる。関数演算器8お
よび9はマイクロプロセッサを含めた構成として関数形
をフレキシブルに設定することも考えられる。関数演算
器8および9の出力は、始線データレジスタ10と絡線
データレジスタ11に接続される。直線発生器12は始
線データレジスタ10と絡線データレジスタ11の内容
に従って始点と終点の間の線分の座標を発生する。書込
み制御回路14は直線発生器12の出力であるX座標と
Y座標発生器5の出力であるY座標とからフレームメモ
リ13のアドレスを計算して画素データを書込み、図形
を発生する。
-2*t)*b-c) (However, a, b, c>O) of (A, B, C), (A", B', C")
is set in constant registers 6 and 7, and the X coordinate generator 5
The two function calculators 8 and 9 sequentially generate the X coordinate.
Calculate the X coordinate of the intersection with the boundary. It is also conceivable that the function calculation units 8 and 9 include a microprocessor so that the function form can be set flexibly. The outputs of the function operators 8 and 9 are connected to a starting line data register 10 and a connecting line data register 11. The straight line generator 12 generates the coordinates of a line segment between the starting point and the ending point according to the contents of the starting line data register 10 and the connecting line data register 11. The write control circuit 14 calculates the address of the frame memory 13 from the X coordinate that is the output of the linear generator 12 and the Y coordinate that is the output of the Y coordinate generator 5, writes pixel data, and generates a figure.

発明の効果 以上のように本発明は、図形をY座標に対してX座標の
値が唯一つ定まる部分境界線に分割し、Y座標の有効範
囲と一対の境界線の組で定まる部分図形に分割し、各部
分図形に対してY座標に対応して塗りつぶしの始点座標
ならびに終点座標を求める構成にしたことにより、高速
に図形を塗りつぶすことが可能である。
Effects of the Invention As described above, the present invention divides a figure into partial boundaries where the value of the X coordinate is uniquely determined for the Y coordinate, and divides the figure into partial boundaries determined by the valid range of the Y coordinate and a pair of boundary lines. By dividing the figure and determining the starting point coordinates and end point coordinates of filling in each partial figure corresponding to the Y coordinate, it is possible to fill in the figure at high speed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例に於ける図形発生装置のブロ
ック図、第2図は従来の図形発生装置のブロック図、第
3図は従来の図形発生装置のブロック図、第4図は図形
を塗りつぶす場合の分割例を示す図である。 1・・・・・・境界線分割装置、2・・・・・・図形分
割装置、3・・・・・・塗りつぶし装置、4・・・・・
・Yレンジレジスタ、5・・・・・・Y座標発生器、6
・・・・・・定数レジスタ、7・・・・・・定数レジス
タ、8・・・・・・関数演算器、9・・・・・・関数演
算器、10・・・・・・始線データレジスタ、11・・
・・・・絡線データレジスタ、12・・・・・・直線発
生器、13・・・・・・フレームメモリ、14・・・・
・・書込み制御回路、15・・・・・・直線近似装置、
16・・・・・・多角形塗りつぶし装置、】7・・・・
・・輪郭線描画装置、18・・・・・・フレームメモリ
、19・・・・・・図形塗りつぶし装置。 代理人の氏名 弁理士 中尾敏男 はか1名第2図 第 3 図
FIG. 1 is a block diagram of a figure generator according to an embodiment of the present invention, FIG. 2 is a block diagram of a conventional figure generator, FIG. 3 is a block diagram of a conventional figure generator, and FIG. 4 is a block diagram of a conventional figure generator. FIG. 6 is a diagram illustrating an example of division when filling in a figure. 1... Border dividing device, 2... Figure dividing device, 3... Filling device, 4...
・Y range register, 5...Y coordinate generator, 6
...Constant register, 7...Constant register, 8...Function operator, 9...Function operator, 10...Start line Data register, 11...
... Line data register, 12 ... Straight line generator, 13 ... Frame memory, 14 ...
...Write control circuit, 15... Linear approximation device,
16...Polygon filling device, ]7...
. . . Outline drawing device, 18 . . . Frame memory, 19 . . . Figure filling device. Name of agent: Patent attorney Toshio Nakao (1 person) Figure 2 Figure 3

Claims (1)

【特許請求の範囲】[Claims] 境界線がY座標に対してX座標の値が解析的に求まる既
知の関数で与えられた図形の図形データを入力とし、X
軸方向に塗りつぶしを行うため、前記入力図形をY座標
に対してX座標の値が唯一つ定まる複数の部分境界線に
分割する境界線分割装置と、前記境界線分割装置の出力
に接続され複数の前記部分境界線の関数形を規定する定
数データと前記部分境界線に対応するY座標の有効範囲
を入力とし、対応する一つの関数形で表現されるX軸方
向の塗りつぶし開始の境界線および一つの関数形で表現
されるX軸方向の塗りつぶし終了の境界線と前記塗りつ
ぶし開始の境界線に対応するY座標の有効範囲の組で定
まる複数の部分図形データを出力する図形分割装置と、
前記塗りつぶし開始の境界線と前記塗りつぶし終了の境
界線の間のX軸方向の線分を塗りつぶす図形塗りつぶし
装置とを備えることを特徴とする図形発生装置。
Input the graphic data of a figure whose boundary line is given by a known function that analytically determines the value of the X coordinate with respect to the Y coordinate, and
In order to perform filling in the axial direction, a boundary line dividing device divides the input figure into a plurality of partial boundary lines each having a unique value of the X coordinate relative to the Y coordinate, and a plurality of boundary line dividers connected to the output of the boundary line dividing device The constant data that defines the functional form of the partial boundary line and the effective range of the Y coordinate corresponding to the partial boundary line are input, and the filling start boundary line in the X-axis direction expressed by one corresponding functional form and a figure dividing device that outputs a plurality of partial figure data defined by a set of a valid range of Y coordinates corresponding to a fill end boundary line in the X-axis direction and a fill start boundary line expressed in a single functional form;
A figure generation device comprising: a figure filling device that fills in a line segment in the X-axis direction between the fill-in start boundary line and the fill-in end boundary line.
JP22443286A 1986-09-22 1986-09-22 Graphic generating device Pending JPS6379187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22443286A JPS6379187A (en) 1986-09-22 1986-09-22 Graphic generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22443286A JPS6379187A (en) 1986-09-22 1986-09-22 Graphic generating device

Publications (1)

Publication Number Publication Date
JPS6379187A true JPS6379187A (en) 1988-04-09

Family

ID=16813681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22443286A Pending JPS6379187A (en) 1986-09-22 1986-09-22 Graphic generating device

Country Status (1)

Country Link
JP (1) JPS6379187A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02244221A (en) * 1989-03-17 1990-09-28 Hitachi Ltd Character graphic generating device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02244221A (en) * 1989-03-17 1990-09-28 Hitachi Ltd Character graphic generating device

Similar Documents

Publication Publication Date Title
EP0329101B1 (en) Three-dimensional graphic processing apparatus
JPH0640259B2 (en) Data processing device
JPS6379187A (en) Graphic generating device
JPH0567216A (en) Graphic painting-out device
JPS6339947B2 (en)
KR920002471B1 (en) Graphic controller
JP3211404B2 (en) String output device
JP3312560B2 (en) Texture mapping device
JP2675169B2 (en) Graphic processing system
JP3092154B2 (en) Digital drawing equipment
JP2687429B2 (en) Graphic controller
JP2001083958A (en) Image processing device
JPS62271186A (en) Graphic generating device
JPH0765151A (en) Figure editing device
JPS63223984A (en) Painting-out system for overlapping graphic
JP2605609B2 (en) Dot display processing device
JPH0497421A (en) Character processor
JPH03150683A (en) Printing device
JPS5928911B2 (en) How to output dot patterns
JPH01320583A (en) Plotting editor
JPS6367690A (en) Sector generator
JPH0245889A (en) Area painting out method
JP2001306056A (en) Font-editing method and font-editing device
JPH01205387A (en) Generation system for high quality decorated character and graphic or the like
JPH05334413A (en) Mask pattern generating system