JPH08227456A - Device and method for smoothing dot pattern - Google Patents

Device and method for smoothing dot pattern

Info

Publication number
JPH08227456A
JPH08227456A JP7255759A JP25575995A JPH08227456A JP H08227456 A JPH08227456 A JP H08227456A JP 7255759 A JP7255759 A JP 7255759A JP 25575995 A JP25575995 A JP 25575995A JP H08227456 A JPH08227456 A JP H08227456A
Authority
JP
Japan
Prior art keywords
dot
pattern
dots
interpolation
colored
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
JP7255759A
Other languages
Japanese (ja)
Inventor
Hiroshi Yokota
浩 横田
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 JP7255759A priority Critical patent/JPH08227456A/en
Publication of JPH08227456A publication Critical patent/JPH08227456A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

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

Abstract

PURPOSE: To speed up a smoothing process in an enlarging process for the dot pattern. CONSTITUTION: A basic font is enlarged twice longitudinally and laterally and expanded on a memory. It is decided whether each dot of the basic font is white or black (step S2) and when the dot is white, it is decided whether or not the dots above and below and on the right and left sides of the dot correspond to one of four basic patterns A-D of black on diagonals (step S3). When so, a specific interpolating process for adding a black dot is performed for the enlarged dot pattern (step S4). When the dot is black, it is decided whether or not the three dots adjoining to the dot vertically, horizontally, and obliquely correspond to one of four basic patterns A'-D'. When so, a specific interpolating process for converting the black dots of the enlarged font pattern into white dots is performed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、ドットパターン
を拡大し、拡大した後のドットパターンをスムージング
する装置及び方法に関し、特に、処理時間の短いスムー
ジング装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and method for enlarging a dot pattern and smoothing the enlarged dot pattern, and more particularly to a smoothing apparatus and method with a short processing time.

【0002】[0002]

【従来の技術】従来のワードプロセッサ等の印刷装置
は、文字フォントを記憶したフォントメモリを備え、こ
のフォントメモリをアクセスして被印刷データをドット
パターンに変換し、これを印刷している。文字サイズを
拡大して印刷する場合、拡大されたフォントをそのまま
印刷すると文字の端部、斜線部等に角や段差ができて見
苦しくなるため、スムージング処理を施すのが一般的で
ある。
2. Description of the Related Art A conventional printing device such as a word processor is provided with a font memory for storing character fonts. The font memory is accessed to convert print data into a dot pattern and print the dot pattern. When printing with enlarged character size, smoothing processing is generally performed because if the enlarged font is printed as it is, corners and steps are formed at the edges and diagonal portions of the character and it is unsightly.

【0003】従来のスムージング方法は、拡大前の各ド
ットについて、図37(A)に示すように、その周囲の
8ドットが補間を必要とする所定のパターンに該当する
か否かを判別し、該当する場合には、図37(B)又は
(C)に示すように、拡大後のドットパターンに所定の
補間パターンを当てはめている。
In the conventional smoothing method, for each dot before enlargement, as shown in FIG. 37 (A), it is determined whether or not the surrounding 8 dots correspond to a predetermined pattern requiring interpolation, When it corresponds, as shown in FIG. 37 (B) or (C), a predetermined interpolation pattern is applied to the enlarged dot pattern.

【0004】[0004]

【発明が解決しようとする課題】しかし、従来のスムー
ジング方法の場合、補間の必要のないドットについて
も、周囲の8つのドットについて補間が必要な所定のパ
ターンに該当するか否かを判別する必要がある。このた
め、判別に時間がかかり、スムージング処理に長時間を
要するという問題がある。
However, in the case of the conventional smoothing method, it is necessary to determine whether or not dots that do not require interpolation correspond to a predetermined pattern that requires interpolation for eight surrounding dots. There is. Therefore, there is a problem in that it takes a long time to make a distinction and a long time is required for the smoothing process.

【0005】この発明は上記実状に鑑みてなされたもの
で、ドットパターンの拡大処理において、拡大されたド
ットパターンの画質を改善するためのスムージング処理
を高速化することを目的とする。
The present invention has been made in view of the above situation, and an object thereof is to speed up smoothing processing for improving the image quality of an enlarged dot pattern in the dot pattern enlargement processing.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、この発明の第1の観点にかかるドットパターンスム
ージング装置は、基本フォント等の元絵のドットパター
ンを記憶する元絵記憶手段と、前記元絵記憶手段に記憶
された元絵のドットパターンを拡大する拡大手段と、前
記拡大手段により拡大されたドットパターンを記憶する
拡大パターン記憶手段と、前記元絵記憶手段に記憶され
た元絵の各ドットについて、該ドットの値を判別する値
判別手段と、前記値判別手段の判別値がスムージングの
対象となりうる、例えば、非着色に対応する第1の値の
場合に、該ドットの上下左右のドットが予め定められた
4つの基本パターンのいずれかに該当するか否かを判別
するパターン判別手段と、前記パターン判別手段によ
り、処理対象ドットの上下左右のドットが前記4つのパ
ターンのいずれかに該当すると判断されたとき、着色ド
ットを追加する所定の補間処理を前記拡大パターン記憶
手段に記憶されたドットパターンの対応ドットに対して
実行する補間手段と、を備えることを特徴とする。
In order to achieve the above object, a dot pattern smoothing apparatus according to a first aspect of the present invention comprises an original picture storage means for storing a dot pattern of an original picture such as a basic font, and Enlarging means for enlarging the dot pattern of the original picture stored in the original picture storing means, enlarging pattern storing means for storing the dot pattern enlarged by the enlarging means, and for the original picture stored in the original picture storing means For each dot, a value discriminating unit that discriminates the value of the dot, and the discriminant value of the value discriminating unit can be an object of smoothing, for example, in the case of the first value corresponding to non-coloring, the upper, lower, left, and right sides of the dot. Of the dots to be processed by the pattern discrimination means for discriminating whether or not each of the dots corresponds to any of the four predetermined basic patterns. When it is determined that the lower left and right dots correspond to any of the four patterns, the interpolation for executing a predetermined interpolation process for adding colored dots is performed on the corresponding dot of the dot pattern stored in the enlarged pattern storage means. Means and are provided.

【0007】また、この発明の第2の観点にかかるドッ
トパターンスムージング装置は、基本フォント等の元絵
のドットパターンを記憶する元絵記憶手段と、前記元絵
記憶手段に記憶された元絵のドットパターンを拡大する
拡大手段と、前記拡大手段により拡大されたドットパタ
ーンを記憶する拡大パターン記憶手段と、前記元絵記憶
手段に記憶された元絵の各ドットについて、該ドットの
値を判別する値判別手段と、前記値判別手段の判別値が
スムージングの対象となりうる、例えば、着色に対応す
る値の場合に、該ドットの上下左右及び斜方向に隣接す
るドットが予め定められた4つの基本パターンのいずれ
かに該当するか否かを判別するパターン判別手段と、前
記パターン判別手段により、処理対象ドットの上下左右
及び斜方向に隣接するドットが前記4つのパターンのい
ずれかに該当すると判断されたとき、着色ドットを非着
色ドットに変換する所定の補間処理を前記拡大パターン
記憶手段に記憶されたドットパターンの対応ドットに対
して実行する補間手段と、を備えることを特徴とする。
A dot pattern smoothing device according to a second aspect of the present invention is an original picture storing means for storing a dot pattern of an original picture such as a basic font, and an original picture stored in the original picture storing means. An enlargement unit that enlarges the dot pattern, an enlargement pattern storage unit that stores the dot pattern that is enlarged by the enlargement unit, and a dot value of each dot of the original picture stored in the original picture storage unit are determined. When the value discriminating unit and the discriminant value of the value discriminating unit can be a target of smoothing, for example, in the case of a value corresponding to coloring, four basic dots which are adjacent in the vertical, horizontal, and diagonal directions of the dot are predetermined. A pattern discriminating unit that discriminates whether or not any of the patterns corresponds, and the pattern discriminating unit allows the dots to be processed to be adjacent in the vertical and horizontal directions and in the oblique direction. When it is determined that the corresponding dot corresponds to any of the four patterns, a predetermined interpolation process for converting a colored dot into a non-colored dot is performed on the corresponding dot of the dot pattern stored in the enlarged pattern storage means. And an interpolating means for performing.

【0008】また、上記目的を達成するため、この発明
の第3の観点にかかるドットパターンスムージング方法
は、元絵のドットパターンを拡大し、元絵の各ドットに
ついて、該ドットの値が「1」であるか「0」であるか
を判別し、「0」の場合に、該ドットの上及び左隣のド
ットが「1」、上及び右隣のドットが「1」、下及び左
隣のドットが「1」、下及び右隣のドットが「1」のい
ずれかに該当するか否かを判別し、該当する場合に、
「1」のドットを追加する補間処理を拡大されたドット
パターンに対して実行する、ことを特徴とする。
In order to achieve the above object, the dot pattern smoothing method according to the third aspect of the present invention enlarges the dot pattern of the original picture, and for each dot of the original picture, the value of the dot is "1". , Or “0”, and in the case of “0”, the dot above and to the left of the dot is “1”, the dot above and to the right of the dot is “1”, and the dot below and to the left It is determined whether or not the dot of "1" and the dots on the lower and right sides correspond to any of "1".
It is characterized in that interpolation processing for adding dots of "1" is executed for the enlarged dot pattern.

【0009】また、上記目的を達成するため、この発明
の第4の観点にかかるドットパターンスムージング方法
は、元絵のドットパターンを拡大し、元絵の各ドットに
ついて、該ドットの値が「1」であるか「0」であるか
を判別し、「1」の場合に、該ドットの上及び左隣及び
右上のドットが「0」、上及び右隣及び右上のドットが
「0」、下及び左隣及び左下のドットが「0」、下及び
右隣及び右下のドットが「0」のいずれかに該当するか
否かを判別し、該当する場合に、「1」のドットを
「0」のドットに変換する補間処理を拡大されたドット
パターンに対して実行する、ことを特徴とする。
In order to achieve the above object, the dot pattern smoothing method according to the fourth aspect of the present invention enlarges the dot pattern of the original picture, and for each dot of the original picture, the value of the dot is "1". , Or “0”, and in the case of “1”, the dots above and to the left and to the upper right of the dot are “0”, and to the above and to the right and to the upper right are “0”, It is determined whether or not the lower and left adjacent dots and the lower left dot correspond to either "0", and the lower and right adjacent dots and the lower right dot correspond to "0". It is characterized in that the interpolation processing for converting into dots of "0" is executed for the enlarged dot pattern.

【0010】上記構成とすることにより、この発明によ
れば、元絵の各ドットが所定値の場合に、その隣接ドッ
トが所定の4つの基本パターンに該当するか否かを判別
し、該当する場合のみ、補間処理を実行する。従って、
補間を必要としないドットについての処理が短時間です
み、総合的な処理時間を短くすることができる。
With the above arrangement, according to the present invention, when each dot of the original picture has a predetermined value, it is judged whether or not the adjacent dot corresponds to the predetermined four basic patterns, and it is judged. Only in this case, the interpolation process is executed. Therefore,
The processing for dots that do not require interpolation can be completed in a short time, and the overall processing time can be shortened.

【0011】[0011]

【発明の実施の形態】以下、この発明の実施の形態を図
面を参照して説明する。 (第1の実施の形態)図1はこの発明の第1の実施の形
態にかかる印刷装置の回路構成を示すブロック図であ
る。この印刷装置は、制御部11により回路各部の動作
制御がなされるもので、制御部11には、キー入力部1
2、入力データRAM13、基本フォントROM14、
拡大フォントRAM15、表示駆動部16、印刷制御部
17が接続される。表示駆動部16には表示部18が接
続され、印刷制御部17には印刷部19が接続される。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. (First Embodiment) FIG. 1 is a block diagram showing the circuit arrangement of a printing apparatus according to the first embodiment of the present invention. In this printing apparatus, the control unit 11 controls the operation of each circuit unit, and the control unit 11 includes the key input unit 1
2, input data RAM 13, basic font ROM 14,
The enlarged font RAM 15, the display drive unit 16, and the print control unit 17 are connected. A display unit 18 is connected to the display drive unit 16, and a printing unit 19 is connected to the print control unit 17.

【0012】キー入力部12は、被印刷データを作成す
るための文字・記号キー、「仮名/漢字変換」キー、カ
ーソルキー、実行キー、印刷文字のサイズを設定するた
めのサイズキー、印刷処理を開始させるための印刷キ
ー、その他種々の制御キー等を有する。入力データRA
M13は入力されたデータを記憶する。基本フォントR
OM14は、キー入力部12から入力可能なひらがな、
カタカナ、漢字、英記号、英数字、絵文字等の基本フォ
ント(元絵)をビットマップ形式で記憶する。
The key input unit 12 is a character / symbol key for creating data to be printed, a "kana / kanji conversion" key, a cursor key, an execution key, a size key for setting the size of a print character, and a print process. It has a print key for starting, and various other control keys. Input data RA
M13 stores the input data. Basic font R
The OM 14 is a hiragana that can be input from the key input unit 12.
Basic fonts (original pictures) such as katakana, kanji, English symbols, alphanumeric characters, pictograms are stored in bitmap format.

【0013】拡大フォントRAM15は、基本フォント
ROM14に記憶されている基本フォントを拡大処理し
た後のフォントをビットマップ形式で記憶する。
The enlarged font RAM 15 stores the font after the enlargement processing of the basic font stored in the basic font ROM 14 in the bitmap format.

【0014】表示部18は、例えば、ドットマトリクス
型の液晶表示装置から構成される。表示駆動部16は、
キー入力部12のキー操作に応じて制御部11から与え
られる被表示データを表示部18に表示させる。印刷部
19は、例えば、発熱ヘッドを備えるラインプリンタで
ある。印刷制御部17は、制御部11から被印刷データ
の印刷パターンが与えられると、印刷部19を制御し、
被印刷データを印刷させる。
The display unit 18 is composed of, for example, a dot matrix type liquid crystal display device. The display drive unit 16 is
Displayed data provided from the control unit 11 in response to a key operation of the key input unit 12 is displayed on the display unit 18. The printing unit 19 is, for example, a line printer including a heating head. When the print pattern of the print target data is given from the control unit 11, the print control unit 17 controls the print unit 19,
Print the data to be printed.

【0015】制御部11は、例えば、CPUやメモリを
内蔵した1チップマイクロプロセッサ等から構成され、
装置全体の動作を制御すると共に、後述する拡大処理、
スムージング処理等を行う。
The control unit 11 is composed of, for example, a one-chip microprocessor having a CPU and a memory built therein,
Controls the operation of the entire device, and expands as described below,
Performs smoothing processing.

【0016】次に、上記構成の印刷装置における各基本
フォントの拡大及びフォントスムージング処理の基本的
な考え方について説明する。この実施の形態では、各基
本フォントを縦横2×2倍、3×3倍、4×4倍に拡大
して印刷することが可能である。制御部11は、基本フ
ォントの各ドットを縦横に2×2倍、3×3倍、4×4
倍にそれぞれ拡大することにより、基本フォントを拡大
する。このように基本フォントを拡大すると、線の交差
部分や斜線に段差(ぎざぎざ)が発生し、見苦しくなる
場合がある。そこで、拡大されたフォントのドットの段
差を滑らかにするスムージング処理を実行する。
Next, the basic concept of enlargement and font smoothing processing of each basic font in the printing apparatus having the above-mentioned configuration will be described. In this embodiment, it is possible to print each basic font by enlarging it vertically and horizontally 2 × 2 times, 3 × 3 times, and 4 × 4 times. The control unit 11 controls the dots of the basic font to be 2 × 2 times, 3 × 3 times, and 4 × 4 times vertically and horizontally.
The basic font is expanded by expanding each twice. When the basic font is enlarged in this way, steps (jagged edges) may occur at the intersections of the lines and the diagonal lines, which may make it unsightly. Therefore, smoothing processing for smoothing the step difference between the enlarged font dots is executed.

【0017】このスムージング処理は、補間を行うドッ
トと既に補間を終えたドットの干渉を防ぐため、基本フ
ォントのドットを基準として行う。このスムージング処
理は、図2に示す手順で実行される。
This smoothing process is performed with reference to the dots of the basic font in order to prevent interference between dots to be interpolated and dots that have already been interpolated. This smoothing process is executed according to the procedure shown in FIG.

【0018】まず、基本フォントを構成するドットを指
示するドットポインタを初期化する(ステップS1)。
次に、ドットポインタにより指示されたドットの値を読
み出し、そのドットが白か否かを判別する(ステップS
2)。この実施の形態では、拡大されたフォントに黒の
ドットを補間する(追加する、即ち、白のドットを黒の
ドットに変換する)ことにより、拡大フォントのスムー
ジングを行う。このような補間を積極的に黒ドットを追
加するという意味でポジティブ補間と呼ぶ。この補間方
法では、処理対象のドットが黒の場合は、拡大後の対応
ドットについては補間処理を行う必要がない。従って、
そのドットについての処理を終了し、ステップS5にジ
ャンプし、そのドットが最終ドットであるか否かを判別
し、最終ドットであれば、そのフォントについてのスム
ージング処理を終了し、必要に応じて、次のフォントに
ついてスムージング処理を実行する。最終ドットでなけ
れば、ドットポインタを更新し(ステップS6)、次の
ドットの処理に移る。
First, a dot pointer designating the dots forming the basic font is initialized (step S1).
Next, the value of the dot designated by the dot pointer is read and it is determined whether or not the dot is white (step S
2). In this embodiment, smoothing of an enlarged font is performed by interpolating (adding, that is, converting white dots into black dots) black dots in the enlarged font. Such interpolation is called positive interpolation in the sense of positively adding black dots. In this interpolation method, when the dot to be processed is black, it is not necessary to perform interpolation processing on the corresponding dot after expansion. Therefore,
The process for that dot is terminated, the process jumps to step S5, it is determined whether or not that dot is the final dot, and if it is the final dot, the smoothing process for that font is terminated, and if necessary, Performs smoothing processing for the following fonts. If it is not the final dot, the dot pointer is updated (step S6), and the process for the next dot is started.

【0019】処理対象のドットが白の場合(ステップS
2)、その周辺のドット配置が図3に示す基本パターン
A〜Dのいずれかに該当するか否かを判別する(ステッ
プS3)。図3において、+を付したドットは処理対象
のドット、×を付したドットは白黒不問のドット、斜線
を施したドットは黒のドットである。基本パターンAは
処理対象のドットの左隣及び上のドットが黒の場合であ
り、右上がりの斜線のパターンに対応する。基本パター
ンBは処理対象のドットの右隣及び上のドットが黒の場
合であり、右下がりの斜線のパターンに対応する。基本
パターンCは処理対象のドットの左隣及び下のドットが
黒の場合であり、右下がりの斜線のパターンに対応す
る。基本パターンDは処理対象のドットの右隣及び下の
ドットが黒の場合であり、右上がりの斜線のパターンに
対応する。
When the dot to be processed is white (step S
2) It is determined whether or not the dot arrangement around it corresponds to any of the basic patterns A to D shown in FIG. 3 (step S3). In FIG. 3, the dots with + are dots to be processed, the dots with x are black and white, and the shaded dots are black. The basic pattern A is a case where the dots to the left of and above the dots to be processed are black, and corresponds to the pattern of diagonal lines rising to the right. The basic pattern B is a case where the dots to the right of and above the dots to be processed are black, and corresponds to the pattern of the diagonal lines descending to the right. The basic pattern C is a case where the dot to the left of the dot to be processed and the dot below it are black, and corresponds to the pattern of the diagonal lines descending to the right. The basic pattern D is a case where the dot to the right of the dot to be processed and the dot below it are black, and corresponds to the pattern of diagonal lines rising to the right.

【0020】周囲のドット配置が基本パターンA〜Dの
いずれにも該当しない場合、そのドットについては補間
処理を行わず、フローは前述のステップS5に進む。周
囲のドット配置が基本パターンA〜Dのいずれかに該当
する場合は、実際にスムージング処理を行う必要がある
か否か、あるとすればどのような補間処理を行うかを判
別して補間処理を実行する(ステップS4)。
If the surrounding dot arrangement does not correspond to any of the basic patterns A to D, interpolation processing is not performed for that dot, and the flow proceeds to step S5 described above. When the surrounding dot arrangement corresponds to any of the basic patterns A to D, the interpolation process is performed by determining whether or not the smoothing process is actually required, and if so, what interpolation process is to be performed. Is executed (step S4).

【0021】その後、フローは前述のステップS5に進
み、最終ドットの処理が終了したか否かを判別し、終了
していれば、そのフォントについてのスムージング処理
を終了する。一方、終了していなければ、ドットポイン
タを更新し(ステップS6)、ステップS2にリターン
する。基本フォントの全てのドットについて上述の処理
が終了すると、ステップS5でYESと判別され、その
フォントについてのスムージング処理を終了する。
After that, the flow advances to the above-mentioned step S5 to judge whether or not the processing for the final dot is completed, and if so, the smoothing processing for the font is completed. On the other hand, if not completed, the dot pointer is updated (step S6), and the process returns to step S2. When the above process is completed for all the dots of the basic font, YES is determined in step S5, and the smoothing process for that font is completed.

【0022】次に、ステップS4の補間処理を具体的に
説明する。図4(A)は、一例として、文字「横」のフ
ォント、(B)及び(C)は(A)の一部の拡大後のド
ットパターンを示す。(B)に示すように、直線が直交
している場合、角を取るための補間処理を行い、例え
ば、(D)に示すように黒ドットを追加すると、かえっ
て元絵のイメージを壊してしまう。このため、直交部に
は補間処理を行わないこととする。
Next, the interpolation processing in step S4 will be specifically described. As an example, FIG. 4A shows a font of the character “horizontal”, and (B) and (C) show a dot pattern after enlargement of a part of (A). As shown in (B), when straight lines are orthogonal to each other, if interpolation processing for taking a corner is performed and, for example, a black dot is added as shown in (D), the image of the original picture is rather destroyed. . Therefore, no interpolation processing is performed on the orthogonal portion.

【0023】また、(C)に示すように、直線が鋭角的
に交差しているような場合、(E)に示すように補間処
理を行なうと、交差部分が黒で潰れてしまい、元絵のイ
メージを壊してしまう。一方、(F)に示すように、鋭
角を際だたせるように黒ドットを追加すると、角が強調
されてパターンが美しくなる。そこで、直線が鋭角的に
交差しているパターンや線が鋭角的にカーブしているパ
ターンの場合には、角を際だたせるように補間処理を行
い、逆に、直線が鈍角で交差しているパターンや線が鈍
角でカーブしているパターンの場合には、角を取るよう
に補間処理を行うことが望ましい。
Further, as shown in (C), when straight lines intersect at an acute angle, if the interpolation process is performed as shown in (E), the intersecting portion is crushed by black, and the original picture is displayed. Will destroy the image of. On the other hand, as shown in (F), when a black dot is added to make an acute angle stand out, the corner is emphasized and the pattern becomes beautiful. Therefore, in the case of a pattern in which straight lines intersect at an acute angle or a pattern in which lines curve at an acute angle, interpolation processing is performed to make the corners stand out, and conversely, straight lines intersect at an obtuse angle. In the case of a pattern or a pattern in which lines are curved at an obtuse angle, it is desirable to perform interpolation processing so as to take a corner.

【0024】そこで、第1の実施の形態では、「1/2
補間」と「1/4補間」の2種類の補間を採用する。
「1/2補間」は、基本フォントを縦横2倍に拡大した
場合に、連続する黒ドットの長さの1/2の長さだけ1
行に黒ドットを補間する手法である。例えば、図5
(A)に示すようなドットパターンを縦横2倍に拡大し
て(B)に示すパターンを得た場合、丸R1で囲んだ部
分をスムージングするために、(C)に示すように、2
ドットだけ黒ドットを補間する。
Therefore, in the first embodiment, "1/2
Two types of interpolation are used: "interpolation" and "1/4 interpolation".
"1/2 Interpolation" means that if the basic font is doubled vertically and horizontally, only one half of the length of consecutive black dots is used.
This is a method of interpolating black dots in rows. For example, in FIG.
When the dot pattern as shown in (A) is magnified twice in the vertical and horizontal directions to obtain the pattern as shown in (B), in order to smooth the part surrounded by a circle R1, as shown in (C), 2
Interpolate black dots only for dots.

【0025】この手法は、縦横3倍の拡大の場合には、
(D)に示すように、連続する黒ドットの長さの2/3
の長さだけ第1行に黒ドットを補間し、1/3の長さだ
け第2行に黒ドットを補間する。また、縦横4倍の場合
には、(E)に示すように、連続する黒ドットの長さの
3/4の長さだけ第1行に黒ドットを補間し、1/2の
長さだけ第2行に黒ドットを補間し、1/4の長さだけ
第3行に黒ドットを補間する。
In this method, in the case of a three-fold vertical and horizontal expansion,
As shown in (D), 2/3 of the length of continuous black dots
The black dots are interpolated in the first row by the length of, and the black dots are interpolated in the second row by the length of 1/3. In the case of quadrupling in the vertical and horizontal directions, as shown in (E), black dots are interpolated in the first line by 3/4 of the length of continuous black dots, and only ½ length is obtained. Black dots are interpolated in the second row, and black dots are interpolated in the third row by a length of 1/4.

【0026】「1/4補間」は、基本フォントを縦横2
倍に拡大した場合に、連続する黒ドットの長さの1/4
の長さだけ1行に黒ドットを補間する手法である。例え
ば、図6(A)に示すようなドットパターンを縦横2倍
に拡大して(B)に示すパターンを得た場合に、丸R3
で囲った角部をスムージングするために、(C)に示す
ように、1ドットだけ黒ドットを補間する。
In "1/4 interpolation", the basic font is 2 vertically and horizontally.
1/4 of the length of consecutive black dots when enlarged twice
Is a method of interpolating black dots in one line by the length of. For example, when the dot pattern as shown in FIG. 6A is enlarged vertically and horizontally twice to obtain the pattern as shown in FIG.
In order to smooth the corners surrounded by, black dots are interpolated by one dot as shown in (C).

【0027】この手法は、縦横3倍の拡大の場合には、
(E)に示すように、連続する黒ドットの長さの1/3
の長さだけ第1行に黒ドットを補間し、1/6の長さだ
け第2行に黒ドットを補間する。また、縦横4倍の場合
には、(F)に示すように、連続する黒ドットの長さの
3/8の長さだけ第1行に黒ドットを補間し、2/8の
長さだけ第2行に黒ドットを補間し、1/8の長さだけ
第3行に黒ドットを補間する。
This method is used in the case of a three-fold vertical and horizontal expansion.
As shown in (E), 1/3 of the length of continuous black dots
The black dots are interpolated in the first row by the length of, and the black dots are interpolated in the second row by the length of 1/6. In the case of 4 times the length and width, as shown in (F), black dots are interpolated in the first line by the length of 3/8 of the length of continuous black dots, and only the length of 2/8 is interpolated. Black dots are interpolated in the second row, and black dots are interpolated in the third row by a length of 1/8.

【0028】なお、図6(A)のパターンを縦横2×2
倍に拡大した場合、(B)の丸R4で囲った部分をスム
ージングするための1/4補間が行われるので、この補
間法を用いて最終的に得られるドットパターンは(D)
のようになる。
It should be noted that the pattern of FIG.
When the pixel size is doubled, quarter dot interpolation for smoothing the portion surrounded by the circle R4 in (B) is performed, and the dot pattern finally obtained by using this interpolation method is (D).
become that way.

【0029】ステップS4で、以上詳述した1/2補間
及び1/4補間を用いて実行される補間処理は図7のフ
ローチャートに示す手順で行われる。即ち、図2のステ
ップS3で、拡大前の各ドットについてその周囲のドッ
ト配置が図3に示す基本パターンA〜Dのいずれかに該
当することを検出すると、そのドットが直交部に位置し
ているのか、否かを判別する(ステップU1)。
In step S4, the interpolation processing executed by using the 1/2 interpolation and 1/4 interpolation described in detail above is performed in the procedure shown in the flowchart of FIG. That is, when it is detected in step S3 of FIG. 2 that the dot arrangement around each dot before enlargement corresponds to any of the basic patterns A to D shown in FIG. 3, the dot is positioned in the orthogonal portion. It is determined whether or not there is (step U1).

【0030】直交部に位置していれば、補間を行わず
に、ステップS5に進む。ステップU2で、直交部に位
置していないと判断された場合、横方向の補間を行うた
め、横方向にパターンが鋭角にカーブするか否かを判別
する(ステップU2)。鋭角にカーブする、即ち、その
ドットが鋭角カーブ内に位置する場合、横方向に1/4
補間を実行する(ステップU3)。鈍角にカーブする、
即ち、そのドットが鈍角カーブ内に位置する場合、横方
向に1/2補間を実行する(ステップU4)。
If it is located in the orthogonal portion, the process proceeds to step S5 without performing interpolation. When it is determined in step U2 that the pattern is not located in the orthogonal portion, horizontal interpolation is performed, and thus it is determined whether or not the pattern curves in the horizontal direction at an acute angle (step U2). If the curve is an acute angle, that is, the dot is located within the acute angle curve, then 1/4 in the horizontal direction
Interpolation is executed (step U3). Curves obtusely,
That is, when the dot is located within the obtuse angle curve, 1/2 interpolation is executed in the horizontal direction (step U4).

【0031】横方向の補間が終了すると、縦方向の補間
を行うため、縦方向にパターンが鋭角にカーブするか否
かを判別し(ステップU5)、鋭角にカーブするなら
ば、縦方向に1/4補間を実行し(ステップU6)、鈍
角にカーブするならば、縦方向に1/2補間を実行する
(ステップU7)。
When the interpolation in the horizontal direction is completed, the interpolation in the vertical direction is performed. Therefore, it is judged whether or not the pattern curves in the vertical direction at an acute angle (step U5). / 4 interpolation is executed (step U6), and if the curve is an obtuse angle, ½ interpolation is executed in the vertical direction (step U7).

【0032】次に、処理対象のドットが直交部に位置す
るか、鋭角部に位置するか、鈍角部に位置するか、を判
別する手法を説明する。この判別は、処理対象のドット
の周囲のドットパターンが予め定めたパターンのいずれ
に該当するかにより判別する。即ち、図8(A)に示す
基本パターンAの場合、(B)に示すように、注目ドッ
トを基準として縦横に少なくとも2ドットずつ黒ドット
が連続した場合に直交部に位置すると判別し、補間処理
を行わない。
Next, a method for discriminating whether the dot to be processed is located in the orthogonal portion, the acute angle portion, or the obtuse angle portion will be described. This determination is made based on which of the predetermined patterns the dot pattern around the dot to be processed corresponds to. That is, in the case of the basic pattern A shown in FIG. 8 (A), as shown in FIG. 8 (B), when at least two black dots in the vertical and horizontal directions are consecutive with respect to the target dot, it is determined that they are located in the orthogonal portion, and interpolation is performed. Do not process.

【0033】次に、基本パターンA内の黒ドットに連続
して縦又は横方向に黒ドットが発生し、且つ、横方向に
関しては処理対象のドットと同一行、縦方向に関しては
同一列の4ドット以内に黒ドットが発生した場合には、
鋭角部に位置すると判別し、1/4補間を実行する。即
ち、周辺ドットが(C)に示すいずれかのパターンに該
当する場合には、横方向に関して鋭角カーブ内に位置す
ると判断し、横方向に1/4補間を行う。また、周辺ド
ットが(D)に示すいずれかのパターンに該当する場合
には、縦方向に関して鋭角カーブ内に位置すると判断
し、縦方向に1/4補間を行う。
Next, black dots are generated continuously or vertically in the basic pattern A in the vertical or horizontal direction, and in the horizontal direction, in the same row as the dot to be processed, and in the vertical direction, in the same column. If black dots occur within the dots,
It is determined that it is located at an acute angle portion, and 1/4 interpolation is executed. That is, when the peripheral dots correspond to any of the patterns shown in (C), it is determined that they are located within the acute angle curve in the horizontal direction, and 1/4 interpolation is performed in the horizontal direction. If the surrounding dots correspond to any of the patterns shown in (D), it is determined that they are located within the acute angle curve in the vertical direction, and ¼ interpolation is performed in the vertical direction.

【0034】次に、基本パターンA内の黒ドットに連続
して縦又は横方向に黒ドットが発生し、且つ、注目して
いるドットと同一行又は同一列の4ドット以内に黒ドッ
トが発生しない場合には、鈍角カーブ内に位置すると判
別し、1/2補間を行う。即ち、周辺ドットが(E)に
示すいずれかのパターンに該当する場合には、横方向に
関して鈍角カーブ内に位置すると判断し、横方向に1/
2補間を行う。また、周辺ドットが(F)に示すいずれ
かのパターンに該当する場合には、縦方向に関して鈍角
カーブ内に位置すると判断し、縦方向に1/2補間を行
う。
Next, black dots are generated continuously or vertically in the basic pattern A in the vertical or horizontal direction, and within 4 dots in the same row or the same column as the focused dot. If not, it is determined to be located within the obtuse angle curve, and 1/2 interpolation is performed. That is, when the peripheral dots correspond to any of the patterns shown in (E), it is determined that they are located within the obtuse angle curve in the horizontal direction, and 1 /
2 Interpolate. When the peripheral dots correspond to any of the patterns shown in (F), it is determined that they are located within the obtuse angle curve in the vertical direction, and 1/2 interpolation is performed in the vertical direction.

【0035】同様に、図9(A)〜図11(A)に示す
基本パターンB〜Dの場合も同様に、それぞれ、周辺ド
ットが(B)に示すパターンの場合に直交部に位置する
と判別して補間処理を行わない。周辺ドットが(C)に
示すいずれかのパターンに該当する場合には、横方向に
関して鋭角カーブ内に位置すると判断し、横方向に1/
4補間を行う。周辺ドットが(D)に示すいずれかのパ
ターンに該当する場合には、縦方向に関して鋭角カーブ
内に位置すると判断し、縦方向に1/4補間を行う。周
辺ドットが(E)に示すいずれかのパターンに該当する
場合には、横方向に関して鈍角カーブ内に位置すると判
断し、横方向に1/2補間を行う。周辺ドットが(F)
に示すいずれかのパターンに該当する場合には、縦方向
に関して鈍角カーブ内に位置すると判断し、縦方向に1
/2補間を行う。
Similarly, in the case of the basic patterns B to D shown in FIGS. 9A to 11A, it is similarly determined that the peripheral dots are located in the orthogonal portion in the case of the pattern shown in FIG. And no interpolation processing is performed. When the peripheral dots correspond to any of the patterns shown in (C), it is determined that they are located within the acute angle curve in the horizontal direction, and 1 / in the horizontal direction.
4 Interpolation is performed. If the surrounding dots correspond to any of the patterns shown in (D), it is determined that they are located within the acute angle curve in the vertical direction, and 1/4 interpolation is performed in the vertical direction. If the surrounding dots correspond to any of the patterns shown in (E), it is determined that they are located within the obtuse angle curve in the horizontal direction, and 1/2 interpolation is performed in the horizontal direction. Surrounding dots are (F)
If any of the patterns shown in (1) is applied, it is determined that the pattern is located within the obtuse angle curve in the vertical direction, and 1 in the vertical direction.
/ 2 interpolation is performed.

【0036】次に、このようなパターン判別を行うため
の処理手順を図12、13を参照して説明する。図12
(A)〜(D)に示すように、基本パターンA〜Dのそ
れぞれについて、その縦方向及び横方向のドットにそれ
ぞれA〜Hの符号を付して考える。縦方向と横方向のド
ットEが共に1(1:黒)の場合、直交パターンである
と判別する。
Next, a processing procedure for performing such pattern discrimination will be described with reference to FIGS. 12
As shown in (A) to (D), with respect to each of the basic patterns A to D, the dots in the vertical direction and the dots in the horizontal direction are given reference numerals A to H, respectively. When the dots E in the vertical direction and the dots E in the horizontal direction are both 1 (1: black), it is determined to be an orthogonal pattern.

【0037】直交パターンではないと判断された場合、
図13に示すフローに従って、横方向について、補間の
種類と、補間のドット数を求める。まず、補間の種類を
定めるパラメータQを2に、補間ドット数を定めるパラ
メータPに1をセットする(ステップT1)。次に、ド
ットAが1であるか否かを判別する(ステップT2)。
ドットA=1の場合、Qに4をセットし(ステップT
3)、処理を終了する。ドットA≠1の場合、ドットE
が1であるか否かを判別する(ステップT4)。E≠1
の場合、処理を終了する。ドットE=1の場合、Pに2
をセットし(ステップT5)、ドットBが1であるか否
かを判別する(ステップT6)。ドットB=1の場合、
Qに4をセットし(ステップT3)、処理を終了する。
When it is determined that the pattern is not the orthogonal pattern,
According to the flow shown in FIG. 13, the interpolation type and the interpolation dot number are obtained in the horizontal direction. First, the parameter Q that determines the type of interpolation is set to 2, and the parameter P that determines the number of interpolation dots is set to 1 (step T1). Next, it is determined whether or not the dot A is 1 (step T2).
If dot A = 1, set Q to 4 (step T
3), the process ends. If dot A ≠ 1, dot E
It is determined whether is 1 (step T4). E ≠ 1
In the case of, the processing ends. If dot E = 1, 2 for P
Is set (step T5), and it is determined whether the dot B is 1 (step T6). If dot B = 1,
Q is set to 4 (step T3), and the process ends.

【0038】ドットB≠1の場合、ドットFが1である
か否かを判別する(ステップT7)。F≠1の場合、処
理を終了する。ドットF=1の場合、Pに3をセットし
(ステップT8)、ドットCが1であるか否かを判別す
る(ステップT9)。ドットC=1の場合、Qに4をセ
ットし(ステップT3)、処理を終了する。ドットC≠
1の場合、ドットGが1であるか否かを判別する(ステ
ップT10)。G≠1の場合、処理を終了する。ドット
G=1の場合、Pに4をセットする(ステップT1
1)。次に、ドットDが1であるか否かを判別する(ス
テップT12)。ドットD≠1の場合、処理を終了す
る。
If dot B ≠ 1, it is determined whether dot F is 1 or not (step T7). If F ≠ 1, the process ends. When dot F = 1, P is set to 3 (step T8), and it is determined whether dot C is 1 (step T9). When dot C = 1, Q is set to 4 (step T3), and the process is terminated. Dot C ≠
In the case of 1, it is determined whether or not the dot G is 1 (step T10). If G ≠ 1, the process ends. If dot G = 1, set P to 4 (step T1
1). Next, it is determined whether or not the dot D is 1 (step T12). If the dot D ≠ 1, the process is terminated.

【0039】ドットD=1の場合、Qに4をセットし
(ステップT3)、処理を終了する。以上の処理により
設定された、パラメータPとQに従って、元絵の横方向
に連続するPドットに対し1/Q補間をすべきことが判
別される。横方向についての補間処理が終了すると、縦
方向について同様にして補間処理が実行される。
When the dot D = 1, Q is set to 4 (step T3), and the process ends. According to the parameters P and Q set by the above processing, it is determined that 1 / Q interpolation should be performed on P dots continuous in the horizontal direction of the original picture. When the interpolation processing in the horizontal direction is completed, the interpolation processing is similarly executed in the vertical direction.

【0040】次に、図1に示した印刷装置のフォントの
拡大、スムージング、及び印刷動作の手順を説明する。
まず、使用者はキー入力部12から被印刷データを入力
する。入力された被印刷データは入力データRAM13
にコード形式で順次記憶される。制御部11は、基本フ
ォントROM14に記憶された基本フォントを参照して
表示駆動部16に表示データを供給する。表示駆動部1
6は制御部11から供給された表示データを表示部18
に表示させる。
Next, the procedure of font enlargement, smoothing, and printing operation of the printing apparatus shown in FIG. 1 will be described.
First, the user inputs print data from the key input unit 12. The input print data is input data RAM 13
Are sequentially stored in a code format. The control unit 11 refers to the basic font stored in the basic font ROM 14 and supplies the display data to the display drive unit 16. Display drive unit 1
6 displays the display data supplied from the control unit 11 on the display unit 18
To display.

【0041】被印刷データの入力終了後、使用者は印刷
文字のサイズを設定する。制御部11は、入力された被
印刷データの各基本フォントを縦及び横方向に指定され
た倍率に拡大して、順次拡大フォントRAM15上に展
開し、拡大フォント(被印刷パターン)を作成する。
After inputting the data to be printed, the user sets the size of the print character. The control unit 11 expands each basic font of the input print data to a specified magnification in the vertical and horizontal directions and sequentially expands it on the expanded font RAM 15 to create an expanded font (print pattern).

【0042】各フォントの展開を終了毎に、図2を参照
して説明した方法により、スムージング処理を行う。印
刷キーが操作されると、全てのフォントの拡大と展開が
終了した後、制御部11は拡大フォントRAM15に記
憶されたスムージング処理済みの拡大フォントを読みだ
し、印刷制御部17に供給する。印刷制御部17は、印
刷部19を制御して供給された印刷データを印刷する。
Each time the development of each font is completed, the smoothing process is performed by the method described with reference to FIG. When the print key is operated, after enlarging and expanding all the fonts, the control unit 11 reads out the smoothed enlarged font stored in the enlarged font RAM 15 and supplies it to the print control unit 17. The print control unit 17 controls the printing unit 19 to print the supplied print data.

【0043】次に、上述した拡大及びスムージング処理
を、基本フォントが図14(A)に示す絵文字で、拡大
倍率が2×2倍の場合を例に具体的に説明する。なお、
この絵文字は説明のために設定したものであり、8×8
ドットの非常に小さいサイズとなっており、その絵柄に
意味はない。
Next, the above-described enlargement and smoothing processing will be specifically described by taking as an example the case where the basic font is the pictographic characters shown in FIG. 14A and the enlargement magnification is 2 × 2. In addition,
This pictogram is set for explanation, 8x8
The size of the dots is very small, and the design has no meaning.

【0044】拡大倍率が2×2倍の場合、基本フォント
の各ドットは縦横2ドット計4ドットに拡大される。こ
のため、図14(A)に示す基本フォントは(B)に示
すように拡大される。
When the enlargement ratio is 2 × 2, each dot of the basic font is enlarged to a total of 4 dots by 2 dots vertically and horizontally. Therefore, the basic font shown in FIG. 14A is enlarged as shown in FIG.

【0045】次に、図2に示すスムージング処理を開始
する。まず、基本フォントを構成する各ドットの行数を
示すポインタi(1≦i≦8),と列数を示すポインタ
j(1≦j≦8)を1に初期化する(ステップS1)。
次に、ドットDi,jを読み出し、そのドットが黒(1)
であるか白(0)であるかを判別する(ステップS
2)。ドットD1,1は黒であるので、補間処理は行わ
ず、ポインタiを更新して(ステップS5,S6)、ド
ットD2,1の処理に移る。D2,1、D3,1も黒であるの
で、補間処理は行わない。
Next, the smoothing process shown in FIG. 2 is started. First, a pointer i (1.ltoreq.i.ltoreq.8) indicating the number of rows of each dot constituting the basic font and a pointer j (1.ltoreq.j.ltoreq.8) indicating the number of columns are initialized to 1 (step S1).
Next, the dot Di, j is read and the dot is black (1)
Or white (0) is determined (step S
2). Since the dot D1,1 is black, the interpolation process is not performed, the pointer i is updated (steps S5 and S6), and the process of the dot D2,1 is performed. Since D2,1 and D3,1 are also black, interpolation processing is not performed.

【0046】ドットD4,1、D5,1については、ステップ
S2で白であると判別されるが、周辺ドットが基本パタ
ーンA〜Dのいずれにも該当しないと判別され(ステッ
プS3)、補間処理を行わない。ドットD6,1、D7,1、
D1,2は黒なので補間処理は行わない。ドットD2,2は、
白であり、周辺ドットが基本パターンAに該当する。そ
こで、周辺ドットが図8(B)に示す直交パターンに該
当するか否かを判別する(ステップU1)。
The dots D4,1, D5,1 are determined to be white in step S2, but it is determined that the peripheral dots do not correspond to any of the basic patterns A to D (step S3), and the interpolation processing is performed. Do not do. Dots D6,1, D7,1,
Since D1 and D2 are black, interpolation processing is not performed. Dot D2,2 is
It is white, and the surrounding dots correspond to the basic pattern A. Therefore, it is determined whether or not the peripheral dots correspond to the orthogonal pattern shown in FIG. 8B (step U1).

【0047】ドットD1,2、D1,3、ドットD2,1、D3,1
は黒であり、直交パターンに該当する。従って、補間処
理は行わない。以後、順次処理が進み、ドットD7,2の
処理に移ると、ドットD7,2は白であり、周辺ドットが
基本パターンAに該当すると判別され、さらに、直交パ
ターンに該当するか否かを判別する。周辺パターンは図
8(B)に示す直交パターンに該当しない。
Dots D1,2, D1,3, dots D2,1, D3,1
Is black and corresponds to the orthogonal pattern. Therefore, interpolation processing is not performed. After that, when the processing proceeds in sequence and shifts to the processing of the dots D7,2, it is determined that the dots D7,2 are white and the peripheral dots correspond to the basic pattern A, and further it is determined whether they correspond to the orthogonal pattern. To do. The peripheral pattern does not correspond to the orthogonal pattern shown in FIG.

【0048】そこで、横方向の補間処理に移る。注目ド
ットD7,2の2ドット右側に黒ドットが存在し、図8
(C)に示す鋭角カーブのパターンに該当する。そこ
で、横方向に1/4補間を行う。この補間は連続する黒
の長さの1/4の長さだけ黒ドットを追加する処理であ
る。拡大前のドットパターンにおいては、黒が横方向に
2ドット連続している。そこで、拡大後の連続黒ドット
数4の1/4の長さの1ドットだけ黒ドットを補間す
る。即ち、ドットKを黒に変換する。
Therefore, the horizontal interpolation processing is started. There is a black dot to the right of two dots of the target dot D7,2, and
It corresponds to the pattern of the acute angle curve shown in (C). Therefore, 1/4 interpolation is performed in the horizontal direction. This interpolation is a process of adding black dots by a length of 1/4 of the length of continuous black. In the dot pattern before enlargement, black is continuously 2 dots in the horizontal direction. Therefore, a black dot is interpolated by one dot having a length of 1/4 of the number of continuous black dots after expansion. That is, the dot K is converted to black.

【0049】次に、縦方向の補間処理に移るが、この場
合、図8(F)に示すパターンに該当する鈍角パターン
であり、1/2補間となる。拡大前のドットパターンの
縦の黒ドットの連続数は1である。このため、拡大後の
連続黒ドット数2の1/2の長さの1ドットだけ黒ドッ
トに補間する。即ち、ドットKを黒に変換する。結局、
横方向と縦方向の補間で共にドットKを黒に変換し、次
のドットの処理に移る。
Next, the process goes to the vertical direction interpolation process. In this case, the pattern is an obtuse angle pattern corresponding to the pattern shown in FIG. The number of continuous vertical black dots in the dot pattern before expansion is one. Therefore, only one dot having a length that is ½ of the number of continuous black dots after enlargement 2 is interpolated into black dots. That is, the dot K is converted to black. After all,
The dot K is converted into black by the interpolation in the horizontal direction and the vertical direction, and the process for the next dot is performed.

【0050】順次処理が進み、ドットD4,3の処理に移
ると、このドットは白であり、その周囲のドット配置が
基本パターンBに該当する。この場合、D4,3の周辺ド
ットは図9(E)の鈍角パターンに該当し、1/2補間
の対象となる。拡大後のドットパターンにおいて横方向
に連続する黒ドット数は2である。従って、1ドットだ
け黒ドットを補間する。即ち、ドットLを黒に変換す
る。縦方向については、処理対処のドットD4,3の同一
列の2ドット下側に黒ドットが存在し、図9(D)の鋭
角パターンに該当する。従って、1/4補間の対象とな
る。拡大後のドットパターンにおいては、縦方向に黒ド
ットが4ドット連続している。そこで、1ドットLを黒
に変換する。
When the processing is sequentially advanced to move to the processing of the dots D4 and D3, this dot is white and the dot arrangement around the dot corresponds to the basic pattern B. In this case, the peripheral dots of D4,3 correspond to the obtuse angle pattern of FIG. 9 (E) and are the targets of 1/2 interpolation. The number of black dots continuous in the horizontal direction is 2 in the enlarged dot pattern. Therefore, the black dot is interpolated by one dot. That is, the dot L is converted to black. In the vertical direction, there is a black dot on the lower side of two dots in the same row of the dots D4,3 to be processed, which corresponds to the acute angle pattern of FIG. Therefore, it is a target of 1/4 interpolation. In the enlarged dot pattern, four black dots are continuous in the vertical direction. Therefore, one dot L is converted to black.

【0051】ドットD5,3では、そのドットが白であ
り、周囲のドット配置が基本パターンDに該当すると判
別される。しかし、ドットD5,3の周辺ドットは図11
(B)に示す直交パターンに該当する。従って、補間処
理を行わず、次のドットの処理に移る。
It is determined that the dots D5 and D3 are white and the surrounding dot arrangement corresponds to the basic pattern D. However, the dots around the dots D5,3 are shown in FIG.
This corresponds to the orthogonal pattern shown in (B). Therefore, the interpolation process is not performed, and the process for the next dot is performed.

【0052】ドットD7,3は、そのドットが白であり、
周囲のドット配置が基本パターンBに該当する。この場
合、周辺ドット配置は図9(B)に示す直交パターンに
は該当しない。そこで、横方向の補間処理を実行する。
この場合、処理対象のドットD7,3の2ドット左側に黒
ドットが存在し、図9(C)に示す鋭角パターンの1つ
に該当すると判断され、横方向に1/4補間を行う。拡
大後のドットパターンにおいては、黒が4ドット連続し
ている。そこで、ドットMを黒に変換する。縦方向につ
いては、周辺ドットは図9(F)に示す鈍角パターンに
該当し、1/2補間となり、ドットMを黒ドットに転換
する。結局、横方向と縦方向の補間で、共にドットMを
黒に変換して、次のドットの処理に移る。
The dots D7,3 are white,
The surrounding dot arrangement corresponds to the basic pattern B. In this case, the peripheral dot arrangement does not correspond to the orthogonal pattern shown in FIG. Therefore, horizontal interpolation processing is executed.
In this case, a black dot exists on the left side of the two dots D7,3 to be processed, and it is determined that the black dot corresponds to one of the acute angle patterns shown in FIG. 9C, and ¼ interpolation is performed in the horizontal direction. In the enlarged dot pattern, four black dots are continuous. Therefore, the dot M is converted to black. In the vertical direction, the peripheral dots correspond to the obtuse angle pattern shown in FIG. 9 (F), which results in 1/2 interpolation, and the dots M are converted into black dots. After all, the dot M is converted into black by the interpolation in the horizontal direction and the vertical direction, and the process for the next dot is performed.

【0053】スムージング処理が進み、ドットD6,4の
処理に至ると、ドットD6,4の周辺パターンは基本パタ
ーンAと基本パターンCのいずれにも該当する。そこ
で、まず、基本パターンAについて考える。周辺ドット
は図8(B)に示す直交パターンには該当せず、図8
(E)に示す鈍角パターンに該当する。そこで、横方向
に1/2補間を行う。拡大後のドットパターンの横方向
の連続黒ドット数は4である。従って、拡大後のドット
パターンの2つのドットNとPを黒ドットに変換する。
次に、縦方向補間について考えると、周辺ドット配置は
図8(D)の鋭角パターンに該当し、1/4補間とな
る。拡大後のドットパターンの縦方向の黒ドットの連続
数は2であり、1/4補間は物理的に無理であり、特に
処理は行わない。
When the smoothing process progresses and reaches the process of the dots D6,4, the peripheral pattern of the dots D6,4 corresponds to both the basic pattern A and the basic pattern C. Therefore, first, the basic pattern A will be considered. The peripheral dots do not correspond to the orthogonal pattern shown in FIG.
This corresponds to the obtuse angle pattern shown in (E). Therefore, 1/2 interpolation is performed in the horizontal direction. The number of continuous black dots in the horizontal direction of the enlarged dot pattern is four. Therefore, the two dots N and P of the enlarged dot pattern are converted into black dots.
Next, considering the vertical direction interpolation, the peripheral dot arrangement corresponds to the acute angle pattern of FIG. 8D, which is 1/4 interpolation. The number of continuous black dots in the vertical direction of the enlarged dot pattern is 2, and the 1/4 interpolation is physically impossible, and no particular processing is performed.

【0054】次に、基本パターンCについて考える。周
辺ドットは、図10(B)に示す直交パターンには該当
せず、図10(E)に示す鈍角パターンに該当し、横方
向に1/2補間を行う。拡大後のドットパターンの横方
向の連続黒ドット数は2である。従って、拡大後のドッ
トパターンの1つドットQを黒ドットに変換する。次
に、縦方向については、周辺ドットは図10(D)に示
す鋭角パターンに該当し、1/4補間となる。しかし、
拡大後のドットパターンの縦方向の黒ドットの連続数は
2であり、1/4補間は物理的に無理であり、特に処理
は行わない。
Next, the basic pattern C will be considered. The peripheral dots do not correspond to the orthogonal pattern shown in FIG. 10B, but correspond to the obtuse angle pattern shown in FIG. 10E, and ½ interpolation is performed in the horizontal direction. The number of continuous black dots in the horizontal direction of the enlarged dot pattern is 2. Therefore, one dot Q of the enlarged dot pattern is converted into a black dot. Next, in the vertical direction, the peripheral dots correspond to the acute angle pattern shown in FIG. But,
The number of continuous black dots in the vertical direction of the enlarged dot pattern is 2, and the 1/4 interpolation is physically impossible, and no particular processing is performed.

【0055】ドットD8,4に処理が至ると、ドットD8,4
の周囲ドット配置は基本パターンBに該当し、直交パタ
ーンには該当しない。そこで、横方向について考える
と、図9(E)に示す鈍角パターンに該当し、1/2補
間となる。従って、拡大後のドットパターンのドットR
を黒ドットに変換する。縦方向も1/2補間となり、ド
ットRを黒ドットに変換する。
When the processing reaches dot D8,4, dot D8,4
The surrounding dot arrangement of corresponds to the basic pattern B and does not correspond to the orthogonal pattern. Therefore, considering the horizontal direction, this corresponds to the obtuse angle pattern shown in FIG. Therefore, the dot R of the dot pattern after enlargement
To black dots. The vertical direction also becomes 1/2 interpolation, and the dot R is converted into a black dot.

【0056】ドットD4,5に処理が至ると、このドット
の周囲ドット配置はドットD6,4の周辺のドット配置と
同一であり、同一の処理を行い、拡大後のドットパター
ンにドットS、T、Uを補間する。
When the processing reaches the dots D4 and D5, the dot arrangement around this dot is the same as the dot arrangement around the dots D6 and 4, and the same processing is performed to form dots S and T in the enlarged dot pattern. , U are interpolated.

【0057】ドットD7,5の周囲パターンは基本パター
ンCに一致し、直交パターンに該当せず、横方向は図9
(E)の鈍角パターンに該当し、1/2補間となり、拡
大後のドットパターンに黒ドットVを補間する。縦方向
も1/2補間となり、黒ドットVを補間する。
The peripheral pattern of the dots D7,5 matches the basic pattern C, does not correspond to the orthogonal pattern, and the horizontal direction is shown in FIG.
This corresponds to the obtuse angle pattern of (E), which results in 1/2 interpolation, and the black dot V is interpolated in the dot pattern after expansion. In the vertical direction, 1/2 interpolation is performed, and the black dot V is interpolated.

【0058】ドットD2,7の処理に移ると、周囲パター
ンは基本パターンBに一致し、直交パターンには該当し
ない。横方向は、鈍角パターンに該当し1/2補間とな
る。拡大後のドットパターンの横方向の連続黒ドットは
6ドットであり、その1/2の3ドットW,X、Yに黒
ドットを補間する。一方、縦方向は1/4補間となる。
しかし、連続する黒ドットが2ドットのため、補間はで
きない。
When the process of the dots D2,7 is started, the peripheral pattern matches the basic pattern B and does not correspond to the orthogonal pattern. The horizontal direction corresponds to an obtuse angle pattern, and ½ interpolation is performed. The number of continuous black dots in the lateral direction of the enlarged dot pattern is 6 dots, and black dots are interpolated into 3 dots W, X, and Y, which is ½ thereof. On the other hand, the vertical direction is 1/4 interpolation.
However, interpolation is not possible because there are two consecutive black dots.

【0059】ドットD5,7の処理に移ると、周囲パター
ンは基本パターンBに一致し、直交パターンに該当せ
ず、横方向は、鈍角パターンに該当し1/2補間とな
り、黒ドットZを補間する。一方、縦方向は鋭角パター
ンに該当し1/4補間となる。連続する黒ドット数が6
ドットのため、正確に1/4補間ができず、1つの黒ド
ットZを補間する。
When the processing of dots D5 and D7 is started, the peripheral pattern matches the basic pattern B, does not correspond to the orthogonal pattern, and the horizontal direction corresponds to the obtuse angle pattern, resulting in 1/2 interpolation, and the black dot Z is interpolated. To do. On the other hand, the vertical direction corresponds to an acute-angle pattern, which is ¼ interpolation. 6 consecutive black dots
Since it is a dot, accurate 1/4 interpolation cannot be performed, and one black dot Z is interpolated.

【0060】ドットD7,7の処理に移ると、周囲パター
ンは基本パターンDに一致する。また、直交パターンに
は該当しない。そこで、横方向について考えると、鈍角
パターンに該当し1/2補間となり、黒ドット*を補間
する。縦方向は1/4補間となる。連続する黒ドット数
が6ドットのため、正確に1/4補間ができず、1つの
黒ドット*を補間する。以後、処理は順次進むが、補間
処理に該当するドットは存在せず、ドットD8,8の処理
が終了した時点でこのフォントについてのスムージング
処理を終了し、次のフォントの処理に移る。
When the processing for dots D7,7 is started, the surrounding pattern matches the basic pattern D. Moreover, it does not correspond to an orthogonal pattern. Therefore, when considering the horizontal direction, this corresponds to an obtuse angle pattern, resulting in 1/2 interpolation, and the black dot * is interpolated. The vertical direction is 1/4 interpolation. Since the number of consecutive black dots is 6, 1/4 interpolation cannot be accurately performed, and one black dot * is interpolated. After that, the processing proceeds in sequence, but there is no dot corresponding to the interpolation processing, and when the processing of the dots D8,8 ends, the smoothing processing for this font ends and the processing for the next font starts.

【0061】その後、印刷キーが操作されると、制御部
11は拡大フォントRAM15に記憶されたスムージン
グ処理済みの拡大フォントを読みだし、印刷制御部17
に供給する。印刷制御部17は、印刷部19を制御して
供給された印刷データを印刷する。
After that, when the print key is operated, the control section 11 reads out the smoothed enlarged font stored in the enlarged font RAM 15, and the print control section 17
Supply to. The print control unit 17 controls the printing unit 19 to print the supplied print data.

【0062】以上説明したように、この実施の形態によ
れば、拡大したフォントにスムージング処理を施して印
刷することができる。しかも、各ドットについて補間処
理が必要であるか否かを判別する際に、まず、処理対象
のドットが白ドットであるか否かを判別し、白ドットで
あれば、周囲ドットが所定の4つの基本パターンA〜D
のいずれかに該当するか否かを判別し、該当するドット
について補間処理を開始する。従って、補間処理が不必
要なドットの処理時間を短時間に抑えることができる。
また、1回の比較の対象となるドットが、注目ドットの
上下左右の2ドットであり、比較動作も短時間で済む。
従って、スムージング処理に要する総時間を短縮でき
る。
As described above, according to this embodiment, it is possible to print by performing smoothing processing on the enlarged font. Moreover, when determining whether or not interpolation processing is required for each dot, first, it is determined whether or not the dot to be processed is a white dot. Basic patterns A to D
It is determined whether or not any of the above is applicable, and the interpolation process is started for the applicable dot. Therefore, the processing time of dots for which interpolation processing is unnecessary can be suppressed to a short time.
Further, the dots to be compared once are the two dots above, below, left and right of the target dot, and the comparison operation can be completed in a short time.
Therefore, the total time required for the smoothing process can be shortened.

【0063】また、直交パターンについては、補間を行
わないので、パターンが直交しているイメージを維持で
きる。また、補間対象のパターンが鈍角カーブか鋭角カ
ーブかに応じて異なった補間を行うので、元絵の雰囲気
を忠実に再現した拡大が可能となる。
Further, since interpolation is not performed for orthogonal patterns, an image in which the patterns are orthogonal can be maintained. Further, since different interpolation is performed depending on whether the pattern to be interpolated is an obtuse curve or an acute curve, it is possible to enlarge the atmosphere of the original picture faithfully.

【0064】上記の説明においては、理解を容易にする
ため、基本フォントのサイズを縦横8×8ドットとした
が、基本フォントのサイズは任意であり、実用的には、
より大きなサイズのフォントを使用できる。
In the above description, the size of the basic font is 8 × 8 dots for ease of understanding, but the size of the basic font is arbitrary, and practically,
You can use larger size fonts.

【0065】大きなサイズの基本フォントの場合、例え
ば、図15に示すように、フォントを例えば縦方向に8
ドット単位でスライスする。8ドットとした理由は、一
般に、データ処理の基本単位が1バイト(8ビット)だ
からである。使用するCPU等が16ビット、32ビッ
ト系等の場合には、そのビット数でスライスしても当然
よい。そして、縦方向に任意の1バイトを読み出し、読
み出した各ドットについて白ドットであるか、黒ドット
であるかを判別し、白ドットであれば、周辺ドットと基
本パターンA〜Dとの比較を行う。この際、図16
(A)乃至(D)に示すように、基本パターンAとCに
ついては、MSB側からチェックし、基本パターンBと
Dについては、LSB側からチェックすることが望まし
い。
In the case of a large size basic font, for example, as shown in FIG.
Slice in dots. The reason for using 8 dots is that the basic unit of data processing is generally 1 byte (8 bits). When the CPU or the like used is a 16-bit or 32-bit system, it is of course possible to slice with that number of bits. Then, an arbitrary 1 byte is read in the vertical direction, it is determined whether each read dot is a white dot or a black dot, and if it is a white dot, the peripheral dots and the basic patterns A to D are compared. To do. At this time, FIG.
As shown in (A) to (D), it is desirable to check the basic patterns A and C from the MSB side and the basic patterns B and D from the LSB side.

【0066】なお、以上の説明では、黒ドットが縦横に
2ドット以上連続した時、直交パターンと判別したが、
基本フォントのサイズに応じて、例えば、縦横に3ドッ
ト、4ドット、・・・連続した時、直交パターンと判別す
るようにしてもよい。また、鋭角カーブの判別手法とし
て、注目しているドットから4ドット以内に、そのドッ
トを囲む方向に、即ち着目したドットと同じ段に黒ドッ
トが出現した場合に、鋭角カーブとみなしたが、、基本
フォントのサイズに応じて、着目したドットから5、
6、7・・・ドット以内に、黒ドットが出現した場合に、
鋭角カーブとみなしてもよい。その他、直交パターン、
鋭角パターン、鈍角パターンの決定手法は任意であ
り、、フォントのサイズ及び拡大倍率に応じて他の決定
手法を採用してもよい。
In the above description, when two or more black dots are continuously arranged in the vertical and horizontal directions, it is determined that they are orthogonal patterns.
Depending on the size of the basic font, for example, when three dots, four dots, ... In addition, as a method of discriminating an acute angle curve, when a black dot appears within 4 dots from the dot of interest in the direction surrounding the dot, that is, in the same row as the dot of interest, it is regarded as an acute curve. , 5 from the focused dot, depending on the size of the basic font,
6,7 ... If black dots appear within the dots,
It may be regarded as an acute curve. Other, orthogonal pattern,
The method for determining the acute-angle pattern and the obtuse-angle pattern is arbitrary, and other determination methods may be adopted depending on the font size and the enlargement ratio.

【0067】また、鋭角カーブについては1/4補間、
鈍角カーブについては1/2補間を行ったが、鋭角カー
ブについては、1/6、鈍角カーブについては1/3補
間とする等、フォントのサイズ及び拡大倍率に応じて補
間の種類を任意に変更可能である。
Also, for acute angle curves, 1/4 interpolation,
Half-interpolation was performed for obtuse-angle curves, but 1/6 for acute-angle curves and 1/3 for obtuse-angle curves. The type of interpolation can be arbitrarily changed according to the font size and enlargement ratio. It is possible.

【0068】(第2の実施の形態)第1の実施の形態に
おいては、処理対象ドットが直交パターンに該当しない
場合に補間を行わず、処理対象ドットが鋭角カーブ内に
位置するか、鈍角カーブ内に位置するかに応じてドット
を補間(追加)している。しかし、他の補間手法を使用
することも当然可能である。例えば、連続するパターン
の縦横比(階段部分(段差部分)で縦横に連続する同一
色のドットの数の比)に応じて補間ドット数などを調整
しても良い。以下、このようにして補間を行う第2の実
施の形態を説明する。
(Second Embodiment) In the first embodiment, when the dot to be processed does not correspond to the orthogonal pattern, interpolation is not performed, and the dot to be processed is located within the acute angle curve or the obtuse angle curve. Dots are interpolated (added) according to whether they are located inside. However, it is of course possible to use other interpolation techniques. For example, the number of interpolation dots or the like may be adjusted according to the aspect ratio of continuous patterns (the ratio of the number of dots of the same color that continue in the vertical and horizontal directions at the step portion (step portion)). The second embodiment in which the interpolation is performed in this way will be described below.

【0069】図17はこの例で使用する基本パターンA
〜Dを示す。この例では、基本パターンA〜Dを注目ド
ットとその周囲の8つのドットの計9ドットで表す。こ
れらの基本パターンは、図3の基本パターンと表現方法
が異なるが実質的に同一のものであり、基本パターンA
は処理対象のドットの左隣及び上のドットが黒の場合で
あり、右上がりの斜線パターンの下側を補間(ドットを
追加)する。基本パターンBは処理対象のドットの右隣
及び上のドットが黒の場合であり、右下がりの斜線のパ
ターンの下側を補間する。基本パターンCは処理対象の
ドットの左隣及び下のドットが黒の場合であり、右下が
りの斜線のパターンの上側を補間する。基本パターンD
は処理対象のドットの右隣及び下のドットが黒の場合で
あり、右上がりの斜線のパターンの上側を補間する。
FIG. 17 shows a basic pattern A used in this example.
~ D. In this example, the basic patterns A to D are represented by a target dot and eight dots around it, for a total of 9 dots. These basic patterns are substantially the same as the basic pattern shown in FIG.
Is a case where the dots to the left and above the target dot are black, and the lower side of the diagonally rising diagonal pattern is interpolated (dots are added). The basic pattern B is a case where the dots to the right of and above the dot to be processed are black, and the lower side of the pattern of the diagonal line descending to the right is interpolated. The basic pattern C is a case in which the dot to the left of the dot to be processed and the dot below it are black, and the upper side of the pattern of the diagonal line descending to the right is interpolated. Basic pattern D
Is a case where the dot to the right of the dot to be processed and the dot below it are black, and the upper side of the pattern of diagonal lines rising to the right is interpolated.

【0070】次に、図18〜図21は、補間処理の対象
となるパターンを示し、それぞれ(A)は各パターンの
基本形を示す。図18〜図21の(B)は斜線の傾きが
45゜で階段部分において連続する黒ドットの数の縦横
比が1:1のパターンである。即ち、(B)のパターン
は、階段部分において縦及び横方向に連続する黒ドット
の数がそれぞれ1であり、縦横比が1:1である。図1
8〜図21の(C)は、階段部分において縦方向に連続
する黒ドットの数が1で横方向に連続する黒ドットの数
が2以上となるパターンである。例えば、図18〜図2
1の(C)の第1と第2のパターンは、階段部分におい
て縦方向に連続する黒ドットの数が1で横方向に連続す
る黒ドットの数が2であり、縦横比が1:2である。ま
た、図18〜図21の(C)の第3と第4パターンは、
階段部分において縦方向に連続する黒ドットの数が1で
横方向に連続する黒ドットの数が3であり、縦横比が
1:3である。同様に、第5のパターンは、階段部分に
おいて縦方向に連続する黒ドットの数が1で横方向に連
続する黒ドットの数が4であり、縦横比が1:4のパタ
ーンである。図18〜図21の(D)は、階段部分にお
いて横方向に連続する黒ドットの数が1で縦方向に連続
する黒ドットの数が2以上となるパターンであり、
(D)の第1と第2のパターンは、階段部分において横
方向に連続する黒ドットの数が1で縦方向に連続する黒
ドットの数が2であり、縦横比が2:1である。また、
第3と第4のパターンは、階段部分において横方向に連
続する黒ドットの数が1で縦方向に連続する黒ドットの
数が3であり、縦横比が3:1である。また、第5のパ
ターンは、階段部分において横方向に連続する黒ドット
の数が1で縦方向に連続する黒ドットの数が4であり、
縦横比が4:1のパターンである。図18〜図21の
(E)は、階段部分において縦及び横方向に連続する黒
ドットの数がそれぞれ2又は3、縦横比が2:2、2:
3,3:2のいずれかに該当するパターンである。図1
8〜図21の(F)は、階段部分において縦横共に3ド
ット以上連続するパターンである。これらの場合は、ラ
インが直交しているものとみなす。これらのパターンに
補間処理を行うと、元のイメージを壊してしまう。この
ため、これらのパターンに該当する場合は、第1の実施
の形態と同様に、補間処理を行わないことにする。
Next, FIGS. 18 to 21 show patterns to be interpolated, and (A) shows the basic form of each pattern. FIGS. 18 to 21B are patterns in which the oblique line has an inclination of 45 ° and the aspect ratio of the number of continuous black dots in the staircase portion is 1: 1. That is, in the pattern (B), the number of black dots continuous in the vertical and horizontal directions is 1 in the staircase portion, and the aspect ratio is 1: 1. FIG.
FIGS. 8 to 21C are patterns in which the number of black dots continuous in the vertical direction is 1 and the number of black dots continuous in the horizontal direction is 2 or more in the staircase portion. For example, FIGS.
In the first and second patterns (C) of 1, the number of black dots continuous in the vertical direction is 1 in the staircase portion, the number of black dots continuous in the horizontal direction is 2, and the aspect ratio is 1: 2. Is. In addition, the third and fourth patterns in (C) of FIGS.
In the staircase portion, the number of black dots continuous in the vertical direction is 1, the number of black dots continuous in the horizontal direction is 3, and the aspect ratio is 1: 3. Similarly, the fifth pattern is a pattern in which the number of black dots continuous in the vertical direction is 1, the number of black dots continuous in the horizontal direction is 4, and the aspect ratio is 1: 4 in the staircase portion. 18 to 21D are patterns in which the number of black dots continuous in the horizontal direction is 1 and the number of black dots continuous in the vertical direction is 2 or more in the staircase portion,
In the first and second patterns (D), the number of black dots continuous in the horizontal direction is 1, the number of black dots continuous in the vertical direction is 2, and the aspect ratio is 2: 1 in the staircase portion. . Also,
In the third and fourth patterns, the number of black dots continuous in the horizontal direction in the staircase portion is 1, the number of black dots continuous in the vertical direction is 3, and the aspect ratio is 3: 1. In the fifth pattern, the number of black dots continuous in the horizontal direction is 1 and the number of black dots continuous in the vertical direction is 4 in the staircase portion,
The pattern has an aspect ratio of 4: 1. 18 to 21E, the number of black dots continuous in the vertical and horizontal directions is 2 or 3, respectively, and the aspect ratio is 2: 2, 2: in the step portion.
This is a pattern corresponding to any of 3: 3: 2. FIG.
8 to 21 (F) is a pattern in which three or more dots are continuous in both the vertical and horizontal directions in the staircase portion. In these cases, the lines are considered to be orthogonal. Interpolating these patterns will destroy the original image. Therefore, if these patterns are applicable, the interpolation process is not performed as in the first embodiment.

【0071】次に、具体的な補正手順を図22、図23
を参照して説明する。先ず、図22(A)は、縦横比が
1:2のパターンの例を示す。このパターンを縦横2倍
に拡大した時のパターンを(B)に、このパターンを縦
横3倍に拡大した時のパターンを(D)に、このパター
ンを縦横4倍に拡大した時のパターンを(E)に示す。
Next, a concrete correction procedure will be described with reference to FIGS.
Will be described with reference to. First, FIG. 22A shows an example of a pattern having an aspect ratio of 1: 2. The pattern when this pattern is magnified twice in the vertical and horizontal directions is shown in (B), the pattern when this pattern is magnified three times in the vertical and horizontal directions is shown in (D), and the pattern when this pattern is magnified four times in the vertical and horizontal directions ( E).

【0072】図22(A)に示す元のパターンが、例え
ば、図18(C)の第1又は第2のパターンに該当する
場合を考える。スムージングのために、元のパターンの
ドットを順次スキャンし、注目ドットがドットD1に達
した時点で、補間が必要であることが判別される。
Consider the case where the original pattern shown in FIG. 22A corresponds to, for example, the first or second pattern in FIG. 18C. For smoothing, the dots of the original pattern are sequentially scanned, and when the target dot reaches the dot D1, it is determined that interpolation is necessary.

【0073】補間が必要であることが判別されると、次
に補間するドットの数が判別される。補間ドット数は数
1に基づいて決定される。
When it is determined that interpolation is necessary, the number of dots to be interpolated next is determined. The number of interpolation dots is determined based on Equation 1.

【0074】[0074]

【数1】P1=a・(b−1)/(2b) P2=a・(b−3)/(2b)・・・・・・## EQU1 ## P1 = a. (B-1) / (2b) P2 = a. (B-3) / (2b) ...

【0075】ここで、P1、P2、・・・はそれぞれ第1
行、第2行、・・・の補間ドット数、aは元絵における横
方向の連続黒ドット数と横方向の拡大倍率の積、bは縦
方向の拡大倍率である。P1,P2が整数にならない場
合は、小数点以下を四捨五入(0.5未満を切り捨て、
0.5以上を切り上げる)し、整数に丸める。
Here, P1, P2, ...
The number of interpolated dots in the line, the second line, ..., A is the product of the number of continuous black dots in the horizontal direction of the original picture and the horizontal magnification, and b is the vertical magnification. If P1 and P2 are not integers, round the number below the decimal point (truncate less than 0.5,
Round up 0.5 or more) and round to an integer.

【0076】図22(B)のパターン場合、階段部分の
横方向の連続ドット数は2で、拡大倍率も2であり、a
は4となる。また、縦方向の拡大倍率bは2である。こ
のため、P1=4・(2−1)/(2・2)=1とな
り、P2以降は負の数となる。従って、図22(C)に
示すように、黒ドットを1ドット補間する。
In the case of the pattern of FIG. 22B, the number of continuous dots in the lateral direction of the staircase portion is 2, the enlargement magnification is 2, and a
Is 4. Also, the enlargement factor b in the vertical direction is 2. Therefore, P1 = 4 · (2-1) / (2 · 2) = 1, and P2 and thereafter are negative numbers. Therefore, one black dot is interpolated as shown in FIG.

【0077】図22(D)のパターン場合、階段部分の
横方向の連続ドット数は2で、拡大倍率は3であり、a
は6となる。また、縦方向の拡大倍率bは3である。こ
のため、P1=6・(3−1)/(2・3)=2とな
り、P2=6・(3−3)/(2・3)=0となり、P
3以降は負の数となる。従って、図22(D)に示すよ
うに、第1行に黒ドットを2ドット補間する。
In the case of the pattern of FIG. 22D, the number of continuous dots in the lateral direction of the staircase portion is 2, the enlargement magnification is 3, and a
Becomes 6. Also, the enlargement factor b in the vertical direction is 3. Therefore, P1 = 6 · (3-1) / (2 · 3) = 2, P2 = 6 · (3-3) / (2.3) = 0, and P2
After 3 is a negative number. Therefore, as shown in FIG. 22D, two black dots are interpolated in the first row.

【0078】図22(E)のパターン場合、階段部分の
横方向の連続ドット数は2、拡大倍率は4であり、aは
8となる。また、縦方向の拡大倍率bは4である。この
ため、P1=8・(4−1)/(2・4)=3となり、
P2=8・(4−3)/(2・4)=1となり、P3以
降は負の数となる。従って、図22(E)に示すよう
に、第1行に黒ドットを2ドット補間し、第2行に黒ド
ットを1ドット補間する。
In the case of the pattern of FIG. 22E, the number of continuous dots in the lateral direction of the staircase portion is 2, the enlargement magnification is 4, and a is 8. Also, the enlargement factor b in the vertical direction is 4. Therefore, P1 = 8. (4-1) / (2.4) = 3,
P2 = 8. (4-3) / (2.4) = 1 and P3 and thereafter are negative numbers. Therefore, as shown in FIG. 22E, two black dots are interpolated in the first row and one black dot is interpolated in the second row.

【0079】また、図18〜図21の(D)に示すよう
な黒ドットが縦方向に連続する段差部に補間を行う場合
は、補間方向を90゜回転して考えればよい。
When interpolation is performed on a step portion in which black dots are continuous in the vertical direction as shown in FIGS. 18 to 21D, the interpolation direction may be rotated by 90 °.

【0080】次に、図23(A)は、段差部から連続す
る黒ドット数の比が2:2のパターンの例を示す。この
パターンを縦横2倍に拡大した時のパターンを図23
(B)に、このパターンを縦横3倍に拡大した時のパタ
ーンを図23(D)に、このパターンを縦横4倍に拡大
した時のパターンを図23(E)に示す。
Next, FIG. 23A shows an example of a pattern in which the ratio of the number of black dots continuing from the step portion is 2: 2. FIG. 23 shows a pattern when this pattern is enlarged vertically and horizontally twice.
FIG. 23 (D) shows a pattern when this pattern is magnified 3 times vertically and horizontally, and FIG. 23 (E) shows a pattern when this pattern is magnified 4 times horizontally and vertically.

【0081】図23(A)に示す元のパターンが、例え
ば、図18(E)に示すパターンのいずれかに該当する
場合を考える。本来スムージングの対象となるドットパ
ターンは、元絵において斜線のジャギー部での縦方向の
連続黒ドット数又は横方向の連続黒ドット数のどちらか
一方は1であるべきである。しかし、現実には、サンプ
リング誤差などが原因で、元絵の斜線部に2ドット×2
ドットの階段状のパターンが発生する場合がある。この
実施の形態では、これらの場合にも対応できる。
Consider the case where the original pattern shown in FIG. 23A corresponds to any of the patterns shown in FIG. 18E, for example. In the original picture, the dot pattern to be smoothed should have either one of the number of continuous black dots in the vertical direction or the number of continuous black dots in the horizontal direction in the jaggy portion of the original picture. However, in reality, due to sampling error, 2 dots × 2 in the shaded area of the original picture
A stepped pattern of dots may occur. This embodiment can also handle these cases.

【0082】スムージングのために、元のパターンのド
ットを順次スキャンし、注目ドットがドットD2に達し
た時点で、ドットD2の周辺パターンが図18(E)の
パターンに該当していると判別され、補間が必要である
ことが判別される。
For smoothing, the dots of the original pattern are sequentially scanned, and when the target dot reaches the dot D2, it is determined that the peripheral pattern of the dot D2 corresponds to the pattern of FIG. 18 (E). , It is determined that interpolation is necessary.

【0083】続いて、例えば、ROMに格納された設定
より、このパターンが縦横比2:2の補間を行うべきこ
とを判別する。縦横比2:2の補正の追加ドットは数2
に基づいて決定される。
Subsequently, for example, it is determined from the settings stored in the ROM that this pattern should be interpolated with an aspect ratio of 2: 2. The number of additional dots for correction with an aspect ratio of 2: 2 is 2
It is decided based on.

【0084】[0084]

【数2】P1=a・(b−1)/(2b) P2=a・(b−3)/(2b) P3=a・(b−5)/(2b) P4=a・(b−7)/(2b)・・・・・・## EQU00002 ## P1 = a. (B-1) / (2b) P2 = a. (B-3) / (2b) P3 = a. (B-5) / (2b) P4 = a. (B- 7) / (2b) ...

【0085】即ち、b−(2n−1)>0(n=1,
2,3・・・・・・)の間、第n行をPnドット補間する。
That is, b- (2n-1)> 0 (n = 1,
, 2, ...) Pn dots are interpolated in the nth row.

【0086】図23(B)のパターン場合、階段部分の
横方向の連続ドット数は2で、拡大倍率も2であり、a
は4となる。また、縦方向の連続ドット数は2で、拡大
倍率bも2である。このため、P1=4・(4−1)/
(2・4)=1.5≒2、P2=4・(4−3)/(2
・4)=0.5≒1となり、P2以降は負の数となる。
従って、図23(C)に示すように、第1行に黒ドット
を2ドット、第2行に黒ドットを1ドット補間する。
In the case of the pattern of FIG. 23B, the number of continuous dots in the lateral direction of the staircase portion is 2, the enlargement magnification is 2, and a
Is 4. Further, the number of continuous dots in the vertical direction is 2 and the enlargement magnification b is also 2. Therefore, P1 = 4 · (4-1) /
(2.4) = 1.5≈2, P2 = 4 * (4-3) / (2
・ 4) = 0.5≈1 and a negative number after P2.
Therefore, as shown in FIG. 23C, two black dots are interpolated in the first row and one black dot is interpolated in the second row.

【0087】図23(C)のパターンの場合、階段部分
の横方向の連続ドット数は2で、拡大倍率は3であり、
aは6となる。また、縦方向の連続ドット数は2、拡大
倍率bは3である。このため、P1=6・(6−1)/
(2・6)=2.5≒3、P2=6・(6−3)/(2
・6)=1.5≒2、P3=6・(6−5)/(2・
6)=0.5≒1となる。従って、図23(C)に示す
ように、第1行に黒ドットを3ドット、第2行に黒ドッ
トを2ドット、第3行に黒ドットを1ドット補間する。
In the case of the pattern of FIG. 23C, the number of continuous dots in the lateral direction of the staircase portion is 2, the enlargement magnification is 3, and
a becomes 6. The number of continuous dots in the vertical direction is 2 and the enlargement magnification b is 3. Therefore, P1 = 6 · (6-1) /
(2 · 6) = 2.5≈3, P2 = 6 · (6-3) / (2
・ 6) = 1.5≈2, P3 = 6 ・ (6-5) / (2 ・
6) = 0.5≈1. Therefore, as shown in FIG. 23C, three black dots are interpolated in the first row, two black dots are interpolated in the second row, and one black dot is interpolated in the third row.

【0088】図23(D)のパターンの場合、階段部分
の横方向の連続ドット数は2で、拡大倍率は4であり、
aは8となる。また、縦方向の連続ドット数は2、拡大
倍率は4であり、bは8となる。このため、P1=8・
(8−1)/(2・8)=3.5≒4、P2=8・(8
−3)/(2・8)=2.5≒2、P3=8・(8−
5)/(2・8)=1.5≒2、P4=8・(8−7)
/(2・8)=0.5≒1となる。従って、図22
(D)に示すように、第1行に黒ドットを4ドット、第
2行に黒ドットを3ドット、第3行に黒ドットを2ドッ
ト、第4行に黒ドットを1ドット補間する。
In the case of the pattern of FIG. 23D, the number of continuous dots in the horizontal direction of the staircase portion is 2, the enlargement magnification is 4, and
a becomes 8. Further, the number of continuous dots in the vertical direction is 2, the enlargement magnification is 4, and b is 8. Therefore, P1 = 8
(8-1) / (2.8) = 3.5≈4, P2 = 8. (8
-3) / (2.8) = 2.5≈2, P3 = 8. (8-
5) / (2.8) = 1.5≈2, P4 = 8. (8-7)
/(2.8)=0.5≈1. Therefore, FIG.
As shown in (D), four black dots are interpolated on the first row, three black dots are interpolated on the second row, two black dots are interpolated on the third row, and one black dot is interpolated on the fourth row.

【0089】このように、元絵の各ドットをスキャン
し、図17に示す基本パターンA〜Dのいずれかに該当
する場合には、周辺ドットが図18〜図21に示すパタ
ーンのいずれかに該当するか否かを判別する。そして、
該当する場合には、求めの階段部分(又は交差部)で連
続する同一色のドットの数の縦横比を求め、求めた縦横
比に応じて数1又は数2に従って、補間ドット数を求め
て補間する。従って、縦と横で拡大倍率が異なる場合に
も対応することが可能である。
As described above, when each dot of the original picture is scanned and if one of the basic patterns A to D shown in FIG. 17 is applicable, the surrounding dots are one of the patterns shown in FIGS. 18 to 21. It is determined whether it is applicable. And
If applicable, the aspect ratio of the number of consecutive dots of the same color at the obtained staircase portion (or intersection) is obtained, and the interpolated dot number is obtained according to equation 1 or equation 2 according to the obtained aspect ratio. Interpolate. Therefore, it is possible to deal with the case where the magnification is different between the vertical and horizontal directions.

【0090】なお、この実施の形態においては、縦横比
が2:3又は3:2の場合も、縦横比が2:2であると
みなして補間を行う。これは、同色のドットが縦横方向
に2ドット以上連続する部分が字形線の交差部或いは終
端部であり、補間のしすぎによってかえって元絵のイメ
ージを損ねてしまう虞があるためである。
In this embodiment, even when the aspect ratio is 2: 3 or 3: 2, it is considered that the aspect ratio is 2: 2 and interpolation is performed. This is because the portion where two or more dots of the same color are continuous in the vertical and horizontal directions is the intersection or the end of the character line, and there is a risk that the image of the original picture may be damaged due to over-interpolation.

【0091】上記実施の形態においては、白の背景中に
黒で表現されたフォントを拡大し、拡大後のドットパタ
ーンに黒ドットを補間することにより、スムージングを
行ったが、例えば、黒の背景中に白で表現された白抜き
のフォントを拡大するような場合には、白ドットを補間
することにより、スムージング処理を行う。
In the above-described embodiment, the smoothing is performed by enlarging the font expressed in black in the white background and interpolating the black dots in the enlarged dot pattern. When enlarging a white font expressed in white, smoothing processing is performed by interpolating white dots.

【0092】(第3の実施の形態)前記第1及び第2の
実施の形態においては、段差部に黒ドットを追加するポ
ジティブ補間を行ったが、段差部のドットを除去する補
間、即ち、ネガティブな補間を行っても良い。そこで、
以下にドットを除去することによるスムージングを行う
ネガティブ補間処理の一例を説明する。
(Third Embodiment) In the first and second embodiments, the positive interpolation for adding the black dot to the step portion is performed. However, the interpolation for removing the dot in the step portion, that is, Negative interpolation may be performed. Therefore,
An example of a negative interpolation process for performing smoothing by removing dots will be described below.

【0093】このスムージング処理は、第1及び第2の
実施の形態と同様に、図24に示す手順で実行される。
This smoothing processing is executed by the procedure shown in FIG. 24, as in the first and second embodiments.

【0094】まず、基本フォントを構成するドットを指
示するドットポインタを初期化する(ステップS10
1)。次に、ドットポインタにより指示されたドットの
値を読み出し、そのドットが黒か否かを判別する(ステ
ップS102)。この実施の形態では、拡大されたフォ
ントの黒のドットを除去する(即ち、黒のドットを白の
ドットに変換する)ことにより、拡大フォントのスムー
ジングを行う。従って、処理対象のドットが白の場合
は、拡大後の対応ドットについては補間処理を行う必要
がない。従って、そのドットについての処理を終了し、
ステップS105にジャンプし、そのドットが最終ドッ
トであるか否かを判別し、最終ドットであれば、そのフ
ォントについてのスムージング処理を終了し、必要に応
じて、次のフォントについてスムージング処理を実行す
る。最終ドットでなければ、ドットポインタを更新し
(ステップS106)、次のドットの処理に移る。
First, the dot pointer for designating the dots forming the basic font is initialized (step S10).
1). Next, the value of the dot designated by the dot pointer is read, and it is determined whether or not the dot is black (step S102). In this embodiment, smoothing of the enlarged font is performed by removing black dots of the enlarged font (that is, converting black dots into white dots). Therefore, when the dot to be processed is white, it is not necessary to interpolate the corresponding dot after expansion. Therefore, the processing for that dot is completed,
The process jumps to step S105 to determine whether or not the dot is the final dot. If the dot is the final dot, the smoothing process for the font is ended, and the smoothing process for the next font is executed as necessary. . If it is not the final dot, the dot pointer is updated (step S106), and the process for the next dot is started.

【0095】処理対象のドットが黒の場合(ステップS
102)、その周辺のドット配置が図25に示す基本パ
ターンA’〜D’のいずれかに該当するか否かを判別す
る(ステップS103)。図25において、+を付した
ドットが処理対象のドット、×を付したドットが白黒不
問のドット、空白のドットが白のドットである。基本パ
ターンA’は処理対象のドットの左隣、左上及び上のド
ットが白の場合である。基本パターンB’は処理対象の
ドットの左隣、左下及び下のドットが白の場合である。
基本パターンC’は処理対象のドットの右隣、右上及び
上のドットが白の場合である。基本パターンD’は処理
対象のドットの右隣、右下及び下のドットが白の場合で
あ。
When the dot to be processed is black (step S
102), and it is determined whether or not the dot arrangement around it corresponds to any of the basic patterns A ′ to D ′ shown in FIG. 25 (step S103). In FIG. 25, the dots with + are the dots to be processed, the dots with x are black and white uninteresting dots, and the blank dots are white dots. The basic pattern A ′ is a case where the dots to the left of the dot to be processed, the upper left and the upper dot are white. The basic pattern B ′ is a case where the dot to the left of the dot to be processed, the lower left and the lower dot are white.
The basic pattern C ′ is a case where the dots to the right of the dot to be processed, the upper right and the upper dot are white. The basic pattern D ′ is a case where the dots to the right of the dot to be processed, the lower right and the lower dots are white.

【0096】これらの基本パターンがポジティブ補間の
基本パターンと異なる点は、注目ドットの縦横方向に隣
接する2つのドットで挟まれるドット、注目ドットから
見て斜方向ドットも白である必要がある点である。これ
は、字形線を白ドットで切断してしまうのを防ぐためで
ある。斜方向のドットが黒である場合は、注目ドットと
の間の字形線で結ばれている可能性がある。その場合
に、黒ドットを削除すると、注目ドットと斜方向のドッ
トとの間が完全に離れてしまい、字形イメージを大きく
変えてしまう。これを防ぐために、斜方向のドットが白
で、注目ドットとの間が字形線で結ばれていない以内こ
とを確認してから補間を行う。
The difference between these basic patterns and the positive interpolation basic pattern is that the dots sandwiched by two adjacent dots in the vertical and horizontal directions of the target dot, and the diagonal dots from the target dot must also be white. Is. This is to prevent the character line from being cut by white dots. When the diagonal dots are black, it is possible that they are connected to the target dot by a character line. In that case, if the black dot is deleted, the target dot and the diagonal dot are completely separated from each other, and the glyph image is greatly changed. To prevent this, interpolation is performed after confirming that the diagonal dots are white and that the dots of interest are not connected by a letter line.

【0097】周囲のドット配置が基本パターンA’〜
D’のいずれにも該当しない場合、そのドットについて
は補間処理を行わず、フローは前述のステップS105
に進む。周囲のドット配置が基本パターンA’〜D’の
いずれかに該当する場合は、実際にスムージング処理を
行う必要があるか否か、あるとすればどのような補間処
理を行うかを判別して補間処理を実行する(ステップS
104)。
The surrounding dot arrangement is the basic pattern A '.
If it does not correspond to any of D ′, interpolation processing is not performed for that dot, and the flow proceeds to step S105 described above.
Proceed to. If the surrounding dot arrangement corresponds to any of the basic patterns A ′ to D ′, it is determined whether or not the smoothing process is actually required, and if so, what interpolation process is to be performed. Execute interpolation processing (step S
104).

【0098】その後、フローは前述のステップS105
に進み、最終ドットの処理が終了したか否かを判別し、
終了していれば、そのフォントについてのスムージング
処理を終了する。一方、終了していなければ、ドットポ
インタを更新し(ステップS106)、ステップS10
2にリターンする。基本フォントの全てのドットについ
て上述の処理が終了すると、ステップS105でYES
と判別され、そのフォントについてのスムージング処理
を終了する。
Thereafter, the flow is the above-mentioned step S105.
To determine whether the processing of the last dot is completed,
If finished, the smoothing process for that font is finished. On the other hand, if not completed, the dot pointer is updated (step S106), and step S10
Return to 2. When the above process is completed for all the dots of the basic font, YES is obtained in step S105.
Is determined, and the smoothing process for that font ends.

【0099】次に、ステップS104の補間処理を具体
的に説明する。次に、図26〜図29は、補間処理の対
象となるパターンを示し、それぞれ(A)は各パターン
の基本形を示す。(B)は斜線の傾きが45゜で階段部
分において連続する白ドットの数の縦横比が1:1のパ
ターンである。(C)は、階段部分において縦方向に連
続する白ドットの数が1で横方向に連続する白ドットの
数が2以上となるパターンであり、縦横比が1:2〜
1:4である。(D)は、階段部分において横方向に連
続する白ドットの数が1で縦方向に連続する白ドットの
数が2以上となるパターンであり、縦横比が2:1〜
4:1である。(E)は、階段部分において縦及び横方
向に連続する白ドットの数がそれぞれ2又は3、縦横比
が2:2、2:3,3:2のいずれかに該当するパター
ンである。(F)は、階段部分において縦横共に3ドッ
ト以上連続するパターンである。これらの場合は、字形
線が直角に曲がっているものとみなす。ここに補間処理
を行うと、元のイメージを壊してしまう。このため、こ
のパターンに該当する場合は、補間処理を行わないこと
にする。
Next, the interpolation processing in step S104 will be specifically described. Next, FIGS. 26 to 29 show patterns to be subjected to interpolation processing, and (A) shows the basic form of each pattern. (B) is a pattern in which the oblique line has an inclination of 45 ° and the aspect ratio of the number of continuous white dots in the staircase portion is 1: 1. (C) is a pattern in which the number of white dots continuous in the vertical direction is 1 and the number of white dots continuous in the horizontal direction is 2 or more in the staircase portion, and the aspect ratio is 1: 2.
It is 1: 4. (D) is a pattern in which the number of white dots continuous in the horizontal direction is 1 and the number of white dots continuous in the vertical direction is 2 or more in the staircase portion, and the aspect ratio is 2: 1 to.
It is 4: 1. (E) is a pattern in which the number of white dots continuous in the vertical and horizontal directions in the staircase portion is 2 or 3, respectively, and the aspect ratio is 2: 2, 2: 3, 3: 2. (F) is a pattern in which three or more dots are continuous vertically and horizontally in the staircase portion. In these cases, the glyph line is considered to be bent at a right angle. If interpolation processing is performed here, the original image will be destroyed. Therefore, if this pattern is applicable, the interpolation process is not performed.

【0100】次に、具体的な補間手順を図30、図31
を参照して説明する。先ず、図30(A)は、縦横比が
1:2のパターンの例を示す。このパターンを縦横2倍
に拡大した時のパターンを図30(B)に、このパター
ンを縦横3倍に拡大した時のパターンを図30(D)
に、このパターンを縦横4倍に拡大した時のパターンを
図30(E)に示す。
Next, a concrete interpolation procedure will be described with reference to FIGS.
Will be described with reference to. First, FIG. 30A shows an example of a pattern having an aspect ratio of 1: 2. FIG. 30 (B) shows a pattern when this pattern is magnified twice vertically and horizontally, and FIG. 30 (D) shows a pattern when this pattern is magnified three times vertically and horizontally.
FIG. 30E shows the pattern when this pattern is magnified 4 times in the vertical and horizontal directions.

【0101】図30(A)に示す元のパターンが、例え
ば、図29(C)に示すパターンのいずれかに該当する
場合を考える。スムージングのために、元のパターンの
ドットを順次スキャンし、注目ドットがドットD3に達
した時点で、ドットD3の周辺パターンが基本パターン
D’に該当していることが検出される。続いて、基本パ
ターンの周辺ドットパターンが図29(C)に示すパタ
ーン配置のいずれかに該当することが判別され、補間が
必要であること、縦横比が1:2であることが判別され
る。
Consider the case where the original pattern shown in FIG. 30A corresponds to any of the patterns shown in FIG. 29C, for example. For smoothing, the dots of the original pattern are sequentially scanned, and when the target dot reaches the dot D3, it is detected that the peripheral pattern of the dot D3 corresponds to the basic pattern D '. Subsequently, it is determined that the peripheral dot pattern of the basic pattern corresponds to any of the pattern arrangements shown in FIG. 29C, it is determined that interpolation is necessary, and the aspect ratio is 1: 2. .

【0102】補間が必要であることが判別されると、次
に補間(削除)するドットの数が判別される。補間ドッ
ト数は数3に基づいて決定される。
When it is determined that interpolation is necessary, the number of dots to be interpolated (deleted) next is determined. The number of interpolation dots is determined based on Equation 3.

【0103】[0103]

【数3】Q1=c・(d−1)/(2d) Q2=c・(d−3)/(2d)・・・・・・## EQU3 ## Q1 = c. (D-1) / (2d) Q2 = c. (D-3) / (2d) ...

【0104】ここで、Q1、Q2、・・・はそれぞれ第1
行、第2行、・・・の補間ドット数、cは元絵における横
方向の連続黒ドット数と横方向の拡大倍率の積、dは縦
方向の拡大倍率である。Q1,Q2が整数にならない場
合は、小数点以下を五捨六入(0.5未満を切り捨て、
0.5より大きい場合は切り上げる)し、整数に丸め
る。
Here, Q1, Q2, ...
The number of interpolated dots in the line, the second line, ..., C is the product of the number of continuous black dots in the horizontal direction in the original picture and the horizontal magnification, and d is the vertical magnification. If Q1 and Q2 are not integers, round to the nearest whole number (round down less than 0.5,
If it is greater than 0.5, round up) and round to an integer.

【0105】図30(B)の場合、階段部分の横方向の
連続ドット数は2で、拡大倍率も2であり、cは4とな
る。また、縦方向の拡大倍率dは2である。このため、
Q1=4・(2−1)/(2・2)=1となり、Q2以
降は負の数となる。従って、図30(C)に示すように
注目ドットD3を1ドット削除する。
In the case of FIG. 30B, the number of continuous dots in the horizontal direction of the staircase portion is 2, the enlargement magnification is 2, and c is 4. Also, the enlargement factor d in the vertical direction is 2. For this reason,
Q1 = 4 · (2-1) / (2 · 2) = 1, and a negative number after Q2. Therefore, one dot of the target dot D3 is deleted as shown in FIG.

【0106】図30(D)の場合、階段部分の横方向の
連続ドット数は2で、拡大倍率は3であり、cは6とな
る。また、縦方向の拡大倍率dは3である。このため、
Q1=6・(3−1)/(2・3)=2となり、Q2=
6・(3−3)/(2・3)=0となり、Q3以降は負
の数となる。従って、図30(D)に示すように、第1
行の黒ドットを2ドット削除する。
In the case of FIG. 30D, the number of continuous dots in the horizontal direction of the staircase portion is 2, the enlargement magnification is 3, and c is 6. The enlargement factor d in the vertical direction is 3. For this reason,
Q1 = 6 · (3-1) / (2.3) = 2, and Q2 =
6 · (3-3) / (2.3) = 0, and is a negative number after Q3. Therefore, as shown in FIG.
Delete two black dots in the row.

【0107】図30(E)の場合、階段部分の横方向の
連続ドット数は2、拡大倍率は4であり、cは8とな
る。また、縦方向の拡大倍率dは4である。このため、
Q1=8・(4−1)/(2・4)=3となり、Q2=
8・(4−3)/(2・4)=1となり、Q3以降は負
の数となる。従って、図30(E)に示すように、第1
行の黒ドットを3ドット除去し、第2行の黒ドットを1
ドット除去する。
In the case of FIG. 30E, the number of continuous dots in the lateral direction of the staircase portion is 2, the enlargement magnification is 4, and c is 8. Also, the enlargement factor d in the vertical direction is 4. For this reason,
Q1 = 8 · (4-1) / (2.4 ·) = 3, and Q2 =
8 · (4-3) / (2.4) = 1 and becomes a negative number after Q3. Therefore, as shown in FIG.
Remove 3 black dots in the row and 1 black dot in the 2nd row
Remove dots.

【0108】なお、白ドットが縦方向に連続する段差部
に補間を行う場合は、補間方向を90゜回転して考えれ
ばよい。
When performing interpolation on a step portion in which white dots are continuous in the vertical direction, it suffices to rotate the interpolation direction by 90 °.

【0109】次に、図31(A)は、注目ドットD4か
ら縦横方向に連続する白ドットの数の比が2:2のパタ
ーンの例を示す。このパターンを縦横2倍に拡大した時
のパターンを図31(B)に、このパターンを縦横3倍
に拡大した時のパターンを図31(C)に、このパター
ンを縦横4倍に拡大した時のパターンを図31(D)に
示す。
Next, FIG. 31A shows an example of a pattern in which the ratio of the number of white dots continuous in the vertical and horizontal directions from the target dot D4 is 2: 2. FIG. 31B shows a pattern when this pattern is magnified twice vertically and horizontally, FIG. 31C shows a pattern when this pattern is magnified three times vertically and horizontally, and four times vertically and horizontally. Pattern is shown in FIG.

【0110】図31(A)に示す元のパターンが、例え
ば、図29(E)に示すパターンのいずれかに該当する
場合を考える。本来スムージングの対象となるドットパ
ターンは、元絵において斜線のジャギー部での縦方向の
連続白ドット数又は横方向の連続白ドット数のどちらか
一方は1であるべきである。しかし、現実には、サンプ
リング誤差などが原因で、元絵の斜線部に2ドット×2
ドットの階段状のパターンが発生する場合がある。この
補間はこれらの場合に対応する。
Consider the case where the original pattern shown in FIG. 31 (A) corresponds to any of the patterns shown in FIG. 29 (E), for example. In the original picture, the dot pattern to be smoothed should have either one of the number of continuous white dots in the vertical direction or the number of continuous white dots in the horizontal direction in the hatched jaggy portion in the original picture. However, in reality, due to sampling error, 2 dots × 2 in the shaded area of the original picture
A stepped pattern of dots may occur. This interpolation corresponds to these cases.

【0111】スムージングのために、元のパターンのド
ットを順次スキャンし、注目ドットがドットD4に達し
た時点で、ドットD4の右、右下、下の3つが白であ
り、基本パターンD’に該当していると判別される。
For smoothing, the dots of the original pattern are sequentially scanned, and when the target dot reaches the dot D4, the right, lower right, and lower three of the dot D4 are white, and the basic pattern D'is formed. It is determined to be applicable.

【0112】続いて、注目ドットD4の周辺のドットパ
ターンが図29(E)に該当することが判別され、縦横
比2:2の場合のネガティブ補間を行うべきことが判別
される。縦横比2:2の削除ドットの数は数4に基づい
て決定される。
Subsequently, it is determined that the dot pattern around the target dot D4 corresponds to FIG. 29E, and it is determined that negative interpolation should be performed in the case of the aspect ratio of 2: 2. The number of deleted dots having an aspect ratio of 2: 2 is determined based on the equation 4.

【0113】[0113]

【数4】Q1=c・(d−1)/(2d) Q2=c・(d−3)/(2d) Q3=c・(d−5)/(2d) Q4=c・(d−7)/(2d)・・・・・・## EQU00004 ## Q1 = c. (D-1) / (2d) Q2 = c. (D-3) / (2d) Q3 = c. (D-5) / (2d) Q4 = c. (D- 7) / (2d)

【0114】即ち、d−(2n−1)>0(n=1,
2,3・・・・・・)の間、第n行のQnドットを除去する。
That is, d- (2n-1)> 0 (n = 1,
Between 2,3 ......), removing Q n dots in the n-th row.

【0115】図31(B)の場合、階段部分の横方向の
連続ドット数は2で、拡大倍率も2であり、cは4とな
る。また、縦方向の連続ドット数は2で、拡大倍率dも
2である。このため、Q1=4・(4−1)/(2・
4)=1.5≒1、Q2=4・(4−3)/(2・4)
=0.5≒0となる。従って、図31(B)に示すよう
に、第1行の黒ドットが1ドット除去(反転)される。
In the case of FIG. 31B, the number of continuous dots in the lateral direction of the staircase portion is 2, the enlargement magnification is 2, and c is 4. Further, the number of continuous dots in the vertical direction is 2, and the enlargement magnification d is also 2. Therefore, Q1 = 4 · (4-1) / (2 ·
4) = 1.5≈1, Q2 = 4 · (4-3) / (2.4)
= 0.5≈0. Therefore, as shown in FIG. 31B, one black dot in the first row is removed (inverted).

【0116】図31(C)の場合、階段部分の横方向の
連続ドット数は2で、拡大倍率は3であり、cは6とな
る。また、縦方向の連続ドット数は2、拡大倍率dは3
である。このため、Q1=6・(6−1)/(2・6)
=2.5≒2、Q2=6・(6−3)/(2・6)=
1.5≒1、Q3=6・(6−5)/(2・6)=0.
5≒0となる。従って、図31(C)に示すように、第
1行の黒ドットを3ドット、第2行の黒ドットを2ドッ
ト、第3行の黒ドットを1ドット除去する。
In the case of FIG. 31C, the number of continuous dots in the horizontal direction in the staircase portion is 2, the enlargement magnification is 3, and c is 6. Further, the number of continuous dots in the vertical direction is 2, and the enlargement magnification d is 3.
Is. Therefore, Q1 = 6 · (6-1) / (2.6)
= 2.5≈2, Q2 = 6 · (6-3) / (2.6) =
1.5≈1, Q3 = 6 · (6−5) / (2.6) = 0.
5≈0. Therefore, as shown in FIG. 31C, 3 black dots in the first row, 2 black dots in the second row, and 1 black dot in the 3rd row are removed.

【0117】以上説明したように、第3の実施の形態に
おいても、元絵の各ドットをスキャンし、注目ドットの
周囲のドットが図25に示すいずれかの基本パターンに
該当する場合には、周辺ドットが図26〜図29のいず
れかに該当するか否かを判別し、該当する場合には、そ
の縦横比を求め、求めた縦横比に応じて数3又は数4に
従って、補間ドット数を求めて補間する。従って、縦と
横で拡大倍率が異なる場合にも対応することが可能であ
る。
As described above, also in the third embodiment, when each dot of the original picture is scanned and the dots around the target dot correspond to any of the basic patterns shown in FIG. 25, It is determined whether or not the peripheral dots correspond to any of FIGS. 26 to 29, and if so, the aspect ratio thereof is obtained, and the number of interpolation dots is calculated according to the equation 3 or the equation 4 according to the obtained aspect ratio. And interpolate. Therefore, it is possible to deal with the case where the magnification is different between the vertical and horizontal directions.

【0118】なお、この実施の形態においては、縦横比
が2:3又は3:2の場合も、縦横比が2:2であると
みなして補間を行う。
Note that in this embodiment, even when the aspect ratio is 2: 3 or 3: 2, the interpolation is performed assuming that the aspect ratio is 2: 2.

【0119】(第4の実施の形態)以上の説明において
は、ポジティブ補間処理とネガティブ補間処理を個別に
説明したが、両補間方法は組み合わされて使用されるこ
とが望ましい。そこで、以下、ポジティブ補間処理とネ
ガティブ補間処理を組み合わせて使用する場合について
説明する。この場合、例えば、図32に示すように、拡
大されたドットパターンについて、初めにポジティブ補
間処理を実行し(ステップS201)、続いて、ネガテ
ィブ補間処理を実行する(ステップS202)。
(Fourth Embodiment) In the above description, the positive interpolation process and the negative interpolation process have been described separately, but it is desirable to use both interpolation methods in combination. Therefore, a case where the positive interpolation processing and the negative interpolation processing are used in combination will be described below. In this case, for example, as shown in FIG. 32, a positive interpolation process is first performed on the enlarged dot pattern (step S201), and then a negative interpolation process is performed (step S202).

【0120】次に、このような手順により、補間処理を
行う具体例について説明する。なお、以下の説明におい
ては、ポジティブ補間処理については基本パターンA、
ネガティブ補間処理については、基本パターンD’につ
いてのみ処理を行うものとする。図33(A)は、縦横
比1:1の斜線を縦横4倍に拡大したパターンである。
この発明では、補間ドットの数の計算において、ポジテ
ィブ補間処理では小数点以下を4捨5入し、ネガティブ
補間処理では5捨6入によって補間ドット数を整数値に
丸めている。このため、ポジティブ補間については、第
1行に2ドット、第2行に1ドットの黒ドットが補間さ
れ、ネガティブ補間については、第1行の1つの黒ドッ
トが白ドットに反転される。このような補間処理の結
果、スムージング処理後の字形の輪郭は一様に縦横比
(階段状の部分の縦と横の長さの比)が1:1になり、
美しい出力が得られる。
Next, a specific example of performing the interpolation process according to such a procedure will be described. In the following description, the basic pattern A,
Regarding the negative interpolation processing, only the basic pattern D ′ is processed. FIG. 33A shows a pattern in which a diagonal line having an aspect ratio of 1: 1 is magnified 4 times in the vertical and horizontal directions.
In the present invention, in the calculation of the number of interpolation dots, the number after the decimal point is rounded to four in the positive interpolation process, and the number to the interpolation dot is rounded to five in the negative interpolation process to round the interpolation dot number to an integer value. Therefore, for positive interpolation, 2 dots in the first row and 1 dot in the second row are interpolated, and for negative interpolation, one black dot in the first row is inverted to a white dot. As a result of such interpolation processing, the aspect ratio (ratio of the vertical length to the horizontal length of the stepped portion) of the character-shaped contour after the smoothing processing becomes 1: 1 uniformly,
Beautiful output is obtained.

【0121】図33(B)は、縦横比が1:2から1:
4に変化する斜線を縦横2倍に拡大したパターンを示
す。ここで、丸R5で囲んだ部分のスムージングは、ポ
ジティブ補間が2ドット、ネガティブ補間が1ドットで
行われる。このため、1:2から1:4に変化する傾き
の間に1:3という傾きが生成され、出力結果に滑らか
なカーブが得られる。
In FIG. 33B, the aspect ratio is 1: 2 to 1 :.
4 shows a pattern in which a diagonal line changing to 4 is magnified twice in the vertical and horizontal directions. Here, the smoothing of the portion surrounded by the circle R5 is performed with 2 dots for positive interpolation and 1 dot for negative interpolation. Therefore, a slope of 1: 3 is generated between the slopes changing from 1: 2 to 1: 4, and a smooth curve is obtained in the output result.

【0122】図34は、縦方向と横方向で異なる倍率の
拡大を行ったパターンの例であり、図34(A)は縦横
比1:1の斜線を縦3倍、横2倍に拡大したパターンで
ある。図34(B)は縦横比1:1の斜線を縦3倍、横
4倍に拡大したパターンである。図34(C)は縦横比
1:2の斜線を縦2倍、横3倍に拡大したパターンであ
る。図34(A)〜(C)のいずれの場合でも、拡大直
後のパターンよりもスムージング処理を行った後の直線
はスムーズである。例えば、図34(C)の場合の補間
ドット数は、ポジティブ補間が2ドット、ネガティブ補
間が1ドットであり、縦横比(1:2)×倍率(2:
3)=(2:6)となっていたジャギーに対し、スムー
ジング後は一様に縦横比1:3の斜線となり、滑らかで
美しい斜線になっている。
FIG. 34 shows an example of a pattern in which the magnification is different in the vertical direction and the horizontal direction. In FIG. 34 (A), a diagonal line having an aspect ratio of 1: 1 is enlarged three times vertically and twice horizontally. It is a pattern. FIG. 34B shows a pattern in which a diagonal line having an aspect ratio of 1: 1 is enlarged 3 times vertically and 4 times horizontally. FIG. 34C shows a pattern in which a diagonal line having an aspect ratio of 1: 2 is enlarged twice vertically and three times horizontally. In any of FIGS. 34A to 34C, the straight line after the smoothing processing is smoother than the pattern immediately after the enlargement. For example, the number of interpolation dots in the case of FIG. 34C is 2 for positive interpolation and 1 for negative interpolation, and the aspect ratio (1: 2) × magnification (2:
3) = (2: 6), the smooth line is smooth and beautiful with a 1: 3 aspect ratio after smoothing.

【0123】また、図35は縦横比2:2の斜線を拡大
したパターンであり、図35(A)は縦横4倍に拡大し
たパターンである。縦横比2:2のスムージングの場合
も補間ドット数の計算にポジティブ補間側の4捨5入と
ネガティブ補間側の5捨6入を適用し、出力結果は縦横
比1:1の斜線となる。図35(B)は縦3倍、横4倍
に拡大したパターンである。これらの図からも明らかな
ように、縦横比2:2の斜線のスムージングの場合で
も、縦横を異なる倍率で拡大した場合でも、適切なスム
ージングが行われる。
Further, FIG. 35 shows a pattern obtained by enlarging an oblique line having an aspect ratio of 2: 2, and FIG. 35 (A) shows a pattern obtained by enlarging the aspect ratio by 4 times. Also in the case of smoothing with an aspect ratio of 2: 2, 4 rounding on the positive interpolation side and 5 rounding on the negative interpolation side are applied to the calculation of the number of interpolation dots, and the output result becomes a diagonal line with an aspect ratio of 1: 1. FIG. 35B shows a pattern enlarged three times vertically and four times horizontally. As is clear from these figures, appropriate smoothing is performed even in the case of diagonal smoothing with an aspect ratio of 2: 2 and in the case of enlarging the aspect ratio at different magnifications.

【0124】前述のように、ネガティブ補間処理の基本
パターンA’〜D’は、字形線が切断されるのを防ぐた
め、ポジティブ補間処理用の基本パターンA〜Dと異な
り、注目ドットの斜方向のドットも判別の対象としてい
る。仮に、ネガティブ補間処理においても斜方向のドッ
トを白黒不問とした場合、基本パターンA’〜D’は基
本パターンA〜Dを単純に白黒反転したものとなる。こ
の場合の出力結果の一例を図36(A)に示す。ネガテ
ィブ補間処理により字形線が切断されおり、好ましくな
い。これに対し、この発明の基本パターンA’〜D’を
使用する場合は、この発明によるネガティブ補間処理を
行った場合の出力結果の一例を示し、図36(B)は、
この発明によるネガティブ補間処理を行った場合の出力
結果の一例を示し、理想的な出力結果が得られている。
従って、この発明のネガティブ補間を使用することによ
り、適切なスムージング処理が可能となる。
As described above, the basic patterns A ′ to D ′ of the negative interpolation process are different from the basic patterns A to D of the positive interpolation process in order to prevent the glyph line from being cut off. The dot is also a target of discrimination. If, in the negative interpolation process as well, the dots in the oblique direction are black and white, the basic patterns A ′ to D ′ are simply the black and white inversions of the basic patterns A to D. An example of the output result in this case is shown in FIG. The character line is cut by the negative interpolation process, which is not preferable. On the other hand, when using the basic patterns A ′ to D ′ of the present invention, an example of the output result when the negative interpolation processing according to the present invention is performed is shown, and FIG.
An example of the output result when the negative interpolation processing according to the present invention is performed is shown, and an ideal output result is obtained.
Therefore, by using the negative interpolation of the present invention, appropriate smoothing processing can be performed.

【0125】なお、この発明は以上説明した例に限定さ
れず、任意に変更及び応用可能である。例えば、上記実
施の形態では、各ドットを白(無印刷)又は黒(着色)
としたが、ドットの色は任意である。
The present invention is not limited to the examples described above, and can be arbitrarily modified and applied. For example, in the above embodiment, each dot is white (no printing) or black (coloring).
However, the color of the dots is arbitrary.

【0126】この発明は任意のフォントを拡大印刷する
種々の装置、例えば、ワードプロセッサ、パーソナルコ
ンピュータ、ラベルプリンタ等に適用可能である。上記
実施の形態では、基本フォントを拡大印刷する例を中心
に説明したが、任意のドットパターンからなる元絵、例
えば、イメージリーダから読み込んだ二値画像を拡大す
る場合等にも同様に適用可能である。
The present invention can be applied to various devices for enlarging and printing arbitrary fonts, such as word processors, personal computers, label printers and the like. In the above embodiment, the example in which the basic font is enlarged and printed has been mainly described, but the same can be applied to the case of enlarging an original picture including an arbitrary dot pattern, for example, a binary image read from an image reader. Is.

【0127】[0127]

【発明の効果】以上説明したように、この発明によれ
ば、任意のドットパターンを拡大し、スムージング処理
を行う際に、元のフォントの各ドットの周囲のドットパ
ターンが4つのパターンのいずれかに該当するか否かを
判別し、該当する場合のみ、補間処理を行う。従って、
補間を必要としないドットの処理時間が短く、結果的に
総処理時間を短縮することができる。また、ドットを追
加する補間及びドットを取り除く補間と適宜組み合わせ
て使用することにより、スムージングを適切に行うこと
ができる。
As described above, according to the present invention, when an arbitrary dot pattern is enlarged and smoothing processing is performed, the dot pattern around each dot of the original font is one of four patterns. It is determined whether or not, and only when it is true, the interpolation process is performed. Therefore,
The processing time for dots that do not require interpolation is short, and as a result, the total processing time can be shortened. In addition, smoothing can be appropriately performed by appropriately combining with interpolation for adding dots and interpolation for removing dots.

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

【図1】この発明の実施の形態にかかる印刷装置の構造
を示すブロック図である。
FIG. 1 is a block diagram showing a structure of a printing apparatus according to an embodiment of the present invention.

【図2】スムージング処理の流れを示すフローチャート
である。
FIG. 2 is a flowchart showing a flow of smoothing processing.

【図3】補間処理が必要であるか否かを判別するための
4つのパターンを示す図である。
FIG. 3 is a diagram showing four patterns for determining whether or not interpolation processing is necessary.

【図4】適切な補間処理を説明するための図である。FIG. 4 is a diagram for explaining appropriate interpolation processing.

【図5】1/2補間を説明するための図である。FIG. 5 is a diagram for explaining 1/2 interpolation.

【図6】1/4補間を説明するための図である。FIG. 6 is a diagram for explaining ¼ interpolation.

【図7】補間処理の流れを示すフローチャートである。FIG. 7 is a flowchart showing a flow of interpolation processing.

【図8】基本パターンAと、基本パターンAに対応する
直交パターンと横方向の鋭角パターンと縦方向の鋭角パ
ターンと横方向の鈍角パターンと縦方向の鈍角パターン
とを示す図である。
FIG. 8 is a diagram showing a basic pattern A, an orthogonal pattern corresponding to the basic pattern A, a horizontal acute angle pattern, a vertical acute angle pattern, a horizontal obtuse angle pattern, and a vertical obtuse angle pattern.

【図9】基本パターンBと、基本パターンBに対応する
直交パターンと横方向の鋭角パターンと縦方向の鋭角パ
ターンと横方向の鈍角パターンと縦方向の鈍角パターン
とを示す図である。
9 is a diagram showing a basic pattern B, an orthogonal pattern corresponding to the basic pattern B, a horizontal acute angle pattern, a vertical acute angle pattern, a horizontal obtuse angle pattern, and a vertical obtuse angle pattern.

【図10】基本パターンCと、基本パターンCに対応す
る直交パターンと横方向の鋭角パターンと縦方向の鋭角
パターンと横方向の鈍角パターンと縦方向の鈍角パター
ンとを示す図である。
FIG. 10 is a diagram showing a basic pattern C, an orthogonal pattern corresponding to the basic pattern C, a horizontal acute angle pattern, a vertical acute angle pattern, a horizontal obtuse angle pattern, and a vertical obtuse angle pattern.

【図11】基本パターンDと、基本パターンDに対応す
る直交パターンと横方向の鋭角パターンと縦方向の鋭角
パターンと横方向の鈍角パターンと縦方向の鈍角パター
ンとを示す図である。
11 is a diagram showing a basic pattern D, an orthogonal pattern corresponding to the basic pattern D, a horizontal acute angle pattern, a vertical acute angle pattern, a horizontal obtuse angle pattern, and a vertical obtuse angle pattern.

【図12】パターン判別を行うために基本パターンに近
接するドットに付した符号を示す図である。
FIG. 12 is a diagram showing the reference numerals given to dots adjacent to a basic pattern for performing pattern determination.

【図13】図12に示す符号を用いて、補間の種類と補
間の長さを判別する流れを示すフローチャートである。
13 is a flowchart showing the flow of determining the type of interpolation and the length of interpolation using the symbols shown in FIG.

【図14】基本フォントの一例とそれを縦横2倍に拡大
し、さらに、スムージング処理を施した様子を示す図で
ある。
FIG. 14 is a diagram showing an example of a basic font, and a state in which the basic font is enlarged twice in length and width, and further smoothing processing is performed.

【図15】大きなサイズの基本フォントを拡大してスム
ージング処理を行う手順を示す図である。
FIG. 15 is a diagram showing a procedure of enlarging a large-sized basic font to perform smoothing processing.

【図16】大きなサイズの基本フォントを拡大してスム
ージング処理を行う手順を示す図である。
FIG. 16 is a diagram showing a procedure for enlarging a large-sized basic font to perform smoothing processing.

【図17】この発明の第2の実施の形態にかかる基本パ
ターンを示す図である。
FIG. 17 is a diagram showing a basic pattern according to a second embodiment of the present invention.

【図18】(A)は基本パターンAを示し、(B)乃至
(E)は基本パターンAを含み且つ補間処理の対象とな
るパターンを示し、(F)は基本パターンAを含むが、
補間処理の対象としないパターンを示す。
18A shows a basic pattern A, FIGS. 18B to 18E show patterns including the basic pattern A and to be subjected to interpolation processing, and FIG. 18F includes the basic pattern A.
The patterns that are not the target of the interpolation processing are shown.

【図19】(A)は基本パターンBを示し、(B)乃至
(E)は基本パターンBを含み且つ補間処理の対象とな
るパターンを示し、(F)は基本パターンBを含むが、
補間処理の対象としないパターンを示す。
19A shows a basic pattern B, FIGS. 19B to 19E show patterns that include the basic pattern B and are an object of interpolation processing, and FIG. 19F includes the basic pattern B.
The patterns that are not the target of the interpolation processing are shown.

【図20】(A)は基本パターンCを示し、(B)乃至
(E)は基本パターンCを含み且つ補間処理の対象とな
るパターンを示し、(F)は基本パターンCを含むが、
補間処理の対象としないパターンを示す。
20A is a basic pattern C, FIGS. 20B to 20E are basic patterns C and patterns to be subjected to interpolation processing, and FIG. 20F are basic patterns C.
The patterns that are not the target of the interpolation processing are shown.

【図21】(A)は基本パターンDを示し、(B)乃至
(E)は基本パターンDを含み且つ補間処理の対象とな
るパターンを示し、(F)は基本パターンDを含むが、
補間処理の対象としないパターンを示す。
21A shows a basic pattern D, FIGS. 21B to 21E show patterns including the basic pattern D and to be subjected to interpolation processing, and FIG. 21F includes the basic pattern D.
The patterns that are not the target of the interpolation processing are shown.

【図22】ポジティブ補間処理の例を示す図であり、
(A)は元のパターン、(B)は元のパターンを縦横2
倍に拡大したパターン、(C)は(B)のパターンに補
間処理を実施したパターン、(D)は元のパターンを縦
横3倍に拡大し補間処理を実施したパターン、(E)は
元のパターンを縦横4倍に拡大し補間処理を実施したパ
ターンを示す。
FIG. 22 is a diagram showing an example of positive interpolation processing,
(A) shows the original pattern, (B) shows the original pattern vertically and horizontally 2
The pattern enlarged twice, the pattern (C) obtained by interpolating the pattern (B), the pattern (D) obtained by expanding the original pattern three times in the vertical and horizontal directions and performing the interpolation process, and the pattern (E) showing the original pattern. A pattern obtained by enlarging the pattern four times vertically and horizontally and performing interpolation processing is shown.

【図23】ポジティブ補間処理の例を示す図であり、
(A)は元のパターン、(B)は元のパターンを縦横2
倍に拡大し補間処理を実施したパターン、(C)は元の
パターンを縦横3倍に拡大し補間処理を実施したパター
ン、(D)は元のパターンを縦横4倍に拡大し補間処理
を実施したパターンを示す。
FIG. 23 is a diagram showing an example of positive interpolation processing,
(A) shows the original pattern, (B) shows the original pattern vertically and horizontally 2
A pattern that is doubled and interpolated, a pattern (C) is an original pattern that is vertically and horizontally tripled and is interpolated, and a pattern (D) is an original pattern that is vertically and horizontally four times enlarged and interpolated. Shows the pattern.

【図24】この発明の第3の実施の形態にかかるネガテ
ィブ補間処理の手順を示すフローチャートである。
FIG. 24 is a flowchart showing a procedure of negative interpolation processing according to the third embodiment of the present invention.

【図25】この発明の第3の実施の形態にかかる基本パ
ターンを示す図である。
FIG. 25 is a diagram showing a basic pattern according to a third embodiment of the present invention.

【図26】(A)は基本パターンA’を示し、(B)乃
至(E)は基本パターンA’を含み且つ補間処理の対象
となるパターンを示し、(F)は基本パターンA’を含
むが、補間処理の対象としないパターンを示す。
FIG. 26 (A) shows a basic pattern A ′, (B) to (E) show a basic pattern A ′ and a pattern to be subjected to interpolation processing, and (F) contains a basic pattern A ′. Indicates a pattern that is not the target of interpolation processing.

【図27】(A)は基本パターンB’を示し、(B)乃
至(E)は基本パターンB’を含み且つ補間処理の対象
となるパターンを示し、(F)は基本パターンB’を含
むが、補間処理の対象としないパターンを示す。
27A shows a basic pattern B ′, FIGS. 27B to 27E show basic patterns B ′ and patterns to be subjected to interpolation processing, and FIG. 27F include a basic pattern B ′. Indicates a pattern that is not the target of interpolation processing.

【図28】(A)は基本パターンC’を示し、(B)乃
至(E)は基本パターンC’を含み且つ補間処理の対象
となるパターンを示し、(F)は基本パターンC’を含
むが、補間処理の対象としないパターンを示す。
28A is a basic pattern C ′, FIGS. 28B to E are basic patterns C ′ and patterns to be subjected to interpolation processing, and FIG. 28F are basic patterns C ′. Indicates a pattern that is not the target of interpolation processing.

【図29】(A)は基本パターンD’を示し、(B)乃
至(E)は基本パターンD’を含み且つ補間処理の対象
となるパターンを示し、(B)は基本パターンD’を含
むが、補間処理の対象としないパターンを示す。
29A is a basic pattern D ′, FIGS. 29B to 29E are basic patterns D ′ and patterns to be subjected to interpolation processing, and FIG. 29B are basic patterns D ′. Indicates a pattern that is not the target of interpolation processing.

【図30】ネガティブ補間処理の例を示す図であり、
(A)は元のパターン、(B)は元のパターンを縦横2
倍に拡大したパターン、(C)は(B)のパターンに補
間処理を実施したパターン、(D)は元のパターンを縦
横3倍に拡大し補間処理を実施したパターン、(E)は
元のパターンを縦横4倍に拡大し補間処理を実施したパ
ターンを示す。
FIG. 30 is a diagram showing an example of negative interpolation processing,
(A) shows the original pattern, (B) shows the original pattern vertically and horizontally 2
The pattern enlarged twice, the pattern (C) obtained by interpolating the pattern (B), the pattern (D) obtained by expanding the original pattern three times in the vertical and horizontal directions and performing the interpolation process, and the pattern (E) showing the original pattern. A pattern obtained by enlarging the pattern four times vertically and horizontally and performing interpolation processing is shown.

【図31】ネガティブ補間処理の例を示す図であり、
(A)は元のパターン、(B)は元のパターンを縦横2
倍に拡大し補間処理を実施したパターン、(C)は元の
パターンを縦横3倍に拡大し補間処理を実施したパター
ン、(D)は元のパターンを縦横4倍に拡大し補間処理
を実施したパターンを示す。
FIG. 31 is a diagram showing an example of negative interpolation processing,
(A) shows the original pattern, (B) shows the original pattern vertically and horizontally 2
A pattern that is doubled and interpolated, a pattern (C) is an original pattern that is vertically and horizontally tripled and is interpolated, and a pattern (D) is an original pattern that is vertically and horizontally four times enlarged and interpolated. Shows the pattern.

【図32】ポジティブ補間処理とネガティブ補間処理を
連続して実行する場合の処理手順を示すフローチャート
である。
FIG. 32 is a flowchart showing a processing procedure when positive interpolation processing and negative interpolation processing are continuously executed.

【図33】ポジティブ補間とネガティブ補間の例を示す
図であり、(A)は元のパターンを縦横4倍に拡大して
ポジティブとネガティブの両補間処理を実施したパター
ン、(B)は元のパターンを縦2倍横3倍に拡大してポ
ジティブとネガティブの両補間処理を実施したパターン
の例を示す。
FIG. 33 is a diagram showing an example of positive interpolation and negative interpolation, in which (A) is a pattern in which both the positive and negative interpolation processes are performed by enlarging the original pattern four times in the vertical and horizontal directions, and (B) is the original pattern. An example of a pattern obtained by performing both positive and negative interpolation processing by enlarging the pattern twice in the vertical direction and three times in the horizontal direction is shown.

【図34】ポジティブ補間とネガティブ補間の例を示す
図であり、(A)は縦横比が1:1の斜線を縦3倍横2
倍に拡大してポジティブとネガティブの両補間処理を実
施したパターン、(B)は縦横比が1:1の斜線をを縦
3倍横4倍に拡大してポジティブとネガティブの両補間
処理を実施したパターン、(C)は縦横比が1:2の斜
線をを縦2倍横3倍に拡大してポジティブとネガティブ
の両補間処理を実施したパターン、の例をそれぞれ示
す。
[Fig. 34] Fig. 34 is a diagram illustrating an example of positive interpolation and negative interpolation, in Fig. 34A, a diagonal line having an aspect ratio of 1: 1 is tripled vertically and horizontally 2 times.
A pattern that has been enlarged twice to perform both positive and negative interpolation processing. (B) A diagonal line with an aspect ratio of 1: 1 is enlarged three times vertically and four times horizontally to perform both positive and negative interpolation processing. 3C shows an example of a pattern obtained by expanding a diagonal line having an aspect ratio of 1: 2 to 2 times in the vertical direction and 3 times in the horizontal direction and performing both positive and negative interpolation processing.

【図35】ポジティブ補間とネガティブ補間の例を示す
図であり、(A)は元のパターンを縦横4倍に拡大して
ポジティブとネガティブの両補間処理を実施したパター
ン、(B)は元のパターンを縦3倍横4倍に拡大してポ
ジティブとネガティブの両補間処理を実施したパターン
の例を示す。
[Fig. 35] Fig. 35 is a diagram showing an example of positive interpolation and negative interpolation, in which (A) is a pattern in which both the positive and negative interpolation processes are performed by enlarging the original pattern by 4 times in the horizontal and vertical directions, and (B) is the original pattern. An example of a pattern in which both positive and negative interpolation processing is performed by enlarging the pattern three times vertically and four times horizontally will be shown.

【図36】ネガティブ補間の基本パターンにおいて、注
目ドット(処理対象ドット)の斜方向のドットの色を判
別する必要を説明するための図であり、(A)は斜方向
のドットの色を判別しない場合の補間処理後のパターン
図、(B)は斜方向のドットの色を判別する場合の補間
処理後のパターン図である。
[Fig. 36] Fig. 36 is a diagram for explaining the necessity of determining the diagonal dot color of the target dot (processing target dot) in the negative interpolation basic pattern, and Fig. 36A illustrates the diagonal dot color. FIG. 7B is a pattern diagram after the interpolation process when the dot color in the diagonal direction is determined, and FIG.

【図37】従来のスムージング処理を説明する図であ
る。
FIG. 37 is a diagram illustrating a conventional smoothing process.

【符号の説明】[Explanation of symbols]

11・・・制御部、12・・・キー入力部、13・・・入力デー
タRAM、14・・・基本フォントROM、15・・・拡大フ
ォントRAM、16・・・表示駆動部、17・・・印刷制御
部、18・・・表示部、19・・・印刷部
11 ... Control unit, 12 ... Key input unit, 13 ... Input data RAM, 14 ... Basic font ROM, 15 ... Enlarged font RAM, 16 ... Display drive unit, 17 ...・ Print control unit, 18 ... Display unit, 19 ... Printing unit

【手続補正書】[Procedure amendment]

【提出日】平成8年2月8日[Submission date] February 8, 1996

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】図29[Name of item to be corrected] Fig. 29

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図29】(A)は基本パターンD’を示し、(B)乃
至(E)は基本パターンD’を含み且つ補間処理の対象
となるパターンを示し、()は基本パターンD’を含
むが、補間処理の対象としないパターンを示す。
[29] (A) is' indicates, (B) through (E) are basic patterns D 'basic pattern D including shows a pattern to be and interpolation comprises, (F) the basic pattern D' Indicates a pattern that is not the target of interpolation processing.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/40 H04N 1/40 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI Technical display location H04N 1/40 H04N 1/40 Z

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】元絵のドットパターンを記憶する元絵記憶
手段と、 前記元絵記憶手段に記憶された元絵のドットパターンを
拡大する拡大手段と、 前記拡大手段により拡大されたドットパターンを記憶す
る拡大パターン記憶手段と、 前記元絵記憶手段に記憶された元絵の各ドットについ
て、該ドットの値を判別する値判別手段と、 前記値判別手段の判別値がスムージングの対象となりう
る所定の値の場合に、処理対象ドットの上下左右のドッ
トが予め定められた4つの基本パターンのいずれかに該
当するか否かを判別するパターン判別手段と、 前記パターン判別手段により、処理対象ドットの上下左
右のドットが前記4つの基本パターンのいずれかに該当
すると判断されたとき、所定の補間処理を前記拡大パタ
ーン記憶手段に記憶されたドットパターンの対応ドット
に対して実行する補間手段と、 を備えることを特徴とするドットパターンスムージング
装置。
1. An original picture storage means for storing a dot pattern of an original picture, an enlarging means for enlarging the dot pattern of the original picture stored in the original picture storage means, and a dot pattern enlarged by the enlarging means. An enlarged pattern storage unit that stores the value, a value determination unit that determines a value of each dot of the original picture stored in the original picture storage unit, and a determination value of the value determination unit that can be a target of smoothing. In the case of the value of, the pattern discriminating means for discriminating whether the upper, lower, left, and right dots of the processing target dot correspond to any one of the four predetermined basic patterns; When it is determined that the upper, lower, left, and right dots correspond to any of the four basic patterns, a predetermined interpolation process is performed on the dot pattern stored in the enlarged pattern storage unit. Dot pattern smoothing device characterized by and a interpolating means to be executed for the corresponding dot pattern.
【請求項2】前記値判別手段は、各ドットが非着色ドッ
トか着色ドットかを判別し、 前記パターン判別手段は、処理対象ドットが非着色の場
合に、該ドットの上及び左隣のドットが着色ドット、上
及び右隣のドットが着色ドット、下及び左隣のドットが
着色ドット、下及び右隣のドットが着色ドットの4つの
基本パターンのいずれかに該当するか否かを判別する、 ことを特徴とする請求項1に記載のドットパターンスム
ージング装置。
2. The value discriminating means discriminates whether each dot is a non-colored dot or a colored dot, and the pattern discriminating means, when the processing target dot is non-colored, the dots above and to the left of the dot. Is a colored dot, the dots adjacent to the upper and right sides are colored dots, the dots adjacent to the lower and left sides are colored dots, and the dots adjacent to the lower and right sides are colored dots. The dot pattern smoothing device according to claim 1, wherein
【請求項3】前記補間手段は、処理対象ドットが直交パ
ターンに位置しているとき、補間処理を行わないことを
特徴とする請求項2に記載のドットパターンスムージン
グ装置。
3. The dot pattern smoothing apparatus according to claim 2, wherein the interpolation means does not perform interpolation processing when the dots to be processed are located in the orthogonal pattern.
【請求項4】前記補間手段は、処理対象ドットの横方向
に位置するドットのパターンと縦方向に位置するドット
のパターンにそれぞれ応じて補間処理を実行することを
特徴とする請求項1、2又は3に記載のドットパターン
スムージング装置。
4. The interpolation means executes the interpolation processing according to a dot pattern located in a horizontal direction of a processing target dot and a dot pattern located in a vertical direction of a processing target dot, respectively. Or the dot pattern smoothing device described in 3.
【請求項5】前記補間手段は、処理対象ドットが鋭角カ
ーブ内に位置しているか鈍角カーブ内に位置しているか
を判別する手段を備え、判別結果に応じて異なった補間
を実行することを特徴とする請求項1乃至4のいずれか
1つに記載のドットパターンスムージング装置。
5. The interpolating means comprises means for discriminating whether a dot to be processed is located in an acute curve or an obtuse curve, and different interpolation is executed according to the discrimination result. 5. The dot pattern smoothing device according to claim 1, wherein the dot pattern smoothing device is a dot pattern smoothing device.
【請求項6】前記補間手段は、前記基本パターンの着色
ドットに連続して着色ドットが存在し、且つ、処理対象
ドットと同一段に所定ドット数以下離れた位置に着色ド
ットが存在する時に、処理対象ドットが鋭角カーブ内に
位置していると判断し、 前記基本パターンの着色ドットに連続して着色ドットが
存在し、且つ、処理対象ドットと同一段に所定ドット数
以下離れた位置に着色ドットが存在しない時に、処理対
象ドットが鈍角カーブ内に位置していると判断する、 ことを特徴とする請求項2に記載のドットパターンスム
ージング装置。
6. The interpolating means, when the colored dots of the basic pattern are continuously present, and the colored dots are present at a position separated by a predetermined dot number or less in the same stage as the processing target dot, It is determined that the processing target dot is located within the acute-angled curve, there is a colored dot in succession to the colored dots of the basic pattern, and the processing target dot is colored at a position separated by a predetermined number of dots or less in the same stage. The dot pattern smoothing device according to claim 2, wherein when there is no dot, it is determined that the dot to be processed is located within the obtuse-angled curve.
【請求項7】前記補間手段は、処理対象ドットが鋭角カ
ーブに位置していると判断した時、連続する着色ドット
の長さの1/4の長さに渡って着色ドットを補間し、処
理対象ドットが鈍角カーブに位置していると判断した
時、連続する着色ドットの長さの1/2の長さに渡って
着色ドットを補間する、 ことを特徴とする請求項6に記載のドットパターンスム
ージング装置。
7. The interpolation means interpolates a colored dot over a length of ¼ of the length of a continuous colored dot when the dot to be processed is determined to be located on an acute-angled curve, and performs the processing. 7. The dot according to claim 6, wherein when it is determined that the target dot is located on an obtuse-angled curve, the colored dot is interpolated over half the length of the continuous colored dot. Pattern smoothing device.
【請求項8】前記補間手段は、前記パターン判別手段に
より、処理対象ドットの上下左右のドットが前記基本パ
ターンのいずれかに該当すると判断されたとき、前記基
本パターンの周辺パターンが予め定められた所定パター
ンに該当するか否かを判別し、該当する場合に所定の補
間処理を実行する、ことを特徴とする請求項1乃至7の
いずれか1つに記載のドットパターンスムージング装
置。
8. The interpolation means determines a peripheral pattern of the basic pattern in advance when the pattern determining means determines that the dots on the upper, lower, left and right sides of the processing target dot correspond to any of the basic patterns. 8. The dot pattern smoothing device according to claim 1, wherein it is determined whether or not the pattern corresponds to a predetermined pattern, and if it corresponds, a predetermined interpolation process is executed.
【請求項9】前記補間手段は、処理対象ドットを含む階
段部分の縦方向及び横方向に連続する同一色のドットの
数の比に基づいて補間位置と補間ドット数を判別する、
ことを特徴とする請求項8に記載のドットパターンスム
ージング装置。
9. The interpolation means determines the interpolation position and the number of interpolation dots based on the ratio of the numbers of dots of the same color that are continuous in the vertical direction and the horizontal direction of the staircase portion including the processing target dot.
The dot pattern smoothing device according to claim 8, wherein
【請求項10】前記補間手段は、処理対象ドットを含む
階段部分の縦方向及び横方向に連続する同一色のドット
の数の比と、縦方向及び横方向の拡大倍率に基づいて補
間位置と補間ドット数を判別する、ことを特徴とする請
求項8に記載のドットパターンスムージング装置。
10. The interpolation means determines an interpolation position based on a ratio of the numbers of dots of the same color that continue in the vertical direction and the horizontal direction of a staircase portion including a processing target dot, and an enlargement factor in the vertical direction and the horizontal direction. 9. The dot pattern smoothing device according to claim 8, wherein the number of interpolated dots is determined.
【請求項11】元絵のドットパターンを記憶する元絵記
憶手段と、 前記元絵記憶手段に記憶された元絵のドットパターンを
拡大する拡大手段と、 前記拡大手段により拡大されたドットパターンを記憶す
る拡大パターン記憶手段と、 前記元絵記憶手段に記憶された元絵の各ドットについ
て、該ドットの値を判別する値判別手段と、 前記値判別手段の判別値がスムージングの対象となりう
る所定の値の場合に、処理対象ドットの上下左右のドッ
ト及び該上下左右のドットの間の処理対象ドットの斜上
のドットが予め定められた4つの基本パターンのいずれ
かに該当するか否かを判別するパターン判別手段と、 前記パターン判別手段により、処理対象ドットの上下左
右のドットが前記4つの基本パターンのいずれかに該当
すると判断されたとき、所定の補間処理を前記拡大パタ
ーン記憶手段に記憶されたドットパターンの対応ドット
に対して実行する補間手段と、 を備えることを特徴とするドットパターンスムージング
装置。
11. An original picture storing means for storing a dot pattern of an original picture, an enlarging means for enlarging the dot pattern of the original picture stored in the original picture storing means, and a dot pattern enlarged by the enlarging means. An enlarged pattern storage unit that stores the value, a value determination unit that determines a value of each dot of the original picture stored in the original picture storage unit, and a determination value of the value determination unit that can be a target of smoothing. In the case of the value of, whether the dots above and below and to the left and right of the dot to be processed and the diagonally diagonal dots of the dot to be processed between the dots above, below, left and right correspond to any of the four basic patterns determined in advance. When the pattern determining means for determining and the pattern determining means determines that the dots on the upper, lower, left and right sides of the processing target dot correspond to any of the four basic patterns. Dot pattern smoothing device characterized by and a interpolating means to be executed for the corresponding dot of the dot pattern stored in the enlargement pattern memory means the predetermined interpolation processing.
【請求項12】前記値判別手段は、各ドットが非着色ド
ットか着色ドットかを判別し、 前記パターン判別手段は、処理対象ドットが着色ドット
の場合に、該ドットの上及び左隣及び左斜上のドットが
非着色ドット、上及び右隣及び右斜上のドットが非着色
ドット、下及び左隣及び左斜下のドットが非着色ドッ
ト、下及び右隣及び右隣のドットが非着色ドットの4つ
の基本パターンのいずれかに該当するか否かを判別す
る、 ことを特徴とする請求項11に記載のドットパターンス
ムージング装置。
12. The value discriminating means discriminates whether each dot is a non-colored dot or a colored dot, and the pattern discriminating means, in the case where the processing target dot is a colored dot, is above and to the left of the dot and to the left. The diagonal dots are non-colored dots, the dots above and to the right and to the right are non-colored dots, the dots below and to the left and to the left are the non-colored dots, and the dots below and to the right and to the right. The dot pattern smoothing device according to claim 11, wherein it is determined whether or not it corresponds to any of the four basic patterns of colored dots.
【請求項13】前記補間手段は、処理対象ドットに隣接
する所定の3つのドットが4つの基本パターンのいずれ
かに該当すると判断された場合に、前記基本パターンの
周辺パターンが所定のパターンに該当するか否かを判別
し、該当する場合に所定の着色ドットを非着色ドットに
変換する、ことを特徴とする請求項11又は12に記載
のドットパターンスムージング装置。
13. The peripheral means of the basic pattern corresponds to a predetermined pattern when the interpolation means determines that the predetermined three dots adjacent to the processing target dot correspond to one of the four basic patterns. 13. The dot pattern smoothing device according to claim 11 or 12, wherein it is determined whether or not to do so, and if yes, the predetermined colored dot is converted into a non-colored dot.
【請求項14】前記補間手段は、処理対象ドットを含む
階段部分の縦方向及び横方向に連続する同一色のドット
の数の比に基づいて補間位置と補間ドット数を判別す
る、ことを特徴とする請求項11、12又は13に記載
のドットパターンスムージング装置。
14. The interpolation means determines the interpolation position and the number of interpolation dots based on the ratio of the numbers of dots of the same color that are continuous in the vertical direction and the horizontal direction of the staircase portion including the processing target dot. The dot pattern smoothing device according to claim 11, 12, or 13.
【請求項15】前記補間手段は、処理対象ドットを含む
階段部分の縦方向及び横方向に連続する同一色のドット
の数の比と、縦方向及び横方向の拡大倍率に基づいて補
間位置と補間ドット数を判別する、ことを特徴とする請
求項11、12又は13に記載のドットパターンスムー
ジング装置。
15. The interpolation means determines an interpolation position based on a ratio of the numbers of dots of the same color that are continuous in the vertical direction and the horizontal direction of a stairway portion including a processing target dot, and an enlargement factor in the vertical direction and the horizontal direction. 14. The dot pattern smoothing device according to claim 11, wherein the number of interpolation dots is determined.
【請求項16】前記補間手段により補間された後の拡大
ドットパターンを出力する手段を備えることを特徴とす
る請求項1乃至15のいずれか1つに記載のドットパタ
ーンスムージング装置。
16. The dot pattern smoothing apparatus according to claim 1, further comprising means for outputting the enlarged dot pattern after being interpolated by the interpolating means.
【請求項17】元絵のドットパターンを拡大し、元絵の
各ドットについて、該ドットの値が「1」であるか
「0」であるかを判別し、「0」の場合に、該ドットの
上及び左隣のドットが「1」、上及び右隣のドットが
「1」、下及び左隣のドットが「1」、下及び右隣のド
ットが「1」のいずれかに該当するか否かを判別し、該
当する場合に、「1」のドットを追加する所定の補間処
理を拡大されたドットパターンの対応ドットに対して実
行する、ことを特徴とするドットパターンスムージング
方法。
17. A dot pattern of an original picture is enlarged, and for each dot of the original picture, it is determined whether the value of the dot is "1" or "0". The dots above and to the left of the dot are "1", the dots to the left and above of the dot are "1", the dots to the bottom and to the left are "1", and the dots to the bottom and the right are "1" A dot pattern smoothing method, characterized in that it is determined whether or not to do so, and if so, a predetermined interpolation process of adding a dot of "1" is performed on the corresponding dot of the enlarged dot pattern.
【請求項18】元絵のドットパターンを拡大し、元絵の
各ドットについて、該ドットの値が「1」であるか
「0」であるかを判別し、「1」の場合に、該ドットの
上及び左隣及び左上のドットが「0」、上及び右隣及び
右上のドットが「0」、下及び左隣及び左下のドットが
「0」、下及び右隣及び右下のドットが「0」のいずれ
かに該当するか否かを判別し、該当する場合に、拡大さ
れたドットパターンの所定の「1」のドットを「0」の
ドットに変化する補間処理を実行する、ことを特徴とす
るドットパターンスムージング方法。
18. The dot pattern of the original picture is enlarged, and for each dot of the original picture, it is judged whether the value of the dot is "1" or "0". The dots above and to the left and to the left of the dot are "0", the dots to the left and above and to the right are "0", the dots below and to the left and to the left are "0", and the dots below and to the right and to the right Is determined to be any one of "0", and when it is determined, an interpolation process of changing a predetermined "1" dot of the enlarged dot pattern into a "0" dot is executed. A dot pattern smoothing method characterized by the above.
JP7255759A 1994-09-22 1995-09-08 Device and method for smoothing dot pattern Pending JPH08227456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7255759A JPH08227456A (en) 1994-09-22 1995-09-08 Device and method for smoothing dot pattern

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6-252688 1994-09-22
JP25268894 1994-09-22
JP7255759A JPH08227456A (en) 1994-09-22 1995-09-08 Device and method for smoothing dot pattern

Publications (1)

Publication Number Publication Date
JPH08227456A true JPH08227456A (en) 1996-09-03

Family

ID=26540827

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7255759A Pending JPH08227456A (en) 1994-09-22 1995-09-08 Device and method for smoothing dot pattern

Country Status (1)

Country Link
JP (1) JPH08227456A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100367900B1 (en) * 1999-07-07 2003-01-14 알프스 덴키 가부시키가이샤 Pixel number converting circuit and image display device using the same
WO2003032256A1 (en) * 2001-09-20 2003-04-17 Naltec Inc. Method of preparing bit map
WO2005124736A1 (en) 2004-06-15 2005-12-29 Sony Corporation Image processing device and method, recording medium, and program
CN102736319A (en) * 2011-04-12 2012-10-17 国际商业机器公司 Information processing apparatus, calculation method, program, and storage medium
JP2013179474A (en) * 2012-02-28 2013-09-09 Brother Ind Ltd Image processing apparatus and image processing program
JP2015168065A (en) * 2014-03-04 2015-09-28 株式会社リコー Image processing method, image processing device, image formation device, and program
JP2016186549A (en) * 2015-03-27 2016-10-27 三菱電機株式会社 Smoothing processor and smoothing processing method

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100367900B1 (en) * 1999-07-07 2003-01-14 알프스 덴키 가부시키가이샤 Pixel number converting circuit and image display device using the same
US7502144B2 (en) 2001-09-20 2009-03-10 Naltec, Inc. Method of preparing bit map
WO2003032256A1 (en) * 2001-09-20 2003-04-17 Naltec Inc. Method of preparing bit map
US8253763B2 (en) 2004-06-15 2012-08-28 Sony Corporation Image processing device and method, storage medium, and program
EP1758093A1 (en) * 2004-06-15 2007-02-28 Sony Corporation Image processing device and method, recording medium, and program
JP2006003420A (en) * 2004-06-15 2006-01-05 Sony Corp Image processing system and method, recording medium, and program
JP4617730B2 (en) * 2004-06-15 2011-01-26 ソニー株式会社 Image processing apparatus and method, recording medium, and program
EP1758093A4 (en) * 2004-06-15 2012-08-22 Sony Corp Image processing device and method, recording medium, and program
WO2005124736A1 (en) 2004-06-15 2005-12-29 Sony Corporation Image processing device and method, recording medium, and program
CN102736319A (en) * 2011-04-12 2012-10-17 国际商业机器公司 Information processing apparatus, calculation method, program, and storage medium
CN102736319B (en) * 2011-04-12 2014-12-17 国际商业机器公司 Information processing apparatus, and calculation method
US9329329B2 (en) 2011-04-12 2016-05-03 International Business Machines Corporation Information processing apparatus, calculation method, program, and storage medium
US9354381B2 (en) 2011-04-12 2016-05-31 International Business Machines Corporation Information processing apparatus, calculation method, program, and storage medium
JP2013179474A (en) * 2012-02-28 2013-09-09 Brother Ind Ltd Image processing apparatus and image processing program
JP2015168065A (en) * 2014-03-04 2015-09-28 株式会社リコー Image processing method, image processing device, image formation device, and program
JP2016186549A (en) * 2015-03-27 2016-10-27 三菱電機株式会社 Smoothing processor and smoothing processing method

Similar Documents

Publication Publication Date Title
JP3483946B2 (en) Font processing apparatus and font processing method
JPS62123573A (en) Computer graphic apparatus and operation thereof
JPH08227456A (en) Device and method for smoothing dot pattern
JPH01271275A (en) Character-to-character pitch processing
JP2856235B2 (en) Character processing device and character output method
JP2912638B2 (en) Hierarchical vectorization of kanji fonts
JP2001249656A (en) Character and graphic deformation processing device
JP3040624B2 (en) Pattern generator
JP3350325B2 (en) Character output device
JP3373345B2 (en) Color display
JP3143503B2 (en) Image processing method and apparatus
JPH01217395A (en) Word processor
JP3567727B2 (en) Image processing method and apparatus
JP4080470B2 (en) Character pattern generator
JP3089913B2 (en) High quality character output device
JPH11110150A (en) Image processing system, method therefor and computer-readable recording medium recording image processing control program
JP2757411B2 (en) Data converter
JP2803746B2 (en) Character processing method and apparatus
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JPH0560598B2 (en)
JPH0844333A (en) Graphic input device
JPS60113283A (en) Character pattern generator
JPH0968963A (en) Device and method for processing character
JPH05341764A (en) Device for outputting data
JPH07110676A (en) Data converting device