JPH0293877A - Information processor - Google Patents

Information processor

Info

Publication number
JPH0293877A
JPH0293877A JP24637788A JP24637788A JPH0293877A JP H0293877 A JPH0293877 A JP H0293877A JP 24637788 A JP24637788 A JP 24637788A JP 24637788 A JP24637788 A JP 24637788A JP H0293877 A JPH0293877 A JP H0293877A
Authority
JP
Japan
Prior art keywords
coordinate
register
information
generator
dot
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
JP24637788A
Other languages
Japanese (ja)
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 JP24637788A priority Critical patent/JPH0293877A/en
Priority to EP89116145A priority patent/EP0357076B1/en
Priority to DE68923745T priority patent/DE68923745T2/en
Priority to US07/400,663 priority patent/US5093905A/en
Publication of JPH0293877A publication Critical patent/JPH0293877A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To draw a rectangle, for which a 'dot missing part' does not exist, to have the arbitrary length of a length-wise side and a breadth-wise side by calculating a coordinate change part in X and Y directions, forecasting the generation of the 'dot missing part' and filling up this 'dot missing part'. CONSTITUTION:For processing to draw the rectangle, for which inclination from an X-axis is theta, to have the arbitrary length of the length-wise side and breadth-wise side on a two-dimensional X-Y plane, the coordinate change part in the respective directions is calculated. Then, the generation of the 'dot missing', which is generated when the rectangle is drawn by using a directional straight line generator 2 and a normal straight line generator 3 to respectively output X and Y increasing and decreasing signals, is forecast. Then, by giving an instruction from a dot generator 5 according to information, which are obtained in a near dot, and filling up the 'dot missing part' with using a drawing device 6, the 'dot missing part' is prevented from being generated in a drawing area. Thus, drawing quality can be improved.

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 drawing processing of a rectangle having arbitrary vertical and horizontal side lengths by rewriting information stored in a storage space.

従来の技術 従来の技術について図面を参照しながら説明する。一般
に、グラフィックデイスプレィ等に長方形を表示するに
は、画面の単位ドツトと1対1に対応している単位記憶
素子で構成された画像メモリ上で処理を行う。その処理
として、描画する長方形の横辺方向のベクトル(以下、
方向ベクトルと呼ぶ)に従って、単位ドツト幅のライン
を描画するための方向直線発生器を使用する。任意の縦
辺の長さを持った長方形にするためには、上述の単位ド
ツト幅のラインを複数本描画する。その際に複数本描画
する各ラインの始点の集合であるところの1ラインを描
画するために、縦辺方向ベクトル(以下、法線ベクトル
と呼ぶ)に従って、単位ドツト幅のラインを描画するた
めの法線直線発生器が必要になる。そのような方向直線
発生器と法線直線発生器とを用いて座標を求め、任意の
縦辺の長さ及び横辺の長さを持つ長方形を描画していく
方式がある。
BACKGROUND ART A conventional technique will be described with reference to the drawings. Generally, in order to display a rectangle 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, the vector in the horizontal direction of the rectangle to be drawn (hereinafter referred to as
A directional line generator is used to draw a line of unit dot width according to the direction vector). To create a rectangle with arbitrary lengths of vertical sides, draw multiple lines of the unit dot width described above. At that time, in order to draw one line which is a set of starting points of each line to be drawn, a line of unit dot width is drawn according to the vertical direction vector (hereinafter referred to as normal vector). A normal line generator is required. There is a method in which coordinates are determined using such a direction line generator and a normal line generator, and a rectangle having arbitrary lengths of vertical sides and horizontal sides 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ドツト、横辺6ドツト
である長方形を描画するには、通常次のようなステップ
を踏む。
Using two such linear generators, as shown in Figure 4,
To draw a rectangle having an inclination of θ with respect to the X-axis and 5 dots on the vertical side and 6 dots on the horizontal side, the following steps are usually performed.

まず、第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 coordinates of the second line, A2, B2, C2, etc. in Figure 4, are drawn using a direction line generator, but at that time, A2, which is the starting point, is drawn. The coordinates for this 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ドツト、横辺6ドツトである長方形を、
角度θに相当する、X、Y方向の微小変化分ΔX、ΔY
(ΔX/Δy= tanθ)に従って描画できる。
By the above method, as shown in Fig. 4, a rectangle with an inclination of θ to the X axis and 5 dots on the vertical side and 6 dots on the horizontal side can be created.
Minute changes ΔX, ΔY in the X and Y directions corresponding to the angle θ
It can be drawn 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 ``dot missing area'' occurs within the drawing area, and when viewed with the human eye, it has the disadvantage of looking unnatural.

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

すなわち、本発明は、任意の縦辺の長さ及び横辺の長さ
を持つ長方形を描画する際、ドツト欠如部をなく描画す
ることができる情報処理装置を提供せんとするものであ
る。
That is, an object of the present invention is to provide an information processing apparatus that can draw a rectangle with arbitrary lengths of vertical sides and horizontal sides 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. A storage device having a one-to-one correspondence with the storage device and an address for writing to and reading from the storage device are calculated from the coordinate values on the two-dimensional X-Y plane, and and a drawing device that writes and reads data to and has arbitrary lengths of vertical sides and lengths of horizontal sides on the two-dimensional X-Y plane with an inclination of θ from the X-axis. An information processing device that realizes the process of drawing a rectangle by rewriting the storage information in the storage space calculates the minute changes ΔX and Δ in the X and Y directions corresponding to θ.
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 the coordinate points to be applied are calculated and the coordinate changes between both coordinate points are calculated, when the coordinates in both the X direction and the Y direction change, A dot generator is provided which gives an instruction to rewrite the storage information of the unit storage element for the coordinate point changed only 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= tanθ)に従って描画する際に生じる「ドツト
欠如部」の発生を察知し、近傍のドツトが持っている情
報により「ドツト欠如部」を描画することにより描画領
域内に「ドツト欠如部」を発生させない。従って、描画
品質を向上させることができる。
Effect With the above-mentioned configuration, a rectangle having an inclination of θ with respect to the Y(ΔX/Δ
The system detects the occurrence of "missing dots" that occur when drawing according to Y = tan Don't let it happen. 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、Y各室標値に対応するメモ
リ上のドツトの書き込みを行う描画装置6とを具備して
いる。
The illustrated information processing device includes a processing device for controlling each register, a line generator, etc., which will be described later, and a processing device for generating coordinates for drawing a line of unit dot width according to the direction vector of the rectangle to be drawn. a directional line generator 2; a normal line generator 3 for generating coordinates for drawing one line, which is a set of starting points of each line when drawing a plurality of lines of unit dot width; Adder/subtractor 4 that increases or decreases the value of the register according to the increase/decrease signal from each linear generator
It is equipped with. Furthermore, the information processing device determines that the coordinates generated by the direction line generator 2 are X, ! with respect to the immediately previous coordinates. :
When both Y change and the coordinates generated by the normal line generator 3 change both X and Y with respect to the previous coordinates, drawing can also be performed at the position where only the X direction or only the Y direction has changed. a dot generator 5 that gives instructions to do so, and a processing device 1
and a drawing device 6 which writes dots on the memory corresponding to the X and Y room standard values stored in each register 8.9, which will be described later, in accordance with the output from the dot generator 5.

また、情報処理装置は、描画を行う画像メモリ7と、X
座標、XDを記憶するレジスタ8と、Y座標、YDを記
憶するレジスタ9と、メモリへ書き込むためのドツト情
報を記憶するレジスタ10と、長方形の横辺の長さDH
を記憶するレジスタ11と、長方形の縦辺の長さDVを
記憶するレジスタ12と、角度θに相当する、X方向の
微小変化分ΔXを記憶するレジスタ13と、角度θに相
当する、Y方向の微小変化分ΔYを記憶するレジスタ1
4と、保存用ワークレジスタXD″15と、保存用ワー
クレジスタYD’ 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, YD, a register 10 that stores dot information for writing to the memory, and the length DH of the horizontal side of the rectangle.
, a register 12 that stores the length DV of the vertical side of the rectangle, a register 13 that stores the minute change ΔX in the X direction, which corresponds to the angle θ, and a register 13, which stores the length DV of the vertical side of the rectangle, and a register 13 that stores the minute change ΔX in the X direction, which corresponds to the angle θ. Register 1 that stores the minute change ΔY of
4, storage work register XD''15, storage work register YD' 16, and 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図のラインのパターンを用いて横辺6ドツト、縦
辺5ドツト、X軸に対する角度θの長方形の描画例を図
解した図である。
Figure 5 illustrates an unvortexed 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 Figure 7 is a drawing of a rectangle with 6 dots on the horizontal side, 5 dots on the vertical side, and an angle θ with respect to the X axis using the line pattern of Figures 5 and 6. FIG. 3 is a diagram illustrating an example.

また、第7図中(11) (XD、 YD)は、A1部
分のドツトの座標を表し、θは長方形の方向ベクトルと
X軸とのなす角であり、ΔX、ΔYはθに相当する、X
、Y方向の微小変化分(ΔX/ΔY=tanθ)である
。さらに、第5図、第6図、第7図中のαは直線の方向
ベクトノペ第7図中のβは直線の法線ベクトルを表す。
In addition, (11) (XD, YD) in Fig. 7 represents the coordinates of the dot in the A1 portion, θ is the angle between the rectangular direction vector and the X axis, and ΔX and ΔY correspond to θ. X
, a minute change in the Y direction (ΔX/ΔY=tanθ). Furthermore, α in FIGS. 5, 6, and 7 represents the direction vector of a straight line. β 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, consider the case where the rotation angle θ is greater than or equal to 0° and less than 45°. 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 indicates 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,
縦辺DV、横辺とX軸との角度θなる長方形を描画して
いく動作を、第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 horizontal side DH,
The operation of drawing a rectangle having a vertical side DV and an angle θ between the horizontal side and the X axis will be explained in detail 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 the Δ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
〉XD’  レジスタ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
〉XD' register 15, YD'' Using the normal line generator 3 based on the contents of the register 16, (Al, Bl.

C1,Dl、・・・・・)なる単位ドツト幅のラインが
描画し終った後に描画するべきライン(A2゜B2. 
C2,D2.・・・・・)の始点(第7図中のA2)の
座標を求め、XD” レジスタ15、YD”レジスタ1
6に保存しておく。その際にXD’  レジスタ15、
YD’  レジスタ16の内容が両方変化したかどうか
を判定し、その結果をドツト発生器5に知らせておく。
After the line of unit dot width (C1, Dl, . . .) is drawn, the line to be drawn (A2°B2.
C2, D2. Find the coordinates of the starting point (A2 in Figure 7) of
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, also write the XD register 8 and YD register 9. Then, use the direction line generator 2 to draw the next drawing point (Bl in Figure 7).
is calculated 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の内容が両方変化し、
かつ、XD’  レジスタ15、YD” レジスタ16
の内容が両方変化した時のみ、ドツト発生器5は、「法
線ベクトルの向きが、方向ベクトルの向きに対して右側
にある」を判定して、(XD、 YD−1)に対応する
ドツト(第7図中のxi)をレジスタ10の情報で描き
かえる。くステップ5〉次に、DH=0か否か判断する
。DH>0ならDHレジスタ11をディクリメントして
くステップ4〉にもどり、B1、C1、Dl、・・・・
・と、DH=Oとなるまで同様に繰り返す。くステップ
6〉次に、DH=0となったら、DV=Oか否か判断す
る。DV>OならDVレジスタ12をディクリメントし
て、XD’  レジスタ15、YD’  レジスタ16
及びDH” レジスタ17の各位をXDレジスク8、Y
Dレジスタ9及びDHレジスタ11に転送した後に、く
ステップ3〉にもどり、(A2.B2.C2、D2.”
・ )CDライン、 (A3.B5C5、D3.  ・
・・・・ )のライン、 (A4.B4.C4、D4.
・・・・・)のライン、・・・・・ と、DV=0とな
るまで同様に繰り返す。〈ステップ7〉最後に、DV=
Oとなったら、終了する。くステップ8〉 以上の操作により、第7図のようにXl、X2、X3、
yl、y2、y3、Zl、Z2、Z3なる座標点も描画
した長方形、つまり、「ドツト欠如部」が存在しないよ
うな長方形を得ることができる。
The contents of XD register 8 and YD register 9 both change,
And, XD' register 15, YD'' register 16
Only when the contents of both change, the dot generator 5 determines that "the direction of the normal vector is on the right side with respect to the direction vector," and generates a dot corresponding to (XD, YD-1). (xi in FIG. 7) is replaced with the information in the register 10. Step 5> Next, it is determined whether DH=0. If DH>0, decrement the DH register 11 and return to step 4>, B1, C1, Dl, etc.
・Repeat in the same manner until DH=O. Step 6> Next, when DH=0, it is determined whether DV=O or not. If DV>O, DV register 12 is decremented, XD' register 15, YD' register 16
and DH'' register 17 to XD register 8, Y
After transferring to the D register 9 and DH register 11, return to step 3> (A2.B2.C2, D2.”
・ ) CD line, (A3.B5C5, D3. ・
... ) line, (A4.B4.C4, D4.
) line, and so on, repeat in the same way until DV=0. <Step 7> Finally, DV=
When it becomes O, it ends. Step 8〉 Through the above operations, Xl, X2, X3,
It is possible to obtain a rectangle 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.

発明の効果 本発明による情報処理装置によれば、「ドツト欠如部」
が存在しない、任意の縦辺の長さ及び横辺の長さを持つ
長方形を得ることができ、その長方形を人間の目で見た
場合、不自然さもを感じさせない。
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 rectangle with arbitrary lengths of vertical sides and horizontal sides, and when viewed with the human eye, the rectangle does not feel unnatural.

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

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

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 in which memory contents can be written and read, and an address for writing and reading data to and 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 rectangle with arbitrary lengths of vertical sides and horizontal sides, which are θ, by rewriting the information stored in the storage device, Each minute change in direction ΔX, Δ
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.
JP24637788A 1988-08-31 1988-09-30 Information processor Pending JPH0293877A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP24637788A JPH0293877A (en) 1988-09-30 1988-09-30 Information processor
EP89116145A EP0357076B1 (en) 1988-08-31 1989-08-31 Inclined rectangular pattern generating system
DE68923745T DE68923745T2 (en) 1988-08-31 1989-08-31 System for generating an inclined rectangular shape.
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
JP24637788A JPH0293877A (en) 1988-09-30 1988-09-30 Information processor

Publications (1)

Publication Number Publication Date
JPH0293877A true JPH0293877A (en) 1990-04-04

Family

ID=17147637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24637788A Pending JPH0293877A (en) 1988-08-31 1988-09-30 Information processor

Country Status (1)

Country Link
JP (1) JPH0293877A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5362585A (en) * 1991-03-04 1994-11-08 At&T Bell Laboratories Seimconductor integrated circuit fabrication utilizing latent imagery

Citations (2)

* 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
JPH0266684A (en) * 1988-08-31 1990-03-06 Nec Corp Information processor

Patent Citations (2)

* 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
JPH0266684A (en) * 1988-08-31 1990-03-06 Nec Corp Information processor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5362585A (en) * 1991-03-04 1994-11-08 At&T Bell Laboratories Seimconductor integrated circuit fabrication utilizing latent imagery
US5968693A (en) * 1991-03-04 1999-10-19 Lucent Technologies Inc. Lithography tool adjustment utilizing latent imagery
US5981119A (en) * 1991-03-04 1999-11-09 Lucent Technologies, Inc. Lithography tool adjustment and semiconductor integrated circuit fabrication utilizing latent imagery
US5989764A (en) * 1991-03-04 1999-11-23 Lucent Technologies Inc. Method of adjusting lithography tool through scattered energy measurement
US6500591B1 (en) 1991-03-04 2002-12-31 Lucent Technologies Inc. Method of averaging focus through scattered energy determination

Similar Documents

Publication Publication Date Title
JPS5995669A (en) Graphic processor
JP3791259B2 (en) Outline smoothing processing method
JPS6327983A (en) Rotating graphic form generating device
JP2634851B2 (en) Image processing device
JPH0293877A (en) Information processor
JPS62169282A (en) Linear drawing
JP2621410B2 (en) Information processing device
JP3002972B2 (en) 3D image processing device
EP0357076B1 (en) Inclined rectangular pattern generating system
JP2007122188A (en) Image forming device, image processing method and program
JP2634810B2 (en) Information processing device
JP2549630B2 (en) Image information processing device
JPH06186948A (en) Image display method
JPH08314428A (en) Display device with character masking function
JP3312560B2 (en) Texture mapping device
JPS6315617B2 (en)
JP3233566B2 (en) Graphic drawing processor and graphic processing system
EP0293698B1 (en) Graphic controller having function of painting designated area
JP3553249B2 (en) Image generating apparatus and image generating method
JPS62256175A (en) Picture editing processor
JPH04137188A (en) Generating circuit for address in polygon
JPS6315288A (en) 3-d graphic display unit
JP2007264866A (en) Graphic system, dashed line texture image generation device and dashed line texture image generation method
JP2000298729A (en) Two-dimensional image generation device
JPH09161047A (en) Picture output device