Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5837546B2 - Pattern generation method - Google Patents
[go: Go Back, main page]

JPS5837546B2 - Pattern generation method - Google Patents

Pattern generation method

Info

Publication number
JPS5837546B2
JPS5837546B2 JP53082096A JP8209678A JPS5837546B2 JP S5837546 B2 JPS5837546 B2 JP S5837546B2 JP 53082096 A JP53082096 A JP 53082096A JP 8209678 A JP8209678 A JP 8209678A JP S5837546 B2 JPS5837546 B2 JP S5837546B2
Authority
JP
Japan
Prior art keywords
address
coordinate data
pattern
dot pattern
bits
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
Application number
JP53082096A
Other languages
Japanese (ja)
Other versions
JPS5510617A (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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP53082096A priority Critical patent/JPS5837546B2/en
Priority to US06/053,215 priority patent/US4280186A/en
Priority to DE2927413A priority patent/DE2927413C2/en
Publication of JPS5510617A publication Critical patent/JPS5510617A/en
Publication of JPS5837546B2 publication Critical patent/JPS5837546B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)

Description

【発明の詳細な説明】 この発明は表示装置又は印字装置等においてドットパタ
ーン形式の図形を描くためのパターン発生方式に関する
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a pattern generation method for drawing a dot pattern type figure in a display device, a printing device, or the like.

任意の図形を位置が定まった点(ドット)の集合として
表現する場合、点の集合の1つである線分の集合として
も表現することができる。
When an arbitrary figure is expressed as a set of points (dots) with fixed positions, it can also be expressed as a set of line segments, which is one set of points.

従って任意の線分が描ければ、任意の図形を描くことが
できる。
Therefore, if you can draw any line segment, you can draw any figure.

例えば第1図に示す多角形1を多数の線分21,2,・
・・2Nに分割し、これらの線分の両端の座標値を計算
する。
For example, the polygon 1 shown in FIG.
...Divide into 2N segments and calculate the coordinate values of both ends of these line segments.

この座標データから線分を追従する信号を発生し、この
信号を電子線偏向装置に供給することによって任意の図
形を描く技術が特公昭50−12706号公報に記載さ
れて?る。
Japanese Patent Publication No. 12706/1983 describes a technique for drawing arbitrary figures by generating a signal to follow a line segment from this coordinate data and supplying this signal to an electron beam deflection device. Ru.

このような技術によれば図形1内の各点の座標を全て計
算する必要がなく高速な描画が可能である。
According to such a technique, there is no need to calculate all the coordinates of each point within the figure 1, and high-speed drawing is possible.

しかしながら、例えばラスクスキャン型の表示装置にお
いては、ビームの偏向は一定周期で1固面を順次走査す
るために、1画面分の画像メモリを有しこの画像メモリ
からビームの走査順序に従ってシリアルなドットデータ
を増り出してビームの輝度信号として供給する構戊とな
っているため上述のような技術を適用させることができ
なかった。
However, in a Rusk scan type display device, for example, the beam deflection sequentially scans one solid surface at a constant period, so it has an image memory for one screen, and from this image memory, serial dots are printed in accordance with the beam scanning order. Since the structure is such that data is increased and supplied as a beam brightness signal, the above-mentioned technique cannot be applied.

この事実はドットパターン形式で図形を出力する印字装
置においても同様であった。
This fact also applies to printing devices that output graphics in the form of dot patterns.

この発明は上記事情に鑑みて為されたものであり、低価
格な表示装置又は印字装置を用いて高速に図形を描かせ
ることのできるパターン発生方式を提供することを目的
とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a pattern generation method that can draw figures at high speed using a low-cost display device or printing device.

この発明の他の目的は、線分の両端の座標データからそ
の線分を表わすドットパターンを発生するパターン発生
方式を提供するにある。
Another object of the present invention is to provide a pattern generation method for generating a dot pattern representing a line segment from coordinate data at both ends of the line segment.

この発明によれば、任意の図形は同一方向を有する複数
の線分の集合として表わされ、各線分は所定のドットパ
ターンの組合せとして求められる。
According to this invention, an arbitrary figure is represented as a set of a plurality of line segments having the same direction, and each line segment is determined as a combination of predetermined dot patterns.

例えば第2図に示すように、座標(3.2)及び(26
.2)を両端点とする線分3(黒丸部分)を描く場合、
8ビットのパターン4,42,43t44の組合せとし
て表現される。
For example, as shown in Figure 2, the coordinates (3.2) and (26
.. When drawing line segment 3 (black circle part) with 2) as both end points,
It is expressed as a combination of 8-bit patterns 4, 42, 43t44.

すなわち、この発明は、表示又は印字領域をそれぞれn
ビットからなるアドレス付けされた複数の単位領域に区
分し、描くべき線分の第1の端点の座標データからこの
端点が属する単位領域のアドレスN1を求める手段と、
前記第1の端点の座標データから前記第1の端点が前記
アドレスN1の単位領域内で占めるビット位置を求め、
このビット位置以上の高次ビットのすべてがゞゞ1”で
あるnビットのドットパターンを発生する第1のパター
ン発生回路と、前記描くべき線分の第2の端点の座標デ
ータからこの端点が属する単位領域のアドレスN2を求
める手段と、前記第2の端点の座標データから前記第2
の端点が前記アドレスN2の単位領域内で占めるビット
位置を求め、このビット位置以下の低次ビットのすべて
が(11”であるnビットのドットパターンを発生する
第2のパターン発生回路と、nビットのすべてが 1
であるドットパターン発生する第3のパターン発生回路
とを備え、前記アドレスN1及びN2の単位領域に対し
てはそれぞれ前記第1及び第2のパターン発生器が発生
したドットパターンを割り当てるとともに、アドレス(
N1+1)からアドレス(N21)までのすべての単位
領域に対しては前記第3のパターン発生器が発生したド
ットパターンを割り当てることを特徴とするものである
That is, the present invention has a display area or a printing area of n.
means for dividing a line segment into a plurality of addressed unit areas each consisting of bits, and determining an address N1 of a unit area to which this end point belongs from coordinate data of a first end point of a line segment to be drawn;
Determining the bit position occupied by the first end point within the unit area of the address N1 from the coordinate data of the first end point,
A first pattern generation circuit that generates an n-bit dot pattern in which all higher-order bits above this bit position are も1'', and this end point is determined from the coordinate data of the second end point of the line segment to be drawn. means for determining the address N2 of the unit area to which it belongs;
a second pattern generation circuit that calculates the bit position occupied by the end point in the unit area of the address N2, and generates an n-bit dot pattern in which all lower-order bits below this bit position are (11''); all bits are 1
and a third pattern generation circuit that generates a dot pattern at address (
The dot pattern generated by the third pattern generator is assigned to all unit areas from address (N1+1) to address (N21).

以下、ラスクスキャン型の表示装置の画像メモリ(又は
リフレッシュメモリ)に線分を表わすドットパターンを
書き込む場合について説明する。
Hereinafter, a case will be described in which a dot pattern representing a line segment is written into the image memory (or refresh memory) of a rask scan type display device.

いま、表示領域として第2図に示すような32ビット×
32ビットを考えると、画像メモリとしては1語8ビッ
ト構戒で、4×32語の容量を持つメモリがあればよい
Now, the display area is 32 bits x as shown in Figure 2.
Considering 32 bits, an image memory with 8 bits per word and a memory with a capacity of 4 x 32 words is sufficient.

これを第3図に示すように、X方向に4語、Y方向に3
2語とし、各語はX方向に8ビットあるものとする。
As shown in Figure 3, there are 4 words in the X direction and 3 words in the Y direction.
It is assumed that there are two words, and each word has 8 bits in the X direction.

表示領域内の任意の点の座標を(X,y)で表わしたと
き、この点が第Nw番目語の第Nb番目のビットに位置
するかは次式で与えられる。
When the coordinates of an arbitrary point within the display area are expressed as (X, y), whether this point is located at the Nb-th bit of the Nw-th word is given by the following equation.

Nw=yx4+(x/8 )・・・・・・・・・・・・
・・・(1)Nb = x−( x/8 ) X 8・
・・・・・・・・・・・・・・(2)ここで( x/8
)はx / 8を超えない最犬の整数を表わしている
Nw=yx4+(x/8)・・・・・・・・・・・・
...(1) Nb = x-(x/8) X 8・
・・・・・・・・・・・・・・・(2) Here ( x/8
) represents the largest integer not exceeding x/8.

例えば第2図に示す点(3.2)及び点(26,2)で
定められる線分は、第3図に符号5で示す斜線部に位置
し、点(3.2)は第8語の第3ビット目、点(26.
2)は第11語の第2ビット目にそれぞれ位置すること
になる。
For example, the line segment defined by points (3.2) and (26,2) shown in FIG. 2 is located in the shaded area shown by 5 in FIG. The third bit of , point (26.
2) are located at the second bit of the 11th word.

したがって、第8語目の第3ビットからX方向に並ぶ5
ビットと、第9語及び第10語の全ヒットと、第11語
の左端3ビットとをtゞ1”として画像メモリに書き込
むことによって第2図に示す線分を描くことができる。
Therefore, starting from the 3rd bit of the 8th word, 5
The line segment shown in FIG. 2 can be drawn by writing the bit, all hits of the 9th and 10th words, and the leftmost 3 bits of the 11th word as t1'' into the image memory.

一般には、任意の線分は第N1番目から第N2番目(N
1≦N2)までの連続するいくつかの語にゝゞ1″を書
き込めばよい。
In general, any line segment is the N1th to N2th (N
It is sufficient to write "ゝゞ1" in several consecutive words up to (1≦N2).

すなわち線分の第1の端点(左側)に関する座標データ
を用いて(1)式を計算することによりN1が求められ
る。
That is, N1 is obtained by calculating equation (1) using coordinate data regarding the first end point (left side) of the line segment.

また第2の端点(右側)に関する座標データを用いて(
1)式を計算すればN2が求められる。
Also, using the coordinate data regarding the second end point (right side) (
1) N2 can be found by calculating the formula.

第N番目の語には(2)式を用いて求められるビット位
置から右側に連続するすべてのビット(高次ビット)を
“1″としたドットパターンを書き込む。
In the Nth word, a dot pattern is written in which all consecutive bits (high-order bits) to the right from the bit position determined using equation (2) are "1".

また第N2番目の語には(2)式を用いて求められるビ
ット位置から左側に連続するすべてのビット(低次ビッ
ト)を“1”としたドットパターンを書き込む。
Further, in the N2th word, a dot pattern is written in which all consecutive bits (low-order bits) to the left from the bit position determined using equation (2) are "1".

そして第(N,+1)番目の語から第(N2−1)番目
の語にはそれぞれ8ビ゛ントのすべてが(c1”である
ドットパターンを書き込めばよい。
Then, a dot pattern in which all eight bits are (c1'') may be written in each of the (N, +1)th word to (N2-1)th word.

第4図はこの発明の一実施例を示す図である。FIG. 4 is a diagram showing an embodiment of the present invention.

符号11,12及び13は座標データを保持するレジス
タである。
Reference numerals 11, 12 and 13 are registers that hold coordinate data.

いま第1の端点の座標を(X1,Y)、第2の端点の座
標を(X2,Y)で表わすと、レジスタ11,12及び
13にはそれぞれ座標データX1,X2,Yがセットさ
れる。
If we now represent the coordinates of the first end point as (X1, Y) and the coordinates of the second end point as (X2, Y), then coordinate data X1, X2, and Y are set in registers 11, 12, and 13, respectively. .

なお、これらの座標データは表示すべき図形に基づいて
図示しない座標データ計算部により計算されたものであ
る。
Note that these coordinate data are calculated by a coordinate data calculation section (not shown) based on the figure to be displayed.

ここでは表示領域を第2図に関して説明したと同じ32
ビット×32ビットの大きさを考える。
Here, the display area is the same as 32
Consider the size of bit x 32 bits.

故6こ各座標データは2進数5ビットの情報で表現され
ている。
Therefore, each of the six coordinate data is expressed as 5-bit binary information.

画像メモリ14は、第3図に関して説明したように1語
8ビットで4×32語の容量を持つ。
The image memory 14 has a capacity of 4.times.32 words, each word having 8 bits, as explained with reference to FIG.

したがって各語は2進数7ビットのアドレス情報で指定
できる。
Therefore, each word can be specified using 7-bit binary address information.

アドレス変換回路15はレジスタ11,12及び13の
座標データを受け取って第1の端点を含む語のアドレス
N1と第2の端点を含む語のアドレスN2とを(1)式
に従って計算する。
The address conversion circuit 15 receives the coordinate data of the registers 11, 12, and 13 and calculates the address N1 of the word including the first end point and the address N2 of the word including the second end point according to equation (1).

求められたアドレスN0はカウンタ16にセットされ、
アドレスN2はレジスタ11にセットされる。
The obtained address N0 is set in the counter 16,
Address N2 is set in register 11.

一方、符号18及び19はそれぞれ8ビットのドットパ
ターンを発生するパターン発生器である。
On the other hand, reference numerals 18 and 19 are pattern generators each generating an 8-bit dot pattern.

20はパターン発生器18及び19が発生したドットパ
ターンから各ビット毎に論理積を求めてなるドットパタ
ーンを出力する論理積回路、21は8ビットすべてが“
1”からなるドツl・パターンを保持しているレジスタ
である。
20 is an AND circuit that calculates AND for each bit from the dot patterns generated by the pattern generators 18 and 19 and outputs a dot pattern; 21 is a logic circuit in which all 8 bits are "
This is a register that holds a dot pattern consisting of 1".

これらパターン発生器18,19、論理積回路20及び
レジスタ21の出力するドットパターンは選択回路22
に供給されている。
The dot patterns output from these pattern generators 18 and 19, the AND circuit 20, and the register 21 are determined by the selection circuit 22.
is supplied to.

また23は全体を制御する制御部である。Further, 23 is a control section that controls the entire system.

パターン発生器18が出力するドットパターンは線分の
左端部分にあたるので以下これをLBP( left
bit pattern)と呼ぶ。
Since the dot pattern output by the pattern generator 18 corresponds to the left end of the line segment, this will be referred to as LBP (left
bit pattern).

パターン発生器19が出力するドットパターンは線分の
右端部分にあたるので以下これをRBP( right
bitpattern )と呼ぶ。
Since the dot pattern output by the pattern generator 19 corresponds to the right end of the line segment, this will be referred to as RBP (right
bitpattern).

いま1つのドットパターンは8ビットからなるのでLB
P , RBPは第5図に示?ようにそれぞれ8種類あ
る。
Since one dot pattern consists of 8 bits, LB
P and RBP are shown in Figure 5? There are eight types of each.

したがって、パターン発生器18.19はそれぞれ第5
図{こ示すようなドットパターンを記憶する8語のRO
M又はRAMで構威されている。
Therefore, the pattern generators 18, 19 each have a fifth
Figure {8-word RO that memorizes dot patterns like the one shown here
It is configured with M or RAM.

また論理積回路20の出力するドットパターンをABP
( and bit pattem )と呼びレジスタ
21の出力するドットパターンをFBP( full
bitpattern )と呼ぶ。
In addition, the dot pattern output from the AND circuit 20 is ABP.
(and bit pattern), and the dot pattern output from the register 21 is called FBP (full
bitpattern).

パターン発生器18.19からそれぞれどのLBP,R
BPを出力するかは座標データから(2)式に従って第
lの端点及び第2の端点のビット位置を求めることによ
って決定される。
Which LBP,R from pattern generator 18.19 respectively
Whether to output BP is determined by finding the bit positions of the l-th end point and the second end point from the coordinate data according to equation (2).

すなわち、LBPとしては第1の端点のビット位置から
右側に“1”が連続するものを、RBPとしては第2の
端点のビット位置から左側に“1”が連続するものを選
択すればよい。
That is, it is sufficient to select an LBP in which "1"s continue to the right from the bit position of the first endpoint, and a RBP in which "1s" continue to the left from the bit position of the second endpoint.

ところで座標データを2進数で表わすことによって、(
1),(2)式の計算は著しく簡単化される。
By the way, by expressing the coordinate data in binary numbers, (
The calculations of equations 1) and (2) are significantly simplified.

すなわち、この実施例においてはアドレスNは5ビット
の座標データYの下位に、座標データXのうちの上位2
ビットを並べてなる7ビットで表わされる。
That is, in this embodiment, the address N is the lower order of the 5-bit coordinate data Y, and the upper two of the coordinate data X.
It is represented by 7 bits arranged in a row.

同様にアドレスN2は座標データYの下位に座標データ
X2のうちの上位2ビットを並べてなる7ビットで表わ
される。
Similarly, the address N2 is represented by 7 bits formed by arranging the upper 2 bits of the coordinate data X2 below the lower coordinate data Y.

したがってアドレス変換回路15はこのようなデータの
並び換えのみを行なえばよい。
Therefore, the address conversion circuit 15 only needs to perform such data rearrangement.

また、第1及び第2の端点のビット位置も(2)式を計
算することなく、それぞれ座標データX1,X2の下位
3ビットの内容をそのまま用いることができる。
Furthermore, the contents of the lower three bits of the coordinate data X1 and X2 can be used as they are for the bit positions of the first and second end points, respectively, without calculating equation (2).

したがって、パターン発生器18.19にはそれぞれレ
ジスタ11,12の出力のうち下位3ビットが供給され
ている。
Therefore, pattern generators 18 and 19 are supplied with the lower three bits of the outputs of registers 11 and 12, respectively.

次に第4図に示すこの発明の一実施例の動作を第6図の
フローチャートを用いて説明する。
Next, the operation of the embodiment of the present invention shown in FIG. 4 will be explained using the flowchart shown in FIG.

ブロック100ではまずレジスタ11,12及び13に
セットされた座標データを用いてアドレス変換器15が
アドレスN1,N2を作威しそれぞれカウンタ16、レ
ジスタ1γにセットする。
In block 100, address converter 15 generates addresses N1 and N2 using the coordinate data set in registers 11, 12 and 13, and sets them in counter 16 and register 1γ, respectively.

またレジスタIL12の下位3ビットの内容に従ってパ
ターン発生器1B,19からLBP ,RBPが選択回
路22に供給される。
Further, LBP and RBP are supplied to the selection circuit 22 from the pattern generators 1B and 19 according to the contents of the lower three bits of the register IL12.

同時に論理積回路20はLBP ,RBPとからABP
を作或して選択回路22に供給する。
At the same time, the AND circuit 20 converts LBP, RBP to ABP.
is generated and supplied to the selection circuit 22.

次にブロック101では、制御部23がカウンタ16の
内容N1とレジスタ1lの内容N2との大小関係を判定
する。
Next, in block 101, the control unit 23 determines the magnitude relationship between the content N1 of the counter 16 and the content N2 of the register 1l.

例えば図示しない制御部内の比較器が用いられる。For example, a comparator in a control section (not shown) is used.

この比較器によってN1〈N2であることが検出される
と、ブロック102に進む。
If the comparator detects that N1<N2, the process proceeds to block 102.

ブロック102内の“w:xxx”はドットパターンX
XXをメモリ14へ書き込むことを表わしている。
“w:xxx” in block 102 is dot pattern
This represents writing XX into the memory 14.

すなわち、制御部23は線24を介して選択回路22に
LBPの選択を指示する信号を出力する。
That is, the control unit 23 outputs a signal through the line 24 to the selection circuit 22 to instruct the selection of the LBP.

これによって選択回路22はパターン発生器18から供
給されたLBPをメモリ14へ出力する。
As a result, the selection circuit 22 outputs the LBP supplied from the pattern generator 18 to the memory 14.

このLBPはカウンタ16の内容すなわちアドレスN1
に書き込まれる。
This LBP is the content of the counter 16, that is, the address N1
will be written to.

ブロック102の処理が終了したらブロック103に進
み、制御部23はカウンタ16を1だけカウントアップ
させる。
When the processing in block 102 is completed, the process proceeds to block 103, where the control unit 23 increments the counter 16 by one.

そしてブロック104で再び比較器によってカウンタ1
6の内容とレジスタ17の内容との大小関係を判定する
Then, in block 104, the comparator again sets the counter 1
The magnitude relationship between the contents of 6 and the contents of register 17 is determined.

再びカウンタ16の内容のほうがレジスタ111の内容
より小さい場合には、ブロック105に進む。
If the contents of counter 16 are again smaller than the contents of register 111, the process proceeds to block 105.

ブロック105では制御部23が線24を介してFBP
を選択する信号を出力する。
In block 105, the control unit 23 connects the FBP via line 24.
Output a signal to select.

これによって選択回路22はレジスタ21の出力するF
BPを選択しメモリ14に供給する。
As a result, the selection circuit 22 selects the F output from the register 21.
BP is selected and supplied to the memory 14.

このFBPはカウンタ16の内容によって指示されるア
ドレスに書き込まれる。
This FBP is written to the address indicated by the contents of counter 16.

ブロック105の処理が終了したらブロック106に進
み、制御部23は再びカウンタ16の内容に1を加えて
ブロック104へ戻る。
When the processing in block 105 is completed, the process proceeds to block 106, where the control unit 23 again adds 1 to the contents of the counter 16, and returns to block 104.

したがってブロック104において、カウンタ16の内
容がレジスタ17の内容より小さい間は、カウンタ16
の内容で指示されるアドレスにはすべてFBPが書き込
まれる。
Therefore, in block 104, while the contents of counter 16 are less than the contents of register 17, counter 16
FBP is written to all addresses indicated by the contents of .

カウンタ16の内容がレジスタ1γの内容に等しくなる
とブロック101に進む。
When the contents of counter 16 become equal to the contents of register 1γ, the process proceeds to block 101.

ブロック101では、制御部23が線24を介してRB
Pを選択する信号を出力する。
In block 101, the controller 23 connects the RB via the line 24.
A signal for selecting P is output.

これによって選択回路22はパターン発生器19の出力
するFBPをメモリ14へ供給する。
As a result, the selection circuit 22 supplies the FBP output from the pattern generator 19 to the memory 14.

このFBPはカウンタ16の内容が指示するアドレスに
書き込まれて、ブロック108に進み処理を終える。
This FBP is written to the address indicated by the contents of the counter 16, and the process advances to block 108 to end the process.

ブロック101でカウンタ16の内容がレジスタ1γの
内容と等しいか大きい場合{こはブロック109へ進む
In block 101, if the contents of counter 16 are equal to or greater than the contents of register 1γ, the process proceeds to block 109.

フ゛ロツク109ではカウンタ16の内容がレジスタ1
7の内容と等しいか否かが判定される。
In block 109, the contents of counter 16 are stored in register 1.
It is determined whether the content is equal to the content of 7.

等しい場合にはブロック110に進み、選択回路22は
論理積回路20の出力するABPをメモリ14へ供給し
、カウンタ16の内容が指示するアドレスにABPが書
き込まれて処理を終?る。
If they are equal, the process proceeds to block 110, where the selection circuit 22 supplies the ABP output from the AND circuit 20 to the memory 14, writes ABP to the address indicated by the contents of the counter 16, and ends the process. Ru.

ブロック109でカウンタ16の内容とレジスタ11の
内容とが等しくないことが検知されると、ブロック11
1へ進み、誤りとして警告信号を発生するかまたは図示
しない機構によりレジスタ11.12の内容を入れ換え
て処理を再開する。
When block 109 detects that the contents of counter 16 and register 11 are not equal, block 109 detects that the contents of counter 16 and register 11 are not equal.
1 and generates a warning signal as an error, or replaces the contents of registers 11 and 12 by a mechanism not shown and restarts the process.

一例として、第2図6こ示す点(3,2),(26.2
)を結ぶ線分の発生を説明する。
As an example, the points (3,2) and (26.2) shown in FIG.
) will be explained.

レジスタ11にはX1として(ゞ0 0 01 1 (
2)”レジスタ12にはX2として“11010(2)
”レジスタ13にはYとしてcc00010(2)”が
それぞれ与えられる。
Register 11 is set as X1 (ゞ0 0 01 1 (
2) "11010(2)" is set in register 12 as X2.
"cc00010(2)" is given as Y to the register 13, respectively.

アドレス変換回路15はX1の上位2ビット(ゝ00”
の上にYの5ビットを並べた7ヒノトOOO1000(
2)”をN1としてカウンタ16にセットする。
The address conversion circuit 15 converts the upper 2 bits of X1 ('00'
7 hinoto OOO1000 with 5 bits of Y arranged on top of (
2)" is set in the counter 16 as N1.

またX2の上位2ビツ−11”の上にYの5ビットを並
べた7ビツ一c0001011(2)”をN2としてレ
ジスタ1γにセットする。
Further, 7 bits 1c0001011(2)'', which is the 5 bits of Y arranged above the upper 2 bits of X2 - 11'', are set in the register 1γ as N2.

一方、パターン発生器18にはX1の下位3ビツ−01
1”が供給されるので第5図から明らかなようにLBP
として黒丸が5個並んだドットパターン090●●●●
●が出力される。
On the other hand, the pattern generator 18 has the lower 3 bits of X1
1” is supplied, so as is clear from Figure 5, LBP
A dot pattern with 5 black circles lined up as 090●●●●
● is output.

またパターン発生器19にはX2の下位3ビット“01
0”が供給されるので第5図から明らかなようにRBP
として黒丸が3個並んだドットパターン●●●○○Oつ
○が出力される。
In addition, the pattern generator 19 has the lower 3 bits of X2 “01”.
0'' is supplied, so as is clear from Figure 5, RBP
A dot pattern ●●●○○Otsu○ with three black circles arranged in a row is output.

さて、カウンタ16の内容とレジスタ17の内容とを比
較するとカウンタ16の内容のほうが小さいので(ブロ
ック101)、メモリ14のアドレスゝ(000100
0(2)”(10進数で第8番地)にはLBPが書き込
まれる(ブロック102)。
Now, when the contents of the counter 16 and the contents of the register 17 are compared, the contents of the counter 16 are smaller (block 101), so the address of the memory 14 (000100
0(2)'' (8th address in decimal notation) is written with LBP (block 102).

これは第2図における符号41で示すドットパターンで
ある。
This is the dot pattern indicated by reference numeral 41 in FIG.

次にカウンタ16の内容に1を加え(ブロック103)
、カウンタ16の内容は“O O O 1 0 01
(2)”となる。
Next, add 1 to the contents of counter 16 (block 103)
, the content of the counter 16 is “O O O 1 0 01
(2)”.

この値もレジスタ11の内容よりも小さいので(ブロッ
ク104)、メモリ14のアドレスccOOO1001
(2)”(10進数で第9番地)にはFBPが書き込ま
れる(ブロック105)、これは第2図における符号4
で示すドットパターンである。
Since this value is also smaller than the contents of register 11 (block 104), the address of memory 14 is ccOOO1001.
(2)” (9th address in decimal notation) is written with FBP (block 105), which is code 4 in FIG.
This is the dot pattern shown in .

再びカウンタ16の内容に1を加えると(ブロック10
6)、(c0001010(2)”とになる。
Adding 1 to the contents of counter 16 again (block 10
6), (c0001010(2)”).

この値もレジスタ1γの内容より小さいので(ブロック
104)、メモリ14のアドレス“0001010(2
)”(10進数で第10番地)にはFBPが書き込まれ
、カウンタ16の内容に1が加えられる。
Since this value is also smaller than the contents of register 1γ (block 104), address “0001010 (2
)” (10th address in decimal notation) is written with FBP, and 1 is added to the contents of the counter 16.

今度はカウンタ16の内容はレジスタ1γの内容と同じ
“0 0 01 0 1 (2)”となるので、メモリ
14のアドレス(cOOO1011(2)″(10進数
で第11番地)にはRBPが書き込まれ(ブロック10
1)処理を終える。
This time, the contents of the counter 16 are "0 0 01 0 1 (2)", which is the same as the contents of the register 1γ, so RBP is written to the address of the memory 14 (cOOO1011(2)" (11th address in decimal). (Block 10
1) Finish the process.

これは第2図の符号44で示すドットパターンである。This is the dot pattern shown at 44 in FIG.

なお、この例では論理積回路20が出力するABPは使
用されていない。
Note that in this example, the ABP output from the AND circuit 20 is not used.

ABPは1語内に描かれてしまう8ビット以内の短い線
分を発生するために用いられる。
ABP is used to generate short line segments of up to 8 bits that can be drawn within one word.

例えば線分○○●●●○○○はLBP一〇〇●軸●●●
訊BP=●●●●●○○○との論理積として得られる。
For example, the line segment ○○●●●○○○ has LBP 100● axis●●●
It is obtained as a logical product with BP=●●●●●○○○.

この発明によれば線分の両端の点の座標が求められれば
容易にその線分を発生させることができるので、任意図
形の表示又は印字が高速に行なうことができ、特にラス
クスキャン型の表示装置やドットパターンで文字の印字
が可能な印字装置において高速にかつ簡単なハードウエ
アを付加するだけで図形の表示や印字を行なうことがで
きる。
According to this invention, if the coordinates of the points at both ends of a line segment are determined, the line segment can be easily generated, so that arbitrary figures can be displayed or printed at high speed, and especially in rask scan type display. Graphics can be displayed and printed at high speed by adding simple hardware to devices and printing devices capable of printing characters in dot patterns.

なお上記実施例では表示装置を対象としていたために画
像メモリを有していたが、印字装置においては選択回路
22から得られるドットパターンを順次そのままあるい
はシリアルデータに変換して印字すればよい。
In the above embodiment, an image memory was provided since the display device was used, but in a printing device, the dot patterns obtained from the selection circuit 22 may be printed sequentially as they are or after being converted into serial data.

これは印字装置のヘッド部の構威に対応させて適宜選択
すればよい。
This may be selected as appropriate depending on the configuration of the head section of the printing device.

またアドレス変換の具体的回路も上記実施例に限られず
種々変形できるものである。
Further, the specific circuit for address conversion is not limited to the above embodiment, and can be modified in various ways.

例えば第4図に示すアドレス変換回路15を用いること
なく、カウンタ16、レジスタ11にはX1,X2の下
位2ビットをそのまま供給し、メモリ14に対するアド
レス作威の際のみカウンタ16の2ビットの上位にYの
各ビットを並べてアドレス変換するように構或したほう
が、表示領域が大きい場合に少ないハードウエアで実現
することができる。
For example, without using the address conversion circuit 15 shown in FIG. 4, the lower two bits of X1 and If the address conversion is performed by arranging each bit of Y in a row, it can be realized with less hardware when the display area is large.

更に上記実施例のようなデイジタル回路構威ではなくて
アナログ回路を用いて構或することもできる。
Furthermore, an analog circuit may be used instead of the digital circuit structure as in the above embodiment.

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

第1図は任意図形の分割を説明するための図、第2図は
線分の表示例を示す図、第3図は画像メモリの一構或図
、第4図はこの発明の一実施例を示す図、第5図は線分
の端部のドットパターンを示す図、第6図はこの発明の
一実施例の動作を示すフローチャートである。 11,12,13・・・レジスタ、15・・・アドレス
変換回路、16・・・カウンタ、11・・・レジスタ、
18.19・・・パターン発生回路、20・・・論理積
回路、21・・・レジスタ、22・・・選択回路、23
・・・制御部。
Fig. 1 is a diagram for explaining division of arbitrary figures, Fig. 2 is a diagram showing an example of line segment display, Fig. 3 is a diagram of a structure of an image memory, and Fig. 4 is an embodiment of the present invention. FIG. 5 is a diagram showing a dot pattern at the end of a line segment, and FIG. 6 is a flowchart showing the operation of an embodiment of the present invention. 11, 12, 13...Register, 15...Address conversion circuit, 16...Counter, 11...Register,
18.19... Pattern generation circuit, 20... AND circuit, 21... Register, 22... Selection circuit, 23
...control section.

Claims (1)

【特許請求の範囲】 1 描くべき線分の第1の端点のX座標データX1、第
2の端点のX座標データX2(但しX 1 <X 2)
及び前記第1、第2の端点に共通なY座標データを入力
する手段と、 前記線分が描かれる表示又は印字領域をそれぞれれnビ
ットからなるアドレス付けされた複数の単位領域に区分
し、前記X座標データX1の上位部分及びY座標データ
から第1の端点が属する単位領域のアドレスN1を求め
るとともに前記X座標データX2の上位部分及びY座標
データから第2の端点が属する単位領域のアドレスN2
を求めるアドレス変換手段と、 前記アドレスN1の単位領域に割り当てられるべきnビ
ットの第1のドットパターンを複数種予め収容し、前記
X座標データX1の下位部分を入力として選択的に第1
のドットパターンを出力する第1のパターンメモリと、 前記アドレスN2の単位領域に割り当てられる?きnビ
ットの第2のドットパターンを複数種予め収容し、前記
X座標データX2の下位部分を入力として選択的に第2
のドットパターンを出力する第2のパターンメモリと、 nビットのすべてがゝゞ1″である第3のドットパター
ンを収容した第3のパターンメモリと、前記第1のパタ
ーンメモリが出力する第1のドットパターンと前記第2
のパターンメモリが出力する第2のドットパターンとの
論理積を求めることにより第4のドットパターンを作或
する論理積手段と、 前記第1乃至第4のドットパターンを選択的に出力する
ための選択手段とを備え、 前記アドレスNがアドレスN2より小さい場合には、前
記アドレスN1及びN2の単位領域に対してそれぞれ前
記第1及び第2のドットパターンを割り当てるとともに
アドレス(N1+1)からアドレス(N2−1)までの
単位領域に対して第3のドットパターンを割り当て、 前記アドレスN1がアドレスN2(こ等しい場合には、
当該アドレスの単位領域に対して第4のドットパターン
を割り当てることを特徴とするパターン発生方式。
[Claims] 1. X coordinate data X1 of the first end point of the line segment to be drawn, X coordinate data X2 of the second end point (however, X 1 < X 2)
and means for inputting Y coordinate data common to the first and second end points; dividing the display or print area in which the line segment is drawn into a plurality of unit areas each addressed by n bits; The address N1 of the unit area to which the first end point belongs is determined from the upper part of the X coordinate data X1 and the Y coordinate data, and the address N1 of the unit area to which the second end point belongs from the upper part of the X coordinate data X2 and the Y coordinate data. N2
an address converting means for calculating a first dot pattern of n bits to be allocated to the unit area of the address N1 in advance;
a first pattern memory that outputs a dot pattern of ?, which is allocated to the unit area of the address N2; A plurality of types of n-bit second dot patterns are stored in advance, and the lower part of the X coordinate data
a second pattern memory that outputs a dot pattern of 1, a third pattern memory that stores a third dot pattern in which all n bits are dot pattern and the second
a logical product means for creating a fourth dot pattern by calculating a logical product with a second dot pattern output by the pattern memory; and a logical product means for selectively outputting the first to fourth dot patterns. selecting means, when the address N is smaller than the address N2, the first and second dot patterns are assigned to the unit areas of the addresses N1 and N2, respectively, and the address (N1+1) to the address (N2 A third dot pattern is assigned to the unit area up to -1), and if the address N1 is equal to the address N2 (
A pattern generation method characterized in that a fourth dot pattern is assigned to a unit area of the address.
JP53082096A 1978-07-07 1978-07-07 Pattern generation method Expired JPS5837546B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP53082096A JPS5837546B2 (en) 1978-07-07 1978-07-07 Pattern generation method
US06/053,215 US4280186A (en) 1978-07-07 1979-06-29 Exposure apparatus using electron beams
DE2927413A DE2927413C2 (en) 1978-07-07 1979-07-06 Electron beam exposure device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53082096A JPS5837546B2 (en) 1978-07-07 1978-07-07 Pattern generation method

Publications (2)

Publication Number Publication Date
JPS5510617A JPS5510617A (en) 1980-01-25
JPS5837546B2 true JPS5837546B2 (en) 1983-08-17

Family

ID=13764883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53082096A Expired JPS5837546B2 (en) 1978-07-07 1978-07-07 Pattern generation method

Country Status (1)

Country Link
JP (1) JPS5837546B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57200088A (en) * 1981-06-02 1982-12-08 Matsushita Electric Industrial Co Ltd Image display unit

Also Published As

Publication number Publication date
JPS5510617A (en) 1980-01-25

Similar Documents

Publication Publication Date Title
US5355449A (en) Method and apparatus for outline font character generation in dot matrix devices
EP0471482B1 (en) Character processing method
GB2174278A (en) Area-fill graphic image processing system
US5428728A (en) Method and apparatus for outline font character generation in dot matrix devices
JPS5836348B2 (en) Variable size character generation method with constant display density
JP3448816B2 (en) Sorting device
JP2761890B2 (en) Line generator and display device
JPH0640259B2 (en) Data processing device
JPS5837546B2 (en) Pattern generation method
JPS5937508B2 (en) Character pattern generator
EP0091124B1 (en) Video signal generating circuit
JPS6223316B2 (en)
JPS6346429B2 (en)
JP2748787B2 (en) Curve generator
JPH0442874Y2 (en)
JP3039214B2 (en) Data converter
JPS6356693A (en) Character dot conversion system
JPH0564394B2 (en)
JP2637921B2 (en) Character symbol generator
JPH06295170A (en) Character / figure division generation method
JPS58154885A (en) Character pattern generator
JPS5950070B2 (en) Character pattern generation method
JP2861201B2 (en) Data converter
JPS60231275A (en) Formation device of underline and sideline
JPS5840749B2 (en) pattern generator