The content of the invention
For above-mentioned problem, the present invention provides a kind of color document image synthetic method and device, to realize
Color document image after rasterization process is synthesized in real time, so as to lift the purpose of sprayed printed system disposed of in its entirety performance.
The invention provides a kind of color document image synthetic method, including:
Color document image synthesis process instruction is received, the synthesis process instruction is included in the color document image
Comprising color type and the color document image in the current page to be synthesized the page number;
View data according to needed for the color type and the page number determine the synthesis current page to be synthesized
Storage address, described image data include right respectively with each color in the color type in the color document image
The first variable data corresponding with each color difference in the fixation shading data answered and the current page to be synthesized, institute
Stating storage address includes being respectively used to store the address of each first memory space of each fixed shading data and is respectively used to
The address of each second memory space of each first variable data is stored, each fixed shading data and described each first can
Become data to being obtained after the color document image rasterization process;
Obtain each fixed shading data from each first memory space respectively according to the storage address, respectively
Obtain each first variable data from each second memory space, and by each fixed shading data of acquisition and each first
Variable data synthesizes the page to be synthesized to export.
The invention provides a kind of color document image synthesizer, including:
First receiving module, for receiving color document image synthesis process instruction, the synthesis process instruction includes
The page number of the current page to be synthesized in the color type and the color document image that are included in the color document image;
First determining module, for determining the synthesis current page to be synthesized according to the color type and the page number
The storage address of required view data, described image data include in the color document image with the color type
Each color respectively corresponding to fix it is corresponding respectively with each color in shading data and the current page to be synthesized
The first variable data, the storage address includes being respectively used to store each first memory spaces of each fixed shading data
Address and be respectively used to store the address of each second memory space of each first variable data, each fixed shading number
According to each first variable data to being obtained after the color document image rasterization process;
Processing module, for obtaining each fixation from each first memory space respectively according to the storage address
Shading data, obtain each first variable data from each second memory space respectively, and by each fixed bottom of acquisition
Line data and each first variable data synthesize the page to be synthesized to export.
Color document image synthetic method provided by the invention and device, are obtained to color document image rasterization process
With the corresponding each fixed shading data respectively of each color in the color type that it is included, and obtain in each page with it is upper
State after variable data corresponding to each color, it is necessary to, it is necessary to carry out synthesis output to the page during the complete page of the output for printing,
Each fixed shading data of color document image belonging to each variable data that will be in the page and the page are carried out at synthesis
Reason.Current page to be synthesized in the color type for treating to be included in chromatic colour image file and the color document image is taken when receiving
After the synthesis process instruction of the page number in face, each according to needed for the color type and the page number determine the current page to be synthesized of synthesis can
Become the storage address of data and the storage address of required each fixed shading data, and then corresponded to respectively from each storage address respectively
Memory space in obtain each fixed shading data and each variable data, and by each fixed shading data and Ge Ke parameters of acquisition
Obtain the completely page to be synthesized according to synthesizing and export.Because above-mentioned each fixed shading data and each variable data are all bases
Each color separated included in color type, by by each page in the fixation shading data of color document image and file
Variable data independent to store respectively according to color type so that when need to synthesize the different pages, all repeat from identical first
Obtain each fixed shading data in memory space, and obtain from the second memory space according to the page number respective page can parameter
According to, be advantageous to improve data reading performance using redundancy, the color document image after rasterization process is closed in real time so as to realize
Into, and then lift the purpose of sprayed printed system disposed of in its entirety performance.
Embodiment
Fig. 1 is the flow chart of color document image synthetic method embodiment one of the present invention, as shown in figure 1, this method includes:
Step 101, color document image synthesis process instruction is received, the synthesis process instruction includes the cromogram
As the page number of the current page to be synthesized in the color type included in file and the color document image;
Step 102, the figure according to needed for the color type and the page number determination synthesis current page to be synthesized
As the storage address of data, described image data include in the color document image with every kind of face in the color type
Color respectively corresponding to fix in shading data and the current page to be synthesized respectively corresponding first can with each color
Become data, the storage address include be respectively used to store each fixed shading data each first memory space address and
It is respectively used to store the address of each second memory space of each first variable data, each fixed shading data and described
Each first variable data after the color document image rasterization process to obtaining;
Step 103, each fixed shading obtained from each first memory space according to the storage address respectively
Data, obtain each first variable data from each second memory space respectively, and by each fixed shading number of acquisition
According to synthesizing the page to be synthesized with each first variable data to export.
After the methods described that the present embodiment provides is particularly suitable for use in and carries out separation rasterization process to color document image,
Need to synthesize the scene of each page in this document in the output for printing.Color document image described in the present embodiment is especially
Refer to that the shading data of each page in file immobilize, that is, have and fix shading data, the variable data in each page
Relatively small number of color file, such as the public document (official document) of dichromatism.The separation rasterization process, is to colour
The variable data of each page is separated according to color type in fixation shading data and file in image file, Jin Erjin
Line rasterization processing.Wherein, color type refers to the colour type that this document includes, such as including three kinds of face of red, green, blue
Color, or include green grass or young crops, product, Huang, black four kinds of colors for another example.In the citing of the public document of only one page, this document is consolidated
Determine shading data be such as file come back and inscription at affixing one's seal, for example be red, alternative document content as variable data, than
Such as it is black, then now the color type of this document includes red and two kinds of colors of black.The present embodiment provides described
Method can be performed by a file synthesis device, and the device, which is preferably integrated, to be arranged in digital printing equipment.
In the present embodiment, in pre-print system obtains the color type included with it to color document image rasterization process
Each color respectively corresponding to each fixed shading data, and obtain corresponding with above-mentioned each color variable in each page
After data, it is necessary to, it is necessary to carry out synthesis output to the page during the complete page of the output for printing, will be in the page it is each variable
Each fixed shading data of color document image belonging to data and the page carry out synthesis processing.Now, the device receives bag
The synthesis process instruction of the page number containing the color type included in the color document image and the current page to be synthesized.
And then the picture number according to needed for the color type and the page number determine the synthesis current page to be synthesized
According to storage address.Wherein, the view data required for the page is synthesized, due to the bottom of each page in the color document image
Line data are identical, and therefore, on the one hand the view data includes the fixation shading data of the color document image, on the other hand include
The page variable data of itself.And after separation rasterization process, fixed shading data and variable data are all according to face
Color type carries out separating treatment, and therefore, it is right respectively with each color specifically, in the view data of the page on the one hand to include
Each fixed shading data answered, on the other hand including the page the first variable data corresponding with each color difference.Citing
For, if including 4 kinds of colors in the color type of the color document image, then the color document image is just equivalent to having
4 parts of fixed shading data, this 4 parts fixed shading data investigations are synthesized together, and constitute the fixation bottom of the color document image
Line data.Similarly, the variable data of the page due to either fixed shading data in same color document image or each, all
With identical color type, therefore, it is that above-mentioned first can parameter that the current page to be synthesized, which also has 4 parts of variable datas,
According to this 4 parts of variable datas, which are superimposed, constitutes the variable data of the page.
The above-mentioned view data according to needed for the page number of color type and the page to be synthesized determines the synthesis page to be synthesized
Storage address, it is that each color included according to color type determines that storage is corresponding with each color respectively first specifically
Each fixed shading data the first memory space address, afterwards, each color in the color type and this treat
The page number for synthesizing the page determines to store the second memory space of each first variable data corresponding to each color difference in the page
Address.Example still is exemplified as with above-mentioned, 4 needed for the page parts of fixed shading data is synthesized and is respectively stored in 4 first storages
In space, required 4 parts of variable datas are also respectively stored in 4 the second memory spaces, are indexed according to the storage pre-established
Table, that is, include the index of the first corresponding memory space address of each color, and each color, the page number and the second storage sky
Between address index, the storage address for synthesizing the view data needed for the page to be synthesized can be inquired.
And then obtain each fixed shading data from each first memory space respectively according to the storage address, respectively from each
Each first variable data is obtained in second memory space, and each fixed shading data of acquisition and each first variable data are synthesized
The page to be synthesized and the output for printing.Specifically, this is synthesized by using what the operating process with rasterization process contrary was realized,
Each fixed shading data and each first variable data are carried out with the reverse calculating of rasterization process algorithm, so as to realize at synthesis
Reason process.
In the present embodiment, the color type for treating to be included in chromatic colour image file and coloured image text are taken when receiving
In part after the synthesis process instruction of the page number of the current page to be synthesized, determine to synthesize according to the color type and the page number and currently wait to close
Into the storage address of each variable data needed for the page and the storage address of required each fixed shading data, and then respectively from each
Storage address respectively corresponding to obtain each fixed shading data and each variable data in memory space, and by each fixed bottom of acquisition
Line data and each variable data are synthesized to obtain the complete page to be synthesized and export.Due to above-mentioned each fixed shading data and respectively
Variable data is all according to each color separated included in color type, by by the fixation shading data of color document image
Independently to store respectively according to color type with the variable data of each page in file so that when need to synthesize the different pages, all
Repetition obtains each fixed shading data from the memory space of identical first, and obtains phase from the second memory space according to the page number
The variable data of the page is answered, is advantageous to improve data reading performance using redundancy, so as to realize to the coloured image after rasterization process
File is synthesized in real time, and then lifts the purpose of sprayed printed system disposed of in its entirety performance.
Fig. 2 is the flow chart of color document image synthetic method embodiment two of the present invention, as shown in Fig. 2 this method includes
Following steps:
Step 201, color document image store instruction is received, the store instruction includes the color type, described
Each fixed shading data of total, the described color document image of the page of color document image and the color document image
In each second variable data corresponding to each page, each second variable data respectively with every kind of face in the color type
Color is corresponding;
Step 202, determine memory space corresponding with each color in the color type respectively, each storage
Space includes being used to store the first memory space of the fixation shading data of corresponding color and for storing in each page
Second memory space of the second variable data of corresponding color;
Step 203, judge to whether there is in each second memory space memory capacity completely, but the stored page
Quantity is still not up to the second memory space of page sum, if in the presence of performing step 204, otherwise perform step 205;
Step 204, by the deposit at first of predetermined number in the second full memory space of the memory capacity and ECDC
Variable data into page output is deleted;
Step 205, each fixed shading data are stored in each first memory space respectively, in units of the page
Each second variable data corresponding to each page is stored in each second memory space respectively, and establishes storage index
Table.
In the present embodiment, pre-print system can typically incite somebody to action after separation rasterization process has been carried out to color document image
Data after processing are sent to above-mentioned synthesizer, so that synthesizer stores to the data received.Specifically, before print
System sends the color type for carrying color document image and including, page sum, the color document image to synthesizer
Each fixed shading data and the color document image in each second variable data corresponding to each page store instruction so that
Each fixed shading data and each second variable data are locally stored synthesizer, wherein, each second variable data
It is corresponding with each color in the color type respectively.What deserves to be explained is for a page, corresponding to certain color
Two variable datas can be one or multiple, relevant with specific data type and data content.
Synthesizer is after above-mentioned store instruction is received, it is determined that corresponding with each color in the color type respectively
Memory space, each memory space include the first memory space for being used to store the fixation shading data of corresponding color and
For storing the second memory space of the second variable data of corresponding color in each page.
In the present embodiment, the storage resource of local is first according to the color type that color document image includes by synthesizer
The division of memory space is carried out, such as, just it is divided into 4 memory spaces containing 4 kinds of colors.Wherein, each memory space enters one
Step is divided into two sub-spaces, when the first memory space of the fixation shading data for storing corresponding color, first, being used for
Store the second memory space of the variable data of each page of corresponding color.It is understood that phase in the second memory space
When in there is multiple memory cell, being respectively used to store the variable data with the memory space corresponding color of each page.
Further, because fixed shading size of data is limited, its maximum upper limit is that a page size can accommodate
Maximum amount of data.Therefore, in the case of it further comprises page size in store instruction, it may be determined that each first memory space
Memory capacity be maximum amount of data that page size can accommodate, i.e., each first memory space with fixed size.
Further, because the synthesis output to each page in color document image from pre-print system with receiving this document
Data after the rasterization process included are carried out simultaneously, therefore, one can be synthesized when synthesizer has been received by
After the fixation shading data and variable data of the page or a number of page, the synthesis for just carrying out embodiment described in Fig. 1 is defeated
Go out process, while continue to store subsequently received data.In the process, synthesizer needs to judge above-mentioned each second storage
It is full with the presence or absence of memory capacity in space, but stored page quantity is still not up to the second of the page sum of file and deposited
Space is stored up, if in the presence of by the deposit at first of predetermined number in the second full memory space of the memory capacity and having synthesized
The variable data of page output is deleted, so as to which the variable data of certain subsequently received page is stored in into what is spared after deletion
In second memory space;If being not present, illustrate that the capacity of each second memory space uses enough, now, directly by described in
Each fixed shading data are stored in each first memory space respectively, will be each corresponding to each page in units of the page
Second variable data is stored in each second memory space respectively, and establishes storage concordance list, i.e. in embodiment described in Fig. 1
Store concordance list.
In addition, in the present embodiment, the mode of operation of each first memory space is set not allow to be repeatedly written, repeatable read
The pattern taken, the mode of operation for setting each second memory space are the repeatable pattern for reading and repeating write-in.I.e. each first
Each fixed shading data stored in memory space, being stored in change, when only allowing subsequently to synthesize each page
Read.And in order to ensure the effective and reasonable use of each second memory space, treated go through has been synthesized by above-mentioned deletion
History data, it is allowed to which each second memory space can return to write-in and read data.
Fig. 3 is the structural representation of color document image synthesizer embodiment one of the present invention, as shown in figure 3, the device
Including:
First receiving module 11, for receiving color document image synthesis process instruction, wrapped in the synthesis process instruction
Include the page number of the current page to be synthesized in the color type included in the color document image and the color document image;
First determining module 12, for determining the synthesis current page to be synthesized according to the color type and the page number
The storage address of view data needed for face, described image data include in the color document image with the color type
In each color respectively corresponding to fix it is right respectively with each color in shading data and the current page to be synthesized
The first variable data answered, each first storage that the storage address includes being respectively used to store each fixed shading data are empty
Between address and be respectively used to store the address of each second memory space of each first variable data, each fixed shading
Data and each first variable data after the color document image rasterization process to obtaining;
Processing module 13, it is described each solid for being obtained respectively from each first memory space according to the storage address
Determine shading data, obtain each first variable data from each second memory space respectively, and by each fixation of acquisition
Shading data and each first variable data synthesize the page to be synthesized to export.
The device of the present embodiment can be used for the technical scheme for performing embodiment of the method shown in Fig. 1, its realization principle and skill
Art effect is similar, and here is omitted.
Fig. 4 is the structural representation of color document image synthesizer embodiment two of the present invention, as shown in figure 4, the device
On the basis of embodiment illustrated in fig. 3, described device also includes:
Second receiving module 21, for receiving color document image store instruction, the store instruction includes the face
In color type, each fixed shading data of the color document image and the color document image corresponding to each page
Each second variable data, each second variable data are corresponding with each color in the color type respectively;
Second determining module 22, for determining memory space corresponding with each color in the color type respectively,
Each memory space includes being used to store the first memory space of the fixation shading data of corresponding color and for storing
State the second memory space of the second variable data of corresponding color in each page;
Memory module 23, for each fixed shading data to be stored in each first memory space respectively, with page
Face is that each second variable data corresponding to each page is stored in each second memory space by unit respectively, and is established
Store concordance list.
Further, the page sum in the store instruction also including the color document image;
Described device also includes:
Judge module 24, it is full with the presence or absence of memory capacity in each second memory space for judging, but deposited
The page quantity of storage is still not up to the second memory space of the page sum;
Removing module 25, if it is full for memory capacity be present, but stored page quantity is still not up to the page
Second memory space of face sum, then by the deposit at first of predetermined number in the second full memory space of the memory capacity and
The variable data for having synthesized page output is deleted.
Further, page size, the memory capacity root of each first memory space are also included in the store instruction
The maximum amount of data that can be accommodated according to the page size determines.
Specifically, the mode of operation of each first memory space is does not allow to be repeatedly written, the repeatable pattern read,
The mode of operation of each second memory space is the repeatable pattern for reading and repeating write-in.
The device of the present embodiment can be used for the technical scheme for performing embodiment of the method shown in Fig. 2, its realization principle and skill
Art effect is similar, and here is omitted.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.