CN1306383C - Image printing method - Google Patents

Image printing method 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
result
data
image
printer
printed driver
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 present invention discloses an image printing method which is applied to a driving program of a printer and the printer and comprises the following steps that the driving program of the printer obtains original image data and result image data, wherein the original image data comprises an original point, an original length and an original width, and the result image data comprises a result starting point, a result length and a result width. Furthermore, a result image is obtained after the driving program of the printer makes the magnified and contracted image treatment to the original image. The driving program of the printer calculates the proportion of magnification and contraction according to the original image data and the result image data, the driving program of the printer confirms whether the proportion of magnification and contraction is more than 1, the driving program of the printer transfers the original image data and the proportion of magnification and contraction into the printer which receives the original image data and the proportion of magnification and contraction, the printer amplifies and processes the original image data into the result image according to the proportion of magnification and contraction, and the printer prints the result image.

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, a kind of method of printing image is applied to a printed driver and a printer, it is characterized in that, includes 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, an original length and an original width, the data of described image as a result include initial point, a length and one width as a result 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.
2, a kind of method of printing image is applied to a printed driver and a printer, it is characterized in that, includes 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 confirm that whether described scaling is greater than 1;
If scaling is greater than 1, then:
Step 204, described printed driver calculate the common factor data partly of described image as a result and cutting block, with the data that obtain the cutting block and the regional corresponding relation of the data of image as a result;
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, then:
Step 211, described printed driver are carried out image according to described scaling to described raw video and are dwindled and be 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.
CNB2004100001053A 2004-01-02 2004-01-02 Image printing method Expired - Fee Related CN1306383C (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

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 Image printing method

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 东友科技股份有限公司 Control module and method for printing poster
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
CN1306383C (en) Image printing method
EP1548569A3 (en) Information processing apparatus, print job management method, information processing program, and recording medium
WO2005072162A3 (en) Image processing system and method with dynamically controlled pixel processing
EP2477414A3 (en) Method for assembling a video stream, system and computer software
EP1764743A3 (en) Image display device, image display method, computer program product, and image display system
EP1931130A3 (en) Image processing apparatus, image processing method, and program
EP1494169A3 (en) Video processing apparatus, video processing method, and computer program
WO2007096816A3 (en) Rendering an output image
EP1150248A3 (en) Digital image processing method for edge contrast enhancement using wavelet transform
WO2002096058A3 (en) Web-based file manipulating system
WO2004001666A3 (en) Image processing using probabilistic local behavior assumptions
WO2006072894A3 (en) Method of processing a video signal using quantization step sizes dynamically based on normal flow
EP1821191A3 (en) Print control program, print control apparatus, and print control method
EP1392047A3 (en) Digital document processing for image enhancement
CN1633159A (en) A method for removing image noise
EP1130547A3 (en) Image creation device
EP1143351A3 (en) Multimedia information structuring and application generating method and apparatus
EP2009580A3 (en) Information processing apparatus and control method thereof, computer program, and information processing system
CN1828580A (en) Rectangular array words frame layout method for fitting word content
EP1162734A3 (en) Non-linear distortion compensating apparatus
JP2005503080A5 (en)
CN1252985C (en) Picture picking apparatus and photograph vibration correcting method
EP1237122A3 (en) Method and apparatus for image processing
CN1667620A (en) Method and apparatus for improving PCB design efficiency
CN1604618A (en) Hand shake correcting apparatus, method and recording medium for recording program

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