JPS6230053A - Dot-shaped scaling method - Google Patents

Dot-shaped scaling method

Info

Publication number
JPS6230053A
JPS6230053A JP60169966A JP16996685A JPS6230053A JP S6230053 A JPS6230053 A JP S6230053A JP 60169966 A JP60169966 A JP 60169966A JP 16996685 A JP16996685 A JP 16996685A JP S6230053 A JPS6230053 A JP S6230053A
Authority
JP
Japan
Prior art keywords
buffer
dot
dots
data
character pattern
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
JP60169966A
Other languages
Japanese (ja)
Inventor
Masaki Sugihara
杉原 正貴
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP60169966A priority Critical patent/JPS6230053A/en
Publication of JPS6230053A publication Critical patent/JPS6230053A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4015Image demosaicing, e.g. colour filter arrays [CFA] or Bayer patterns

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は複数のドツトより構成されるドツト字形を拡大
あるいは縮小する装置に係り、特にn/m(m、nは整
数)倍の拡大あるいは縮小を行うド・ノド字形拡大縮小
方式に関する。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a device for enlarging or reducing a dot shape composed of a plurality of dots, and particularly for enlarging or reducing a dot shape by a factor of n/m (where m and n are integers). This paper relates to a method for enlarging/reducing glyph shapes.

〔従来の技術〕[Conventional technology]

ワードプロセッサや漢字プリンタの漢字には一般的にド
ツト文字が用いられている。これは例えば各辺が2個で
合計pxp(Bitのドツトで構成され。
Dot characters are generally used for Kanji characters in word processors and Kanji printers. This consists of, for example, two dots on each side and a total of pxp (Bits).

これらのド・ノドを白あるいは黒として目的の字形を作
っている。一般的に一台のワードプロセッサにはメモリ
の容量に制約がある為にこれらの字形は特定のドツト例
えば前述したようにPXPド・7トの構成によるものし
か記憶されておらず、他のドツト構成文字はプロセッサ
等の演算によってP×Pドツトの構成文字より発生して
いた。すなわち、P×Pドツトの構成文字の拡大や縮小
を行っていた。
The desired glyph shape is created by making these dots white or black. Generally, a single word processor has limited memory capacity, so these glyphs are only stored in a specific dot configuration, such as the PXP dot 7 configuration as mentioned above, and cannot be stored in other dot configurations. Characters were generated from the constituent characters of P×P dots through calculations by a processor or the like. That is, the characters constituting the P×P dots are enlarged or reduced.

従来、ドツト文字の拡大、縮小には9分割法が。Conventionally, the 9-division method was used to enlarge and reduce dot characters.

また拡大にはIJ法が多く用いられている。Further, the IJ method is often used for enlargement.

9分割法は特定領域を9分割し、拡大あるいは縮小後の
ドツトがどの領域に入るかによって判別式で黒か否かを
求める方法である。また、IJ法は拡大のドツト対応で
環ドツト文字を分割し、あらかじめ求められているその
分割単位での対応表すなわち変換テーブルによって拡大
後の黒や白を求める方法である。
The 9-division method is a method in which a specific area is divided into 9 parts, and a discriminant is used to determine whether the dot is black or not depending on which area the dot falls in after being enlarged or reduced. Further, the IJ method is a method in which a ring dot character is divided according to the dot correspondence of enlargement, and black or white after enlargement is determined using a correspondence table, that is, a conversion table, for each division unit determined in advance.

前述した9分割法はそれぞれ各ドツトを求める為の演算
を必要とし1元画では同じ幅であった縦線、横線が拡大
、縮小後には不揃いになることがあった。また、IJ法
は拡大する為の対応表を必要とするので、ドツトが多い
場合(3:4や5:6等)には変換テーブルが増大し、
さらに9分割法と同様に元画では同じ幅であった縦線、
横線が拡大後には不揃いとなることがあった。
The above-mentioned 9-division method requires calculations to obtain each dot, and vertical lines and horizontal lines, which had the same width in a single original drawing, may become irregular after being enlarged or reduced. In addition, the IJ method requires a correspondence table for expansion, so if there are many dots (3:4, 5:6, etc.), the conversion table will increase.
Furthermore, as with the 9-division method, vertical lines that were the same width in the original drawing,
The horizontal lines sometimes became irregular after being enlarged.

一方、IJ法では大文字や細文字をも作ることが可能で
あるが、それぞれに対応して変換テーブルを設けなくて
はならず、これを行うようにするためにはさらに変換テ
ーブルを増大させなくてはならなかった。
On the other hand, with the IJ method, it is possible to create uppercase letters and small letters, but a conversion table must be provided for each, and in order to do this, the conversion table must be further increased. I shouldn't have.

〔発明の目的〕[Purpose of the invention]

本発明は前記従来の欠点に鑑み、ドツト字形の拡大、縮
小にともなう線幅の乱れをなくシ、変換テーブルが少な
くて太めや細めの拡大、縮小を可能としたドツト字形拡
大縮小方式を提供することを目的とする。
In view of the above-mentioned drawbacks of the conventional art, the present invention provides a dot-shaped enlargement/reduction method that eliminates the disturbance of the line width due to enlargement or reduction of the dot-shaped shape, and enables thick or thin enlargement/reduction with a small number of conversion tables. The purpose is to

〔発明の要点〕[Key points of the invention]

上記目的は本発明によれば、一辺がmドツトで構成され
る文字パターンデータを記憶する第1のバッファと、一
辺がnドツトで構成される文字パターンデータを記憶す
る第2のバッファと、一辺が前記mとnの少なくとも最
小公倍数のpドツトで構成される文字パターンデータを
記憶する第3のバッファと、前記第1のバッファに格納
されている文字パターンデータの各1ドツトを前記第3
のバッファに対応させて一辺をe / m倍のドツトに
して前記第3のバッファに格納する展開回路と。
According to the present invention, the above object is achieved by providing a first buffer for storing character pattern data having m dots on one side, a second buffer storing character pattern data having n dots on one side, and a third buffer for storing character pattern data consisting of p dots that are at least the least common multiple of said m and n;
an expansion circuit that stores dots on one side of the third buffer in correspondence with the third buffer by e/m times the number of dots;

該展開回路によって第3のバッファに格納された文字パ
ターンデータの一辺をβ/nドツト単位で読出すととも
に、3売出したドツトの白あるいは黒のデータ数を判別
し、特定数以上の白あるいは黒のデータである時には前
記第2のバッファの対応するドツトに白あるいは黒のデ
ータを格納する縮小回路とより成り、n/m倍の文字パ
ターンデータを第2のバッファに発生することを特徴と
したドツト字形拡大縮小方式を提供することにより達成
される。
The expansion circuit reads out one side of the character pattern data stored in the third buffer in units of β/n dots, and also determines the number of white or black data of the three sold dots, and determines whether the number of white or black data exceeds a specific number. , the reduction circuit stores white or black data in the corresponding dot of the second buffer, and generates n/m times as much character pattern data in the second buffer. This is accomplished by providing a dot-shaped scaling scheme.

〔実  施  例〕〔Example〕

以下11図面を用いて本発明の詳細な説明する。 The present invention will be explained in detail below using 11 drawings.

第1図は本発明の実施例の回路構成図、第2図は本発明
の基本原理を説明するバッファ構成図である。入カバソ
ファ1は図示しない回路より入力する文字パターンデー
タ(黒を“1”、白を“0”)を記憶するものであり、
第2図に示すようにm X mビット (1ビツトは1
ドツトに対応)より構成される。展開回路3は、入カバ
ソファ1内の各ビットデータすなわち文字ビットデータ
をビット単位で順次読出し、ビットが“1”すなわちド
ツトが黒の時に展開パターンメモリ2より展開パターン
を読出し、中間バッファ4の対応する位置に格納する処
理を行う。
FIG. 1 is a circuit configuration diagram of an embodiment of the present invention, and FIG. 2 is a buffer configuration diagram explaining the basic principle of the invention. The input cover sofa 1 stores character pattern data (“1” for black and “0” for white) input from a circuit not shown.
As shown in Figure 2, m x m bits (1 bit is 1
(corresponding to a dot). The expansion circuit 3 sequentially reads each bit data, that is, the character bit data, in the input cover sofa 1 bit by bit, reads the expansion pattern from the expansion pattern memory 2 when the bit is "1", that is, the dot is black, and stores the corresponding pattern in the intermediate buffer 4. Perform processing to store the data in the specified location.

第3図は展開回路3の動作処理の詳細なフローチャート
である。入カバソファ1に文字パターンデータが格納さ
れ制御回路8より処理開始信号が加わると第3図に示す
動作処理を開始する。先ず。
FIG. 3 is a detailed flowchart of the operation processing of the expansion circuit 3. When character pattern data is stored in the input cover sofa 1 and a processing start signal is applied from the control circuit 8, the operation processing shown in FIG. 3 is started. First.

中間バッファ4をクリアS1する。このクリアS1によ
って中間バッファ4は全ビットが0となる。そして、展
開回路3内に有するポインタX、N。
Clear intermediate buffer 4 S1. By this clearing S1, all bits of the intermediate buffer 4 become 0. Then, the pointers X and N that are included in the expansion circuit 3.

Y、NをOにする(S2)。この処理St、S2は1文
字の展開に対するイニシャル処理である。次にポインタ
X :u + Y INで指示される入カバソファ1の
1ビツトを読出すとともにその値が“1”であるかを判
別S3する。“1″である(Y)ならば、そのlビット
に対応する文字パターンのドツトは黒であるので、中間
バッファ4の対応する位置に黒すなわち“1”を書込む
ための処理を行う。
Set Y and N to O (S2). These processes St and S2 are initial processes for expansion of one character. Next, 1 bit of the input buffer 1 indicated by the pointer If it is "1" (Y), the dot of the character pattern corresponding to the l bit is black, so processing is performed to write black, that is, "1", to the corresponding position in the intermediate buffer 4.

先ず、入カバソファ1より読出したドツトに対応する中
間バッファ4のアドレスX。tlTIyt)u□を求め
る(S4)。第2図に示すように中間バッファ4の大き
さは入カバソファの大きさのN倍であるので、Xo、A
=X、NXN、YouT=Y、NXNによって求められ
る。尚+  X0IJT+ y、、□は展開した時の特
定ドツトアドレス(本発明の実施例では展開した左上部
の1ドツトの中間バッファのアドレスを指す)である。
First, the address X of the intermediate buffer 4 corresponding to the dot read out from the input cover sofa 1. tlTIyt)u□ is calculated (S4). As shown in FIG. 2, the size of the intermediate buffer 4 is N times the size of the inlet sofa, so Xo, A
=X, NXN, YouT=Y, NXN. Note that +

そして次にアドレスX。LIT+  you’rを起点
として中間バッファ4上の領域に展開パターンメモリの
内容をオア加算する(S5)。第4図(a)は。
And then address X. Starting from LIT+you'r, the content of the developed pattern memory is OR-added to the area on the intermediate buffer 4 (S5). Figure 4(a) is.

展開パターンメモリの内容を表す図、第4図(b)は中
間バッファ4にオア加算される位置関係を表す図である
。なお、第4図においては入カバソファ1を3倍する場
合すなわち、N=3である場合を表している。展開パタ
ーンメモリ2のドツトaが中間バッファ4のX。U71
 yolJTの位置に対応する。
FIG. 4(b), which is a diagram showing the contents of the expanded pattern memory, is a diagram showing the positional relationship of OR addition to the intermediate buffer 4. In addition, FIG. 4 shows the case where the number of covered sofas 1 is multiplied by three, that is, the case where N=3. Dot a in the expanded pattern memory 2 is X in the intermediate buffer 4. U71
Corresponds to the position of yolJT.

本発明の実施例においては、展開パターンメモリ2はN
XN (第4図においては3×3)ドツトの外周囲(斜
線部)をも拡大の対象として展開パターンメモリ2の内
容と中間バッファ4にすでに格納されている内容をオア
加算して中間バッファ4に格納する構成となっている。
In the embodiment of the present invention, the expanded pattern memory 2 has N
XN (3×3 in FIG. 4) The outer periphery (shaded area) of the dot is also subject to enlargement, and the contents of the expansion pattern memory 2 and the contents already stored in the intermediate buffer 4 are OR-added to the intermediate buffer 4. It is configured to be stored in .

後述するが2斜線部は太字や細字又は横方向のみ太字化
等によってそれらの値は異なる。尚、中心部は全て1で
ある。
As will be described later, the values of the two diagonal lines differ depending on whether the characters are bold or thin, or only in the horizontal direction are made bold. Note that all values in the center are 1.

オア加算が終了すると、X、、をインクリメント(X、
N=X、N+ 1)S sする。
When the OR addition is completed, increment X, (X,
N=X, N+ 1) S s.

一方6判別S3において、ポインタX、N、Y、Nで指
示される入カバソファ1の1ビツトが“1”でない(N
o>すなわち“0”であった時には。
On the other hand, in 6 determination S3, 1 bit of input buffer 1 indicated by pointers X, N, Y, N is not "1" (N
o> That is, when it is "0".

このドツトは白であるので何らの処理をも行わず。Since this dot is white, no processing is performed on it.

前述した処理S6を実行する。この処理S6は。The process S6 described above is executed. This process S6 is.

次の入カバソファを処理するためのポインタの移動であ
る。次にポインタX iNがmより小であるかを判別(
S7)する。小である(Y)ならば再度処理S3より繰
り返す。この繰り返しによって横一列の展開がなされる
。小でない(No)ならばX 、、、 = mであるの
で、入力バッファの横一列の展開が終了しており、つぎ
の横一列を指示するように、X、Nをo、y、Nをイン
クリメント(Y、N=Y、N+1)S eする。そして
、Y方向の処理をも全て終了していないかの判別(S9
)すなわちy、N<mであるかの判別を行う。Y 、N
< mである(Y)の時には再度、処理S3より実行す
る。この処理S3の再度の実行によって横一列のドツト
の展開がm回繰り返される。Y、N<mでない時(NO
)には全ての入力が完了しているので。
This is the movement of the pointer to process the next input cover sofa. Next, determine whether the pointer X iN is smaller than m (
S7) Do it. If it is smaller (Y), the process is repeated from step S3. By repeating this process, a horizontal line is developed. If it is not small (No), then X, ,, = m, so the expansion of one horizontal row of the input buffer is complete, and in order to specify the next horizontal row, X, N are changed to o, y, N. Increment (Y, N=Y, N+1) Se. Then, it is determined whether all the processing in the Y direction has been completed (S9
) That is, it is determined whether y, N<m. Y,N
<m (Y), the process is executed again from step S3. By executing this process S3 again, the development of the horizontal row of dots is repeated m times. When Y, N < m (NO
) has all input completed.

展開処理を終了(END)する。The expansion process is ended (END).

前述した展開回路3の処理によって中間バッファ4には
入力バッファ1内のドツト文字データが展開されて格納
される。
The dot character data in the input buffer 1 is expanded and stored in the intermediate buffer 4 through the processing of the expansion circuit 3 described above.

第1図にもどって説明する。展開回路3によって中間バ
ッファ4にデータが格納されると縮小回路5が動作する
。縮小回路5は中間バッファの内容を出カバソファ7の
ドツトに対応したドツト領域単位で読出し、そのドツト
領域内に特定数(闇値レジスタ9に格納されている値)
以上“1”が存在した時にのみ、対応するドツトを“1
”として出カバソファ7に格納する。ドツト領域単位と
は、出カバソファ7内の1ドツトに中間バッファのMX
Mドツトが対応する領域を1単位としたものである。本
発明は中間バッファ4は少なくとも一辺がmとnの最小
公倍数のドツトより構成されるものであり、第2図に示
すように本発明の実施例においてはmxN−n×間の関
係が成りたっている。すなわち、中間バッファをMXM
で分割することにより、nXnの文字データが得られる
のである。
The explanation will be given by returning to FIG. When data is stored in the intermediate buffer 4 by the expansion circuit 3, the reduction circuit 5 operates. The reduction circuit 5 reads the contents of the intermediate buffer in units of dot areas corresponding to the dots of the output buffer sofa 7, and stores a specific number (value stored in the dark value register 9) in the dot area.
Only when there is more than one “1”, the corresponding dot is set to “1”.
” in the output sofa 7.The dot area unit means that one dot in the output sofa 7 stores MX of the intermediate buffer.
The area to which the M dots correspond is defined as one unit. According to the present invention, the intermediate buffer 4 has at least one side made up of dots that are the least common multiple of m and n, and as shown in FIG. There is. That is, the intermediate buffer is MXM
By dividing by , nXn character data can be obtained.

第5図は縮小回路5の動作処理の詳細なフローチャート
図である。縮小回路5は前述した展開回路3の動作の処
理 S3.Sa、S5が縮小のための処理となったもの
である。先ず、出カバソファ7をクリア(S11)する
。そして縮小回路5内に有するポインタX′。0工、 
 Y’oゆをクリア(S12)する。この処理Sl+、
312は中間バッファ4内に格納された文字ドツトデー
タを縮小するためのイニシャル処理である。次にポイン
タX ’ t)IJTI  Y ’ ou’rをM倍し
 X l :h+ 、 Y l :Nに格納する(S1
3)。(X’、N、Y’、Nは中間バッファ4の特定ア
ドレスを指す)。尚、ポインタX ’ 0LITI Y
 ’いをM倍した値は中間バッファ4内のドツトをMX
Mドツトで分割した時の左上部のドツトアドレスである
。次にアドレスx’、N。
FIG. 5 is a detailed flowchart of the operation processing of the reduction circuit 5. The reduction circuit 5 processes the operation of the expansion circuit 3 described above S3. Sa and S5 are processes for reduction. First, the exit cover sofa 7 is cleared (S11). and a pointer X' included in the reduction circuit 5. 0 engineering,
Clear Y'oyu (S12). This processing Sl+,
312 is an initial process for reducing the character dot data stored in the intermediate buffer 4. Next, pointer X't) IJTI Y'ou'r is multiplied by M and stored in
3). (X', N, Y', N refer to specific addresses of intermediate buffer 4). Furthermore, the pointer X' 0LITI Y
The value multiplied by M is the dot in intermediate buffer 4.
This is the upper left dot address when divided by M dots. Next, address x', N.

Y ’ iNを起点(分割した時の左上部のドツト)と
して、中間バッファ4内のMXMドツトの領域内の“1
”のドツト数りを求める(S+a)。展開回路3におい
ては対応する1ドツトが1′の時にはパターンメモリ2
の内容(パターン)を読出して展開しているが、縮小回
路5においてはX ’ :N+  Y ’ iNを起点
としてMXMドツトの領域内の“1”のドツト数りを求
め、その値が闇値レジスタ9に格納されている閾値Sと
比較しく515)、1”のドツト数りが闇値S以上の時
(Y)には出カバソファ7のX′。7.Y′ケのアドレ
スのドツトに“1”を格納する(S+s)。
With Y'iN as the starting point (the upper left dot when divided), "1" in the MXM dot area in the intermediate buffer 4 is
” (S+a). In the expansion circuit 3, when the corresponding one dot is 1', the pattern memory 2
The content (pattern) of Compared to the threshold value S stored in the register 9 (515), when the number of 1" dots is greater than the dark value S (Y), the dots at the address X'.7.Y' of the output cover sofa 7 are Store “1” (S+s).

面、前述した入力バッファ1.中間バッファ4゜出力バ
ッファ7はメモリであり、それぞれ有するドツトはそれ
ぞれ1ビツトに対応している。たとえば6×6ド・ノド
の大力バッファ1とは6ビ、7ト×6ビツト構成のメモ
リである。
1. Input buffer 1. The intermediate buffer 4 and the output buffer 7 are memories, each having a dot corresponding to one bit. For example, the 6×6 memory buffer 1 is a memory with a 6-bit, 7-bit×6-bit configuration.

一方、前述した比較(315)において“1”のドツト
数りが閾値Sより小さい時(No)には出カバソファ7
のX′。1.Y′。のアドレスに“1”を格納する処理
S’sをスキップする。すなわち、中間バッファ4で区
切った領域内が白に近いとして、対応するドツトに何も
格納しない。
On the other hand, in the above-mentioned comparison (315), when the number of dots of "1" is smaller than the threshold value S (No), the output cover sofa 7
X′. 1. Y'. The process S's of storing "1" in the address of is skipped. That is, assuming that the area divided by the intermediate buffer 4 is close to white, nothing is stored in the corresponding dot.

あらかじめ、縮小回路5が動作開始した時に全てをクリ
ア“0”しているので何も格納しないということは“0
”を格納したことと等価である。
When the reduction circuit 5 starts operating, everything is cleared to "0", so storing nothing means "0".
This is equivalent to storing ”.

次にX′。、をインクリメントする(SI 7)ととも
にX ’ 0LITがnより小であるか否かを判別する
(S18)。小である(Y)時には再度処理313より
繰り返す。インクリメント処理S17と比較処理S+e
によって出カバソファ7における横一列のドツトの縮小
が繰り返される。横一列の縮小が全て終了した時にはX
′。いはnと等しくなるので2判別S+eの結果は(N
o)となり1次にX ’ OUTをクリア(O”)L、
Y’oU、をインクリメントする(S19)。そしてY
 # ou工がmより小であるかを比較(S 20) 
l、、  nよりY′o□が小の時(Y)には再度S1
3より繰り返す。この処理によって次の横一列の縮小が
順次繰り返されるようになる。判別S20がNoの時に
は横一列の縮小が順次繰り返される。そしてn回行った
時には出カバソファ7のnXnドツトの全てに対して縮
小判別処理がなされたわけであり、縮小回路5ば動作を
終了する(END)。
Next is X'. , is incremented (SI7), and it is determined whether or not X'0LIT is smaller than n (S18). When it is smaller (Y), the process 313 is repeated again. Increment processing S17 and comparison processing S+e
The reduction of the horizontal row of dots on the output sofa 7 is repeated. When all horizontal rows have been reduced, X
'. is equal to n, so the result of 2 discrimination S+e is (N
o) and clear the first X' OUT (O") L,
Y'oU is incremented (S19). And Y
# Compare whether ou is smaller than m (S 20)
When Y′o□ is smaller than l, , n (Y), S1 again
Repeat from 3. Through this process, the reduction of the next horizontal row is sequentially repeated. When the determination S20 is No, the reduction in one horizontal row is sequentially repeated. When the process is repeated n times, the reduction determination process has been performed on all nXn dots of the output cover sofa 7, and the reduction circuit 5 ends its operation (END).

前述した第1図の動作により入力バッファ1に格納され
たm x mドツトの文字パターンはnxnドツトの文
字パターンに変化したことになる。尚。
As a result of the above-described operation shown in FIG. 1, the m x m dot character pattern stored in the input buffer 1 is changed to an n x n dot character pattern. still.

m > nの時には縮小であり、m=nの時には同一ス
ケ−)Lzm<nの時には拡大となる。第1図に示した
本発明の実施例では、展開において、大力バッファに対
応する中間バッファの例えばNXNドツトの外周囲をも
考慮して“1”とする場合があるので(パターンメモリ
2の内容によって異なる)m、 = nであってもその
出力は同一ではなく、太くしたり細(したりすることが
できる。
When m>n, it is a reduction; when m=n, it is the same scale; when Lzm<n, it is an expansion. In the embodiment of the present invention shown in FIG. 1, during expansion, the outer periphery of, for example, an NXN dot in the intermediate buffer corresponding to the large-power buffer may be taken into consideration and set to "1" (the contents of the pattern memory 2). The output is not the same even if m and = n (depending on the output), and can be made thicker or thinner.

尚、第1図において、制御回路8は展開回路3゜縮小回
路5に接続されているが、これは前述した動作をそれぞ
れ開始させるだめのものである。
In FIG. 1, the control circuit 8 is connected to the expansion circuit 3° reduction circuit 5, but this is only for starting the above-mentioned operations.

第6図は入カバソファ1を6×6ドツト出カバソフア7
を9×9ドツトとした時の中間バッファ4のドツトを表
す説明図である。
Figure 6 shows the input cover sofa 1 and the output cover sofa 7 with 6 x 6 dots.
FIG. 4 is an explanatory diagram showing dots in the intermediate buffer 4 when the dots are 9×9 dots.

この時の中間バッファ4は18 X 18となっている
The intermediate buffer 4 at this time is 18×18.

これは中間バッファ4は入力バッファ1の一辺のドツト
数と出カバソファ7の一辺のドツト数の最小公倍数ある
いは公倍数とするためである。そして入力バッファ1の
1ドツトが中間バッファ4の3×3ドツトに対応し、中
間バッファ4の2×2ドツトが出カバソファ7の1ドツ
トに対応している。すなわち、大力バッファに比べその
ドツト数は1,5倍となっている。
This is because the intermediate buffer 4 is set to the least common multiple or common multiple of the number of dots on one side of the input buffer 1 and the number of dots on one side of the output buffer sofa 7. One dot in the input buffer 1 corresponds to a 3×3 dot in the intermediate buffer 4, and a 2×2 dot in the intermediate buffer 4 corresponds to one dot in the output cover sofa 7. In other words, the number of dots is 1.5 times that of the large buffer.

前述したように本発明における展開は太めあるいは細め
さらには横方向にのみ太めや縦方向への太め等行うこと
ができると説明したが、これはパターンメモリ2に格納
されている展開パターンと閾値Sによって決定される。
As mentioned above, it was explained that the expansion in the present invention can be done thicker or thinner, thicker only in the horizontal direction, thicker in the vertical direction, etc., but this depends on the expansion pattern stored in the pattern memory 2 and the threshold value S. determined by

第7図(a)、第8図(a)は32 X 32ドツトの
同一のパターンであり“楽”のドツト表示のものである
。これを第7図(d)、第8図(d)に示すように展開
パターンメモリでそれぞれ展開したものが第7図(b)
、第8図(b)である。第7図、第8図においては出カ
バソファのドツトは48 X 48ドツトとなっている
ので、中間バッファは96 x 96に構成されている
。そしてそれぞれ第7図は闇値をS=3として、また第
8図は闇値をS=4として縮小した場合である。そして
得られた結果が第7図(C)、第8図(C)である。元
の文字パターンデータは同じであっても、拡大した結果
は展開パターンデータと闇値によって異なっている。
FIG. 7(a) and FIG. 8(a) are the same pattern of 32×32 dots, and are the dots of "easy". This is developed in the developed pattern memory as shown in FIG. 7(d) and FIG. 8(d), respectively, as shown in FIG. 7(b).
, FIG. 8(b). In FIGS. 7 and 8, the dots on the output sofa are 48 x 48 dots, so the intermediate buffer is configured as 96 x 96 dots. FIG. 7 shows the case where the darkness value is reduced to S=3, and FIG. 8 shows the case where the darkness value is reduced to S=4. The obtained results are shown in FIG. 7(C) and FIG. 8(C). Even if the original character pattern data is the same, the enlarged results differ depending on the developed pattern data and the darkness value.

例えば、第7図(d)の場合には展開パターンデータは
外周囲右辺が“1”となるように設定されているので得
られた文字パターンは横方向に太く表現された拡大パタ
ーンを得ている。また第8図(dlの場合には縦方向す
なわち上下方向の外周囲を供に“1”とし、さらに右辺
方向の外周囲を“1”としているので、第9図(C)の
ように特に縦方向に太くなっている。尚、この時の闇値
は第7図の場合より大きくなっている(大となると字は
全体的に細(なる)ので、展開における文字線の太めが
横方向に対して打ち消され、結果的には全体的に同−太
さの文字が得られている。
For example, in the case of Fig. 7(d), the developed pattern data is set so that the right side of the outer periphery is "1", so the obtained character pattern is an enlarged pattern that is expressed thickly in the horizontal direction. There is. In addition, in the case of Figure 8 (dl), both the outer circumference in the vertical direction, that is, the upper and lower directions, are set to "1", and the outer circumference in the right side direction is set to "1", so especially as shown in Figure 9 (C), It is thicker in the vertical direction.The darkness value at this time is larger than in the case of Figure 7. As a result, characters of the same thickness are obtained as a whole.

〔発明の効果〕〔Effect of the invention〕

以上、述べたように本発明は展開パターンメモリ内に有
する展開パターンを用いて展開を行い。
As described above, the present invention performs expansion using the expansion pattern stored in the expansion pattern memory.

さらに“1”であるドツトを求めて闇値によって   
・出力する各ドツトの“0”、1”を決定しているので
7本発明によれば太めの字や細めの字への拡大さらには
縮小等が任意に決められるドツト字形拡大、縮小方式を
得ることができる。さらに本発明は入カバソファと出カ
バソファの各辺のドツト数の少なくとも最小公倍数のド
ツトで一辺を構成する中間バッファを設けているで1本
発明によれば、任意の拡大あるいは縮小率のパターンを
得ることができる。さらに2本発明によれば、多種類の
展開パターンメモリを有する必要がないので。
Furthermore, find the dot that is “1” and use the darkness value.
・Since "0" and "1" are determined for each dot to be output, the present invention provides a method for enlarging and reducing the dot shape in which enlargement to thicker or thinner characters, as well as reduction, etc., can be arbitrarily determined. Furthermore, the present invention provides an intermediate buffer whose one side is composed of at least the least common multiple of the number of dots on each side of the input and output cover sofas. Furthermore, according to the present invention, it is not necessary to have many types of expansion pattern memories.

記憶容量が少なくて横方向等各方向への太めや細め文字
さらには全体的な太めや細めを行った文字パターンデー
タを得るドツト字形拡大縮小方式が可能となる。
With a small storage capacity, it is possible to use a dot-shaped enlargement/reduction method to obtain character pattern data in which characters are made thicker or thinner in each direction such as the horizontal direction, or character pattern data is made thicker or thinner overall.

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

第1図は本発明の実施例の回路構成図。 第2図は本発明の基本原理を説明するバッファ構成図。 第3図は展開回路の動作処理の詳細なフローチャート。 第4図(81はパターンメモリの内容を表す図。 第4図(b)はバッファにオア加算される位置関係を表
す図。 第5図は縮小回路の動作処理の詳細なフローチャート 第6図は入カバソファ、出カバソファ、中間バッファの
各辺を6ドツト 9ドツト、18ドツトとした時のバッ
ファ構成の具体例図。 第7図、第8図(at、 (b)、 fc)、 (d)
は本発明の実施例におけるパターン“楽”を展開縮小し
た時の各バッファのパターン図と展開メモリ内の展開パ
ターンデータを表すデータ図である。 1・・・入カバソファ。 2・・・パターンメモリ。 3・・・展開回路。 4・・・中間バッファ。 5・・・縮小回路。 7・・・出力バッファ。 8・・・制御回路。 9・・・闇値レジスタ。 特許 出願人   カシオ計算機株式会社第1図 第2図 第3図 (b) 第4図 第5図 第6図 (d)
FIG. 1 is a circuit configuration diagram of an embodiment of the present invention. FIG. 2 is a buffer configuration diagram explaining the basic principle of the present invention. FIG. 3 is a detailed flowchart of the operation processing of the expansion circuit. Fig. 4 (81 is a diagram showing the contents of the pattern memory. Fig. 4 (b) is a diagram showing the positional relationship of OR addition to the buffer. Fig. 5 is a detailed flowchart of the operation processing of the reduction circuit. Fig. 6 is Specific examples of buffer configurations when each side of the in-cover sofa, out-cover sofa, and intermediate buffer is 6 dots, 9 dots, and 18 dots. Figures 7 and 8 (at, (b), fc), (d)
1 is a pattern diagram of each buffer and a data diagram showing the expanded pattern data in the expanded memory when the pattern "Raku" is expanded and reduced in the embodiment of the present invention. 1. Hippo sofa. 2...Pattern memory. 3... Deployment circuit. 4...Intermediate buffer. 5...reduction circuit. 7...Output buffer. 8...Control circuit. 9...Dark value register. Patent Applicant Casio Computer Co., Ltd. Figure 1 Figure 2 Figure 3 (b) Figure 4 Figure 5 Figure 6 (d)

Claims (3)

【特許請求の範囲】[Claims] (1)一辺がmドットで構成される文字パターンデータ
を記憶する第1のバッファと、一辺がnドットで構成さ
れる文字パターンデータを記憶する第2のバッファと、
一辺が前記mとnの少なくとも最小公倍数のlドットで
構成される文字パターンデータを記憶する第3のバッフ
ァと、前記第1のバッファに格納されている文字パター
ンデータの各1ドットを前記第3のバッファに対応させ
て一辺をl/m倍のドット数にして前記第3のバッファ
に格納する展開回路と、該展開回路によって第3のバッ
ファに格納された文字パターンデータの一辺をl/nド
ット単位で読出すとともに、読出したドットの黒のデー
タ数を判別し、特定数以上の黒のデータである時には前
記第2のバッファの対応するドットに黒のデータを格納
する縮小回路とより成り、n/m倍の文字パターンデー
タを第2のバッファに発生することを特徴としたドット
字形拡大縮小方式。
(1) A first buffer that stores character pattern data that has m dots on one side, and a second buffer that stores character pattern data that has n dots on one side;
a third buffer for storing character pattern data each side of which is composed of l dots of at least the least common multiple of m and n; an expansion circuit that increases the number of dots on one side by l/m times the number of dots and stores it in the third buffer in correspondence with the buffer of It consists of a reduction circuit that reads out dots in units of dots, determines the number of black data in the read dots, and stores the black data in the corresponding dots of the second buffer if the black data exceeds a specific number. , n/m times the character pattern data is generated in a second buffer.
(2)前記展開回路は第1のバッファに格納されている
文字パターンの各1ドットが黒のデータの時には第3の
バッファに対応させて1ドットを一辺がl/m倍のドッ
トにした対応ドット群の外周囲の第3のバッファに対応
する少なくとも1ドットを黒のデータとする展開パター
ンメモリを有し、第3のバッファの各ドットを読出して
前記展開パターンメモリの内容とオア加算して黒のデー
タを確実に第3のバッファに格納することを特徴とした
特許請求の範囲第1項記載のドット字形拡大縮小方式。
(2) When each dot of the character pattern stored in the first buffer is black data, the expansion circuit corresponds to the third buffer so that each dot is made into a dot whose side is l/m times larger. It has an expanded pattern memory in which at least one dot corresponding to a third buffer around the outer periphery of the dot group is set as black data, and each dot of the third buffer is read out and OR-added with the contents of the expanded pattern memory. The dot-shaped enlargement/reduction method according to claim 1, wherein black data is reliably stored in the third buffer.
(3)前記黒のデータは全て白のデータであることを特
徴とする特許請求の範囲第1項あるいは第2項記載のド
ット字形拡大縮小方式。
(3) The dot-shaped enlargement/reduction method according to claim 1 or 2, wherein all of the black data is white data.
JP60169966A 1985-08-01 1985-08-01 Dot-shaped scaling method Pending JPS6230053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60169966A JPS6230053A (en) 1985-08-01 1985-08-01 Dot-shaped scaling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60169966A JPS6230053A (en) 1985-08-01 1985-08-01 Dot-shaped scaling method

Publications (1)

Publication Number Publication Date
JPS6230053A true JPS6230053A (en) 1987-02-09

Family

ID=15896117

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60169966A Pending JPS6230053A (en) 1985-08-01 1985-08-01 Dot-shaped scaling method

Country Status (1)

Country Link
JP (1) JPS6230053A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0281657A (en) * 1988-09-20 1990-03-22 Matsushita Graphic Commun Syst Inc Character font formation
JPH04208473A (en) * 1990-11-30 1992-07-30 Fujitsu Ltd Character-code/image-data conveter and thermal recorder equipped therewith

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0281657A (en) * 1988-09-20 1990-03-22 Matsushita Graphic Commun Syst Inc Character font formation
JPH04208473A (en) * 1990-11-30 1992-07-30 Fujitsu Ltd Character-code/image-data conveter and thermal recorder equipped therewith

Similar Documents

Publication Publication Date Title
US4879666A (en) Information output device having data buffer for performing both character positioning and character expansion/compression
JPS6230053A (en) Dot-shaped scaling method
JPS60241156A (en) Word processor
JP2502530B2 (en) Printer
JP2674887B2 (en) Word processor
JP2846357B2 (en) Font memory device
JPS61158384A (en) character processing device
JP3035126B2 (en) Information processing device
JPS59214893A (en) Character font reduction method
JP2698348B2 (en) Character processor
JP2612402B2 (en) Display control method
JP2556488B2 (en) Character processor
JPS6031178A (en) Display controller
JPH026995A (en) Display device
JP2611971B2 (en) Output device
JPS59131977A (en) Graphic expansion/reduction processor
JPS61148487A (en) Expander/reducer
JPS61213886A (en) Character pattern generator
JPH0516451A (en) Printer
JPS61217093A (en) Character pattern generator
JPS62178354A (en) Character generation method
JPS6282046A (en) High-speed enlarged printing device using external characters
JPS5822441A (en) Special symbol output system of word processor
JPS61210391A (en) character generator
JPH0127469B2 (en)