CN108898652A - A kind of skin image setting method, device and electronic equipment - Google Patents
A kind of skin image setting method, device and electronic equipment Download PDFInfo
- Publication number
- CN108898652A CN108898652A CN201810609514.5A CN201810609514A CN108898652A CN 108898652 A CN108898652 A CN 108898652A CN 201810609514 A CN201810609514 A CN 201810609514A CN 108898652 A CN108898652 A CN 108898652A
- Authority
- CN
- China
- Prior art keywords
- image
- frame
- dynamic
- skin
- frame consecutive
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
- G06T13/40—3D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present invention provides a kind of skin image setting method, device and electronic equipment, for solving the problem of that the skin image of software is all static so that reducing the flexibility of software skin image, wherein this method includes:M frame consecutive image is obtained, M is the integer more than or equal to 1;N frame consecutive image is obtained, N is the integer greater than 1;M frame consecutive image is synthesized into the first dynamic image with N frame consecutive image, the frame number of the first dynamic image is greater than or equal to N, and is less than or equal to the product of M and N;Set the first dynamic image to the skin image of target software.Implement the embodiment of the present invention, dynamic skin image can be set for software, so as to improve the flexibility of software skin image.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of skin image setting method, device and electronic equipment.
Background technique
With the continuous development of computer technology, the software installed on the electronic equipments such as mobile phone, tablet computer, desktop computer
It is more and more, and skin has become a kind of critical function of software.The skin image of software can switch, when needing to switch
When the skin image of software, skin image will be obtained from the skin image library of software, and switch using the skin image obtained
Former skin image.Currently, the skin image of software is all static, so that reducing the flexibility of software skin image.
Summary of the invention
The embodiment of the present invention provides a kind of skin image setting method, device and electronic equipment, for solving the skin of software
Skin image is all static, so that the problem of reducing the flexibility of software skin image.
First aspect of the embodiment of the present invention provides a kind of skin image setting method, including:
M frame consecutive image is obtained, the M is the integer more than or equal to 1;
N frame consecutive image is obtained, the N is the integer greater than 1;
The M frame consecutive image is synthesized into the first dynamic image with the N frame consecutive image, first dynamic image
Frame number is greater than or equal to the N, and is less than or equal to the product of the M and the N;
Set first dynamic image to the skin image of target software.
In one embodiment, described that the M frame consecutive image is synthesized into the first dynamic image with the N frame consecutive image
Including:
It with the N frame consecutive image is that foreground image synthesizes the first dynamic image that the M frame consecutive image, which is background image,
Or it with the M frame consecutive image is that foreground image synthesizes the first dynamic image that the N frame consecutive image, which is background image,.
In one embodiment, the M frame consecutive image is background image and the N frame consecutive image is that foreground image closes
Include at the first dynamic image:
The object in first frame image is obtained, the first frame image is any frame image in the N frame consecutive image;
The object is arranged to move in the second frame image along desired trajectory, obtains the first dynamic image, second frame
Image be the M frame consecutive image in any frame image, when the object is moved along the desired trajectory, the object be with
Covering or transparent mode are shown on second image.
In one embodiment, the method also includes:
When detecting the idsplay order for showing the skin image, the first image is shown, the first image is
Any frame image in the M frame consecutive image, the N frame consecutive image and first dynamic image.
In one embodiment, the method also includes:
When detecting the clicking operation for the first image, first dynamic image is shown.
In one embodiment, the method also includes:
Establish the first corresponding relationship between first dynamic image and the specified function of the target software;
While showing first dynamic image, the specified function is executed according to first corresponding relationship.
In one embodiment, the method also includes:
When the specified function has executed, the first image is shown, while in the first image described in display
The implementing result of specified function.
In one embodiment, when detecting the clicking operation for the first image, the method also includes:
The area of the display area of the first image is increased into specified area, obtains destination display area;
It is described to show that first dynamic image includes:
First dynamic image is shown in the destination display area.
In one embodiment, the method also includes:
K frame consecutive image is obtained, the K is the integer more than or equal to 1;
L frame consecutive image is obtained, the L is the integer greater than 1;
The K frame consecutive image is synthesized into the second dynamic image with the L frame consecutive image, second dynamic image
Frame number is greater than or equal to the L, and is less than or equal to the product of the K and the L;
The skin image for setting target software for first dynamic image includes:
Set first dynamic image and second dynamic image to the skin image of target software;
It is described when detecting the idsplay order for showing the skin image, display the first image include:
When detecting the idsplay order for showing the skin image, the first image and the second image are shown, it is described
Second image is any frame image in the K frame consecutive image, the L frame consecutive image and second dynamic image.
In one embodiment, the method also includes:
When cursor is moved to the display area of second image, second dynamic image is shown.
In one embodiment, the method also includes:
Establish the second corresponding relationship of second dynamic image and specific function;
When detecting the clicking operation for second dynamic image, according to second corresponding relationship execution
Specific function.
Second aspect of the embodiment of the present invention provides a kind of skin image setting device, including:
First acquisition unit, for obtaining M frame consecutive image, the M is the integer more than or equal to 1;
Second acquisition unit, for obtaining N frame consecutive image, the N is the integer greater than 1;
First synthesis unit, M frame consecutive image and described second for obtaining the first acquisition unit obtain single
The N frame consecutive image that member obtains synthesizes the first dynamic image, and the frame number of first dynamic image is greater than or equal to the N, and
Less than or equal to the product of the M and the N;
Setting unit, the first dynamic image for synthesizing first synthesis unit are set as the skin of target software
Image.
In one embodiment, first synthesis unit, being specifically used for the M frame consecutive image is background image and institute
Stating N frame consecutive image is that foreground image synthesizes the first dynamic image or the N frame consecutive image is background image and the M frame
Consecutive image is that foreground image synthesizes the first dynamic image.
In one embodiment, M frame consecutive image described in first synthesis unit is that background image and the N frame are continuous
Image is that foreground image the first dynamic image of synthesis includes:
The object in first frame image is obtained, the first frame image is any frame image in the N frame consecutive image;
The object is arranged to move in the second frame image along desired trajectory, obtains the first dynamic image, second frame
Image be the M frame consecutive image in any frame image, when the object is moved along the desired trajectory, the object be with
Covering or transparent mode are shown on second image.
In one embodiment, described device further includes:
Display unit, for showing the first image, institute when detecting the idsplay order for showing the skin image
Stating the first image is any frame figure in the M frame consecutive image, the N frame consecutive image and first dynamic image
Picture.
In one embodiment, the display unit is also used to work as the clicking operation detected for the first image
When, show the first dynamic image of the first synthesis unit synthesis.
In one embodiment, described device further includes:
First establishing unit, for establishing the first dynamic image and the target software of the first synthesis unit synthesis
Specified function between the first corresponding relationship;
First execution unit, for while the display unit shows first dynamic image, according to described the
One the first corresponding relationship for establishing unit foundation executes the specified function.
In one embodiment, the display unit is also used to hold when the specified function that first execution unit executes
When having gone, the first image is shown, while the implementing result of the specified function is shown in the first image.
In one embodiment, when detecting the clicking operation for the first image, described device further includes:
It is aobvious to obtain target for the area of the display area of the first image to be increased to specified area for increasing unit
Show region;
The display unit shows that first dynamic image includes:
First dynamic image is shown in the destination display area that the increasing unit obtains.
In one embodiment, described device further includes:
Third acquiring unit, for obtaining K frame consecutive image, the K is the integer more than or equal to 1;
4th acquiring unit, for obtaining L frame consecutive image, the L is the integer greater than 1;
Second synthesis unit, K frame consecutive image and the described 4th for obtaining the third acquiring unit obtain single
The L frame consecutive image that member obtains synthesizes the second dynamic image, and the frame number of second dynamic image is greater than or equal to the L, and
Less than or equal to the product of the K and the L;
The setting unit is closed specifically for the first dynamic image and described second for synthesizing first synthesis unit
The skin image of target software is set as at the second dynamic image that unit synthesizes;
The display unit shows the first image packet when detecting the idsplay order for showing the skin image
It includes:
When detecting the idsplay order for showing the skin image, the first image and the second image are shown, it is described
Second image is any frame image in the K frame consecutive image, the L frame consecutive image and second dynamic image.
In one embodiment, the display unit is also used to be moved to the display area of second image when cursor
When, show second dynamic image.
In one embodiment, described device further includes:
Second establishes unit, for establishing the second corresponding relationship of second dynamic image and specific function;
Second execution unit, for when the clicking operation for detecting the second dynamic image shown for the display unit
When, the second corresponding relationship for establishing unit foundation according to described second executes the specific function.
The third aspect of the embodiment of the present invention provides a kind of electronic equipment, including processor, memory, input unit and defeated
Device out, the processor, the memory, the input unit and the output device are connected with each other, wherein the storage
Device is used to store the computer program for supporting the electronic equipment to execute above-mentioned skin image setting method, the computer program
Including program instruction, the processor is configured for calling described program instruction, executes first aspect or first aspect is any
Skin image setting method described in the possible implementation of kind.
Fourth aspect of the embodiment of the present invention provides a kind of storage medium, and the storage medium is stored with computer program,
The computer program includes program instruction, and described program instruction makes the processor execute first party when being executed by a processor
Skin image setting method described in face or any possible implementation of first aspect.
The 5th aspect of the embodiment of the present invention provides a kind of application program, and the application program for executing this hair at runtime
A kind of skin image setting method that bright embodiment first aspect or any possible implementation of first aspect provide.
In the embodiment of the present invention, M frame consecutive image is obtained, obtains N frame consecutive image, M frame consecutive image and N frame is continuous
Image synthesizes the first dynamic image, sets the first dynamic image to the skin image of target software, can be dynamic for software setting
The skin image of state, so as to improve the flexibility of software skin image.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of skin image setting method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another skin image setting method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of skin image setting device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 5 is the skin image schematic diagram that a kind of Jinshan anti-virus software provided in an embodiment of the present invention accelerates ball.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of skin image setting method, device and electronic equipment, for solving the skin of software
Skin image is all static, so that the problem of reducing the flexibility of software skin image.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of skin image setting method provided in an embodiment of the present invention.Such as
Shown in Fig. 1, which be may comprise steps of.
101, M frame consecutive image is obtained.
In the present embodiment, when needing that dynamic skin image is arranged for target software, M frame consecutive image will acquire, it can
To be obtained from the image being locally stored, it is also possible to obtain from the image that server stores.Wherein, M be greater than
Or the integer equal to 1.
102, N frame consecutive image is obtained.
In the present embodiment, when needing that dynamic skin image is arranged for target software, N frame consecutive image will acquire, it can
To be obtained from the image being locally stored, it is also possible to obtain from the image that server stores.Wherein, N is greater than 1
Integer.
Step 101 and step 102 can be to be executed parallel, is also possible to serially to execute.
103, M frame consecutive image is synthesized into the first dynamic image with N frame consecutive image.
It is after getting M frame consecutive image and N frame consecutive image, M frame consecutive image and N frame is continuous in the present embodiment
Image synthesizes the first dynamic image, and the frame number of the first dynamic image is greater than or equal to N, and is less than or equal to the product of M and N, works as M
When being 1, the frame number of the first dynamic image is equal to N.Can using M frame consecutive image as background image, using N frame consecutive image as
Foreground image synthesizes the first dynamic image, when M is 1, can using every frame image in N frame consecutive image as foreground image and
This frame image as background image is synthesized, and the consecutive image for obtaining the synthesis of N frame forms the first dynamic image.It can also be with
Using N frame consecutive image as background image, using M frame consecutive image as foreground image, synthesized to obtain the first dynamic image.
Image in first dynamic image of synthesis between consecutive frame can be background image difference, and foreground image is identical;It is also possible to
Foreground image is different, and background image is identical;It can also be that background image and foreground image are different.Wherein, dynamic in synthesis first
When state image, only the object in foreground image can be synthesized with background image, and the blank parts in foreground image can
To ignore, can be and move the object in foreground image along certain track in background image, when movement before scenery
Body, which can be, to be covered on background image, is also possible to be shown on background image in a transparent manner.
104, the first dynamic image is set to the skin image of target software.
It, can be by the after M frame consecutive image and N frame consecutive image are synthesized the first dynamic image in the present embodiment
One dynamic image is set as the skin image of target software, can be the skin figure that the first dynamic image is stored in target software
As in library.
In the skin image setting method described in Fig. 1, M frame consecutive image is obtained, N frame consecutive image is obtained, by M frame
Consecutive image synthesizes the first dynamic image with N frame consecutive image, sets the first dynamic image to the skin image of target software,
Dynamic skin image can be set for software, so as to improve the flexibility of software skin image.
Referring to Fig. 2, Fig. 2 is the flow diagram of another skin image setting method provided in an embodiment of the present invention.
As shown in Fig. 2, the skin image setting method may comprise steps of.
201, M frame consecutive image is obtained, N frame consecutive image is obtained, M frame consecutive image is synthesized with N frame consecutive image to the
One dynamic image.
In the present embodiment, when needing that dynamic skin image is arranged for target software, M frame consecutive image will acquire, with
And N frame consecutive image is obtained, it can be and obtained from the image being locally stored, is also possible to from the image that server stores
It obtains.M frame consecutive image is synthesized into the first dynamic image with N frame consecutive image later, M frame consecutive image and N frame is continuous
Image synthesizes the first dynamic image and synthesizes the first dynamic image, and the frame number of the first dynamic image is greater than or equal to N, and is less than or waits
In the product of M and N, when M is 1, the frame number of the first dynamic image is equal to N.Can using M frame consecutive image as background image,
It can be using every frame image in N frame consecutive image as foreground image when M is 1 using N frame consecutive image as foreground image
It is synthesized with this frame image as background image, the consecutive image for obtaining the synthesis of N frame forms the first dynamic image.It can also
N frame consecutive image as background image, using M frame consecutive image as foreground image, to be synthesized to obtain the first Dynamic Graph
Picture.Image in first dynamic image of synthesis between consecutive frame can be background image difference, and foreground image is identical;It can also be with
It is foreground image difference, background image is identical;It can also be that background image and foreground image are different.Wherein, in synthesis first
When dynamic image, only the object in foreground image can be synthesized with background image, and the blank parts in foreground image
It can ignore, can be and move the object in foreground image along certain track in background image, prospect when movement
Object, which can be, to be covered on background image, is also possible to be shown on background image in a transparent manner.
202, K frame consecutive image is obtained, L frame consecutive image is obtained, K frame consecutive image is synthesized with L frame consecutive image to the
Two dynamic images.
In the present embodiment, when needing that dynamic skin image is arranged for target software, available K frame consecutive image,
And L frame consecutive image is obtained, it can be and obtained from the image being locally stored, be also possible to the image stored from server
Middle acquisition.K frame consecutive image is synthesized into the second dynamic image with L frame consecutive image later, can using K frame consecutive image as
Background image synthesizes the second dynamic image with L frame consecutive image, can also connect L frame consecutive image as background image and K frame
Continuous image synthesizes the second dynamic image.Wherein, K is the integer more than or equal to 1, and L is the integer greater than 1, the second dynamic image
Frame number be greater than or equal to L, and be less than or equal to the product of K and L, when K is 1, the frame number of the second dynamic image is equal to L.It closes
At the second dynamic image in image between consecutive frame can be background image difference, foreground image is identical;Before being also possible to
Scape image is different, and background image is identical;It can also be that background image and foreground image are different.
Step 201 and step 202 can be to be executed parallel, is also possible to serially to execute.
203, the first dynamic image and the second dynamic image are set to the skin image of target software.
In the present embodiment, after M frame consecutive image and N frame consecutive image are synthesized the first dynamic image, and by K frame
After consecutive image synthesizes the second dynamic image with L frame consecutive image, the first dynamic image and the second dynamic image can be set
It is set to the skin image of target software, can be the relationship first established between the first dynamic image and the second dynamic image, later
First dynamic image of opening relationships and the second dynamic image are stored in the skin image library of target software.The relationship of foundation
It can be the relationship of the display position of the first dynamic image and the second dynamic image, such as:First dynamic image and the second dynamic
The display position of image is adjacent or is spaced a distance.
204, when detecting the idsplay order for showing the skin image, the first image and the second image are shown.
In the present embodiment, after setting the skin image of target software for the first dynamic image and the second dynamic image,
When detecting the idsplay order for showing the skin image, by the first image of display and the second image, the first image is M frame
Any frame image in consecutive image, N frame consecutive image and the first dynamic image, the second image are K frame consecutive image, L frame
Any frame image in consecutive image and the second dynamic image.Wherein, when showing the first image and the second image, the first image
Can be spaced apart with the second image, it can also be end to end.
205, the first corresponding relationship between the first dynamic image and the specified function of target software is established.
In the present embodiment, before setting the skin image of target image for the first dynamic image, can be first established
The first corresponding relationship between one dynamic image and the specified function of target software.For example, when target software is Jinshan anti-virus software,
Specified function can be killing virus;When target software is that Jinshan anti-virus software accelerates ball, specified function can be acceleration.First pair
It should be related to that target software executes specified function when can play for the first dynamic image.
206, when detecting the clicking operation for the first image, the area of the display area of the first image is increased to
Specified area, obtains destination display area.
In the present embodiment, after showing the first image and the second image, when detect for the first image click grasp
When making, the area of the display area of the first image first can be increased into specified area, obtain destination display area, target area
It can be and carry out widened region centered on the display area of the first image.
207, the first dynamic image is shown in destination display area, while specified function is executed according to the first corresponding relationship.
In the present embodiment, when detecting the clicking operation for the first image, or by the display area of the first image
Area increases to after specified area obtains destination display area, can show the first dynamic image in destination display area, or
The display area of first image directly displays the first dynamic image, that is, plays the first dynamic image, while according to the first corresponding pass
System executes specified function, i.e. target software executes specified function, such as killing virus, optimization accelerate, and can dynamically embody
The specified function of target software is carrying out, so as to improve user experience.
208, it when specified function has executed, shows the first image, while showing holding for specified function on the first image
Row result.
It, can be in the viewing area of the first image when the specified function of detecting target software has executed in the present embodiment
Domain shows the first image again, while the implementing result of the specified function of displaying target software on the first image, so as to user
The implementing result of specified function can be checked, so as to improve user experience.
209, the second corresponding relationship of the second dynamic image and specific function is established.
In the present embodiment, before setting the skin image of target image for the second dynamic image, can be first established
The second corresponding relationship between two dynamic images and specific function.Specific function can be applied to open search, show ad hoc networks
Page, display specific image, opening specific file, opening particular file folder etc..Second corresponding relationship can be the second dynamic of broadcasting
When image, when detecting the clicking operation for the second dynamic image played, specific function is executed.
210, when cursor is moved to the display area of the second image, the second dynamic image is shown.
In the present embodiment, after showing the first image and the second image, when detecting that cursor is moved to the second image
When display area, it will show the second dynamic image, that is, play the second dynamic image.
211, when detecting the clicking operation for the second dynamic image, specific function is executed according to the second corresponding relationship
Energy.
In the present embodiment, when showing the second dynamic image, when detecting the clicking operation for the second dynamic image,
Specific function will be executed according to the second corresponding relationship.
In the skin image setting method described in Fig. 2, M frame consecutive image is obtained, N frame consecutive image is obtained, by M frame
Consecutive image synthesizes the first dynamic image with N frame consecutive image, obtains K frame consecutive image, obtains L frame consecutive image, K frame is connected
Continuous image synthesizes the second dynamic image with L frame consecutive image, and it is soft to set target for the first dynamic image and the second dynamic image
Dynamic skin image can be arranged for software, so as to improve the flexibility of software skin image in the skin image of part.
It illustrates, it is assumed that target software is that Jinshan anti-virus software accelerates ball, and it includes sphere, EMS memory occupation that Jinshan anti-virus software, which accelerates ball,
Percentage component, network speed display component, small tail etc..It, will be in ball when detecting the idsplay order for above-mentioned skin image
Body region shows the first image, shows the second image in small tail region.Later when ball beating body region,
The first dynamic image will be played, and executes the acceleration function for accelerating ball, the first dynamic image is also broadcast when acceleration function has executed
It discharges, shows the first image again in sphere region at this time, while face display memory occupies percentage on the first image.When
When cursor is moved to small tail region, the second dynamic image will be played, when clicking the second dynamic image, webpage will be opened
Deng.In order to meet the feature for accelerating spherical state changeable, position, size, font color, transparency of these components etc. require energy
It is enough to change, component property configuration file is then devised, configuration section content is as follows:
Circle_mask_color=#162c3c
Circle_mask_opacity=0.7
Tail_right_sw_down_height=9
Tail_right_sw_down_width=7
Tail_right_textdown_width=33
Tail_right_textdown_x=62
Accelerate ball conventional sense smaller, sphere only has 60 pixels, and display area is narrow, accelerates to move to preferably show
It draws, before showing the first dynamic image, first needs again to show sphere amplification.Zoom mechanism is changed by dynamic to add
Circular cutout domain centered on fast sphere is realized, when starting to execute animation, is expanded outward with 10 pixel per second, when shearing domain is expanded
Stop expanding when greatly to 80 pixel diameter, starts to execute frame-by-frame cartoons.Animation narrows down to original again after the completion of executing with same rate
60 pixel sizes.Dynamic pendant mechanism is used to realize the personalization component of specific skin image, dynamic pendant mechanism, that is, above-mentioned
Small tail, such as:" angry mew " skin image, accelerates " kitten " pendant adhered on ball tail, and the cursor placement of mouse exists
When above, " kitten " can be moved, and webpage can be opened by clicking " kitten ".Dynamic pendant mechanism mainly cuts figure and JS script text by pendant
Part composition, script are responsible for executing logic, can control display position, display mode, animation effect, click response of pendant etc..
Scripted code example is as follows:
Referring to Fig. 5, Fig. 5 is the skin image schematic diagram that a kind of Jinshan anti-virus software provided in an embodiment of the present invention accelerates ball.
As described in Figure 5, the image of circle region (display area of i.e. above-mentioned sphere) display is the in the corresponding embodiment of Fig. 2
One image will show the first dynamic image when clicking circle region, and 29% shown on circle is the execution for accelerating ball
As a result, the watermelon place part (display area of i.e. above-mentioned small tail) on the right of circle is second in the corresponding embodiment of Fig. 2
Image, when cursor is moved on watermelon, watermelon can be moved, the image shown at this time i.e. the second dynamic image, when clicking watermelon,
Webpage etc. can be opened, i.e., specific function is executed according to the second corresponding relationship.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of skin image setting device provided in an embodiment of the present invention.Such as
Shown in Fig. 3, skin image setting device may include:
First acquisition unit 301, for obtaining M frame consecutive image, M is the integer more than or equal to 1;
Second acquisition unit 302, for obtaining N frame consecutive image, N is the integer greater than 1;
First synthesis unit 303, M frame consecutive image and second acquisition unit for obtaining first acquisition unit 301
The 302 N frame consecutive images obtained synthesize the first dynamic image, and the frame number of the first dynamic image is greater than or equal to N, and is less than or waits
In the product of M and N;
Setting unit 304, the first dynamic image for synthesizing the first synthesis unit 303 are set as the skin of target software
Skin image.
As a kind of possible embodiment, the first synthesis unit 303, being specifically used for M frame consecutive image is background image
It is that foreground image synthesizes the first dynamic image or N frame consecutive image is background image and M frame consecutive image with N frame consecutive image
The first dynamic image is synthesized for foreground image.
As a kind of possible embodiment, the first synthesis unit 303M frame consecutive image is that background image and N frame are continuous
Image is that foreground image the first dynamic image of synthesis includes:
The object in first frame image is obtained, first frame image is any frame image in N frame consecutive image;
The object is arranged to move in the second frame image along desired trajectory, obtains the first dynamic image, the second frame image is M
Any frame image in frame consecutive image, when which moves along desired trajectory, which is aobvious with covering or transparent mode
Show on the second image.
As a kind of possible embodiment, skin image setting device can also include:
Display unit 305, for when the idsplay order for detecting the skin image being arranged for display setting device 304
When, show that the first image, the first image are any frame figure in M frame consecutive image, N frame consecutive image and the first dynamic image
Picture.
As a kind of possible embodiment, display unit 305 are also used to work as the click behaviour detected for the first image
When making, the first dynamic image of display the first synthesis unit 303 synthesis.
As a kind of possible embodiment, skin image setting device can also include:
First establishing unit 306, for establishing the first dynamic image and target software of the synthesis of first synthesis unit 303
The first corresponding relationship between specified function;
First execution unit 307, for being established according to first while display unit 305 shows the first dynamic image
The first corresponding relationship that unit 306 is established executes specified function.
As a kind of possible embodiment, display unit 305 are also used to specify when what the first execution unit 307 executed
When function has executed, the first image is shown, while showing the implementing result of specified function on the first image.
As a kind of possible embodiment, when detecting the clicking operation for the first image, which is set
Setting device can also include:
Increasing unit 308 obtains target and shows for the area of the display area of the first image to be increased to specified area
Region;
Display unit 305 shows that the first dynamic image includes:
The first dynamic image is shown in the destination display area that increasing unit 308 obtains.
As a kind of possible embodiment, skin image setting device can also include:
Third acquiring unit 309, for obtaining K frame consecutive image, K is the integer more than or equal to 1;
4th acquiring unit 310, for obtaining L frame consecutive image, L is the integer greater than 1;
Second synthesis unit 311, K frame consecutive image and the 4th acquiring unit for obtaining third acquiring unit 309
The 310 L frame consecutive images obtained synthesize the second dynamic image, and the frame number of the second dynamic image is greater than or equal to L, and is less than or waits
In the product of K and L;
Setting unit 304, specifically for the first dynamic image and the second synthesis unit for synthesizing the first synthesis unit 303
Second dynamic image of 311 synthesis is set as the skin image of target software;
When detecting the idsplay order for showing skin image, the first image of display includes display unit 305:
When detecting the idsplay order for showing skin image, the first image and the second image, the second image are shown
For any frame image in K frame consecutive image, L frame consecutive image and the second dynamic image.
As a kind of possible embodiment, display unit 305 are also used to be moved to the viewing area of the second image when cursor
When domain, the second dynamic image of display the second synthesis unit 311 synthesis.
As a kind of possible embodiment, skin image setting device can also include:
Second establishes unit 312, for establishing the second dynamic image and specific function of the synthesis of second synthesis unit 311
Second corresponding relationship;
Second execution unit 313, for as the click behaviour for detecting the second dynamic image shown for display unit 305
When making, the second corresponding relationship for establishing the foundation of unit 312 according to second executes specific function.
In the setting of the skin image described in Fig. 3, M frame consecutive image is obtained, obtains N frame consecutive image, M frame is continuous
Image synthesizes the first dynamic image with N frame consecutive image, sets the first dynamic image to the skin image of target software, can be with
Dynamic skin image is set for software, so as to improve the flexibility of software skin image.
It is understood that the function for the unit that the skin image of the present embodiment is arranged can be according in above method embodiment
Method specific implementation, specific implementation process is referred to the associated description of above method embodiment, and details are not described herein again.
Referring to Fig. 4, Fig. 4 is a kind of electronic equipment disclosed by the embodiments of the present invention.As shown in figure 4, the electronic equipment can
To include at least one processor 401, memory 402, at least one input unit 403, at least one output device 404 and total
Line 405 is connected between processor 401, memory 402, input unit 403 and output device 404 by bus 405, wherein deposit
Reservoir 402 includes program instruction for storing computer program, computer program, and processor 401 is configured for calling storage
The program instruction that device 402 stores executes following steps:
M frame consecutive image is obtained, M is the integer more than or equal to 1;
N frame consecutive image is obtained, N is the integer greater than 1;
M frame consecutive image is synthesized into the first dynamic image with N frame consecutive image, the frame number of the first dynamic image is greater than or waits
In N, and it is less than or equal to the product of M and N;
Set the first dynamic image to the skin image of target software.
As a kind of possible embodiment, M frame consecutive image is synthesized first with N frame consecutive image and moved by processor 401
State image includes:
It is that foreground image synthesizes the first dynamic image or N frame connects that M frame consecutive image, which is background image with N frame consecutive image,
It with M frame consecutive image is that foreground image synthesizes the first dynamic image that continuous image, which is background image,.
As a kind of possible embodiment, processor 401M frame consecutive image is that background image is with N frame consecutive image
Foreground image synthesizes the first dynamic image:
The object in first frame image is obtained, first frame image is any frame image in N frame consecutive image;
The object is arranged to move in the second frame image along desired trajectory, obtains the first dynamic image, the second frame image is M
Any frame image in frame consecutive image, when which moves along desired trajectory, which is aobvious with covering or transparent mode
Show on the second image.
As a kind of possible embodiment, input unit 403, for detecting for showing that the display of the skin image refers to
It enables;
Output device 404, for showing that the first image, the first image are M frame consecutive image, N frame consecutive image and the
Any frame image in one dynamic image.
As a kind of possible embodiment, input unit 403 are also used to detect the clicking operation for being directed to the first image;
Output device 404 is also used to show the first dynamic image.
As a kind of possible embodiment, processor 401 is also used to execute following operation:
Establish the first corresponding relationship between the first dynamic image and the specified function of target software;
While showing the first dynamic image, specified function is executed according to the first corresponding relationship.
As a kind of possible embodiment, output device 404 are also used to when specified function has executed, display first
Image, while the implementing result of specified function is shown on the first image.
As a kind of possible embodiment, when input unit 403 detects the clicking operation for the first image, place
Reason device 401 is also used to execute following operation:
The area of the display area of first image is increased into specified area, obtains destination display area;
Output device 404 shows that the first dynamic image includes:
The first dynamic image is shown in destination display area.
As a kind of possible embodiment, processor 401 is also used to execute following operation:
K frame consecutive image is obtained, K is the integer more than or equal to 1;
L frame consecutive image is obtained, L is the integer greater than 1;
K frame consecutive image is synthesized into the second dynamic image with L frame consecutive image, the frame number of the second dynamic image is greater than or waits
In L, and it is less than or equal to the product of K and L;
The skin image that first dynamic image is set as target software includes by processor 401:
Set the first dynamic image and the second dynamic image to the skin image of target software;
Output device 404 is when input unit 403 detects the idsplay order for showing the skin image, display first
Image includes:
When input unit 403 detects the idsplay order for showing the skin image, the first image and second is shown
Image, the second image are any frame image in K frame consecutive image, L frame consecutive image and the second dynamic image.
As a kind of possible embodiment, output device 404 are also used to be moved to the viewing area of the second image when cursor
When domain, the second dynamic image is shown.
As a kind of possible embodiment, processor 401 is also used to execute following operation:
Establish the second corresponding relationship of the second dynamic image and specific function;
Input unit 403 is also used to detect the clicking operation for being directed to the second dynamic image;
Processor 401 is also used to execute following operation:
Specific function is executed according to the second corresponding relationship.
In the electronic equipment described in Fig. 5, M frame consecutive image is obtained, N frame consecutive image is obtained, by M frame consecutive image
The first dynamic image is synthesized with N frame consecutive image, sets the first dynamic image to the skin image of target software, can be soft
Dynamic skin image is arranged in part, so as to improve the flexibility of software skin image.
A kind of storage medium is provided in one embodiment, which is stored with computer program, computer journey
Sequence includes program instruction, and program instruction makes processor execute the skin image setting side of Fig. 1 or Fig. 2 when being executed by a processor
Method.
A kind of application program is provided in one embodiment, and the application program for executing Fig. 1's or Fig. 2 at runtime
Skin image setting method.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include:Flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access
Memory, RAM), disk or CD etc..
It is provided for the embodiments of the invention electricity saving method, device and electronic equipment above to be described in detail, herein
In apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to sides
Assistant solves method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
Limitation of the invention.
Claims (10)
1. a kind of skin image setting method, which is characterized in that including:
M frame consecutive image is obtained, the M is the integer more than or equal to 1;
N frame consecutive image is obtained, the N is the integer greater than 1;
The M frame consecutive image is synthesized into the first dynamic image, the frame number of first dynamic image with the N frame consecutive image
More than or equal to the N, and it is less than or equal to the product of the M and the N;
Set first dynamic image to the skin image of target software.
2. the method according to claim 1, wherein described by the M frame consecutive image and the N frame sequential chart
As the first dynamic image of synthesis includes:
It with the N frame consecutive image is that foreground image synthesizes the first dynamic image or institute that the M frame consecutive image, which is background image,
It with the M frame consecutive image is that foreground image synthesizes the first dynamic image that state N frame consecutive image, which be background image,.
3. according to the method described in claim 2, it is characterized in that, the M frame consecutive image is that background image and the N frame connect
Continuous image is that foreground image the first dynamic image of synthesis includes:
The object in first frame image is obtained, the first frame image is any frame image in the N frame consecutive image;
The object is arranged to move in the second frame image along desired trajectory, obtains the first dynamic image, the second frame image
For any frame image in the M frame consecutive image, when the object is moved along the desired trajectory, the object is to cover
Or transparent mode is shown on the background image.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When detecting the idsplay order for showing the skin image, the first image is shown, the first image is the M
Any frame image in frame consecutive image, the N frame consecutive image and first dynamic image.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
When detecting the clicking operation for the first image, first dynamic image is shown.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
Establish the first corresponding relationship between first dynamic image and the specified function of the target software;
While showing first dynamic image, the specified function is executed according to first corresponding relationship.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
When the specified function has executed, the first image is shown, while described specify is shown in the first image
The implementing result of function.
8. the method according to the description of claim 7 is characterized in that when detecting the clicking operation for the first image
When, the method also includes:
The area of the display area of the first image is increased into specified area, obtains destination display area;
It is described to show that first dynamic image includes:
First dynamic image is shown in the destination display area.
9. according to the described in any item methods of claim 4-8, which is characterized in that the method also includes:
K frame consecutive image is obtained, the K is the integer more than or equal to 1;
L frame consecutive image is obtained, the L is the integer greater than 1;
The K frame consecutive image is synthesized into the second dynamic image, the frame number of second dynamic image with the L frame consecutive image
More than or equal to the L, and it is less than or equal to the product of the K and the L;
The skin image for setting target software for first dynamic image includes:
Set first dynamic image and second dynamic image to the skin image of target software;
It is described when detecting the idsplay order for showing the skin image, display the first image include:
When detecting the idsplay order for showing the skin image, the first image of display and the second image, described second
Image is any frame image in the K frame consecutive image, the L frame consecutive image and second dynamic image.
10. method according to claim 9, which is characterized in that the method also includes:
When cursor is moved to the display area of second image, second dynamic image is shown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810609514.5A CN108898652B (en) | 2018-06-13 | 2018-06-13 | Skin image setting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810609514.5A CN108898652B (en) | 2018-06-13 | 2018-06-13 | Skin image setting method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108898652A true CN108898652A (en) | 2018-11-27 |
CN108898652B CN108898652B (en) | 2022-11-25 |
Family
ID=64345994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810609514.5A Active CN108898652B (en) | 2018-06-13 | 2018-06-13 | Skin image setting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108898652B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114489882A (en) * | 2021-12-16 | 2022-05-13 | 成都鲁易科技有限公司 | Method and device for realizing dynamic skin of browser and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1770098A (en) * | 2004-11-05 | 2006-05-10 | 腾讯科技(深圳)有限公司 | Dynamic skin realizing method |
JP2009021964A (en) * | 2007-07-13 | 2009-01-29 | Kao Corp | Image composition apparatus, image compositing method and image compositing program |
CN104113682A (en) * | 2013-04-22 | 2014-10-22 | 联想(北京)有限公司 | Image acquisition method and electronic equipment |
CN104349066A (en) * | 2013-07-31 | 2015-02-11 | 华为终端有限公司 | Method and device for generating images with high dynamic ranges |
CN104978186A (en) * | 2015-05-26 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Interface skin rendering method and apparatus |
CN107077720A (en) * | 2016-12-27 | 2017-08-18 | 深圳市大疆创新科技有限公司 | Method, device and the equipment of image procossing |
CN107566739A (en) * | 2017-10-18 | 2018-01-09 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
CN107872644A (en) * | 2016-09-23 | 2018-04-03 | 亿阳信通股份有限公司 | Video frequency monitoring method and device |
US20180124298A1 (en) * | 2015-06-30 | 2018-05-03 | Huawei Technologies Co., Ltd. | Photographing Method and Apparatus |
-
2018
- 2018-06-13 CN CN201810609514.5A patent/CN108898652B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1770098A (en) * | 2004-11-05 | 2006-05-10 | 腾讯科技(深圳)有限公司 | Dynamic skin realizing method |
JP2009021964A (en) * | 2007-07-13 | 2009-01-29 | Kao Corp | Image composition apparatus, image compositing method and image compositing program |
CN104113682A (en) * | 2013-04-22 | 2014-10-22 | 联想(北京)有限公司 | Image acquisition method and electronic equipment |
CN104349066A (en) * | 2013-07-31 | 2015-02-11 | 华为终端有限公司 | Method and device for generating images with high dynamic ranges |
CN104978186A (en) * | 2015-05-26 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Interface skin rendering method and apparatus |
US20180124298A1 (en) * | 2015-06-30 | 2018-05-03 | Huawei Technologies Co., Ltd. | Photographing Method and Apparatus |
CN107872644A (en) * | 2016-09-23 | 2018-04-03 | 亿阳信通股份有限公司 | Video frequency monitoring method and device |
CN107077720A (en) * | 2016-12-27 | 2017-08-18 | 深圳市大疆创新科技有限公司 | Method, device and the equipment of image procossing |
CN107566739A (en) * | 2017-10-18 | 2018-01-09 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
Non-Patent Citations (1)
Title |
---|
罗茹娟: "基于USkin软件换肤功能的实现", 《电脑知识与技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114489882A (en) * | 2021-12-16 | 2022-05-13 | 成都鲁易科技有限公司 | Method and device for realizing dynamic skin of browser and storage medium |
CN114489882B (en) * | 2021-12-16 | 2023-05-19 | 成都鲁易科技有限公司 | Method and device for realizing dynamic skin of browser and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108898652B (en) | 2022-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107992301B (en) | User interface implementation method, client and storage medium | |
US10706212B1 (en) | Cross-platform presentation of digital content | |
US11989845B2 (en) | Implementation and display of augmented reality | |
CN103733170A (en) | Drag and drop of objects between applications | |
US11587280B2 (en) | Augmented reality-based display method and device, and storage medium | |
CN111225138A (en) | Camera control method and device, storage medium and terminal | |
CN106815880B (en) | Animation multiplexing method and system | |
CN114115525B (en) | Information display method, device, equipment and storage medium | |
US20110285727A1 (en) | Animation transition engine | |
US20190163431A1 (en) | Multi-device display processing | |
US20140333669A1 (en) | System, method, and computer program product for implementing smooth user interface animation using motion blur | |
CN107025100A (en) | Play method, interface rendering intent and device, the equipment of multi-medium data | |
EP4068120A1 (en) | Message management system and method for communication application, and presentation terminal | |
CN111107427B (en) | Image processing method and related product | |
CN107870703A (en) | Method, system and the terminal device of full-screen picture displaying | |
JPH0997347A (en) | Video generating device | |
CN108898652A (en) | A kind of skin image setting method, device and electronic equipment | |
CN115552364A (en) | Multi-terminal collaborative display updating method and device | |
CN106548501B (en) | Image drawing method and device | |
CN108334324B (en) | VR home page popup implementation method and system | |
CN115442650B (en) | Barrage information processing method and device, barrage information processing equipment and storage medium | |
CN106331834B (en) | Multimedia data processing method and equipment thereof | |
CN110597392A (en) | Interaction method based on VR simulation world | |
CN110633062B (en) | Control method and device for display information, electronic equipment and readable medium | |
WO2023169089A1 (en) | Video playing method and apparatus, electronic device, medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20191126 Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Applicant after: Zhuhai Leopard Technology Co.,Ltd. Address before: 519070, No. 10, main building, No. six, science Road, Harbour Road, Tang Wan Town, Guangdong, Zhuhai, 601F Applicant before: Zhuhai Juntian Electronic Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |