CN105550980B - A kind of Picture Generation Method and relevant apparatus - Google Patents

A kind of Picture Generation Method and relevant apparatus Download PDF

Info

Publication number
CN105550980B
CN105550980B CN201410592184.5A CN201410592184A CN105550980B CN 105550980 B CN105550980 B CN 105550980B CN 201410592184 A CN201410592184 A CN 201410592184A CN 105550980 B CN105550980 B CN 105550980B
Authority
CN
China
Prior art keywords
base map
picture
size
information
layer
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.)
Active
Application number
CN201410592184.5A
Other languages
Chinese (zh)
Other versions
CN105550980A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410592184.5A priority Critical patent/CN105550980B/en
Publication of CN105550980A publication Critical patent/CN105550980A/en
Application granted granted Critical
Publication of CN105550980B publication Critical patent/CN105550980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the present invention provides a kind of Picture Generation Method and relevant apparatus, this method include:Obtain the material of base map and the material of at least one element;The size requirements information of picture to be generated is received, includes at least one dimension information of picture to be generated in the size requirements information;According to each dimension information in the size requirements information, the material of the base map is handled to obtain the base map for each size for meeting the dimension information;From the corresponding relationship between pre-set dimension of picture and layout parameter, the element layout's parameter to match with each dimension information in the size requirements information is searched;According to the matched element layout's parameter of dimension information, the material of element is laid out on the base map of corresponding size;Base map to each size and the element material being laid out on the base map carry out image synthesis, generate the picture of each size.

Description

A kind of Picture Generation Method and relevant apparatus
Technical field
The present invention relates to picture design field more particularly to a kind of Picture Generation Methods and relevant apparatus.
Background technique
In the scene that webpage making etc. is related to interface, the main contents as objects such as background, suspension pictures are still It is so picture.From the point of view of interface designer, drawing required picture is a time-consuming and heavy work, is especially needed in interface When a large amount of picture.
With the broad development of portable mobile apparatus, more and more various sizes of screens come into being, in order to adapt to Various sizes of screen normally shows the requirement of picture, and interface designer is frequently necessary to use figure for the picture of the same content Piece software for drawing is respectively modified as the picture of multiple sizes, and the layout of each element on picture is also required to what basis to be generated The size of picture and change.This carrys out new challenge to original heavy interface work belt.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of Picture Generation Method and relevant apparatus, can greatly shorten according to need Seek survival into the time of picture.
To achieve the above object, on the one hand the embodiment of the present application provides a kind of Picture Generation Method, including:
Obtain the material of base map and the material of at least one element;
The size requirements information of picture to be generated is received, includes at least the one of picture to be generated in the size requirements information A dimension information;
According to each dimension information in the size requirements information, the material of the base map is handled and is met The base map of each size of the dimension information;
From the corresponding relationship between pre-set dimension of picture and layout parameter, search and the size requirements information In element layout's parameter for matching of each dimension information;
According to the matched element layout's parameter of dimension information, the material of element is subjected to cloth on the base map of corresponding size Office;
Base map to each size and the element material being laid out on the base map carry out image synthesis, generate each size Picture.
In a preferred embodiment, the material of the material for obtaining base map and at least one element includes:
Import multi-layer image file;
The multi-layer image file for parsing the importing obtains the content in the multi-layer image file in each figure layer;
With the material that the content of each figure layer is according to the material and at least one element for determining base map.
In a preferred embodiment, the material of the material for obtaining base map and at least one element includes:
It is directed respectively into the material of base map material He at least one element;
By the material of the base map material and at least one element that import, the element of base map material and at least one element is obtained Material.
In a preferred embodiment, the method also includes:Obtain the Layer Order between the material of element.
In a preferred embodiment, the corresponding relationship between the pre-set dimension of picture and layout parameter is stored in In data structure or external file.
On the other hand the application also provides a kind of photograph creation device, including:
Material obtaining unit, for obtaining the material of base map and the material of at least one element;
Size requirements receiving unit, for receiving the size requirements information of picture to be generated, in the size requirements information At least one dimension information including picture to be generated;
Base map processing unit, for according to each dimension information in the size requirements information, to the element of the base map Material is handled to obtain the base map for each size for meeting the dimension information;
Element layout's parameter searching unit, for from the corresponding relationship between pre-set dimension of picture and layout parameter In, search the element layout's parameter to match with each dimension information in the size requirements information;
Element layout's unit is used for according to the matched element layout's parameter of dimension information, by the material of element corresponding It is laid out on the base map of size;
Picture generation unit carries out image conjunction for the base map to each size and the element material being laid out on the base map At generating the picture of each size.
In a preferred embodiment, the material obtaining unit includes:
Multi-layer image file imports subelement, for importing multi-layer image file;
Document analysis subelement obtains each figure in the multi-layer image file for parsing the multi-layer image file of the importing Content in layer.
In a preferred embodiment, the material obtaining unit includes:
Base map import unit, for importing base map material;
Element import unit, for importing the material of at least one element.
In a preferred embodiment, described device further includes:
Map data mining platform acquiring unit, the Layer Order between material for obtaining element.
In a preferred embodiment, the corresponding relationship between the pre-set dimension of picture and layout parameter is stored in In data structure or external file.
It can be seen that the scheme of the embodiment of the present application can be using the material of the base map material of acquisition and element as content, root The picture of satisfactory size can be quickly generated according to size requirements, efficiency is very high.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of Picture Generation Method provided by the embodiments of the present application;
Fig. 2 is the flow chart for the Picture Generation Method that the embodiment of the present application one provides;
Fig. 3 is the schematic diagram of multi-layer image file content in the embodiment of the present application one;
Fig. 4 is that the size after layout is 510 pixels × 370 pixels result;
Fig. 5 is that the size after layout is 750 pixels × 200 pixels result;
Fig. 6 is that the size after layout is 160 pixels × 600 pixels result;
Fig. 7 is that the size generated is the schematic diagram of 510 pixels × 370 pixels picture;
Fig. 8 is that the size generated is the schematic diagram of 750 pixels × 200 pixels picture;
Fig. 9 is that the size generated is the schematic diagram of 160 pixels × 600 pixels picture;
Figure 10 is the flow chart for the Picture Generation Method that the embodiment of the present application two provides;
Figure 11 is a kind of schematic diagram of photograph creation device provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
The embodiment of the present application provides a kind of Picture Generation Method, as shown in Figure 1, this method comprises the following steps:
Step S101:Obtain the material of base map and the material of at least one element;
Step S102:The size requirements information of picture to be generated is received, includes figure to be generated in the size requirements information At least one dimension information of piece;
Step S103:According to each dimension information in the size requirements information, at the material of the base map Reason obtains meeting the base map of each size of the dimension information;
Step S104:From the corresponding relationship between pre-set dimension of picture and layout parameter, search and the ruler Element layout's parameter that each dimension information in very little demand information matches;
Step S105:According to the matched element layout's parameter of dimension information, by the material of element at the bottom of corresponding size It is laid out on figure;
Step S106:Base map to each size and the element material being laid out on the base map carry out image synthesis, generate The picture of each size.
It can be seen that the scheme of the embodiment of the present application can be using the material of the base map material of acquisition and element as content, root The picture of satisfactory size can be quickly generated according to size requirements, efficiency is very high.
The specific implementation of the embodiment of the present application is described in detail with several specific examples below.
Embodiment one
Fig. 2 shows a kind of flow charts of Picture Generation Method provided by the embodiments of the present application, are generated by this method Picture can be used as the background of the objects such as billboard, shop trick, bulletin, e-greeting card, happiness note.These pictures are by base map and in base map The element of upper layout merges, these elements on base map include the contents such as text, picture.
As shown in Fig. 2, this method comprises the following steps:
Step S201:Import multi-layer image file.
In the present embodiment, the material of the element for being laid out on the material of base map and base map is all from multi-layer image text Content in part.
For example, define multiple figure layers in multi-layer image file, comprising the content in the figure layer in each figure layer, in figure layer Content can be picture or text etc..Furthermore the sequence up and down between All Layers is also defined in multi-layer image file, is located at upper The content of the figure layer in face will cover the content in following figure layer at same position.
User can first pass through in advance supports the software of multi-layer image Document Editing to create above-mentioned multi-layer image file, above-mentioned support The software of multi-layer image Document Editing includes but is not limited to Adobe Photoshop etc..
Step S202:Parse import multi-layer image file, obtain the content in each figure layer in the multi-layer image file with And the sequence of each figure layer, it is according at least one member to be laid out on the material and base map for determining base map with the content of each figure layer Element material, and by the Layer Order up and down of each element be set as with the element from multi-layer image file figure layer between It is sequentially corresponding.
After importing multi-layer image file, the content in each figure layer in multi-layer image file, and multi-layer image file are parsed In also contain order information up and down between All Layers.It is laid out in the present embodiment for the material of base map and on base map The material of element both is from multi-layer image file, can be thus according to the material and bottom for determining base map with the content of each figure layer The material of element to be laid out on figure, it is a kind of more directly with efficient method of determination, it is by the bottom in multi-layer image file Material of the content of figure layer as base map, and the content of other each figure layers is made to the material of each element respectively, and multiple members Layer Order between element is consistent with sequence of each element between figure layer corresponding in multi-layer image file, and such user exists The result seen when editor by multi-layer image file will parse the multi-layer image file with the present embodiment Layer Order afterwards between determining element material and element is consistent, improves predictable.
In practice, in order to which preferably each element and base map are identified and are controlled, a kind of preferred implementation In, can the material of material and base map to each element be named in advance, correspondingly in each figure layer of multi-layer image file Mark can be identical as the title of corresponding element material and base map material.Such as one shown in Fig. 3 has 3 figure layers The schematic diagram of each figure layer content in multi-layer image file, the entitled " back of the figure layer 301 of the bottom in the multi-layer image file Scape ", the content of the figure layer 301 are the picture of pure color filling;One layer of figure layer is figure layer 302, the figure layer 302 above figure layer 301 Entitled " picture ", the content of the figure layer 302 is the picture in a house;The figure layer that one layer of the upper surface of figure layer 302 is figure layer 303, entitled " text " of the figure layer 303, the content of the figure layer 303 is text " AAA ".Correspondingly, to above-mentioned multi-layer image When file is parsed, using the content of the figure layer of entitled " background " as the material of base map, by the figure layer of entitled " picture " Material of the content as an element (picture element might as well be known as below), using the content of the figure layer of entitled " text " as The material of another element (text element might as well be known as below), and more figures in the Layer Order and Fig. 3 of the material of each element Layer Order in layer file is consistent, therefore the figure layer of the material of text element is located at the upper of the figure layer of the material of picture element Layer;And the figure layer of the material of picture element is located at the upper layer of the figure layer of base map material.
It should be noted that the Layer Order of the multi-layer image file shown in above-mentioned Fig. 3, figure layer content and layer count are only It is an example, it in practice can be with the specification of the above-mentioned multi-layer image file of flexible setting, for example, the figure layer that content is text can be with It also may include multiple figure layers including the figure layer that multiple figure layers or content are picture.In addition, the content of figure layer includes for picture Content is vector graphics, bitmap picture, non-rectangular outlines picture of background transparent etc..
Step S203:The size requirements information of picture to be generated is received, includes figure to be generated in the size requirements information The dimension information of one or more than one of piece.
Here dimension information can be to generate the length and wide size information of picture, and long and wide size information can be with The lateral and vertical pixel quantity information of picture, such as the dimension information of above-mentioned picture to be generated may include 510 pixel × 370 Pixel, 750 pixels × 200 pixels, 160 pixels × 600 pixels etc., it will be apparent to those skilled in the art that the ruler of above-mentioned picture Length and wide unit of quantity in very little information can be pixel, can also be centimetre or millimeter etc. units.
It should be noted that may include size or including multiple sizes in the dimension information of picture to be generated Information can be obtained according to the setting of user.Such as user is by selecting at least one from the multiple size options shown in advance A size option, to generate the information of multiple sizes corresponding with multiple size options that these are selected, or can also To default the information for generating multiple sizes of all supports in the case where user is without any selection.
Step S204:According to the dimension information in size requirements information, the material of base map is handled to obtain meets ruler The base map of each size of very little information requirements;
Material as having obtained base map in step S202, in order to generate and the dimension information phase in size requirements information Corresponding one or more picture, needs to handle the material of base map according to these dimension informations, such as can pass through sanction It the image procossings such as cuts, stretch and the material of base map is processed into the base map for meeting dimension information requirement.
For example, the dimension information in the size requirements information include 510 pixels × 370 pixels, 750 pixels × 200 pixels, When 160 pixels × 600 pixel, need that base map material is cut or stretched to obtain in the base map of above-mentioned each size, i.e. 510 pictures Element × 370 pixels, 750 pixels × 200 pixels and 160 pixels × 600 pixels base map.
It stretches to obtain the biggish base map of pixel by the lesser base map material of pixel in practice, picture quality can be damaged, made Quality at the picture ultimately generated is not ideal enough, and the material of base map is preferably solid background thus, in this way progress stretched operation Shi Jiben does not see the stretch marks of image, or the size of base map material can be designed as being greater than the institute to be generated There is the full-size of size picture, to only need to carry out trimming operation without stretched operation.
Step S205:In corresponding relationship between pre-set dimension of picture and the layout parameter of element, search with Each matched element layout's parameter of dimension information, according to matched element layout's parameter, by the material of element in the step Obtain being laid out on the base map of each size in rapid S204, and during layout the Layer Order of each element material with Layer Order obtained in step S202 is consistent.
The corresponding relationship between the size of picture and the layout parameter of element, such as following table are preset in the present embodiment A kind of corresponding relationship between the size and layout parameter of each picture shown:
Table 1
It is assumed that dimension information in size requirements information include 510 pixels × 370 pixels, 750 pixels × 200 pixels, When 160 pixels × 600 pixel, then need respectively for above-mentioned 3 dimension informations respectively on the base map of corresponding size to element Material be laid out.
For example, being directed to 510 pixels × 370 pixels dimension information, needing the size obtained in step S203 is 510 pictures On the base map of element × 370 pixels, by the material of all elements according to 510 pixels shown in above-mentioned table 1 × 370 pixels picture The layout parameter of the corresponding element of dimension information is laid out, for example, being arranged the material 402 of picture element on base map 401 Occupy 510 pixels × 370 pixel whole regions 55%, scaling 100%;And the material 403 of text element is in base map The top left co-ordinate of (and the figure layer of the material 403 of text element also on the figure layer of the material of picture element 402) is on 401 (50 pixels, 50 pixels), scaling 100%.Finally obtain as shown in Figure 4 layout after size be 510 pixels × The result of 370 pixels.
For 750 pixels × 200 pixels dimension information, needing the size obtained in step S203 is 750 pixel × 200 On the base map of pixel, by the material of all elements according to 750 pixels shown in above-mentioned table 1 × 200 pixels dimension information pair The layout parameter for the element answered is laid out.For example, the setting of material 502 of picture element is occupied 750 pixels on base map 501 The 33% of the whole region of × 200 pixels, scaling 80%;And the material 503 of text element on base map 501 (and text The figure layer of the material 502 of Character table is also on the upper layer of the figure layer of the material of picture element 502) top left co-ordinate be (30 pixels, 30 pixels), scaling 100%.Size after finally obtaining layout as shown in Figure 5 is 750 pixels × 200 pixels As a result.
For 160 pixels × 600 pixels dimension information, need the size obtained in step S203 be 160 pixels × On 600 pixel base maps, by the material of all elements according to 160 pixels shown in above-mentioned table 1 × 600 pixels dimension information pair The layout parameter for the element answered is laid out.For example, the setting of material 602 of picture element is occupied 160 pixels on base map 601 The 33% of the whole region of × 600 pixels.Scaling is 100%;And the material 603 of text element on base map 601 (and text The figure layer of the material 602 of Character table is also on the upper layer of the figure layer of the material of picture element 602) top left co-ordinate be (20 pixels, 20 pixels), scaling 50%.Size after finally obtaining layout as shown in Figure 6 is 160 pixels × 600 pixels knot Fruit.
It should be noted that the corresponding relationship between the size of above-mentioned picture and the layout parameter of element can be with fixation The mode of logic is solidificated in a software logic, or also can store for inquiring in a packaged data structure, The document for storing above-mentioned corresponding relationship, which can also be stored in, (such as can store in configuration file, which can With referred to as authority file) in for read.
Step S206:The obtained each base map of step S205 and the element material being laid out on the base map are subjected to image conjunction At generating the picture of each size.
Such as the picture of three sizes after being laid out obtained in step S205, the result point after these three being laid out Not carry out image synthesis, by Fig. 4 the material 402 of base map 401, picture element and the material 403 of text element synthesize, Obtaining final size as shown in Figure 7 is 510 pixels × 370 pixels picture;By base map 501, the picture element in Fig. 5 The material 503 of material 502 and text element is synthesized, and obtaining final size as shown in Figure 8 is 750 pixels × 200 pixels Picture;By in Fig. 6 the material 602 of base map 601, picture element and the material 603 of text element synthesize, obtain as figure Final size shown in 9 is 160 pixels × 600 pixels picture.
In a preferred embodiment, it before the picture that step S206 synthesizes each size, will be obtained in step S205 To each base map on the effect of layout element material showed in a manner of multi-layer image, for user's preview, receive user for each The operation that the layout of a element is edited, is modified the layout of corresponding element.
Such as user, during preview, the ratio of the material 403 of the text element in discovery Fig. 4 and position are all less Properly, the material 403 of text element can be zoomed to proper ratio by zoom operations and position moving operation and moved by user Move suitable position.
It is with cloth on the base map of each size before the step and the base map in the implementation procedure of step S206 in this way What the element material of office was synthesized, i.e., the layout of each element material is to further adjust text with user in synthesis process Subject to after the layout of element material.
It can be seen that only needing to import a multi-layer image file in technical solution in the present embodiment, can quickly generate One or more various sizes of pictures, the formation efficiency of picture are very high.
Embodiment two
Figure 10 shows a kind of flow chart of Picture Generation Method provided by the embodiments of the present application, generates through the invention Picture can be used as the background of the objects such as billboard, shop trick, bulletin, e-greeting card, happiness note.These pictures are by base map and in base map The element of upper layout merges, these elements on base map may include the contents such as text and picture.
It should be noted that the difference of Picture Generation Method and embodiment shown in Figure 2 in the present embodiment mainly exists In:It is different with the mode of element material to obtain base map material.Specifically comprise the following steps:
Step S1001:It is directed respectively into base map material and at least one element material.
User can choose respectively in practice is locally stored or the suitable picture for doing background of network storage is as base map Material, while other element materials for being suitble to do the element on base map are imported, such as using house as picture of content etc..Furthermore first Material further includes the material of text class, and user can input content of the character as material in text at this time, such as input The content of " AAA " as textual materials, furthermore the format informations such as font, the font size of textual materials can also be arranged in user simultaneously.
Step S1002:Obtain the Layer Order between element material.
After step S1001 gets base map material and element material, it can also obtain between each element material The Layer Order of Layer Order, element material can refer to together during user chooses base map material and element material respectively It is fixed, such as the sequence consensus of default and the specified element material of user, first the figure layer of specified element material is located at lower, rear to make The figure layer of fixed element material be located at it is upper, can also be provided for user specify material process adjusting Layer Order function Energy.
Step S1003:The size requirements information of picture to be generated is received, includes figure to be generated in the size requirements information The dimension information of one or more than one of piece.
Here dimension information can be to generate the length and wide size information of picture, and long and wide size information can be with The lateral and vertical pixel quantity information of picture, such as the dimension information of above-mentioned picture to be generated may include 510 pixel × 370 Pixel, 750 pixels × 200 pixels, 160 pixels × 600 pixels etc., it will be apparent to those skilled in the art that the ruler of above-mentioned picture Length and wide unit of quantity in very little information can be pixel, can also be centimetre or millimeter etc. units.
It should be noted that may include size or including multiple sizes in the dimension information of picture to be generated Information can be obtained according to the setting of user.Such as user is by selecting at least one from the multiple size options shown in advance A size option, to generate the information of multiple sizes corresponding with multiple size options that these are selected, or can also To default the information for generating multiple sizes of all supports in the case where user is without any selection.
Step S1004:According to the dimension information in size requirements information, the material of base map is handled to obtain meets ruler The base map of each size of very little information requirements.
In order to generate one or more pictures corresponding with the dimension information in size requirements information, need to base map Material is handled according to these dimension informations, such as can be handled the material of base map by the image procossings such as cutting, stretching At the base map for meeting dimension information requirement.
It stretches to obtain the biggish base map of pixel by the lesser base map material of pixel in practice, picture quality can be damaged, made Quality at the picture ultimately generated is not ideal enough, and the material of base map is preferably solid background thus, in this way progress stretched operation Shi Jiben does not see the stretch marks of image, or the size of base map material can be designed as being greater than the institute to be generated There is the full-size of size picture, to only need to carry out trimming operation without stretched operation.
Step S1005:In corresponding relationship between pre-set size and the layout parameter of element, search with it is each The matched element layout's parameter of dimension information, according to matched element layout's parameter, by the material of element in the step Obtain being laid out on the base map of each size in S204, and during layout each element material Layer Order and step Layer Order obtained in rapid S202 is consistent.
It should be noted that the corresponding relationship between the size of above-mentioned picture and the layout parameter of element can be with fixation The mode of logic is solidificated in a software logic, or also can store for inquiring in a packaged data structure, The document for storing above-mentioned corresponding relationship, which can also be stored in, (such as can store in configuration file, which can With referred to as authority file) in for read.
Step S1006:The element material that each base map obtained in step S1005 and the base map are laid out is subjected to image conjunction At generating the picture of each size.
It in a preferred embodiment, will be in step S1005 before the picture that step S1006 synthesizes each size The effect of layout element material is showed in a manner of multi-layer image on obtained each base map, for user's preview, is received user and is directed to The operation that the layout of each element is edited, is modified the layout of corresponding element.
It is with cloth on the base map of each size before the step and the base map in the implementation procedure of step S1006 in this way What the element material of office was synthesized, i.e., the layout of each element material is to further adjust text with user in synthesis process Subject to after the layout of element material.
It can be seen that only need to import base map material and element material in technical solution in the present embodiment, it can be quick One or more various sizes of pictures are generated, the formation efficiency of picture is very high.
The embodiment of the present application correspondingly provides a kind of photograph creation device, and as shown in figure 11, which includes such as lower unit:
Material obtaining unit 1101, for obtaining the material of base map and the material of at least one element;
Size requirements receiving unit, for receiving the size requirements information of picture to be generated, in the size requirements information At least one dimension information including picture to be generated;
Base map processing unit 1102, for according to each dimension information in the size requirements information, to the base map Material handled to obtain the base map for each size for meeting the dimension information;
Element layout's parameter searching unit 1103, for corresponding between pre-set dimension of picture and layout parameter In relationship, the element layout's parameter to match with each dimension information in the size requirements information is searched;
Element layout's unit 1104 is used for according to the matched element layout's parameter of dimension information, by the material of element in phase It is laid out on the base map of correspondingly-sized;
Picture generation unit 1105 carries out figure for the base map to each size and the element material being laid out on the base map As synthesis, the picture of each size is generated.
Different with the acquisition modes of the material of element according to the material of base map, material obtaining unit 1101 is divided into two kinds of realities again Existing scheme.In first implementation, material obtaining unit includes:Multi-layer image file imports subelement and document analysis is single Member, wherein multi-layer image file imports subelement for importing multi-layer image file, and document analysis subelement is for parsing the importing Multi-layer image file, obtain the content in the multi-layer image file in each figure layer.In second implementation, material obtaining list Member includes base map import unit and element import unit, and wherein base map import unit imports single for importing base map material, element Member is for importing the material of at least one element.
In addition, the device can also include map data mining platform acquiring unit, the figure layer between material for obtaining element is suitable Sequence.
In the above-described embodiments, the corresponding relationship between pre-set dimension of picture and layout parameter is stored in data knot In structure or external file.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip 2.Moreover, nowadays, substitution manually makes IC chip, and this programming is also used instead mostly " logic compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development Seemingly, and the source code before compiling also handy specific programming language is write, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present Integrated Circuit Hardware Description Language) and Verilog2.Those skilled in the art It will be apparent to the skilled artisan that only needing method flow slightly programming in logic and being programmed into integrated circuit with above-mentioned several hardware description languages In, so that it may it is readily available the hardware circuit for realizing the logical method process.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited Memory controller is also implemented as a part of the control logic of memory.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete Entirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, specific integrated circuit, programmable Logic controller realizes identical function with the form for being embedded in microcontroller etc..Therefore this controller is considered one kind Hardware component, and the structure that the device for realizing various functions for including in it can also be considered as in hardware component.Or Even, can will be considered as realizing the device of various functions either the software module of implementation method can be Hardware Subdivision again Structure in part.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution essence of the application On in other words the part that contributes to existing technology can be embodied in the form of software products, in a typical configuration In, calculating equipment includes one or more processors (CPU), input/output interface, network interface and memory.The computer is soft Part product may include that some instructions are used so that a computer equipment (can be personal computer, server-side or network Equipment etc.) execute method described in certain parts of each embodiment of the application or embodiment.The computer software product can To be stored in memory, memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer The example of readable medium.Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by Any method or technique come realize information store.Information can be computer readable instructions, data structure, the module of program or its His data.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or Other magnetic storage devices or any other non-transmission medium, can be used for storage can be accessed by a computing device information.According to Herein defines, and computer-readable medium does not include of short duration computer readable media (transitory media), such as modulation Data-signal and carrier wave.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The application can be used in numerous general or special purpose computing system environments or configuration.Such as:Personal computer, clothes Business end computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, set Top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer including any of the above system or equipment Distributed computing environment etc..
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application there are many deformation and Variation is without departing from spirit herein, it is desirable to which the attached claims include these deformations and change without departing from the application's Spirit.

Claims (10)

1. a kind of Picture Generation Method, which is characterized in that including:
Obtain the material of base map and the material of at least one element;
The size requirements information of picture to be generated is received, includes at least one ruler of picture to be generated in the size requirements information Very little information;
According to each dimension information in the size requirements information, the material of the base map is handled to obtain meet it is described The base map of each size of dimension information;
From the corresponding relationship between pre-set dimension of picture and layout parameter, lookup is obtained and the size requirements information In element layout's parameter for matching of each dimension information;
According to the matched element layout's parameter of dimension information, the material of element is laid out on the base map of corresponding size;
Base map to each size and the element material being laid out on the base map carry out image synthesis, generate the figure of each size Piece.
2. the method as described in claim 1, which is characterized in that the material of the material for obtaining base map and at least one element Including:
Import multi-layer image file;
The multi-layer image file for parsing the importing obtains the content in the multi-layer image file in each figure layer;
With the material that the content of each figure layer is according to the material and at least one element for determining base map.
3. the method as described in claim 1, which is characterized in that the material of the material for obtaining base map and at least one element Including:
It is directed respectively into the material of base map material He at least one element;
By the material of the base map material and at least one element that import, the material of base map material and at least one element is obtained.
4. the method as described in any one of claims 1 to 3, which is characterized in that the method also includes:Obtain element Layer Order between material.
5. the method as described in any one of claims 1 to 3, which is characterized in that the pre-set dimension of picture with Corresponding relationship between layout parameter is stored in data structure or external file.
6. a kind of photograph creation device, which is characterized in that including:
Material obtaining unit, for obtaining the material of base map and the material of at least one element;
Size requirements receiving unit includes in the size requirements information for receiving the size requirements information of picture to be generated At least one dimension information of picture to be generated;
Base map processing unit, for according to each dimension information in the size requirements information, to the material of the base map into Row processing obtains meeting the base map of each size of the dimension information;
Element layout's parameter searching unit, for from the corresponding relationship between pre-set dimension of picture and layout parameter, Lookup obtains the element layout's parameter to match with each dimension information in the size requirements information;
Element layout's unit is used for according to the matched element layout's parameter of dimension information, by the material of element in corresponding size Base map on be laid out;
Picture generation unit carries out image synthesis for the base map to each size and the element material being laid out on the base map, Generate the picture of each size.
7. device as claimed in claim 6, which is characterized in that the material obtaining unit includes:
Multi-layer image file imports subelement, for importing multi-layer image file;
Document analysis subelement obtains in the multi-layer image file in each figure layer for parsing the multi-layer image file of the importing Content.
8. device as claimed in claim 6, which is characterized in that the material obtaining unit includes:
Base map import unit, for importing base map material;
Element import unit, for importing the material of at least one element.
9. the device as described in any one of claim 6 to 8, which is characterized in that described device further includes:
Map data mining platform acquiring unit, the Layer Order between material for obtaining element.
10. the device as described in any one of claim 6 to 8, which is characterized in that the pre-set dimension of picture with Corresponding relationship between layout parameter is stored in data structure or external file.
CN201410592184.5A 2014-10-29 2014-10-29 A kind of Picture Generation Method and relevant apparatus Active CN105550980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410592184.5A CN105550980B (en) 2014-10-29 2014-10-29 A kind of Picture Generation Method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410592184.5A CN105550980B (en) 2014-10-29 2014-10-29 A kind of Picture Generation Method and relevant apparatus

Publications (2)

Publication Number Publication Date
CN105550980A CN105550980A (en) 2016-05-04
CN105550980B true CN105550980B (en) 2018-11-27

Family

ID=55830156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410592184.5A Active CN105550980B (en) 2014-10-29 2014-10-29 A kind of Picture Generation Method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN105550980B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959303B (en) * 2017-05-22 2022-07-15 阿里巴巴集团控股有限公司 Display picture generation method, display picture layout generation method and data processing server
CN108829474A (en) * 2018-05-28 2018-11-16 深圳市共进电子股份有限公司 Adaptation method, device, mobile terminal and the storage medium at mobile terminal interface
CN109636880A (en) * 2018-12-14 2019-04-16 北京向上心科技有限公司 A kind of picture method for drafting and device, controller and medium
CN111540033A (en) * 2019-01-18 2020-08-14 北京京东尚科信息技术有限公司 Image production method and device, browser, computer equipment and storage medium
CN109801347B (en) * 2019-01-25 2022-10-25 北京字节跳动网络技术有限公司 Method, device, equipment and medium for generating editable image template
CN112116681B (en) * 2019-06-19 2023-07-25 腾讯科技(深圳)有限公司 Image generation method, device, computer equipment and storage medium
CN112700513A (en) * 2019-10-22 2021-04-23 阿里巴巴集团控股有限公司 Image processing method and device
CN111161385B (en) * 2019-12-30 2023-10-10 北京奇艺世纪科技有限公司 Image rendering method and device, electronic equipment and storage medium
CN112164127A (en) * 2020-09-25 2021-01-01 大方众智创意广告(珠海)有限公司 Picture generation method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497590A (en) * 2011-12-30 2012-06-13 百视通网络电视技术发展有限责任公司 IPTV-based method for automatically generating catalogued picture of strip-splitting video and system thereof
CN103793931A (en) * 2014-02-18 2014-05-14 厦门美图网科技有限公司 Method for fusing words and pictures
CN103903292A (en) * 2012-12-27 2014-07-02 北京新媒传信科技有限公司 Method and system for realizing head portrait editing interface
CN103927143A (en) * 2014-04-04 2014-07-16 福建星网视易信息系统有限公司 Method and device for adaptively adjusting interface layout on basis of screen resolution
CN103927774A (en) * 2014-04-28 2014-07-16 宇龙计算机通信科技(深圳)有限公司 Controllable image generating and processing method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8892995B2 (en) * 2010-02-02 2014-11-18 Xerox Corporation Method and system for specialty imaging effect generation using multiple layers in documents

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497590A (en) * 2011-12-30 2012-06-13 百视通网络电视技术发展有限责任公司 IPTV-based method for automatically generating catalogued picture of strip-splitting video and system thereof
CN103903292A (en) * 2012-12-27 2014-07-02 北京新媒传信科技有限公司 Method and system for realizing head portrait editing interface
CN103793931A (en) * 2014-02-18 2014-05-14 厦门美图网科技有限公司 Method for fusing words and pictures
CN103927143A (en) * 2014-04-04 2014-07-16 福建星网视易信息系统有限公司 Method and device for adaptively adjusting interface layout on basis of screen resolution
CN103927774A (en) * 2014-04-28 2014-07-16 宇龙计算机通信科技(深圳)有限公司 Controllable image generating and processing method and system

Also Published As

Publication number Publication date
CN105550980A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN105550980B (en) A kind of Picture Generation Method and relevant apparatus
CN110287368B (en) Short video template design drawing generation device and short video template generation method
CN1853157A (en) Improved presentation of large objects on small displays
US10484639B2 (en) Image generation method and device
CN104346322A (en) Document format processing device and document format processing method
CN109992266A (en) A kind for the treatment of method and apparatus of interface element
JP2007013550A (en) Data processor, data processing method, and computer program
US20160092421A1 (en) Text Editing Method and Apparatus, and Server
CN110163866A (en) A kind of image processing method, electronic equipment and computer readable storage medium
CN106611401A (en) Method and device for storing image in texture memory
CN102693553A (en) Method and device for creating charts achieving three-dimensional effect
CN105786784A (en) PowerPoint template replacing method and device
CN108089865A (en) Using method of cutting out, device and storage medium
WO2013112064A1 (en) Content-aware image resizing using superpixels
CN108614693A (en) It is a kind of for the processing method of page assembly, device and equipment
CN105045587A (en) Picture display method and apparatus
CN104333699A (en) Synthetic method and device of user-defined photographing area
US10120539B2 (en) Method and device for setting user interface
CN107179920A (en) Network engine starts method and device
JP2008147850A (en) Design editing method, design editing device, and design editing program
KR20140098276A (en) Authoring method of application using templete
KR102039422B1 (en) Apparatus and method for automatically processing images
CN107193815A (en) A kind of processing method of page code, device and equipment
CN113362426B (en) Image editing method and image editing device
CN112395838A (en) Object synchronous editing method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant