JPH0266684A - Information processor - Google Patents

Information processor

Info

Publication number
JPH0266684A
JPH0266684A JP21728988A JP21728988A JPH0266684A JP H0266684 A JPH0266684 A JP H0266684A JP 21728988 A JP21728988 A JP 21728988A JP 21728988 A JP21728988 A JP 21728988A JP H0266684 A JPH0266684 A JP H0266684A
Authority
JP
Japan
Prior art keywords
register
coordinate
line
straight line
information
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
JP21728988A
Other languages
Japanese (ja)
Other versions
JP2621410B2 (en
Inventor
Kazuhiro Kubota
和弘 窪田
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63217289A priority Critical patent/JP2621410B2/en
Priority to DE68923745T priority patent/DE68923745T2/en
Priority to EP89116145A priority patent/EP0357076B1/en
Priority to US07/400,663 priority patent/US5093905A/en
Publication of JPH0266684A publication Critical patent/JPH0266684A/en
Application granted granted Critical
Publication of JP2621410B2 publication Critical patent/JP2621410B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To improve the picture drawing quality by perceiving the generation of a 'dot missing part' generated at the time picture drawing executed in accordance with a minute variation portion in the X and the Y directions, and bringing the 'dot missing part' by information which a neighbourhood dot has. CONSTITUTION:The information processor is provided with a image memory 7 for executing picture drawing, a register 8 for storing an X coordinate XD, a register 9 for storing a Y coordinate YD, a register 10 for storing dot informa tion to be written in a memory, a register 11 for storing length of a straight line DH, a register 12 for storing width of the straight line DV, a register 13 for storing a minute variation portion DELTAX in the X direction corresponding to an angle theta, a register 14 for storing a minute variation portion DELTAY in the Y direction corresponding to the angle theta, a saving use work register XD' 15, saving use work register YD' 16, and a saving use work register DH' 17. Accord ing to such constitution, it is perceived that a dot missing part is generated by considering the direction of a direction vector and a normal vector, and when it is perceived, the dot missing part can be filled up by bringing a line of a pattern to picture drawing.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ディジタル情報処理装置に関するものであり
、更に詳述するならば、2次元X−Y平面上でのX軸か
らの傾きがθで且つ任意の太さを持つ直線の描画処理を
、記憶空間の記憶情報書き換えによって実現するディジ
タル情報処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a digital information processing device, and more specifically, the present invention relates to a digital information processing device. The present invention relates to a digital information processing device that realizes a process of drawing a straight line having an arbitrary thickness by rewriting information stored in a storage space.

従来の技術 従来の技術について図面を参照しながら説明する。一般
に、グラフィックデイスプレィ等に直線を表示するには
、画面の単位ドツトと1対1に対応している単位記憶素
子で構成された画像メモリ上で処理を行う。その処理と
して、描画する直線の方向のベクトルに従って、単位ド
ツト幅のラインを描画するための方向直線発生器を使用
する。
BACKGROUND ART A conventional technique will be described with reference to the drawings. Generally, in order to display a straight line on a graphic display or the like, processing is performed on an image memory composed of unit storage elements in one-to-one correspondence with unit dots on the screen. As a process, a directional line generator is used to draw a line of unit dot width according to a vector in the direction of the line to be drawn.

任意の太さ(ドツト幅)を持った直線にするためには、
上述の単位ドツト幅のラインを複数本描画する。その際
に複数本描画する各ラインの始点の集合であるところの
1ラインを描画するための法線直線発生器が必要になる
。そのような方向直線発生器と法線直線発生器とを用い
て座標を求め、任意の太さ(ドツト幅)を持った直線を
描画していく方式がある。
To make a straight line with an arbitrary thickness (dot width),
A plurality of lines with the unit dot width described above are drawn. In this case, a normal line generator is required to draw one line, which is a set of starting points of each line to be drawn. There is a method in which coordinates are determined using such a direction line generator and a normal line generator, and a line having an arbitrary thickness (dot width) is drawn.

第2図から第4図を参照して説明する。第2図から第4
図において、ひとつひとつの丸はデイスプレィ画面上の
ドツトを表している。通常、直線発生器により発生され
るラインのパターンは、第2図のように、X軸に対する
傾斜が45度未満のときは、X方向が常に1ずつ変化し
、その時にY方向は無変化、もしくは1だけ変化するよ
うになっている。また、第3図のように、傾斜が45度
以上のときは、Y方向が常に1ずつ変化し、その時にX
方向は無変化、もしくは1だけ変化するようになってい
る。
This will be explained with reference to FIGS. 2 to 4. Figures 2 to 4
In the figure, each circle represents a dot on the display screen. Normally, the line pattern generated by a straight line generator is as shown in Figure 2, when the inclination to the X axis is less than 45 degrees, the X direction always changes by 1, while the Y direction remains unchanged. Or it is set to change by 1. Also, as shown in Figure 3, when the inclination is 45 degrees or more, the Y direction always changes by 1, and at that time
The direction remains unchanged or changes by 1.

このような直線発生器を2個使って、第4図のような、
X軸に対する傾斜がθで、太さ(ドツト幅)が5ドツト
である直線を描画するには、通常法のようなステップを
踏む。
Using two such linear generators, as shown in Figure 4,
To draw a straight line with an inclination of θ to the X axis and a thickness (dot width) of 5 dots, steps similar to the normal method are taken.

まず、第4図の座標(XD、 YD)から始まる第−行
めのラインA1、B1、C1、・・・・・の座標を、方
向直線発生器を使って描画する。同様に、第4図の第2
行めライン、A2、B2、C2、・・・・・の座標も、
方向直線発生器を使って描画するのであるが、その際、
始点となるA2を描画するための座標は上述の法線直線
発生器で生成される。
First, the coordinates of the -th line A1, B1, C1, . . . starting from the coordinates (XD, YD) in FIG. 4 are drawn using a directional line generator. Similarly, the second
The coordinates of the line A2, B2, C2, etc.
It is drawn using a direction line generator, but at that time,
The coordinates for drawing the starting point A2 are generated by the normal line generator described above.

この法線直線発生器により、第4図の第2行め以降の各
ラインの始点の集合であるところの1ライン、A2、A
3、A4、・・・・・が生成され、さらにこれらを始点
とした各ラインの座標が、方向直線発生器により生成さ
れる。
With this normal line generator, one line, A2, A
3, A4, . . . are generated, and the coordinates of each line starting from these are generated by a direction line generator.

以上の方法により、第4図のように、X軸に対する傾斜
がθで、大さくドツト幅)が5ドツトである直線を、角
度θに相当する、X1Y方向の微小変化分ΔX1ΔY(
ΔX/ΔY= tanθ)に従って描画できる。
By the above method, as shown in Fig. 4, a straight line whose inclination with respect to the
Drawing can be performed according to ΔX/ΔY=tanθ).

発明が解決しようとする課題 上述した従来の処理装置では、処理を行った際に、第4
図の黒丸の箇所のような描画されない部分が発生するた
め、そこだけ描画前の情報が残ってしまう。つまり描画
領域内に「ドア)欠如部」が発−生し、人間の目で見た
場合、不自然さを感じてしまうという欠点がある。
Problems to be Solved by the Invention In the conventional processing apparatus described above, when processing is performed, the fourth
Since there are parts that are not drawn, such as the black circles in the figure, the information before drawing remains only in those parts. In other words, a ``door-missing portion'' occurs within the drawing area, and when viewed with the human eye, it has the disadvantage of feeling unnatural.

そこで、本発明は、上記した問題を解消する情報処理装
置を提供せんとするものである。
Therefore, the present invention aims to provide an information processing device that solves the above-mentioned problems.

すなわち、本発明は、太い直線などを描画する際、ドツ
ト欠如部をなく描画することができる情報処理装置を提
供せんとするものである。
That is, it is an object of the present invention to provide an information processing apparatus that can draw thick straight lines without missing dots.

課題を解決するための手段 本発明によれば、量子化された2次元X−Y平面中に存
在する座標点と、記憶内容の書きこみ及び読み出しが可
能な記憶空間中に存在する単位記憶素子とが1対1対応
している構成の記憶装置と、上記記憶装置に対して書き
こみ及び読み出しを行うためのアドレスを、上記2次元
X−Y平面上の座標値から算出し、上記記憶装置に対し
て書きこみ及び読み出しを行う描画装置とを備え、上記
2次元X−Y平面上に、X軸からの傾きがθである、任
意の太さを持った直線を描画する処理を、上記記憶空間
の記憶情報書き換えによって実現する情報処理装置は、 上記θに相当する、X、Y方向の各微小変化分゛ΔX、
ΔYに従って、上記記憶装置情報を書き換えてゆ(過程
で、各方向の座標変化分を算出し、X、Yの増減信号を
それぞれ出力する方向直線発生器および線直流発生器と
、 前記法線直線発生器を使って、現在情報書き換えを施し
ている上記単位記憶素子に対応する、座標点が属してい
る直線の始点をもとに、次に書き換えを施す予定の直線
の始点を計算し、両始点間の座標変化分を算出した際、
X方向とY方向の両方の座標が変化し、かつ、前記方向
直線発生器を使って、現在情報書き換えを施している上
記単位記憶素子に対応する、座標点をもとに、次に書き
換えを施す予定の座標点を計算し、両座標点間の座標変
化分を算出した際、X方向とY方向の両方の座標が変化
した時に、上記2次元X−Y平面上の、X方向だけもし
くはY方向だけ変化した座標点に対する単位記憶素子の
記憶情報をも、現在書き換えを施している単位記憶素子
の記憶情報と同じ情報で、書き換えるよう指示を与える
ドツト発生器とを具備する。
Means for Solving the Problems According to the present invention, coordinate points existing in a quantized two-dimensional X-Y plane and unit storage elements existing in a storage space in which memory contents can be written and read. and a storage device having a one-to-one correspondence, and an address for writing to and reading from the storage device is calculated from the coordinate values on the two-dimensional X-Y plane, and and a drawing device that writes to and reads from the 2-dimensional The information processing device realized by rewriting the stored information in the storage space has the following functions: minute changes in the X and Y directions corresponding to the above θ, ΔX,
The above storage device information is rewritten according to ΔY (in the process, the coordinate changes in each direction are calculated, and a direction straight line generator and a line direct current generator that output X and Y increase/decrease signals respectively, and the normal straight line Using a generator, calculate the starting point of the straight line to be rewritten next based on the starting point of the straight line to which the coordinate point belongs, which corresponds to the unit storage element whose information is currently being rewritten, and When calculating the coordinate change between the starting points,
The next rewrite is performed based on the coordinate point corresponding to the unit storage element whose coordinates in both the X direction and the Y direction have changed and whose information is currently being rewritten using the direction line generator. When calculating the coordinate points to be applied and the coordinate change between both coordinate points, when the coordinates in both the X direction and the Y direction change, only the X direction or A dot generator is provided which gives an instruction to rewrite the storage information of the unit storage element for the coordinate point changed in the Y direction with the same information as the storage information of the unit storage element currently being rewritten.

作用 上述した構成により、X軸に対する傾斜がθで、任意の
大さくドツト幅)を持った直線を、角度θに相当する、
X、Y方向の微小変化分ΔX、ΔY(ΔX/ΔY=ta
nθ)に従って描画する際に生じる「ドツト欠如部」の
発生を察知し、近傍のドツトが持っている情報により「
ドツト欠如部」を描画することにより描画領域内に「ド
ツト欠如部」を発生させない。従って、描画品質を向上
させることができる。
Operation With the above-mentioned configuration, a straight line with an inclination of θ to the X axis and an arbitrarily large dot width can be drawn at an angle of θ,
Minute changes in the X and Y directions ΔX, ΔY (ΔX/ΔY=ta
It detects the occurrence of "missing dots" that occur when drawing according to nθ), and uses the information held by nearby dots to
By drawing "missing dots", "missing dots" are prevented from occurring within the drawing area. Therefore, drawing quality can be improved.

実施例 本発明について図面を参照して説明する。Example The present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例における主要部の構成要素
を示すブロック図である。
FIG. 1 is a block diagram showing main components in an embodiment of the present invention.

図示の情報処理装置は、後述の各レジスタや直線発生器
等の制御をするための処理装置と、描画する長方形(太
い直線)の方向ベクトルに従って、単位ドツト幅のライ
ンを描画するための座標を発生するための方向直線発生
器2と、単位ドツト幅のラインを複数本描画する際に各
ラインの始点の集合であるところの1ラインを描画する
ための座標を発生するための法線直線発生器3と、各直
線発生器からの増減信号に従ってレジスタの値を増減す
る加減算器4とを具備している。更に、情報処理装置は
、方向直線発生器2で発生した座標が、直前の座標に対
しXとYの両方が変化し、かつ法線直線発生器3で発生
した座標が、直前の座標に対し、XとYの両方が変化し
た時に、X方向だけもしくはY方向だけ変化した位置に
も描画をするよう指示を与えるドツト発生器5と、処理
装置1やドツト発生器5からの出力に従い、後述する各
レジスタ8.9に記憶された、X、Y8座標値に対応す
るメモリ上のドツトの書き込みを行う描画装置6とを具
備している。
The information processing device shown in the figure includes a processing device for controlling each register, a line generator, etc., which will be described later, and a processing device that calculates coordinates for drawing a line of unit dot width according to the direction vector of a rectangle (thick straight line) to be drawn. A direction line generator 2 for generating a line, and a normal line generator for generating coordinates for drawing one line, which is a set of starting points of each line when drawing multiple lines of unit dot width. 3, and an adder/subtracter 4 that increases or decreases the value of the register according to the increase/decrease signal from each linear generator. Furthermore, the information processing device is configured such that the coordinates generated by the direction line generator 2 change in both X and Y with respect to the immediately preceding coordinates, and the coordinates generated by the normal line generator 3 change relative to the immediately preceding coordinates. , when both X and Y change, the dot generator 5 instructs to draw at a position where only the X direction or only the Y direction changes, and according to outputs from the processing device 1 and the dot generator 5, as described later. The drawing device 6 writes dots on the memory corresponding to the X and Y8 coordinate values stored in the respective registers 8 and 9.

また、情報処理装置は、描画を行う画像メモリ7と、X
座標、XDを記憶するレジスタ8と、Y座標1、YDを
記憶するレジスタ9と、メモリへ書き込むためのドツト
情報を記憶するレジスタ10と、直線の長さ、DHを記
憶するレジスタ11と、直線の幅、DVを記憶するレジ
スタ12と、角度θに相当する、X方向の微小変化分Δ
Xを記憶するレジスタ13と、角度θに相当する、Y方
向の微小変化分ΔYを記憶するレジスタ14と、保存用
ワークレジスタXD’15と、保存用ワークレジスタY
D″16と、保存用ワークレジスタDH’ 17とを具
備している。
The information processing device also includes an image memory 7 that performs drawing, and
A register 8 that stores the coordinates, XD, a register 9 that stores the Y coordinate 1, YD, a register 10 that stores dot information for writing to the memory, a register 11 that stores the length of the line, DH, and a register 11 that stores the length of the line, DH. A register 12 that stores the width of DV, and a minute change Δ in the X direction corresponding to the angle
A register 13 for storing X, a register 14 for storing minute change ΔY in the Y direction corresponding to angle θ, a storage work register XD'15, and a storage work register Y
D''16 and a storage work register DH'17.

第5図から第7図は、本発明の一実施例における、具体
的な描画動作を説明するための描画側図である。ひとつ
ひとつの丸はデイスプレィ画面上のドツトを表している
5 to 7 are drawing side views for explaining specific drawing operations in one embodiment of the present invention. Each circle represents a dot on the display screen.

第5図は、直線発生器と本発明のドツト発生器を使って
画面上に発生させた、水平方向に対する傾斜が45°未
滴のラインを図解し、第6図は、同様に発生させた、傾
斜が45°以上のラインを図解し、第7図は、第5図及
び第6図のラインのパターンを用いて長さ5ドツト、幅
5ドツト、X軸に対する角度θの直線の描画例を図解し
た図である。
Figure 5 illustrates a line with an inclination of 45° to the horizontal direction generated on the screen using a straight line generator and the dot generator of the present invention, and Figure 6 illustrates a line generated in the same way. , illustrates a line with an inclination of 45° or more, and FIG. 7 is an example of drawing a straight line with a length of 5 dots, a width of 5 dots, and an angle θ with respect to the X axis using the line patterns of FIGS. 5 and 6. This is a diagram illustrating.

また、第7図中(11) (XD、 YD) It、A
1部分のドツトの座標を表し、θは直線の方向ベクトル
とX軸とのなす角であり、ΔX、ΔYはθに相当する、
X、Y方向の微小変化分(ΔX/ΔY=tanθ)であ
る。さらに、第5図、第6図、第7図中のαは直線の方
向ベクトル、第7図中のβは直線の法線ベクトルを表す
Also, (11) (XD, YD) It, A in Figure 7
Represents the coordinates of one part of the dot, θ is the angle between the direction vector of the straight line and the X axis, and ΔX and ΔY correspond to θ.
This is a minute change in the X and Y directions (ΔX/ΔY=tanθ). Furthermore, α in FIGS. 5, 6, and 7 represents the direction vector of the straight line, and β in FIG. 7 represents the normal vector of the straight line.

次に、本発明の一実施例における動作について、上記の
各図面を参照して説明する。まず、回転角θが0°以上
45°未滴のときを考える。ドツト欠如部が「方向直線
発生器を使って描画するラインの方向ベクトルに対して
右側にあるか左側にあるか」によって、描画するライン
の形態が異なる。
Next, the operation of one embodiment of the present invention will be described with reference to the above-mentioned drawings. First, let us consider the case where the rotation angle θ is 0° or more and 45° without a drop. The shape of the drawn line differs depending on whether the missing dot is on the right or left side of the direction vector of the line drawn using the direction line generator.

第5図中の2本のラインはこの形態の違いを表したもの
であり、図中の上のラインはドツト欠如部が方向ベクト
ルの向きに対して左側にある場合を示し、また下のライ
ンはドツト欠如部が方向ベクトルの向きに対して右側に
ある場合を示している。
The two lines in Figure 5 represent this difference in form; the upper line in the figure indicates the case where the missing dot is on the left side with respect to the direction vector, and the lower line shows the case where the missing dot is on the right side with respect to the direction vector.

どちらの形態で描画するかは、法線直線発生器3を使っ
て発生するラインの向き(法線ベクトル)で決まる。法
線ベクトルの向きが方向ベクトルの向きに対して左側を
向いている場合、ドツト欠如部も方向ベクトルに対して
左側に生じるので、描画すべきラインは第5図中の上の
ようになる。逆に、法線ベクトルの向きが方向ベクトル
の向きに対して右側を向いている場合、ドツト欠如部も
方向ベクトルに対して右側に生じるので描画すべきライ
ンは第5図中の下のようになる。
Which form to draw is determined by the direction (normal vector) of the line generated using the normal line generator 3. If the direction of the normal vector is to the left of the direction vector, the missing dot will also occur to the left of the direction vector, so the line to be drawn will be as shown at the top in FIG. Conversely, if the direction of the normal vector is on the right side of the direction vector, the missing dot will also appear on the right side of the direction vector, so the line to be drawn will be as shown below in Figure 5. Become.

以上のように、従来は第2図に示すパターンのようにラ
インを描画していたが、方向ベクトルと法線ベクトルの
向きを考慮してドツト欠如部ができることを察知し、察
知できた時には第5図のパターンのラインを描画するこ
とによって、ドツト欠如部を埋めることができる。
As mentioned above, conventionally, lines were drawn as shown in the pattern shown in Figure 2, but by taking into account the orientation of the direction vector and the normal vector, it is possible to detect the formation of missing dots. By drawing lines in the pattern shown in Figure 5, the missing dots can be filled in.

次に、回転角θが45°以上90°未満のときであるが
、第5図のかわりに第6図で同様に考えることができる
。90°以上のときでも方向ベクトルの向き、及び法線
ベクトルの向きが変化することを除けば、同様に考える
ことができる。
Next, when the rotation angle θ is 45° or more and less than 90°, the same consideration can be given using FIG. 6 instead of FIG. 5. It can be considered in the same way, except that the direction vector and the normal vector change even when the angle is 90° or more.

第8図は、本発明の一実施例における、具体的な描画動
作を説明するためのフローチャートである。以下、第7
図の点(XD、YD)を描画開始点として、長さDH,
幅DVSX軸との角度θなる直線を描画していく動作を
、第8図のフローチャートに従って具体的に説明する。
FIG. 8 is a flowchart for explaining a specific drawing operation in one embodiment of the present invention. Below, the seventh
With the point (XD, YD) in the figure as the drawing start point, the length DH,
The operation of drawing a straight line having an angle θ with the width DVSX axis will be specifically explained according to the flowchart of FIG.

あらかじめ、方向直線発生器2と法線直線発生器3は、
ΔXレジスタ13及び△Yレジスタ14に設定された、
角度θに相当するX、Y方向の微小変化分ΔX、ΔYに
従って、各方向の座標変化分を算出し、座標を発生する
ように初期化されているものとする。
In advance, the direction straight line generator 2 and the normal straight line generator 3 are
Set in ΔX register 13 and ΔY register 14,
It is assumed that coordinate changes in each direction are calculated and initialized to generate coordinates according to minute changes ΔX and ΔY in the X and Y directions corresponding to the angle θ.

更に、XDレジスタ8、YDレジスタ9、DHレジスタ
11及びDVレジスタ12も処理装置1の初期化処理に
よる初期値が入っているものとする。
Furthermore, it is assumed that the XD register 8, YD register 9, DH register 11, and DV register 12 also contain initial values obtained by the initialization process of the processing device 1.

くステップ1〉 XDレジスタ8、YDレジスタ9、DHレジスタ11の
各位をXD’  レジスタ15、YD’  レジスタ1
6、DH’  レジスタ17に保存する。〈ステップ2
〉χD′ レジスタ15、YD’  レジスタ16の内
容をもとに法線直線発生器3を使って、(Al、Bl。
Step 1> Set each part of XD register 8, YD register 9, and DH register 11 to XD' register 15, YD' register 1
6. Save in DH' register 17. <Step 2
〉Using the normal line generator 3 based on the contents of the χD' register 15 and the YD' register 16, (Al, Bl.

C1,Di、・・・・・)なる単位ドツト幅のラインが
描画し終った後に描画するべきライン(A2゜B2.C
2,D2.・・・・・)の始点(第7図中のA2)(7
)座標を求め、XD’レジスタ15、YD’レジスタ1
6に保存しておく。その際にXD’  レジスタ15、
YD’  レジスタ16の内容が両方変化したかどうか
を判定し、その結果をドツト発生器5に知らせておく。
After the line of unit dot width (C1, Di, ...) is drawn, the line to be drawn (A2゜B2.C
2, D2. ...) starting point (A2 in Figure 7) (7
) find the coordinates, XD' register 15, YD' register 1
Save it to 6. At that time, XD' register 15,
It is determined whether the contents of the YD' register 16 have both changed, and the dot generator 5 is informed of the result.

〈ステップ3〉 次に、座標(XD、YD)に対応するドツト(第7図中
のAl)をレジスタ10の情報で描きかえるく〈ステッ
プ4〉〉 次に、XDレジスタ8、YDレジスタ9をもとに方向直
線発生器2を使って、次の描画点(第7図中のBl)を
求め、XDレジスタ8、YDレジスタ9に保存しておく
。その際、XDレジスタ8、YDレジスタ9の内容が両
方変化したかどうかを判定し、その結果をドツト発生器
5に知らせる。
<Step 3> Next, redraw the dot (Al in Fig. 7) corresponding to the coordinates (XD, YD) using the information in the register 10. <Step 4>> Next, set the XD register 8 and YD register 9. Using the direction line generator 2, the next drawing point (Bl in FIG. 7) is determined and stored in the XD register 8 and YD register 9. At this time, it is determined whether the contents of both the XD register 8 and the YD register 9 have changed, and the dot generator 5 is notified of the result.

XDレジスタ8、YDレジスタ9の内容が両方変化し、
かつ、X、D” レジスタ15、YD’  レジスタ1
6の内容が両方変化した時のみ、ドツト発生器5は、「
法線ベクトルの向きが、方向ベクトルの向きに対して右
側にある」を判定して、(XD、  YD−1〉に対応
するドツト (第7図中のXi)をレジスタIOの情報
で描きかえる。くステップ5〉次に、DH=Oか否か判
断する。DH>QならDHレジスタ11をディクリメン
トしてくステップ4〉にもどり、B1、C1、Dl、・
・・・・ と、DH=0となるまで同様に繰り返す。〈
ステップ6〉次に、DH=Oとなったら、DV=0か否
か判断する。DV>OならDVレジスタ12をディクリ
メントして、XD’  レジスタ15、YD’  レジ
スタ16及びDH’  レジスタ17の各位をXDレジ
スタ8、YDレジスタ9及びDHレジスタ11に転送し
た後に、〈ステップ3〉にもどり、(A2.  B2.
 C2、D2.・・・・・)のライン、 (A3.B3
.C3、D3.・・・・・)のライン、 (A4.B4
.C4、D4. ・・・・・ )のライン、・・・・・
 と、DV=0となるまで同様に繰り返す。くステップ
7〉最後に、DV=0となったら、終了する。くステッ
プ8〉 以上の操作により、第7図のようにXl、X2、x3、
yl、y2、y3、zl、z2、z3なる座標点も描画
した直線、つまり、「ドツト欠如部」が存在しないよう
な長方形すなわち太い直線を得ることができる。
The contents of XD register 8 and YD register 9 both change,
And, X, D” register 15, YD' register 1
Only when the contents of 6 change, the dot generator 5
The direction of the normal vector is on the right side with respect to the direction vector" and redraw the dot (Xi in Figure 7) corresponding to (XD, YD-1) using the information in register IO. Step 5> Next, determine whether DH=O or not. If DH>Q, decrement the DH register 11. Return to step 4>, and set B1, C1, Dl, .
... Repeat in the same way until DH=0. <
Step 6> Next, when DH=O, it is determined whether DV=0 or not. If DV > O, decrement the DV register 12 and transfer the contents of the XD' register 15, YD' register 16, and DH' register 17 to the XD register 8, YD register 9, and DH register 11, and then proceed to <Step 3>. Return to (A2. B2.
C2, D2. ...) line, (A3.B3
.. C3, D3. ...) line, (A4.B4
.. C4, D4.・・・・・・ ) line, ・・・・・・
The same procedure is repeated until DV=0. Step 7> Finally, when DV=0, the process ends. Step 8〉 Through the above operations, Xl, X2, x3,
It is possible to obtain a straight line in which the coordinate points yl, y2, y3, zl, z2, and z3 are also drawn, that is, a rectangle in which no "dot missing part" exists, that is, a thick straight line.

発明の効果 本発明による情報処理装置によれば、「ドツト欠如部」
が存在しない、任意の大さくドツト幅)の直線を得るこ
とができ、その直線を人間の目で見た場合、不自然さも
を感じさせない。
Effects of the Invention According to the information processing device according to the present invention, the “dot missing portion”
It is possible to obtain a straight line of arbitrary size (dot width), and when viewed with the human eye, the straight line does not feel unnatural.

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

第1図は、本発明の一実施例における主要部の構成要素
を示すブロック図、 第2図は、従来の技術の一例における、具体的な描画動
作を説明するための描画例であり、水平方向に対する傾
斜が45°未渦のラインを描画する例を図解する図、 第3図は、従来の技術の一例における、具体的な描画動
作を説明するための描画例であり、水平方向に対する傾
斜が45°以上のラインを描画する例を図解する図、 第4図は、第2図及び第3図のラインのパターンを用い
て長さ5ドツト、幅5ドツト、X軸に対する角度θの直
線を描画した例を図解する図、第5図は、直線発生器と
本発明のドツト発生器を使った本発明による具体的な描
画動作を説明するための描画例であり、水平方向に対す
る傾斜が45°未滴のラインを描画する例を図解する図
、第6図は、直線発生器と本発明のドツト発生器を使っ
た本発明による具体的な描画動作を説明するための描画
例であり、水平方向に対する傾斜が45°以上のライン
を描画する例を図解する図、第7図は、第5図及び第6
図のラインのパターンを用いて長さ5ドツト、幅5ドツ
ト、X軸に対する角度θの直線を描画した例を図解する
図、第8図は、本発明の一実施例における、具体的な描
画動作を説明するためのフローチャートである。 (主な参照番号) 1・・処理装置、    2・ 3・・法線直線発生器、4・ 5・・ドツト発生器、  6・ 7・・画像メモリ、 8・・XDレジスタ、  9・ 10・・ドツト情報レジスタ、 11・・DHレジスタ、12・・DVレジスタ、13・
・ΔXレジスタ、14・・ΔYレジスタ、15・・XD
’  ワークレジスタ、 16・・YD’  ワークレジスタ、 17・・DH’  ワークレジスタ ・YDレジスタ、 ・方向直線発生器、 ・加減算器、 ・描画装置、
FIG. 1 is a block diagram showing the main components in an embodiment of the present invention. FIG. 2 is a drawing example for explaining a specific drawing operation in an example of the conventional technology, and FIG. 3 is a diagram illustrating an example of drawing a line with an inclination of 45° to the horizontal direction. FIG. Figure 4 is a diagram illustrating an example of drawing a line with a angle of 45° or more. Figure 4 is a straight line with a length of 5 dots, a width of 5 dots, and an angle θ with respect to the X axis using the line patterns of Figures 2 and 3. FIG. 5 is a drawing example for explaining a specific drawing operation according to the present invention using a straight line generator and a dot generator according to the present invention. FIG. 6, which is a diagram illustrating an example of drawing a 45° undropped line, is a drawing example for explaining a specific drawing operation according to the present invention using a straight line generator and a dot generator of the present invention. , a diagram illustrating an example of drawing a line with an inclination of 45° or more with respect to the horizontal direction, FIG.
A diagram illustrating an example of drawing a straight line with a length of 5 dots, a width of 5 dots, and an angle θ with respect to the X axis using the line pattern shown in the figure. It is a flowchart for explaining operation. (Main reference numbers) 1. Processing device, 2. 3. Normal line generator, 4. 5. Dot generator, 6. 7. Image memory, 8. XD register, 9. 10.・Dot information register, 11... DH register, 12... DV register, 13...
・ΔX register, 14...ΔY register, 15...XD
'Work register, 16...YD' Work register, 17...DH' Work register/YD register, ・Directional line generator, ・Adder/subtractor, ・Drawing device,

Claims (1)

【特許請求の範囲】 量子化された2次元X−Y平面中に存在する座標点と、
記憶内容の書きこみ及び読み出しが可能な記憶空間中に
存在する単位記憶素子とが1対1対応している構成の記
憶装置と、 上記記憶装置に対して書きこみ及び読み出しを行うため
のアドレスを、上記2次元X−Y平面上の座標値から算
出し、上記記憶装置に対して書きこみ及び読み出しを行
う描画装置とを備え、上記2次元X−Y平面上に、X軸
からの傾きがθである、任意の太さを持った直線を描画
する処理を、上記記憶装置の記憶情報書き換えによって
実現する情報処理装置において、 上記θに相当する、X、Y方向の各微小変化分ΔX、Δ
Yに従って、上記記憶装置情報を書き換えてゆく過程で
、各方向の座標変化分を算出し、X、Yの増減信号をそ
れぞれ出力する方向直線発生器および線直流発生器と、 前記法線直線発生器を使って、現在情報書き換えを施し
ている上記単位記憶素子に対応する、座標点が属してい
る直線の始点をもとに、次に書き換えを施す予定の直線
の始点を計算し、両始点間の座標変化分を算出した際、
X方向とY方向の両方の座標が変化し、かつ、前記方向
直線発生器を使って、現在情報書き換えを施している上
記単位記憶素子に対応する、座標点をもとに、次に書き
換えを施す予定の座標点を計算し、両座標点間の座標変
化分を算出した際、X方向とY方向の両方の座標が変化
した時に、上記2次元X−Y平面上の、X方向だけもし
くはY方向だけ変化した座標点に対する単位記憶素子の
記憶情報をも、現在書き換えを施している単位記憶素子
の記憶情報と同じ情報で、書き換えるよう指示を与える
ドット発生器と を具備している情報処理装置。
[Claims] A coordinate point existing in a quantized two-dimensional X-Y plane;
A storage device configured such that there is a one-to-one correspondence between unit storage elements existing in a storage space where memory contents can be written and read, and an address for writing to and reading from the storage device. , a drawing device that calculates from the coordinate values on the two-dimensional X-Y plane and writes and reads them to and from the storage device, In an information processing device that realizes the process of drawing a straight line with an arbitrary thickness, which is θ, by rewriting the information stored in the storage device, minute changes ΔX in the X and Y directions corresponding to the θ, Δ
A direction straight line generator and a line direct current generator that calculate coordinate changes in each direction in the process of rewriting the storage device information according to Y and output X and Y increase/decrease signals, respectively; and the normal straight line generator. Using a device, calculate the starting point of the straight line to be rewritten next based on the starting point of the straight line to which the coordinate point belongs, which corresponds to the unit memory element whose information is currently being rewritten, and calculate both starting points. When calculating the coordinate change between
The next rewrite is performed based on the coordinate point corresponding to the unit storage element whose coordinates in both the X direction and the Y direction have changed and whose information is currently being rewritten using the direction line generator. When calculating the coordinate points to be applied and the coordinate change between both coordinate points, when the coordinates in both the X direction and the Y direction change, only the X direction or An information processing device that includes a dot generator that instructs to rewrite the storage information of the unit storage element for the coordinate point that has changed in the Y direction with the same information as the storage information of the unit storage element that is currently being rewritten. Device.
JP63217289A 1988-08-31 1988-08-31 Information processing device Expired - Fee Related JP2621410B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP63217289A JP2621410B2 (en) 1988-08-31 1988-08-31 Information processing device
DE68923745T DE68923745T2 (en) 1988-08-31 1989-08-31 System for generating an inclined rectangular shape.
EP89116145A EP0357076B1 (en) 1988-08-31 1989-08-31 Inclined rectangular pattern generating system
US07/400,663 US5093905A (en) 1988-08-31 1989-08-31 Inclined rectangular pattern generating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63217289A JP2621410B2 (en) 1988-08-31 1988-08-31 Information processing device

Publications (2)

Publication Number Publication Date
JPH0266684A true JPH0266684A (en) 1990-03-06
JP2621410B2 JP2621410B2 (en) 1997-06-18

Family

ID=16701804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63217289A Expired - Fee Related JP2621410B2 (en) 1988-08-31 1988-08-31 Information processing device

Country Status (1)

Country Link
JP (1) JP2621410B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0293877A (en) * 1988-09-30 1990-04-04 Nec Corp Information processor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60124786A (en) * 1983-12-12 1985-07-03 Fujitsu Ltd Vector generating system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60124786A (en) * 1983-12-12 1985-07-03 Fujitsu Ltd Vector generating system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0293877A (en) * 1988-09-30 1990-04-04 Nec Corp Information processor

Also Published As

Publication number Publication date
JP2621410B2 (en) 1997-06-18

Similar Documents

Publication Publication Date Title
JP2634851B2 (en) Image processing device
JP2009086860A (en) Image processor, image processing system, and program
JPS6327983A (en) Rotating graphic form generating device
JPH0266684A (en) Information processor
JPH0293877A (en) Information processor
JP2634810B2 (en) Information processing device
US5093905A (en) Inclined rectangular pattern generating system
JPH06149533A (en) Segment quick plotting system for reducing plotting processing for segment outside display area
JP3312560B2 (en) Texture mapping device
WO2021245875A1 (en) Image compositing device and image compositing method
JP2760176B2 (en) Low brightness character pattern generator
JPS63247868A (en) Display device for 3-dimensional pattern
JPS62256175A (en) Picture editing processor
JPH04137188A (en) Generating circuit for address in polygon
JPS62282380A (en) Overwritten character generating system
JPH07298192A (en) Image display controller
JPS61223986A (en) Picture processing method
JP2007264866A (en) Graphic system, dashed line texture image generation device and dashed line texture image generation method
JPH023512B2 (en)
JPS62184577A (en) Display control circuit
JPS60245032A (en) Video display device
JPH02137071A (en) Picture processor
JPH03217987A (en) Drawing device
JPH11110517A (en) Information processor and its processing method
JPH0567215A (en) Picture processor

Legal Events

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