Printing process and device
Technical field
The present invention relates to printing technology, particularly relate to a kind of printing process and device.
Background technology
At present, universal along with electronic supervision code, the business of printing house also with being continuously increased, stock
Kind also become more and more.And along with people's enhancing to environmental consciousness in recent years, green printing also by
Praised highly outside in the industry.Environment has been destroyed by ink needed for printing to a certain extent, the electricity on stock
Sub-supervision code, on the premise of ensureing condition and grade, if the black quantitative change covered is few, will reduce ring
The destruction in border.From the point of view of printing house, under the printing quality premise reaching customer requirement, if
The black quantitative change covered is few, will less ink consumption, thus decrease the cost of printing house, improve production capacity.
Therefore, on the premise of ensureing printing quality, how to reduce ink consumption and become the problem needing solution badly.
Summary of the invention
The present invention provides a kind of printing process and device, to reduce ink consumption.
First aspect of the present invention provides a kind of printing process, including:
Obtaining the original arrays of dots of the typesetting space of a whole page, described original arrays of dots includes that presets is printed on
There is on the described typesetting space of a whole page positional information of ink dot and not there is the positional information of ink dot;
Obtaining mask ink dot queue according to default ink dot extraction yield, described mask ink dot queue includes institute
State the positional information of the ink dot being extracted on the typesetting space of a whole page, described ink dot extraction yield be described in the ink that is extracted
The ratio of the number of the ink dot that the number of point and described mask ink dot queue can comprise;
Printer's ink lattice array, described print is obtained according to described original arrays of dots and described mask ink dot queue
The specification of brush arrays of dots is identical with the specification of described original arrays of dots;
Print according to described printer's ink lattice array.
Printing process as above, alternatively, is obtaining mask ink dot according to the ink dot extraction yield preset
Before queue, also include:
Described ink dot extraction yield is determined in units of DWORD.
Printing process as above, alternatively, described ink dot extraction yield is in the range of more than 0 and be less than
25%.
Printing process as above, alternatively, the ink dot extraction yield that described basis is preset obtains mask ink
Point queue includes:
Obtaining mask ink dot queue, the length of described mask ink dot queue is with the length of the described typesetting space of a whole page not
Equal.
Printing process as above, alternatively, the length of described mask ink dot queue is more than described typesetting
The length of the space of a whole page and the twice of the length less than the described typesetting space of a whole page.
Printing process as above, alternatively, described according to described original arrays of dots and described mask
Ink dot queue obtains printer's ink lattice array and includes:
By described mask ink dot queue end to end formation mask arrays of dots, described mask arrays of dots
Specification is consistent with the specification of described original arrays of dots;
Relatively described original arrays of dots and described mask arrays of dots, and determine described original ink dot battle array
The positional information being removed ink dot corresponding with the ink dot being extracted in described mask ink dot queue in row;
Using the positional information being removed ink dot in described original arrays of dots as the position letter without ink dot
Breath, generates printer's ink lattice array.
Printing process as above, alternatively, the ink dot extraction yield preset in described basis obtains mask
After ink dot queue, and before by described mask ink dot queue end to end formation mask arrays of dots,
Also include:
Detect that not have the position of ink dot in described mask ink dot queue the most adjacent, the most then transfer to and holding
Row obtains the step of mask ink dot queue according to the ink dot extraction yield preset, if it is not, then perform to cover described
The step of film ink dot queue end to end formation mask arrays of dots.
Another aspect of the invention provides a kind of printing equipment, including:
First acquiring unit, for obtaining the original arrays of dots of the typesetting space of a whole page, described original arrays of dots
Being printed on the described typesetting space of a whole page of including presetting has the positional information of ink dot and does not has the position of ink dot
Confidence ceases;
Second acquisition unit, for according to preset ink dot extraction yield obtain mask ink dot queue, described in cover
Film ink dot queue includes the positional information of the ink dot being extracted on the described typesetting space of a whole page;
3rd acquiring unit, for obtaining print according to described original arrays of dots and described mask ink dot queue
Brush arrays of dots;
Printing element, for printing according to described printer's ink lattice array.
Printing equipment as above, alternatively, also includes:
Determine unit, for determining described ink dot extraction yield in units of DWORD.
Printing equipment as above, alternatively, described second acquisition unit specifically for:
Obtaining mask ink dot queue, the length of described mask ink dot queue is with the length of the described typesetting space of a whole page not
Equal, described in the number of the number of ink dot that is extracted and the ink dot comprised of described mask ink dot queue
Ratio equal to described ink dot extraction yield.
Printing equipment as above, alternatively, described 3rd acquiring unit specifically includes:
First subelement, for by described mask ink dot queue end to end formation mask arrays of dots, institute
The specification stating mask arrays of dots is consistent with the specification of described original arrays of dots;
Second subelement, for relatively described original arrays of dots and described mask arrays of dots, and determines
Go out corresponding with the ink dot being extracted in described mask ink dot queue in described original arrays of dots to be removed ink
The positional information of point;
3rd subelement, for being removed the positional information of ink dot as not in described original arrays of dots
There is the positional information of ink dot, generate printer's ink lattice array.
Printing equipment as above, alternatively, also includes:
Detector unit, the most adjacent for detecting the position in described mask ink dot queue without ink dot,
The most then trigger described second acquisition unit, if it is not, then trigger described first subelement.
As shown from the above technical solution, printing process that the present invention provides and device, by mask ink dot team
Row remove the part ink dot in original arrays of dots, it is possible to reach to reduce the purpose of ink consumption, and be
Eliminate part ink dot rather than reduce ink consumption that all ink dots are used thus reach to reduce ink consumption
Purpose, it is possible to avoid affecting the resolution of the pattern on typesetting panel as far as possible.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the printing process according to one embodiment of the invention;
Fig. 2 is the structural representation of the printing equipment according to another embodiment of the present invention;
Fig. 3 is the structural representation of the printing equipment according to yet another embodiment of the invention;
Fig. 4 is the structural representation of the printing equipment according to further embodiment of this invention.
Detailed description of the invention
Embodiment one
The present embodiment provided a kind of printing process, for printing according to the typesetting space of a whole page preset.This
The executive agent of embodiment is printing equipment.When the typesetting space of a whole page of the present embodiment is typesetting in a mobile device
The space of a whole page.Such as, first a space of a whole page is designed in computer, forms the typesetting space of a whole page, follow-up reality
During printing, with predetermined ratio, the typesetting space of a whole page in computer is printed on papery carrier, papery carrier
For example, books and periodicals, newspaper etc..
As it is shown in figure 1, be the schematic flow sheet of the printing process according to the present embodiment.
Step 101, obtains the original arrays of dots of the typesetting space of a whole page, and original arrays of dots includes presetting
It is printed on the typesetting space of a whole page and there is the positional information of ink dot and not there is the positional information of ink dot.
In the present embodiment, each pattern in the typesetting space of a whole page, word are all made up of ink dot, do not have ink dot
Position just there is no pattern, word.Designing the typesetting space of a whole page in computer, the positional information of each ink dot is all
Determining, positional information can use the storage information of ink dot to be indicated, if display is on a display screen,
The positional information of each ink dot can use coordinate information to be indicated, and specifically can set according to actual needs.
The typesetting space of a whole page is made up of original arrays of dots, and " 0 " and " 1 " specifically can be used to represent, such as,
The position not having ink dot is " 0 ", and the position with ink dot is " 1 ".As an example it is assumed that designing and arranging
Used DWORD (Double Word) software during the version space of a whole page, the most each word is 4 bytes,
One word takies 2 bytes, and each byte is 8, and each word is 32 positions.
Step 102, obtains mask ink dot queue according to default ink dot extraction yield, in mask ink dot queue
Positional information including the ink dot being extracted on the typesetting space of a whole page.
Ink dot extraction yield is the number of the ink dot that number and the mask ink dot queue of the ink dot being extracted can comprise
Ratio.The ink dot extraction yield of the present embodiment can be the ink dot extraction yield determined in units of DWORD, example
As the scope of ink dot extraction yield specifically may be greater than 0 and less than 25%, it is specially (1/32) %, (1/16)
%, (3/32) %, (1/8) %, (5/32) %, (3/16) %, (7/32) %, 25%.Citing
For, it is assumed that an ink dot queue has 32 ink dots, and ink dot extraction yield is 1/32, and ink dot queue uses 1111
1111 1,111 1111 represent, then, after randomly drawing an ink dot from 32 ink dots, become 1,111 1110
1111 1111, can be using the queue after extraction ink dot as mask ink dot queue.
The thing that need to point out, mask ink dot queue can be according to the ink dot extraction yield stochastic generation preset,
The position of the ink dot being i.e. extracted is not fixed.
Step 103, obtains printer's ink lattice array, printing according to original arrays of dots and mask ink dot queue
The specification of arrays of dots is identical with the specification of original arrays of dots.
Such as, if mask ink dot queue only one of which, then the mask end to end formation of ink dot queue can be covered
Film arrays of dots;If mask ink dot queue has multiple, then each mask end to end formation of ink dot queue is covered
Film arrays of dots, each mask ink dot queue can be reused according to actual needs.The thing that need to point out, covers
The specification of film arrays of dots is identical with the specification of original arrays of dots to be referred to mask arrays of dots and is formed
The typesetting space of a whole page identical with the specification of the typesetting space of a whole page that original arrays of dots is formed, i.e. show on screen
The length of two typesetting spaces of a whole page identical and width is identical, mask arrays of dots in memory area and original
The size of the shared memory space of arrays of dots is identical.
This step 103 is specifically as follows: compare mask arrays of dots and original arrays of dots, to determine
The position letter being removed ink dot corresponding with the ink dot being extracted in mask ink dot queue in original arrays of dots
Breath, sick using the positional information being removed ink dot in original arrays of dots as the positional information without ink dot,
Generate printer's ink lattice array.
Step 104, prints according to printer's ink lattice array.
Specifically how to use arrays of dots to carry out printing to belong to prior art, do not repeat them here.
Alternatively, after step 102, and before step 103, also include:
The position in detection mask ink dot queue without ink dot is the most adjacent, the most then transfer execution step 102 to,
If it is not, then perform step 103.
If the position with ink dot is adjacent, it is likely that be easily noticed by the users.Especially in electronic supervision code,
Owing to electronic supervision code belongs to one-dimensional bar code, if the position of the ink dot being extracted is adjacent, it is likely that
Cause the situation that this electronic supervision code can not be identified.
According to the printing process of the present embodiment, remove the portion in original arrays of dots by mask ink dot queue
Divide ink dot, it is possible to reach to reduce the purpose of ink consumption, and simply eliminate part ink dot rather than subtract
Lack the ink consumption that all ink dots are used thus the purpose reaching to reduce ink consumption, it is possible to avoid impact as far as possible
The resolution of the pattern on typesetting panel.
Embodiment two
Supplementary notes further are done in the printing process of above-described embodiment by the present embodiment.
The present embodiment obtains mask ink dot queue according to the ink dot extraction yield preset include:
Obtaining mask ink dot queue, the length of mask ink dot queue is unequal with the length of the typesetting space of a whole page.
Original arrays of dots in the present embodiment can be stored in memory block, the size of this memory block and typesetting
The size of the memory space that the space of a whole page takies is identical.The original arrays of dots of the memory block of the present embodiment is presented on aobvious
When showing on device, length can be consistent with the typesetting space of a whole page, and width can also be consistent with the typesetting space of a whole page.
And the present embodiment mask ink dot queue, when presenting over the display, its length and the length of the typesetting space of a whole page
Spending inconsistent, the such as length of mask ink dot queue is more than the length of the typesetting space of a whole page and less than the typesetting space of a whole page
The twice of length, more specifically, the length of mask ink dot queue can be the length of the typesetting space of a whole page
1.4-1.6 again.
Certainly, reflect that the line of original arrays of dots is longer than the line length of mask ink dot queue on memory area
Unequal.
Correspondingly, obtain printer's ink lattice array according to original arrays of dots and mask ink dot queue to include:
By mask ink dot queue end to end formation mask arrays of dots, the specification of mask arrays of dots and original ink dot
The specification of array is consistent;
Relatively original arrays of dots and mask arrays of dots, and determine in original arrays of dots with mask ink dot queue
In the positional information being removed ink dot corresponding to the ink dot that is extracted;
Using original arrays of dots is removed ink dot positional information as the positional information without ink dot,
Generate printer's ink lattice array.
For example, if a length of 32 of the typesetting space of a whole page, then the length of mask ink dot queue can be
48.The mask arrays of dots of mask ink dot queue head and the tail detailed annotation formation and the specification one of mask arrays of dots
Cause.
As an example it is assumed that original arrays of dots is M × N matrix, then mask arrays of dots is also M × N
Matrix, if multiple mask arrays of dots joins end to end.Specifically, it is assumed that original ink dot matrix is as follows:
Mask ink dot queue is 1,111 0,111 1,111 1,111 1,111 1,111 1,111 0,111 1111, then
The mask arrays of dots of the end to end formation of mask arrays of dots is:
Relatively original arrays of dots and mask arrays of dots, it is known that, first row the 29th in original arrays of dots
Individual ink dot, the 9th ink dot and the 3rd of second row are arranged the 1st ink dot and are extracted, and ultimately generate
Printer's ink dot matrix is classified as:
If mask ink dot queue has multiple, then the formation that can each mask ink dot queue be joined end to end at random is covered
Film arrays of dots, certainly, for fast operation, can use a mask ink dot to the same space of a whole page
Queue, so, the length of mask ink dot queue is unequal with the length of the typesetting space of a whole page, it becomes possible to avoids and is taken out
The ink dot taken connects the defect of the Experience Degree reducing user in a row.
Embodiment three
The present embodiment printing process to above-described embodiment in the way of instantiation illustrates.
Owing to electronic supervision code belongs to one-dimensional bar code, currently mainly it is applied on medicine packing box.Seldom
Have electronic supervision code in color, requirement in shape, therefore present electronic supervision code printing equipment is the biggest
Majority is single black, device of the 1bit degree of depth.The present embodiment is specifically described as a example by one-dimensional bar code.
First, printing equipment obtains the information of the typesetting space of a whole page preset, and according to the information of this typesetting space of a whole page
Obtaining the first data buffer zone and the second data buffer zone, wherein, the first data buffer zone is labeled as
PSrcDataBuf, the second data buffer zone is labeled as pMaskDataBuf.First data buffer zone is used for
Depositing the original arrays of dots corresponding with the typesetting space of a whole page, the second data buffer zone is used for depositing mask ink dot team
Row.Wherein, the size of the first data buffer zone is equal in magnitude with the internal memory shared by the typesetting space of a whole page, the
The line length of two data buffer zones and the line length of the first data buffer zone, and then avoid after printing
See the situation that the regular ink dot of leaflet is extracted.
As follows according to the original arrays of dots acquired in the typesetting space of a whole page:
Original arrays of dots is
Assume that ink dot extraction yield determined by units of DWORD is 2/36, random according to ink dot extraction yield
The mask ink dot queue determined is 1,111 0,011 1,111 1,111 1,111 1,111 1,111 1,111 1111,
Find that the position without ink dot in this mask ink dot queue is adjacent, again the most true according to ink dot extraction yield
Making another mask ink dot queue is 1,111 0,111 1,111 1,111 1,111 0,111 1,111 1,111 1111,
Detection finds that the position in this another mask ink dot queue without ink dot is non-conterminous, then by this another
Mask ink dot queue end to end formation mask arrays of dots is:
The mask arrays of dots that then queue of mask ink dot joins end to end formed is:
Mask arrays of dots is compared with original arrays of dots, determines that the position being removed ink dot is first
5th ink dot of row and the 21st ink dot, the 9th ink dot of second row and the 25th ink dot, the 3rd
13 ink dots of row and the 17th ink dot of the 4th row, correspondingly, the printer's ink lattice array generated
For:
It can be seen that for arrays of dots corresponding to this one-dimensional bar code, quilt from this printer's ink lattice array
The ink dot of extraction is less, does not affect the resolution of one-dimensional bar code in the case of reducing ink consumption, and will
The length of mask ink dot queue is set as and the length of original ink dot queue, it is possible to avoid being extracted
The regular appearance of ink dot, and then further avoid the impact on one-dimensional bar code resolution.
Embodiment four
The present embodiment provides a kind of printing equipment, for performing the printing process of above-described embodiment.
As in figure 2 it is shown, be the structural representation of the printing equipment according to the present embodiment.This printing equipment bag
Include the first acquiring unit 201, second acquisition unit the 202, the 3rd acquiring unit 203 and printing element 204.
Wherein, the first acquiring unit 201 is for obtaining the original arrays of dots of the typesetting space of a whole page, original ink dot
Being printed on the typesetting space of a whole page that array includes presetting has the positional information of ink dot and does not has the position of ink dot
Confidence ceases;The ink dot extraction yield that second acquisition unit 202 is preset for basis obtains mask ink dot queue,
Mask ink dot queue includes the positional information of the ink dot being extracted on the typesetting space of a whole page;3rd acquiring unit 203
For obtaining printer's ink lattice array according to original arrays of dots and mask ink dot queue;Printing element 204 is used
In printing according to printer's ink lattice array.
Alternatively, as it is shown on figure 3, the printing equipment of the present embodiment also includes detector unit 301, this inspection
Survey unit 301 the most adjacent for detecting the position in mask ink dot queue without ink dot, the most then trigger the
Two acquiring units 202, if it is not, then trigger the 3rd acquiring unit 203.
The execution method of the printing equipment of the present embodiment is consistent with embodiment one, does not repeats them here.
According to the printing equipment of the present embodiment, remove the portion in original arrays of dots by mask ink dot queue
Divide ink dot, it is possible to reach to reduce the purpose of ink consumption, and simply eliminate part ink dot rather than subtract
Lack the ink consumption that all ink dots are used thus the purpose reaching to reduce ink consumption, it is possible to avoid impact as far as possible
The resolution of the pattern on typesetting panel.
Embodiment five
The printing equipment of above-described embodiment is done supplementary notes further by the present embodiment.
As shown in Figure 4, the printing equipment of the present embodiment also includes determining unit 401, and this determines unit 401
For determining ink dot extraction yield in units of DWORD, and then the ink dot extraction yield determined is obtained for second
Unit 202 uses.
Alternatively, the second acquisition unit 202 of the present embodiment specifically for:
Obtaining mask ink dot queue, the length of mask ink dot queue is unequal with the length of the typesetting space of a whole page, is extracted
The number of ink dot is equal to ink dot extraction yield with the ratio of the number of the ink dot comprised of mask ink dot queue.
Alternatively, the 3rd acquiring unit 203 of the present embodiment specifically includes first subelement the 2031, second subelement
2032 and the 3rd subelement 2033.Wherein, the first subelement 2031 is for by the mask end to end shape of ink dot queue
Becoming mask arrays of dots, the specification of mask arrays of dots is consistent with the specification of original arrays of dots;Second subelement 2032
For relatively original arrays of dots and mask arrays of dots, and determine in original arrays of dots with mask ink dot queue
In the positional information being removed ink dot corresponding to the ink dot that is extracted;3rd subelement 2033 is for by original
Arrays of dots is removed the positional information of ink dot as not having the positional information of ink dot, generates printer's ink
Lattice array.
More specifically, if detector unit 301 detects the position not phase in mask ink dot queue without ink dot
Neighbour, then trigger the first subelement 2031.
The concrete operation method of the printing equipment of the present embodiment is consistent with the printing process of above-described embodiment, at this no longer
Repeat.
According to the printing equipment of the present embodiment, remove the part in original arrays of dots by mask ink dot queue
Ink dot, it is possible to reach to reduce the purpose of ink consumption, and simply eliminate part ink dot rather than minimizing
Ink consumption that all ink dots are used thus reach to reduce the purpose of ink consumption, it is possible to avoid impact row as far as possible
The resolution of the pattern on space of a whole page plate.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment
Can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer-readable
Taking in storage medium, this program upon execution, performs to include the step of said method embodiment;And it is aforementioned
Storage medium include: the various media that can store program code such as ROM, RAM, magnetic disc or CD.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it
Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area
Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill
The essence of art scheme departs from the scope of various embodiments of the present invention technical scheme.