CN101149838A - Layout image frame generation method and device - Google Patents

Layout image frame generation method and device Download PDF

Info

Publication number
CN101149838A
CN101149838A CNA2007101771232A CN200710177123A CN101149838A CN 101149838 A CN101149838 A CN 101149838A CN A2007101771232 A CNA2007101771232 A CN A2007101771232A CN 200710177123 A CN200710177123 A CN 200710177123A CN 101149838 A CN101149838 A CN 101149838A
Authority
CN
China
Prior art keywords
transformation matrix
coordinates
image
picture material
framing mask
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.)
Granted
Application number
CNA2007101771232A
Other languages
Chinese (zh)
Other versions
CN101149838B (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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN2007101771232A priority Critical patent/CN101149838B/en
Publication of CN101149838A publication Critical patent/CN101149838A/en
Application granted granted Critical
Publication of CN101149838B publication Critical patent/CN101149838B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The method for producing picture frame in type-setting includes: obtain the picture to be type-set; obtain the cutting-up route, frame coordinate transformation matrix and picture content coordinate transformation matrix of the said picture; produce picture frame according to the frame coordinate transformation matrix and picture content coordinate transformation matrix by the cutting-up route. Advantage: picture frame can be changed from single rectangle into complex curve to realize more kinds of and more beautiful type-setting.

Description

The generation method and the device of framing mask in a kind of the composing
Technical field
The present invention relates to typesetting technique, particularly the generation method and the device of framing mask in the composing.
Background technology
By the image that generates as various approach such as digital camera, Photoshop image processing software, all be a rectangular solid in the prior art.In software for composing, normally enter the image in the space of a whole page, also rectangular object normally.
Obviously, the frame of a rectangular object is fixed, and it will show as a simple rectangular area on the space of a whole page.Yet, the space of a whole page content that is used for setting type that is becoming increasingly abundant now, an image can not only only show as a rectangle on the space of a whole page, in fact, in most of the cases, people need image to be embedded into various forms in the contents such as literal to go, and this need combine closely the border of image and the border of other object, are lofty rectangles otherwise it will show.
Though software for composing of the prior art mostly provides Software tool to be used for manual revise size, the position of framing mask and adding node, to generate the frame that forms by complex curve more.Obviously, the deficiency of this method is its more complicated, is difficult to reach the frame effect that the user wants.
Summary of the invention
The invention provides the generation method and the device of framing mask in a kind of set type, frame is the problem of single rectangular when image is set type in order to solve in the prior art, thereby provides a kind of more both artistic and practical frame to be used for setting type.
The invention provides the generation method of framing mask in a kind of the composing, may further comprise the steps:
Obtain the image that to set type;
Obtain clip path, frame transformation matrix of coordinates, the picture material transformation matrix of coordinates of described image;
Generate framing mask according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates by clip path.
The present invention also provides the generating apparatus of framing mask in a kind of the composing, comprises image collection module, clip path acquisition module, frame transformation matrix of coordinates acquisition module, picture material transformation matrix of coordinates acquisition module, framing mask generation module, wherein:
Image collection module is used to obtain the image that need set type;
The clip path acquisition module is used to obtain the clip path of the image that described image collection module obtains;
Frame transformation matrix of coordinates acquisition module is used to obtain the frame transformation matrix of coordinates of the image that described image collection module obtains;
Picture material transformation matrix of coordinates acquisition module is used to obtain the picture material transformation matrix of coordinates that described image collection module is obtained image;
The framing mask generation module is used for generating framing mask according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates by clip path.
Beneficial effect of the present invention is as follows:
Obtain clip path, frame transformation matrix of coordinates, the picture material transformation matrix of coordinates of the image that need set type during the invention process; And generate framing mask by clip path according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates.Not only consider the factor of frame transformation matrix of coordinates and picture material matrix in the invention process,, on the basis of clip path, generate new frame simultaneously also in conjunction with these two factors.As can be seen, in the generation scheme of this framing mask, can be so that the frame of image change complicated curve into by single rectangular, thus can realize composing effect more, more attractive in appearance.
Description of drawings
Fig. 1 is the generation method implementing procedure synoptic diagram of framing mask in setting type described in the embodiment of the invention;
Fig. 2 is the generating apparatus structural representation of framing mask in setting type described in the embodiment of the invention;
Fig. 3 is the image that needs composing described in the embodiment of the invention;
Fig. 4 needs layout images to press clip path display image content synoptic diagram described in the embodiment of the invention;
Fig. 5 is that framing mask described in the embodiment of the invention generates the implementing procedure synoptic diagram;
Fig. 6 is after will scheming the A rotation change described in the embodiment of the invention, carries out effect synoptic diagram behind the mutually exclusive pattern and character with the literal piece;
Fig. 7 is for after transferring clip path to frame described in the embodiment of the invention, carries out effect synoptic diagram behind the mutually exclusive pattern and character with the literal piece.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described.
In all softwares for composing, each image object that need enter the space of a whole page generally comprises two parts, and a part is that frame portion, a part are the content of image object, is called picture material among the embodiment.Frame portion defines by the frame attribute, when the space of a whole page shows, picture material and frame is asked friendship, only demonstrates the picture material in the frame.Because being drained into the frame of the image in the space of a whole page all is a single rectangle, yet in actual process of typeset, image object need be embedded with other object such as various forms and literal piece and use, obviously, the single rectangular frame can't be combined closely with the frame of other object.For this reason, the generation method of framing mask made the frame of image change complicated curve into by single rectangular, thereby can realize composing effect more, more attractive in appearance during the embodiment of the invention provided and set type.
Fig. 1 is the generation method implementing procedure synoptic diagram of framing mask in setting type, and as shown in the figure, can may further comprise the steps in the enforcement:
Step 101, obtain the image that to set type;
Step 102, the clip path that obtains described image, frame transformation matrix of coordinates, picture material transformation matrix of coordinates;
Step 103, generate framing mask according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates by clip path, compare with the original frame of image, what obviously generated this moment is a new frame;
Step 104, described image is set type according to described generation framing mask.
In the step 102, the reduction path that obtains image obtains after specifically can adding when the image making by image processing software; And/or the image crisperding instrument by software for composing obtains.Particularly, in software for composing, there is an attribute in image itself, is called clip path.Clip path is that one or more curve is formed, and when the image that contains clip path enters the space of a whole page, only shows the picture material in the clip path, and its outer part does not show.The clip path of image has two sources, first kind can construction drawing as the time, utilize and to obtain as image processing softwares such as Photoshop, simple, by obtaining after the manual adding; Second kind can be utilized the instruments such as image crisperding of software for composing to obtain.
In the step 103, generate framing mask by clip path according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates, concrete enforcement can for:
When described frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is unit matrix, with clip path as framing mask;
When described frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is non-unit matrix, described frame transformation matrix of coordinates, the picture material transformation matrix of coordinates back of multiplying each other is obtained new transformation matrix, the coordinate put on the described clip path and the described new transformation matrix back of multiplying each other is obtained the new coordinate of each point, and the coordinate new according to described each point generates framing mask.
In actual applications, following situation can appear: after entering image, frame and image are not needed to carry out any conversion (such as convergent-divergent or rotation), but directly just generate new frame.At this moment, not needing to calculate the new transformation matrix of acquisition, all be unit matrix because do not need the matrix of conversion, but when image produced conversion, this matrix was non-unit matrix, and algorithm just need take one thing with another in the enforcement, and just need obtain new transformation matrix this moment.Feasible change action with these two matrixes generates new frame to the path.Therefore in implementing, can increase determining step, be used to judge that frame transformation matrix of coordinates, picture material transformation matrix of coordinates are that unit matrix also is non-unit matrix, and carry out corresponding step.At the frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is non-unit matrix, frame transformation matrix of coordinates and picture material transformation matrix of coordinates multiplied each other to obtain a new transformation matrix, coordinate and new matrix multiple with each point on the clip path, obtain the new coordinate of the new coordinate of this point as new clip path corresponding point, thereby obtain new clip path, and this clip path is got final product as new framing mask.
The embodiment of the invention also provides the generating apparatus of framing mask in a kind of the composing, describes below in conjunction with the concrete real-time mode of accompanying drawing to this device.
Fig. 2 is the generating apparatus structural representation of framing mask in setting type, as shown in the figure, comprise the image collection module, the framing mask generation module that link to each other with clip path acquisition module, frame transformation matrix of coordinates acquisition module, picture material transformation matrix of coordinates acquisition module respectively in the device, wherein:
Image collection module is used to obtain the image that need set type;
The clip path acquisition module is used to obtain the clip path of the image that described image collection module obtains;
Frame transformation matrix of coordinates acquisition module is used to obtain the frame transformation matrix of coordinates of the image that described image collection module obtains;
Picture material transformation matrix of coordinates acquisition module is used to obtain the picture material transformation matrix of coordinates of the image that described image collection module obtains;
The framing mask generation module is used for generating framing mask according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates by clip path.
In the clip path acquisition module, can comprise first acquiring unit and/or second acquisition unit, wherein:
First acquiring unit obtains described clip path after being used for adding when the image making by image processing software, such as can construction drawing as the time, utilize and obtain as image processing softwares such as Photoshop, simple, by obtaining after the manual adding;
Second acquisition unit is used for obtaining described clip path by the image crisperding instrument of software for composing, obtains such as the instruments such as image crisperding that can utilize software for composing.
The framing mask generation module can also comprise judging unit, first generation unit, second generation unit in the device, wherein:
Judging unit, be used to judge that described frame transformation matrix of coordinates, picture material transformation matrix of coordinates are that unit matrix also is non-unit matrix, when described frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is unit matrix, triggering first generation unit handles, when described frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is non-unit matrix, trigger second generation unit and handle;
First generation unit is used for clip path as framing mask;
Second generation unit, be used for described frame transformation matrix of coordinates, the picture material transformation matrix of coordinates back of multiplying each other is obtained new transformation matrix, the coordinate put on the described clip path and the described new transformation matrix back of multiplying each other is obtained the new coordinate of each point, and the coordinate new according to described each point generates framing mask.
Can further include type-setting module in the device, be used for described image being set type according to the framing mask that described framing mask generation module generates.
Again the generation of framing mask being implemented to lift an example in addition below describes.Describe image and literal piece that need shown in Figure 3 are set type among the embodiment and carried out image mixed character typeset.
The image of Fig. 3 for needing to set type is a pair of shoes shown in the figure, is called figure A among the embodiment.Fig. 4 presses clip path display image content synoptic diagram for needing layout images, is called figure B among the embodiment.Fig. 5 as shown in the figure, can comprise the steps: in the enforcement for framing mask generates the implementing procedure synoptic diagram
Obtain out the clip path that needs layout images in step 501, the image that from the space of a whole page, enters, be that figure A is obtained in this example, effect after obtaining is shown in figure B, and as can be seen from the figure, the frame of image becomes the frame that clip path surrounds by initial rectangle;
Step 502, since in the space of a whole page framing mask may be rotated, operation such as convergent-divergent, so from the attribute of frame, obtain the transformation matrix of coordinates of frame;
Step 503, obtain the transformation matrix of coordinates of picture material, because entering the image object of the space of a whole page is made up of two parts, a part is the frame object that comprises image, another part is a picture material itself, and image itself also may exist geometric transformations such as rotation, convergent-divergent, so need extract the transformation matrix of coordinates of image from the attribute of image itself;
Step 504, respectively the transformation matrix of coordinates of frame and the transformation matrix of coordinates of picture material are affacted on the clip path, generate a new clip path;
In the enforcement, the transformation matrix of coordinates of the transformation matrix of coordinates of frame and picture material multiplied each other obtain a new transformation matrix, coordinate and new matrix multiple with each point on the clip path, obtain the new coordinate of the new coordinate of this point, thereby obtain new clip path as new clip path corresponding point;
Step 505, the frame attribute in the image object attribute is replaced with new clip path, promptly obtained the new frame of image;
Step 506, refresh and show image object with new clip path, because clip path must be included in this rectangular area of the minimum outsourcing frame of image object, so affected viewing area is inevitable in this rectangular area, refresh this zone, can show image object with new clip path.
By after the above-mentioned enforcement, distinguish as shown in the figure with the effect of implementing not according to the manner:
Fig. 6 is after will scheming the A rotation change, carries out effect synoptic diagram behind the mutually exclusive pattern and character with the literal piece, and as can be seen, the outer zone of clip path does not enter literal in the image, and effect is obviously bad; Fig. 7 is for after transferring clip path to frame, carries out effect synoptic diagram behind the mutually exclusive pattern and character with the literal piece, and as shown in the figure, the effect of this moment obviously will promote a lot.
As can be seen from the above-described embodiment, the scheme of generation framing mask provided by the invention makes the frame of image change complicated curve into by single rectangular, thereby can realize composing effect more, more attractive in appearance.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (8)

1. the generation method of framing mask in the composing is characterized in that, may further comprise the steps:
Obtain the image that to set type;
Obtain clip path, frame transformation matrix of coordinates, the picture material transformation matrix of coordinates of described image;
Generate framing mask according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates by clip path.
2. the method for claim 1 is characterized in that, the described reduction path that obtains described image is specially:
Obtain after adding when the image making by image processing software;
And/or the image crisperding instrument by software for composing obtains.
3. the method for claim 1 is characterized in that, generates framing mask according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates by clip path, is specially:
When described frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is unit matrix, with clip path as framing mask;
When described frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is non-unit matrix, described frame transformation matrix of coordinates, the picture material transformation matrix of coordinates back of multiplying each other is obtained new transformation matrix, the coordinate put on the described clip path and the described new transformation matrix back of multiplying each other is obtained the new coordinate of each point, and the coordinate new according to described each point generates framing mask.
4. the method for claim 1 is characterized in that, further comprises the steps:
Framing mask according to described generation is set type to described image.
5. the generating apparatus of framing mask in the composing is characterized in that, comprises image collection module, clip path acquisition module, frame transformation matrix of coordinates acquisition module, picture material transformation matrix of coordinates acquisition module, framing mask generation module, wherein:
Image collection module is used to obtain the image that need set type;
The clip path acquisition module is used to obtain the clip path of the image that described image collection module obtains;
Frame transformation matrix of coordinates acquisition module is used to obtain the frame transformation matrix of coordinates of the image that described image collection module obtains;
Picture material transformation matrix of coordinates acquisition module is used to obtain the picture material transformation matrix of coordinates of the image that described image collection module obtains;
The framing mask generation module is used for generating framing mask according to described frame transformation matrix of coordinates, picture material transformation matrix of coordinates by clip path.
6. device as claimed in claim 5 is characterized in that, described clip path acquisition module comprises first acquiring unit and/or second acquisition unit, wherein:
First acquiring unit obtains described clip path after being used for adding when the image making by image processing software;
Second acquisition unit is used for obtaining described clip path by the image crisperding instrument of software for composing.
7. device as claimed in claim 5 is characterized in that, described framing mask generation module comprises judging unit, first generation unit, second generation unit, wherein:
Judging unit, be used to judge that described frame transformation matrix of coordinates, picture material transformation matrix of coordinates are that unit matrix also is non-unit matrix, when described frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is unit matrix, triggering first generation unit handles, when described frame transformation matrix of coordinates, when the picture material transformation matrix of coordinates is non-unit matrix, trigger second generation unit and handle;
First generation unit is used for clip path as framing mask;
Second generation unit, be used for described frame transformation matrix of coordinates, the picture material transformation matrix of coordinates back of multiplying each other is obtained new transformation matrix, the coordinate put on the described clip path and the described new transformation matrix back of multiplying each other is obtained the new coordinate of each point, and the coordinate new according to described each point generates framing mask.
8. device as claimed in claim 5 is characterized in that, further comprises type-setting module, is used for according to the framing mask that described framing mask generation module generates described image being set type.
CN2007101771232A 2007-11-09 2007-11-09 Layout image frame generation method and device Expired - Fee Related CN101149838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101771232A CN101149838B (en) 2007-11-09 2007-11-09 Layout image frame generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101771232A CN101149838B (en) 2007-11-09 2007-11-09 Layout image frame generation method and device

Publications (2)

Publication Number Publication Date
CN101149838A true CN101149838A (en) 2008-03-26
CN101149838B CN101149838B (en) 2010-06-02

Family

ID=39250349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101771232A Expired - Fee Related CN101149838B (en) 2007-11-09 2007-11-09 Layout image frame generation method and device

Country Status (1)

Country Link
CN (1) CN101149838B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923724A (en) * 2009-12-31 2010-12-22 北京书生国际信息技术有限公司 A kind of page method of cutting out, device and page-description language
CN101430794B (en) * 2008-12-15 2011-06-15 北大方正集团有限公司 Method and apparatus for implementing arbitrary clipping effect
CN101436305B (en) * 2008-12-16 2012-07-04 北大方正集团有限公司 Method and apparatus for drafting symbol lace
CN102799571A (en) * 2011-05-23 2012-11-28 成都科创知识产权研究所 Word document image generating method and system
CN109766530A (en) * 2018-12-13 2019-05-17 东软集团股份有限公司 Generation method, device, storage medium and the electronic equipment of chart frame
CN112489157A (en) * 2020-12-18 2021-03-12 广州视源电子科技股份有限公司 Photo frame drawing method, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0778140A (en) * 1993-06-16 1995-03-20 Brother Ind Ltd Document processor
JP2004070395A (en) * 2002-08-01 2004-03-04 I L C:Kk Device for generating part of graphical user interface, generating method, generator program and computer-readable recording medium storing the program
CN100424683C (en) * 2006-11-22 2008-10-08 北京北大方正电子有限公司 A typesetting method of character in monotonic range

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430794B (en) * 2008-12-15 2011-06-15 北大方正集团有限公司 Method and apparatus for implementing arbitrary clipping effect
CN101436305B (en) * 2008-12-16 2012-07-04 北大方正集团有限公司 Method and apparatus for drafting symbol lace
CN101923724A (en) * 2009-12-31 2010-12-22 北京书生国际信息技术有限公司 A kind of page method of cutting out, device and page-description language
CN101923724B (en) * 2009-12-31 2012-10-10 北京书生国际信息技术有限公司 Page cutting method
CN102799571A (en) * 2011-05-23 2012-11-28 成都科创知识产权研究所 Word document image generating method and system
CN109766530A (en) * 2018-12-13 2019-05-17 东软集团股份有限公司 Generation method, device, storage medium and the electronic equipment of chart frame
CN109766530B (en) * 2018-12-13 2023-07-07 东软集团股份有限公司 Method and device for generating chart frame, storage medium and electronic equipment
CN112489157A (en) * 2020-12-18 2021-03-12 广州视源电子科技股份有限公司 Photo frame drawing method, device and storage medium
CN112489157B (en) * 2020-12-18 2024-03-19 广州视源电子科技股份有限公司 Photo frame drawing method, device and storage medium

Also Published As

Publication number Publication date
CN101149838B (en) 2010-06-02

Similar Documents

Publication Publication Date Title
CN101149838B (en) Layout image frame generation method and device
CN111612873B (en) GIF picture generation method and device and electronic equipment
CN101521004B (en) Electronic device with image processing function and image processing method thereof
CN107392974A (en) Picture generation method and device and terminal equipment
US20080291294A1 (en) Mobile Terminal Capable of Modifying a Flash Image and Method of Modifying a Flash Image Therewith
CN113126862B (en) Screen capture method and device, electronic equipment and readable storage medium
JP2008513898A5 (en)
CN113852757B (en) Video processing method, device, equipment and storage medium
JP2006285475A (en) Interface technology using digital camera function for multi-dimensional digital image composite processing
JP6011092B2 (en) Image processing apparatus, image tone conversion method, and program
CN111639474A (en) Document style reconstruction method and device and electronic equipment
JP2011192008A (en) Image processing system and image processing method
JP2008176424A (en) Parts catalog preparation system, parts catalog preparation method, program for making computer execute and computer-readable recording medium
JP2004110427A5 (en)
CN115037874A (en) Photographing method and device and electronic equipment
CN103839217A (en) Watermark image realization method
CN113411251A (en) Multi-message distribution method and device, electronic equipment and readable storage medium
CN105844689A (en) Method of using dimensional space technology for multidimensional data synchronization management
JP2005284882A5 (en)
CN101350896B (en) Method for solving dynamic switch of GUI graphical system under various display standard
CN101393575A (en) System and method for constructing non-attribute parts
JP4464258B2 (en) Pattern creation processing device
US7564592B2 (en) Color image edge enhancement method
DE102024100480A1 (en) DEVICE FOR IDENTIFYING MEDICINAL PRODUCTS, METHOD FOR IDENTIFYING MEDICINAL PRODUCTS AND PROGRAM
CN116501225A (en) Image capturing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100602

Termination date: 20191109