CN104238892B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN104238892B CN104238892B CN201410488511.2A CN201410488511A CN104238892B CN 104238892 B CN104238892 B CN 104238892B CN 201410488511 A CN201410488511 A CN 201410488511A CN 104238892 B CN104238892 B CN 104238892B
- Authority
- CN
- China
- Prior art keywords
- image
- feature image
- fisrt feature
- layer
- relative position
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Image Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of information processing method and electronic equipment, this method is applied to an electronic equipment, including:The first background image is obtained, the fisrt feature image with fisrt feature and the second feature image with second feature are included at least on the first background image, fisrt feature image and second feature image have the first relative position relation;Detection obtains a predetermined registration operation;Obtain the fisrt feature image and second feature image on the first background image;The fisrt feature of holding fisrt feature image and the second feature of second feature image are constant, change the relative position relation of fisrt feature image and second feature image, the second background image is generated, wherein fisrt feature image and second feature image have the second relative position relation in the second background image.Through the above technical solutions, changing the relative position relation composition again of characteristic image, solve electronic equipment in the prior art and there is technical issues that desktop wallpaper can not be changed.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of information processing method and electronic equipment.
Background technology
With the continuous development of science and technology, the various functions of electronic equipment greatly improve, intelligent requirements also progressively obtain
To satisfaction, electronic equipment starts further to focus on bringing various, personalized usage experience to user, such as:It is carried to user
For polytype desktop wallpaper such as dynamic, static state.
Nowadays, either on computers or on smart mobile phone, desktop wallpaper that user can share or will be well
Image recommendation to surrounding friend.Desktop wallpaper on computer desktop can pass to smart mobile phone by data cable simultaneously
It is arranged to the desktop wallpaper of mobile phone;Desktop wallpaper on mobile phone can be passed to another smart mobile phone and be set by bluetooth
It is set to the desktop wallpaper of another smart mobile phone.
However, present inventor during technical solution, it is found that the prior art is deposited in the embodiment of the present application is realized
In following technical problem:
Screen size between electronic equipment and electronic equipment is not quite similar, to the composition requirement phase not to the utmost of desktop wallpaper
Together, such as:It is 3 for a length-width ratio:It is very beautiful as its desktop wallpaper that 4 display screen one opens laterally patterned image, still,
It is 3 that this laterally patterned image, which is but not suitable for a length-width ratio,:2 display screen.Since electronic equipment will be not suitable for itself
When the image of screen size is arranged to desktop wallpaper, the composition of desktop wallpaper can not be changed, image can only be carried out simple
Stretching or zoom operations are still not suitable for the electronic equipment on image composition.As it can be seen that there are nothings for electronic equipment in the prior art
Method changes the technical issues of composition of desktop wallpaper.
The content of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for solving electronic equipment in the prior art
There is technical issues that desktop wallpaper can not be changed, increase the scope of application of desktop wallpaper.
The embodiment of the present application provides a kind of information processing method, applied to an electronic equipment, the described method includes:
The first background image is obtained, the fisrt feature image with fisrt feature is included at least on first background image
With the second feature image with second feature, the fisrt feature image and the second feature image have the first opposite position
Put relation;
Detection obtains a predetermined registration operation;
Obtain the fisrt feature image on first background image and the second feature image;
Keep the fisrt feature image fisrt feature and second feature image second feature it is constant, change described the
The relative position relation of one characteristic image and the second feature image generates the second background image, wherein second background
Fisrt feature image described in image and the second feature image have the second relative position relation.
Optionally, the background image at the graphical interaction interface that second background image shows for the electronic equipment,
Wherein described graphical interaction interface also includes the shortcut icon being shown on second background image.
Optionally, first background image is further included as the fisrt feature image and the second feature image
The third feature image of background.
Optionally, the relative position relation for changing the fisrt feature image and the second feature image, generation
Second background image, specifically includes:
Obtain the dimensional parameters of the display unit of the electronic equipment;
Second relative position relation is determined according to the dimensional parameters, and changes the fisrt feature image and described
The relative position relation of second feature image generates the second background image to second relative position relation.
Optionally, first background image includes a property parameters, and the property parameters, which include, characterizes first spy
Levy the location field of the relative position relation of image and the second feature image;
The relative position relation for changing the fisrt feature image and the second feature image is to second phase
To position relationship, the second background image is generated, is specially:
Change the relative position pass that the fisrt feature image and the second feature image are characterized in the property parameters
The location field of system, to change the relative position relation of the fisrt feature image and the second feature image to described second
Relative position relation generates second background image.
Optionally, when first background image includes n-layer figure layer, n is integer more than or equal to 2, each characteristic pattern
As when occupying one layer of figure layer, the relative position relation for changing the fisrt feature image and the second feature image to institute
The second relative position relation is stated, the second background image is generated, specifically includes:
It obtains residing for the first figure layer and/or the second feature image residing for the fisrt feature image for needing to change
Second figure layer;
According to second relative position relation, change the fisrt feature image and obtained in the position of first figure layer
3rd figure layer and/or the change second feature image obtain the 4th figure layer in the position of second figure layer;
First figure layer is updated to the 3rd figure layer and/or second figure layer is updated to the 4th figure layer,
Generate second background image.
Optionally, it is described to change the fisrt feature image and institute when first background image includes one layer of figure layer
The relative position relation of second feature image is stated to second relative position relation, the second background image is generated, specifically includes:
Institute's fisrt feature image and/or the second feature image are intercepted, wherein, the fisrt feature image is described the
The first area of one background image, the second feature image is in the second area of first background image;
According to pixel adjacent with the first area on first background image, picture is carried out to the first area
Vegetarian refreshments is filled;And/or according to pixel adjacent with the second area on first background image, to the second area
Carry out pixel filling;
The fisrt feature image is covered in the 3rd region of first background image and/or special by described second
Sign image is covered in the fourth region of first background image so that the fisrt feature image and the second feature image
Relative position relation change to second relative position relation, to generate second background image.
Optionally, the length and width ratio of the display unit of the electronic equipment is more than given threshold.
The embodiment of the present application also provides a kind of electronic equipment, including:
First acquisition unit, for obtaining the first background image, being included at least on first background image has first
The fisrt feature image of feature and the second feature image with second feature, the fisrt feature image and the second feature
Image has the first relative position relation;
Detection unit obtains a predetermined registration operation for detecting;
Second acquisition unit, for obtaining the fisrt feature image and second spy on first background image
Levy image;
Generation unit, for keeping the second feature of the fisrt feature of the fisrt feature image and second feature image not
Become, change the relative position relation of the fisrt feature image and the second feature image, generate the second background image, wherein
Fisrt feature image described in second background image and the second feature image have the second relative position relation.
Optionally, the background image at the graphical interaction interface that second background image shows for the electronic equipment,
Wherein described graphical interaction interface also includes the shortcut icon being shown on second background image.
Optionally, first background image is further included as the fisrt feature image and the second feature image
The third feature image of background.
Optionally, the generation unit, is specifically used for:
Obtain the dimensional parameters of the display unit of the electronic equipment;
Second relative position relation is determined according to the dimensional parameters, and changes the fisrt feature image and described
The relative position relation of second feature image generates the second background image to second relative position relation.
Optionally, first background image includes a property parameters, and the property parameters, which include, characterizes first spy
Levy the location field of the relative position relation of image and the second feature image;
The generation unit characterizes the fisrt feature image and described second specifically for changing in the property parameters
The location field of the relative position relation of characteristic image, to change the phase of the fisrt feature image and the second feature image
To position relationship to second relative position relation, second background image is generated.
Optionally, when first background image includes n-layer figure layer, n is integer more than or equal to 2, each characteristic pattern
As when occupying one layer of figure layer, the generation unit is specifically used for:
It obtains residing for the first figure layer and/or the second feature image residing for the fisrt feature image for needing to change
Second figure layer;
According to second relative position relation, change the fisrt feature image and obtained in the position of first figure layer
3rd figure layer and/or the change second feature image obtain the 4th figure layer in the position of second figure layer;
First figure layer is updated to the 3rd figure layer and/or second figure layer is updated to the 4th figure layer,
Generate second background image.
Optionally, when first background image includes one layer of figure layer, the generation unit is specifically used for:
Institute's fisrt feature image and/or the second feature image are intercepted, wherein, the fisrt feature image is described the
The first area of one background image, the second feature image is in the second area of first background image;
According to pixel adjacent with the first area on first background image, picture is carried out to the first area
Vegetarian refreshments is filled;And/or according to pixel adjacent with the second area on first background image, to the second area
Carry out pixel filling;
The fisrt feature image is covered in the 3rd region of first background image and/or special by described second
Sign image is covered in the fourth region of first background image so that the fisrt feature image and the second feature image
Relative position relation change to second relative position relation, to generate second background image.
Optionally, the length and width ratio of the display unit of the electronic equipment is more than given threshold.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects
Fruit:
1st, the embodiment of the present application includes the first background image of fisrt feature image and second feature image by obtaining,
When detecting predetermined registration operation, the fisrt feature image of background image and second feature image are obtained, and is keeping characteristic image
In the case of feature invariant, change the relative position relation of fisrt feature image and second feature image, generate the second background
Image, so as to change the composition of desktop wallpaper, the structure of desktop wallpaper can not be changed by solving electronic equipment presence in the prior art
The technical issues of figure so that desktop wallpaper can be applicable in the electronic equipment of different display sizes, and then add desktop wallpaper and fit
Use scope.
2nd, the embodiment of the present application is by obtaining the dimensional parameters of the display unit of electronic equipment, according to the size of display unit
Parameter determines the second relative position relation of fisrt feature image and second feature image, has more to generate opposite display unit
Second background image of good composition improves the image quality of the desktop wallpaper of electronic equipment.
3rd, the embodiment of the present application is changing relative position the second background of generation of fisrt feature image and second feature image
During image, change the relative position of fisrt feature image and/or second feature image in respective figure layer, then update each figure
Layer the second background image of generation reduces the calculation amount of wallpaper composition, improves the efficiency of the second background image of generation.
Description of the drawings
Fig. 1 is a kind of flow diagram for information processing method that the embodiment of the present application one provides;
Fig. 2 is the schematic diagram for the second background image of generation that the embodiment of the present application one provides;
Fig. 3 is the schematic diagram in a manner of one the second background image of generation that the embodiment of the present application one provides;
Fig. 4 is the schematic diagram in a manner of two the second background images of generation that the embodiment of the present application one provides;
Fig. 5 is the schematic diagram for a kind of electronic equipment that the embodiment of the present application two provides.
Specific embodiment
In technical solution provided by the embodiments of the present application, by obtaining comprising fisrt feature image and second feature image
The first background image, when detecting predetermined registration operation, obtain the fisrt feature image of background image and second feature image, and
In the case where keeping the feature invariant of characteristic image, the relative position for changing fisrt feature image and second feature image is closed
System generates the second background image, and so as to change the composition of desktop wallpaper, solving electronic equipment presence in the prior art can not change
The technical issues of becoming the composition of desktop wallpaper so that desktop wallpaper can be applicable in the electronic equipment of different display sizes, Jin Erzeng
The desktop wallpaper scope of application is added.
Below in conjunction with the accompanying drawings to main realization principle, specific embodiment and its correspondence of the embodiment of the present application technical solution
The advantageous effect that can reach is explained in detail.
Embodiment one
It please refers to Fig.1, the embodiment of the present application provides a kind of information processing method, applied to an electronic equipment, the method
Including:
Step 101:The first background image is obtained, first with fisrt feature is included at least on first background image
Characteristic image and the second feature image with second feature, the fisrt feature image and the second feature image have the
One relative position relation;
Step 102:Detection obtains a predetermined registration operation;
Step 103:Obtain the fisrt feature image on first background image and the second feature image;
Step 104:Keep the fisrt feature image fisrt feature and second feature image second feature it is constant, change
Become the relative position relation of the fisrt feature image and the second feature image, the second background image is generated, wherein described
Fisrt feature image described in second background image and the second feature image have the second relative position relation.
In specific implementation process, information processing method provided by the embodiments of the present application can be applied to the length of display unit
Wide ratio is more than the electronic equipment of given threshold.Wherein, given threshold may be greater than the threshold value equal to 1, i.e. electronic equipment is shown
Show that the length of unit is more than width, such as:The electronic equipments such as mobile phone, iPad mini.Below by taking mobile phone as an example, the application is implemented
The information processing method that example provides is described in detail.
Step 101 obtains the first background image, can specifically obtain electronic equipment and set the back of the body at a graphical interaction interface
The image that user chooses under scape pattern, wherein, graphical interaction interface is the desktop of electronic equipment, includes multiple application programs
Shortcut icon and desktop background, that is, desktop wallpaper.At least include the fisrt feature figure with fisrt feature on first background image
Picture and the second feature image with second feature and the 3rd spy as fisrt feature image and the background of second feature image
Levy image.Wherein, fisrt feature and the spy that second feature is itself background of the first background image (i.e. third feature image) relatively
Levy element.Such as:The first background image that one Zhang Fei bird circles in the air in blue sky and white cloud, then flying bird and white clouds is with respect to the images
Background blue sky characteristic element, fisrt feature can be that flying bird, second feature can be white clouds;Again for example:Under one sun
Smiling face, fisrt feature can be then that the sun, second feature can be then smiling face, fisrt feature image with the sun and with
First relative position relation of the characteristic image of smiling face is point-blank.After step 101, receive and perform step 102.
Step 102 obtain a predetermined registration operation, the predetermined registration operation for electronic equipment it is default for reconstruct it is currently selected in
The operation of first background image.The predetermined registration operation can be user's waggle electronic device, on the first background image
The operation drawn a circle, the operation for double-clicking the first background image, click on the first background image reconstruction buttons on the display region
Operation etc..When obtaining predetermined registration operation, such as:User click on the first background image reconstruction buttons on the display region when, after
It is continuous to perform step 103.
Step 103 obtains fisrt feature image and second feature image on the first background image.Specifically, electronic equipment
Can be identified by image, Image Edge-Detection the methods of obtain fisrt feature image and second feature on the first background image
Image.In addition, when the first background image has the property parameters of flag sign figure, electronic equipment can also obtain attribute ginseng
The image of number mark is as fisrt feature image and second feature image.Obtain fisrt feature image and second feature image it
Afterwards, step 104 is continued to execute.
Step 104 keeps fisrt feature and second feature constant, changes the phase of fisrt feature image and second feature image
To position relationship, the second background image is generated.Specifically, the second background image is the graphical interaction interface that electronic equipment is shown
Background image, wherein, graphical interaction interface also includes the shortcut icon being shown on the second background image, i.e. the second background
Image is the desktop wallpaper of electronic equipment.
In specific implementation process, change the relative position relation of fisrt feature image and second feature image, generation the
During two background images, the dimensional parameters of the display unit of electronic equipment specifically can be first obtained;Then, according to the ruler of display unit
Very little parameter determines the second relative position relation of image in fisrt feature image and the second figure, and changes fisrt feature image and
The relative position relation of two characteristic images generates the second background image to the second relative position relation.It please refers to Fig.2, such as:It obtains
The fisrt feature image for obtaining the first background image is the sun, second feature image is smiling face, fisrt feature image and second feature
Point-blank, electronic equipment obtains the dimensional parameters of display unit to image:Length-width ratio is 4:3, electronic equipment searches size
The preset table of parameter and feature locations relation determines that for length-width ratio be 4:3 display unit, fisrt feature image and second
Second relative position relation of characteristic image is assumed to be upper and lower relation, then electronic equipment keeps the sun and smiling face constant, changes
The relative position relation of fisrt feature image with the sun and the second feature image with smiling face is to upper and lower relation, generation the
Two background images.
In the embodiment of the present application, the first background image for including a property parameters is also provided, which includes table
Levy the location field of the relative position relation of fisrt feature image and second feature image.For this purpose, electronic equipment is changing first
The relative position relation of characteristic image and second feature image when generating the second background image, has to the second relative position relation
Body can change the location field for the relative position relation that fisrt feature image and second feature image are characterized in property parameters, from
And the relative position relation for changing fisrt feature image and second feature image generates the second background to the second relative position relation
Image.
Further, the embodiment of the present application is additionally arranged one and describes file also in the property parameters of the first background image,
This describes file and describes position, size, rotation of each feature that wallpaper includes etc. for various sizes of display screen.Electronics
Equipment can obtain position, size, rotation of each feature corresponding with the size of current display unit etc. from description file,
Then corresponding location field, size field, rotation field are changed to generate the second background image.
In specific implementation process, the embodiment of the present application also provides the mode that the following two kinds generates the second background image:
Mode one:When the first background image includes one layer of figure layer, change fisrt feature image and second feature image
Relative position relation generates the second background image to the second relative position relation, specifically can first intercept fisrt feature image and/
Or second feature image, wherein, fisrt feature image is carried on the back in the first area of the first background image, second feature image first
The second area of scape image.
Due to the interception of fisrt feature image and/or second feature image so that the first area of the first background image and/
Or there is pixel missing in second area, and in order to fill up the pixel of missing, when electronic equipment has intercepted fisrt feature image,
Electronic equipment carries out pixel filling according to pixel adjacent with first area on the first background image to first area;When
When electronic equipment has intercepted second feature image, electronic equipment is according to pixel adjacent with second area on the first background image
Point carries out pixel filling to second area;When electronic equipment has intercepted fisrt feature image and second feature image, electronics
Equipment carries out pixel filling and according to adjacent with second area according to the pixel adjacent with first area to first area
Pixel to second area carry out pixel filling.Specifically, electronic equipment may be employed and sweep when carrying out pixel filling
The methods of retouching line filling algorithm, seed fill algorithm, edge marking filling, weighted mean method Image Fusion carries out pixel
Filling so that image and the side images for filling formation are basically identical.
Further, after pixel filling is completed, fisrt feature image is covered in the of the first background image
Three regions and/or the fourth region that second feature image is covered in the first background image so that fisrt feature image and second
The relative position relation of characteristic image changes to second relative position relation, to generate the second background image.Specifically, work as
When electronic equipment has only intercepted fisrt feature image, fisrt feature image is covered in and second feature image place by electronic equipment
Second area between have the second relative position relation the 3rd region;When electronic equipment has only intercepted second feature image
When, second feature image is covered in by electronic equipment has the second opposite position between the first area where fisrt feature image
Put the fourth region of relation;When electronic equipment has intercepted fisrt feature image and second feature image, electronic equipment is first the
The 3rd region with the second relative position relation and the fourth region are determined in one background image, then covers fisrt feature image
It is placed on the 3rd region, second feature image is covered in the fourth region so that the phase of fisrt feature image and second feature image
Position relationship is changed to second relative position relation.
It please refers to Fig.3, such as:Assuming that the first background image only has there are one figure layer, fisrt feature image A is located at first back of the body
The first area of scape image, second feature image B is located at the second area of the first background image, to that will be located at same ordinate
The position relationship of fisrt feature image A and second feature image B on point change into the longitudinal axis positions residing for fisrt feature image A
On the longitudinal axis positions residing for second feature image B, then electronic equipment can intercept the fisrt feature figure of first area
As A, pixel filling is then carried out to first area using edge marking filling in the first region;Then by fisrt feature figure
As A be covered in pixel filling after the completion of the first background image the 3rd region, to generate the second background image, will such as be located at
Fisrt feature image A at point (x, y) is covered at point (x, y+5) and is kept the with the second feature image in point (x-5, y)
Two relative position relations.According to same reason, electronic equipment can also individually intercept second feature image or interception first
Characteristic image and second feature image, then carry out pixel filling and characteristic image covers and then generates the second background image.
Mode two:When the first background image includes n-layer figure layer, n is the integer more than or equal to 2, each characteristic image accounts for
When having one layer of figure layer, change the relative position relation of fisrt feature image and second feature image to the second relative position relation,
The second background image is generated, specifically can first obtain the first figure layer and/or second residing for the fisrt feature image for needing to change
The second figure layer residing for characteristic image;Then, according to the second relative position relation, fisrt feature image is changed in the first figure layer
Position obtains the 3rd figure layer and/or changes second feature image obtains the 4th figure layer in the position of the second figure layer;Then, by
One figure layer is updated to the 3rd figure layer and/or the second figure layer is updated to the 4th figure layer, generates the second background image.
It please refers to Fig.4, such as:Assuming that the first background image includes 3 figure layers, fisrt feature image A is located at the first figure layer 1
On, second feature image B is located in the second figure layer 2, third feature image (i.e. the first background image image background of itself) position
In on Background From Layer 0, closed to the fisrt feature image A that will be located on same ordinate point and the position of second feature image B
It is that the longitudinal axis positions changed into residing for fisrt feature image A are located on the longitudinal axis positions residing for second feature image B, then electricity
Sub- equipment can obtain the fisrt feature image A in figure layer 1, then increase fisrt feature image A along the longitudinal axis in the first figure layer 1
Fisrt feature image A is such as moved to the 3rd figure layer 3 of acquisition at point (x, y+5), most by big direction movement from point (x, y)
The figure layer changed in the first background image is updated afterwards, i.e., replaces the first figure layer 1 with the 3rd figure layer 3 so as to generate the second Background
Picture.Certainly, the characteristic pattern image position in one or more figure layer can be changed according to the second different relative position relations
It puts, the figure layer after change is then replaced into artwork layer to obtain the second background image, specific implementation process and examples detailed above principle
It is identical, it just no longer describes one by one herein.
In mode two, changing relative position the second background image of generation of fisrt feature image and second feature image
When, change the relative position of fisrt feature image and/or second feature image in respective figure layer, then update each figure layer life
Into the second background image, the integrality of each figure layer ensure that, avoid the calculating and processing of pixel filling, reduce wallpaper
The calculation amount of composition improves the efficiency of the second background image of generation.
In the above-described embodiments, the embodiment of the present application is by obtaining the comprising fisrt feature image and second feature image
One background image when detecting predetermined registration operation, obtains the fisrt feature image of background image and second feature image, and is protecting
In the case of the feature invariant for holding characteristic image, change the relative position relation of fisrt feature image and second feature image,
The second background image is generated, so as to change the composition of desktop wallpaper, solving electronic equipment presence in the prior art can not change
The technical issues of composition of desktop wallpaper so that desktop wallpaper can be applicable in the electronic equipment of different display sizes, and then increase
The desktop wallpaper scope of application.Also, the dimensional parameters by the display unit for obtaining electronic equipment, according to the ruler of display unit
Very little parameter determines the second relative position relation of fisrt feature image and second feature image, has to generate opposite display unit
More preferably the second background image of composition improves the image quality of the desktop wallpaper of electronic equipment.
Embodiment two
Fig. 5 is refer to, the embodiment of the present application provides a kind of electronic equipment, including:
First acquisition unit 501, being included at least for obtaining the first background image, on first background image has the
The fisrt feature image of one feature and the second feature image with second feature, the fisrt feature image and second spy
Levying image has the first relative position relation;
Detection unit 502 obtains a predetermined registration operation for detecting;
Second acquisition unit 503, for obtaining the fisrt feature image and described on first background image
Two characteristic images;
Generation unit 504, for keeping the second of the fisrt feature of the fisrt feature image and second feature image the spy
It levies constant, changes the relative position relation of the fisrt feature image and the second feature image, generate the second background image,
Fisrt feature image described in wherein described second background image and the second feature image have the second relative position relation.
In specific implementation process, the length and width ratio of the display unit of the electronic equipment is more than given threshold.Described
The background image at the graphical interaction interface that two background images show for the electronic equipment, wherein the graphical interaction interface is also
Include the shortcut icon being shown on second background image.Further, first background image further includes conduct
The third feature image of the background of the fisrt feature image and the second feature image.
In specific implementation process, the generation unit 504 is specifically used for:Obtain the display unit of the electronic equipment
Dimensional parameters;Second relative position relation is determined according to the dimensional parameters, and changes the fisrt feature image and institute
The relative position relation of second feature image is stated to second relative position relation, generates the second background image.
In specific implementation process, first background image includes a property parameters, and the property parameters include characterization
The location field of the relative position relation of the fisrt feature image and the second feature image;The generation unit 504, tool
Body is for changing characterizing the relative position relation of the fisrt feature image and the second feature image in the property parameters
Location field, to change the relative position relation of the fisrt feature image and the second feature image to second phase
To position relationship, second background image is generated.
In specific implementation process, when first background image includes n-layer figure layer, n is the integer more than or equal to 2, often
When one characteristic image occupies one layer of figure layer, the generation unit 504 is specifically used for:Obtain first spy for needing to change
Levy the first figure layer residing for image and/or the second figure layer residing for second feature image;It is closed according to second relative position
System changes the fisrt feature image and the 3rd figure layer is obtained in the position of first figure layer and/or changes the second feature
Image obtains the 4th figure layer in the position of second figure layer;First figure layer is updated to the 3rd figure layer and/or institute
It states the second figure layer and is updated to the 4th figure layer, generate second background image.
In specific implementation process, when first background image includes one layer of figure layer, the generation unit 504, tool
Body is used for:Institute's fisrt feature image and/or the second feature image are intercepted, wherein, the fisrt feature image is described the
The first area of one background image, the second feature image is in the second area of first background image;According to described
The pixel adjacent with the first area on one background image carries out pixel filling to the first area;And/or according to
The pixel adjacent with the second area on first background image carries out pixel filling to the second area;It will
The fisrt feature image is covered in the 3rd region of first background image and/or covers the second feature image
In the fourth region of first background image so that the relative position of the fisrt feature image and the second feature image
Relation changes to second relative position relation, to generate second background image.
By one or more of the embodiment of the present application technical solution, following one or more technology effects can be realized
Fruit:
1st, the embodiment of the present application includes the first background image of fisrt feature image and second feature image by obtaining,
When detecting predetermined registration operation, the fisrt feature image of background image and second feature image are obtained, and is keeping characteristic image
In the case of feature invariant, change the relative position relation of fisrt feature image and second feature image, generate the second background
Image, so as to change the composition of desktop wallpaper, the structure of desktop wallpaper can not be changed by solving electronic equipment presence in the prior art
The technical issues of figure so that desktop wallpaper can be applicable in the electronic equipment of different display sizes, and then add desktop wallpaper and fit
Use scope.
2nd, the embodiment of the present application is by obtaining the dimensional parameters of the display unit of electronic equipment, according to the size of display unit
Parameter determines the second relative position relation of fisrt feature image and second feature image, has more to generate opposite display unit
Second background image of good composition improves the image quality of the desktop wallpaper of electronic equipment.
3rd, the embodiment of the present application is changing relative position the second background of generation of fisrt feature image and second feature image
During image, change the relative position of fisrt feature image and/or second feature image in respective figure layer, then update each figure
Layer the second background image of generation reduces the calculation amount of wallpaper composition, improves the efficiency of the second background image of generation.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of information processing method in the embodiment of the present application can be stored in
On the storage mediums such as CD, hard disk, USB flash disk, when computer program instructions corresponding with the information processing method in storage medium
It is read or is performed by an electronic equipment, include the following steps:
The first background image is obtained, the fisrt feature image with fisrt feature is included at least on first background image
With the second feature image with second feature, the fisrt feature image and the second feature image have the first opposite position
Put relation;
Detection obtains a predetermined registration operation;
Obtain the fisrt feature image on first background image and the second feature image;
Keep the fisrt feature image fisrt feature and second feature image second feature it is constant, change described the
The relative position relation of one characteristic image and the second feature image generates the second background image, wherein second background
Fisrt feature image described in image and the second feature image have the second relative position relation.
Optionally, the background image at the graphical interaction interface that second background image shows for the electronic equipment,
Wherein described graphical interaction interface also includes the shortcut icon being shown on second background image.
Optionally, first background image is further included as the fisrt feature image and the second feature image
The third feature image of background.
Optionally, the relative position relation for changing the fisrt feature image and the second feature image, generation
Second background image, specifically includes:Obtain the dimensional parameters of the display unit of the electronic equipment;It is true according to the dimensional parameters
Fixed second relative position relation, and change the relative position relation of the fisrt feature image and the second feature image
To second relative position relation, the second background image is generated.
Optionally, first background image includes a property parameters, and the property parameters, which include, characterizes first spy
Levy the location field of the relative position relation of image and the second feature image;It is described to change the fisrt feature image and institute
The relative position relation of second feature image is stated to second relative position relation, the second background image is generated, is specially:Change
Become in the property parameters position word for the relative position relation for characterizing the fisrt feature image and the second feature image
Section, is closed with relative position relation to second relative position for changing the fisrt feature image and the second feature image
System generates second background image.
Optionally, when first background image includes n-layer figure layer, n is integer more than or equal to 2, each characteristic pattern
As when occupying one layer of figure layer, the relative position relation for changing the fisrt feature image and the second feature image to institute
The second relative position relation is stated, the second background image is generated, specifically includes:Obtain the fisrt feature image institute for needing to change
The second figure layer residing for first figure layer at place and/or second feature image;According to second relative position relation, change institute
Fisrt feature image is stated to obtain the 3rd figure layer in the position of first figure layer and/or change the second feature image in institute
The position for stating the second figure layer obtains the 4th figure layer;First figure layer is updated to the 3rd figure layer and/or second figure
Layer is updated to the 4th figure layer, generates second background image.
Optionally, it is described to change the fisrt feature image and institute when first background image includes one layer of figure layer
The relative position relation of second feature image is stated to second relative position relation, the second background image is generated, specifically includes:
Institute's fisrt feature image and/or the second feature image are intercepted, wherein, the fisrt feature image is in first Background
The first area of picture, the second feature image is in the second area of first background image;According to first Background
As the upper pixel adjacent with the first area, pixel filling is carried out to the first area;And/or according to described first
The pixel adjacent with the second area on background image carries out pixel filling to the second area;
The fisrt feature image is covered in the 3rd region of first background image and/or special by described second
Sign image is covered in the fourth region of first background image so that the fisrt feature image and the second feature image
Relative position relation change to second relative position relation, to generate second background image.
Optionally, the length and width ratio of the display unit of the electronic equipment is more than given threshold.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these modification and variations.
Claims (16)
1. a kind of information processing method, applied to an electronic equipment, the described method includes:
The first background image is obtained, fisrt feature image and tool with fisrt feature are included at least on first background image
There are the second feature image of second feature, the fisrt feature image and the second feature image to be closed with the first relative position
System;
Detection obtains a predetermined registration operation;
Obtain the fisrt feature image on first background image and the second feature image;
Keep the fisrt feature image fisrt feature and second feature image second feature it is constant, it is special to change described first
The relative position relation of image and the second feature image is levied, the second background image is generated, wherein second background image
Described in fisrt feature image and the second feature image there is the second relative position relation.
2. the method as described in claim 1, which is characterized in that second background image is one that the electronic equipment is shown
The background image at graphical interaction interface is shown in wherein the graphical interaction interface also includes on second background image
Shortcut icon.
3. the method as described in claim 1, which is characterized in that first background image is further included as the fisrt feature
The third feature image of the background of image and the second feature image.
4. the method as described in claims 1 to 3 is any, which is characterized in that the fisrt feature image and described of changing
The relative position relation of second feature image generates the second background image, specifically includes:
Obtain the dimensional parameters of the display unit of the electronic equipment;
Second relative position relation is determined according to the dimensional parameters, and changes the fisrt feature image and described second
The relative position relation of characteristic image generates the second background image to second relative position relation.
5. method as claimed in claim 4, which is characterized in that first background image includes a property parameters, the category
Property parameter include the location field of the relative position relation for characterizing the fisrt feature image and the second feature image;
The relative position relation for changing the fisrt feature image and the second feature image is to described second with respect to position
Relation is put, generates the second background image, is specially:
Change relative position relation that the fisrt feature image and the second feature image are characterized in the property parameters
Location field, to change the relative position relation of the fisrt feature image and the second feature image to described second opposite
Position relationship generates second background image.
6. method as claimed in claim 4, which is characterized in that when first background image include n-layer figure layer, n be more than
Integer equal to 2, it is described to change the fisrt feature image and second spy when each characteristic image occupies one layer of figure layer
The relative position relation of image is levied to second relative position relation, the second background image is generated, specifically includes:
Obtain second residing for the first figure layer and/or the second feature image residing for the fisrt feature image for needing to change
Figure layer;
According to second relative position relation, change the fisrt feature image and obtain the 3rd in the position of first figure layer
Figure layer and/or the change second feature image obtain the 4th figure layer in the position of second figure layer;
First figure layer is updated to the 3rd figure layer and/or second figure layer is updated to the 4th figure layer, is generated
Second background image.
7. method as claimed in claim 4, which is characterized in that described when first background image includes one layer of figure layer
Change the relative position relation of the fisrt feature image and the second feature image to second relative position relation, it is raw
Into the second background image, specifically include:
Institute's fisrt feature image and/or the second feature image are intercepted, wherein, the fisrt feature image is in described first back of the body
The first area of scape image, the second feature image is in the second area of first background image;
According to pixel adjacent with the first area on first background image, pixel is carried out to the first area
Filling;And/or according to pixel adjacent with the second area on first background image, the second area is carried out
Pixel is filled;
The fisrt feature image is covered in the 3rd region of first background image and/or by the second feature figure
The fourth region as being covered in first background image so that the phase of the fisrt feature image and the second feature image
Position relationship is changed to second relative position relation, to generate second background image.
8. the method as described in claim 1, which is characterized in that the length and width ratio of the display unit of the electronic equipment, which is more than, to be set
Determine threshold value.
9. a kind of electronic equipment, including:
First acquisition unit, for obtaining the first background image, being included at least on first background image has fisrt feature
Fisrt feature image and second feature image with second feature, the fisrt feature image and the second feature image
With the first relative position relation;
Detection unit obtains a predetermined registration operation for detecting;
Second acquisition unit, for obtaining the fisrt feature image and the second feature figure on first background image
Picture;
Generation unit, for keeping the second feature of the fisrt feature of the fisrt feature image and second feature image constant,
Change the relative position relation of the fisrt feature image and the second feature image, generate the second background image, wherein institute
Stating fisrt feature image described in the second background image and the second feature image has the second relative position relation.
10. electronic equipment as claimed in claim 9, which is characterized in that second background image shows for the electronic equipment
The background image at the graphical interaction interface shown, wherein the graphical interaction interface, which also includes, is shown in second Background
As upper shortcut icon.
11. electronic equipment as claimed in claim 9, which is characterized in that first background image is further included as described
The third feature image of the background of one characteristic image and the second feature image.
12. the electronic equipment as described in claim 9~11 is any, which is characterized in that the generation unit is specifically used for:
Obtain the dimensional parameters of the display unit of the electronic equipment;
Second relative position relation is determined according to the dimensional parameters, and changes the fisrt feature image and described second
The relative position relation of characteristic image generates the second background image to second relative position relation.
13. electronic equipment as claimed in claim 12, which is characterized in that first background image includes a property parameters,
The property parameters include the position word for the relative position relation for characterizing the fisrt feature image and the second feature image
Section;
The generation unit characterizes the fisrt feature image and the second feature specifically for changing in the property parameters
The location field of the relative position relation of image, to change the opposite position of the fisrt feature image and the second feature image
Relation is put to second relative position relation, generates second background image.
14. electronic equipment as claimed in claim 12, which is characterized in that when first background image includes n-layer figure layer, n
To be more than or equal to 2 integer, when each characteristic image occupies one layer of figure layer, the generation unit is specifically used for:
Obtain second residing for the first figure layer and/or the second feature image residing for the fisrt feature image for needing to change
Figure layer;
According to second relative position relation, change the fisrt feature image and obtain the 3rd in the position of first figure layer
Figure layer and/or the change second feature image obtain the 4th figure layer in the position of second figure layer;
First figure layer is updated to the 3rd figure layer and/or second figure layer is updated to the 4th figure layer, is generated
Second background image.
15. electronic equipment as claimed in claim 12, which is characterized in that when first background image includes one layer of figure layer
When, the generation unit is specifically used for:
Institute's fisrt feature image and/or the second feature image are intercepted, wherein, the fisrt feature image is in described first back of the body
The first area of scape image, the second feature image is in the second area of first background image;
According to pixel adjacent with the first area on first background image, pixel is carried out to the first area
Filling;And/or according to pixel adjacent with the second area on first background image, the second area is carried out
Pixel is filled;
The fisrt feature image is covered in the 3rd region of first background image and/or by the second feature figure
The fourth region as being covered in first background image so that the phase of the fisrt feature image and the second feature image
Position relationship is changed to second relative position relation, to generate second background image.
16. electronic equipment as claimed in claim 9, which is characterized in that the length and width ratio of the display unit of the electronic equipment
More than given threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410488511.2A CN104238892B (en) | 2014-09-22 | 2014-09-22 | A kind of information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410488511.2A CN104238892B (en) | 2014-09-22 | 2014-09-22 | A kind of information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104238892A CN104238892A (en) | 2014-12-24 |
CN104238892B true CN104238892B (en) | 2018-06-01 |
Family
ID=52227085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410488511.2A Active CN104238892B (en) | 2014-09-22 | 2014-09-22 | A kind of information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104238892B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461439B (en) * | 2014-12-29 | 2019-05-31 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN107211056B (en) * | 2015-01-30 | 2020-04-03 | 华为技术有限公司 | Terminal wallpaper control method and terminal |
CN105912189A (en) * | 2016-03-29 | 2016-08-31 | 乐视控股(北京)有限公司 | Method and device for arranging desktop icons |
CN108270978B (en) * | 2016-12-30 | 2021-08-13 | 纳恩博(北京)科技有限公司 | Image processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1573689A (en) * | 2003-06-18 | 2005-02-02 | Lg电子株式会社 | Method for controlling display mode in portable computer |
CN101483719A (en) * | 2008-01-10 | 2009-07-15 | 株式会社尼康 | Information displaying apparatus |
CN103164119A (en) * | 2013-02-25 | 2013-06-19 | 东莞宇龙通信科技有限公司 | Communication terminal and self-adaption display method of images |
CN103826061A (en) * | 2014-02-20 | 2014-05-28 | 联想(北京)有限公司 | Information processing method and electronic device |
CN103870124A (en) * | 2014-03-03 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103945121A (en) * | 2014-03-24 | 2014-07-23 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2014
- 2014-09-22 CN CN201410488511.2A patent/CN104238892B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1573689A (en) * | 2003-06-18 | 2005-02-02 | Lg电子株式会社 | Method for controlling display mode in portable computer |
CN101483719A (en) * | 2008-01-10 | 2009-07-15 | 株式会社尼康 | Information displaying apparatus |
CN103164119A (en) * | 2013-02-25 | 2013-06-19 | 东莞宇龙通信科技有限公司 | Communication terminal and self-adaption display method of images |
CN103826061A (en) * | 2014-02-20 | 2014-05-28 | 联想(北京)有限公司 | Information processing method and electronic device |
CN103870124A (en) * | 2014-03-03 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103945121A (en) * | 2014-03-24 | 2014-07-23 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104238892A (en) | 2014-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180276882A1 (en) | Systems and methods for augmented reality art creation | |
KR101636808B1 (en) | Dynamic graphical interface shadows | |
US9202309B2 (en) | Methods and apparatus for digital stereo drawing | |
KR101497172B1 (en) | Altering the appearance of a digital image using a shape | |
CN104238892B (en) | A kind of information processing method and electronic equipment | |
US9516214B2 (en) | Information processing device and information processing method | |
US8624893B2 (en) | System and method for generating 2D texture coordinates for 3D meshed surfaces | |
US8457405B2 (en) | Example-based procedural synthesis of element arrangements | |
CN105740256A (en) | Generation method and generation device of three-dimensional map | |
CN111583379B (en) | Virtual model rendering method and device, storage medium and electronic equipment | |
CN110221722A (en) | Image processing method, electronic equipment and storage medium | |
US20130016098A1 (en) | Method for creating a 3-dimensional model from a 2-dimensional source image | |
CN110751730A (en) | Dressing human body shape estimation method based on deep neural network | |
Sun et al. | Texture brush: an interactive surface texturing interface | |
US20160063669A1 (en) | Dynamic Motion Path Blur User Interface | |
EP3034999A1 (en) | Method and apparatus for generating a composite image based on an ambient occlusion | |
CN105808035A (en) | Icon display method and apparatus | |
Governi et al. | Digital bas-relief design: A novel shape from shading-based method | |
CN108765535A (en) | The labeling method and device in a kind of three-dimensional point cloud missing data region | |
CN111773706B (en) | Game scene rendering method and device | |
CN109445569A (en) | Information processing method, device, equipment and readable storage medium storing program for executing based on AR | |
CN106354356A (en) | Method and terminal for managing application icon | |
CN108038900A (en) | Oblique photograph model monomerization approach, system and computer-readable recording medium | |
CN104346771B (en) | A kind of electronic map tiered management approach | |
CN109189537A (en) | The dynamic display method of page info calculates equipment and computer 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 |