Print data editing device, print data editing method, and print data editing program

The print data editing device improves print quality by aligning printed images in sub-dot units, addressing the limitations of conventional methods that move dot lines, and maintains or enhances printing speed.

JP7809949B2Active Publication Date: 2026-02-03BROTHER KOGYO KK
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2021182213
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2026-02-03
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

Conventional printing devices experience poor reproducibility and loss of print quality due to moving dot lines, which limits print quality without impairing print speed.

Method used

A print data editing device and method that edits print data by adjusting the ON/OFF states of print head elements in sub-dot units, aligning printed images to minimize visible differences and reduce peak current demand, thereby improving print quality without sacrificing speed.

Benefits of technology

The editing process enhances print quality by reducing noticeable changes in the printed image while maintaining or increasing printing speed by optimizing the number of elements turned ON in each line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007809949000001
    Figure 0007809949000001
  • Figure 0007809949000002
    Figure 0007809949000002
  • Figure 0007809949000003
    Figure 0007809949000003
Patent Text Reader

Abstract

To provide a print data editing device, a print data editing method and a print data editing program which can edit print data that can improve the print quality in comparison to a conventional technique without impairing the print speed.SOLUTION: A control unit of a print data editing device acquires image data (S1), and edits print data satisfying such conditions that an image included in a column of a print image becomes the same position as an image of a column of an input image or has the maximum matching degree when sliding by a prescribed amount in the sub-scanning direction in a case where a plurality of dots constituting the input image are compared with a plurality of dots constituting the print image based on image data in a column unit being a plurality of dots continuously arrayed in a portion between both ends in the sub-scanning direction, the maximum value of a plurality of absolute values of prescribed amounts is equal to or greater than 1 dot, an absolute value of a difference in prescribed amount between any two columns adjacent to each other in the main-scanning direction is equal to or less than 1 dot, and an absolute value of one or more differences is a value less than 1 dot (S12).SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a print data editing device, a print data editing method, and a print data editing program. [Background technology]

[0002] Conventionally, there is known a printing device that prints on a print medium using a thermal line head equipped with multiple heating elements (see, for example, Patent Document 1). When a printing device is powered by a battery, AC adapter, or other power source, the current that can be simultaneously supplied to the thermal line head is limited by the specifications of the power source. For this reason, conventional printing devices partially correct the print data according to the number of dots to be printed, and move dots in a predetermined dot line that forms a ruled line to another dot line to create and print, thereby suppressing the peak value of the current supplied to the thermal line head. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2016-168794 Summary of the Invention [Problem to be solved by the invention]

[0004] Conventional printing devices move a predetermined dot line to another dot line in dot units, resulting in poor reproducibility of the input image and a loss of print quality.

[0005] An object of the present invention is to provide a print data editing device, a print data editing method, and a print data editing program for editing print data that can improve print quality compared to conventional methods without impairing print speed. [Means for solving the problem]

[0006] A print data editing device according to a first aspect of the present invention is a print data editing device for editing print data used in a printing device that includes a print head having a plurality of elements lined up in a main scanning direction, and a transport unit that moves a print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, and drives the plurality of elements while moving the print head relatively to the print object in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, thereby forming an image on the print object for each line corresponding to the plurality of elements lined up in the main scanning direction, and the print data editing device includes a control unit, and the control unit performs an image data acquisition process that acquires image data corresponding to the plurality of elements lined up in the main scanning direction, and an editing process that edits the print data corresponding to the image data, and based on the image data, drives a plurality of dots that constitute an input image represented by the image data and editing the print data that satisfies the following conditions: when a plurality of dots constituting a print image printed in accordance with the print data are compared in units of columns of dots that are consecutively arranged in the sub-scanning direction in a portion of the area between the upstream end on the upstream side and the downstream end on the downstream side in the sub-scanning direction and that have a smaller number of dots than all of the dots arranged in the sub-scanning direction, the image included in the column of the print image will have a highest degree of match when it is positioned at the same position as the image represented by the column of the input image or when it is shifted a predetermined amount in the sub-scanning direction, the maximum of the absolute values ​​of the plurality of predetermined amounts for the plurality of columns is one dot or more, the absolute value of the difference in the predetermined amounts between any two adjacent columns in the main scanning direction is one dot or less, and the absolute value of one or more of the differences is a value less than one dot represented by sub-dots obtained by dividing the dot into a plurality of dots in the sub-scanning direction. By performing the editing process, the print data editing device of the first aspect can partially edit print data that suppresses the peak current of the print head required to print one line.The print data editing device can perform editing processing in sub-dot units, which is finer than when the specified amount is in dot units. The edited portion includes a portion where the absolute value of the difference between the specified amount for two adjacent rows in the main scanning direction is less than one dot. Therefore, compared to conventional cases where the absolute value of the difference between the specified amount is one dot or more, changes from the input image in the printed image are less noticeable and can be kept to a level that is imperceptible to the naked eye. By reducing the number of elements that are turned ON in a single line, the print data editing device increases the possibility of increasing printing speed compared to conventional cases where editing processing is not performed. Therefore, the print data editing device can edit print data that can improve print quality compared to conventional cases without sacrificing printing speed.

[0007] A print data editing device according to a second aspect of the present invention is a print data editing device for editing print data used in a printing device that includes a print head having a plurality of elements lined up in a main scanning direction, and a transport unit that moves a print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, and that drives the plurality of elements while moving the print head relatively to the print object in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, thereby forming an image on the print object for each line corresponding to the plurality of elements lined up in the main scanning direction, and that includes a control unit, and that includes an image data acquisition process that acquires image data associated with the plurality of elements lined up in the main scanning direction, and an editing process that edits the print data corresponding to the image data, When a plurality of dots constituting an input image represented by the image data and a plurality of dots constituting a print image printed in accordance with the print data are compared in units of columns of dots that are continuously lined up in the sub-scanning direction in a portion between an upstream end on the upstream side in the sub-scanning direction and a downstream end on the downstream side in the sub-scanning direction and have a smaller number of dots than all of the dots lined up in the sub-scanning direction, the image included in the column of the print image has a maximum degree of match when it is at the same position as the image represented by the column of the input image or when it is slid a predetermined amount in the sub-scanning direction, and the maximum value of the absolute values ​​of the plurality of predetermined amounts for the plurality of columns is 1 dot or more, and the absolute value of the difference in the predetermined amounts between any two adjacent columns in the main scanning direction is 150 μm or less, the editing process can be executed to edit the print data that satisfies the conditions. twoThis print data editing device executes an editing process to partially edit print data, suppressing the peak current of the print head required for printing one line. Because the absolute value of the difference in the predetermined amount between two adjacent columns in the main scanning direction is 150 μm or less, changes from the input image in the printed image are less noticeable than when the absolute value of the difference in the predetermined amount is greater than 150 μm, and changes can be suppressed to a level that is imperceptible to the naked eye. By reducing the number of elements that are turned ON in one line, the print data editing device increases the possibility of increasing printing speed compared to conventional methods that do not execute an editing process. Therefore, the print data editing device can edit print data that improves print quality compared to conventional methods without sacrificing print speed.

[0008] A print data editing method according to a third aspect of the present invention is a print data editing method executed by a control unit of a print data editing device that edits print data used in a printing device that includes a print head having a plurality of elements lined up in a main scanning direction, and a transport unit that moves a printing object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, and that drives the plurality of elements while moving the print head relatively to the printing object in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, thereby forming an image on the printing object for each line corresponding to the plurality of elements lined up in the main scanning direction. The print data editing method includes an image data acquisition process that acquires image data that corresponds to the plurality of elements lined up in the main scanning direction, and an editing process that edits the print data corresponding to the image data, and and editing the print data to satisfy a first condition that, when compared with a plurality of dots constituting a print image printed by the input image in units of columns of dots that are consecutively arranged in the sub-scanning direction in a portion of the input image from an upstream end to a downstream end in the sub-scanning direction and have a smaller number of dots than all of the dots arranged in the sub-scanning direction, the image included in the columns of the print image has a highest degree of match when the image represented by the columns of the print image is positioned at the same position as the image represented by the columns of the input image or when shifted a predetermined amount in the sub-scanning direction, and the largest of the absolute values ​​of the plurality of predetermined amounts for the plurality of columns is one dot or greater; and a second condition that the absolute value of the difference in the predetermined amounts between any two adjacent columns in the main scanning direction is one dot or less, and one or more absolute values ​​of the difference are a value less than one dot represented by sub-dots obtained by dividing the dot into a plurality of dots in the sub-scanning direction, or the absolute values ​​of all of the differences are 150 μm or less. A print data editing method according to a third aspect is executed by a control unit of a print data editing device to achieve the same effect as the print data editing device of the first or second aspect.

[0009] A print data editing program according to a fourth aspect of the present invention is a print data editing program executed by a control unit of a print data editing device that edits print data used in a printing device that includes a print head having a plurality of elements lined up in a main scanning direction, and a transport unit that moves a printing object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, and that drives the plurality of elements while moving the print head relatively to the printing object in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, thereby forming an image on the printing object for each line corresponding to the plurality of elements lined up in the main scanning direction. The print data editing program includes an image data acquisition process that acquires image data associated with the plurality of elements lined up in the main scanning direction, and an editing process that edits the print data corresponding to the image data, and and an instruction to cause the control unit to execute the editing process to edit the print data that satisfies a first condition that, when compared with a plurality of dots constituting a print image to be printed, the image included in the row of the print image has a maximum degree of match when the image represented by the row of the input image is positioned at the same position as the image represented by the row of the input image or when shifted a predetermined amount in the sub-scanning direction, and the maximum of the absolute values ​​of the plurality of predetermined amounts for the plurality of rows is one dot or greater; and a second condition that the absolute value of the difference between the predetermined amounts for any two adjacent rows in the main scanning direction is one dot or less, and one or more absolute values ​​of the difference are a value less than one dot represented by sub-dots obtained by dividing the dot into a plurality of sub-dots in the sub-scanning direction, or the absolute values ​​of all the differences are 150 μm or less. A print data editing program according to a fourth aspect, when executed by a control unit of the print data editing device, achieves the same effect as the print data editing device of the first or second aspect. [Brief explanation of the drawings]

[0010] [Figure 1]FIG. 1 is an explanatory diagram of a printing device 1. [Figure 2] 2 is a block diagram showing the electrical configuration of the printing device 1. FIG. [Figure 3] 1 is a flowchart of a printing process executed by the printing device 1. [Figure 4] FIG. 10 is an explanatory diagram of an input image G of a specific example. [Figure 5] FIG. 10 is an explanatory diagram of a process for generating a high-resolution image. [Figure 6] FIG. 10 is an explanatory diagram of a method for setting a target image. [Figure 7] 10 is a flowchart of a comparison condition acquisition process executed in the printing process. [Figure 8] FIG. 10 is an explanatory diagram of an editing method. [Figure 9] 10 is a flowchart of a change process executed in the printing process. [Figure 10] FIG. 10 is an explanatory diagram of a change process in a specific example in which an edit process is not executed. [Figure 11] FIG. [Figure 12] FIG. 10 is an explanatory diagram of a change process in a specific example in which an edit process is executed. [Figure 13] FIG. 10 is an explanatory diagram comparing images before and after performing editing and changing processes on a ruled line extending in the main scanning direction, under the condition that the absolute value of the difference in a predetermined amount between any two partial images adjacent in the main scanning direction X is 150 μm. [Figure 14] FIG. 10 is an explanatory diagram of a process for generating a composite image. [Figure 15] FIG. 10 is an explanatory diagram of a process for generating a composite image. [Figure 16] FIG. 10 is an explanatory diagram of a division process. [Figure 17] FIG. 10 is an explanatory diagram of a division process. [Figure 18] FIG. 10 is an explanatory diagram of a first condition and a second condition that an editing method satisfies. [Figure 19] FIG. 10 is an explanatory diagram comparing images before and after performing editing and change processing on a ruled line extending in the main scanning direction under comparative example conditions in which the absolute value of the difference in a predetermined amount between any two partial images adjacent in the main scanning direction X is 300 μm. DETAILED DESCRIPTION OF THE INVENTION

[0011] A printing device 1 according to one embodiment of the present invention will be described with reference to the drawings. The drawings are used to explain technical features that can be adopted by the present invention. In other words, the configuration and control of the device shown in the drawings are merely illustrative examples and are not intended to be limiting.

[0012] As shown in Figure 1, the printing device 1 is a thermal printer capable of printing characters (objects such as letters, symbols, numbers, and figures) on a printing object F. The printing object F is not limited to a specific medium, but may be, for example, a sheet or tape, and in this embodiment is cut paper that is a thermal recording medium. The printing device 1 functions as a printing data editing device that edits printing data.

[0013] The printing device 1 comprises a case 2, an input unit 3, a communication unit 4, a transport unit 5, and a print head 6. The case 2 is rectangular and longer left-to-right than front-to-back and up-to-down. The case 2 houses the transport unit 5 and the print head 6. The case 2 detachably houses a power supply 10 (shown in FIG. 2). The power supply 10 supplies power to the printing device 1. An insertion slot 21 is formed on the top surface of the case 2, and an ejection slot 22 is formed on the front surface of the case 2. The insertion slot 21 and the ejection slot 22 are each formed in a rectangular shape that is long in the left-to-right direction. The printing object F is inserted into the printing device 1 through the insertion slot 21 and ejected from the printing device 1 through the ejection slot 22. The input unit 3 is located near the left end of the top surface of the case 2. The input unit 3 includes multiple push buttons. The communication unit 4 is a USB jack located on the right side of the case 2. A USB cable connector can be connected to the communication unit 4.

[0014] The transport unit 5 includes a motor 51 and a roller 52 shown in FIG. 2. The roller 52 is roller-shaped and has an axis extending in the left-right direction as its center, and is provided diagonally upward and forward within the case 2. The motor 51 rotates the roller 52. The transport unit 5 transports the print object F in the transport direction TR by the rotation of the roller 52, thereby moving the print object F relative to the print head 6. The transport direction TR is a direction perpendicular to the left-right direction, and in this embodiment, extends diagonally upward and backward and diagonally downward and forward. Hereinafter, the diagonally upward and backward in the transport direction TR will be referred to as the upstream side, and the diagonally downward and forward side will be referred to as the downstream side.

[0015] The print head 6 is provided below the roller 52. The print head 6 is a line head and includes a plurality of elements 61 and a driver IC 62 shown in FIG. 2. In this embodiment, each of the plurality of elements 61 is a heat-generating element that generates heat when energized. The plurality of elements 61 come into contact with the print target F that is pressed downward by the roller 52, and generate heat, thereby printing on the print target F. The driver IC 62 is configured to selectively energize the plurality of elements 61 to generate heat.

[0016] The electrical configuration of the printing device 1 will be described with reference to FIG. 2. The printing device 1 includes a CPU 7, RAM 8, a storage unit 9, a communication unit 4, an input unit 3, a transport unit 5, and a print head 6. The transport unit 5 includes a motor 51 and a roller 52. The print head 6 includes a driver IC 62 and multiple elements 61. The CPU 7 controls the printing device 1. The CPU 7 is electrically connected to the RAM 8, the storage unit 9, the communication unit 4, the input unit 3, the motor 51, and the driver IC 62. The RAM 8 stores temporary data such as various variables. The storage unit 9 stores programs executed by the CPU 7 to control the printing device 1, print data, and various setting information. The communication unit 4 is a controller for communicating with an external device W via a USB cable. The external device W is, for example, a known information processing device such as a PC, tablet PC, or smartphone.

[0017] The printing operation of the printing device 1 will be described. The printing device 1 selectively energizes the multiple elements 61 of the print head 6 in accordance with print data. Thermal energy is applied to portions of the printing object F that come into contact with the energized multiple elements 61. As a result, the printing device 1 forms pixel rows aligned in the main scanning direction X corresponding to the arrangement of the multiple elements 61. The printing device 1 intermittently energizes the multiple elements 61 multiple times while rotating the roller 52 using the motor 51 to transport the printing object F downstream in the transport direction TR. As a result, multiple lines are formed on the printing object F, arranged in a direction perpendicular to the arrangement of pixels in one line of an image. The multiple lines create shades on the printing object F depending on whether or not each pixel is formed, forming a printed image. The above operation is referred to as the "printing operation."

[0018] In the following description, the direction in which the multiple elements 61 are arranged is referred to as the "main scanning direction X," and a printing unit corresponding to one pixel row arranged in the main scanning direction X is referred to as a "line." The arrangement direction of the multiple lines is referred to as the "sub-scanning direction Y." The sub-scanning direction Y is defined by the transport direction TR. A printing unit corresponding to each of the multiple elements 61 is referred to as a "pixel" or a "dot." A printing unit obtained by dividing a "dot" into multiple parts in the sub-scanning direction Y is referred to as a "sub-dot." A printing unit corresponding to a sub-dot row arranged in the main scanning direction X is referred to as a "sub-line."

[0019] With reference to FIGS. 3 to 18, the printing process of the printing device 1 will be described using a specific example of printing the input image G shown in FIG. 4. As shown in FIG. 4, the input image G represents an invoice in English and is printed on A4-sized thermal paper. The left-right direction of the input image G corresponds to the main scanning direction X, and the up-down direction of the input image G corresponds to the sub-scanning direction Y. The left side of the input image G corresponds to one side X1 of the main scanning direction, and the right side of the input image G corresponds to the other side X2 of the main scanning direction. The top of the input image G corresponds to the downstream side Y1 of the sub-scanning direction, and the bottom of the input image G corresponds to the upstream side Y2 of the sub-scanning direction. The input image G includes multiple ruled lines G1 to G4 extending in the main scanning direction X, multiple ruled lines G5 and G6 extending in the sub-scanning direction Y, a barcode G7, and character portions T1 to T7. In FIGS. 6, 8, 14, and 15, each of the character portions T1 to T7 is schematically represented by a shaded rectangle. Within the printing range defined by the print data, the portion made up of subdots whose print data is ON is called the "printed portion," and the portion made up of subdots whose print data is OFF is also called the "non-printed portion." In this embodiment, the portion outside the printing area is also included in the non-printed portion.

[0020] The user selects the input image G to be printed, and after specifying at least one of the characteristic part, target part, and non-target part as necessary, inputs a start command via the input unit 3. The characteristic part is a part of the input image G that is distinctive, such as a barcode, and that is to be subjected to the editing process and conversion described later. Change The target part is a part where it is not desirable to apply the processing. For example, the part P4 including the barcode G7 is identified as a characteristic part by the information at the time of input or pattern matching. Change The non-target portions are the portions instructed by the user to apply the processing, for example, the portion P1 including the ruled line G1, the portion P2 including the ruled line G2, and the portion P3 including the ruled line G3. Change This is a portion for which the user has instructed not to apply processing, and for example, portion P4 is designated as a non-target portion.

[0021] When the CPU 7 detects a start instruction, it loads a print data editing program for executing the printing process from the storage unit 9 into the RAM 8. The CPU 7 executes the printing process, which includes the following steps, in accordance with the instructions contained in the loaded print data editing program. Various data obtained during the printing process is stored in the storage unit 9 as appropriate. Hereinafter, each step is abbreviated as S. In Figures 5, 10 to 12, and 16 to 18, a portion of the multiple subdots corresponding to the print data are shown in a matrix. Subdots with print data ON are indicated by dot shading, and subdots with print data OFF are indicated by white. The left-right and up-down directions correspond to the main scanning direction X and the sub-scanning direction Y, respectively. Column names, represented by numbers, indicate identification numbers assigned to each of the multiple elements 61, starting from one side X1 in the main scanning direction. Row names, represented by numbers, indicate the identification numbers of the lines printed by the elements 61. The printing device 1 forms an image on the printing target F in ascending order of line number.

[0022] As shown in FIG. 3, the CPU 7 acquires image data representing the input image G (S1). The image data is data associated with the plurality of elements 61 arranged in the main scanning direction X. The CPU 7 acquires, for example, image data generated by the external device W and having a higher resolution than the resolution in the sub-scanning direction Y defined by the plurality of elements 61 from the external device W via the communication unit 4. The CPU 7 may acquire image data generated by the external device W and having a resolution equal to or lower than the resolution in the sub-scanning direction Y defined by the plurality of elements 61, or may acquire image data stored in the storage unit 9, or may acquire image data edited by operating the input unit 3.

[0023] The CPU 7 determines whether to perform high-resolution processing (S2). The high-resolution processing is a process for increasing the resolution in the sub-scanning direction Y by dividing each line in the sub-scanning direction Y for the image data representing the input image G acquired in S1. For example, the CPU 7 does not perform the high-resolution processing if the image data acquired in S1 is image data generated by the external device W and has a higher resolution in the sub-scanning direction Y than the resolution in the sub-scanning direction Y defined by the multiple elements 61. For example, the CPU 7 performs the high-resolution processing if the image data acquired in S1 is image data having a resolution equal to or lower than the resolution in the sub-scanning direction Y defined by the multiple elements 61.

[0024] If high-resolution processing is to be performed (S2: YES), the CPU 7 performs high-resolution processing on the image data by dividing each line in the sub-scanning direction Y to increase the resolution in the sub-scanning direction Y (S3). As shown in FIG. 5, the CPU 7, for example, divides each line into three equal parts in the sub-scanning direction Y. The number of divisions into each line may be changed as appropriate. By equally dividing each line in the sub-scanning direction Y, the start timing of each sub-dot is set to an equal cycle. Three consecutive sub-dots in the sub-scanning direction Y correspond to one dot. The CPU 7 designates all sub-dots generated by dividing a dot in the printing portion as the printing portion. The CPU 7 designates all sub-dots generated by dividing one dot in the non-printing portion as the non-printing portion. If high-resolution processing is not to be performed (S2: NO), the CPU 7 does not perform any processing on the input image G acquired in S1 (S4).

[0025] After S3 or S4, the CPU 7 determines whether a characteristic portion is set in the input image G acquired in S1 (S5). If the characteristic portion P4 is set in the input image G (S5: YES), the CPU 7 sets a non-characteristic portion H in the target image to be edited (S6), as shown in FIG. 6. The non-characteristic portion H is the high-resolution image of S3 or the input image G of S4 excluding the characteristic portion P4. By the processing of S6, if a specific pattern is included in the input image G, the target image is set so that editing processing is not performed on the specific pattern.

[0026] If no characteristic parts have been set (S5: NO), the CPU 7 determines whether or not target parts have been set in the input image G acquired in S1 (S7). If target parts P1 to P3 have been set in the input image G (S7: YES), the CPU 7 sets the target parts P1 to P3 in the target image (S8). If the target parts P1 to P3 have been set in the input image G by the processing of S8, the target image is set so that editing processing is performed on the target parts P1 to P3 and editing processing is not performed on non-target parts excluding the target parts P1 to P3.

[0027] If a non-target portion P4 is set in the input image G (S7: YES), the CPU 7 sets a portion H of the high-resolution image of S3 or the input image G of S4 excluding the non-target portion P4 as the target portion in the target image (S8). If a non-target portion P4 is set in the input image G by the processing of S8, the target image is set so that editing processing is not performed on the non-target portion P4, but on the target portion H excluding the non-target portion P4. If a target portion is not set in the input image G (S7: NO), the CPU 7 sets the high-resolution image of S3 or the input image G of S4 as the target image (S9).

[0028] After S6, S8, or S9, the CPU 7 performs a comparison condition acquisition process (S10). The comparison condition acquisition process is a process for acquiring conditions used to determine whether to perform editing processing. In this embodiment, the CPU 7 acquires the printing speed when editing processing is performed and the printing speed when editing processing is not performed as conditions used to determine whether to perform editing processing. The editing process is a process performed to reduce the peak number of energized elements 61 (hereinafter referred to as the "number of on dots"), and distributes multiple sub-dots on the same line across multiple lines by moving them in the sub-scanning direction Y according to a predetermined rule.

[0029] As shown in FIG. 7, in the comparison condition acquisition process, the CPU 7 acquires the print speed when no editing process is performed (S31). If there is a line where the number of ON dots is greater than a threshold, the CPU 7 divides the line into multiple blocks of multiple elements 61. The printing device 1 prints one line of an image by energizing the multiple elements 61 for each divided block multiple times. Printing performed in this manner is called "divided printing." Depending on the number of lines and blocks to be divided and printed, the print speed will be slower than when no dividing printing is performed. The CPU 7 acquires the print speed when no editing process is performed, taking into account the number of lines and blocks to be divided and printed.

[0030] The CPU 7 acquires the editing method to be used in the current editing process from among multiple editing methods (S32). The editing method may be specified by the user or selected by the CPU 7 based on the type, size, etc. of the input image G. The printing device 1 of this embodiment can select one of six editing methods. Referring to FIG. 8, an example in which the six editing methods are applied to the target portion H will be described. Each of the first through fourth editing methods divides the target image into multiple partial images by columns and slides each of the multiple partial images in the sub-scanning direction Y by a predetermined amount corresponding to the partial image, thereby editing the print data. More specifically, the CPU 7 divides the target image into J rectangles, each long in the sub-scanning direction Y, and moves each rectangle as a partial image in the sub-scanning direction Y relative to its initial position indicated by the dotted line PM within a range that satisfies editing conditions including the following two conditions: J may be set as appropriate and is 10 in this embodiment. When the target image includes ruled lines whose longitudinal direction is the sub-scanning direction Y, such as ruled lines G5 and G6 in the input image G, the CPU 7 may adjust the lengths of the rectangles in the main scanning direction X so that the ruled lines whose longitudinal direction is the sub-scanning direction Y are not positioned on the boundaries of the rectangles. The lengths of the rectangles in the sub-scanning direction Y may be the same as or different from each other.

[0031] The first condition is that when the target image and the printed image are compared in units of columns, which are multiple dots arranged continuously in the sub-scanning direction Y, from the upstream end DE on the upstream side Y2 in the sub-scanning direction to the downstream end UE on the downstream side Y1 in the sub-scanning direction, the image included in the column of the printed image has the highest degree of match when it is positioned at the same position as the image represented by the column of the target image or when it is shifted a predetermined amount in the sub-scanning direction Y, and the maximum of the absolute values ​​of the multiple predetermined amounts for the multiple columns is one dot or more. The second condition is that the absolute value of the difference in the predetermined amounts between any two columns adjacent in the main scanning direction X is one dot or less, and the absolute value of one or more differences is less than one dot, represented by sub-dots obtained by dividing a dot into multiple parts in the sub-scanning direction Y. The multiple predetermined amounts for the multiple columns are predetermined amounts for each column. The degree of match is calculated by dividing the number of sub-dots whose ON / OFF values ​​match when comparing the ON / OFF values ​​of sub-dots included in columns located at the same position in the main scanning direction X between the target image and the printed image, by the number of sub-dots included in the column. The degree of match is a number between 0 and 1. In this embodiment, the predetermined amount when sliding toward the downstream side Y1 in the sub-scanning direction is represented by a positive value, and the predetermined amount when sliding toward the upstream side Y2 in the sub-scanning direction is represented by a negative value.

[0032] For example, when the ON / OFF values ​​of subdots included in columns at the same position in the main scanning direction X are compared for each column between input image J1 and print image J2 in FIG. 18, the degree of match reaches the maximum value of 1 when columns 1 to 7 are slid in the sub-scanning direction Y by -3 subdots, -2 subdots, -2 subdots, -1 subdot, -1 subdot, 0 subdot, and 0 subdot. In this specific example, since 3 subdots correspond to 1 dot, input image J1 and print image J2 satisfy the first condition. The absolute value of the difference in the predetermined amount between any two columns adjacent in the main scanning direction X is 1 subdot or 0 subdot, and input image J1 and print image J2 satisfy the second condition. On the other hand, when comparing columns 1 through 7 of the input image J1 with the print image J4, which has been edited and then modified (described later) to change the print data of some of the printed areas from ON to OFF, starting from one side X1 in the main scanning direction, the predetermined amount is the same, but the degree of match corresponding to elements 61 with identification numbers 2 through 6 is 14 / 15, which is less than 1. Since the predetermined amount for each column when comparing the input image J1 with the print image J4 is the same as the predetermined amount for each column when comparing the input image J1 with the print image J2, the input image J1 and the print image J4 satisfy both the first and second conditions. The length of one dot in the sub-scanning direction Y varies depending on the resolution of the print image. The length of one dot in the sub-scanning direction Y depends on the resolution of the elements 61, but falls within a range of approximately 20 μm to 170 μm. Therefore, the second condition may be that the absolute value of the difference in the predetermined amount between any two adjacent columns in the main scanning direction X is 150 μm or less. The CPU 7 of this embodiment further edits the target image so that the absolute value of the predetermined amount is minimized in the center in the main scanning direction X. Portions corresponding to the continuous print portions in the input image J1 are also continuous in the print images J2 and J4.

[0033] The first editing method is a method of editing the target image such that, when the predetermined amount when sliding toward the upstream side Y2 in the sub-scanning direction is a negative value and the predetermined amount when sliding toward the downstream side Y1 in the sub-scanning direction is a positive value, the predetermined amount in the main scanning direction X becomes larger in the direction 90 degrees clockwise from the downstream side Y1 in the sub-scanning direction, i.e., the further toward the other side X2 in the main scanning direction. More specifically, as shown in Fig. 8, when applying the first editing method to the target image H, the CPU 7 changes the predetermined amounts E1 to E10 of the first to tenth rectangular partial images from one side X1 in the main scanning direction to -5 subdots, -4 subdots, -3 subdots, -2 subdots, - The edited image H1 is generated by setting the number of subdots to 1, 0, 1, 2, 3, and 4. In the first editing method, the difference in the predetermined amount between any two adjacent rows is 0 or 1 subdot, and is a value less than 1 dot, represented by subdots obtained by dividing a dot into multiple subdots in the sub-scanning direction Y. The maximum absolute value of the predetermined amount is 5 subdots, which is 1 dot or more.

[0034] Similarly, the second editing method is a method of editing the target image such that, when the predetermined amount when sliding toward the upstream side Y2 in the sub-scanning direction Y is a negative value and the predetermined amount when sliding toward the downstream side Y1 in the sub-scanning direction Y is a positive value, the predetermined amount in the main scanning direction X becomes smaller as it moves 90 degrees clockwise from the downstream side Y1 in the sub-scanning direction Y. More specifically, when applying the second editing method to the target image H, the CPU 7 sets the predetermined amounts E1 to E10 of the first to tenth rectangular partial images from one side X1 in the main scanning direction to 5 subdots, 4 subdots, 3 subdots, 2 subdots, 1 subdot, 0 subdot, -1 subdot, -2 subdot, -3 subdot, and -4 subdot, respectively, to generate an edited image H2.

[0035] The third editing method is a method of editing a target image so that there is only one extremum of a predetermined amount in the main scanning direction X. More specifically, when applying the third editing method to target image H, CPU 7 sets the predetermined amounts E1 to E10 of the first to tenth rectangular partial images from one side X1 in the main scanning direction to -4 subdots, -3 subdots, -2 subdots, -1 subdots, 0 subdots, -1 subdots, -2 subdots, -3 subdots, -4 subdots, and -5 subdots, respectively, to generate edited image H3. The extremum in the third editing method is 0 subdots, which corresponds to the fifth partial image from the left.

[0036] The fourth editing method is a method of editing a target image so that there are two or more extrema of a predetermined amount in the main scanning direction X. More specifically, when applying the fourth editing method to target image H, CPU 7 sets the predetermined amounts of the first to tenth rectangular partial images from one side X1 in the main scanning direction to -3 subdots, -2 subdots, -1 subdots, 0 subdots, 0 subdots, -1 subdots, -2 subdots, -3 subdots, -2 subdots, and -1 subdots, respectively, to generate edited image H4. The extrema in the fourth editing method are 0 subdots corresponding to the fourth and fifth partial images from the left, and -3 subdots corresponding to the eighth partial image from the left.

[0037] The fifth editing method rotates the target image clockwise by a predetermined angle around a reference point. The sixth editing method rotates the target image counterclockwise by a predetermined angle around a reference point. In this embodiment, the reference point is set by taking into consideration that the absolute value of the predetermined amount at the center in the main scanning direction X is smallest, for example, the center of the target image. The predetermined angle may be set appropriately depending on the size of the print target F, the target image, etc. The predetermined angle is, for example, a value between 0 and 10 degrees, preferably a value of 1 degree or less, and more preferably a value of 0.5 degrees or less. When the CPU 7 applies the fifth editing method to the target image H with a predetermined angle of 1 degree, it generates an edited image H5. When the CPU 7 applies the sixth editing method to the target image H with a predetermined angle of 1 degree, it generates an edited image H6. In edited image H5 to which the fifth editing method has been applied and edited image H6 to which the sixth editing method has been applied, when the target image is divided into J rectangular partial images that are long in the sub-scanning direction Y as in the first to fourth editing methods, and when the predetermined amounts E1 to E10 of each partial image are compared, both the first and second conditions are met. When the fifth or sixth editing method is applied, when the target image is rotated a predetermined angle around a reference, the degree of match with the print image is maximized, and the amount of movement of the portion furthest from the reference is greater than one dot.

[0038] The CPU 7 generates an edited image by editing the target image using the editing method acquired in S32 (S33). The CPU 7 acquires the print speed when printing the edited image generated in S33 (S34). The CPU 7 acquires the print speed when performing the editing process, taking into account the number of lines to be divided and printed and the number of blocks. 。C The PU 7 then ends the comparison condition processing and returns the process to the print processing of FIG.

[0039] After S10, the CPU 7 determines whether to execute editing processing on the target image (S11). The criteria for determining whether to execute editing processing on the target image may be set as appropriate. A user-selected criterion from among multiple criteria may be used, or the CPU 7 may select a criterion based on the type, size, etc., of the input image G. For example, the CPU 7 may determine to execute editing processing if the target image includes a predetermined number of ruled lines extending a predetermined length or more in the main scanning direction X. The predetermined length and the predetermined number may be set as appropriate. For example, if the predetermined length is set to half the length of the target image in the main scanning direction X and the predetermined number is 3, the target image H includes ruled lines G1 to G3 that are longer than half the length of the target image in the main scanning direction X, and therefore it is determined that editing processing is to be executed. In another example, the CPU 7 may execute editing processing if the image data includes a line for which the peak current required by the print head 6 is greater than a threshold value relative to the maximum current that the power supply 10 can output (S11: YES) (S12). In another example, the CPU 7 may execute the edit process if the print speed is faster when printing is performed based on print data edited in the edit process than when the print data is not edited in the edit process (S12). 3 If the print speed acquired in S4 is faster than the print speed acquired in S31, the editing process may be executed. If the peak number of ON dots in the edited image is reduced compared to the target image, the print speed acquired in S34 may be faster than the print speed acquired in S31.

[0040] If editing processing is to be performed (S11: YES), the CPU 7 edits the target image using the editing method acquired in S32 (S12). As shown in FIG. 8, for example, if the first editing method is applied to the target image H, the CPU 7 edits the print data to generate data representing an edited image H1. If editing processing is performed on the target image set in S9, the CPU 7 performs editing processing on the entire input image G or the entire high-resolution image. If editing processing is performed on the target image set in S6 or S8, the CPU 7 performs editing processing on a portion of the input image G or a portion of the high-resolution image. If target portions P1 to P3 are set as the target image in S8, the CPU 7 performs editing processing on only a portion of the input image G or the high-resolution image in the sub-scanning direction Y. If editing processing is not to be performed (S11: NO), the CPU 7 generates print data from the image data without performing editing processing on the target image (S13).

[0041] After S12 or S13, the CPU 7 determines whether to perform modification processing (S14). Modification processing is processing that modifies the print data so as to reduce the number of ON dots in one line. The criteria for determining whether to perform modification processing may be set in advance by the user, or may be determined automatically by the CPU 7 based on the type, size, print speed, print quality, number of ON dots, etc. of the print data. If modification processing is not to be performed (S14: NO), the CPU 7 does not perform modification processing on the target image of S12 or S13 (S16). If modification processing is to be performed (S14: YES), the CPU 7 performs modification processing on the target image of S12 or S13 (S15). In the change process, the CPU 7 defines a printing unit obtained by dividing a dot defined by a plurality of elements 61 into M pieces (M is an integer of 2 or more) in the sub-scanning direction Y as a sub-dot, defines a plurality of sub-dots arranged in the main scanning direction X as a sub-line, defines sub-dots for which the print data is ON as a printed portion, and defines sub-dots for which the print data is OFF or portions outside the printing area as a non-printed portion, and changes the image data or print data of at least one or more changed sub-dots from ON to OFF in all sub-lines in at least one line within the printed portion.

[0042] The modification process will be described using the diagrams of FIGS. 10 to 12, which schematically show portions of a print image represented by print data. As shown in FIG. 9, in the modification process, the CPU 7 acquires outline conditions (S40). The printing device 1 of this embodiment allows the user to specify whether to modify the print data for the outline portion of a print portion formed by subdots whose print data is ON. Specifically, the CPU 7 defines the range of the outline portion for which modification process is not performed using variables U, D, L, and R. Variable U is a variable that sets the range of the outline portion set on the downstream side Y1 of a continuous print portion in the sub-scanning direction. Variable D is a variable that sets the range of the outline portion set on the upstream side Y2 of a continuous print portion in the sub-scanning direction. Variable L is a variable that sets the range of the outline portion set on one side X1 of a continuous print portion in the main scanning direction. Variable R is a variable that sets the range of the outline portion set on the other side X2 of a continuous print portion in the main scanning direction. The variables U, D, L, and R may each be an integer equal to or greater than 0, and may be the same or different. The variables U, D, L, and R may each be set by the user, or may be automatically set depending on the type of target image, etc. In this embodiment, the variables U, D, L, and R are 2, 1, 1, and 1, respectively.

[0043] The CPU 7 acquires one subdot from among the multiple subdots included in the print data as a subdot of interest (S41). The CPU 7 acquires the subdot of interest, for example, from left to right and from top to bottom of the target image. The CPU 7 determines whether the subdot of interest is a printed portion based on the print data of the subdot of interest acquired in S41 (S42). If the print data corresponding to the subdot of interest is OFF (S42: NO), the CPU 7 leaves the print data of the subdot of interest OFF (S47), and determines whether all subdots included in the print data have been acquired as subdots of interest in the process of S41 (S48). If there are subdots that have not been acquired in the process of S41 (S48: NO), the CPU 7 returns to S41 and acquires the next subdot of interest in the acquisition order (S41).

[0044] As shown in FIG. 10, the print data corresponding to the target subdot TS1, indicated by diagonal shading, is ON (S42: YES), so the CPU 7 determines whether the downstream reference portion is a non-print portion (S43). The downstream reference portion is one or more subdots located downstream Y1 in the sub-scanning direction from the target subdot. In this embodiment, the downstream reference portion is the subdot U-th from the target subdot TS1 downstream Y1 in the sub-scanning direction. The downstream reference portion for the target subdot TS1 is subdot UR1, indicated by diagonal lattice shading, and the print data for subdot UR1 is OFF (S43: YES). In this case, the CPU 7 sets the target subdot TS1 as a contour subdot that constitutes the contour portion, leaves the print data for the target subdot TS1 ON (S46), and proceeds to the process of S48. In this way, when a target subdot, which is one of the multiple subdots, is in the print portion (S42: YES), the CPU 7 sets the subdot that is located Uth (U is any integer equal to or greater than 0) downstream Y1 of the target subdot TS1 in the sub-scanning direction Y as the reference subdot. When the reference subdot is in the non-print portion (S43: YES), the CPU 7 sets the target subdot as a contour subdot, and leaves the image data or print data of the contour subdot ON (S46).

[0045] If the target subdot TS2 indicated by diagonal shading is acquired (S41, S42: YES), the downstream reference portion for the target subdot TS2 is the subdot UR2 indicated by diagonal lattice shading, and the print data for the subdot UR2 is ON (S43: NO). In this case, the CPU 7 determines whether at least any of the surrounding reference portions is a non-printing portion (S44). The surrounding reference portion is one or more subdots located around the target subdot. The surrounding reference portion may include, for example, the Lth subdot on one side X1 of the target subdot in the main scanning direction, the Rth subdot on the other side X2 of the main scanning direction of the target subdot, and the Dth subdot on the upstream side Y2 of the target subdot in the sub-scanning direction. If at least any of the surrounding reference portions is a non-printing portion (S44: YES), the CPU 7 performs the process of S46. In this way, when a target subdot, which is one of the multiple subdots, is a printed portion (S42: YES), if at least one of the subdots arranged as the Uth subdot on the downstream side Y1 in the sub-scanning direction Y, the Dth subdot on the upstream side Y2 in the sub-scanning direction Y, the Lth subdot on one side X1 in the main scanning direction X, and the Rth subdot on the other side X2 in the main scanning direction X is a non-printed portion (S43: YES, S44: YES), the CPU 7 designates the target subdot as a contour subdot and leaves the image data or print data of the contour subdot ON (S46).

[0046] The surrounding reference portions for the target subdot TS2 are the subdots CR1 to CR3, which are indicated by diagonal grid hatching, and the print data for the subdots CR1 to CR3 is all ON (S44: NO). In this case, the CPU 7 stores the target subdot TS2 as a candidate subdot for replacement (S45) and performs the process of S48. Through the processes of S41 to S48, a portion of the print portion R1 of the partial image B1 shown in FIG. 10 is set as a contour subdot, like the portion R3 indicated by the dark hatching in the partial image B2, and the remaining portion R4 is set as a candidate subdot for replacement. In this way, if a target subdot, which is one of the plurality of subdots, is a print portion (S42: YES), and if the Uth subdot arranged on the downstream side Y1 in the sub-scanning direction Y relative to the target subdot, the Dth subdot arranged on the upstream side Y2 in the sub-scanning direction Y relative to the target subdot, the Lth subdot arranged on one side X1 in the main scanning direction X, and the Rth subdot arranged on the other side X2 in the main scanning direction X are all print portions (S43: NO, S44: NO), the CPU 7 designates the target subdot as a candidate subdot to be changed (S45). The CPU 7 changes the print data of at least one or more candidate subdots to be changed from ON to OFF in all sublines in at least one line among all candidate subdots in the image data by the processes of S49 to S53 below.

[0047] If all subdots are acquired as target subdots in the process of S41 (S48: YES), the CPU 7 acquires the change method for one or more change candidate subdots stored in S45 (S49). The change method may be specified by the user, or may be selected by the CPU 7 depending on the type, size, printing speed, print quality, etc. of the input image G. The printing device 1 of this embodiment can select one of four change methods.

[0048] 11, an example will be described in which the four types of modification methods are applied to partial image V. Partial image V is an image in which the number of dots in the main scanning direction X and the number of dots in the sub-scanning direction Y are five and seven, respectively. Of the sub-dots that make up partial image V, the sub-dots indicated by dark shading are set as outline sub-dots, and the sub-dots indicated by light shading are set as modification candidate sub-dots.

[0049] The first modification method modifies the print data for the modification candidate subdots from ON to OFF at a ratio of B / C (B and C are natural numbers) in the main scanning direction X and B / C in the sub-scanning direction Y. B / C may be set to a value greater than 0 and less than 1, preferably 0.5 or less. For example, B / C is 1 / 5. When the first modification method is applied and fractional numbers are generated for the modification candidate subdots in the main scanning direction X and the sub-scanning direction Y, as in partial image V of FIG. 11 , the first modification method may be applied to a range where the first modification method is applicable, as in partial image V1, and other methods may be applied to other ranges. Taking into consideration cases where fractional numbers are generated for the modification candidate subdots in the main scanning direction X and the sub-scanning direction Y when the first modification method is applied, the CPU 7 may set B / C as a target value and set the number of modification candidate subdots to be modified from ON to OFF so as to be closest to the target value.

[0050] The second change method is a method in which, when the print data of a subdot of interest is ON and the subdot adjacent to the subdot of interest on the upstream side Y2 or downstream side Y1 in the sub-scanning direction Y is a change subdot, the print data of the subdot of interest remains ON. In other words, the second change method is a method in which change subdots that change from ON to OFF are not consecutive in the sub-scanning direction Y, as in partial image V2 in Figure 11.

[0051] The third change method leaves the print data of the target subdot ON if the print data of the target subdot is ON and at least one of the subdots adjacent to the target subdot in the main scanning direction X is a change subdot. In other words, the third change method is a method in which change subdots that change from ON to OFF are not consecutive in the main scanning direction X, as in partial image V3 in Figure 11.

[0052] The fourth change method leaves the print data of the target subdot ON if the print data of the target subdot is ON and at least one of the eight subdots surrounding the target subdot is a change subdot. In other words, the fourth change method is a method in which change subdots that are changed from ON to OFF are not consecutive in eight directions, as in partial image V4 in Figure 11. The eight directions in Figure 11 are the upper, upper right, right, lower right, lower, lower left, left, and upper left sides of the target subdot. In the second to fourth change methods, the ratio of change subdots to change candidate subdots in the main scanning direction X and the sub-scanning direction Y may be set appropriately.

[0053] The CPU 7 acquires a change candidate subline, which is a subline formed by one or more change candidate subdots stored in S45, in a predetermined order (S50). In this embodiment, the CPU 7 acquires the change candidate sublines in order from the downstream side Y1 in the sub-scanning direction. For example, the CPU 7 acquires the change candidate subline CL furthest downstream in the sub-scanning direction Y1 in the portion R4. The CPU 7 sets the change candidate subdots of the change candidate subline acquired in S50 according to the change method acquired in S49 (S51). For example, the CPU 7 changes the subdot CS1 included in the change candidate subline CL to a change subdot. The CPU 7 changes the print data of the subdot changed to a change subdot in S51 from ON to OFF (S52). The CPU 7 determines whether all change candidate sublines have been acquired in the process of S50 (S53). If there is a subline that has not been acquired in the process of S50 (NO in S53), the CPU 7 returns to the process of S50. If all the proposed sublines have been acquired in S50 (S53: YES), the CPU 7 ends the modification process and returns to the printing process of FIG. 3. When the fourth modification method is applied to partial image B2 in FIG. 10, the print data for modification subdots CS1 to CS5 is changed from ON to OFF, as in partial image B3, for example. On the other hand, as shown in FIG. 12, when the fourth modification method is applied to partial image C1 to which the first editing method was applied in S12 in S15, the print data is changed, as in partial image C2, for example. As shown in FIG. 13, when editing is performed using the second editing method under the conditions that the resolution is 165 dpi and the absolute value of the difference in the predetermined amount between any two adjacent partial images in the main scanning direction X is 150 μm, editing and modification processes can be performed on ruled lines extending in the main scanning direction X with thicknesses of 1 dot, 2 dots, 3 dots, 4 dots, 6 dots, 8 dots, and 16 dots. This reduces the number of ON dots while still tilting the ruled lines to a degree that is imperceptible to the naked eye. More specifically, the edited areas of the printed image under the conditions shown in FIG. 13 are less noticeable to the naked eye than the printed image edited using the second editing method under the comparative example conditions shown in FIG. 19, where the resolution is 165 dpi and the absolute value of the difference between the predetermined amounts of any two adjacent partial images in the main scanning direction X is 300 μm.When the resolution is 165 dpi, the length of one dot in the sub-scanning direction Y is approximately 154 μm. Figures 13 and 19 show the case where the values ​​of U and D are 3 (corresponding to one dot) and the change process is performed using the third change method, which satisfies the condition that B / C is 1 / 2.

[0054] After S15 or S16, the CPU 7 determines whether the target image is the input image G or a high-resolution image (S17). If the target image is the input image G or a high-resolution image (S17: YES), the CPU 7 does not perform the process of combining the partial images (S19). If the target image is the non-characteristic portion H and the target image has been edited using the sixth editing method (S17: NO), the CPU 7 edits the print data to generate data for printing a composite image G9, which is a combination of the edited image H6 edited in S12, which is the target of the processes from S11 to S16, and the characteristic portion P4, which was not the target of the processes from S11 to S16, as shown in FIG. 14 (S18). The characteristic portion P4 of the composite image G9 completely matches the characteristic portion P4 of the input image G or the high-resolution image because it has not been edited or changed. The portion of the composite image G9 excluding the characteristic portion P4 has been edited and changed, and therefore has portions that do not match the portions of the input image G or the high-resolution image excluding the characteristic portion P4. The same applies when the target image is the target portion H (S17: NO) (S18).

[0055] If the target image is the target portions P1 to P3 and has been edited using the first editing method (S17: NO), the CPU 7 edits the print data (S18) so that the print data becomes data for printing a composite image G10 that is a composite of the target portions P1 to P3 that were the target of the processes from S11 to S16 and edited in S12 and the non-target portion J that was not the target of the processes from S11 to S16, as shown in Fig. 15. The portions of the composite image G10 excluding the target portions P1 to P3 are completely identical to the portions of the input image G or the high-resolution image excluding the target portions P1 to P3, since no editing process or change process has been performed on them. 3 is , since the editing process and the change process are performed, the target portions P1 to P2 of the input image G or the high-resolution image are 3 and In composite image G10, when the multiple dots that make up input image G and the multiple dots that make up the print image printed in accordance with the print data are compared in units of columns, which are multiple dots that are continuously lined up in the sub-scanning direction Y, in target portion P1, which is a part of the area from the upstream end DE on the upstream side Y2 in the sub-scanning direction Y to the downstream end UE on the downstream side Y1, the first and second conditions are met. Similarly, target portions P2 and P3 also meet the first and second conditions.

[0056] After S18 or S19, the CPU 7 determines whether to perform divided printing (S20). Divided printing is a printing method in which multiple elements 61 are divided into N blocks (N is an integer greater than or equal to 2) so that the peak current of the print head 6 required to print one line based on the print data is kept below the maximum current that can be supplied from the power supply 10 to the print head 6, and each of the N blocks is driven sequentially at different timings to print one line of the print data extending in the main scanning direction X. The criteria for determining whether to perform divided printing may be determined as appropriate. For example, the CPU 7 may determine whether to perform divided printing based on the number of on dots per line. If divided printing is to be performed (S20: YES), the CPU 7 edits the print data so that at least some of the lines included in the print data are divided into N blocks in the sub-scanning direction Y (S21). The division method may be determined as appropriate. In this embodiment, the CPU 7 divides the printing cycle of one line into a plurality of sub-printing cycles that are the same length and that start at the same time as the printing cycle. The CPU 7 may set the division method depending on the editing method used in S12.

[0057] When the print data is edited in the editing process of S12 so that the difference in the predetermined amount between any two adjacent columns in the main scanning direction X increases from one side X1 to the other side X2 in the main scanning direction X toward the upstream side Y2 in the sub-scanning direction, as shown in image M1 of Fig. 16, the CPU 7 edits the print data in the divided printing process so that each of the multiple elements 61 in N blocks is driven at different timings in the order from one side X1 to the other side X2 in the main scanning direction X, as shown in image M2 of Fig. 16. The line with identification number 1 in image M1 is divided into two lines, one with identification number 1 and one with identification number 1', in image M2. Similarly, the line with identification number 2 in image M1 is divided into two lines, one with identification number 2 and one with identification number 2', in image M2. In the editing process of S12, when the print data is edited so that the difference in the predetermined amount between any two adjacent columns in the main scanning direction X increases from the other side X2 to one side X1 in the main scanning direction X toward the upstream side Y2 in the sub-scanning direction, as shown in image M3 of FIG. 17 , the CPU 7 then edits the print data in the divided printing process so that each of the multiple elements 61 in N blocks is driven at different timings in the order from the other side X2 to one side X1 in the main scanning direction X, as shown in image M4 of FIG. The line with identification number 1 in image M3 is divided into two lines, one with identification number 1 and one with identification number 1', in image M4. Similarly, the line with identification number 2 in image M3 is divided into two lines, one with identification number 2 and one with identification number 2', in image M4. The CPU 7 sets the start timing of each sub-dot to be evenly spaced.

[0058] CPU7 is S2 1 Based on the print data edited in step S20, divided printing is performed (S23). The CPU 7 performs divided printing by driving a plurality of elements 61 for each of a plurality of sub-print cycles. If divided processing is not performed (S20: NO), the CPU 7 performs print processing based on the print data of S18 or S19 (S22). The CPU 7 sets the heat generation amount of the change candidate sub-dots to be larger than that of the outline sub-dots in accordance with the print data, and in S22 or S23, the CPU 7 performs print processing to form an image on the print target F by heating the plurality of elements 61 (S22, S23). S23 or SAfter step 22, the CPU 7 ends the printing process.

[0059] In the above embodiment, the printing device 1 is an example of the printing device and print data editing device of the present invention. Complex of The processes in S1 and S23 are examples of the elements, print head, transport unit, control unit, and communication unit of the present invention. The process in S1 is an example of the image data acquisition process of the present invention. The process in S12 is an example of the editing process of the present invention. The process in S15 is an example of the change process of the present invention. The process in S23 is an example of the divided printing process of the present invention. The processes in S22 and S23 are examples of the printing process of the present invention. The first condition is an example of the first condition of the present invention. The second condition is an example of the second condition of the present invention.

[0060] The printing device 1 of the above embodiment includes a print head 6, a transport unit 5, and a CPU 7. The printing device 1 has a plurality of elements 61 arranged in a line in the main scanning direction X. The transport unit 5 moves the print object F and the print head 6 relative to each other in a sub-scanning direction Y that intersects with the main scanning direction X. The printing device 1 drives the plurality of elements 61 while moving the print head 6 relative to the print object F in the sub-scanning direction Y according to print data including data instructing each of the plurality of elements 61 to be turned on or off, thereby editing print data used by the printing device 1 to form an image on the print object F line by line corresponding to the plurality of elements 61 arranged in the main scanning direction X. The CPU 7 acquires image data corresponding to the plurality of elements 61 arranged in the main scanning direction X (S1). The CPU 7 then performs an editing process to edit the print data corresponding to the image data (S12). Specifically, based on the image data, the CPU 7 edits print data that satisfies the following conditions: when a plurality of dots constituting the input image G represented by the image data are compared with a plurality of dots constituting the print image printed in accordance with the print data, the plurality of dots are aligned consecutively in the sub-scanning direction Y in a portion of the area between the upstream end DE on the upstream side Y2 in the sub-scanning direction Y and the downstream end UE on the downstream side Y1 in the sub-scanning direction Y, and the number of dots is smaller than all the dots aligned in the sub-scanning direction Y, the image included in the print image column has the highest degree of match when the image represented by the column of the input image G is positioned at the same position as the image represented by the column of the input image G or when the image is shifted a predetermined amount in the sub-scanning direction Y, the maximum of the absolute values ​​of the plurality of predetermined amounts for the columns is one dot or more, and the absolute value of the difference in the predetermined amounts between any two columns adjacent in the main scanning direction X is a value less than one dot or 150 μm or less, represented by sub-dots obtained by dividing a dot into a plurality of dots in the sub-scanning direction Y. For example, the CPU 7 edits target portions P1 to P3 of the input image G shown in FIG. 6 so as to satisfy the first and second conditions, thereby editing print data corresponding to the composite image G10 shown in FIG. 15. By executing the editing process, the printing device 1 can edit the print data in such a way that the peak current of the print head 6 required for printing one line is suppressed.The printing device 1 can perform editing in subdot units, which is finer than when the predetermined amount is in dot units. The edited portion includes a portion where the absolute value of the difference between the predetermined amount for two adjacent columns in the main scanning direction X is less than one dot. This makes the changes from the input image G less noticeable in the printed image than when the absolute value of the difference between the predetermined amount is one dot or more, as in the conventional method. When the absolute value of the difference between the predetermined amount for two adjacent columns in the main scanning direction X is 150 μm or less, the changes from the input image G in the printed image are less noticeable than when the absolute value of the difference between the predetermined amount is greater than 150 μm. By reducing the number of ON elements 61 in a line, the printing device 1 increases the possibility of increasing printing speed compared to conventional methods that do not perform editing. Therefore, the printing device 1 edits print data to improve print quality compared to conventional methods without sacrificing printing speed.

[0061] If there is a line in the image data where the peak current required by the print head 6 is greater than the threshold value relative to the maximum current that can be output by the power supply 10 (S11: YES), the CPU 7 of the printing device 1 executes an editing process (S12). The printing device 1 can execute the editing process if there is a possibility that executing the editing process will improve the printing speed.

[0062] When the input image G contains a specific pattern such as the characteristic portion P4 in Fig. 4 (S5: YES), the printing device 1 does not execute an editing process on the specific pattern (S6, S12). The printing device 1 can reliably avoid executing an editing process on a specific pattern, such as a barcode, whose shape should not be edited.

[0063] In the editing process, the CPU 7 compares the plurality of dots constituting the input image G of a predetermined region with the plurality of dots constituting the print image corresponding to the predetermined region, in units of columns of dots aligned consecutively in the sub-scanning direction Y, and edits the print data that satisfies the editing conditions (S12). The printing device 1 can execute the editing process for a predetermined region, such as the target portions P1 to P3 in Figure 4. The printing device 1 can improve user convenience compared to when editing cannot be executed for a predetermined region.

[0064] In the editing process, the printing device 1 edits print data that satisfies the editing conditions when comparing, in columns of dots that are consecutively arranged in the sub-scanning direction Y, the multiple dots that make up the input image G in the area excluding the predetermined area with the multiple dots that make up the print image corresponding to the area excluding the predetermined area (S12). The printing device 1 does not execute the editing process for the predetermined area, such as the non-target portion P4 in FIG. 4, but can execute the editing process for the area excluding the predetermined area. Compared to a case where the editing process cannot be executed for the area excluding the predetermined area, the printing device 1 can improve user convenience.

[0065] The printing device 1 includes a communication unit 4 that acquires image data from an external device W. In processing S1, the CPU 7 acquires image data generated by the external device W and having a higher resolution than the resolution in the sub-scanning direction Y defined by the plurality of elements 61 from the external device W via the communication unit 4 (S1). Because the printing device 1 acquires high-resolution image data generated by the external device W, there is no need for the printing device 1 to perform processing to increase the resolution of the image data.

[0066] The CPU 7 performs a high-resolution process on the image data to increase the resolution in the sub-scanning direction Y by dividing one line in the sub-scanning direction Y (S3). The printing device 1 can increase the resolution of the image data even when the acquired image data has a relatively low resolution.

[0067] Printing device 1 includes print head 6 and transport unit 5. CPU 7 divides multiple elements 61 into N blocks (N is an integer greater than or equal to 2) so as to keep the peak current of print head 6 required to print one line based on print data below the maximum current that can be supplied from power supply 10 to print head 6, and sequentially drives each of the N blocks at different timings to print one line extending in main scanning direction X of the print data (S23). Even if the peak current supplied to print head 6 when printing one line based on edited print data exceeds the maximum current that can be supplied from power supply 10, printing device 1 can maintain print quality while printing without the peak current exceeding the maximum current that can be supplied from power supply 10.

[0068] In the editing process, the CPU 7 edits the print data so that the difference in a predetermined amount between any two adjacent columns in the main scanning direction X increases from one side X1 to the other side X2 in the main scanning direction, toward the upstream side Y2 in the sub-scanning direction (S12). In the divided printing process of S23, the CPU 7 drives each of the N blocks at different timings in order from one side X1 to the other side X2 in the main scanning direction X. The printing device 1 can print beautifully and quickly across a single line without interruption.

[0069] The CPU 7 defines a printing unit obtained by dividing a dot defined by each of the multiple elements 61 into M units (M is an integer greater than or equal to 2) in the secondary scanning direction Y as a subdot, defines multiple subdots aligned in the primary scanning direction X as a subline, defines subdots for which print data is ON as a printed portion, and defines subdots for which print data is OFF or portions outside the printing area as a non-printed portion, and then changes the image data or print data of at least one or more subdots from ON to OFF in all sublines in at least one line within the printed portion (S15). By executing a change process in addition to an edit process, the printing device 1 can further reduce the possibility that the peak current supplied to the print head 6 will exceed the maximum current that can be supplied from the power supply 10 while maintaining print quality.

[0070] In the editing process, the CPU 7 divides the input image G into a plurality of partial images in units of columns, and edits the print data by sliding each of the divided partial images in the sub-scanning direction Y by a predetermined amount corresponding to the partial image (S12). The printing device 1 can reduce the load of the editing process on the CPU 7, and can implement the editing process even when the memory of the CPU 7 is small.

[0071] In the editing process, the CPU 7 applies a rotation process to the input image G to edit the print data (S12). By applying the rotation process to the input image G, the printing device 1 can smoothly edit the input image G. The printing device 1 can relatively reduce the amount of deformation of geometric figures when comparing the input image G with the print image.

[0072] In the editing process, the CPU 7 edits the print data so that, when the predetermined amount for sliding to the upstream side Y2 in the sub-scanning direction Y is a negative value and the predetermined amount for sliding to the downstream side Y1 in the sub-scanning direction Y is a positive value, the predetermined amount in the main scanning direction X is a value that increases in the direction 90 degrees clockwise from the downstream side Y1 in the sub-scanning direction Y (S12). The printing device 1 can edit print data in which the character string included in the print image looks good when italicized in English or the like. The printing device 1 edits the print data so that, when a character string such as Japanese hiragana that slopes upward to the right is of This can prevent the generation of additional print data.

[0073] In the editing process, the CPU 7 edits the print data so that, when the predetermined amount for sliding to the upstream side Y2 in the sub-scanning direction Y is a negative value and the predetermined amount for sliding to the downstream side Y1 in the sub-scanning direction Y is a positive value, the predetermined amount in the main scanning direction X becomes smaller as it moves 90 degrees clockwise from the downstream side Y1 in the sub-scanning direction Y (S12). The printing device 1 can edit print data that looks good when the character string included in the print image is Japanese hiragana.

[0074] In the editing process, the CPU 7 edits the print data so that the absolute value of the predetermined amount in the center in the main scanning direction X is minimized (S12). The printing device 1 can minimize the margin difference between both ends of the print image in the sub-scanning direction Y and both ends in the main scanning direction X.

[0075] In the editing process, the CPU 7 edits the print data having two or more extreme values ​​of the predetermined amount in the main scanning direction X (S12). The printing device 1 can relatively reduce the predetermined amount of the image compared to when the extreme value is one or less.

[0076] In the editing process, the CPU 7 edits the print data in which there is one extremum of the predetermined amount in the main scanning direction X (S12). The printing device 1 can relatively reduce the predetermined amount of the image compared to when the extremum is zero.

[0077] The CPU 7 executes a divided printing process for printing based on the print data by dividing the printing cycle of one line into a plurality of sub-printing cycles that are the same length and include sub-printing cycles that start at the same time as the printing cycle, and driving the plurality of elements 61 for each of the plurality of sub-printing cycles (S23). By executing the divided printing process, the printer 1 can print in units smaller than the dots corresponding to the plurality of elements 61 in the sub-scanning direction Y.

[0078] The print data editing device, print data editing method, and print data editing program of the present invention are not limited to the above-described embodiments and may be modified in various ways without departing from the spirit and scope of the present invention. For example, the following modifications may be made as appropriate. The present invention can be implemented in various forms, such as a non-transitory computer-readable medium storing a print data editing program. The configuration of the printing device 1 may be modified as appropriate. The printing device 1 may be a printing device having a line thermal head that thermally transfers an ink ribbon as the print head 6. The printing device 1 may be an inkjet printer having a line inkjet head as the print head 6, with a plurality of piezoelectric elements as the plurality of elements 61. The printing device 1 may be an electrophotographic printer having a line LED head as the print head 6, with a plurality of LEDs (light-emitting diodes) as the plurality of elements 61. The print data editing device may be a dedicated or general-purpose device provided separately from the printing device 1 and performing processes S1 to S19. The printing device 1 may change the configuration of the transport unit 5 depending on the type of print head 6. The transport unit 5 may move the print head 6 to change the relative position between the print head 6 and the print target F. The communication unit 4 may be configured to be able to communicate with the external device W wirelessly or via a wire.

[0079] figure 3 The program containing the instructions for executing the above processes may be stored in the storage device of the printing device 1 before the CPU 7 executes the corresponding program. Therefore, the program acquisition method, acquisition path, and device storing the program may each be changed as appropriate. The program executed by each printing device 1 may be received from another device via a cable or wireless communication and stored in a storage device such as a memory unit. The other device may include, for example, a PC and a server connected via a network.

[0080] The steps of the printing process are not limited to being executed by the CPU 7, and may be executed in part or in whole by other electronic devices (e.g., ASIC). The steps of the printing process may be distributed among multiple electronic devices (e.g., multiple CPUs). The order of the steps of the printing process may be changed, and steps may be omitted or added as necessary. The following modifications may be made to the printing process as appropriate.

[0081] The types and number of editing methods that the CPU 7 can execute may be changed as appropriate. For example, the CPU 7 may be capable of executing only one of the first through sixth editing methods. The CPU 7 may be capable of executing editing processing only for portions designated as characteristic portions, target portions, and / or non-target portions, and may not be capable of executing editing processing on the high-resolution image of S3 or the input image G of S4 set as the target image in S9. When multiple target portions P1 to P3 are set, the CPU 7 may apply the same editing method to each target portion, or may apply different editing methods to each target portion. The CPU 7 may execute editing processing without determining whether to execute editing processing in S11. The CPU 7 may automatically set target portions or non-target portions based on information such as a standard format of the input image G, input information, or pattern matching, and execute editing processing based on the set target portions or non-target portions. When the target part is the ruled lines G1 to G3 of the standard format, such as the target parts P1 to P3, the CPU 7 may edit the print data by reading out an edited image of the target part from the memory unit 9 and replacing it with the target part of the input image G.

[0082] The processing of S15 may be omitted as appropriate. The CPU 7 may execute the modification processing without determining whether to execute the modification processing in S14. The types and number of modification methods executable by the CPU 7 may be changed as appropriate. For example, the CPU 7 may be capable of executing only one of the first through fourth modification methods. The CPU 7 may also execute the modification processing using a method other than the first through fourth modification methods. The modification processing may also be executed using a method in which the print data of the modification candidate subdots is changed from ON to OFF at different rates in the main scanning direction X and the sub-scanning direction Y. As shown in FIG. 18, the CPU 7 may edit the print data of the print image J2 based on the image data of the input image J1 and then execute the modification processing to produce the print image J4. Alternatively, the CPU 7 may execute the modification processing to produce the print image J3 based on the image data of the input image J1 and then execute the editing processing to produce the print image J4.

[0083] The processes of S21 and S23 may be omitted as appropriate. The CPU 7 may execute the processes of S21 and S23 without determining whether to divide the line in S20. When performing divided printing, the CPU 7 may determine the drive order of the elements 61 of multiple blocks regardless of the editing method in S12. The processes of S2 to S4 may be modified as appropriate. When the threshold value of the second condition in the editing process is defined by length, the threshold value may be modified as appropriate to a value of 150 μm or less, preferably a value of 50 μm or less, and more preferably a value of 20 μm or less. As described above, the length of one dot in the sub-scanning direction Y falls within the range of approximately 20 μm to 170 μm. Therefore, if the threshold value of the second condition is set to less than 20 μm, the difference threshold can be more reliably kept to one dot or less. The above modifications may be combined as appropriate within a consistent range. [Explanation of symbols]

[0084] 1: Printing device, 4: Communication unit, 5: Conveying unit, 6: Print head, 7: CPU, 8: RAM, 9: Storage unit

Claims

1. A print data editing device for editing print data used in a printing device, comprising: The printing device a print head having a plurality of elements arranged in a line in the main scanning direction; a transport unit that moves the print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, a printing device that drives the plurality of elements while moving the print head relative to the printing target in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, and forms an image on the printing target for each line corresponding to the plurality of elements arranged in the main scanning direction, The print data editing device includes a control unit, The control unit an image data acquisition process for acquiring image data corresponding to the plurality of elements arranged in the main scanning direction; an editing process that edits the print data corresponding to the image data, the editing process editing the print data based on the image data, wherein when a plurality of dots constituting an input image represented by the image data and a plurality of dots constituting a print image printed in accordance with the print data are compared in units of columns of dots that are continuously lined up in the sub-scanning direction in a portion between an upstream end on the upstream side in the sub-scanning direction and a downstream end on the downstream side in the sub-scanning direction and have a smaller number of dots than all of the dots lined up in the sub-scanning direction, the image included in the column of the print image has a maximum degree of match when the image represented by the column of the input image is positioned at the same position as the image represented by the column of the input image or is shifted a predetermined amount in the sub-scanning direction, the maximum value among the plurality of absolute values ​​of the plurality of predetermined amounts of the plurality of columns is one dot or more, the absolute value of the difference in the predetermined amount between any two adjacent columns in the main scanning direction is one dot or less, and the absolute value of one or more of the differences is a value less than one dot represented by sub-dots obtained by dividing the dot into a plurality in the sub-scanning direction; is executable, the degree of coincidence indicates the degree of coincidence between ON / OFF of the subdots, A print data editing device characterized in that the print data is data in which the start timing of the ON / OFF cycle of each of the plurality of elements corresponding to one dot is set to an equal cycle for each sub-dot of the plurality of columns by equally dividing the ON / OFF cycle of each of the plurality of elements corresponding to one dot.

2. A print data editing device for editing print data used in a printing device, comprising: The printing device a print head having a plurality of elements arranged in a line in the main scanning direction; a transport unit that moves the print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, a printing device that drives the plurality of elements while moving the print head relative to the printing target in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, and forms an image on the printing target for each line corresponding to the plurality of elements arranged in the main scanning direction, The print data editing device includes a control unit, The control unit an image data acquisition process for acquiring image data corresponding to the plurality of elements arranged in the main scanning direction; an editing process that edits the print data corresponding to the image data, the editing process editing the print data based on the image data, wherein when a plurality of dots constituting an input image represented by the image data and a plurality of dots constituting a print image printed in accordance with the print data are compared in units of columns of dots that are successively arranged in the sub-scanning direction in a portion between an upstream end on the upstream side and a downstream end on the downstream side in the sub-scanning direction and have a smaller number of dots than all of the dots arranged in the sub-scanning direction, the image included in the column of the print image has a maximum degree of match when the image represented by the column of the input image is positioned at the same position as the image represented by the column of the input image or is shifted by a predetermined amount in the sub-scanning direction, and the maximum value of the plurality of absolute values ​​of the plurality of predetermined amounts for the plurality of columns is 1 dot or more, and the absolute value of the difference in the predetermined amounts between any two adjacent columns in the main scanning direction is 150 μm or less; is executable, The control unit executes the editing process when there is a line in the image data where the peak current required by the print head is greater than a threshold value relative to the maximum current that can be output by the power supply.

3. The control unit executes the editing process when there is a line in the image data where the peak current required by the print head is greater than a threshold value relative to the maximum current that can be output by the power supply.

4. 4. The print data editing device according to claim 1, wherein, when a specific pattern is included in the input image, the editing process is not executed on the specific pattern.

5. 5. The print data editing device according to claim 1, wherein the control unit, in the editing process, edits the print data that satisfies the condition when comparing the plurality of dots that constitute the input image of a predetermined area with the plurality of dots that constitute the print image corresponding to the predetermined area in units of columns of dots that are lined up consecutively in the sub-scanning direction.

6. 5. The print data editing device according to claim 1, wherein the control unit, in the editing process, edits the print data that satisfies the condition when comparing the plurality of dots that constitute the input image in an area excluding a predetermined area with the plurality of dots that constitute the print image corresponding to the area excluding the predetermined area in units of columns of multiple dots lined up consecutively in the sub-scanning direction.

7. a communication unit that acquires the image data from an external device; A printing data editing device as described in any one of claims 1 to 6, characterized in that, in the image data acquisition process, the control unit acquires the image data generated by the external device and having a resolution higher than the sub-scanning direction resolution defined by the multiple elements from the external device via the communication unit.

8. The printing data editing device according to any one of claims 1 to 7, wherein the control unit is further capable of performing a high-resolution process on the image data by dividing one of the lines in the sub-scanning direction to increase the resolution in the sub-scanning direction.

9. the print data editing device is the printing device including the print head and the transport unit, The control unit 3. The print data editing device according to claim 1, further comprising: dividing the plurality of elements into N blocks (N is an integer of 2 or more) so as to suppress the peak current of the print head required when printing one line based on the print data to be equal to or less than the maximum current that can be supplied from a power source to the print head; and driving each of the N blocks in sequence at different timings, thereby executing a divided printing process that prints one line extending in the main scanning direction of the print data.

10. The control unit In the editing process, the print data is edited so that the difference in the predetermined amount between any two of the columns adjacent to each other in the main scanning direction increases from one side to the other side in the main scanning direction toward the upstream side in the sub-scanning direction; 10. The print data editing device according to claim 9, wherein, in the divided print process, each of the N blocks is driven at the timings different from each other in the order from the one side to the other side in the main scanning direction.

11. The control unit 8. A print data editing device as described in any one of claims 1 to 7, wherein the dot defined by each of the plurality of elements is divided into M units (M is an integer of 2 or greater) in the sub-scanning direction, each of the printing units being defined as a sub-dot, the plurality of sub-dots arranged in the main scanning direction being defined as a sub-line, the sub-dots for which the print data is ON being defined as a printing portion, and the sub-dots for which the print data is OFF or portions outside the printing area being defined as a non-printing portion, further performing a change process to change the image data or print data of at least one or more of the sub-dots from ON to OFF in all of the sub-lines in at least one of the lines in the printing portion.

12. A print data editing device as described in any one of claims 1 to 11, characterized in that, in the editing process, the control unit divides the input image into a plurality of partial images in units of columns, and edits the print data by sliding each of the divided partial images in the sub-scanning direction by the predetermined amount corresponding to the partial image.

13. 11. The print data editing device according to claim 1, wherein the control unit edits the print data by applying a rotation process to the input image in the editing process.

14. The control unit 12. A print data editing device as described in any one of claims 1 to 11, characterized in that, in the editing process, the print data is edited so that when the predetermined amount when sliding toward the upstream side in the sub-scanning direction is a negative value and the predetermined amount when sliding toward the downstream side in the sub-scanning direction is a positive value, the predetermined amount in the main scanning direction is a value that increases in a direction that is approximately 90 degrees clockwise from the downstream side in the sub-scanning direction.

15. The control unit 12. A print data editing device as described in any one of claims 1 to 11, characterized in that, in the editing process, when the predetermined amount when sliding toward the upstream side in the sub-scanning direction is a negative value and the predetermined amount when sliding toward the downstream side in the sub-scanning direction is a positive value, the predetermined amount in the main scanning direction is a value that becomes smaller in a direction 90 degrees clockwise from the downstream side in the sub-scanning direction.

16. 14. The print data editing device according to claim 1, wherein the control unit edits the print data in the editing process so that the absolute value of the predetermined amount in the central portion in the main scanning direction is minimum.

17. 15. The print data editing device according to claim 1, wherein the control unit edits the print data in which there are two or more extreme values ​​of the predetermined amount in the main scanning direction in the editing process.

18. 15. The print data editing device according to claim 1, wherein the control unit edits the print data in which the predetermined amount in the main scanning direction has one extreme value in the editing process.

19. the print data editing device is the printing device including the print head and the transport unit, The control unit 18. The print data editing device according to claim 1, further comprising a printing process for printing based on the print data by dividing a printing cycle of one of the lines into a plurality of sub-printing cycles, each of which has the same length as the print cycle and includes a sub-printing cycle having the same start time as the print cycle, and driving the plurality of elements for each of the plurality of sub-printing cycles.

20. A print data editing method executed by a control unit of a print data editing device that edits print data used in a printing device, comprising: The printing device a print head having a plurality of elements arranged in a line in the main scanning direction; a transport unit that moves the print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, a printing device that drives the plurality of elements while moving the print head relative to the printing target in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, and forms an image on the printing target for each line corresponding to the plurality of elements arranged in the main scanning direction, The print data editing device an image data acquisition process for acquiring image data corresponding to the plurality of elements arranged in the main scanning direction; an editing process for editing the print data corresponding to the image data, the editing process satisfying a first condition that, when a plurality of dots constituting an input image represented by the image data and a plurality of dots constituting a print image printed in accordance with the print data are compared on the basis of the image data in units of columns of dots that are continuously arranged in the sub-scanning direction in a portion between an upstream end on the upstream side in the sub-scanning direction and a downstream end on the downstream side in the sub-scanning direction and have a smaller number of dots than all of the dots arranged in the sub-scanning direction, the image included in the column of the print image has a maximum degree of match when the image represented by the column of the input image is positioned at the same position as the image represented by the column of the input image or is shifted a predetermined amount in the sub-scanning direction, and the maximum value of the plurality of absolute values ​​of the plurality of predetermined amounts for the plurality of columns is one dot or more; and a second condition that the absolute value of the difference in the predetermined amount between any two adjacent columns in the main scanning direction is one dot or less, and one or more absolute values ​​of the difference are values ​​less than one dot and are represented by sub-dots obtained by dividing the dot into a plurality in the sub-scanning direction. Equipped with the degree of coincidence indicates the degree of coincidence between ON / OFF of the subdots, A print data editing method characterized in that the print data is data in which the start timing of the ON / OFF cycle of each of the plurality of elements corresponding to one dot is set to an equal cycle for each sub-dot of the plurality of columns by equally dividing the ON / OFF cycle of each of the plurality of elements corresponding to one dot.

21. A print data editing program executed by a control unit of a print data editing device that edits print data used in a printing device, comprising: The printing device a print head having a plurality of elements arranged in a line in the main scanning direction; a transport unit that moves the print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, a printing device that drives the plurality of elements while moving the print head relative to the printing target in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, and forms an image on the printing target for each line corresponding to the plurality of elements arranged in the main scanning direction, The print data editing program an image data acquisition process for acquiring image data corresponding to the plurality of elements arranged in the main scanning direction; an editing process for editing the print data corresponding to the image data, the editing process satisfying a first condition that, when a plurality of dots constituting an input image represented by the image data and a plurality of dots constituting a print image printed in accordance with the print data are compared on the basis of the image data in units of columns of dots that are continuously arranged in the sub-scanning direction in a portion between an upstream end on the upstream side in the sub-scanning direction and a downstream end on the downstream side in the sub-scanning direction and have a smaller number of dots than all of the dots arranged in the sub-scanning direction, the image included in the column of the print image has a maximum degree of match when the image represented by the column of the input image is positioned at the same position as the image represented by the column of the input image or is shifted a predetermined amount in the sub-scanning direction, and the maximum value of the plurality of absolute values ​​of the plurality of predetermined amounts for the plurality of columns is one dot or more; and a second condition that the absolute value of the difference in the predetermined amount between any two adjacent columns in the main scanning direction is one dot or less, and one or more absolute values ​​of the difference are values ​​less than one dot and are represented by sub-dots obtained by dividing the dot into a plurality in the sub-scanning direction. and an instruction to cause the control unit to execute the the degree of coincidence indicates the degree of coincidence between ON / OFF of the subdots, A print data editing program characterized in that the print data is data in which the start timing of the ON / OFF cycle of each of the plurality of elements corresponding to one dot is set to an equal cycle for each sub-dot of the plurality of columns by equally dividing the ON / OFF cycle of each of the plurality of elements corresponding to one dot.

22. A print data editing device for editing print data used in a printing device, comprising: The printing device a print head having a plurality of elements arranged in a line in the main scanning direction; a transport unit that moves the print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, a printing device that drives the plurality of elements while moving the print head relative to the printing target in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, and forms an image on the printing target for each line corresponding to the plurality of elements arranged in the main scanning direction, The print data editing device includes a control unit, The control unit an image data acquisition process for acquiring image data corresponding to the plurality of elements arranged in the main scanning direction; an editing process that edits the print data corresponding to the image data, the editing process editing the print data based on the image data, wherein when a plurality of dots constituting an input image represented by the image data and a plurality of dots constituting a print image printed in accordance with the print data are compared in units of columns of dots that are successively arranged in the sub-scanning direction in a portion between an upstream end on the upstream side and a downstream end on the downstream side in the sub-scanning direction and have a smaller number of dots than all of the dots arranged in the sub-scanning direction, the image included in the column of the print image has a maximum degree of match when the image represented by the column of the input image is positioned at the same position as the image represented by the column of the input image or is shifted by a predetermined amount in the sub-scanning direction, and the maximum value of the plurality of absolute values ​​of the plurality of predetermined amounts for the plurality of columns is 1 dot or more, and the absolute value of the difference in the predetermined amounts between any two adjacent columns in the main scanning direction is 150 μm or less; is executable, the print data editing device is the printing device including the print head and the transport unit, The control unit a print data editing device which further executes a divided printing process for printing one line extending in the main scanning direction of the print data by dividing the plurality of elements into N blocks (N is an integer of 2 or more) and driving each of the N blocks sequentially at different timings so as to keep the peak current of the print head required when printing one line based on the print data below the maximum current that can be supplied to the print head from a power source.

23. A print data editing device for editing print data used in a printing device, comprising: The printing device a print head having a plurality of elements arranged in a line in the main scanning direction; a transport unit that moves the print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, a printing device that drives the plurality of elements while moving the print head relative to the printing target in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, and forms an image on the printing target for each line corresponding to the plurality of elements arranged in the main scanning direction, The print data editing device includes a control unit, The control unit an image data acquisition process for acquiring image data corresponding to the plurality of elements arranged in the main scanning direction; an editing process that edits the print data corresponding to the image data, the editing process editing the print data based on the image data, wherein when a plurality of dots constituting an input image represented by the image data and a plurality of dots constituting a print image printed in accordance with the print data are compared in units of columns of dots that are successively arranged in the sub-scanning direction in a portion between an upstream end on the upstream side and a downstream end on the downstream side in the sub-scanning direction and have a smaller number of dots than all of the dots arranged in the sub-scanning direction, the image included in the column of the print image has a maximum degree of match when the image represented by the column of the input image is positioned at the same position as the image represented by the column of the input image or is shifted by a predetermined amount in the sub-scanning direction, and the maximum value of the plurality of absolute values ​​of the plurality of predetermined amounts for the plurality of columns is 1 dot or more, and the absolute value of the difference in the predetermined amounts between any two adjacent columns in the main scanning direction is 150 μm or less; is executable, The print data editing device, wherein the control unit edits the print data by applying a rotation process to the input image in the editing process.

24. A print data editing device for editing print data used in a printing device, comprising: The printing device a print head having a plurality of elements arranged in a line in the main scanning direction; a transport unit that moves the print object and the print head relatively in a sub-scanning direction that intersects with the main scanning direction, a printing device that drives the plurality of elements while moving the print head relative to the printing target in the sub-scanning direction in accordance with print data that includes data instructing ON / OFF of each of the plurality of elements, and forms an image on the printing target for each line corresponding to the plurality of elements arranged in the main scanning direction, The print data editing device includes a control unit, The control unit an image data acquisition process for acquiring image data corresponding to the plurality of elements arranged in the main scanning direction; an editing process that edits the print data corresponding to the image data, the editing process editing the print data based on the image data, wherein when a plurality of dots constituting an input image represented by the image data and a plurality of dots constituting a print image printed in accordance with the print data are compared in units of columns of dots that are successively arranged in the sub-scanning direction in a portion between an upstream end on the upstream side and a downstream end on the downstream side in the sub-scanning direction and have a smaller number of dots than all of the dots arranged in the sub-scanning direction, the image included in the column of the print image has a maximum degree of match when the image represented by the column of the input image is positioned at the same position as the image represented by the column of the input image or is shifted by a predetermined amount in the sub-scanning direction, and the maximum value of the plurality of absolute values ​​of the plurality of predetermined amounts for the plurality of columns is 1 dot or more, and the absolute value of the difference in the predetermined amounts between any two adjacent columns in the main scanning direction is 150 μm or less; is executable, the print data editing device is the printing device including the print head and the transport unit, The control unit a print data editing device that further executes a print process in which printing based on the print data is performed by dividing the print cycle of one of the lines into a plurality of sub-print cycles having the same length as each other, including a sub-print cycle having the same start time as the print cycle, and driving the plurality of elements for each of the plurality of sub-print cycles.

Citation Information

Patent Citations

  • Thermal transfer recording apparatus

    JP2000198229A

  • Method for recording image

    JP2003039720A

  • Apparatus for processing image data for printing, thermal printer, computer and program

    JP2013226660A

  • Thermal printer, control method, and program

    JP2016168794A

  • Printer, printing system, printing control method, and program

    JP2018161839A