JPS63225882A - Clipping system for vector drawing having line width - Google Patents

Clipping system for vector drawing having line width

Info

Publication number
JPS63225882A
JPS63225882A JP5946887A JP5946887A JPS63225882A JP S63225882 A JPS63225882 A JP S63225882A JP 5946887 A JP5946887 A JP 5946887A JP 5946887 A JP5946887 A JP 5946887A JP S63225882 A JPS63225882 A JP S63225882A
Authority
JP
Japan
Prior art keywords
vector
line width
clipping
frame
designated
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
JP5946887A
Other languages
Japanese (ja)
Inventor
Mitsuko Fujita
藤田 充子
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5946887A priority Critical patent/JPS63225882A/en
Publication of JPS63225882A publication Critical patent/JPS63225882A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To prevent the deterioration in a quality such as a void in the clipping of a vector having a line width by erasing data outside a frame after a vector drawing irrespective of a clipping frame. CONSTITUTION:A vector drawing means 1 draws the vector of the designated line width in a picture memory 3 from a designated start point to a designated end point (or the designated quantity of the change of a coordinate) irrespective of the clipping frame. A clipping means 2 erases the data outside of the clipping frame designated from the data of the vector drawn in the picture memory 3. Thereby, the vector having the clipped line width is drawn and the quality deterioration in the vector drawing due to the conventional void, a double drawing is prevented.

Description

【発明の詳細な説明】 [概 要] ベクトル描画開始座標と、ベクトル描画終了座標若しく
は座標変化量をパラメタとして受け取りベクトルを描画
するベクトル描画回路において、線幅を有するベクトル
のクリッピングにおいて白抜は等の品質低下を起さぬよ
う、クリッピング枠とは関係なくベクトル描画した後枠
外のデータを消去するようにしたものである。
[Detailed Description of the Invention] [Summary] In a vector drawing circuit that receives a vector drawing start coordinate, a vector drawing end coordinate, or an amount of change in coordinates as parameters and draws a vector, the outline is equal when clipping a vector having a line width. In order to prevent quality deterioration, data outside the frame is erased after vector drawing is performed regardless of the clipping frame.

[産業上の利用分野コ 本発明は表示画像を生成する描画装置に係わり、特に線
幅を有するベクトル描画のクリッピングに関する。
[Industrial Field of Application] The present invention relates to a drawing device that generates a display image, and particularly relates to clipping of vector drawing having line width.

線幅を有するベクトルを、ある指定領域(クリッピング
枠)内のみ描画しようとするとき、白抜は等の品質低下
を起すことがあり、これが対策を要求される。
When attempting to draw a vector having a line width only within a specified area (clipping frame), quality deterioration such as white outlines may occur, and countermeasures are required for this.

[従来の技術] 表示画像を生成する描画装置においてはベクトルを描画
するためベクトル発生回路を備えている。
[Prior Art] A drawing device that generates a display image includes a vector generation circuit for drawing vectors.

ベクトル発生回路は、ベクトルを発生させるために与え
るパラメタに注目すると、大きく分けて次の2種類ある
Vector generation circuits can be roughly divided into the following two types, focusing on the parameters given to generate a vector.

(11開始アドレス(X+、Y+)と終点アドレス(X
2゜Y2)を与えてベクトルを発生させるもの(第3図
(a))。或いは、開始点(X+、Y+)と各成分の変
化量(ΔX、ΔY)を与えてベクトルを発生させるもの
。(第3図(b)) (2)開始点(X+、Y−と傾き(θ)と描画長(f)
を与えてベクトルを発生させるもの。(第3図(C)) ベクトル描画においては、長辺方向(第4図ではX方向
、以下、長辺方向をX方向として話を進める)に1単位
(ト′ット)変化するときに、短辺方向(第4図ではY
方向)がどれだけ変化するかによりどこに描画されるが
を判定しているので、か゛ ΔX/ΔY5或いはtanθという傾き辱重要な値とな
る。
(11 Start address (X+, Y+) and end address (X
2°Y2) to generate a vector (Figure 3(a)). Alternatively, a vector is generated by giving a starting point (X+, Y+) and the amount of change of each component (ΔX, ΔY). (Figure 3(b)) (2) Starting point (X+, Y-, slope (θ), and drawing length (f)
Something that generates a vector by giving . (Figure 3 (C)) In vector drawing, when the direction of the long side changes by one unit (tot) in the long side direction (in the X direction in Figure 4, hereinafter the long side direction will be referred to as the X direction), , short side direction (Y in Fig. 4)
Since the location to be drawn is determined based on how much the direction changes, the slope value of ΔX/ΔY5 or tan θ becomes an important value.

上記(2)の三角関数を使うシステムでは、計算を行う
にしても、テーブルとしてメモリ上に持つとしても高精
度ハードウェアでないと大きな誤差となるので意味がな
い。
In a system using trigonometric functions as described in (2) above, even if calculations are performed, even if the table is stored in memory, it is meaningless unless high-precision hardware is used, as large errors will result.

従って、比較的高価格の装置でしか使用されない。Therefore, it is only used in relatively expensive equipment.

それに対して、(1)のΔX、ΔYを与える方法は、高
精度のハードウェアを持たなくとも実現できるので、比
較的低価格の装置で一般的によく使われている。
On the other hand, the method (1) for providing ΔX and ΔY can be implemented without requiring high-precision hardware, and is therefore commonly used in relatively low-cost devices.

[発明が解決しようとする問題点コ 上記のような与えるパラメタの違いによる描画結果の違
いは、第5図に示すようなベクトルを描画する限りにお
いては認められない。
[Problems to be Solved by the Invention] Differences in drawing results due to differences in the parameters given as described above cannot be recognized as long as vectors as shown in FIG. 5 are drawn.

即ち、線幅を有するベクトルでも、傾きと開始X座標が
同一ならば同じトレースを行うのであるから、白抜は等
は起らない。
That is, even if a vector has a line width, if the slope and starting X coordinate are the same, the same tracing will be performed, so no blank spots will occur.

しかし、ベクトルの途中でクリッピング(ある領域の内
側のみを描画すること)の必要が生じた場合には、二つ
の方式の差は顕著に現れる。
However, when it becomes necessary to clip (draw only the inside of a certain area) in the middle of a vector, the difference between the two methods becomes noticeable.

即ち、ΔX、ΔYをパラメタとする方式の場合、第6図
に示すように、クリッピング線上(図のb)のどこかの
点を終点として計算を行うが、b上の点の個数と本来数
るべきa線上のドツトの個数とは一般に一致しないので
、終点を選ぶ時点で誤差を生じ、これによって、ライン
によりΔX/ΔYは異なる値を持つこととなる。
In other words, in the case of the method using ΔX and ΔY as parameters, as shown in Figure 6, the calculation is performed with some point on the clipping line (b in the diagram) as the end point, but the number of points on b and the original number Since the number of dots on the line a generally does not match, an error occurs when selecting the end point, and as a result, ΔX/ΔY has different values depending on the line.

従って、ラインにより同じトレースを描がず、白抜け、
二重描画が起り、ベクトル描画の品質が低くなる。
Therefore, lines do not draw the same trace, white spots,
Double drawing occurs and the quality of vector drawings becomes poor.

ベクトル描画時に、現在クリッピング枠の内か外かを判
定する方式もあるが、1点描画しようとするごとに判定
を行わなばならないので、特に低価格のシステムでは処
理速度が遅くなる。
There is a method that determines whether the vector is currently inside or outside the clipping frame when drawing, but this has to be determined each time one point is drawn, which slows down the processing speed, especially in low-cost systems.

本発明は、このような従来の問題点を解消したベクトル
描画のクリッピング方式を提供しようとするものである
The present invention aims to provide a clipping method for vector drawing that solves these conventional problems.

[問題点を解決するための手段] 第1図は、本発明のベクトル描画のクリピング方式の原
理ブロック図を示す。
[Means for Solving the Problems] FIG. 1 shows a block diagram of the principle of the vector drawing clipping method of the present invention.

図において、1はベクトル描画手段であり、クリッピン
グ枠とは関係なく指定された始点から指定された終点(
若しくは指定された座標変化量)まで、指定された線幅
のベクトルを画像メモリ3されたベクトルのデータから
指定されたクリッピング枠外のデータを消去する。
In the figure, 1 is a vector drawing means, which is drawn from a specified starting point to a specified ending point (
or a specified coordinate change amount), data outside the specified clipping frame is erased from the vector data stored in the image memory 3 with the specified line width.

3は画像メモリであり、画像データを格納する。3 is an image memory that stores image data.

[作用] 上記の構成をとることにより、第1図の右側に示すよう
に、クリッピングされた線幅を有するベクトルが描画さ
れ、従来のように白抜け、二重描画によるベクトル描画
の品質低下は起らない。
[Operation] By adopting the above configuration, vectors with clipped line widths are drawn as shown on the right side of Figure 1, and the quality of vector drawing due to white spots and double drawings does not deteriorate as in the past. It doesn't happen.

[実施例] 以下第2図に示す実施例により、本発明をさらに具体的
に説明する。
[Example] The present invention will be described in more detail below with reference to an example shown in FIG.

ベクトル描画を行うに当っては、まずレジスタ11、1
2.13.14にそれぞれベクトル描画開始X方向アド
レスXI、同じくY方向アドレスYl、X方向変化量Δ
X1およびY方向変化1ΔYをセットし、線幅レジスタ
16に線幅Wをセントし、クリッピング枠データをクリ
ッピング枠外消去回路20にセントする。
To perform vector drawing, first registers 11 and 1
2.13.14, vector drawing start X direction address XI, same Y direction address Yl, X direction change amount Δ
The X1 and Y direction changes 1ΔY are set, the line width W is sent to the line width register 16, and the clipping frame data is sent to the clipping frame outside erasing circuit 20.

ベクトル描画回路15では、開始点アドレスレジスタ1
1.12、ならびに変化量レジスタ13.14にセント
されたデータX l、 Y l、ΔX、ΔYをパラメタ
として、画像メモリ30にベクトルを描画する。
In the vector drawing circuit 15, the starting point address register 1
1.12 and data X l, Y l, ΔX, and ΔY stored in the change amount register 13.14 as parameters, a vector is drawn in the image memory 30.

ベクトル描画回路15はベクトルの描画が終了したとき
は、線幅終了判定回路17に描画終了を通知線幅レジス
タ16にセットされた線幅Wと自己の持つ線幅描画カウ
ントの値を比較し未だ達していないときは、線幅描画カ
ウントを一つ増し、短辺方向座標カウントア・ノブ信号
を短辺方向(本例では、Y方向とする)の開始アドレス
レジスタ12に送る。
When vector drawing is completed, the vector drawing circuit 15 notifies the line width end determination circuit 17 of the completion of drawing, and compares the line width W set in the line width register 16 with the value of its own line width drawing count. If the line width drawing count has not been reached, the line width drawing count is incremented by one, and a short side direction coordinate count-a-knob signal is sent to the start address register 12 in the short side direction (in this example, the Y direction).

開始アドレスレジスタ12では、開始アドレスに1単位
を加えて新しい開始アドレスとし、ベクトル描画回路1
5はこの開始アドレスによりベクトルを描画する。
In the start address register 12, one unit is added to the start address to obtain a new start address, and the vector drawing circuit 1
5 draws a vector using this start address.

この動作を繰り返し、線幅Wとなるまで行い、終了すれ
ばクリッピング枠外消去回路2oに通知する。
This operation is repeated until the line width reaches W, and when it is completed, the clipping frame outside erasing circuit 2o is notified.

クリピング枠外消去回路20は、ベクトル描画終了通知
を受け、画像メモリ30中のベクトル画像データから、
セットされたクリッピング枠の外のデータを消去し、C
RTディスプレイ40に表示させる。
The clipping outside frame erasing circuit 20 receives the vector drawing completion notification and extracts the vector image data from the image memory 30 from the vector image data.
Erase the data outside the set clipping frame and
It is displayed on the RT display 40.

[発明の効果] 以上説明のように本発明によれば、線幅を有するベクト
ル描画のクリッピングにおいて、ベクトル描画は通常通
り行うので傾きの誤差による白抜は等は起らず、また1
点描画ごとの判定がないので、低価格のハードウェア上
でも高品質で高速な描画ができるという効果がある。
[Effects of the Invention] As explained above, according to the present invention, when clipping a vector drawing having a line width, vector drawing is performed as usual, so white spots etc. due to tilt errors do not occur, and 1.
Since there is no judgment for each dot drawing, the effect is that high-quality and high-speed drawing can be performed even on low-cost hardware.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例の構成を示すブロック図、 第3図はベクトル発生方式を説明する図、第4図はベク
トル描画を説明する図、 第5図は線幅を有するベクトル描画を示す図、第6図は
線幅を有するベクトル描画のクリッピングを示す図であ
る。 図面において、 3.30は画像メモリ、 11、12は開始アドレスレジスタ、 13、14は変化量レジスタ、 15はベクトル描画回路、 16は線幅レジスタ、 17は線幅終了判定回路、 20はクリッピング枠外消去回路、 40はCRTディスプレイ、 をそれぞれ示す。 オ尤明9−ズ紳矧屏へと示1ズDリク1図/152図 aが茗才1ずづ・XoりFノL司t J3f’2 昶U苗を偽すりハ′り’ptLイ蔗画C12図 !i画をガ、すy 〕
Figure 1 is a block diagram of the principle of the present invention, Figure 2 is a block diagram showing the configuration of an embodiment of the present invention, Figure 3 is a diagram explaining the vector generation method, and Figure 4 is a diagram explaining vector drawing. , FIG. 5 is a diagram showing vector drawing with line width, and FIG. 6 is a diagram showing clipping of vector drawing with line width. In the drawing, 3.30 is an image memory, 11 and 12 are start address registers, 13 and 14 are change amount registers, 15 is a vector drawing circuit, 16 is a line width register, 17 is a line width end judgment circuit, and 20 is outside the clipping frame. 40 shows an erasing circuit, and 40 shows a CRT display. O Yu Ming 9-z showed 1 Zu D Riku 1 figure/152 figure a to Meisai 1 Zuzu, Issai painting C12 drawing! I want to see a picture]

Claims (1)

【特許請求の範囲】 ベクトル描画開始座標と、ベクトル描画終了座標若しく
は座標変化量をパラメタとして受け取り、画像メモリ(
3)に、指定された線幅のベクトルを描画するベクトル
描画手段(1)と、 画像メモリ(3)に描画されたベクトルのデータから指
定されたクリッピング枠外のデータを消去するクリッピ
ング手段(2)とを備え、 前記指定クリッピング枠とは関係なくベクトルを描画を
行った後、該指定クリッピング枠外のデータを消去する
よう構成したことを特徴とする線幅を有するベクトル描
画のクリッピング方式。
[Claims] Receiving vector drawing start coordinates, vector drawing end coordinates or coordinate change amount as parameters, and storing the image memory (
3), a vector drawing means (1) that draws a vector with a specified line width, and a clipping means (2) that erases data outside the specified clipping frame from the vector data drawn in the image memory (3). A clipping method for drawing a vector having a line width, comprising: after drawing a vector regardless of the specified clipping frame, data outside the specified clipping frame is erased.
JP5946887A 1987-03-13 1987-03-13 Clipping system for vector drawing having line width Pending JPS63225882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5946887A JPS63225882A (en) 1987-03-13 1987-03-13 Clipping system for vector drawing having line width

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5946887A JPS63225882A (en) 1987-03-13 1987-03-13 Clipping system for vector drawing having line width

Publications (1)

Publication Number Publication Date
JPS63225882A true JPS63225882A (en) 1988-09-20

Family

ID=13114170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5946887A Pending JPS63225882A (en) 1987-03-13 1987-03-13 Clipping system for vector drawing having line width

Country Status (1)

Country Link
JP (1) JPS63225882A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5204945A (en) * 1989-11-08 1993-04-20 Hitachi, Ltd. Method of displaying thick line and information unit and display system used therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5204945A (en) * 1989-11-08 1993-04-20 Hitachi, Ltd. Method of displaying thick line and information unit and display system used therefor

Similar Documents

Publication Publication Date Title
US3936664A (en) Method and apparatus for generating character patterns
US5291582A (en) Apparatus for performing direct memory access with stride
US4951232A (en) Method for updating pipelined, single port Z-buffer by segments on a scan line
US5195177A (en) Clipping processor
US4747042A (en) Display control system
JPS63225882A (en) Clipping system for vector drawing having line width
US3665410A (en) Computer graphics system with edge violation detection
US4987553A (en) Straight line drawing control apparatus
EP0357076B1 (en) Inclined rectangular pattern generating system
JP2606176B2 (en) Graphic processing unit
JPH0588838A (en) Multi window display device
JPS621568A (en) Apparatus for generating rule line
JPS6116347A (en) Memory scanner
JP2000298729A (en) Two-dimensional image generation device
JPH09198021A (en) Display controller
JP2627112B2 (en) Vector generator
JP3043786B2 (en) Drawing circuit
JPH0721395A (en) Address generation device
JPH01175087A (en) Image display device
JPS60193037A (en) Straight line drawing system
JPH0378794A (en) Outline font processor
JPS6042758A (en) Apparatus for composing original picture of printed board
JPH08263048A (en) Graphics control circuit
JPH04137188A (en) Generating circuit for address in polygon
JPS62139085A (en) Picture processor