JP2022104334A - Printer, printing data creation method, and program - Google Patents

Printer, printing data creation method, and program Download PDF

Info

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
Application number
JP2020219479A
Other languages
Japanese (ja)
Other versions
JP7109529B2 (en
Inventor
卓二 渡辺
Takuji Watanabe
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.)
NIPPON PRIMEX Inc
Original Assignee
NIPPON PRIMEX Inc
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 NIPPON PRIMEX Inc filed Critical NIPPON PRIMEX Inc
Priority to JP2020219479A priority Critical patent/JP7109529B2/en
Publication of JP2022104334A publication Critical patent/JP2022104334A/en
Application granted granted Critical
Publication of JP7109529B2 publication Critical patent/JP7109529B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

To prevent a step from being generated in an edge of a printed character in a printer.SOLUTION: A printer comprises: a data acquisition unit which acquires character data; an expansion unit 112 which creates expansion data by allocating pixel values of 9 pixels included in a region constituted by 3 pixels×3 pixels included in the character data to a correction region in 3 grids×3 grids larger than the region; a storage unit which stores a correction method in association with a plurality of matching patterns having mutually-different patterns of pixel values of a plurality of grids included in the region in 3 grids×3 grids; a selection unit 113 which selects the matching pattern that matches a pattern indicated by the pixel values of 9 grids included in the correction region from the plurality of matching patterns stored in the storage unit; a correction unit 114 which creates printing data by correcting the pixel values in the plurality of correction regions included in the expansion data by the correction method corresponding to the matching pattern selected by the selection unit; and a printing unit which prints the printing data.SELECTED DRAWING: Figure 1

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. Patent Document 1 discloses a technique relating to an image enlargement method used in a printer.

特開平3-222574号公報Japanese Unexamined Patent Publication No. 3-222574

印刷装置において、画像を拡大して印刷する場合、印刷した文字のエッジにギザギザの段差が生じてしまうという問題が生じていた。 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.

本実施形態に係る印刷装置の構成を示す。The configuration of the printing apparatus according to this embodiment is shown. 印刷装置の動作の流れを示すフローチャートである。It is a flowchart which shows the operation flow of a printing apparatus. 印刷する対象となる文字データの一例を示す。An example of character data to be printed is shown. 複数の補正領域の一例を示す。An example of a plurality of correction areas is shown. 拡大部が作成した第1段階のデータの一例を示す。An example of the first stage data created by the enlarged part is shown. 拡大部が作成した第2段階のデータの一例を示す。An example of the second stage data created by the enlarged part is shown. 拡大データの一例を示す。An example of enlarged data is shown. 記憶部が記憶する複数のマッチングパターンの例を示す。An example of a plurality of matching patterns stored in the storage unit is shown. 補正方法の例を示す。An example of the correction method is shown. 印刷データの一例を示す。An example of print data is shown. 補正方法の変形例を示す。A modified example of the correction method is shown.

[印刷装置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 control unit 11 and a storage unit 12. The control unit 11 is, for example, a CPU (Central Processing Unit), and by executing a program stored in the storage unit 12, the data acquisition unit 111, the enlargement unit 112, the selection unit 113, the correction unit 114, and the printing unit 115 Functions as.

データ取得部111は、印刷する対象となる文字データを取得する。また、データ取得部111は、拡大率データを取得する。拡大率データは、文字データを印刷する際の拡大率を示すデータである。本実施形態では、拡大率が9倍である場合を例示するが、拡大率は任意である。拡大率は、印刷する対象となる文字データに対する比率を示す値であればよく、9倍に拡大する場合、拡大率データの値は「9」であっても「900%」であってもよい。 The data acquisition unit 111 acquires character data to be printed. Further, the data acquisition unit 111 acquires the enlargement ratio data. The enlargement ratio data is data indicating the enlargement ratio when printing character data. In this embodiment, a case where the enlargement ratio is 9 times is illustrated, but the enlargement ratio is arbitrary. The enlargement ratio may be a value indicating the ratio to the character data to be printed, and when the enlargement ratio is 9 times, the enlargement ratio data value may be "9" or "900%". ..

データ取得部111は、外部装置Tから文字データ、及び拡大率データを取得する。外部装置Tは、例えばコンピュータであるが、自動販売機又は券売機といった電子機器に設けられた制御ユニットであってもよい。データ取得部111は、外部装置Tから取得した文字データ及び拡大率データを拡大部112に通知する。 The data acquisition unit 111 acquires character data and enlargement ratio data from the external device T. The external device T is, for example, a computer, but may be a control unit provided in an electronic device such as a vending machine or a ticket vending machine. The data acquisition unit 111 notifies the enlargement unit 112 of the character data and the enlargement ratio data acquired from the external device T.

拡大部112は、文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、各画素毎に当該領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する。1マスは、複数の画素×複数の画素により構成される。拡大部112は、拡大率データが示す拡大率に基づいて、補正領域に含まれる9個のマスそれぞれの大きさを決定する。マスの大きさを決定することは、マスに含まれる複数の画素の数を決定することに相当する。本実施形態では、前述したように拡大率は9倍であり、1マスは、3画素×3画素により構成される。印刷装置Sにおいては、拡大部112が、このように拡大率に基づいて、補正領域に含まれる9個のマスそれぞれの大きさを決定することで、拡大率に応じた9個のマスを有する補正領域を作成することができる。 The enlargement unit 112 converts the pixel values of the nine pixels included in the area composed of 3 pixels × 3 pixels included in the character data into a correction area of 3 cells × 3 cells larger than the area for each pixel. Create enlarged data by allocating. One cell is composed of a plurality of pixels × a plurality of pixels. The enlargement unit 112 determines the size of each of the nine squares included in the correction region based on the enlargement ratio indicated by the enlargement ratio data. Determining the size of a cell corresponds to determining the number of pixels contained in the cell. In the present embodiment, as described above, the enlargement ratio is 9 times, and one cell is composed of 3 pixels × 3 pixels. In the printing apparatus S, the enlargement unit 112 has nine squares according to the enlargement ratio by determining the size of each of the nine squares included in the correction region based on the enlargement ratio in this way. A correction area can be created.

拡大部112は、後述するように複数の画素それぞれの画素値を補正領域内の複数のマスの中央のマスに割り当てた後に、当該マスに隣接するマスの画素値が、文字データにおける対応する画素に隣接する画素の画素値になるようにする。 As will be described later, the enlargement unit 112 allocates the pixel value of each of the plurality of pixels to the center cell of the plurality of cells in the correction area, and then the pixel value of the cell adjacent to the cell is the corresponding pixel in the character data. The pixel value of the pixel adjacent to is set to.

拡大部112は、後述するように複数の画素それぞれの画素値を補正領域内の複数のマスの中央のマスに割り当てた後に、第1画素値の複数のマスに囲まれた第2画素値のマスの画素値を第1画素値に変更する。第1画素値は、例えば黒色を示す値である。第2画素値は、例えば白色を示す値である。印刷装置Sにおいては、拡大部112がこのように拡大データを作成することで、文字を示す第1画素値の複数の画素中に第2画素値の画素が含まれてしまうのを防ぐことができる。 As will be described later, the enlargement unit 112 assigns the pixel value of each of the plurality of pixels to the center 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 is changed to the first pixel value. The first pixel value is, for example, a value indicating black color. The second pixel value is, for example, a value indicating white color. In the printing apparatus S, by creating the enlarged data in this way, the enlargement unit 112 can prevent the pixel of the second pixel value from being included in the plurality of pixels of the first pixel value indicating the character. can.

拡大部112は、データ取得部111から文字データ及び拡大率データを取得し、取得した拡大率データが示す拡大率に基づいて、補正領域に含まれる9個のマスそれぞれの大きさを決定する。そして、拡大部112は、取得した文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、当該領域よりも大きい、決定したマスの大きさを有する3マス×3マスの補正領域に割り当てることにより、拡大データを作成する。そして、拡大部112は、作成した拡大データを選択部113に通知する。 The enlargement unit 112 acquires character data and enlargement ratio data from the data acquisition unit 111, and determines the size of each of the nine cells included in the correction area based on the enlargement ratio indicated by the acquired enlargement ratio data. Then, the enlargement unit 112 has a determined mass size in which the pixel values of the nine pixels included in the region composed of 3 pixels × 3 pixels included in the acquired character data are larger than the region. Enlarged data is created by allocating to the correction area of 3 squares x 3 squares. Then, the enlargement unit 112 notifies the selection unit 113 of the created enlarged data.

選択部113は、後述する記憶部12が記憶する複数のマッチングパターンから、補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する。具体的には、選択部113は、拡大部112から拡大データを取得し、取得した拡大データの3マス×3マスの補正領域に含まれる9マスの画素値が示すパターンを、後述する記憶部12が記憶する複数のマッチングパターンと比較する。そして、選択部113は、後述する記憶部12が記憶する複数のマッチングパターンのうちから、補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する。そして、選択部113は、選択したマッチングパターンを補正部114に通知する。 The selection unit 113 selects a matching pattern that matches the pattern indicated by the pixel values of the 9 squares included in the correction area from a plurality of matching patterns stored by the storage unit 12 described later. Specifically, the selection unit 113 acquires enlarged data from the enlarged unit 112, and stores a pattern indicated by the pixel values of 9 cells included in the correction area of 3 cells × 3 cells of the acquired enlarged data, which will be described later. Compare with a plurality of matching patterns stored in 12. Then, the selection unit 113 selects a matching pattern that matches the pattern indicated by the pixel value of the 9 squares included in the correction area from the plurality of matching patterns stored by the storage unit 12 described later. Then, the selection unit 113 notifies the correction unit 114 of the selected matching pattern.

補正部114は、選択部113が選択したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する。補正方法は、以下のような補正方法を含む。各補正方法の詳細については、後述する。 The correction unit 114 creates print data by correcting the pixel values of a plurality of correction regions included in the enlarged data by a correction method corresponding to the matching pattern selected by the selection unit 113. The correction method includes the following correction methods. Details of each correction method will be described later.

補正部114は、例えば、補正領域に含まれる第1画素値の複数のマスに接する第2画素値のマスの対角線に対して当該複数のマスの側の領域の画素値を第1画素値に補正する。補正部114が、このように拡大データに含まれる複数の補正領域の画素値を補正することを、本明細書においては第1斜め補正という。 For example, the correction unit 114 sets the pixel value of the area 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. to correct. Correcting the pixel values of the plurality of correction areas included in the enlarged data in this way by the correction unit 114 is referred to as a first diagonal correction in the present specification.

また、補正部114は、例えば、補正領域に含まれる第1画素値の複数のマスに接する第2画素値の第1マスと、第1マスと第1画素値のマスに接する第2画素値の第2マスと、から構成される長方形領域の対角線に対して、当該複数のマスの側の領域の画素値を第1画素値に補正する。補正部114が、このように拡大データに含まれる複数の補正領域の画素値を補正することを、本明細書においては第2斜め補正という。 Further, the correction unit 114 may, for example, have a first cell of the second pixel value that is in contact with a plurality of cells of the first pixel value included in the correction area, and a second pixel value that is in contact with the first cell and the cell of the first pixel value. With respect to the diagonal line of the rectangular region composed of the second square, the pixel value of the region on the side of the plurality of squares is corrected to the first pixel value. Correcting the pixel values of the plurality of correction areas included in the enlarged data in this way by the correction unit 114 is referred to as a second diagonal correction in the present specification.

また、補正部114は、例えば、補正領域において、隣接する第1画素値の2個のマスと、当該2個のマスと同じ行又は列に含まれる第2画素値の1個のマスと、により構成される長方形領域を、当該長方形領域の対角線に対して、第1画素値の他のマスの側の領域の画素値を第1画素値に補正し、対角線に対して反対側の領域の画素値を第2画素値に補正する。補正部114が、このように拡大データに含まれる複数の補正領域の画素値を補正することを、本明細書においては第3斜め補正という。 Further, in the correction area, for example, the correction unit 114 may include two squares having the first pixel value adjacent to each other and one square having the second pixel value included in the same row or column as the two squares. The rectangular area composed of The pixel value is corrected to the second pixel value. Correcting the pixel values of the plurality of correction areas included in the enlarged data in this way by the correction unit 114 is referred to as a third oblique correction in the present specification.

補正部114は、選択部113から選択部113が選択したマッチングパターンを取得し、取得したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する。補正方法は、上述した第1斜め補正、第2斜め補正、及び第3斜め補正を含む。そして、補正部114は、作成した印刷データを印刷部115に通知する。 The correction unit 114 acquires a matching pattern selected by the selection unit 113 from the selection unit 113, and prints by correcting the pixel values of a plurality of correction areas included in the enlarged data by a correction method corresponding to the acquired matching pattern. Create data. The correction method includes the first diagonal correction, the second diagonal correction, and the third diagonal correction described above. Then, the correction unit 114 notifies the print unit 115 of the created print data.

印刷装置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 correction unit 114 prints by performing the first oblique correction, the second oblique correction, or the third oblique correction according to the matching pattern selected by the selection unit 113. It is possible to make it difficult to create a step on the edge of the character. There are more cases where the first oblique correction and the second oblique correction are performed than when the third oblique correction is performed. In the case of the first diagonal correction and the second diagonal correction, the square of the first pixel value is not corrected, but in the case of the third diagonal correction, the square of the first pixel value is also corrected. Since the first oblique correction and the second oblique correction are easy to make fine corrections, they are easy to handle even when the enlargement ratio is small.

印刷部115は、印刷データを印刷する。具体的には、印刷部115は、補正部114から印刷データを取得し、取得した印刷データを印刷する。 The printing unit 115 prints print data. Specifically, the printing unit 115 acquires print data from the correction unit 114 and prints the acquired print data.

記憶部12は、ROM(Read Only Memory)及びRAM(Random Access Memory)を含んでいる。記憶部12は、制御部11が実行するプログラムを記憶している。 The storage unit 12 includes a ROM (Read Only Memory) and a RAM (Random Access Memory). The storage unit 12 stores a program executed by the control unit 11.

記憶部12は、マッチングデータを記憶している。マッチングデータは、3マス×3マスの領域に含まれる複数のマスの画素値のパターンがそれぞれ異なる複数のマッチングパターンと前述した補正方法とを関連付けたデータでる。マッチングパターンの詳細は後述する。 The storage unit 12 stores matching data. The matching data is data in which a plurality of matching patterns having different pixel value patterns of a plurality of cells included in an area of 3 cells × 3 cells are associated with the above-mentioned correction method. The details of the matching pattern will be described later.

本実施形態に係る印刷装置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 enlargement unit 112 that creates the enlarged data and the selection unit 113 by allocating to the correction area of the mass. It has a correction unit 114 and a correction unit 114 for creating print data. Therefore, in the printing apparatus S, it is possible to make it difficult for a step to be generated at the edge of the printed character. Further, in the printing device S, since one correction area is composed of 9 squares of 3 squares × 3 squares, the processing amount of the processing for selecting a matching pattern is suppressed, and the edges of the printed characters are smoothed. can do.

[印刷装置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 enlarged unit 112. FIG. 6 is a diagram showing an example of the second stage data created by the enlarged unit 112. FIG. 7 is a diagram showing an example of enlarged data.

図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 storage unit 12. 8 (a) to 8 (j) are diagrams showing an example of a matching pattern associated with the first oblique correction. 8 (k) to 8 (t) are diagrams showing an example of a matching pattern associated with the second oblique correction. 8 (u) to 8 (y) are diagrams showing an example of a matching pattern associated with the third oblique correction.

まず、データ取得部111は、印刷する対象となる文字データを取得する(S11)。図3に示すように、例えば、縦10画素×横7画素の文字データを取得する。図3中における縦軸に示す数字、及び横軸に示す数字は、各画素の位置を示すための座標である。次に、データ取得部111は、拡大率データを取得する(S12)。次に、拡大部112は、拡大率データが示す拡大率に基づいて、補正領域に含まれる9個のマスそれぞれの大きさを決定する(S13)。本実施形態では、前述したように拡大率は9倍であり、1マスは、3画素×3画素により構成される。 First, the data acquisition unit 111 acquires character data to be printed (S11). As shown in FIG. 3, for example, character data of 10 vertical pixels × 7 horizontal pixels is acquired. The numbers shown on the vertical axis and the numbers shown on the horizontal axis in FIG. 3 are coordinates for indicating the position of each pixel. Next, the data acquisition unit 111 acquires the enlargement ratio data (S12). Next, the enlargement unit 112 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 (S13). In the present embodiment, as described above, the enlargement ratio is 9 times, and one cell is composed of 3 pixels × 3 pixels.

次に、拡大部112は、文字データに含まれる3画素×3画素により構成される領域に含まれる9個の画素の画素値を、当該領域よりも大きい3マス×3マスの補正領域に割り当てることにより、拡大データを作成する(S14)。 Next, the enlargement unit 112 allocates the pixel values of the nine 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. As a result, enlarged data is created (S14).

具体的には、拡大部112は、複数の補正領域を準備する(図4)。図4中に示す実線で囲まれた領域が、1つの補正領域である。1マスは、実線又は破線で囲まれる領域である。1つの補正領域は、縦3マス×横3マスを有する。図4中における縦軸に示す数字、及び横軸に示す数字は、マスの位置を示すための座標である。そして、拡大部112は、図3に示す縦10画素×横7画素の印刷する対象となる文字データを縦3画素×横3画素毎に縦3つの補正領域×横3つの補正領域に割り当てる(図5)。 Specifically, the enlargement unit 112 prepares a plurality of correction areas (FIG. 4). The area surrounded by the solid line shown in FIG. 4 is one correction area. One square is an area surrounded by a solid line or a broken line. One correction area has 3 vertical cells × 3 horizontal cells. The numbers shown on the vertical axis and the numbers shown on the horizontal axis in FIG. 4 are coordinates for indicating the position of the square. Then, the enlargement unit 112 allocates the character data to be printed of 10 vertical pixels × 7 horizontal pixels shown in FIG. 3 to 3 vertical correction areas × 3 horizontal correction areas for each 3 vertical pixels × 3 horizontal pixels (). FIG. 5).

例えば、図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 enlargement unit 112 sequentially shows the pixel values of the nine pixels included in the region composed of the vertical 3 pixels × horizontal 3 pixels included in the character data shown in FIG. 3 in FIG. 3 By allocating to the correction area of square × 3 squares, the data of the first stage shown in FIG. 5 is created.

次に、拡大部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 enlargement unit 112 inherits the adjacent pixels of the original image and inherits the pixel values of the cells of the second pixel value between the vertical, horizontal, and diagonal spaces of the cells of the first pixel value in the plurality of adjacent correction regions. Is changed to the first pixel value (FIG. 6). For example, in the data of the first stage shown in FIG. 5, the vertical columns of a plurality of squares ((vertical, horizontal) = (26,11), (23,11)) of the first pixel value in a plurality of adjacent correction regions. The pixel values of the cells ((vertical, horizontal) = (25, 11), (24, 11)) of the plurality of second pixel values in between are changed to the first pixel values. In this way, the enlargement unit 112 changes the pixel value of the square of the second pixel value between the vertical, horizontal, and diagonal spaces of the squares of the first pixel value in the plurality of adjacent correction regions to the first pixel value. By doing so, the data of the second stage shown in FIG. 6 is created.

次に、拡大部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 enlargement unit 112 changes the pixel value of the square of the second pixel value surrounded by the plurality of squares of the first pixel value to the first pixel value. Specifically, the enlargement unit 112 changes the pixel value of the square of the second pixel value in which the adjacent upper and lower squares and the adjacent left and right squares are the pixels of the first pixel value to the first pixel value (FIG. 7). For example, in the data of the second stage shown in FIG. 6, a plurality of upper and lower cells ((vertical, horizontal) = (25,10), (23,10)), which are cells of the first pixel value, and the first pixel. The second pixel value cell ((vertical, horizontal) = (24, 10) surrounded by a plurality of left and right cells ((vertical, horizontal) = (24, 9), (24, 11)), which are value cells. )) Change the pixel value to the first pixel value. In this way, the enlargement unit 112 creates the enlarged data shown in FIG. 7 by changing the pixel value of the pixel of the second pixel value surrounded by the plurality of pixels of the first pixel value to the first pixel value. do.

次に、選択部113は、記憶部12が記憶する複数のマッチングパターンから、補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する(S15)。 Next, the selection unit 113 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 12 (S15).

例えば、図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 selection unit 113 selects the matching pattern shown in FIG. 8C. The matching pattern shown in FIG. 8 (c) is associated with the first oblique correction described later. Further, for example, the correction areas (vertical 16 to 18 and horizontal 7 to 9) shown in FIG. 7 match the matching pattern shown in FIG. 8 (l). Therefore, in this case, the selection unit 113 selects the matching pattern shown in FIG. 8 (l). The matching pattern shown in FIG. 8 (l) is associated with the second oblique correction described later.

次に、補正部114は、選択部113が選択したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する(S16)。 Next, the correction unit 114 creates print data by correcting the pixel values of a plurality of correction regions included in the enlarged data by a correction method corresponding to the matching pattern selected by the selection unit 113 (S16).

図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 selection unit 113 is a matching pattern associated with the first diagonal correction, the correction unit 114 has a plurality of first pixel values included in the correction region. The pixel value of the region on the side of the plurality of cells is corrected to the first pixel value with respect to the diagonal line of the cell of the second pixel value in contact with the cell (FIG. 9 (b)).

図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 selection unit 113 is a matching pattern associated with the second diagonal correction, the correction unit 114 has a plurality of first pixel values included in the correction area. With respect to the diagonal line of the rectangular region composed of the first cell of the second pixel value in contact with the cell of the first pixel value and the second cell of the second pixel value in contact with the cell of the first pixel value and the cell of the first pixel value. The pixel value in the area on the side of the square is corrected to the first pixel value (FIG. 9 (d)).

図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 selection unit 113 is a matching pattern associated with the third diagonal correction, the correction unit 114 has the adjacent first pixel value in the correction region. A rectangular area composed of two cells and one cell having a second pixel value contained in the same row or column as the two cells is formed by the first pixel with respect to the diagonal line of the rectangular area. The pixel value of the region on the other side of the square of the value is corrected to the first pixel value, and the pixel value of the region opposite to the diagonal line is corrected to the second pixel value (FIG. 9 (f)).

このようにして、補正部114は、印刷データを作成する(図10)。次に、印刷部115は、印刷データを印刷する(S17)。印刷装置Sにおいては、上述したように、1つの補正領域が3マス×3マスの9マスで構成されていることで、マッチングパターンを選択する処理の処理量を抑えつつ、印刷した文字のエッジを滑らかにすることができる。 In this way, the correction unit 114 creates print data (FIG. 10). Next, the printing unit 115 prints the print data (S17). In the printing device S, as described above, since one correction area is composed of 9 squares of 3 squares × 3 squares, the edge of the printed character is suppressed while suppressing the processing amount of the processing for selecting the matching pattern. Can be smoothed.

[変形例]
図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 data acquisition unit 111 for acquiring 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. It has an enlargement unit 112 that creates enlarged data by allocating a value to a correction area of 3 cells × 3 cells larger than the area.

また、印刷装置Sは、3マス×3マスの領域に含まれる複数のマスの画素値のパターンがそれぞれ異なる複数のマッチングパターンと補正方法とを関連付けて記憶する記憶部12と、記憶部12が記憶する複数のマッチングパターンから、補正領域に含まれる9マスの画素値が示すパターンと一致するマッチングパターンを選択する選択部113と、を有する。また、印刷装置Sは、選択部113が選択したマッチングパターンに対応する補正方法で、拡大データに含まれる複数の補正領域の画素値を補正することにより印刷データを作成する補正部114と、印刷データを印刷する印刷部115と、を有する。 Further, in the printing device S, the storage unit 12 and the storage unit 12 store a plurality of matching patterns in which the patterns of the pixel values of the plurality of cells included in the area of 3 cells × 3 cells are different from each other and the correction method in association with each other. It has a selection unit 113 for selecting a matching pattern that matches the pattern indicated by the pixel value of 9 squares included in the correction area from a plurality of matching patterns to be stored. Further, the printing device S has a correction unit 114 that creates print data by correcting pixel values of a plurality of correction regions included in the enlarged data by a correction method corresponding to the matching pattern selected by the selection unit 113, and printing. It has a printing unit 115 for printing data.

本実施形態に係る印刷装置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 enlargement unit 112 that creates the enlarged data and the correction method corresponding to the matching pattern selected by the selection unit 113 correct the pixel values of the plurality of correction areas included in the enlarged data. It has a correction unit 114 for creating print data. Therefore, in the printing apparatus S, it is possible to make it difficult for a step to be generated at the edge of the printed character. Further, in the printing device S, since one correction area is composed of 9 squares of 3 squares × 3 squares, the processing amount of the processing for selecting a matching pattern is suppressed, and the edges of the printed characters are smoothed. can do.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、装置の全部又は一部は、任意の単位で機能的又は物理的に分散・統合して構成することができる。また、複数の実施の形態の任意の組み合わせによって生じる新たな実施の形態も、本発明の実施の形態に含まれる。組み合わせによって生じる新たな実施の形態の効果は、もとの実施の形態の効果を併せ持つ。 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 ... Printing device 11 ... Control unit 111 ... Data acquisition unit 112 ... Enlargement unit 113 ... Selection unit 114 ... Correction unit 115 ... Printing unit 12 ... Storage unit T・ ・ ・ External device

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画素値のマスの画素値を第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画素値の複数のマスに接する第2画素値のマスの対角線に対して前記複数のマスの側の領域の画素値を第1画素値に補正する、
請求項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画素値の複数のマスに接する第2画素値の第1マスと、前記第1マスと第1画素値のマスに接する第2画素値の第2マスと、から構成される長方形領域の対角線に対して、前記複数のマスの側の領域の画素値を第1画素値に補正する、
請求項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画素値の2個のマスと、当該2個のマスと同じ行又は列に含まれる第2画素値の1個のマスと、により構成される長方形領域を、当該長方形領域の対角線に対して、第1画素値の他のマスの側の領域の画素値を第1画素値に補正し、前記対角線に対して反対側の領域の画素値を第2画素値に補正する、
請求項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.
JP2020219479A 2020-12-28 2020-12-28 PRINTING DEVICE, PRINT DATA CREATION METHOD, AND PROGRAM Active JP7109529B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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