[go: up one dir, main page]

CN1306383C - A method of printing images - Google Patents

A method of printing images Download PDF

Info

Publication number
CN1306383C
CN1306383C CNB2004100001053A CN200410000105A CN1306383C CN 1306383 C CN1306383 C CN 1306383C CN B2004100001053 A CNB2004100001053 A CN B2004100001053A CN 200410000105 A CN200410000105 A CN 200410000105A CN 1306383 C CN1306383 C CN 1306383C
Authority
CN
China
Prior art keywords
image
data
result
printer
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2004100001053A
Other languages
Chinese (zh)
Other versions
CN1641558A (en
Inventor
陈国泰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Primax Electronics Ltd
Original Assignee
Primax Electronics Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Primax Electronics Ltd filed Critical Primax Electronics Ltd
Priority to CNB2004100001053A priority Critical patent/CN1306383C/en
Publication of CN1641558A publication Critical patent/CN1641558A/en
Application granted granted Critical
Publication of CN1306383C publication Critical patent/CN1306383C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

The invention discloses a method for printing images, which is applied to a printer driver and a printer and comprises the following steps: the printer driver obtains data of an original image and data of a result image, wherein the data of the original image comprises an original initial point, an original length and an original width, the data of the result image comprises a result initial point, a result length and a result width, and the result image is obtained by performing image processing on the original image by the driver; the driver calculates the scaling according to the data of the original image and the data of the result image; the driver confirms whether the scaling is larger than 1; if the image size is larger than 1, the driving program transmits the data of the original image and the scaling to the printer; the printer amplifies the original image according to the data and the scaling to form a result image, and prints and ends; if the image size is less than 1 or equal to 1, the original image is reduced to a result image according to the scaling ratio, and the result image is transmitted to a printer to print the result image and the printing is finished.

Description

A kind of method of printing image
Technical field
The present invention relates to a kind of Method of printing, be applied to printed driver and printer, relate in particular to a kind of method that can make the printing image of image processing to raw video.
Background technology
When needs are done the image printing operation, and when using printer, must make printed driver that raw video is transferred to printer earlier, print.As for must going out to dwindle or during amplified images with printer prints, then by printed driver raw video is dwindled earlier or amplifies, afterwards, by printed driver image as a result is transferred to printer again, and printing gets final product.In addition,, after then raw video being dwindled or amplifying, carry out cutting action, be transferred to printer again by printed driver if the image as a result that prints off needs cutting.
Certainly, at raw video and when the magnification ratio of image is big as a result, because the reason that stores can take many memory headrooms, and aspect the transmission between printed driver and printer, also can spend many times, and can't improve processing speed.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method of printing image, expends many memory headrooms to solve in the prior art, and wastes the problem of a lot of times aspect the transmission between printed driver and printer.
To achieve these goals, the invention provides a kind of method of printing image, be applied to a printed driver and a printer, include the following step: step 101, described printed driver is obtained the data of raw video and the data of image as a result, the data of wherein said raw video include an original initial point, one original length and an original width, the data of described image as a result include an initial point as a result, one length and one width as a result as a result, and described image as a result for the image processing of described raw video being done to amplify/dwindle by described printed driver after gained; Step 102, described printed driver calculates scaling according to the data of described raw video and the data of described image as a result; Step 103, described printed driver confirm that whether scaling is greater than 1; If scaling is greater than 1, then: step 104, described printed driver are transmitted the data of described raw video and described scaling to printer; Step 105, described printer receive the data and the described scaling of described raw video; Step 106, described printer are carried out processing and amplifying according to described scaling to described raw video and are become described image as a result; And step 107, the described image as a result of described printer prints, and end operation; If scaling is less than 1 or equal 1, then: step 108, described printed driver are dwindled described raw video according to described scaling and are processed into described image as a result; Step 109, described printed driver are transmitted described image as a result to described printer; Step 110, described printer receive described image as a result; And step 111, the described image as a result of described printer prints, and end operation.
For the better above-mentioned purpose that realizes, the present invention also provides the method for another kind of printing image, its characteristics are, include the following step: step 201, described printed driver is obtained the data of a raw video, one as a result image data and one the cutting block data, the data of wherein said raw video include an original initial point, one original length and an original width, the data of described image as a result include an initial point as a result, one length and one width as a result as a result, and described image as a result for the image processing of described raw video being done to amplify/dwindle by described printed driver after gained, and described cutting block is from the described image that image cut down as a result, and the data of cutting block are from described image data as a result; Step 202, described printed driver calculates a scaling according to the data of described raw video and the data of described image as a result; Step 203, described printed driver confirms that whether described scaling is greater than 1: if scaling is greater than 1, step 204 then, described printed driver calculates the common factor part of described image as a result and described cutting block, to obtain described cutting block; Step 205, described printed driver be according to the regional corresponding relation of the data of the data of described cutting block and described image as a result, and calculate the data that have a corresponding block of same area corresponding relation with the data of described raw video; Step 206, described printed driver calculates an error displacement according to the data of described cutting block and the data of described corresponding block; Step 207, described printed driver are transmitted the data of described corresponding block, described error displacement and described scaling to described printer; Step 208, described printer receive the data of described corresponding block, described error displacement and described scaling; Step 209, described printer are carried out the image processing and amplifying according to described scaling and described error displacement to described corresponding block and are become described cutting block; And step 210, the described cutting block of described printer prints, and end operation; If scaling is less than 1 or equal 1, step 211 then, described printed driver carries out image according to described scaling to described raw video to be dwindled and is processed into described image as a result; Step 212, described printed driver cuts described image as a result according to the data of described cutting block; Step 213, described printed driver are transmitted described cutting block to described printer; Step 214, described printer receive described cutting block; And step 215, the described cutting block of described printer prints, and end operation.
Effect of the present invention is, after by printed driver raw video being done image processing, can be transferred to printer, the image processing of being correlated with by printer, so, just can solve and expend many memory headrooms in the past, and aspect the transmission between printed driver and printer, spend many times, and problem that can't speed up processing.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the raw video and the synoptic diagram of image as a result;
Fig. 2 A, 2B are for printing the process flow diagram of the method for image among the present invention;
Fig. 3 is raw video, the synoptic diagram of image, cutting block and corresponding block as a result;
Fig. 4 A, 4B, 4C are for printing another process flow diagram of the method for image among the present invention.
Wherein, Reference numeral:
The 10-raw video
20-is image as a result
The corresponding block of 30-
50-cuts block
Embodiment
See also Fig. 1, be the raw video and the synoptic diagram of image as a result, the initial image of raw video 10 for carrying out image processing by printed driver, and the data of raw video 10 include original initial point (SrcX, SrcY), original length (SrcY), original width (SrcX), as a result image 20 for the image processing of raw video being amplified/dwindling by printed driver after resulting image, and as a result the data of image 20 include as a result initial point (DestX, DestY), length (DestY), width (DestX) as a result as a result.
Fig. 2 A, 2B are that the method includes the following step to the flow process that raw video dwindles or amplified images is handled for printing the process flow diagram of the method for image among the present invention, also please refer to Fig. 1 simultaneously.
Step 101, printed driver obtain the data of raw video and the data of image as a result, to carry out follow-up image processing step, certainly the data of these raw videos and as a result the data of image introduce in front.
Step 102, printed driver calculates scaling according to the data of raw video and the data of image as a result, just with raw video as benchmark, calculate raw video is dwindled or amplification multiple, just can obtain image as a result.
Step 103, printed driver confirms that whether scaling is greater than 1, if, the expression raw video must amplify, just can obtain image as a result, and proceed step 104, if not, the expression raw video must dwindle, just can obtain image as a result, so execution in step 108 is dwindled raw video according to scaling to be processed into image as a result, step 109 by printed driver, again by printed driver transmission as a result image to printer, step 110, and receive image as a result by printer, and step 111, printer prints is image as a result, therefore the image processing of raw video being dwindled at printed driver after becoming as a result image, just can make printer prints go out image as a result.
Step 104, the data of printed driver transmission raw video and scaling carry out follow-up flow process to printer for printer.
Then execution in step 105, printer receives the data and the scaling of raw video, and step 106 becomes image as a result so printer carries out processing and amplifying according to scaling to raw video, and final step 107 is by printer prints image as a result.
Therefore, after by printed driver raw video being done image processing, can be transferred to printer, afterwards, do relevant image processing, so by printer, just can solve and expend many memory headrooms in the past, and aspect the transmission between printed driver and printer, spend many times, and problem that can't speed up processing.
See also Fig. 3, be raw video, image as a result, the synoptic diagram of cutting block and corresponding block, the initial image of raw video 10 for carrying out image processing by printed driver, and the data of raw video 10 include original initial point (SrcX, SrcY), original length (SrcY), original width (SrcX), image 20 is for being amplified the image of gained after the image processing of dwindling to raw video by printed driver as a result, and the data of image 20 include initial point (DestX as a result as a result, DestY), length (DestY) as a result, width (DestX) as a result, the image of cutting block 50 for being cut down from image 20 as a result, the regional corresponding relation of corresponding block 30 and 10 of raw videos are then and cut block 50 and the regional corresponding relation of 20 of images is identical as a result.
As for Fig. 4 A, 4B, 4C is another process flow diagram of printing the method for image among the present invention, be that raw video is done to dwindle or amplify, and the flow process of the image processing of cutting, the method includes the following step, also see also simultaneously Fig. 3, be raw video, the synoptic diagram of image, cutting block and corresponding block as a result.
Step 201, printed driver obtain the data of raw video, as a result image data and the cutting block data, to carry out the step of follow-up image processing, certainly the data of these raw videos, as a result image data and the cutting block data did introduction in front.
Step 202, printed driver calculates scaling according to the data of raw video and the data of image as a result, just with raw video as benchmark, calculate raw video is dwindled or amplification multiple, just can obtain image as a result.
Step 203, printed driver confirms that whether scaling is greater than 1, if, the expression raw video must amplify, just can obtain image as a result, and proceed step 204, if not, the expression raw video must dwindle, just can obtain image as a result, so carry out step 211, according to scaling raw video is dwindled being processed into image as a result, step 212 by printed driver, image is as a result cut according to the data of cutting block by printed driver again, step 213, and printed driver transmission cutting block is to printer, step 214, and by printer reception cutting area piece, step 215, and printer prints cutting block, the therefore image processing of raw video being dwindled at printed driver, after becoming as a result image, just cut,, and make printer prints go out to cut block with one-tenth cutting block.
Step 204, printed driver calculate the common factor part of image as a result and cutting block, to obtain cutting block.
Step 205, printed driver is according to the data and the regional corresponding relation of the data of image as a result of cutting block, and calculate the data that have the corresponding block of same area corresponding relation with the data of raw video, image processing part of this time being done just, be by the regional corresponding relation of image as a result, obtain the regional corresponding relation of raw video and corresponding block with the cutting block.
Step 206, printed driver is according to the data of cutting block and the data of corresponding block, calculate the error displacement, as shown in the figure, when scaling is three (just amplifying three times), lines L1 in raw video, L2, L3 also will be exaggerated three times, so necessary error of calculation displacement, which bar line of lines is corresponding to which lines in the raw video after just obtaining amplifying, it is effective lines that the second line of L3 shown in the figure begins, be the error displacement (OffsetY) aspect length, certainly, also there is identical situation the width aspect.
Step 207, printed driver are transmitted data, error displacement and the scaling of corresponding block to printer, carry out follow-up flow process for printer.
Then, step 208, printer receives data, error displacement and the scaling of corresponding block, so carry out step 209, printer carries out the image processing and amplifying according to scaling and error displacement to corresponding block and becomes the cutting block, and is last, step 210 is by printer prints cutting block.
Certainly, the present invention also can have other various embodiments, and under the situation that does not deviate from spirit of the present invention and essence thereof, the structure of device can be improved through further, but these corresponding changes all should belong to the protection domain of the appended claim of invention.

Claims (2)

1、一种打印影像的方法,应用于一打印机驱动程序及一打印机,其特征在于,包括有下列步骤:1. A method for printing images, applied to a printer driver and a printer, is characterized in that, comprising the following steps: 步骤101,所述打印机驱动程序取得原始影像的数据及结果影像的数据,其中所述原始影像的数据包括有一原始始点、一原始长度及一原始宽度,所述结果影像的数据包括有一结果始点、一结果长度及一结果宽度,且所述结果影像为由所述打印机驱动程序对所述原始影像作放大/缩小的影像处理后所得;Step 101, the printer driver obtains the data of the original image and the data of the result image, wherein the data of the original image includes an original starting point, an original length and an original width, and the data of the result image includes a starting point of the result, a result length and a result width, and the result image is obtained after image processing of enlarging/reducing the original image by the printer driver; 步骤102,所述打印机驱动程序依所述原始影像的数据及所述结果影像的数据,计算出缩放比例;Step 102, the printer driver calculates the scaling ratio according to the data of the original image and the data of the result image; 步骤103,所述打印机驱动程序确认缩放比例是否大于1;Step 103, the printer driver confirms whether the scaling ratio is greater than 1; 如果缩放比例大于1,则:If the zoom factor is greater than 1, then: 步骤104,所述打印机驱动程序传输所述原始影像的数据及所述缩放比例至打印机;Step 104, the printer driver transmits the data of the original image and the scaling ratio to the printer; 步骤105,所述打印机接收所述原始影像的数据及所述缩放比例;Step 105, the printer receives the data of the original image and the scaling ratio; 步骤106,所述打印机依所述缩放比例对所述原始影像进行放大处理成所述结果影像;及Step 106, the printer enlarges the original image according to the scaling ratio to generate the result image; and 步骤107,所述打印机打印所述结果影像,并结束操作;Step 107, the printer prints the result image, and ends the operation; 如果缩放比例小于1或等于1,则:If the scaling factor is less than or equal to 1, then: 步骤108,所述打印机驱动程序依所述缩放比例将所述原始影像缩小处理成所述结果影像;Step 108, the printer driver reduces the original image to the result image according to the scaling ratio; 步骤109,所述打印机驱动程序传输所述结果影像至所述打印机;Step 109, the printer driver transmits the result image to the printer; 步骤110,所述打印机接收所述结果影像;及Step 110, the printer receives the result image; and 步骤111,所述打印机打印所述结果影像,并结束操作。Step 111 , the printer prints the resulting image, and ends the operation. 2、一种打印影像的方法,应用于一打印机驱动程序及一打印机,其特征在于,包括有下列步骤:2. A method for printing images, applied to a printer driver and a printer, characterized in that it includes the following steps: 步骤201,所述打印机驱动程序取得一原始影像的数据、一结果影像的数据及一切割区块的数据,其中所述原始影像的数据包括有一原始始点、一原始长度及一原始宽度,所述结果影像的数据包括有一结果始点、一结果长度及一结果宽度,且所述结果影像为由所述打印机驱动程序对所述原始影像作放大/缩小的影像处理后所得,且所述切割区块为从所述结果影像所切割下来的影像,且切割区块的数据是来自所述结果影像数据;Step 201, the printer driver obtains data of an original image, data of a result image and data of a cutting block, wherein the data of the original image includes an original starting point, an original length and an original width, the The data of the result image includes a result starting point, a result length and a result width, and the result image is obtained after image processing of enlarging/reducing the original image by the printer driver, and the cutting block is an image cut out from the result image, and the data of the cutting block is from the result image data; 步骤202,所述打印机驱动程序依所述原始影像的数据及所述结果影像的数据,计算出一缩放比例;Step 202, the printer driver calculates a scaling ratio according to the data of the original image and the data of the result image; 步骤203,所述打印机驱动程序确认所述缩放比例是否大于1;Step 203, the printer driver confirms whether the scaling ratio is greater than 1; 如果缩放比例大于1,则:If the zoom factor is greater than 1, then: 步骤204,所述打印机驱动程序计算出所述结果影像和切割区块的交集部份的数据,以获得切割区块的数据与结果影像的数据的区域对应关系;Step 204, the printer driver calculates the data of the intersection of the result image and the cutting block, so as to obtain the area correspondence between the data of the cutting block and the data of the result image; 步骤205,所述打印机驱动程序依所述切割区块的数据与所述结果影像的数据的区域对应关系,而计算出与所述原始影像的数据具有相同区域对应关系的一对应区块的数据;Step 205, the printer driver calculates the data of a corresponding block having the same area correspondence with the original image data according to the area correspondence between the data of the cutting block and the data of the result image ; 步骤206,所述打印机驱动程序依所述切割区块的数据及所述对应区块的数据,计算出一误差位移量;Step 206, the printer driver calculates an error displacement according to the data of the cutting block and the data of the corresponding block; 步骤207,所述打印机驱动程序传输所述对应区块的数据、所述误差位移量及所述缩放比例至所述打印机;Step 207, the printer driver transmits the data of the corresponding block, the error displacement and the scaling ratio to the printer; 步骤208,所述打印机接收所述对应区块的数据、所述误差位移量及所述缩放比例;Step 208, the printer receives the data of the corresponding block, the error displacement and the scaling ratio; 步骤209,所述打印机依所述缩放比例及所述误差位移量对所述对应区块进行影像放大处理成所述切割区块;及Step 209, the printer performs image enlargement processing on the corresponding block according to the scaling ratio and the error displacement amount to form the cutting block; and 步骤210,所述打印机打印所述切割区块,并结束操作;Step 210, the printer prints the cutting block, and ends the operation; 如果缩放比例小于1或等于1,则:If the scaling factor is less than or equal to 1, then: 步骤211,所述打印机驱动程序依所述缩放比例对所述原始影像进行影像缩小处理成所述结果影像;Step 211, the printer driver performs image reduction processing on the original image according to the scaling ratio to form the result image; 步骤212,所述打印机驱动程序依所述切割区块的数据对所述结果影像进行切割;Step 212, the printer driver cuts the resulting image according to the data of the cutting block; 步骤213,所述打印机驱动程序传输所述切割区块至所述打印机;Step 213, the printer driver transmits the cutting block to the printer; 步骤214,所述打印机接收所述切割区块;及Step 214, the printer receives the cutting block; and 步骤215,所述打印机打印所述切割区块,并结束操作。Step 215, the printer prints the cutting block, and ends the operation.
CNB2004100001053A 2004-01-02 2004-01-02 A method of printing images Expired - Fee Related CN1306383C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100001053A CN1306383C (en) 2004-01-02 2004-01-02 A method of printing images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100001053A CN1306383C (en) 2004-01-02 2004-01-02 A method of printing images

Publications (2)

Publication Number Publication Date
CN1641558A CN1641558A (en) 2005-07-20
CN1306383C true CN1306383C (en) 2007-03-21

Family

ID=34866631

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100001053A Expired - Fee Related CN1306383C (en) 2004-01-02 2004-01-02 A method of printing images

Country Status (1)

Country Link
CN (1) CN1306383C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472025B (en) * 2007-12-28 2010-12-15 东友科技股份有限公司 Poster printing control module and method thereof
CN101923704B (en) * 2009-06-12 2012-09-05 深圳市融创天下科技股份有限公司 Adaptive image scaling method
CN103049227B (en) * 2011-10-17 2016-04-13 山东新北洋信息技术股份有限公司 Image scaling print control program and device and print system
CN104228369B (en) * 2014-08-25 2017-01-18 沈阳东软医疗系统有限公司 Printing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5745659A (en) * 1996-04-25 1998-04-28 Hewlett-Packard Company Versatile scaling of drawings
CN1097944C (en) * 1996-09-02 2003-01-01 三星电子株式会社 Apparatus and method for modifying enlarged ratio or reduced ratio of image
US20030174346A1 (en) * 2002-03-15 2003-09-18 Canon Kabushiki Kaisha Image processing method and apparatus, and printer driver

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5745659A (en) * 1996-04-25 1998-04-28 Hewlett-Packard Company Versatile scaling of drawings
CN1097944C (en) * 1996-09-02 2003-01-01 三星电子株式会社 Apparatus and method for modifying enlarged ratio or reduced ratio of image
US20030174346A1 (en) * 2002-03-15 2003-09-18 Canon Kabushiki Kaisha Image processing method and apparatus, and printer driver

Also Published As

Publication number Publication date
CN1641558A (en) 2005-07-20

Similar Documents

Publication Publication Date Title
EP1717692A3 (en) Image processing apparatus, image processing method, and image processing program
EP1742163A3 (en) Image forming method, image forming system, image forming apparatus, driver program, information processing apparatus, and license management server
CN1306383C (en) A method of printing images
EP2477414A3 (en) Method for assembling a video stream, system and computer software
JP2010263342A5 (en)
CN1235747C (en) Printed image alignment control
EP1237122A3 (en) Method and apparatus for image processing
EP1549079A3 (en) Apparatus and method for lost block concealment in an image transmission system
CN1604618A (en) Hand shake correcting apparatus, method and recording medium for recording program
JP2009169334A5 (en)
CN1655576A (en) Image scanning method and apparatus
JP2006510272A5 (en)
US7391530B2 (en) Printing apparatus
CN1549109A (en) Printing method capable of simultaneously performing scaling, merging and outputting of contents
JP2004159325A5 (en)
CN1632785A (en) A method of appending markup at the moment of page rasterization
EP1582934A3 (en) Apparatus, method and program product for suppressing waviness of features to be printed using photolithographic systems
CN1554533A (en) DI COM printing method for realizing random format composing layout
CN110414480A (en) Training image generation method and electronic device
JP2011066694A (en) Pixel interpolation device, pixel interpolation method, and image reading apparatus
US8711426B2 (en) Methods and systems for identifying and changing resolutions to cause an aspect ratio of a printed image to match an aspect ratio of image data
CN1780357A (en) Apparatus and method for trimming picture in digital camera
JP2008301447A5 (en)
CN101078974A (en) Printing system and method
CN1824517A (en) Print data compiling device and method, print data compiling program, and printing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: ZHISHEN SCIENCE & TECHNOLOGY CO. LTD.

Free format text: FORMER OWNER: DEXIN SCIENCE + TECHNOLOGY CO., LTD.

Effective date: 20061103

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20061103

Address after: Taipei city of Taiwan Province

Applicant after: Zhishen Science and Technology Co., Ltd.

Address before: Taipei city of Taiwan Province

Applicant before: Destiny Technology Corporation

C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070321

Termination date: 20140102