Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, one object of the present invention is to provide a method for adjusting the jet printing density of an inkjet printer, which adjusts the jet printing density by randomly extracting the number of pixel points corresponding to jet printing data, so as to reduce the ink cost and fully meet the requirements of users.
A second object of the invention is to propose a computer-readable storage medium.
The third purpose of the invention is to provide an ink-jet printer.
The fourth purpose of the invention is to provide a spray printing concentration adjusting device of the ink-jet printer.
In order to achieve the above object, an embodiment of the first aspect of the present invention provides a method for adjusting a printing density of an inkjet printing machine, including the following steps: acquiring jet printing data; converting the jet printing data into a binary data stream represented by 0 or 1, wherein 1 in the binary data stream represents a pixel point needing jet printing; judging whether the current required jet printing concentration is 100%; and if not, extracting the pixel points in the binary data stream according to the current required jet printing concentration so as to adjust the jet printing concentration.
According to the jet printing concentration adjusting method of the ink jet printing machine, when the ink jet printing machine performs jet printing, jet printing data is obtained firstly, then the jet printing data is converted into the binary data stream represented by 0 or 1, and 1 in the binary data stream represents one pixel point needing jet printing, so that when the current required jet printing concentration is not 100%, the pixel point in the binary data stream is extracted according to the current required jet printing concentration, the jet printing concentration becomes light, the jet printing concentration is adjusted randomly, the ink cost can be reduced, and the requirements of users are met fully.
In addition, the method for adjusting the jet printing density of the inkjet printing machine provided by the embodiment of the invention may further have the following additional technical features:
optionally, extracting the pixel points in the binary data stream according to the current required jet printing density to adjust the jet printing density, including: calculating the total number of pixel points of the jet printing data and the number of pixel points of each row of data, and calculating the total number of pixel points to be extracted according to the current required jet printing concentration and the total number of pixel points of the jet printing data; calculating the pixel number of each row of data to be extracted according to the pixel number of each row of data, the total number of the pixel points of the jet printing data and the total number of the pixel points to be extracted; calculating the number of the pixels to be extracted within the width of each continuous data 1 in each row of data according to the number of the pixels in each row of data, the number of the pixels to be extracted in each row of data and the width of each continuous data 1 in each row of data; calculating the average width according to the number of pixels needing to be extracted within the width of each continuous 1 of each piece of data in each row of data and the width of each continuous 1 of each piece of data, and extracting pixels of each continuous 1 of data according to the average width until the number of the extracted pixels reaches the number of pixels needing to be extracted in each row of data; and setting the data corresponding to the extracted pixel points as 0.
Optionally, the total number of the pixel points to be extracted is calculated according to the following formula:
and the Deldot is Dot (100-N)/100, wherein Dot is the total number of the pixels of the jet printing data, N is the current required jet printing concentration, and Deldot is the total number of the pixels required to be extracted.
Optionally, the number of the pixel points to be extracted in each row of data is calculated according to the following formula:
DelDoti=TolDoti*DelDot/Dot-TolDelDoti-1wherein, TolDotiTolDeldot to accumulate the number of pixels from the first line to the ith linei-1For already extracted number of pixel points, DeldotiAnd the Dot number of the pixel points to be extracted for each row of data is the total number of the pixel points of the jet printing data, and the Deldot is the total number of the pixel points to be extracted.
Optionally, the number of the pixel points to be extracted within the width of each continuous 1 segment of data in each row of data is calculated according to the following formula:
DelSecDotj=TolWj*DelDoti/Doti-TolSecDelj-1wherein, DelSecDotjThe number of pixel points to be extracted in the width of each continuous 1 of data in each row of data, TolWjAdding the width of the first segment of data continuously being 1 to the j-th segment of data continuously being1 sum of widths, DeldotiThe number of pixel points, Dot, to be extracted for each line of dataiFor the number of pixel points of each line of data, TolSecDelj-1The number of pixel points that have been extracted in the line data.
Alternatively,
the average width is obtained by rounding calculation according to the following formula:
Stpj=[Wj+(DelSecDotj-X)-1]/(DelSecDotj-X),
wherein, StpjIs the average width, WjFor the width of each segment of data being 1 consecutively, DelSecDotjAnd the number of pixel points to be extracted in the width of each continuous 1 of data in each row of data is determined, and X is the number of pixel points extracted in the current continuous width.
In order to achieve the above object, a second aspect of the present invention provides a computer-readable storage medium, on which a print density adjusting program of an inkjet printer is stored, where the print density adjusting program of the inkjet printer is executed by a processor to implement the print density adjusting method of the inkjet printer.
According to the computer-readable storage medium of the embodiment of the invention, the spray printing concentration adjusting program of the inkjet printer is stored, so that when the spray printing concentration adjusting program of the inkjet printer is executed by the processor, the spray printing concentration adjusting method of the inkjet printer is realized, the random adjustment of the spray printing concentration is realized, the ink cost is reduced, and the requirements of users can be fully met.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides an inkjet printing machine, including an ink cartridge and a nozzle disposed corresponding to the ink cartridge, where the inkjet printing machine further includes a memory, a processor, and a print density adjusting program of the inkjet printing machine, where the print density adjusting program is stored in the memory and is executable on the processor, and when the processor executes the print density adjusting program, the method for adjusting the print density of the inkjet printing machine is implemented.
According to the ink jet printer provided by the embodiment of the invention, the processor executes the jet printing concentration adjusting method to realize the arbitrary adjustment of the jet printing concentration, so that the ink cost can be reduced, and the requirements of users can be fully met.
In order to achieve the above object, a device for adjusting the printing density of an inkjet printer according to a fourth aspect of the present invention includes: the acquisition module is used for acquiring jet printing data; the converting module is used for converting the jet printing data into a binary data stream represented by 0 or 1, wherein 1 in the binary data stream represents a pixel point needing jet printing; the judging module is used for judging whether the current required jet printing concentration is 100%; and the adjusting module is used for extracting the pixel points in the binary data stream according to the current required jet printing concentration to adjust the jet printing concentration when the current required jet printing concentration is not 100%.
According to the jet printing concentration adjusting device of the ink jet printing machine, when the ink jet printing machine performs jet printing, the jet printing data is obtained through the obtaining module, the jet printing data is converted into the binary data stream represented by 0 or 1 through the converting module, and 1 in the binary data stream represents a pixel point needing to be jet printed, so that when the judging module judges that the current required jet printing concentration is not 100%, the adjusting module extracts the pixel point in the binary data stream according to the current required jet printing concentration, the jet printing concentration becomes light, the arbitrary adjustment of the jet printing concentration is realized, the ink cost can be reduced, and the requirements of users can be fully met.
In addition, the device for adjusting the jet printing density of the inkjet printing machine according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the adjusting module is further configured to calculate a total number of pixels of the jet printing data and a number of pixels of each line of data, and calculate a total number of pixels to be extracted according to the current required jet printing concentration and the total number of pixels of the jet printing data; calculating the pixel number of each row of data to be extracted according to the pixel number of each row of data, the total number of the pixel points of the jet printing data and the total number of the pixel points to be extracted; calculating the number of the pixels to be extracted within the width of each continuous data 1 in each row of data according to the number of the pixels in each row of data, the number of the pixels to be extracted in each row of data and the width of each continuous data 1 in each row of data; calculating the average width according to the number of pixels needing to be extracted within the width of each continuous 1 of each piece of data in each row of data and the width of each continuous 1 of each piece of data, and extracting pixels of each continuous 1 of data according to the average width until the number of the extracted pixels reaches the number of pixels needing to be extracted in each row of data; and setting the data corresponding to the extracted pixel points as 0.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related technology, the concentration of the jet printing ink is generally adjusted by two ways when the thermal foaming inkjet printer performs jet printing, one way is to adjust the concentration by arranging a single nozzle and a double nozzle, the single nozzle performs jet printing by using only one row of nozzles, wherein the left nozzle or the right nozzle performs jet printing by arranging 150 pixel points on 0.5 inch, the concentration of the jet printing is the normal jet printing effect, the double nozzle performs jet printing by using two rows of nozzles simultaneously, 300 pixel points are jet printed on 0.5 inch, and the concentration of the jet printing is doubled under the normal condition; the other mode is realized by saving one-half of ink or three-quarters of ink, wherein one-half of ink is saved by averagely extracting half of points from the Y axis without spraying on the basis of the original spray printing mode so as to achieve the effect of reducing the concentration by half, and the other one-quarter of ink is saved by respectively extracting half of points from the X axis and the Y axis without spraying on the basis of the original spray printing mode so as to achieve the effect of spraying one-quarter of the original concentration. However, both of these techniques can only set a fixed concentration effect, and cannot randomly adjust the concentration of the ink to be printed, and cannot meet different requirements of users.
Therefore, in order to make the concentration of the ink for jet printing adjustable at random so as to better meet different requirements of customers, the method for adjusting the concentration of jet printing of the ink jet printing machine provided by the embodiment of the invention realizes the adjustment of the concentration of jet printing by randomly extracting the number of pixel points corresponding to jet printing data, thereby not only reducing the cost of ink, but also fully meeting the requirements of users.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Fig. 1 is a schematic flow chart of a method for adjusting the jet printing density of an inkjet printer according to an embodiment of the invention. As shown in fig. 1, the method for adjusting the jet printing density of the inkjet printer includes the following steps:
step 101, acquiring jet printing data.
Wherein, the jet printing data is suitable for the data to be jet printed.
Step 102, converting the jet printing data into a binary data stream represented by 0 or 1, wherein 1 in the binary data stream represents a pixel point needing jet printing.
That is, the jet printing data is converted into a monochrome bitmap formed by only black and white colors, i.e. a binary data stream represented by 1 or 0 number, wherein 1 represents a pixel point needing jet printing, and 0 represents a pixel point not needing jet printing.
And 103, judging whether the current required jet printing concentration is 100%.
And 104, if not, extracting pixel points in the binary data stream according to the current required jet printing concentration to adjust the jet printing concentration.
That is, whether the current concentration needing jet printing is 100% of the jet printing effect is judged, and if so, the jet printing is directly carried out; if not, extracting the pixel points in the binary data stream according to the current concentration needing spray printing, and realizing the effect of lightening the spray printing concentration, thereby realizing the random adjustment of the spray printing concentration.
As an embodiment, when the density required to be subjected to jet printing is 10%, extracting the pixel points in the binary data stream according to the density required to be subjected to jet printing, so that the extracted pixel points are not subjected to jet printing, and a final jet printing effect graph is shown in fig. 4.
As an embodiment, when the density required to be subjected to jet printing is 50%, extracting the pixel points in the binary data stream according to the density required to be subjected to jet printing, so that the extracted pixel points are not subjected to jet printing, and a final jet printing effect graph is shown in fig. 5.
According to the jet printing concentration adjusting method of the ink jet printing machine, when the ink jet printing machine performs jet printing, jet printing data is obtained firstly, then the jet printing data is converted into the binary data stream represented by 0 or 1, and 1 in the binary data stream represents one pixel point needing jet printing, so that when the current required jet printing concentration is not 100%, the pixel point in the binary data stream is extracted according to the current required jet printing concentration, the jet printing concentration becomes light, the jet printing concentration is adjusted randomly, the ink cost can be reduced, and the requirements of users are met fully.
Fig. 2 is a schematic flow chart of a method for adjusting the jet printing density of an inkjet printer according to an embodiment of the invention. As shown in fig. 2, the method for adjusting the jet printing density of the inkjet printer includes the following steps:
step 201, acquiring jet printing data.
Step 202, converting the jet printing data into a binary data stream represented by 0 or 1, wherein 1 in the binary data stream represents a pixel point needing jet printing.
That is, the jet printing data is converted into a monochrome bitmap formed by only black and white colors, i.e. a binary data stream represented by 1 or 0 number, wherein 1 represents a pixel point needing jet printing, and 0 represents a pixel point not needing jet printing.
Step 203, judging whether the current required jet printing concentration is 100%. If so, go to step 205; if not, step 204 is performed.
And 204, extracting pixel points in the binary data stream according to the current required jet printing concentration, and setting the extracted pixel points to be 0.
As an embodiment, when the density required to be subjected to jet printing is 10%, extracting the pixel points in the binary data stream according to the density required to be subjected to jet printing so that the extracted pixel points are not subjected to jet printing, and a final jet printing effect graph is shown in fig. 4.
As an embodiment, when the density required to be subjected to jet printing is 50%, extracting the pixel points in the binary data stream according to the density required to be subjected to jet printing, so that the extracted pixel points are not subjected to jet printing, and a final jet printing effect graph is shown in fig. 5.
Step 205, data jet printing is sent.
That is to say, whether the concentration which needs to be jet printed at present is 100% or not is judged, and if yes, the pixel points in the binary data stream are directly subjected to jet printing output; and if not, extracting the pixel points in the binary data stream according to the current required jet printing concentration so as to adjust the jet printing concentration.
As an embodiment, when the density of the current required jet printing is 100%, the number of dots is not extracted, and the final jet printing effect graph of the data jet printing is directly sent as shown in fig. 6.
Further, a schematic flow diagram of pixel point extraction in the method for adjusting the jet printing concentration of the inkjet printer according to an embodiment of the present invention is shown. As shown in fig. 3, the extraction method includes:
step 301, calculating the total number of the pixel points of the jet printing data and the pixel points of each row of data, and calculating the total number of the pixel points to be extracted according to the current required jet printing concentration and the total number of the pixel points of the jet printing data.
It should be noted that the total number of the pixel points to be extracted is calculated according to the following formula:
DelDot=Dot*(100-N)/100,
and the Dot is the total number of the pixel points of the jet printing data, N is the current required jet printing concentration, and the Deldot is the total number of the pixel points required to be extracted.
As one example, the current desired jet density may be preset.
And step 302, calculating the pixel number required to be extracted in each row of data according to the pixel number of each row of data, the total pixel number of the jet printing data and the total pixel number required to be extracted.
It should be noted that the number of pixel points to be extracted for each row of data is calculated according to the following formula:
DelDoti=TolDoti*DelDot/Dot-TolDelDoti-1,
wherein, TolDotiTolDeldot to accumulate the number of pixels from the first line to the ith linei-1For already extracted number of pixel points, DeldotiAnd the Dot number of the pixel to be extracted for each row of data is the total number of the pixel points of the jet printing data, and the Deldot is the total number of the pixel points to be extracted.
That is, the number of pixels to be extracted for the first row of data is:
DelDot1=TolDot1*DelDot/Dot-TolDelDot0wherein TolDot1=Dot1,TolDelDot0=0;Dot1And the total number of the pixel points of the first line of jet printing data.
The number of pixel points to be extracted in the second row of data is:
DelDot2=TolDot2*DelDot/Dot-TolDelDot1wherein TolDot2=Dot1+Dot2
TolDelDot1=DelDot1;Dot2And the total number of pixel points of the second line of jet printing data.
The number of pixel points to be extracted for the third row of data is:
DelDot3=TolDot3*DelDot/Dot-TolDelDot2wherein TolDot3=Dot1+Dot2+Dot3,
TolDelDot2=DelDot1+DelDot2;Dot3And the total number of pixel points of the third row of jet printing data.
…………
And by analogy, the number of pixel points to be extracted in each row of data is calculated.
And step 303, calculating the number of the pixels to be extracted within the width of each continuous 1 of the data in each row according to the number of the pixels in each row of data, the number of the pixels to be extracted in each row of data and the width of each continuous 1 of the data in each row of data.
It should be noted that the number of pixel points to be extracted within the width of each continuous 1 segment of data in each row of data is calculated according to the following formula:
DelSecDotj=TolWj*DelDoti/Doti-TolSecDelj-1,
wherein, DelSecDotjFor the number of pixel points to be extracted in the width of each continuous 1 of each section of data in each row of data, TolWjFor adding the sum of the width of the first segment data being 1 continuously to the width of the j segment data being 1 continuously, DeldotiThe number of pixel points, Dot, to be extracted for each line of dataiFor each row of pixel points, the number of corresponding pixel points in each row in the whole original spray printing data, TolSecDelj-1The number of pixel points that have been extracted in the line data.
That is, the number of the pixel points to be extracted within the width of the first segment data of the first row data being continuously 1 is:
DelSecDot1=TolW1*DelDot1/Dot1-TolSecDel0wherein TolW1=W1,TolSecDel0=0;W1The width of the first segment data in the first row is continuously 1.
DelSecDot2=TolW2*DelDot1/Dot1-TolSecDel1Wherein TolW2=W1+W2,TolSecDel1=DelSecDot1;W2The second segment of data in the first row is continuously 1 wide.
DelSecDot3=TolW3*DelDot1/Dot1-TolSecDel2Wherein TolW3=W1+W2+W3,TolSecDel2=DelSecDot1+DelSecDot2;W3The third segment of data in the first row continues for a width of 1.
…………
And by analogy, the number of pixel points to be extracted in the width of each continuous 1 segment of data in the first row of data is calculated.
DelSecDot1=TolW1*DelDot2/Dot2-TolSecDel0Wherein TolW1=W1,TolSecDel0=0;W1The width of the first segment data in the second row is continuously 1.
DelSecDot2=TolW2*DelDot2/Dot2-TolSecDel1Wherein TolW2=W1+W2,TolSecDel1=DelSecDot1;W2The width of the second segment of data in the second row is continuously 1.
DelSecDot3=TolW3*DelDot2/Dot2-TolSecDel2Wherein TolW3=W1+W2+W3,TolSecDel2=DelSecDot1+DelSecDot2;W3A width of 1 is continued for the third section data in the second row.
…………
And by analogy, the number of pixel points to be extracted in the width of each continuous 1 segment of data in the second row of data is calculated.
And finally, calculating the number of pixel points to be extracted within the width of continuously 1 per section of data in each row of data.
And 304, calculating the average width according to the number of the pixels needing to be extracted within the width of each continuous 1 of the data and the width of each continuous 1 of the data in each row of data, and extracting the pixels of each continuous 1 of the data according to the average width until the number of the extracted pixels reaches the number of the pixels needing to be extracted in each row of data.
It should be noted that the average width is obtained by rounding according to the following formula:
Stpj=[Wj+(DelSecDotj-X)-1]/(DelSecDotj-X),
wherein, StpjIs an average width, WjFor a width of 1 in succession for each piece of data, DelSecDotjThe number of pixel points to be extracted in the width of continuously 1 for each section of data in each row of data is X, and the number of pixel points extracted in the width of continuously 1 at present is X.
That is, pixel points are extracted according to the average width, starting from the position where the first data is 1 to the Stp-th data on the first data segment of the first linejRandomly extracting a pixel point, wherein the position of each pixel point behind is the position of the last extracted pixel point plus the StpjUntil at thatFinishing the extraction on the continuous width of 1, calculating the number X of the currently extracted pixel points after finishing the extraction, and obtaining the number of the pixel points which need to be extracted in the section as DelSecDotjX, so as to obtain a new average width, and so on until the number of points DelSecDot to be extracted for the segmentjAll the extraction is completed.
Step 305, setting the data corresponding to the extracted pixel points to 0.
That is, the extracted pixel point is set to 0, so that the data corresponding to the extracted pixel point is not subjected to jet printing.
As a specific example, it is assumed that the inkjet printing data is a black block picture with 100 × 100 pixels, and the current required inkjet printing density is 10%.
Then, the total number Dot of the pixels of the jet printing data is 100 × 100 ═ 10000;
total number Dot of pixel points of each line of jet printing datai=100;
The total number of pixel points Deldot to be extracted is 10000 (100-10)/100 is 9000;
the number of the pixel points Deldot to be extracted in each row of datai=90;
The number of pixel points DelSecDot to be extracted within the width of continuous 1 of the first segment of data in the first row of data1=90;
For example as shown in table 1 below:
TABLE 1 extraction quantity table for pixel points
Marking bit
|
0
|
1
|
2
|
3
|
4
|
5
|
.
|
.
|
.
|
94
|
95
|
96
|
97
|
98
|
99
|
When the snapshot is not taken
|
1
|
1
|
1
|
1
|
1
|
1
|
|
|
|
1
|
1
|
1
|
1
|
1
|
1
|
The first snapshot is set to 0
|
1
|
0
|
1
|
0
|
1
|
0
|
|
|
|
1
|
0
|
1
|
0
|
1
|
0
|
The second snapshot is set to 0
|
1
|
0
|
0
|
0
|
1
|
0
|
|
|
|
1
|
0
|
1
|
0
|
0
|
0
|
The third snapshot is set to 0
|
0
|
0
|
0
|
0
|
1
|
0
|
|
|
|
1
|
0
|
1
|
0
|
0
|
0 |
First calculated average width Stpj=[100+90-1]If the rounded average width is 2, randomly extracting one point from 0 bit to 1 bit, and if the 1 st bit is extracted, then extracting the number of the pixel points which are 3 rd bit and 5 th bit …, and extracting 50 bits this time; if the 90 bits are not fully drawn, the user needs to draw the other 90 bitsExtracting 40 bits in the width;
second calculated average width Stpj=[100+40-1]If the rounded average width is 3, randomly extracting one point from 0 bit to 2 bits, if the 2 nd bit is extracted, then extracting the number of the pixel points to be 5 th bit and 8 th bit …, extracting 17 bits this time, and if the 90 bits are not extracted, extracting 23 bits again from the first row;
third calculated average width Stpj=[100+23-1]If the rounded average width is 5, randomly extracting one point from the 0 th bit to the 4 th bit, if the 0 th bit is extracted, then extracting the number of the pixel points to be 5 th bit and 10 th bit …, extracting 7 bits this time, and if the 90 bits are not extracted, then extracting 16 bits again from the first row;
and in the same way, circularly extracting according to the same extraction mode until the number of the pixel points required to be extracted in the section is fully extracted.
In addition, as shown in fig. 7, the method for adjusting the jet printing concentration of the ink jet printer can also be applied to anti-counterfeiting; because the extraction modes are different, the realized concentration effect is naturally different, so the anti-counterfeiting aim is achieved by comparing the density effect and the gradient effect and randomly distributing the extracted pixel points.
In order to implement the above embodiments, the present invention provides a computer-readable storage medium, on which a jet printing density adjustment program of an inkjet printer is stored, and when the jet printing density adjustment program of the inkjet printer is executed by a processor, the jet printing density adjustment method of the inkjet printer is implemented.
According to the computer-readable storage medium of the embodiment of the invention, the spray printing concentration adjusting program of the inkjet printer is stored, so that when the spray printing concentration adjusting program of the inkjet printer is executed by the processor, the spray printing concentration adjusting method of the inkjet printer is realized, the random adjustment of the spray printing concentration is realized, the ink cost is reduced, and the requirements of users can be fully met.
In order to implement the above embodiment, the invention provides an inkjet printer, which includes an ink cartridge and a nozzle corresponding to the ink cartridge, and further includes a memory, a processor, and a printing density adjustment program of the inkjet printer, which is stored in the memory and can be run on the processor, where the processor implements the printing density adjustment method of the inkjet printer when executing the printing density adjustment program.
According to the ink jet printer provided by the embodiment of the invention, the processor executes the jet printing concentration adjusting method to realize the arbitrary adjustment of the jet printing concentration, so that the ink cost can be reduced, and the requirements of users can be fully met.
Fig. 8 is a schematic block diagram of a device for adjusting the jet printing density of an inkjet printer according to an embodiment of the invention. As shown in fig. 8, the adjusting device includes: an obtaining module 401, a converting module 402, a judging module 403 and an adjusting module 404.
The acquisition module 401 is configured to acquire jet printing data;
a converting module 402, configured to convert the print data into a binary data stream represented by 0 or 1, where 1 in the binary data stream represents a pixel point to be printed;
a judging module 403, configured to judge whether the current required jet printing concentration is 100%;
and the adjusting module 404 is configured to extract the pixel points in the binary data stream according to the current required jet printing density when the current required jet printing density is not 100% so as to adjust the jet printing density.
Further, the adjusting module 404 is further configured to calculate the total number of pixels of the jet printing data and the number of pixels of each line of data, and calculate the total number of pixels to be extracted according to the current required jet printing concentration and the total number of pixels of the jet printing data; calculating the pixel number of each row of data to be extracted according to the pixel number of each row of data, the total number of the pixel points of the jet printing data and the total number of the pixel points to be extracted; calculating the number of pixel points to be extracted within the width of each continuous data 1 in each row of data according to the number of pixel points of each row of data, the number of pixel points to be extracted in each row of data and the width of each continuous data 1 in each row of data; calculating the average width according to the number of pixel points needing to be extracted within the width of each continuous 1 of data and the width of each continuous 1 of data in each row of data, and extracting the pixel points of each continuous 1 of data according to the average width until the number of the extracted pixel points reaches the number of pixel points needing to be extracted in each row of data; and setting the data corresponding to the extracted pixel points as 0.
It should be noted that the foregoing description of the method for adjusting the jet printing density of the inkjet printer is also applicable to the jet printing speed increasing device of the inkjet printer in this embodiment, and details are not repeated here.
According to the jet printing concentration adjusting device of the ink jet printing machine, when the ink jet printing machine performs jet printing, the jet printing data is obtained through the obtaining module, the jet printing data is converted into the binary data stream represented by 0 or 1 through the converting module, and 1 in the binary data stream represents a pixel point needing to be jet printed, so that when the judging module judges that the current required jet printing concentration is not 100%, the adjusting module extracts the pixel point in the binary data stream according to the current required jet printing concentration, the jet printing concentration becomes light, the arbitrary adjustment of the jet printing concentration is realized, the ink cost can be reduced, and the requirements of users can be fully met.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.