CN104331915A - Method for processing image by using material - Google Patents

Method for processing image by using material Download PDF

Info

Publication number
CN104331915A
CN104331915A CN201410548669.4A CN201410548669A CN104331915A CN 104331915 A CN104331915 A CN 104331915A CN 201410548669 A CN201410548669 A CN 201410548669A CN 104331915 A CN104331915 A CN 104331915A
Authority
CN
China
Prior art keywords
image
laminin
pending image
base map
information
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.)
Pending
Application number
CN201410548669.4A
Other languages
Chinese (zh)
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.)
Xiamen Meitu Technology Co Ltd
Original Assignee
Xiamen Meitu Technology 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 Xiamen Meitu Technology Co Ltd filed Critical Xiamen Meitu Technology Co Ltd
Priority to CN201410548669.4A priority Critical patent/CN104331915A/en
Publication of CN104331915A publication Critical patent/CN104331915A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method for processing an image by using a material. Through saving the material as a PSD file format and analyzing the material in the effect processing process of an image to be processed, the size information, pattern information and display position information contained in the material are obtained, then the image to be processed is subjected to effect processing according to the information, a result image is rapidly obtained, due to the universality of the file format, other programs can rapidly use the material, the material effect can be rapidly executed and used, and the time cost of communication and development is saved.

Description

A kind of method utilizing material to process image
Technical field
The present invention relates to technical field of image processing, particularly a kind of method utilizing material to process image.
Background technology
In prior art, image is carried out to the interpolation of material, often all material is made to be combined better with image by user-defined format, but in fact this causes the disunity of form, and the communication cost too increased between material designer and image developer, and owing to being user-defined format, reenact rule after making developer need to understand the integrated demand of designer, communication process is complicated, wastes a large amount of time and efforts.
Summary of the invention
The present invention, for solving the problem, provides a kind of method utilizing material to process image, and not only versatility is good for it, and algorithm is simple.
For achieving the above object, the technical solution used in the present invention is:
The method utilizing material to process image, is characterized in that, comprises the following steps:
10. Material for design, and material is saved as PSD file layout;
The material of the 20. pending images of loading and described PSD file layout;
Material described in 30. pairs is resolved, and obtains the dimension information, pattern-information and the display position information that comprise in described material;
40. carry out effect process according to the information comprised in described material to pending image, obtain result images.
Preferably, described dimension information mainly refers to the base map size of this material, creates a transparent base map during Material for design, and namely the size of this base map represents the full-size of the pending image that described material is supported.
Preferably, if the deviation post of the every laminin material in the described described material of display position information spinner and base map, this deviation post is the display position of every laminin material in pending image.
Preferably, the computing method of the described display position of every laminin material in pending image are specially: the deviation post first obtaining this laminin material and base map, then by the size of this deviation post divided by base map, then be multiplied by the size of pending image again, the value of gained is the display position of this laminin material in pending image.
Preferably, in described step 40, according to the information comprised in described material, effect process is carried out to pending image, mainly according to material number of plies order from top to bottom, pending image is carried out to the effect process of every laminin material.
The invention has the beneficial effects as follows:
A kind of method utilizing material to process image of the present invention, it is by saving as PSD file layout by material, and in the effect process process of pending image, described material is resolved, obtain the dimension information comprised in described material, pattern-information and display position information, then according to this information, effect process is carried out to pending image, thus obtain result images fast, due to the versatility of this file layout, make other program also can use this material rapidly, material effect is performed and use rapidly, save the time cost of linking up with exploitation.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is that a kind of material that utilizes of the present invention is to the general flow chart of the method that image processes.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Photoshop Document (PSD), be the professional format of the image processing software Photoshop of famous Adobe company, this form can store layer all in Photoshop, the information such as passage, reference line, note and color mode.Because PSD file retains all original digital image data information, secondary editor more for convenience, and the file due to PSD form is a kind of graphics file format, therefore, use Viewing software such as ACDSee or PaintShop such as I shape I speed, PhotoShop etc. to open, according to the These characteristics of PSD file layout, the present invention proposes a kind of method utilizing material to process image, as shown in Figure 1, it comprises the following steps:
10. Material for design, and material is saved as PSD file layout;
The material of the 20. pending images of loading and described PSD file layout;
Material described in 30. pairs is resolved, and obtains the dimension information, pattern-information and the display position information that comprise in described material;
40. carry out effect process according to the information comprised in described material to pending image, obtain result images.
In described step 30: described dimension information mainly refers to the base map size of this material, create a transparent base map during Material for design, namely the size of this base map represents the full-size of the pending image that described material is supported; If the every laminin material in the described described material of display position information spinner and the deviation post of base map, this deviation post is the display position of every laminin material in pending image; Wherein, the computing method of the described display position of every laminin material in pending image are specially: the deviation post first obtaining this laminin material and base map, then by the size of this deviation post divided by base map, then be multiplied by the size of pending image again, the value of gained is the display position of this laminin material in pending image.
In described step 40: according to the information comprised in described material, effect process is carried out to pending image, mainly according to material number of plies order from top to bottom, pending image is carried out to the effect process of every laminin material.
Because existing image processing software is all use respective material format, this just makes different images process software mutually cannot use the material of the other side, and this material must be designed can use by software provider, method of the present invention uses PSD file layout as material format by unification, as long as image processing software support resolves the use that PSD form can support this material, contribute to formulating more unified industry standard; In addition, on the development time, because formulate a perfect material format, just must understand the demand of material designer, need technician constantly to understand study relevant knowledge in this process, and after material format is determined, also may because the new demand of of material designer, and there is adjustment material format just spendable situation, therefore, method of the present invention uses PSD file layout greatly can save the time of this part as material format.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.

Claims (5)

1. the method utilizing material to process image, is characterized in that, comprises the following steps:
10. Material for design, and material is saved as PSD file layout;
The material of the 20. pending images of loading and described PSD file layout;
Material described in 30. pairs is resolved, and obtains the dimension information, pattern-information and the display position information that comprise in described material;
40. carry out effect process according to the information comprised in described material to pending image, obtain result images.
2. a kind of method utilizing material to process image according to claim 1, it is characterized in that: described dimension information mainly refers to the base map size of this material, create a transparent base map during Material for design, namely the size of this base map represents the full-size of the pending image that described material is supported.
3. a kind of method utilizing material to process image according to claim 1, it is characterized in that: if the deviation post of the every laminin material in the described described material of display position information spinner and base map, this deviation post is the display position of every laminin material in pending image.
4. a kind of method utilizing material to process image according to claim 3, it is characterized in that: the computing method of the described display position of every laminin material in pending image are specially: the deviation post first obtaining this laminin material and base map, then by the size of this deviation post divided by base map, then be multiplied by the size of pending image again, the value of gained is the display position of this laminin material in pending image.
5. a kind of method utilizing material to process image according to claim 1, it is characterized in that: in described step 40, according to the information comprised in described material, effect process is carried out to pending image, mainly according to material number of plies order from top to bottom, pending image is carried out to the effect process of every laminin material.
CN201410548669.4A 2014-10-16 2014-10-16 Method for processing image by using material Pending CN104331915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410548669.4A CN104331915A (en) 2014-10-16 2014-10-16 Method for processing image by using material

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410548669.4A CN104331915A (en) 2014-10-16 2014-10-16 Method for processing image by using material

Publications (1)

Publication Number Publication Date
CN104331915A true CN104331915A (en) 2015-02-04

Family

ID=52406635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410548669.4A Pending CN104331915A (en) 2014-10-16 2014-10-16 Method for processing image by using material

Country Status (1)

Country Link
CN (1) CN104331915A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909631A (en) * 2017-11-29 2018-04-13 商派软件有限公司 A kind of picture synthetic method
WO2019075656A1 (en) * 2017-10-18 2019-04-25 腾讯科技(深圳)有限公司 Image processing method and device, terminal, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050157175A1 (en) * 2003-09-22 2005-07-21 Fuji Xerox Co., Ltd. Image information processing system, image information processing apparatus, image information outputting method, code information processing apparatus and program thereof
CN102117205A (en) * 2009-12-31 2011-07-06 厦门高德软件有限公司 Method and device for generating window resource file
CN102646283A (en) * 2011-02-22 2012-08-22 新奥特(北京)视频技术有限公司 Synthesizing and guiding method of PSD (Phase-Sensitive Detector) file sequence manner
CN103870251A (en) * 2012-12-07 2014-06-18 广州爱游信息科技有限公司 Method and device for quickly generating game UI (User Interface) function panel from PSD (Photoshop Document)
CN104077120A (en) * 2013-03-29 2014-10-01 腾讯科技(深圳)有限公司 Image and text processing method, system and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050157175A1 (en) * 2003-09-22 2005-07-21 Fuji Xerox Co., Ltd. Image information processing system, image information processing apparatus, image information outputting method, code information processing apparatus and program thereof
CN102117205A (en) * 2009-12-31 2011-07-06 厦门高德软件有限公司 Method and device for generating window resource file
CN102646283A (en) * 2011-02-22 2012-08-22 新奥特(北京)视频技术有限公司 Synthesizing and guiding method of PSD (Phase-Sensitive Detector) file sequence manner
CN103870251A (en) * 2012-12-07 2014-06-18 广州爱游信息科技有限公司 Method and device for quickly generating game UI (User Interface) function panel from PSD (Photoshop Document)
CN104077120A (en) * 2013-03-29 2014-10-01 腾讯科技(深圳)有限公司 Image and text processing method, system and server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019075656A1 (en) * 2017-10-18 2019-04-25 腾讯科技(深圳)有限公司 Image processing method and device, terminal, and storage medium
US11120535B2 (en) 2017-10-18 2021-09-14 Tencent Technology (Shenzhen) Company Limited Image processing method, apparatus, terminal, and storage medium
CN107909631A (en) * 2017-11-29 2018-04-13 商派软件有限公司 A kind of picture synthetic method

Similar Documents

Publication Publication Date Title
US9141746B1 (en) System and method to drag instance master physical shell
US11645438B2 (en) Generating a template-driven schematic from a netlist of electronic circuits
CN105528418B (en) A kind of design documentation generation method and device
EP1766567A4 (en) System and method for developing animated visualization interfaces
US20140244219A1 (en) Method of creating a pipe route line from a point cloud in three-dimensional modeling software
US20150348278A1 (en) Dynamic font engine
US20190354655A1 (en) Methods, systems, and computer program products for generating semiconductor circuit layouts
CN103065338A (en) Method and device providing shadow for foreground image in background image
US20210042381A1 (en) Interactive and selective coloring of digital vector glyphs
WO2016040716A1 (en) Render-time linking of shaders
US20160147933A1 (en) Method of resolving color conflicts for cell-based designs with multi-pattern lithography
WO2019209591A1 (en) Mask pattern generation based on fast marching method
US11093130B1 (en) Drawing tool identification and retrieval
CN104991415A (en) Optical proximity effect correction method aiming at specific repeated patterns
CN104331915A (en) Method for processing image by using material
US10571799B1 (en) Hessian-free calculation of product of Hessian matrix and vector for lithography optimization
CN106297477A (en) A kind of method and device generating digitized copybook
US7865848B2 (en) Layout optimization using parameterized cells
US20210181414A1 (en) Visual representation of different structure ports in schematics of photonic integrated circuits
CN104090759A (en) Template file based data filling method
JP6377743B2 (en) Method and apparatus for building an intermediate character library
CN102779036B (en) For the Software tool of automatic technology
CN110992438B (en) Picture editing method and device
HyunSoo et al. A Study on Development of Machine-readable Platform for S-100 ECDIS
US8006211B2 (en) IC chip and design structure including stitched circuitry region boundary identification

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150204