1. Technical Field
The present invention relates to a printing data generating apparatus that generates printing data for causing a printer to perform printing.
2. Related Art
Ink jet printers perform printing by repeatedly performing a main scanning operation and a sub scanning operation. In a main scanning operation, while moving a print head having a plurality of nozzles in a predetermined direction, ink is ejected from each of the nozzles. Thus, a plurality of lines are printed on a printing medium. After completion of printing of the plurality of lines, a sub scanning operation is performed in which the print head is moved in a direction perpendicular to the above-mentioned predetermined direction. Further, in order to achieve printing at high resolution by printing dots at intervals less than the intervals at which the nozzles are arranged, there has been developed a technique for printing a line in the N-th main scanning operation between lines printed in the (N−1)-th or earlier main scanning operations (see, for example, JP-A-2002-292908).
With the technique disclosed in JP-A-2002-292908, however, it is impossible to prevent a misalignment between the position of a line printed at an earlier timing and the position of a line printed at a later timing. That is, in the ink jet printers, once ink has been ejected onto a printing medium, the ink penetrates into the printing medium, so that the printing medium becomes more likely to expand. In the case of performing a plurality of main scanning operations to complete printing of a plurality of lines, a large amount of ink has already been penetrated into a printing medium when the last main scanning operation is performed. Accordingly, when the last main scanning operation is performed, the printing medium is expanded by a greater degree than when the earlier main scanning operations were performed. This results in a misalignment between the position of the lines in the earlier main scanning operations and the position of the lines in the last main scanning operation. Such misalignment is more pronounced when a greater number of nozzles are provided in a print head. Accordingly, in the case of printers having a print head of such a size that printing is possible from one edge to another edge of a printing medium, such misalignment is significantly pronounced.
An advantage of some aspects of the invention is that it provides a technique that can reduce misalignment of line positions due to a difference in the timing of performing main scanning operations.
According to an aspect of the invention, there is provided a printing data generating apparatus that identifies, among groups each including pixels that are to be printed in the same main scanning operation, the group with the highest ink usage based on image data, and generates printing data such that the group with the highest ink usage is printed in an Nmax-th main scanning operation. That is, in a printing system configured to form an image by printing a line in an N-th main scanning operation between lines printed in (N−1)-th or earlier main scanning operations and print a print unit formed with a plurality of lines by performing Nmax main scanning operations, printing data are generated in which the printing order is changed such that the ink usage in each main scanning operation prior to the last (Nmax-th) main scanning operation is relatively less than the ink usage in the last main scanning operation.
If a printer executes, based on the printing data generated with the configuration as described above, a printing process for printing a line in the N-th main scanning operation between lines printed in the (N−1)-th or earlier main scanning operations and printing a print unit formed with a plurality of lines by performing Nmax main scanning operations, the ink usage in each main scanning operation prior to the Nmax-th main scanning operation is relatively less than the ink usage in the Nmax-th main scanning operation among the main scanning operations to be performed to complete printing of the plurality of lines. Accordingly, the expansion of a printing medium due to the ink used in the main scanning operations prior to the Nmax-th main scanning operation is less compared to the case in which a similar amount of ink is used in each main scanning operation. Thus, it is possible to reduce misalignment of line positions due to the difference in the timing of performing the main scanning operations.
A pixel classifying unit may classify pixels on the plurality of lines forming the print unit into groups based on the image data such that each of the groups includes the pixels that are to be printed in the same main scanning operation. That is, in order to evaluate the ink usage in each main scanning operation in the case where a plurality of pixels are printed in a single main scanning operation, the pixels on a plurality of lines may be classified into groups such that each group includes the pixels that are to be printed in the same main scanning operation.
More specifically, the pixels to be printed with ink in the printer are identified in accordance with the pixels represented by the image data. The pixels to be printed with ink in the printer are arranged on a two-dimensional plane, and the pixels arranged in a predetermined direction form a line to be printed by main scanning. For example, in the case of a printer that can eject ink from a print head each time the print head and the printing medium are moved relative to each other by a unit moving distance in a predetermined direction, this movement in the predetermined direction is referred to as main scanning. The pixels arranged in the direction parallel to the predetermined direction to which the ink is ejected in the main scanning form a line to be printed by the main scanning. Further, an operation of moving the print head and the printing medium relative to each other in the direction perpendicular to the predetermined direction is referred to as sub scanning.
Further, in a configuration that forms an image by printing a line in the N-th main scanning operation between lines printed in the (N−1)-th or earlier main scanning operations and prints a print unit formed with a plurality of lines by performing Nmax main scanning operations, a line is printed between the lines that have already been printed to complete printing of the print unit. In this case, main scanning operations are performed in a predetermined order to complete printing of the print unit, and hence the order in which the pixels on the respective lines are printed by the printer is identified based on the order of the main scanning operations. When the order in which the pixels are printed is identified, it becomes possible to classify the pixels on the plurality of lines forming the print unit into groups such that each group includes the pixels that are to be printed in the same main scanning operation.
For instance, in the case of printing a single line with a single main scanning operation, pixels on the line are classified into the same group. In the case of printing a single line with a plurality of main scanning operations, pixels to be printed in different main scanning operations are classified into different groups. Further, in the case where a print head includes a plurality of nozzles and ejects ink from the plurality of nozzles in a single main scanning operation, pixels to be printed by the plurality of nozzles in the single main scanning operation are classified into the same group. The pixels subject to classification may be identified based on the image data. For example, in the case where data indicative of the ink usage are generated for each pixel based on the image data, classifying the pixels is equivalent to classifying such pieces of data into groups.
A group identifying unit may identify the group with the highest ink usage for printing the pixels belonging to the group based on the image data. For example, the group identifying unit may be configured to identify the ink usage of each pixel based on the image data, calculate the sum of the ink usage (total ink usage) of all the pixels of each group based on the ink usage of each pixel, and compare the sums of the respective groups.
A printing data generating unit may generate printing data for causing a printer to print an image represented by the image data by printing the pixels of the group with the highest ink usage in the Nmax-th main scanning operation. That is, since the pixels to be printed in each main scanning operation are identified in accordance with a printing process by the printer, the printing data may be generated by adjusting the printing order such that the pixels of the group with the highest ink usage are printed in the Nmax-th main scanning operation.
Further, in this case, the total ink usage of the pixels to be printed in at least the Nmax-th main scanning operation may be greater than the total ink usage of the pixels to be printed in each of the (Nmax−1)-th and earlier main scanning operations. With respect to the (Nmax−1)-th and earlier main scanning operations, the printing data may be configured such that the total ink usage of the pixels to be printed in a single main scanning operation increases linearly or nonlinearly with the increase in the number of times the main scanning operation is performed.
Further, the printing data may be configured to cause the printer to print the pixels of the group with the highest ink usage in the Nmax-th main scanning operation. Accordingly, if the printing data are configured such that main scanning operations are performed in a predetermined order, the printing data may be configured such that pixels are shifted such that the pixels of the group with the highest ink usage are printed according to the order of the main scanning operations, or may be configured such that the order of the main scanning operations is changed.
It is to be noted that the printer may form an image by printing a line in the N-th main scanning operation between lines printed in the (N−1)-th or earlier main scanning operations. Typically, the printer may be configured to execute a printing process by performing a main scanning operation in a manner such that the ink can be ejected from each of a plurality of nozzles which are arranged in a print head in the sub scanning direction, and performing another main scanning operation to form a line between lines formed in the previous main scanning operations. Further, in this configuration, in the case where M nozzles are arranged in a line in the print head in the sub scanning direction and L lines are printed by performing Nmax main scanning operations, L×M lines form a print unit.
Further, the order in which the Nmax main scanning operations are performed may be configured in various ways so long as the order is determined before identifying the groups of pixels. The main scanning may be performed so as to print a plurality of adjacent lines according to the order in which the lines are arranged. Alternatively, the main scanning may be performed in an order (an order such that a line spaced apart from a printed line by one or more lines is printed) different from the order in which the lines are arranged.
Further, the order of main scanning operations and the number of pixels in the line to be printed with a single main scanning operation can be adjusted appropriately. For example, in a configuration that causes a printer to execute a printing process for printing L lines within a predetermined interval by performing L main scanning operations with use of a print head in which a plurality of nozzles are formed at the predetermined intervals, in the case where line numbers sequentially assigned to the plurality of lines in the order in which the lines are arranged are represented by (an integral multiple of L)+X (X is an integer ranging from 0 to L−1), it is preferable to classify the pixels on the plurality of lines into L groups by classifying the lines having the same value for X into the same group.
That is, in a configuration with which one line is printed with one nozzle when performing one main scanning operation, the same number of lines as the number of nozzles are printed with one main scanning operation. In the case of printing L lines within a predetermined interval by repeating such a main scanning operation L times, lines that are spaced apart by L lines are printed in the same main scanning operation. Accordingly, in the case where the line numbers are represented by (an integral multiple of L)+X, if lines having the same value for X are classified into the same group, it is possible to classify the pixels on the respective lines into groups such that each of the groups includes the pixels that are to be printed in the same main scanning operation. For example, in a configuration with which four lines are printed within a predetermined interval by performing four main scanning operations, in the case where line numbers 1, 2, 3, . . . are assigned to the lines in this order from the top to the bottom, a line with a line number 4×(an integer) (=4, 8, and so on) is classified into one group; a line with a line number 4×(an integer)+1 (=1, 5, and so on) is classified into another group; a line with a line number 4×(an integer)+2 (=2, 6, and so on) is classified into still another group; and a line with a line number 4×(an integer)+3 (=3, 7, and so on) is classified into still another group.
Further, the technique according to the above-described aspect of the invention in which, in the case of printing a print unit formed with a plurality of lines by performing Nmax main scanning operations, pixels of the group with the highest ink usage are printed in the Nmax-th main scanning operation may be implemented as a program or a method. Further, the apparatus, program, and method as described above may be embodied in various forms. For example, the apparatus, the program, and the method may be embodied as an independent apparatus, or may be embodied using shared components in a multifunctional apparatus.
The invention will be described with reference to the accompanying drawings, wherein like numbers denote like elements.
In the following, embodiments of the present invention will be described according to the order listed below.
1. Configuration of Printing Data Generating Apparatus
1-1. Configuration of Printer
1-2. Configuration of Printing Data Generating Program and Printing Control Process
2. Other Embodiments
1. Configuration of Printing Data Generating Apparatus
1-1. Configuration of Printer
Further, a plurality of nozzles are formed in the print head 41 such that ink droplets can be ejected from each of the nozzles.
The overall length of the print head 41 of the printer 40 (the length in the direction perpendicular to the direction of the transport direction of the printing medium P) according to this embodiment is greater than the overall width of the printing medium P (the width in the direction perpendicular to the direction of the transport direction of the printing medium P) as shown in
In the manner as described above, the printer 40 according to this embodiment can eject ink onto the printing medium P each time the print head 41 is moved by a unit distance in the main scanning direction, and can print a plurality of pixels in the main scanning direction. Further, the plurality of nozzles 41a are arranged in the print head 41, and the print head 41 can move in the sub scanning direction. Therefore, the printer 40 can print a plurality of pixels in the sub scanning direction as well. In this embodiment, a plurality of pixels arranged in the main scanning direction on the printing medium P is called a line. Similarly, in image data (described below) representing an image to be printed on the printing medium P, a plurality of pixels arranged in the same direction as the direction of the line on the printing medium P is called a line.
In the example shown in
1-2. Configuration of Printing Data Generating Program and Printing Control Process
Next, a description is given of the configuration of the printing data generating program 21 that controls the above-described printer 40 and a process executed by the printing data generating program 21. The printing data generating program 21 includes an image data acquiring section 21a, a color conversion processing section 21b, a halftone processing section 21c, a pixel classifying section 21d, a group identifying section 21e, and a printing data generating section 21f. A printing control process executed by the printing data generating program 21 starts when a user specifies an image to be printed with use of a user interface (not shown) to issue a printing execution instruction.
In the printing control process, the control section 20 acquires image data by causing the image data acquiring section 21a to operate, and adjusts an image according to a print resolution (Step S100). More specifically, the control section 20 acquires image data representing an image to be subject to the printing execution instruction by causing the image data acquiring section 21a to operate, and adjusts the number of pixels of the image data so as to print the image at a default resolution. In this embodiment, the number of pixels is adjusted so as to obtain a resolution of four times the pitch of the nozzles 41a at least in the sub scanning direction.
Next, the color conversion processing section 21b causes the control section 20 to execute a color conversion process for converting an input color system, which is a color system of the image data, into an output color system corresponding to the colors of the inks that can be ejected by the printer 40 (Step S105). More specifically, the control section 20 refers to a previously prepared conversion table (not shown) to perform an interpolation operation and so forth, and converts the color system of each pixel of the image data, the number of pixels of which was adjusted in Step S100, from the sRGB color system into the CMYK color system. Next, the control section 20 executes a halftone process by causing the halftone processing section 21c to operate (Step S110). More specifically, the control section 20 generates, for each pixel, data indicative of whether to eject an ink droplet based on the CMYK tone values obtained after the above-described color conversion. The printer 40 according to this embodiment can eject ink droplets of different sizes from the respective nozzles. Therefore, in Step S110, data indicative of whether to eject an ink droplet and also indicative of the ink droplet size are generated for each pixel. It is to be noted that since the data indicative of whether to eject an ink droplet and also indicative of the ink droplet size indicate whether to perform recording with ink at each pixel and also indicate the ink droplet size, the data indicate the ink usage of each pixel.
Then, the pixel classifying section 21d causes the control section 20 to execute a process for classifying pixels on the lines to be formed on the printing medium into groups (Step S115). In this embodiment, pixels on lines to be printed in the same main scanning operation are identified based on the order of printing by the print head 41, and the identified pixels are classified into the same group. More specifically, in this embodiment, as shown in
Thus, the control section 20 assigns a line number “1” to a line at the top in the data, which are obtained after the halftone processing, indicative of whether to eject an ink droplet, and assigns a line number to each of the subsequent lines such that the line number increases downward in the sub scanning direction. After that, the control section 20 extracts the line numbers which have the same value for X in the case where the line numbers are represented by (an integral multiple of 4)+X (X ranging from 0 to 3). Then, the control section 20 classifies the pixels on the lines indicated by the extracted line numbers into the same group. For example, in the example shown in
Next, the group identifying section 21e causes the control section 20 to execute a process for identifying the group with the highest ink usage required for printing the pixels belonging to the group (Step S120). More specifically, the control section 20 refers to ink amount data 30a indicative of the amount of ink to be ejected from the printer 40 based on each datum indicative of the ink droplet size, and identifies the ink usage required for printing each pixel. Then, the control section 20 identifies the ink usage of each pixel classified into the groups in Step S115, and calculates, with respect to each group, the sum of the ink usage of all the pixels belonging to the group. Further, the control section 20 identifies the group with the highest ink usage based on the ink usage of each group identified in the manner described above.
For example, in the case where the ink droplet size can be selected from one of a large dot, a medium dot, and a small dot, and the ink amount data 30a indicates that the ink usage for a large dot is 15 ng; the ink usage for a medium dot is 10 ng; and the ink usage for a small dot is 5 ng, if data indicative of the ink droplet size corresponding to a certain pixel indicates a large dot, the ink usage for the pixel is 15 ng. Further, if data indicative of the ink droplet size corresponding to a certain pixel indicates none of a large dot, a medium dot, and a small dot, the ink usage for the pixel is 0 ng. Then, the sum of the ink usage of all the pixels is identified for each group, and the group with the highest ink usage is identified by comparing the sums of the respective groups.
Next, the printing data generating section 21f causes the control section 20 to execute a process for generating printing data (Step S125). More specifically, the control section 20 generates printing data for causing the printer 40 to print an image represented by the image data by printing the pixels belonging to the group with the highest ink usage in the fourth main scanning operation. In this embodiment, lines are shifted in the sub scanning direction such that the line formed with the pixels belonging to the group with the highest ink usage are printed in the fourth main scanning operation.
For example, in the case where the line numbers are represented by (an integral multiple of 4)+X (X ranging from 0 to 3), if the group with the highest ink usage is the group of X=0, the group with the highest ink usage is printed in the fourth main scanning operation without performing shifting in units of lines. Therefore, no shifting is performed. If the group with the highest ink usage is the group of X=1, the line is shifted downward by three lines in the sub scanning direction such that the group with the highest ink usage is printed in the fourth main scanning operation. If the group with the highest ink usage is the group of X=2, the line is shifted downward by two lines in the sub scanning direction such that the group with the highest ink usage is printed in the fourth main scanning operation. If the group with the highest ink usage is the group of X=3, the line is shifted downward by one line in the sub scanning direction such that the group with the highest ink usage is printed in the fourth main scanning operation. The direction in which the line is shifted is not limited to the downward direction, and may be the upward direction or both the upward and downward directions.
When the data indicative of the ink droplet size of each pixel are shifted in the manner described above, the control section 20 rearranges the order of the pixels such that the pixels to be printed with ink in each main scanning operation are arranged earlier. Then, the control section 20 generates printing data such that the data of each pixel is transmitted to the printer 40 in the rearranged order, and then transmits the printing data to the printer 40. In response, the printer 40 controls the amount of ink to be ejected from the print head 41 such that the ink usage in the fourth main scanning operation is greater than the ink usage in each of the first through third main scanning operations while performing main scanning operations in the order shown in
With the process described above, expansion of the printing medium P due to the increased penetration of the ink into the printing medium P in accordance with the delay of the timing of performing main scanning operation (e.g., from the first to the fourth main scanning operation) is suppressed, and it is therefore possible to reduce the misalignment of the line positions due to the difference in the timing of performing main scanning operations.
2. Other Embodiments
The above-described embodiment is only an example for carrying out the invention. In the case of printing a print unit formed with a plurality of lines by performing Nmax main scanning operations, as long as the pixels belonging to the group with the highest ink usage can be printed in the Nmax-th main scanning operation, various other embodiments are possible. For example, the pixels of the group with the highest ink usage may be printed in the Nmax-th main scanning operation by changing the order of main scanning operations, instead of shifting the data indicating the ink droplet size in units of lines.
More specifically, in
Further, in the embodiment described above, the printer 40 includes the print head 41 having a length greater than the overall width of the printing medium P in the sub scanning direction. In an alternative embodiment, a printer including a print head having a length less than the overall width of the printing medium P may be configured to print pixels belonging to the group with the highest ink usage in the Nmax-th main scanning operation. That is, a printer that transports a printing medium P in the sub scanning direction may be configured to print pixels belonging to the group with the highest ink usage in the Nmax-th main scanning operation. In this printer, all the pixels to be printed on the printing medium P may be subject to grouping, or some of the pixels may be subject to grouping. In the latter case, grouping is repeatedly performed to print all the pixels. Thus, when a space corresponding to a predetermined number of lines is formed on the printing medium P, this space may be recognized as a delimiter of the print unit. Then, grouping may be performed for each set of pixels that are present between the delimiters.
Number | Date | Country | Kind |
---|---|---|---|
2011-054021 | Mar 2011 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7032987 | Bhattacharjya et al. | Apr 2006 | B2 |
7570402 | Yoshida | Aug 2009 | B2 |
7787147 | Yoshida et al. | Aug 2010 | B2 |
20070176965 | Arazaki | Aug 2007 | A1 |
Number | Date | Country |
---|---|---|
2002-292908 | Oct 2002 | JP |
2007-106066 | Apr 2007 | JP |
2007-230213 | Sep 2007 | JP |
2007-230218 | Sep 2007 | JP |
Number | Date | Country | |
---|---|---|---|
20120229864 A1 | Sep 2012 | US |