JP3064410B2 - Method and apparatus for generating thick line having line texture - Google Patents

Method and apparatus for generating thick line having line texture

Info

Publication number
JP3064410B2
JP3064410B2 JP33740190A JP33740190A JP3064410B2 JP 3064410 B2 JP3064410 B2 JP 3064410B2 JP 33740190 A JP33740190 A JP 33740190A JP 33740190 A JP33740190 A JP 33740190A JP 3064410 B2 JP3064410 B2 JP 3064410B2
Authority
JP
Japan
Prior art keywords
line
pointer
texture
thick
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP33740190A
Other languages
Japanese (ja)
Other versions
JPH04205481A (en
Inventor
順次 北原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Daikin Industries Ltd
Original Assignee
Daikin Industries 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 Daikin Industries Ltd filed Critical Daikin Industries Ltd
Priority to JP33740190A priority Critical patent/JP3064410B2/en
Publication of JPH04205481A publication Critical patent/JPH04205481A/en
Application granted granted Critical
Publication of JP3064410B2 publication Critical patent/JP3064410B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> この発明はライン・テクスチャに基づいて複数本の線
分を発生することにより、ライン・テクスチャを有する
太線を発生するための方法およびその装置に関する。
The present invention relates to a method and an apparatus for generating a thick line having a line texture by generating a plurality of line segments based on a line texture. .

<従来の技術、および発明が解決しようとする課題> 従来からグラフィックス表示装置においては多機能化
の要求が強く、このような要求の1種としてライン・テ
クスチャを有する太線を発生できる機能を持たせたグラ
フィックス表示装置が提供されるようになってきてい
る。
<Related Art and Problems to be Solved by the Invention> Conventionally, there has been a strong demand for multi-functionality in a graphics display device, and one of such demands is a function capable of generating a thick line having a line texture. Graphics displays have been provided.

このような太線発生方法としては、直線発生器により
画素単位で線分を発生し、ライン・テクスチャ・メモリ
からライン・テクスチャを順次読み出して線分の描画を
行なう方法が一般的に採用される。そして、対象となる
線分の一部のみが表示領域に含まれることになる場合に
おいて、中点分割法、クリップ処理等を実行することに
伴なう描画速度の低下を防止するために、順次発生され
る画素毎に表示領域に対する内外判定を行ない、内外判
定結果が内部から外部に変化した場合に線分の発生を中
断する直線発生器が用いられる。
As a method of generating such a thick line, a method of generating a line segment by generating a line segment in a pixel unit by a straight line generator, sequentially reading line textures from a line texture memory, and drawing the line segments is generally adopted. Then, in the case where only a part of the target line segment is included in the display area, in order to prevent a decrease in drawing speed due to execution of the midpoint division method, clip processing, and the like, A straight line generator is used which makes an inside / outside determination for the display area for each pixel generated and stops the generation of line segments when the inside / outside determination result changes from inside to outside.

したがって、このような直線発生器を用いて、同一の
ライン・テクスチャに基づく複数本の線分を発生するこ
とにより、ライン・テクスチャを有する太線を簡単に、
かつ高速に発生できる。
Therefore, by using such a straight line generator to generate a plurality of line segments based on the same line texture, a thick line having a line texture can be easily formed.
It can be generated at high speed.

しかし、例えば、ポリゴンの外郭線を太線表示するよ
うな場合において表示領域との関係で太線が一部しか表
示されないような場合には、各線分毎に線分発生中断時
点におけるライン・テクスチャ上のポインタが異なり、
以後の太線発生に当って各線分毎のライン・テクスチャ
が揃わなくなってしまうという不都合がある。即ち、第
7図中Aに示すように始終点間の座標値の差が小さい座
標方向(以下、マイナー方向と称する)において太線の
発生が中断される場合には、線分発生が中断されるまで
の各線分毎の発生画素数が互に異なるのであるから、ラ
イン・テクスチャ上のポインタも異なってしまう。そし
て、次の太線の描画を開始するに当って、上記異なるラ
イン・テクスチャ上のポインタに基づいて線分の発生を
行なうことになるのであるから、次の太線のライン・テ
クスチャが第7図中Bに示すように各線分毎に乱れてし
まい、太線の描画品質が低下してしまう。
However, for example, when the outline of a polygon is displayed as a bold line, if only a part of the bold line is displayed in relation to the display area, the line texture on the line The pointer is different,
There is an inconvenience that line textures for each line segment are not aligned when a thick line is generated thereafter. That is, as shown in A in FIG. 7, when the generation of the thick line is interrupted in the coordinate direction in which the difference in the coordinate values between the start and end points is small (hereinafter, referred to as the minor direction), the generation of the line segment is interrupted. Since the number of pixels generated for each line segment is different from each other, the pointer on the line texture also differs. In starting the drawing of the next thick line, a line segment is generated based on the pointers on the different line textures. As shown in B, the image is disturbed for each line segment, and the drawing quality of the thick line is reduced.

このような不都合を解消するために、太線の発生が中
断された場合に、次の太線の発生を開始するに当って各
線分に対応するライン・テクスチャ上のポインタを初期
設定することが考えられる。この場合には、太線の発生
が中断された後に発生される太線のライン・テクスチャ
をきれいに揃えることができ、太線の描画品質を高める
ことができる。しかし、拡大処理、平行移動処理等を伴
なう場合には、第8図A,Bに示すように、当初太線の発
生が中断されなかったにも拘らず、これらの処理が施さ
れることに起因して太線の発生が中断されてしまうこと
があり、このような場合には、第9図A,B、特に第9図
Bに示すように次の太線のライン・テクスチャが大きく
ゆらぎ、瞬間的な太線の描画品質が低下してしまう。
In order to solve such an inconvenience, it is conceivable that, when the generation of the thick line is interrupted, the pointer on the line texture corresponding to each line segment is initialized when the generation of the next thick line is started. . In this case, the line texture of the bold line generated after the generation of the bold line is interrupted can be finely aligned, and the drawing quality of the bold line can be improved. However, in cases involving enlargement processing, parallel movement processing, etc., as shown in FIGS. 8A and 8B, these processings must be performed despite the fact that the occurrence of the thick line was not interrupted at first. , The occurrence of the thick line may be interrupted, and in such a case, the line texture of the next thick line fluctuates greatly as shown in FIGS. Instantaneous thick line drawing quality is degraded.

<発明の目的> この発明は上記の問題点に鑑みてなされてものであ
り、太線の発生が中断された場合における次の太線のラ
イン・テクスチャを揃えることができるとともに、太線
の発生中断が生じた瞬間におけるライン・テクスチャの
ゆらぎの発生を抑制できるライン・テクスチャを有する
太線発生方法およびその装置を提供することを目的とし
ている。
<Object of the Invention> The present invention has been made in view of the above-described problems, and when the occurrence of a thick line is interrupted, the line texture of the next thick line can be made uniform, and the occurrence of the thick line is interrupted. It is an object of the present invention to provide a method and an apparatus for generating a thick line having a line texture that can suppress the fluctuation of the line texture at an instant.

<課題を解決するための手段> 上記の目的を達成するための、この発明の太線発生方
法は、太線を構成する各線分の発生が中断された場合
に、中断を生じることなく線分発生が行なわれた場合に
対応するライン・テクスチャ上のポインタを得、得られ
たポインタに基づいて次の複数本の線分発生を行なう方
法である。
<Means for Solving the Problems> In order to achieve the above object, a method for generating a thick line according to the present invention provides a method for generating a line without interruption when generation of each line constituting the thick line is interrupted. This is a method in which a pointer on a line texture corresponding to the case is obtained, and the next plurality of line segments are generated based on the obtained pointer.

上記の目的を達成するための、この発明の太線発生装
置は、予め定められたライン・テクスチャに基づいて直
線発生手段により複数本の線分発生を行なう太線発生装
置において、線分発生手段による画素発生動作と同期し
て線分終端までの発生予定画素数を得る画素数計数手段
と、画素発生と同期してライン・テクスチャ上のポイン
タを得るポインタ手段と、各線分の発生が中断された場
合に、画素計数手段の内容およびポインタ手段の内容に
基づいて、中断を生じることなく線分発生が行なわれた
場合に対応するライン・テクスチャ上のポインタを得
て、次の複数本の線分発生開始時のポインタとしてポイ
ンタ手段に供給するポインタ修正手段とを含んでいる。
In order to achieve the above object, a thick line generator according to the present invention is a thick line generator that generates a plurality of line segments by a straight line generator based on a predetermined line texture. Pixel number counting means for obtaining the number of pixels to be generated up to the end of the line segment in synchronization with the generation operation, pointer means for obtaining a pointer on the line texture in synchronization with the pixel generation, and when the generation of each line segment is interrupted Then, based on the contents of the pixel counting means and the contents of the pointer means, a pointer on a line texture corresponding to the case where a line segment is generated without interruption is obtained, and the next plurality of line segments are generated. Pointer correction means for supplying to the pointer means as a start pointer.

<作用> 以上の太線発生方法であれば、予め定められたライン
・テクスチャに基づいて太線を構成する複数本の線分発
生を行なう場合において、各線分の発生が中断された場
合におけるライン・テクスチャ上のポインタが各線分毎
に異なっている可能性があるが、次の太線のための複数
本の線分発生を行なうに当って、中断を生じることなく
線分発生が行なわれた場合に対応するライン・テクスチ
ャ上のポインタを得て、得られたポインタに基づいて次
の複数本の線分発生を行なうのであるから、次の太線を
構成する複数本の線分のライン・テクスチャを揃え、ラ
イン・テクスチャを有する太線の描画品質を高めること
ができる。
<Operation> According to the above-described method for generating a thick line, when performing generation of a plurality of line segments constituting a thick line based on a predetermined line texture, the line texture when the generation of each line segment is interrupted is performed. The above pointer may be different for each line segment, but when multiple line segments are generated for the next thick line, the line segment is generated without interruption Since the pointer on the line texture to be obtained is obtained and the next plurality of line segments are generated based on the obtained pointer, the line textures of the plurality of lines constituting the next thick line are aligned, The drawing quality of a thick line having a line texture can be improved.

また、徐々に拡大処理を施し、または平行移動処理を
施すことにより太線の発生が中断されることになる場合
にも、太線の発生が中断されない場合に対応するポイン
タに基づいて次の太線のライン・テクスチャを得ること
ができるので、新たに中断が生じる瞬間等におけるライ
ン・テクスチャのゆらぎを大幅に抑制でき、この面から
も高品質な太線の表示を達成できる。
Also, when the enlargement processing is performed or the parallel movement processing is performed, the occurrence of the thick line is interrupted, and when the occurrence of the thick line is not interrupted, the next thick line Since the texture can be obtained, the fluctuation of the line texture at the moment when a new interruption occurs can be largely suppressed, and a high-quality thick line can be displayed from this aspect.

以上の構成の太線発生装置であれば、予め定められた
ライン・テクスチャに基づいて直接発生手段により複数
本の線分発生を行なう太線発生装置において、線分発生
手段による画素発生動作と同期して線分終端までの発生
予定画素数を得る画素数計数手段と、画素発生と同期し
てライン・テクスチャ上のポインタを得るポインタ手段
と、各線分の発生が中断された場合に、画素計数手段の
内容およびポインタ手段の内容に基づいて、中断を生じ
ることなく線分発生が行なわれた場合に対応するライン
・テクスチャ上のポインタを得て、次の複数本の線分発
生開始時のポインタとしてポインタ手段に供給するポイ
ンタ修正手段とを含むことを特徴とするライン・テクス
チャを有する太線発生装置。
With the thick line generator having the above configuration, in a thick line generator that directly generates a plurality of line segments based on a predetermined line texture, the thick line generator is synchronized with the pixel generation operation by the line segment generator. A pixel number counting means for obtaining the number of pixels to be generated up to the end of the line segment; a pointer means for obtaining a pointer on the line texture in synchronization with the pixel generation; On the basis of the contents and the contents of the pointer means, a pointer on a line texture corresponding to a case where a line segment is generated without interruption is obtained, and the pointer is used as a pointer at the start of generation of the next plurality of line segments. A thick line generator having a line texture.

<実施例> 以下、実施例を示す添付図面によって詳細に説明す
る。
<Example> Hereinafter, an example will be described in detail with reference to the accompanying drawings.

第1図はこの発明の太線発生方法の一実施例を示すフ
ローチャートであり、ステップにおいて太線を構成す
る1の線分の始終点の座標値を得、ステップにおい
て、ライン・テクスチャの選択、勾配値算出、太線の線
幅の設定等の前処理を行ない、ステップにおいて太線
の線幅、即ち発生すべき線分の数を保持する線幅カウン
タの内容を1だけ減少させ、ステップにおいて、発生
すべき画素数を保持しておくループ・カウンタの内容を
1だけ減少させ、ステップにおいてループ・カウンタ
の内容が0か否か、即ち全ての画素を発生させたか否か
を判別する。そして、全ての画素を発生させたと判別さ
れた場合には、ステップにおいて線幅カウンタの内容
が0か否か、即ち全ての線分を発生させたか否かを判別
し、発生させていない線分が存在していると判別された
場合には、ステップにおいて次の線分の始終点の座標
値を得て再びステップの処理を行なう。
FIG. 1 is a flow chart showing one embodiment of a method for generating a thick line according to the present invention. In the step, the coordinate values of the start and end points of one line segment constituting the thick line are obtained. Pre-processing such as calculation, setting of the line width of the thick line, and the like are performed, and in step, the line width of the thick line, that is, the content of the line width counter that holds the number of lines to be generated is reduced by 1, and in step, the line width counter should generate The content of the loop counter for holding the number of pixels is reduced by one, and it is determined in step whether the content of the loop counter is 0, that is, whether all the pixels have been generated. If it is determined that all the pixels have been generated, it is determined in step whether the content of the line width counter is 0, that is, whether or not all the line segments have been generated. Is determined to exist, the coordinates of the start and end points of the next line segment are obtained in the step, and the processing of the step is performed again.

逆に、ステップにおいてループ・カウンタの内容が
0でないと判別された場合には、ステップにおいて発
生画素の表示領域に対する内外判定を行ない、ステップ
において内外判定結果が内部から外部に変化したか否
かを判別する。そして内外判定結果が変化していなけれ
ば、ステップにおいて直線発生器による補間演算を行
なって次の画素を得、ステップにおいてライン・テク
スチャ(第2図参照)の該当するポインタに対応するラ
イン・テクスチャ・データを読み出すとともに、ポイン
タの内容を1だけ減少させ、再びステップの処理を行
なう。また、ステップにおいて内外判定結果が変化し
たと判別された場合には、ステップにおいてポインタ
の内容とループ・カウンタの内容とを加算して新たなポ
インタ(次の線分の発生開始時点に対応するポインタ)
を得て一時的に保持した後、ステップの判別を行な
う。そして、ステップにおいて線幅カウンタの内容が
0であると判別された場合には、そのまま一連の処理を
終了し、次の太線発生に備える。但し、この場合には、
次の太線を構成する各線分に対応して新たなポインタの
値が設定されており、しかも各線分に対するポインタの
値が互に等しい。
Conversely, if it is determined in step that the contents of the loop counter are not 0, then in step the inside / outside determination of the display area of the generated pixel is performed, and in step it is determined whether the inside / outside determination result has changed from inside to outside. Determine. If the inside / outside determination result has not changed, the next pixel is obtained by performing an interpolation operation using the straight line generator in the step, and the line texture corresponding to the corresponding pointer of the line texture (see FIG. 2) is obtained in the step. The data is read out, the content of the pointer is reduced by 1, and the step processing is performed again. If it is determined in step that the inside / outside determination result has changed, the content of the pointer and the content of the loop counter are added in step and a new pointer (pointer corresponding to the start of the next line segment generation) is added. )
Is obtained and temporarily stored, and then the step is determined. Then, if it is determined in step that the content of the line width counter is 0, the series of processing is terminated as it is to prepare for the next bold line. However, in this case,
A new pointer value is set corresponding to each line segment forming the next thick line, and the pointer values for each line segment are equal to each other.

したがって、表示領域との関係で太線発生が途中で中
断されたか否かに拘らず、次の太線発生開始時点におけ
る各線分に対するポインタが互に等しくなり、太線を構
成する各線分のライン・テクスチャを揃えて太線の高品
質の表示を達成できる(第3図中A,B参照)。
Therefore, regardless of whether the bold line generation is interrupted on the way in relation to the display area, the pointers to the respective line segments at the start of the next bold line generation become equal to each other, and the line texture of each line constituting the bold line is changed. High quality display of thick lines can be achieved by aligning them (see A and B in FIG. 3).

また、徐々に拡大処理、平行移動処理等を施すことに
より太線の一部が表示されなくなる場合、逆に縮小処理
を施すことにより太線の全範囲が表示されるようになる
場合にも、次の太線を発生する場合のポインタが所定置
に保持されるのであるから、ライン・テクスチャを初期
化する場合のような大幅なゆらぎが生じることはなく、
太線表示の品質を高く維持できる(第4図A,Bおよび第
5図A,B参照)。
Also, when a part of the thick line is not displayed by gradually performing the enlargement processing, the parallel movement processing, or the like, or when the entire range of the thick line is displayed by performing the reduction processing, Since the pointer when a thick line is generated is held at a predetermined position, there is no significant fluctuation as in the case of initializing the line texture.
The quality of the thick line display can be maintained high (see FIGS. 4A and 5B and FIGS. 5A and 5B).

<実施例2> 第6図はこの発明の太線発生装置の一実施例を示すブ
ロック図であり、太線を構成する複数の線分の始終点を
保持する始終点保持部(1)と、始終点保持部(1)か
ら与えられる始終点に基づいて補間演算を行なって線分
上の画素を順次発生する直線発生器(2)と、直線発生
器(2)が補間演算を行なう毎に内容が1だけ減少され
て直線発生器(2)による補間演算を行なうべき残り回
数を保持するループ・カウンタ(3)と、ライン・テク
スチャを保持するライン・テクスチャ保持部(4)と、
直線発生器(2)が補間演算を行なう毎に内容が1だけ
減少されてライン・テクスチャの読み出し位置を保持す
るポインタ(5)と、直線発生器(2)により発生され
る各画素の表示領域に対する内外判定を行ない、外部で
あると判定した場合に直線発生器(2)の動作を中断さ
せる内外判定部(6)と、内外判定部(6)からの外部
であることを示す内外判定結果に基づいてループ・カウ
ンタ(3)の内容とポインタ(5)の内容とを加算し、
次の太線発生のポインタ初期値として保持するポインタ
処理部(7)と、太線を構成する線分の本数に基づいて
初期設定され、直線発生が終了し、または中断する毎に
内容が減算されて直線発生を行なうべき残り回数を保持
する線幅カウンタ(8)とを有している。
<Embodiment 2> Fig. 6 is a block diagram showing an embodiment of a thick line generating apparatus according to the present invention, which includes a start / end point holding unit (1) for holding start / end points of a plurality of line segments constituting a thick line, and a start / end point. A straight line generator (2) for sequentially generating pixels on a line segment by performing an interpolation operation based on the starting and ending points given from the point holding unit (1), and a content every time the straight line generator (2) performs the interpolation operation A loop counter (3) for holding the remaining number of times for which interpolation calculation by the straight line generator (2) is to be performed by reducing the number by one, a line texture holding unit (4) for holding a line texture,
Each time the straight line generator (2) performs an interpolation operation, the content is reduced by one, and a pointer (5) for holding the readout position of the line texture, and a display area of each pixel generated by the straight line generator (2) And an inside / outside determination unit (6) for interrupting the operation of the straight line generator (2) when it is determined that the vehicle is outside, and an inside / outside determination result indicating the outside from the inside / outside determination unit (6). The contents of the loop counter (3) and the contents of the pointer (5) are added based on
The pointer processing unit (7) holds the pointer as the initial value of the next bold line, and is initialized based on the number of line segments constituting the bold line, and the content is subtracted every time the straight line generation ends or is interrupted. A line width counter (8) for holding the remaining number of times that a straight line is to be generated.

上記構成の太線発生装置の動作は次のとおりである。 The operation of the thick line generator having the above configuration is as follows.

太線を構成する複数の線分の始終点を始終点保持部
(1)に与え、太線を構成する線分の本数に基づいて定
まる初期値を線幅カウンタ(8)に与え、線分の長さに
対応する値をループ・カウンタ(3)に初期値として与
え、ポインタ(5)を初期値に設定することにより、太
線発生のための初期設定を終了する。
The start and end points of the plurality of line segments forming the thick line are given to the start and end point holding unit (1), and the initial value determined based on the number of the line segments forming the thick line is given to the line width counter (8). By giving a value corresponding to this to the loop counter (3) as an initial value and setting the pointer (5) to the initial value, the initial setting for generating a thick line is completed.

このようにして初期設定が終了した後は、直線発生器
(2)により線分上の画素を順次発生し、画素発生毎に
ループ・カウンタ(3)の値およびポインタ(5)の値
をディクリメントするとともに、発生画素の表示領域に
対する内外判定を行なう。そして、内外判定結果が線分
の終点まで内部であれば、直線発生が中断されることな
く線分の発生が行なわれるのであるから、各線分発生終
了時点におけるポインタ(5)の値のみをそのまま保持
し、始終点、線幅カウンタ(8)の値、ループ・カウン
タ(3)の値を次の太線に適合させて初期設定すること
により、ライン・テクスチャが揃った状態で次の太線を
発生できる。
After the initialization is completed in this way, the pixels on the line segment are sequentially generated by the straight line generator (2), and the value of the loop counter (3) and the value of the pointer (5) are de-selected every time a pixel is generated. At the same time, the inside and outside of the display area of the generated pixel are determined. Then, if the inside / outside determination result is within the end point of the line segment, the line segment is generated without interruption of the straight line generation. Therefore, only the value of the pointer (5) at the end of each line segment generation is used as it is. The next thick line is generated in a state where the line textures are aligned by holding and initializing the start and end points, the value of the line width counter (8), and the value of the loop counter (3) to the next thick line. it can.

逆に、途中の画素の内外判定結果が外部になった場合
には、以後の画素発生が不要であるから、直線発生器に
よる画素発生を中断させる。但し、中断時点におけるポ
インタ(5)の値をそのまま次の太線発生に当って使用
すれば従来例のような都合が生じるので、ループ・カウ
ンタ(3)の値とポインタ(5)の値とをポインタ処理
部(7)により加算し、次の太線発生開始時のポインタ
の値として保持する。したがって、太線を構成する線分
毎に画素発生の中断時点が異なっても、次の太線発生開
始時のポインタの値を互に等しくでき、次の太線を構成
する各線分のライン・テクスチャを揃えて太線の高品質
の表示を達成できる。
Conversely, when the result of the inside / outside determination of the middle pixel is outside, the subsequent pixel generation is unnecessary, and the pixel generation by the straight line generator is interrupted. However, if the value of the pointer (5) at the time of interruption is used as it is for the next generation of a thick line, a situation as in the conventional example occurs, so that the value of the loop counter (3) and the value of the pointer (5) are changed. The value is added by the pointer processing unit (7) and held as the value of the pointer at the start of the occurrence of the next thick line. Therefore, even if the interruption point of the pixel generation is different for each line segment constituting the thick line, the pointer values at the start of the next thick line generation can be made equal to each other, and the line texture of each line constituting the next thick line is aligned. To achieve high quality display of thick lines.

また、徐々に拡大処理、平行移動処理等を施すことに
より太線の一部が表示されなくなる場合、逆に縮小処理
を施すことにより太線の全範囲が表示されるようになる
場合にも、次の太線を発生する場合のポインタが所定置
に保持されるのであるから、ライン・テクスチャを初期
化する場合のような大幅なゆらぎが生じることはなく、
太線表示の品質を高く維持できる。
Also, when a part of the thick line is not displayed by gradually performing the enlargement processing, the parallel movement processing, or the like, or when the entire range of the thick line is displayed by performing the reduction processing, Since the pointer when a thick line is generated is held at a predetermined position, there is no significant fluctuation as in the case of initializing the line texture.
The quality of the thick line display can be kept high.

<発明の効果> 以上のように第1の発明は、次の太線のための複数本
の線分発生を行なうに当って、中断を生じることなく線
分発生が行なわれた場合に対応するライン・テクスチャ
上のポインタを得て、得られたポインタに基づいて次の
複数本の線分発生を行なうのであるから、次の太線を構
成する複数本の線分のライン・テクスチャを揃え、ライ
ン・テクスチャを有する太線の描画品質を高めることが
できるとともに、徐々に拡大処理を施し、または平行移
動処理を施すことにより太線の発生が中断されることに
なる場合にも、太線の発生が中断されない場合に対応す
るポインタに基づいて次の太線のライン・テクスチャを
得ることができるので、新たに中断が生じる瞬間等にお
けるライン・テクスチャのゆらぎを大幅に抑制でき、こ
の面からも高品質な太線の表示を達成できるという特有
の効果を奏する。
<Effect of the Invention> As described above, in the first invention, when a plurality of line segments are generated for the next thick line, the line corresponding to the case where the line segment is generated without interruption is generated. Since the pointer on the texture is obtained and the next plurality of line segments are generated based on the obtained pointer, the line textures of the plurality of lines constituting the next thick line are aligned and the line In the case where the drawing quality of a thick line having a texture can be improved and the occurrence of the thick line is not interrupted even when the enlargement processing or the parallel movement processing is performed to interrupt the occurrence of the thick line. Since the next thick line texture can be obtained based on the pointer corresponding to, the fluctuation of the line texture at the moment when a new interruption occurs, etc., can be greatly suppressed. Therefore, a unique effect that a high-quality thick line can be displayed can be achieved.

第2の発明も、次の太線のための複数本の線分発生を
行なうに当って、中断を生じることなく線分発生が行な
われた場合に対応するライン・テクスチャ上のポインタ
を得て、得られたポインタに基づいて次の複数本の線分
発生を行なうのであるから、次の太線を構成する複数本
の線分のライン・テクスチャを揃え、ライン・テクスチ
ャを有する太線の描画品質を高めることができるととも
に、徐々に拡大処理を施し、または平行移動処理を施す
ことにより太線の発生が中断されることになる場合に
も、太線の発生が中断されない場合に対応するポインタ
に基づいて次の太線のライン・テクスチャを得ることが
できるので、新たに中断が生じる瞬間等におけるライン
・テクスチャのゆらぎを大幅に抑制でき、この面からも
高品質な太線の表示を達成できるという特有の効果を奏
する。
In the second invention, in generating a plurality of line segments for the next thick line, a pointer on a line texture corresponding to a case where the line segment is generated without interruption is obtained, Since the next plurality of line segments are generated based on the obtained pointer, the line textures of the plurality of lines constituting the next thick line are aligned to improve the drawing quality of the thick line having the line texture. In addition to the case where the occurrence of the thick line is interrupted by performing the enlargement process or the parallel movement process gradually, based on the pointer corresponding to the case where the occurrence of the thick line is not interrupted, Since a thick line texture can be obtained, fluctuations of the line texture at the moment when a new interruption occurs can be significantly suppressed, and high quality thick lines can be displayed from this aspect as well. Achieve the specific effect that can be formed.

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

第1図はこの発明の太線発生方法の一実施例を示すフロ
ーチャート、 第2図はライン・テクスチャの一例を示す概略図、 第3図から第5図はこの発明の太線発生方法を説明する
概略図、 第6図はこの発明の太線発生装置の一実施例を示すブロ
ック図、 第7図から第9図は従来方法による不都合を説明する概
略図。 (2)……直線発生器、(3)……ループ・カウンタ、
(5)……ポインタ、(7)……ポインタ処理部
FIG. 1 is a flow chart showing an embodiment of a thick line generating method of the present invention, FIG. 2 is a schematic diagram showing an example of a line texture, and FIGS. 3 to 5 are schematic diagrams for explaining a thick line generating method of the present invention. FIG. 6 is a block diagram showing an embodiment of the thick line generating apparatus according to the present invention. FIGS. 7 to 9 are schematic diagrams for explaining the disadvantages of the conventional method. (2) ... linear generator, (3) ... loop counter,
(5) Pointer, (7) Pointer processing unit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】予め定められたライン・テクスチャに基づ
いて複数本の線分発生を行なう太線発生方法において、
各線分の発生が中断された場合に、中断を生じることな
く線分発生が行なわれた場合に対応するライン・テクス
チャ上のポインタを得、得られたポインタに基づいて次
の複数本の線分発生を行なうことを特徴とするライン・
テクスチャを有する太線発生方法。
1. A thick line generating method for generating a plurality of line segments based on a predetermined line texture,
When the generation of each line segment is interrupted, a pointer on the line texture corresponding to the case where the line segment is generated without interruption is obtained, and the next plurality of line segments are obtained based on the obtained pointer. A line characterized by generating
A method for generating a thick line having a texture.
【請求項2】予め定められたライン・テクスチャに基づ
いて直線発生手段(2)により複数本の線分発生を行な
う太線発生装置において、線分発生手段(2)による画
素発生動作と同期して線分終端までの発生予定画素数を
得る画素数計数手段(3)と、画素発生と同期してライ
ン・テクスチャ上のポインタを得るポインタ手段(5)
と、各線分の発生が中断された場合に、画素計数手段
(3)の内容およびポインタ手段(5)の内容に基づい
て、中断を生じることなく線分発生が行なわれた場合に
対応するライン・テクスチャ上のポインタを得て、次の
複数本の線分発生開始時のポインタとしてポインタ手段
(5)に供給するポインタ修正手段(7)とを含むこと
を特徴とするライン・テクスチャを有する太線発生装
置。
2. A thick line generating apparatus for generating a plurality of line segments by a straight line generating means based on a predetermined line texture in a thick line generating apparatus in synchronization with a pixel generating operation by the line generating means. Pixel number counting means (3) for obtaining the number of pixels to be generated up to the end of the line segment, and pointer means (5) for obtaining a pointer on the line texture in synchronization with pixel generation
When the generation of each line segment is interrupted, the line corresponding to the case where the line segment is generated without interruption based on the contents of the pixel counting means (3) and the contents of the pointer means (5). A bold line having a line texture characterized by including a pointer on a texture and a pointer correcting means (7) for supplying to the pointer means (5) as a pointer at the start of generation of the next plurality of line segments. Generator.
JP33740190A 1990-11-30 1990-11-30 Method and apparatus for generating thick line having line texture Expired - Fee Related JP3064410B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33740190A JP3064410B2 (en) 1990-11-30 1990-11-30 Method and apparatus for generating thick line having line texture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33740190A JP3064410B2 (en) 1990-11-30 1990-11-30 Method and apparatus for generating thick line having line texture

Publications (2)

Publication Number Publication Date
JPH04205481A JPH04205481A (en) 1992-07-27
JP3064410B2 true JP3064410B2 (en) 2000-07-12

Family

ID=18308285

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33740190A Expired - Fee Related JP3064410B2 (en) 1990-11-30 1990-11-30 Method and apparatus for generating thick line having line texture

Country Status (1)

Country Link
JP (1) JP3064410B2 (en)

Also Published As

Publication number Publication date
JPH04205481A (en) 1992-07-27

Similar Documents

Publication Publication Date Title
EP1056047A1 (en) Method and apparatus for antialiased imaging of graphical objects
US5666520A (en) Graphics display system including graphics processor having a register storing a series of vertex data relating to a polygonal line
US5664071A (en) Graphics plotting apparatus and method
JP3064410B2 (en) Method and apparatus for generating thick line having line texture
JP2634851B2 (en) Image processing device
US4484189A (en) Memoryless artificial horizon generator
US5986658A (en) Method and apparatus for raster computer graphics display of rotation invariant line styles
US6734870B1 (en) Line scan-conversion method
CN100373911C (en) Image processing apparatus, image processing method, and image processing program
US5838298A (en) Image processing apparatus and method for smoothing stairway-like portions of a contour line of an image
JP2536764Y2 (en) Image processing device
JP4387611B2 (en) Drawing apparatus and drawing method
JPH0520467A (en) Method and device for processing picture
JPH05298456A (en) Texture mapping system
JPS63283956A (en) Magnifying and reduction system of digital video image
JP3056112B2 (en) LCD display control method
JP3522211B2 (en) Image scaling method
JP3899977B2 (en) Drawing apparatus, method and program
JP2613653B2 (en) Image processing device
JPS63140381A (en) Video rate projection calculating circuit
JPH087123A (en) Method and device for processing three-dimensional image
JPH0887244A (en) Display device
JPH01302389A (en) Graphic display
JPH0777416B2 (en) Image processing device
JPH08123956A (en) Image processing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees