JP2022104334A - Printer, printing data creation method, and program - Google Patents
Printer, printing data creation method, and program Download PDFInfo
- Publication number
- JP2022104334A JP2022104334A JP2020219479A JP2020219479A JP2022104334A JP 2022104334 A JP2022104334 A JP 2022104334A JP 2020219479 A JP2020219479 A JP 2020219479A JP 2020219479 A JP2020219479 A JP 2020219479A JP 2022104334 A JP2022104334 A JP 2022104334A
- Authority
- JP
- Japan
- Prior art keywords
- correction
- pixel value
- data
- area
- cells
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
本発明は、印刷装置、印刷データ作成方法、及びプログラムに関する。 The present invention relates to a printing device, a print data creation method, and a program.
従来、画像を拡大して印刷する印刷装置が知られている。特許文献1には、プリンタに用いられる画像拡大方式に関する技術が開示されている。
Conventionally, a printing device for enlarging and printing an image is known.
印刷装置において、画像を拡大して印刷する場合、印刷した文字のエッジにギザギザの段差が生じてしまうという問題が生じていた。 In a printing device, when an image is enlarged and printed, there is a problem that a jagged step is generated at the edge of the printed character.
そこで、本発明はこれらの点に鑑みてなされたものであり、印刷した文字のエッジに段差を生じさせづらくする印刷装置を提供することを目的とする。 Therefore, the present invention has been made in view of these points, and an object of the present invention is to provide a printing apparatus that makes it difficult for a step to be generated at the edge of a printed character.
本発明の第1の態様においては、印刷する対象となる文字データを取得するデータ取得部と、前記文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、前記領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する拡大部と、3マス×3マスの領域に含まれる複数のマスの画素値のパターンがそれぞれ異なる複数のマッチングパターンと補正方法とを関連付けて記憶する記憶部と、前記記憶部が記憶する複数の前記マッチングパターンから、前記補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する選択部と、前記選択部が選択した前記マッチングパターンに対応する補正方法で、前記拡大データに含まれる複数の前記補正領域の画素値を補正することにより印刷データを作成する補正部と、前記印刷データを印刷する印刷部と、を有する印刷装置を提供する。 In the first aspect of the present invention, a data acquisition unit that acquires character data to be printed and pixels of nine pixels included in an area composed of 3 pixels × 3 pixels included in the character data. By allocating the value to the correction area of 3 squares × 3 squares larger than the area, the enlarged part for creating the enlarged data and the pattern of the pixel values of the plurality of squares included in the area of 3 squares × 3 squares are respectively. A storage unit that stores a plurality of different matching patterns and a correction method in association with each other, and a matching pattern that matches the pattern indicated by the pixel values of 9 squares included in the correction area from the plurality of matching patterns stored by the storage unit. A selection unit for selecting the above, and a correction unit for creating print data by correcting the pixel values of a plurality of the correction regions included in the enlarged data by a correction method corresponding to the matching pattern selected by the selection unit. Provided is a printing apparatus including a printing unit for printing the print data.
また、前記拡大部は、前記複数の画素それぞれの画素値を前記補正領域内の複数のマスの中央のマスに割り当てた後に、当該マスに隣接するマスの画素値が、前記文字データにおける対応する画素に隣接する画素の画素値になるようにしてもよい。 Further, in the enlarged portion, after the pixel value of each of the plurality of pixels is assigned to the central cell of the plurality of cells in the correction area, the pixel value of the cell adjacent to the cell corresponds to the character data. The pixel value of the pixel adjacent to the pixel may be set.
また、前記拡大部は、前記複数の画素それぞれの画素値を前記補正領域内の複数のマスの中央のマスに割り当てた後に、第1画素値の複数のマスに囲まれた第2画素値のマスの画素値を第1画素値に変更してもよい。 Further, the enlarged portion assigns the pixel value of each of the plurality of pixels to the central cell of the plurality of cells in the correction area, and then the second pixel value surrounded by the plurality of cells of the first pixel value. The pixel value of the cell may be changed to the first pixel value.
また、前記データ取得部は、前記文字データを印刷する際の拡大率を示す拡大率データをさらに取得し、前記拡大部は、前記拡大率データが示す拡大率に基づいて、前記補正領域に含まれる9個のマスそれぞれの大きさを決定してもよい。 Further, the data acquisition unit further acquires enlargement ratio data indicating the enlargement ratio when printing the character data, and the enlargement unit is included in the correction area based on the enlargement ratio indicated by the enlargement ratio data. The size of each of the nine cells may be determined.
また、前記補正部は、前記補正領域に含まれる第1画素値の複数のマスに接する第2画素値のマスの対角線に対して前記複数のマスの側の領域の画素値を第1画素値に補正してもよい。 Further, the correction unit sets the pixel value of the region on the side of the plurality of cells with respect to the diagonal line of the cells of the second pixel value in contact with the plurality of cells of the first pixel value included in the correction area as the first pixel value. It may be corrected to.
また、前記補正部は、前記補正領域に含まれる第1画素値の複数のマスに接する第2画素値の第1マスと、前記第1マスと第1画素値のマスに接する第2画素値の第2マスと、から構成される長方形領域の対角線に対して、前記複数のマスの側の領域の画素値を第1画素値に補正してもよい。 Further, the correction unit has a first cell of the second pixel value that touches a plurality of squares of the first pixel value included in the correction area, and a second pixel value that touches the first square and the square of the first pixel value. The pixel value of the region on the side of the plurality of squares may be corrected to the first pixel value with respect to the diagonal line of the rectangular region composed of the second square.
また、前記補正部は、前記補正領域において、隣接する第1画素値の2個のマスと、当該2個のマスと同じ行又は列に含まれる第2画素値の1個のマスと、により構成される長方形領域を、当該長方形領域の対角線に対して、第1画素値の他のマスの側の領域の画素値を第1画素値に補正し、前記対角線に対して反対側の領域の画素値を第2画素値に補正してもよい。 Further, in the correction area, the correction unit is composed of two cells having the first pixel value adjacent to each other and one cell having the second pixel value included in the same row or column as the two cells. In the rectangular area to be constructed, the pixel value of the area on the side of the other square of the first pixel value is corrected to the first pixel value with respect to the diagonal line of the rectangular area, and the area opposite to the diagonal line is corrected. The pixel value may be corrected to the second pixel value.
本発明の第2の態様においては、コンピュータが実行する、印刷する対象となる文字データを取得するステップと、前記文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、前記領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成するステップと、3マス×3マスの領域の画素値がそれぞれ異なる複数のマッチングパターンと補正方法とを関連付けたマッチングデータを参照することにより、複数の前記マッチングパターンから、前記補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択するステップと、選択した前記マッチングパターンに対応する補正方法で、前記拡大データに含まれる複数の前記補正領域の画素値を補正することにより印刷データを作成するステップと、を有する印刷データ作成方法を提供する。 In the second aspect of the present invention, a step of acquiring character data to be printed, which is executed by a computer, and nine elements included in an area composed of 3 pixels × 3 pixels included in the character data. A step of creating enlarged data by allocating the pixel value of a pixel to a correction area of 3 squares × 3 squares larger than the above area, and a plurality of matching patterns in which the pixel value of the area of 3 squares × 3 squares is different from each other. By referring to the matching data associated with the correction method, a step of selecting a matching pattern that matches the pattern indicated by the pixel value of 9 cells included in the correction area from the plurality of matching patterns, and the selected matching. Provided is a print data creation method including a step of creating print data by correcting pixel values of a plurality of the correction regions included in the enlarged data by a correction method corresponding to a pattern.
本発明の第3の態様においては、コンピュータに、印刷する対象となる文字データを取得するステップと、前記文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、前記領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成するステップと、3マス×3マスの領域の画素値がそれぞれ異なる複数のマッチングパターンと補正方法とを関連付けたマッチングデータを参照することにより、複数の前記マッチングパターンから、前記補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択するステップと、選択した前記マッチングパターンに対応する補正方法で、前記拡大データに含まれる複数の前記補正領域の画素値を補正することにより印刷データを作成するステップと、を実行させるためのプログラムを提供する。 In the third aspect of the present invention, the computer has a step of acquiring character data to be printed, and nine pixels included in an area composed of 3 pixels × 3 pixels included in the character data. A step of creating enlarged data by allocating a pixel value to a correction area of 3 squares × 3 squares larger than the above area, and a plurality of matching patterns and correction methods in which the pixel values of the area of 3 squares × 3 squares are different from each other. By referring to the matching data associated with and, the step of selecting a matching pattern that matches the pattern indicated by the pixel value of the 9 cells included in the correction area from the plurality of matching patterns, and the selected matching pattern Provided is a program for executing a step of creating print data by correcting a plurality of pixel values of the correction area included in the enlarged data by a corresponding correction method.
本発明によれば、印刷装置において、印刷した文字のエッジに段差を生じさせづらくすることができるという効果を奏する。 According to the present invention, in a printing apparatus, it is possible to make it difficult for a step to be generated at the edge of a printed character.
[印刷装置Sの概要]
図1は、本実施形態に係る印刷装置Sの構成を示す図である。
印刷装置Sは、制御部11及び記憶部12を有する。制御部11は、例えばCPU(Central Processing Unit)であり、記憶部12に記憶されたプログラムを実行することにより、データ取得部111、拡大部112、選択部113、補正部114、及び印刷部115として機能する。
[Overview of printing device S]
FIG. 1 is a diagram showing a configuration of a printing apparatus S according to the present embodiment.
The printing device S has a
データ取得部111は、印刷する対象となる文字データを取得する。また、データ取得部111は、拡大率データを取得する。拡大率データは、文字データを印刷する際の拡大率を示すデータである。本実施形態では、拡大率が9倍である場合を例示するが、拡大率は任意である。拡大率は、印刷する対象となる文字データに対する比率を示す値であればよく、9倍に拡大する場合、拡大率データの値は「9」であっても「900%」であってもよい。
The
データ取得部111は、外部装置Tから文字データ、及び拡大率データを取得する。外部装置Tは、例えばコンピュータであるが、自動販売機又は券売機といった電子機器に設けられた制御ユニットであってもよい。データ取得部111は、外部装置Tから取得した文字データ及び拡大率データを拡大部112に通知する。
The
拡大部112は、文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、各画素毎に当該領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する。1マスは、複数の画素×複数の画素により構成される。拡大部112は、拡大率データが示す拡大率に基づいて、補正領域に含まれる9個のマスそれぞれの大きさを決定する。マスの大きさを決定することは、マスに含まれる複数の画素の数を決定することに相当する。本実施形態では、前述したように拡大率は9倍であり、1マスは、3画素×3画素により構成される。印刷装置Sにおいては、拡大部112が、このように拡大率に基づいて、補正領域に含まれる9個のマスそれぞれの大きさを決定することで、拡大率に応じた9個のマスを有する補正領域を作成することができる。
The
拡大部112は、後述するように複数の画素それぞれの画素値を補正領域内の複数のマスの中央のマスに割り当てた後に、当該マスに隣接するマスの画素値が、文字データにおける対応する画素に隣接する画素の画素値になるようにする。
As will be described later, the
拡大部112は、後述するように複数の画素それぞれの画素値を補正領域内の複数のマスの中央のマスに割り当てた後に、第1画素値の複数のマスに囲まれた第2画素値のマスの画素値を第1画素値に変更する。第1画素値は、例えば黒色を示す値である。第2画素値は、例えば白色を示す値である。印刷装置Sにおいては、拡大部112がこのように拡大データを作成することで、文字を示す第1画素値の複数の画素中に第2画素値の画素が含まれてしまうのを防ぐことができる。
As will be described later, the
拡大部112は、データ取得部111から文字データ及び拡大率データを取得し、取得した拡大率データが示す拡大率に基づいて、補正領域に含まれる9個のマスそれぞれの大きさを決定する。そして、拡大部112は、取得した文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、当該領域よりも大きい、決定したマスの大きさを有する3マス×3マスの補正領域に割り当てることにより、拡大データを作成する。そして、拡大部112は、作成した拡大データを選択部113に通知する。
The
選択部113は、後述する記憶部12が記憶する複数のマッチングパターンから、補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する。具体的には、選択部113は、拡大部112から拡大データを取得し、取得した拡大データの3マス×3マスの補正領域に含まれる9マスの画素値が示すパターンを、後述する記憶部12が記憶する複数のマッチングパターンと比較する。そして、選択部113は、後述する記憶部12が記憶する複数のマッチングパターンのうちから、補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する。そして、選択部113は、選択したマッチングパターンを補正部114に通知する。
The
補正部114は、選択部113が選択したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する。補正方法は、以下のような補正方法を含む。各補正方法の詳細については、後述する。
The
補正部114は、例えば、補正領域に含まれる第1画素値の複数のマスに接する第2画素値のマスの対角線に対して当該複数のマスの側の領域の画素値を第1画素値に補正する。補正部114が、このように拡大データに含まれる複数の補正領域の画素値を補正することを、本明細書においては第1斜め補正という。
For example, the
また、補正部114は、例えば、補正領域に含まれる第1画素値の複数のマスに接する第2画素値の第1マスと、第1マスと第1画素値のマスに接する第2画素値の第2マスと、から構成される長方形領域の対角線に対して、当該複数のマスの側の領域の画素値を第1画素値に補正する。補正部114が、このように拡大データに含まれる複数の補正領域の画素値を補正することを、本明細書においては第2斜め補正という。
Further, the
また、補正部114は、例えば、補正領域において、隣接する第1画素値の2個のマスと、当該2個のマスと同じ行又は列に含まれる第2画素値の1個のマスと、により構成される長方形領域を、当該長方形領域の対角線に対して、第1画素値の他のマスの側の領域の画素値を第1画素値に補正し、対角線に対して反対側の領域の画素値を第2画素値に補正する。補正部114が、このように拡大データに含まれる複数の補正領域の画素値を補正することを、本明細書においては第3斜め補正という。
Further, in the correction area, for example, the
補正部114は、選択部113から選択部113が選択したマッチングパターンを取得し、取得したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する。補正方法は、上述した第1斜め補正、第2斜め補正、及び第3斜め補正を含む。そして、補正部114は、作成した印刷データを印刷部115に通知する。
The
印刷装置Sにおいては、補正部114が、上述したように、選択部113が選択したマッチングパターンに応じて、第1斜め補正、第2斜め補正、又は第3斜め補正をすることで、印刷した文字のエッジに段差を生じさせづらくすることができる。第1斜め補正及び第2斜め補正が行われる場合が、第3斜め補正が行われる場合よりも多い。第1斜め補正及び第2斜め補正の場合は、第1画素値のマスには補正をしないが、第3斜め補正の場合は、第1画素値のマスにも補正をする。第1斜め補正及び第2斜め補正は、細かな補正をし易いため、拡大率が小さい場合でも対応し易い。
In the printing apparatus S, as described above, the
印刷部115は、印刷データを印刷する。具体的には、印刷部115は、補正部114から印刷データを取得し、取得した印刷データを印刷する。
The
記憶部12は、ROM(Read Only Memory)及びRAM(Random Access Memory)を含んでいる。記憶部12は、制御部11が実行するプログラムを記憶している。
The
記憶部12は、マッチングデータを記憶している。マッチングデータは、3マス×3マスの領域に含まれる複数のマスの画素値のパターンがそれぞれ異なる複数のマッチングパターンと前述した補正方法とを関連付けたデータでる。マッチングパターンの詳細は後述する。
The
本実施形態に係る印刷装置Sは、上述したように文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、当該領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する拡大部112と、選択部113が選択したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する補正部114と、を有する。よって、印刷装置Sにおいては、印刷した文字のエッジに段差を生じさせづらくすることができる。また、印刷装置Sにおいては、1つの補正領域が3マス×3マスの9マスで構成されていることで、マッチングパターンを選択する処理の処理量を抑えつつ、印刷した文字のエッジを滑らかにすることができる。
As described above, the printing apparatus S according to the present embodiment sets the pixel values of the nine pixels included in the area composed of 3 pixels × 3 pixels included in the character data to 3 squares × 3 larger than the area. Correcting the pixel values of a plurality of correction areas included in the enlarged data by the correction method corresponding to the matching pattern selected by the
[印刷装置Sの動作フローチャート]
図2は、印刷装置Sの動作の流れを示すフローチャートである。図3は、印刷する対象となる文字データの一例を示す図である。
[Operation flowchart of printing device S]
FIG. 2 is a flowchart showing the operation flow of the printing apparatus S. FIG. 3 is a diagram showing an example of character data to be printed.
図4は、複数の補正領域の一例を示す図である。図5は、拡大部112が作成した第1段階のデータの一例を示す図である。図6は、拡大部112が作成した第2段階のデータの一例を示す図である。図7は、拡大データの一例を示す図である。
FIG. 4 is a diagram showing an example of a plurality of correction regions. FIG. 5 is a diagram showing an example of the first stage data created by the
図8は、記憶部12が記憶する複数のマッチングパターンの例を示す図である。図8(a)~図8(j)は、第1斜め補正に関連付けられたマッチングパターンの例を示す図である。図8(k)~図8(t)は、第2斜め補正に関連付けられたマッチングパターンの例を示す図である。図8(u)~図8(y)は、第3斜め補正に関連付けられたマッチングパターンの例を示す図である。
FIG. 8 is a diagram showing an example of a plurality of matching patterns stored by the
まず、データ取得部111は、印刷する対象となる文字データを取得する(S11)。図3に示すように、例えば、縦10画素×横7画素の文字データを取得する。図3中における縦軸に示す数字、及び横軸に示す数字は、各画素の位置を示すための座標である。次に、データ取得部111は、拡大率データを取得する(S12)。次に、拡大部112は、拡大率データが示す拡大率に基づいて、補正領域に含まれる9個のマスそれぞれの大きさを決定する(S13)。本実施形態では、前述したように拡大率は9倍であり、1マスは、3画素×3画素により構成される。
First, the
次に、拡大部112は、文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、当該領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する(S14)。
Next, the
具体的には、拡大部112は、複数の補正領域を準備する(図4)。図4中に示す実線で囲まれた領域が、1つの補正領域である。1マスは、実線又は破線で囲まれる領域である。1つの補正領域は、縦3マス×横3マスを有する。図4中における縦軸に示す数字、及び横軸に示す数字は、マスの位置を示すための座標である。そして、拡大部112は、図3に示す縦10画素×横7画素の印刷する対象となる文字データを縦3画素×横3画素毎に縦3つの補正領域×横3つの補正領域に割り当てる(図5)。
Specifically, the
例えば、図3で示す文字データにおける縦3画素×横3画素(縦8~10、横1~3)により構成される領域に含まれる9個の画素の画素値を、図4で示す縦3つの補正領域×横3つの補正領域(縦22~30、横1~9)に割り当てる。この場合、9個の画素に対応する9つの補正領域それぞれにおける中央のマスの画素値を第1画素値に変更する。よって、図4で示す縦3つの補正領域×横3つの補正領域(縦22~30、横1~9)における(縦,横)=(23,8)の位置の第2画素値のマスの画素値が第1画素値に変更される(図5)。 For example, the pixel values of nine pixels included in the area composed of 3 vertical pixels × 3 horizontal pixels (8 to 10 vertical and 1 to 3 horizontal) in the character data shown in FIG. 3 are shown in vertical 3 in FIG. Allocate to one correction area x three horizontal correction areas (vertical 22 to 30, horizontal 1 to 9). In this case, the pixel value of the central cell in each of the nine correction areas corresponding to the nine pixels is changed to the first pixel value. Therefore, in the three vertical correction areas × three horizontal correction areas (vertical 22 to 30, horizontal 1 to 9) shown in FIG. 4, the square of the second pixel value at the position of (vertical, horizontal) = (23, 8) The pixel value is changed to the first pixel value (FIG. 5).
そして、次に、例えば、図3で示す文字データにおける縦3画素×横3画素(縦8~10、横2~4)により構成される領域に含まれる9個の画素の画素値を、図4で示す縦3つの補正領域×横3つの補正領域(縦22~30、横4~12)に割り当てる。この場合、前述したように、9個の画素に対応する9つの補正領域それぞれにおける中央のマスの画素値を第1画素値に変更する。よって、図4で示す縦3つの補正領域×横3つの補正領域(縦22~30、横4~12)における(縦,横)=(23,8)、(26,11)、(23,11)の位置の第2画素値のマスの画素値が第1画素値に変更される(図5)。 Then, for example, the pixel values of nine pixels included in the area composed of 3 vertical pixels × 3 horizontal pixels (8 to 10 vertical and 2 to 4 horizontal) in the character data shown in FIG. 3 are shown in the figure. Allocate to three vertical correction areas x three horizontal correction areas (vertical 22 to 30, horizontal 4 to 12) shown in 4. In this case, as described above, the pixel value of the central cell in each of the nine correction regions corresponding to the nine pixels is changed to the first pixel value. Therefore, (vertical, horizontal) = (23,8), (26,11), (23, in the three vertical correction areas × three horizontal correction areas (vertical 22 to 30, horizontal 4 to 12) shown in FIG. The pixel value of the square of the second pixel value at the position of 11) is changed to the first pixel value (FIG. 5).
このようにして、拡大部112は、順に、図3で示す文字データに含まれる縦3画素×横3画素により構成される領域に含まれる9個の画素の画素値を、図4で示す3マス×3マスの補正領域に割り当てることにより、図5に示す第1段階のデータを作成する。
In this way, the
次に、拡大部112は、原画像の隣接画素を継承して隣接する複数の補正領域における第1画素値のマス同士の縦、横、及び斜めの間における第2画素値のマスの画素値を第1画素値に変更する(図6)。例えば、図5で示す第1段階のデータにおいて、隣接する複数の補正領域における第1画素値の複数のマス((縦,横)=(26,11)、(23,11))の縦の間における複数の第2画素値のマス((縦,横)=(25,11)、(24,11))の画素値を第1画素値に変更する。このようにして、拡大部112は、隣接する複数の補正領域における第1画素値のマス同士の縦、横、及び斜めの間における第2画素値のマスの画素値を第1画素値に変更することにより、図6に示す第2段階のデータを作成する。
Next, the
次に、拡大部112は、第1画素値の複数のマスに囲まれた第2画素値のマスの画素値を第1画素値に変更する。具体的には、拡大部112は、隣接する上下のマス、及び隣接する左右のマスが第1画素値の画素である第2画素値のマスの画素値を第1画素値に変更する(図7)。例えば、図6で示す第2段階のデータにおいて、第1画素値のマスである上下の複数のマス((縦,横)=(25,10)、(23,10))、及び第1画素値のマスである左右の複数のマス((縦,横)=(24,9)、(24,11))に囲まれた第2画素値のマス((縦,横)=(24,10))の画素値を第1画素値に変更する。このようにして、拡大部112は、第1画素値の複数の画素に囲まれた第2画素値の画素の画素値を第1画素値に変更することにより、図7に示す拡大データを作成する。
Next, the
次に、選択部113は、記憶部12が記憶する複数のマッチングパターンから、補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する(S15)。
Next, the
例えば、図7に示す補正領域(縦25~27、横10~12)は、図8(c)に示すマッチングパターンに一致する。よって、この場合、選択部113は、図8(c)に示すマッチングパターンを選択する。図8(c)に示すマッチングパターンは、後述する第1斜め補正に関連付けられている。また、例えば、図7に示す補正領域(縦16~18、横7~9)は、図8(l)に示すマッチングパターンに一致する。よって、この場合、選択部113は、図8(l)に示すマッチングパターンを選択する。図8(l)に示すマッチングパターンは、後述する第2斜め補正に関連付けられている。
For example, the correction area (vertical 25 to 27, horizontal 10 to 12) shown in FIG. 7 matches the matching pattern shown in FIG. 8 (c). Therefore, in this case, the
次に、補正部114は、選択部113が選択したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する(S16)。
Next, the
図9は、補正方法の例を示す図である。図9(a)及び図9(b)は、第1斜め補正の例を示す図である。図9(c)及び図9(d)は、第2斜め補正の例を示す図である。図9(e)及び図9(f)は、第3斜め補正の例を示す図である。図10は、印刷データの一例を示す図である。 FIG. 9 is a diagram showing an example of the correction method. 9 (a) and 9 (b) are diagrams showing an example of the first oblique correction. 9 (c) and 9 (d) are diagrams showing an example of the second oblique correction. 9 (e) and 9 (f) are diagrams showing an example of the third oblique correction. FIG. 10 is a diagram showing an example of print data.
図9(a)に示すように、補正部114は、選択部113が選択したマッチングパターンが第1斜め補正に関連付けられているマッチングパターンである場合、補正領域に含まれる第1画素値の複数のマスに接する第2画素値のマスの対角線に対して当該複数のマスの側の領域の画素値を第1画素値に補正する(図9(b))。
As shown in FIG. 9A, when the matching pattern selected by the
図9(c)に示すように、補正部114は、選択部113が選択したマッチングパターンが第2斜め補正に関連付けられているマッチングパターンである場合、補正領域に含まれる第1画素値の複数のマスに接する第2画素値の第1マスと、第1マスと第1画素値のマスに接する第2画素値の第2マスと、から構成される長方形領域の対角線に対して、当該複数のマスの側の領域の画素値を第1画素値に補正する(図9(d))。
As shown in FIG. 9C, when the matching pattern selected by the
図9(e)に示すように、補正部114は、選択部113が選択したマッチングパターンが第3斜め補正に関連付けられているマッチングパターンである場合、補正領域において、隣接する第1画素値の2個のマスと、当該2個のマスと同じ行又は列に含まれる第2画素値の1個のマスと、により構成される長方形領域を、当該長方形領域の対角線に対して、第1画素値の他のマスの側の領域の画素値を第1画素値に補正し、対角線に対して反対側の領域の画素値を第2画素値に補正する(図9(f))。
As shown in FIG. 9E, when the matching pattern selected by the
このようにして、補正部114は、印刷データを作成する(図10)。次に、印刷部115は、印刷データを印刷する(S17)。印刷装置Sにおいては、上述したように、1つの補正領域が3マス×3マスの9マスで構成されていることで、マッチングパターンを選択する処理の処理量を抑えつつ、印刷した文字のエッジを滑らかにすることができる。
In this way, the
[変形例]
図11は、補正方法の変形例を示す図である。図11(a)及び図11(b)は、第1斜め補正の変形例を示す図である。図11(c)及び図11(d)は、第2斜め補正の変形例を示す図である。図11(e)及び図11(f)は、第3斜め補正の変形例を示す図である。
[Modification example]
FIG. 11 is a diagram showing a modified example of the correction method. 11 (a) and 11 (b) are views showing a modification of the first oblique correction. 11 (c) and 11 (d) are views showing a modification of the second oblique correction. 11 (e) and 11 (f) are diagrams showing a modification of the third oblique correction.
本実施形態では、拡大率は9倍であり、1マスは、3画素×3画素により構成される例を示したが、これに限定されない。倍率によって9マスのうちの中心のマス(主マス)、及び中心のマスの周りの8つのマス(隣接マス)の大きさが異なる。主マスは正方形であるが、隣接マスは長方形の場合も生じる。 In the present embodiment, the enlargement ratio is 9 times, and one cell is composed of 3 pixels × 3 pixels, but the present invention is not limited to this. The size of the central square (main square) and the eight squares around the central square (adjacent square) out of the nine squares differs depending on the magnification. The main square is square, but the adjacent square may be rectangular.
例えば、拡大率は16倍であってもよい。この場合、補正領域に含まれる9個のマスそれぞれの大きさは、図11(a)~図11(f)に示すようになる。すなわち、補正領域に含まれる9個のマスのうち、中心のマスは縦6画素×横6画素により構成されており、中心のマスに隣接する上下の2つのマスは、縦5画素×横6画素により構成されており、中心のマスに隣接する左右の2つのマスは、縦6画素×横5画素により構成されており、中心のマスに隣接する斜め方向の4つのマスは、縦5画素×横5画素により構成されている。 For example, the enlargement ratio may be 16 times. In this case, the sizes of each of the nine cells included in the correction area are as shown in FIGS. 11 (a) to 11 (f). That is, of the nine cells included in the correction area, the central cell is composed of 6 vertical pixels × 6 horizontal pixels, and the upper and lower two cells adjacent to the central cell are 5 vertical pixels × 6 horizontal pixels. It is composed of pixels, and the two left and right squares adjacent to the center square are composed of 6 vertical pixels x 5 horizontal pixels, and the four diagonal squares adjacent to the central square are 5 vertical pixels. × It is composed of 5 horizontal pixels.
[本実施形態に係る印刷装置Sによる効果]
本実施形態に係る印刷装置Sは、印刷する対象となる文字データを取得するデータ取得部111と、文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する拡大部112と、を有する。
[Effect of Printing Device S According to This Embodiment]
The printing device S according to the present embodiment has a
また、印刷装置Sは、3マス×3マスの領域に含まれる複数のマスの画素値のパターンがそれぞれ異なる複数のマッチングパターンと補正方法とを関連付けて記憶する記憶部12と、記憶部12が記憶する複数のマッチングパターンから、補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する選択部113と、を有する。また、印刷装置Sは、選択部113が選択したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する補正部114と、印刷データを印刷する印刷部115と、を有する。
Further, in the printing device S, the
本実施形態に係る印刷装置Sは、このように文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、当該領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する拡大部112と、選択部113が選択したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する補正部114と、を有する。よって、印刷装置Sにおいては、印刷した文字のエッジに段差を生じさせづらくすることができる。また、印刷装置Sにおいては、1つの補正領域が3マス×3マスの9マスで構成されていることで、マッチングパターンを選択する処理の処理量を抑えつつ、印刷した文字のエッジを滑らかにすることができる。
The printing device S according to the present embodiment sets the pixel values of the nine pixels included in the area composed of 3 pixels × 3 pixels included in the character data to 3 cells × 3 cells larger than the area. By allocating to the correction area of, the
以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、装置の全部又は一部は、任意の単位で機能的又は物理的に分散・統合して構成することができる。また、複数の実施の形態の任意の組み合わせによって生じる新たな実施の形態も、本発明の実施の形態に含まれる。組み合わせによって生じる新たな実施の形態の効果は、もとの実施の形態の効果を併せ持つ。 Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes can be made within the scope of the gist. be. For example, all or part of the device can be functionally or physically distributed / integrated in any unit. Also included in the embodiments of the present invention are new embodiments resulting from any combination of the plurality of embodiments. The effect of the new embodiment produced by the combination has the effect of the original embodiment together.
S・・・印刷装置
11・・・制御部
111・・・データ取得部
112・・・拡大部
113・・・選択部
114・・・補正部
115・・・印刷部
12・・・記憶部
T・・・外部装置
S ...
Claims (9)
前記文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、前記領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する拡大部と、
3マス×3マスの領域に含まれる複数のマスの画素値のパターンがそれぞれ異なる複数のマッチングパターンと補正方法とを関連付けて記憶する記憶部と、
前記記憶部が記憶する複数の前記マッチングパターンから、前記補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する選択部と、
前記選択部が選択した前記マッチングパターンに対応する補正方法で、前記拡大データに含まれる複数の前記補正領域の画素値を補正することにより印刷データを作成する補正部と、
前記印刷データを印刷する印刷部と、
を有する印刷装置。 A data acquisition unit that acquires character data to be printed, and
Enlarged data is created by allocating the pixel values of 9 pixels included in the area composed of 3 pixels × 3 pixels included in the character data to the correction area of 3 cells × 3 cells larger than the area. Enlarged part and
A storage unit that stores a plurality of matching patterns in which the pixel value patterns of a plurality of cells included in an area of 3 cells × 3 cells are different from each other and a correction method in association with each other.
A selection unit that selects a matching pattern that matches the pattern indicated by the pixel values of the 9 squares included in the correction area from the plurality of matching patterns stored in the storage unit.
A correction unit that creates print data by correcting pixel values of a plurality of the correction regions included in the enlarged data by a correction method corresponding to the matching pattern selected by the selection unit.
A printing unit that prints the print data,
Printing equipment with.
請求項1に記載の印刷装置。 In the enlarged portion, after the pixel value of each of the plurality of pixels is assigned to the central cell of the plurality of cells in the correction area, the pixel value of the cell adjacent to the cell becomes the corresponding pixel in the character data. Make it the pixel value of the adjacent pixel,
The printing apparatus according to claim 1.
請求項1又は2に記載の印刷装置。 The enlarged portion assigns the pixel value of each of the plurality of pixels to the central cell of the plurality of cells in the correction area, and then the cell of the second pixel value surrounded by the plurality of cells of the first pixel value. Change the pixel value to the first pixel value,
The printing apparatus according to claim 1 or 2.
前記拡大部は、前記拡大率データが示す拡大率に基づいて、前記補正領域に含まれる9個のマスそれぞれの大きさを決定する、
請求項1から3のいずれか一項に記載の印刷装置。 The data acquisition unit further acquires enlargement ratio data indicating the enlargement ratio when printing the character data, and further acquires the enlargement ratio data.
The enlargement unit determines the size of each of the nine cells included in the correction region based on the enlargement ratio indicated by the enlargement ratio data.
The printing apparatus according to any one of claims 1 to 3.
請求項1から4のいずれか一項に記載の印刷装置。 The correction unit corrects the pixel value of the region on the side of the plurality of cells to the first pixel value with respect to the diagonal line of the cells of the second pixel value in contact with the plurality of cells of the first pixel value included in the correction area. do,
The printing apparatus according to any one of claims 1 to 4.
請求項1から4のいずれか一項に記載の印刷装置。 The correction unit includes a first cell of the second pixel value that touches a plurality of cells of the first pixel value included in the correction area, and a second pixel value that touches the first cell and the cell of the first pixel value. With respect to the diagonal line of the rectangular region composed of two squares, the pixel value of the region on the side of the plurality of squares is corrected to the first pixel value.
The printing apparatus according to any one of claims 1 to 4.
請求項1から4のいずれか一項に記載の印刷装置。 In the correction area, the correction unit is composed of two cells having a first pixel value adjacent to each other and one cell having a second pixel value included in the same row or column as the two cells. In the rectangular area, the pixel value of the area on the side of the other square of the first pixel value is corrected to the first pixel value with respect to the diagonal line of the rectangular area, and the pixel value of the area opposite to the diagonal line is corrected. To the second pixel value,
The printing apparatus according to any one of claims 1 to 4.
印刷する対象となる文字データを取得するステップと、
前記文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、前記領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成するステップと、
3マス×3マスの領域の画素値がそれぞれ異なる複数のマッチングパターンと補正方法とを関連付けたマッチングデータを参照することにより、複数の前記マッチングパターンから、前記補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択するステップと、
選択した前記マッチングパターンに対応する補正方法で、前記拡大データに含まれる複数の前記補正領域の画素値を補正することにより印刷データを作成するステップと、
を有する印刷データ作成方法。 Computer runs,
The step to acquire the character data to be printed and
Enlarged data is created by allocating the pixel values of 9 pixels included in the area composed of 3 pixels × 3 pixels included in the character data to the correction area of 3 cells × 3 cells larger than the area. Steps to do and
By referring to matching data in which a plurality of matching patterns having different pixel values in an area of 3 squares × 3 squares and a correction method are associated with each other, the pixel values of 9 squares included in the correction area from the plurality of matching patterns. Steps to select a matching pattern that matches the pattern shown by
A step of creating print data by correcting pixel values of a plurality of the correction areas included in the enlarged data by a correction method corresponding to the selected matching pattern.
How to create print data.
印刷する対象となる文字データを取得するステップと、
前記文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、前記領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成するステップと、
3マス×3マスの領域の画素値がそれぞれ異なる複数のマッチングパターンと補正方法とを関連付けたマッチングデータを参照することにより、複数の前記マッチングパターンから、前記補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択するステップと、
選択した前記マッチングパターンに対応する補正方法で、前記拡大データに含まれる複数の前記補正領域の画素値を補正することにより印刷データを作成するステップと、
を実行させるためのプログラム。
On the computer
The step to acquire the character data to be printed and
Enlarged data is created by allocating the pixel values of 9 pixels included in the area composed of 3 pixels × 3 pixels included in the character data to the correction area of 3 cells × 3 cells larger than the area. Steps to do and
By referring to matching data in which a plurality of matching patterns having different pixel values in an area of 3 squares × 3 squares and a correction method are associated with each other, the pixel values of 9 squares included in the correction area from the plurality of matching patterns. Steps to select a matching pattern that matches the pattern shown by
A step of creating print data by correcting pixel values of a plurality of the correction areas included in the enlarged data by a correction method corresponding to the selected matching pattern.
A program to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020219479A JP7109529B2 (en) | 2020-12-28 | 2020-12-28 | PRINTING DEVICE, PRINT DATA CREATION METHOD, AND PROGRAM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020219479A JP7109529B2 (en) | 2020-12-28 | 2020-12-28 | PRINTING DEVICE, PRINT DATA CREATION METHOD, AND PROGRAM |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2022104334A true JP2022104334A (en) | 2022-07-08 |
JP7109529B2 JP7109529B2 (en) | 2022-07-29 |
Family
ID=82279590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020219479A Active JP7109529B2 (en) | 2020-12-28 | 2020-12-28 | PRINTING DEVICE, PRINT DATA CREATION METHOD, AND PROGRAM |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7109529B2 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0467197A (en) * | 1990-07-06 | 1992-03-03 | Sanyo Electric Co Ltd | Enlarged character font smoothing device |
JPH09102050A (en) * | 1995-10-04 | 1997-04-15 | Ricoh Co Ltd | Image forming device |
JPH11296670A (en) * | 1998-04-10 | 1999-10-29 | Seiko Epson Corp | Image data interpolation device, its method, and medium for recording image data interpolation program |
US6226420B1 (en) * | 1997-12-26 | 2001-05-01 | International Business Machines Corporation | Non-integer scaling of raster images |
US20010017705A1 (en) * | 2000-02-23 | 2001-08-30 | Takashi Hashizume | Image processing device and image processing method |
JP2001313834A (en) * | 2000-02-23 | 2001-11-09 | Fuji Xerox Co Ltd | Image-processing unit and image-processing method |
JP2016186549A (en) * | 2015-03-27 | 2016-10-27 | 三菱電機株式会社 | Smoothing processor and smoothing processing method |
-
2020
- 2020-12-28 JP JP2020219479A patent/JP7109529B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0467197A (en) * | 1990-07-06 | 1992-03-03 | Sanyo Electric Co Ltd | Enlarged character font smoothing device |
JPH09102050A (en) * | 1995-10-04 | 1997-04-15 | Ricoh Co Ltd | Image forming device |
US6226420B1 (en) * | 1997-12-26 | 2001-05-01 | International Business Machines Corporation | Non-integer scaling of raster images |
JPH11296670A (en) * | 1998-04-10 | 1999-10-29 | Seiko Epson Corp | Image data interpolation device, its method, and medium for recording image data interpolation program |
US20010017705A1 (en) * | 2000-02-23 | 2001-08-30 | Takashi Hashizume | Image processing device and image processing method |
JP2001313834A (en) * | 2000-02-23 | 2001-11-09 | Fuji Xerox Co Ltd | Image-processing unit and image-processing method |
JP2016186549A (en) * | 2015-03-27 | 2016-10-27 | 三菱電機株式会社 | Smoothing processor and smoothing processing method |
Also Published As
Publication number | Publication date |
---|---|
JP7109529B2 (en) | 2022-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1077445B1 (en) | Device dependent rendering of characters | |
US20050071783A1 (en) | Automatic photo album page layout | |
US20020093502A1 (en) | Character display apparatus, character display method, and recording medium | |
JPH087784B2 (en) | How to improve the pixel image quality of text | |
CN107103225A (en) | A kind of method for generating graphical verification code | |
US10742845B2 (en) | Image processing apparatus identifying pixel which satisfies specific condition and performing replacement process on pixel value of identified pixel | |
JP2001333437A (en) | Image display device, image display method and recording medium | |
KR100749873B1 (en) | Character display apparatus, character display method, and readable recording medium | |
JP4436202B2 (en) | Image quality improvement using partial template matching | |
CN103714355A (en) | Image processing apparatus and method | |
JP2022104334A (en) | Printer, printing data creation method, and program | |
JP2006163608A (en) | Sorting device and method | |
JP2013026865A (en) | Image processing apparatus and image processing method | |
CN107020845A (en) | The image processing apparatus and image processing method of time needed for estimation print processing | |
JP3829908B2 (en) | Image processing device | |
JP2013065164A (en) | Image processing device, image processing method, and image processing program | |
JP3985681B2 (en) | Print image forming apparatus | |
JP2009141525A (en) | Apparatus and method of processing image | |
JP4905294B2 (en) | Image processing circuit, printing apparatus, and image processing program | |
JP6668990B2 (en) | Character processor | |
KR101666131B1 (en) | Vector Font Rendering with considering sub-pixel pattern | |
JP2006031690A (en) | Specific image area dividing device and method and program for executing specific image area sectioning processing on computer | |
JP4761477B2 (en) | Character graphic display device, character graphic display method, character graphic display program, and recording medium | |
JP6540546B2 (en) | Information processing apparatus and program | |
JP4831936B2 (en) | Character display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220427 |
|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20220427 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220524 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220622 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20220628 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220719 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7109529 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |