WO2016197470A1 - 应用程序解锁界面背景图片的设置方法、装置及电子设备 - Google Patents

应用程序解锁界面背景图片的设置方法、装置及电子设备 Download PDF

Info

Publication number
WO2016197470A1
WO2016197470A1 PCT/CN2015/089508 CN2015089508W WO2016197470A1 WO 2016197470 A1 WO2016197470 A1 WO 2016197470A1 CN 2015089508 W CN2015089508 W CN 2015089508W WO 2016197470 A1 WO2016197470 A1 WO 2016197470A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
picture
special effect
icon file
image
Prior art date
Application number
PCT/CN2015/089508
Other languages
English (en)
French (fr)
Inventor
杨世铎
Original Assignee
北京金山安全软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Priority to US15/756,877 priority Critical patent/US10437420B2/en
Publication of WO2016197470A1 publication Critical patent/WO2016197470A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04804Transparency, e.g. transparent or translucent windows

Definitions

  • the present application relates to the field of image processing technologies, and in particular, to a method, device, and electronic device for setting an application unlocking interface background image.
  • users In order to protect privacy, users usually install a software that can lock the application in the terminal device in the terminal device, and further lock the application according to their own needs, such as using the application locking software on the mobile phone.
  • a software that can lock the application in the terminal device in the terminal device, and further lock the application according to their own needs, such as using the application locking software on the mobile phone.
  • the display interface of the mobile phone jumps from the current display interface to the unlock information input interface, to prompt the user to input the unlock information, and the application locks the software to receive, After determining that the unlock information input by the user is the correct unlock information, the action of opening one of the above applications is performed.
  • the background image of the unlocking information input interface is usually a static image that is not related to the application that needs to be unlocked; the user cannot determine the application that needs to be unlocked according to the unlocking information input interface.
  • the embodiment of the present application discloses a method, a device, and an electronic device for setting an application background of an application unlocking interface.
  • the specific technical solutions are as follows:
  • a method for setting an application unlocking interface background image provided by the application comprising:
  • the special effect picture related to the application that needs to be unlocked is called, and part of the content of the enlarged special effect picture is displayed as the background of the unlocking interface.
  • the image file of the application is subjected to a size scaling process to obtain a second icon file having a preset image size, including:
  • the icon file of the application is scaled into the standard map to obtain a second icon file having a preset image size.
  • the preset first size value includes: a length value and a width value of the picture, and the length value and the width value of the picture are equal.
  • the special effect processing is performed on the second icon file to obtain a special effect picture, including:
  • Gaussian blurring is performed on the image including the transparent edge to obtain a special effect image containing the blur effect.
  • the method further includes:
  • the special effect image related to the application that needs to be unlocked is invoked, and part of the content of the enlarged special effect image is displayed as the background of the unlocking interface, including:
  • the special effect picture containing the transparent blur effect related to the application that needs to be unlocked is called, and part of the enlarged effect picture is displayed as the background of the unlock interface.
  • the method further includes:
  • the special effect image related to the application that needs to be unlocked is invoked, and part of the content of the enlarged special effect image is displayed as the background of the unlocking interface, including:
  • the obtaining a bottom picture includes:
  • a picture of the target color is selected as the bottom picture, wherein the target color is a color that meets the preset condition among the determined main colors.
  • the icon file of the application that needs to be unlocked is color-resolved, and the main color of the icon file of the application is determined, including:
  • the reduced icon file is chroma-scanned from outside to inside to obtain the main color of the application.
  • the selecting a picture of the target color as the bottom picture includes:
  • the method further includes:
  • the enlarged special effect picture is moved to replace the background of the unlocking interface.
  • An apparatus for setting an application unlocking interface background image provided by the application comprising:
  • An icon acquisition module configured to acquire an icon file of an application that needs to be unlocked
  • a size processing module configured to perform size scaling processing on the icon file of the application acquired by the icon acquisition module, to obtain a second icon file having a preset image size
  • the special effect processing module is configured to perform special effect processing on the second icon file processed by the size processing module, obtain a special effect picture, and store the special effect picture in a preset storage location;
  • the unlocking background display module is configured to: when detecting the generating instruction of the application unlocking interface, calling the special effect image related to the application that needs to be unlocked, and displaying part of the enlarged special effect image as the background of the unlocking interface.
  • the size processing module is specifically configured to:
  • the icon file of the application is scaled into the standard map to obtain a second icon file having a preset image size.
  • the preset first size value includes: a length value and a width value of the picture, and the length value and the width value of the picture are equal.
  • the special effect processing module is specifically configured to:
  • Gaussian blurring is performed on the image including the transparent edge to obtain a special effect image containing the blur effect.
  • the device further includes:
  • a hybrid transparent processing module configured to perform alpha blending and transparent processing on the special effect image containing the blur effect processed by the special effect processing module to obtain a special effect image including a transparent blur effect
  • the unlocking background display module is specifically configured to: when detecting an generating instruction of the application unlocking interface, calling a special effect image related to the application currently required to be unlocked, including a transparent blur effect, and the enlarged special effect image Some of the content is displayed as the background to unlock the interface.
  • the device further includes:
  • a hybrid transparent processing module configured to perform alpha blending and transparent processing on the special effect image containing the blur effect processed by the special effect processing module to obtain a special effect image including a transparent blur effect
  • a picture acquisition module for obtaining a bottom picture
  • a picture overlay module configured to overlay the effect image of the transparent blur effect processed by the hybrid transparent processing module onto the bottom image acquired by the image acquisition module, and generate New special effects pictures;
  • the unlocking background display module is specifically configured to: when detecting an generating instruction of the application unlocking interface, calling a new special effect image related to an application that needs to be unlocked currently, and a part of the enlarged new special effect image The content is displayed as the background to unlock the interface.
  • the image obtaining module includes:
  • a color analysis sub-module configured to perform color analysis on the icon file of the application that needs to be unlocked, and determine a main color of the icon file of the application;
  • the picture obtaining sub-module is configured to select a picture of the target color as the bottom picture, wherein the target color is a color that meets the preset condition among the determined main colors.
  • the color analysis sub-module is specifically configured to:
  • the reduced icon file is chroma-scanned from outside to inside to obtain the main color of the application.
  • the picture obtaining submodule is specifically configured to:
  • the device further includes:
  • An unlocking background replacement module is configured to identify a direction of the sliding action after detecting a sliding operation for the unlocking interface, to obtain a recognition result
  • the enlarged special effect picture is moved to replace the background of the unlocking interface.
  • An electronic device includes: a housing, a processor, a memory, and a display a circuit board, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, the processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to each circuit or device of the electronic device;
  • the executable program code is stored; the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory for performing the following steps:
  • the special effect picture related to the application that needs to be unlocked is called, and part of the content of the enlarged special effect picture is displayed as the background of the unlocking interface.
  • an embodiment of the present application further provides a storage medium, where the storage medium is used to store an application, and the application is configured to execute an application unlocking interface background described in the present application at runtime. How to set the picture.
  • the embodiment of the present application further provides an application, where the application is used to execute a setting method of an application unlocking interface background image described in the present application at runtime.
  • the method and device for setting the background image of the application unlocking interface may perform size scaling processing on the icon file of the application after acquiring the icon file of the application that needs to be unlocked. Obtaining a second icon file having a preset image size; performing special effect processing on the second icon file to obtain a special effect picture, and storing the special effect picture in a preset storage location; when detecting an application unlocking interface generation When the instruction is executed, the special effect picture related to the application that needs to be unlocked is called, and part of the enlarged effect picture is displayed as the background of the unlock interface.
  • the embodiment of the present application can use a picture related to an application that needs to be unlocked as an unlocking background of an unlocking information input interface of the application, and the user only By unlocking the information input interface, you can determine which application you need to unlock. Further, the embodiment of the present application may also perform special effect processing on the image related to the application, and use the image containing the special effects as the unlocking background to provide the user with an unlocking interface with better viewing effect.
  • FIG. 1 is a flowchart of a method for setting a background image of an application unlocking interface according to an embodiment of the present application
  • FIG. 1(a) is a schematic diagram of an application selection mode according to an embodiment of the present application
  • FIG. 1(b) is a picture of the unexpanded processing provided by the embodiment of the present application.
  • FIG. 1(c) is a picture of the edge-expanding process provided by the embodiment of the present application.
  • FIG. 2 is a flowchart of an implementation manner of S103 according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of another method for setting a background image of an application unlocking interface according to an embodiment of the present application
  • FIG. 4 is a flowchart of another method for setting a background image of an application unlocking interface according to an embodiment of the present application
  • FIG. 5 is a flowchart of an implementation manner of S106 according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a layer composition of an unlocking interface according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an apparatus for setting a background image of an application unlocking interface according to an embodiment of the present disclosure
  • FIG. 8 is a schematic structural diagram of another apparatus for setting a background image of an application unlocking interface according to an embodiment of the present disclosure
  • FIG. 9 is a schematic structural diagram of another apparatus for setting a background image of an application unlocking interface according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a picture obtaining module 706 according to an embodiment of the present application.
  • users In order to protect privacy, users usually install a software that can lock the application in the terminal device in the terminal device, and further lock the application according to their own needs, such as using the application locking software on the mobile phone.
  • a software that can lock the application in the terminal device in the terminal device, and further lock the application according to their own needs, such as using the application locking software on the mobile phone.
  • the display interface of the mobile phone jumps from the current display interface to the unlock information input interface, to prompt the user to input the unlock information, and the application locks the software to receive, After determining that the unlock information input by the user is the correct unlock information, the action of opening one of the above applications is performed.
  • the background image of the unlocking information input interface is usually a static image that is not related to the application that needs to be unlocked; the user cannot determine the application that needs to be unlocked according to the unlocking information input interface.
  • the present application provides a method, an apparatus, and an electronic device for setting an application unlocking interface background image.
  • the method provided by the present application is applicable to a terminal device.
  • the terminal device may include a touch screen device such as a smart phone or a tablet computer.
  • a method for setting a background image of an application unlocking interface may include:
  • the icon file of the application that needs to be unlocked may be acquired; for example, when the user clicks the application APP icon in the display interface as shown in FIG. 1( a ), The terminal device detects that the application corresponding to the APP icon needs to be unlocked, and obtains the APP icon file.
  • the icon file of the application that needs to be unlocked may be obtained in advance before the application that needs to be unlocked is selected; this embodiment of the present application does not limit this.
  • S102 Perform size scaling processing on the icon file of the application to obtain a preset image.
  • a second icon file like size.
  • the foregoing S102 may include:
  • Bitmap function Using the Bitmap function, obtaining a standard map, and scaling the icon file of the application into the standard image to obtain a second icon file having a preset image size; wherein the standard image has a size value equal to a preset The first size value.
  • the preset first size value in the embodiment of the present application includes: a length value and a width value of the picture, and the length value and the width value of the picture are equal.
  • the special effect processing method in the present application may be a blurring process to make the picture present a soft display effect; preferably, the blur processing technology may be a Gaussian blur processing technology.
  • the foregoing S103 may include:
  • S103a Add a transparent edge of a preset length value to the second icon file to obtain a picture including a transparent edge.
  • S103b Perform Gaussian blurring on the image including the transparent edge to obtain a special effect image including a blur effect.
  • a 30px transparent edge can be amplified for a picture that requires Gaussian blurring, so that the edge of the picture processed by the fuzzy algorithm does not appear to be trimmed as shown in FIG. 1(c).
  • the processed special effect picture is pre-stored, and when the unlocking interface background needs to be displayed, the special effect picture is directly called, which solves the problem that the real-time fuzzy comparison consumes resources.
  • the special effect picture processed by the S103 includes an image of the icon of the application to be unlocked, and has a fuzzy frosted glass effect, the special effect picture can be used as the unlock background to visually show which application is currently required to be unlocked.
  • the icon file of the application may be scaled and processed to obtain a pre- Setting a second icon file of the image size; further, performing special effect processing on the second icon file to obtain a special effect picture, and storing the special effect picture in a preset storage location; when detecting an application unlocking interface generation When the instruction is executed, the special effect picture related to the application that needs to be unlocked is called, and part of the enlarged effect picture is displayed as the background of the unlock interface.
  • the embodiment of the present application can use the image related to the application that needs to be unlocked as the unlocking background of the unlocking information input interface of the application, and the user can determine that the current unlocking is needed only according to the unlocking information input interface. s application. Further, the embodiment of the present application may also perform special effect processing on the image related to the application, and use the image containing the special effects as the unlocking background to provide the user with an unlocking interface with better viewing effect. In addition, the processed special effect picture is pre-stored, and when the unlocking interface background needs to be displayed, the special effect picture is directly called, which solves the problem that the real-time fuzzy comparison consumes resources.
  • the method for selecting an unlocking background provided by the embodiment of the present application may include: S101, S102, S103a, S103b, S105, S104a; wherein, S101, S102, S103a, and S103b have been introduced in the embodiment of the method shown in FIG. 1.
  • S104a is a specific implementation manner of S104 in the method embodiment shown in FIG. The following describes S105 and S104a in detail:
  • S103a Add a transparent edge of a preset length value to the second icon file to obtain a picture including a transparent edge.
  • S103b Perform Gaussian blurring on the image including the transparent edge to obtain a special effect image including a blur effect.
  • S105 Perform alpha blending and transparent processing on the effect image containing the blur effect to obtain a special effect image including a transparent blur effect.
  • the alpha transparent blending process is a technique used to make objects transparent, such as a transparent and transparent view through water, glass, and the like.
  • the present application uses this technology to process special effects pictures to obtain a better virtual transparency effect.
  • the special effect picture processed by the S105 includes an image of an icon of the application to be unlocked, and has both a fuzzy frosted glass and a transparent effect
  • the effect picture can be used as an unlock background to visually show which application is currently required to be unlocked. And can present a virtual transparency effect.
  • the method for selecting an unlocking background provided by the embodiment of the present application may include: S101, S102, S103a, S103b, S105, S106, S107, S104b; S101, S102, S103a, and S103b have been introduced in the embodiment of the method shown in FIG. 1. This embodiment is not described again.
  • S105 is correspondingly introduced in the method embodiment shown in FIG.
  • S103a Add a transparent edge of a preset length value to the second icon file to obtain a picture including a transparent edge.
  • S103b Perform Gaussian blurring on the image including the transparent edge to obtain a special effect image including a blur effect.
  • S105 Perform alpha blending and transparent processing on the effect image containing the blur effect to obtain a special effect image including a transparent blur effect.
  • the foregoing S106 may include:
  • S106a Perform color analysis on the icon file of the application that needs to be unlocked, and determine a main color of the icon file of the application.
  • the foregoing S106a may include: reducing an icon file of the application that needs to be unlocked to a preset second size value to obtain a reduced icon file; and performing chroma on the reduced icon file from outside to inside. Scan to get the main color of the app.
  • the icon file of the application is reduced to a size that easily recognizes the main color tone, and the performance is not good, and scanning is performed from the periphery to the inside, and the main color, that is, the main color, is analyzed from a relatively large number of colors.
  • S106b Select a picture of the target color as the bottom picture, wherein the target color is a color that meets a preset condition among the determined main colors.
  • the main color of each application's icon file is different, the same background color does not necessarily match all the icons.
  • the main color of the analysis application can be applied to the bottom color.
  • the foregoing S106b may include: converting, by using an RGB chrominance space to a HUE chrominance space, a main color of the application to obtain a plurality of color codes; and selecting a color corresponding to the color code having the highest proportion.
  • Image as the underlying image.
  • the color number is converted from RGB to HUE, and the color code with the highest proportion is found as the color of the bottom picture from the corresponding color code, and the design avoids the automatically selected color being too dim.
  • the overall visual effect is not good; in addition, the color block blacklist can be set, such as black, white and other color blocks are not used, in this case, the color code with the second highest ratio can be found from the corresponding color code as the bottom picture. s color.
  • the special effect picture including the transparent blur effect is overlaid on the bottom picture to generate a new special effect picture.
  • the unlock interface can be as shown in Figure 6, the operation layer, The transparent blur layer and the bottom layer are composed of three layers; wherein the operation layer includes unlock input information such as a digital password or gesture input information, and the transparent blur layer is a special effect image containing a transparent blur effect in the application, and the bottom image is The underlying image in the application.
  • the icon file of the application selected by the user is enlarged and Gaussian blur and transparent mixed processing is performed, and the realization of the simulated frosted glass display is further realized on the premise that the user can unlock the application by unlocking the background recognition. The purpose of the effect.
  • the method for setting an application unlocking interface background image provided by the present application may further add the following steps on the basis of any of the foregoing method embodiments:
  • the enlarged special effect picture is moved to replace the background of the unlocking interface.
  • the terminal device can recognize that the sliding direction of the sliding operation is: to the left.
  • the interaction between the user's operation gesture and the icon can be realized by using the physical direction of the gesture to simultaneously change the position of the blurred icon.
  • the special effect picture in the interface including the two layers may be moved in a direction opposite to the sliding action direction to form an effect of the sliding action and the special effect picture.
  • the position offset of the special effect picture in the interface including the two layers in the present application may be: a sliding displacement* a preset proportional value.
  • the present application further provides an apparatus for setting an application unlocking interface background picture.
  • an apparatus for setting an application unlocking interface background image may include:
  • the size processing module 702 is configured to perform size scaling processing on the icon file of the application acquired by the icon obtaining module 701 to obtain a second icon file having a preset image size;
  • the special effect processing module 703 is configured to perform special effect processing on the second icon file processed by the size processing module 702, obtain a special effect picture, and store the special effect picture in a preset storage location;
  • the unlocking background display module 704 is configured to: when detecting a generation instruction of the application unlocking interface, The special effect picture related to the application that needs to be unlocked is called, and part of the enlarged effect picture is displayed as the background of the unlock interface.
  • the device for setting the background image of the application unlocking interface may perform size scaling processing on the icon file of the application after obtaining the icon file of the application that needs to be unlocked, Setting a second icon file of the image size; further, performing special effect processing on the second icon file to obtain a special effect picture, and storing the special effect picture in a preset storage location; when detecting an application unlocking interface generation When the instruction is executed, the special effect picture related to the application that needs to be unlocked is called, and part of the enlarged effect picture is displayed as the background of the unlock interface.
  • the embodiment of the present application can use the image related to the application that needs to be unlocked as the unlocking background of the unlocking information input interface of the application, and the user can determine that the current unlocking is needed only according to the unlocking information input interface. s application. Further, the embodiment of the present application may also perform special effect processing on the image related to the application, and use the image containing the special effects as the unlocking background to provide the user with an unlocking interface with better viewing effect. In addition, the processed special effect picture is pre-stored, and when the unlocking interface background needs to be displayed, the special effect picture is directly called, which solves the problem that the real-time fuzzy comparison consumes resources.
  • the size processing module 702 may be specifically configured to:
  • the icon file of the application is scaled into the standard map to obtain a second icon file having a preset image size.
  • the preset first size value may include: a length value and a width value of the picture, and the length value and the width value of the picture are equal.
  • the special effect processing module 703 may be specifically configured to:
  • an apparatus for setting an application interface to unlock an interface background image may include:
  • the size processing module 702 is configured to perform size scaling processing on the icon file of the application acquired by the icon obtaining module 701 to obtain a second icon file having a preset image size;
  • the effect processing module 703 is configured to add a transparent edge of a preset length value to the second icon file processed by the size processing module 702 to obtain a picture including a transparent edge; and perform Gaussian blur on the image including the transparent edge Processing to get a special effect picture with blur effect;
  • the hybrid transparent processing module 705 is configured to perform alpha blending and transparent processing on the special effect image including the blur effect processed by the special effect processing module 703 to obtain a special effect image including a transparent blur effect;
  • the unlocking background display module 704 is configured to: when detecting the generating instruction of the application unlocking interface, calling the special effect image including the transparent blur effect related to the application currently required to be unlocked, and displaying part of the enlarged special effect image To unlock the background of the interface.
  • an apparatus for setting an application to unlock an interface background image may include:
  • the size processing module 702 is configured to perform size scaling processing on the icon file of the application acquired by the icon obtaining module 701 to obtain a second icon file having a preset image size;
  • the effect processing module 703 is configured to add a transparent edge of a preset length value to the second icon file processed by the size processing module 702, to obtain a picture including a transparent edge, and perform Gaussian blur processing on the image including the transparent edge. Get a special effect image with a blur effect;
  • the hybrid transparent processing module 705 is configured to perform alpha blending and transparent processing on the special effect image including the blur effect processed by the special effect processing module 703 to obtain a special effect image including a transparent blur effect;
  • a picture obtaining module 706, configured to acquire a bottom picture
  • the image overlay module 707 is configured to overwrite the special effect image including the transparent blur effect obtained by the hybrid transparent processing module 705 to the bottom image acquired by the image obtaining module 706. Generate a new special effect image;
  • the unlocking background display module 704 is configured to, when detecting the generation instruction of the application unlocking interface, invoke a new special effect image related to the application currently required to be unlocked, and display part of the enlarged new special effect image as Unlock the background of the interface.
  • the picture obtaining module 706 may include:
  • the color analysis sub-module 706a is configured to perform color analysis on the icon file of the application that needs to be unlocked, and determine a main color of the icon file of the application;
  • the picture obtaining sub-module 706b is configured to select a picture of the target color as the bottom picture, wherein the target color is a color that meets a preset condition among the determined main colors.
  • the color resolution sub-module 706a may be specifically configured to:
  • the reduced icon file is chroma-scanned from outside to inside to obtain the main color of the application.
  • the picture obtaining submodule 706b may be specifically configured to:
  • the apparatus for setting an application unlocking interface background image provided by the present application may further add an unlocking background replacement module according to any one of the foregoing device embodiments;
  • the unlocking background replacement module is configured to identify a direction of the sliding action after detecting a sliding operation for the unlocking interface, to obtain a recognition result
  • the enlarged special effect picture is moved to replace the background of the unlocking interface.
  • the present application also provides an electronic device.
  • An electronic device may include: a housing, a processor, a memory, a display, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory are disposed on the circuit board; and the power circuit For powering various circuits or devices of the electronic device; the memory is for storing executable program code; the processor is configured to execute the program corresponding to the executable program code by reading the executable program code stored in the memory for execution The following steps:
  • the special effect picture related to the application that needs to be unlocked is called, and part of the content of the enlarged special effect picture is displayed as the background of the unlocking interface.
  • the electronic device exists in a variety of forms including, but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • an embodiment of the present application further provides a storage medium, wherein the storage medium
  • the storage medium is used to store an application, and the application is configured to execute a setting method of an application unlocking interface background image according to an embodiment of the present application at runtime.
  • the method for setting a background image of an application unlocking interface according to the present application includes:
  • the special effect picture related to the application that needs to be unlocked is called, and part of the content of the enlarged special effect picture is displayed as the background of the unlocking interface.
  • the embodiment of the present application further provides an application program, where the application is used to execute a setting method of an application unlocking interface background image according to an embodiment of the present application.
  • the method for setting a background image of an application unlocking interface according to the present application includes:
  • the special effect picture related to the application that needs to be unlocked is called, and part of the content of the enlarged special effect picture is displayed as the background of the unlocking interface.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Circuits (AREA)

Abstract

公开了一种应用程序解锁界面背景图片的设置方法、装置及电子设备。一种应用程序解锁界面背景图片的设置方法,包括:获取需要解锁的应用程序的图标(S101);对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件(S102);对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置(S103);当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景(S104)。能够使用与需要解锁的应用程序相关的图片作为该应用程序的解锁信息输入界面的解锁背景,用户仅根据解锁信息输入界面,就能够判断出当前需要解锁的应用程序。

Description

应用程序解锁界面背景图片的设置方法、装置及电子设备
本申请要求于2015年06月11日提交中国专利局、申请号为201510319547.2发明名称为“应用程序解锁界面背景图片的设置方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及图片处理技术领域,特别涉及一种应用程序解锁界面背景图片的设置方法、装置及电子设备。
背景技术
为了保护隐私,用户通常会在终端设备中安装一种可以对该终端设备中应用程序进行锁定的软件,进一步的根据自己的需要对应用程序进行锁定,如可以使用应用程序锁定软件对手机中的某一应用程序进行锁定,用户在使用上述某一应用程序时,该手机的显示界面会从当前的显示界面跳转到解锁信息输入界面,以提示用户输入解锁信息,在应用程序锁定软件接收、确定用户输入的解锁信息为正确的解锁信息后,才执行打开上述某一应用程序的动作。
现有的应用程序解锁软件中,解锁信息输入界面的背景图片通常为与需要解锁的应用程序不相关的静态图片;用户不能够根据解锁信息输入界面,判断出当前需要解锁的应用程序。
发明内容
为了解决上述问题,本申请实施例公开了一种应用程序解锁界面背景图片的设置方法、装置及电子设备,具体技术方案如下:
本申请提供的一种应用程序解锁界面背景图片的设置方法,所述方法包括:
获取需要解锁的应用程序的图标文件;
对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
根据本申请提供的一种具体实施方式,所述对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件,包括:
使用Bitmap函数,获取一张标准图,其中,该标准图的尺寸值等于预设的第一尺寸值;
将所述应用程序的图标文件缩放到所述标准图中,得到具有预设图像尺寸大小的第二图标文件。
根据本申请提供的一种具体实施方式,所述预设的第一尺寸值包括:图片的长度值和宽度值,且该图片的长度值和宽度值相等。
根据本申请提供的一种具体实施方式,所述对所述第二图标文件进行特效处理,得到特效图片,包括:
为所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片;
对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片。
根据本申请提供的一种具体实施方式,在所述对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片之后,还包括:
对包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
所述当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景,包括:
当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、包含透明模糊效果的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
根据本申请提供的一种具体实施方式,在所述对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片之后,还包括:
对包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
获取一张底层图片;
将所述包含透明模糊效果的特效图片覆盖到所述底层图片上,生成新的特效图片;
所述当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景,包括:
当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、新的特效图片,并将放大后的新的特效图片的部分内容显示为解锁界面的背景。
根据本申请提供的一种具体实施方式,所述获取一张底层图片,包括:
对所述需要解锁的应用程序的图标文件进行颜色解析,确定该应用程序的图标文件的主要颜色;
选择目标颜色的图片作为底层图片,其中,所述目标颜色为所确定的主要颜色中符合预设条件的颜色。
根据本申请提供的一种具体实施方式,所述对所述需要解锁的应用程序的图标文件进行颜色解析,确定该应用程序的图标文件的主要颜色,包括:
将所述需要解锁的应用程序的图标文件缩小到预设的第二尺寸值,得到缩小的图标文件;
自外向内地对所述缩小的图标文件进行色度扫描,得到该应用程序的主要颜色。
根据本申请提供的一种具体实施方式,所述选择目标颜色的图片作为底层图片,包括:
对所述应用程序的主要颜色进行由RGB色度空间到HUE色度空间的转换,得到多个色码;
选取占比最高的色码所对应的颜色的图片,作为底层图片。
根据本申请提供的一种具体实施方式,在所述将放大后的特效图片的部分内容显示为解锁界面的背景之后,还包括:
在检测到针对所述解锁界面的滑动操作后,对所述滑动动作的方向进行识别,得到识别结果;
根据所述识别结果,移动所述放大后的特效图片以更换所述解锁界面的背景。
本申请提供的一种应用程序解锁界面背景图片的设置装置,所述装置包括:
图标获取模块,用于获取需要解锁的应用程序的图标文件;
尺寸处理模块,用于对所述图标获取模块获取到的应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
特效处理模块,用于对所述尺寸处理模块处理得到的第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
解锁背景显示模块,用于当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
根据本申请提供的一种具体实施方式,所述尺寸处理模块,具体用于:
使用Bitmap函数,获取一张标准图,其中,该标准图的尺寸值等于 预设的第一尺寸值;
将所述应用程序的图标文件缩放到所述标准图中,得到具有预设图像尺寸大小的第二图标文件。
根据本申请提供的一种具体实施方式,所述预设的第一尺寸值包括:图片的长度值和宽度值,且该图片的长度值和宽度值相等。
根据本申请提供的一种具体实施方式,所述特效处理模块,具体用于:
为所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片;
对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片。
根据本申请提供的一种具体实施方式,所述装置还包括:
混合透明处理模块,用于对所述特效处理模块处理得到的包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
所述解锁背景显示模块,具体用于:当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、包含透明模糊效果的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
根据本申请提供的一种具体实施方式,所述装置还包括:
混合透明处理模块,用于对所述特效处理模块处理得到的包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
图片获取模块,用于获取一张底层图片;
图片覆盖模块,用于将所述混合透明处理模块处理得到的包含透明模糊效果的特效图片覆盖到所述图片获取模块获取到的底层图片上,生 成新的特效图片;
所述解锁背景显示模块,具体用于:当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、新的特效图片,并将放大后的新的特效图片的部分内容显示为解锁界面的背景。
根据本申请提供的一种具体实施方式,所述图片获取模块,包括:
颜色解析子模块,用于对所述需要解锁的应用程序的图标文件进行颜色解析,确定该应用程序的图标文件的主要颜色;
图片获取子模块,用于选择目标颜色的图片作为底层图片,其中,所述目标颜色为所确定的主要颜色中符合预设条件的颜色。
根据本申请提供的一种具体实施方式,所述颜色解析子模块,具体用于:
将所述需要解锁的应用程序的图标文件缩小到预设的第二尺寸值,得到缩小的图标文件;
自外向内地对所述缩小的图标文件进行色度扫描,得到该应用程序的主要颜色。
根据本申请提供的一种具体实施方式,所述图片获取子模块,具体用于:
对所述应用程序的主要颜色进行由RGB色度空间到HUE色度空间的转换,得到多个色码;
选取占比最高的色码所对应的颜色的图片,作为底层图片。
根据本申请提供的一种具体实施方式,所述装置还包括:
解锁背景更换模块,用于在检测到针对所述解锁界面的滑动操作后,对所述滑动动作的方向进行识别,得到识别结果;
根据所述识别结果,移动所述放大后的特效图片以更换所述解锁界面的背景。
本申请提供的一种电子设备,包括:壳体、处理器、存储器、显示 器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:
获取需要解锁的应用程序的图标文件;
对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
为了实现上述目的,本申请实施例还提供了一种存储介质,其中,该存储介质用于存储应用程序,所述应用程序用于在运行时执行本申请所述的一种应用程序解锁界面背景图片的设置方法。
为了实现上述目的,本申请实施例还提供了一种应用程序,其中,该应用程序用于在运行时执行本申请所述的一种应用程序解锁界面背景图片的设置方法。
应用上述技术方案,本申请实施例提供的应用程序解锁界面背景图片的设置方法及装置,在获取到需要解锁的应用程序的图标文件后,可以对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
与现有技术相比,本申请实施例能够使用与需要解锁的应用程序相关的图片作为该应用程序的解锁信息输入界面的解锁背景,用户仅根据 解锁信息输入界面,就能够判断出当前需要解锁的应用程序。进一步的,本申请实施例还可以对与该应用程序相关的图片进行特效处理,将包含特效效果的图片作为解锁背景,为用户提供了观赏效果较好的解锁界面。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种应用程序解锁界面背景图片的设置方法的流程图;
图1(a)为本申请实施例提供的一种应用程序选中方式的示意图;
图1(b)为本申请实施例提供的未做扩边处理的图片;
图1(c)为本申请实施例提供的已做扩边处理的图片;
图2为本申请实施例提供的S103的一种实施方式的流程图;
图3为本申请实施例提供的另一种应用程序解锁界面背景图片的设置方法的流程图;
图4为本申请实施例提供的另一种应用程序解锁界面背景图片的设置方法的流程图;
图5为本申请实施例提供的S106的一种实施方式的流程图;
图6为本申请实施例提供的一种解锁界面的图层构成的示例图;
图7为本申请实施例提供的一种应用程序解锁界面背景图片的设置装置的结构示意图;
图8为本申请实施例提供的另一种应用程序解锁界面背景图片的设置装置的结构示意图;
图9为本申请实施例提供的另一种应用程序解锁界面背景图片的设置装置的结构示意图;
图10为本申请实施例提供的图片获取模块706的一种结构示意图。
具体实施方式
为了使本领域技术人员更好地理解本申请中的技术方案,下面将结合本 申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为了保护隐私,用户通常会在终端设备中安装一种可以对该终端设备中应用程序进行锁定的软件,进一步的根据自己的需要对应用程序进行锁定,如可以使用应用程序锁定软件对手机中的某一应用程序进行锁定,用户在使用上述某一应用程序时,该手机的显示界面会从当前的显示界面跳转到解锁信息输入界面,以提示用户输入解锁信息,在应用程序锁定软件接收、确定用户输入的解锁信息为正确的解锁信息后,才执行打开上述某一应用程序的动作。
现有的应用程序解锁软件中,解锁信息输入界面的背景图片通常为与需要解锁的应用程序不相关的静态图片;用户不能够根据解锁信息输入界面,判断出当前需要解锁的应用程序。为了解决上述问题,本申请提供了一种应用程序解锁界面背景图片的设置方法、装置及电子设备。
下面首先对本申请提供的一种应用程序解锁界面背景图片的设置方法进行介绍。
需要说明的是,本申请提供的方法适用于终端设备,在实际应用中,该终端设备可以包括:智能手机、平板电脑等可触屏设备。
如图1所示,本申请实施例提供的一种应用程序解锁界面背景图片的设置方法,可以包括:
S101,获取需要解锁的应用程序的图标文件。
在本申请中,可以在检测到需要解锁的应用程序被用户选中时,获取该需要解锁的应用程序的图标文件;例如图1(a)所示用户点击显示界面中的应用程序APP图标时,终端设备会检测到APP图标对应的应用程序需要解锁,获取该APP图标文件。
或者可以在需要解锁的应用程序被选中之前,预先获取该需要解锁的应用程序的图标文件;本申请实施例对此不作限定。
S102,对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图 像尺寸大小的第二图标文件。
可以理解,由于各应用程序开发商提供的应用程序图标文件的尺寸各异,因此为了统一需要解锁的各应用程序的显示效果,在获取到需要解锁的应用程序的图标文件后,需要对获取到的应用程序的图标进行尺寸缩放处理,缩放到特定的尺寸,得到具有预设图像尺寸大小的第二图标文件。
具体的,上述S102,可以包括:
使用Bitmap函数,获取一张标准图,将所述应用程序的图标文件缩放到所述标准图中,得到具有预设图像尺寸大小的第二图标文件;其中,该标准图的尺寸值等于预设的第一尺寸值。
例如可以利用安卓系统自带的Bitmap函数,预先准备一张48×48的图,再把应用程序的图标文件缩放到48×48的图中。
优选的,本申请实施例中的预设的第一尺寸值包括:图片的长度值和宽度值,且该图片的长度值和宽度值相等。
S103,对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置。
本申请中的特效处理方式可以为模糊处理,以使图片呈现出一种柔和的显示效果;优选的,模糊处理技术可以为高斯模糊处理技术。
需要说明的是,由于使用高斯模糊技术处理图片时,会造成该图片的边缘被剪切如图1(b)所示,为了解决这个问题,如图2所示,上述S103,可以包括:
S103a,为所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片。
S103b,对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片。
例如可以为需要进行高斯模糊处理的图片扩增30px透明的边缘,让经过模糊算法处理的图片的边缘不会出现切边的情况如图1(c)所示。
此外,将处理得到的特效图片预先存储,在需要显示解锁界面背景时,直接调用该特效图片,解决了实时模糊比较耗费资源的问题。
S104,当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁 的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
由于S103处理得到的特效图片中包含需要解锁的应用程序的图标的图像,且具有模糊毛玻璃效果,因此以该特效图片作为解锁背景可以直观展示出当前需要解锁的应用程序为哪个应用程序。
由此可见,本申请实施例提供的应用程序解锁界面背景图片的设置方法,在获取到需要解锁的应用程序的图标文件后,可以对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;进一步的,对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
与现有技术相比,本申请实施例能够使用与需要解锁的应用程序相关的图片作为该应用程序的解锁信息输入界面的解锁背景,用户仅根据解锁信息输入界面,就能够判断出当前需要解锁的应用程序。进一步的,本申请实施例还可以对与该应用程序相关的图片进行特效处理,将包含特效效果的图片作为解锁背景,为用户提供了观赏效果较好的解锁界面。此外,将处理得到的特效图片预先存储,在需要显示解锁界面背景时,直接调用该特效图片,解决了实时模糊比较耗费资源的问题。
可选的,在本申请的另一个实施例中,如图3所示,本申请实施例提供的解锁背景选取方法,可以包括:S101、S102、S103a、S103b、S105、S104a;其中,S101、S102、S103a、S103b在图1所示方法实施例中已做了相应介绍,本实施例不再赘述,S104a为图1所示方法实施例中S104的一种具体实施方式。下面对S105和S104a进行详细介绍:
S101,获取需要解锁的应用程序的图标文件。
S102,对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件。
S103a,为所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片。
S103b,对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片。
S105,对包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片。
alpha透明混合处理是用来使物体产生透明感的技术,比如透过水、玻璃等物理看到的模糊透明的景象。本申请使用该技术对特效图片进行处理,可以获得一种较佳的虚拟透明效果。
S104a,当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、包含透明模糊效果的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
由于S105处理得到的特效图片中包含需要解锁的应用程序的图标的图像,且兼具模糊毛玻璃及透明效果,因此以该特效图片作为解锁背景可以直观展示出当前需要解锁的应用程序为哪个应用程序,且能够呈现出一种虚拟透明效果。
可选的,在本申请的另一个实施例中,如图4所示,本申请实施例提供的解锁背景选取方法,可以包括:S101、S102、S103a、S103b、S105、S106、S107、S104b;其中,S101、S102、S103a、S103b在图1所示方法实施例中已做了相应介绍,本实施例不再赘述,S105在图2所示方法实施例中已做了相应介绍,S104b为图1所示方法实施例中S104的一种具体实施方式。下面对S106、S107和S104b进行详细介绍:
S101,获取需要解锁的应用程序的图标文件。
S102,对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件。
S103a,为所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片。
S103b,对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片。
S105,对包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片。
S106,获取一张底层图片。
在本申请的一个具体实施方式中,如图5所示,上述S106,可以包括:
S106a,对所述需要解锁的应用程序的图标文件进行颜色解析,确定该应用程序的图标文件的主要颜色。
可选的,上述S106a,可以包括:将所述需要解锁的应用程序的图标文件缩小到预设的第二尺寸值,得到缩小的图标文件;自外向内地对所述缩小的图标文件进行色度扫描,得到该应用程序的主要颜色。
具体的,将应用程序的图标文件缩小至容易辨识出主色调的尺寸,避免效能不佳,从外围开始往内扫描,从占比较多的颜色中分析出主色调即主要颜色。
S106b,选择目标颜色的图片作为底层图片,其中,所述目标颜色为所确定的主要颜色中符合预设条件的颜色。
由于每个应用程序的图标文件的主色调都不同,因此同一个底色不一定符合所有的图标,为了让整体视觉能够更一体化,可以将分析出应用程序的主色系套用到底色上。
可选的,上述S106b,可以包括:对所述应用程序的主要颜色进行由RGB色度空间到HUE色度空间的转换,得到多个色码;选取占比最高的色码所对应的颜色的图片,作为底层图片。
具体的,在抓出主色调时,将色号从RGB转换成HUE,从相对应色码中找出占比最高的色码作为底层图片的颜色,此设计避免自动选出的颜色过于暗淡导致整体视觉效果不佳;此外,可以设定颜色区块黑名单,如黑色、白色等颜色区块均不使用,此时可以从相对应色码中找出占比次高的色码作为底层图片的颜色。
S107,将所述包含透明模糊效果的特效图片覆盖到所述底层图片上,生成新的特效图片。
S104b,当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、新的特效图片,并将放大后的新的特效图片的部分内容显示为解锁界面的背景。
应用到互联网应用程序解锁产品中,解锁界面可以如图6所示的操作层、 透明模糊层和底层图片这三个图层构成;其中,操作层中包含解锁输入信息例如数字密码或手势输入信息,透明模糊层为本申请中的包含透明模糊效果的特效图片,底层图片为本申请中的底层图片。通过三个图层的设置,将用户所选择的应用程序的图标文件放大并做高斯模糊、透明混合处理,在实现用户可以通过解锁背景识别解锁应用程序的前提下,进一步的实现了模拟毛玻璃显示效果的目的。
可选的,在本申请的另一个实施例中,本申请提供的应用程序解锁界面背景图片的设置方法,还可以在上述任一方法实施例的基础上增加以下步骤:
在检测到针对所述解锁界面的滑动操作后,对所述滑动动作的方向进行识别,得到识别结果;
根据所述识别结果,移动所述放大后的特效图片以更换所述解锁界面的背景。
例如用户向左滑动解锁界面,则终端设备可以识别出滑动操作的滑动方向为:向左。
本申请中,使用手势的物理方向同时连动模糊图标位置的改变,可以实现用户操作手势与图标间的互动。具体的,可以沿着与所述滑动动作方向相反的方向,移动所述包含两个图层的界面中的特效图片,形成滑动动作与特效图片连动的效果。可选的,本申请中的包含两个图层的界面中的特效图片的位置偏移量可以为:滑动的位移*预设的比例值。
相应于上面介绍的方法实施例,本申请还提供了一种应用程序解锁界面背景图片的设置装置。
如图7所示,本申请实施例提供的一种应用程序解锁界面背景图片的设置装置,可以包括:
图标获取模块701,用于获取需要解锁的应用程序的图标文件;
尺寸处理模块702,用于对所述图标获取模块701获取到的应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
特效处理模块703,用于对所述尺寸处理模块702处理得到的第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
解锁背景显示模块704,用于当检测到应用程序解锁界面的生成指令时, 调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
由此可见,本申请实施例提供的应用程序解锁界面背景图片的设置装置,在获取到需要解锁的应用程序的图标文件后,可以对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;进一步的,对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
与现有技术相比,本申请实施例能够使用与需要解锁的应用程序相关的图片作为该应用程序的解锁信息输入界面的解锁背景,用户仅根据解锁信息输入界面,就能够判断出当前需要解锁的应用程序。进一步的,本申请实施例还可以对与该应用程序相关的图片进行特效处理,将包含特效效果的图片作为解锁背景,为用户提供了观赏效果较好的解锁界面。此外,将处理得到的特效图片预先存储,在需要显示解锁界面背景时,直接调用该特效图片,解决了实时模糊比较耗费资源的问题。
可选的,在本申请的另一个实施例中,所述尺寸处理模块702,具体可以用于:
使用Bitmap函数,获取一张标准图,其中,该标准图的尺寸值等于预设的第一尺寸值;
将所述应用程序的图标文件缩放到所述标准图中,得到具有预设图像尺寸大小的第二图标文件。
可选的,在本申请的另一个实施例中,所述预设的第一尺寸值可以包括:图片的长度值和宽度值,且该图片的长度值和宽度值相等。
可选的,在本申请的另一个实施例中,所述特效处理模块703,具体可以用于:
为所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片;
对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特 效图片。
可选的,在本申请的另一个实施例中,如图8所示,一种应用程序解锁界面背景图片的设置装置,可以包括:
图标获取模块701,用于获取需要解锁的应用程序的图标文件;
尺寸处理模块702,用于对所述图标获取模块701获取到的应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
特效处理模块703,用于为所述尺寸处理模块702处理得到的所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片;对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片;
混合透明处理模块705,用于对所述特效处理模块703处理得到的包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
解锁背景显示模块704,用于当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、包含透明模糊效果的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
可选的,在本申请的另一个实施例中,如图9所示,一种应用程序解锁界面背景图片的设置装置,可以包括:
图标获取模块701,用于获取需要解锁的应用程序的图标文件;
尺寸处理模块702,用于对所述图标获取模块701获取到的应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
特效处理模块703,用于为所述尺寸处理模块702处理得到的第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片;对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片;
混合透明处理模块705,用于对所述特效处理模块703处理得到的包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
图片获取模块706,用于获取一张底层图片;
图片覆盖模块707,用于将所述混合透明处理模块705处理得到的包含透明模糊效果的特效图片覆盖到所述图片获取模块706获取到的底层图片上, 生成新的特效图片;
解锁背景显示模块704,用于当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、新的特效图片,并将放大后的新的特效图片的部分内容显示为解锁界面的背景。
可选的,在本申请的另一个实施例中,如图10所示,所述图片获取模块706,可以包括:
颜色解析子模块706a,用于对所述需要解锁的应用程序的图标文件进行颜色解析,确定该应用程序的图标文件的主要颜色;
图片获取子模块706b,用于选择目标颜色的图片作为底层图片,其中,所述目标颜色为所确定的主要颜色中符合预设条件的颜色。
可选的,在本申请的另一个实施例中,所述颜色解析子模块706a,具体可以用于:
将所述需要解锁的应用程序的图标文件缩小到预设的第二尺寸值,得到缩小的图标文件;
自外向内地对所述缩小的图标文件进行色度扫描,得到该应用程序的主要颜色。
可选的,在本申请的另一个实施例中,所述图片获取子模块706b,具体可以用于:
对所述应用程序的主要颜色进行由RGB色度空间到HUE色度空间的转换,得到多个色码;
选取占比最高的色码所对应的颜色的图片,作为底层图片。
可选的,在本申请的另一个实施例中,本申请提供的应用程序解锁界面背景图片的设置装置,还可以在上述任一装置实施例的基础上增加:解锁背景更换模块;
所述解锁背景更换模块,用于在检测到针对所述解锁界面的滑动操作后,对所述滑动动作的方向进行识别,得到识别结果;
根据所述识别结果,移动所述放大后的特效图片以更换所述解锁界面的背景。
相应于上面提到的方法和装置实施例,本申请还提供了一种电子设备。
一种电子设备,可以包括:壳体、处理器、存储器、显示器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:
获取需要解锁的应用程序的图标文件;
对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
该电子设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)其他具有数据交互功能的电子装置。
对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
为了描述的方便,描述以上装置时以功能分为各种模块分别描述。当然,在实施本申请时可以把各模块的功能在同一个或多个软件和/或硬件中实现。
为了实现上述目的,本申请实施例还提供了一种存储介质,其中,该存 储介质用于存储应用程序,所述应用程序用于在运行时执行本申请实施例所述的一种应用程序解锁界面背景图片的设置方法。其中,本申请所述的一种应用程序解锁界面背景图片的设置方法,包括:
获取需要解锁的应用程序的图标文件;
对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
为了实现上述目的,本申请实施例还提供了一种应用程序,其中,该应用程序用于在运行时执行本申请实施例所述的一种应用程序解锁界面背景图片的设置方法。其中,本申请所述的一种应用程序解锁界面背景图片的设置方法,包括:
获取需要解锁的应用程序的图标文件;
对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有 的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。

Claims (21)

  1. 一种应用程序解锁界面背景图片的设置方法,其特征在于,所述方法包括:
    获取需要解锁的应用程序的图标文件;
    对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
    对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
    当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
  2. 根据权利要求1所述的方法,其特征在于,所述对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件,包括:
    使用Bitmap函数,获取一张标准图,其中,该标准图的尺寸值等于预设的第一尺寸值;
    将所述应用程序的图标文件缩放到所述标准图中,得到具有预设图像尺寸大小的第二图标文件。
  3. 根据权利要求1所述的方法,其特征在于,所述预设的第一尺寸值包括:图片的长度值和宽度值,且该图片的长度值和宽度值相等。
  4. 根据权利要求1所述的方法,其特征在于,所述对所述第二图标文件进行特效处理,得到特效图片,包括:
    为所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片;
    对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片。
  5. 根据权利要求4所述的方法,其特征在于,在所述对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片之后,还包括:
    对包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
    所述当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景,包括:
    当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、包含透明模糊效果的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
  6. 根据权利要求4所述的方法,其特征在于,在所述对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片之后,还包括:
    对包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
    获取一张底层图片;
    将所述包含透明模糊效果的特效图片覆盖到所述底层图片上,生成新的特效图片;
    所述当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景,包括:
    当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、新的特效图片,并将放大后的新的特效图片的部分内容显示为解锁界面的背景。
  7. 根据权利要求6所述的方法,其特征在于,所述获取一张底层图片,包括:
    对所述需要解锁的应用程序的图标文件进行颜色解析,确定该应用程序的图标文件的主要颜色;
    选择目标颜色的图片作为底层图片,其中,所述目标颜色为所确定的主要颜色中符合预设条件的颜色。
  8. 根据权利要求7所述的方法,其特征在于,所述对所述需要解锁的应用程序的图标文件进行颜色解析,确定该应用程序的图标文件的主要颜色,包括:
    将所述需要解锁的应用程序的图标文件缩小到预设的第二尺寸值,得到缩小的图标文件;
    自外向内地对所述缩小的图标文件进行色度扫描,得到该应用程序的主要颜色。
  9. 根据权利要求8所述的方法,其特征在于,所述选择目标颜色的图片作为底层图片,包括:
    对所述应用程序的主要颜色进行由RGB色度空间到HUE色度空间的转换,得到多个色码;
    选取占比最高的色码所对应的颜色的图片,作为底层图片。
  10. 根据权利要求1所述的方法,其特征在于,在所述将放大后的特效图片的部分内容显示为解锁界面的背景之后,还包括:
    在检测到针对所述解锁界面的滑动操作后,对所述滑动动作的方向进行识别,得到识别结果;
    根据所述识别结果,移动所述放大后的特效图片以更换所述解锁界面的背景。
  11. 一种应用程序解锁界面背景图片的设置装置,其特征在于,所述装置包括:
    图标获取模块,用于获取需要解锁的应用程序的图标文件;
    尺寸处理模块,用于对所述图标获取模块获取到的应用程序的图标 文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
    特效处理模块,用于对所述尺寸处理模块处理得到的第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
    解锁背景显示模块,用于当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
  12. 根据权利要求11所述的装置,其特征在于,所述尺寸处理模块,具体用于:
    使用Bitmap函数,获取一张标准图,其中,该标准图的尺寸值等于预设的第一尺寸值;
    将所述应用程序的图标文件缩放到所述标准图中,得到具有预设图像尺寸大小的第二图标文件。
  13. 根据权利要求11所述的装置,其特征在于,所述预设的第一尺寸值包括:图片的长度值和宽度值,且该图片的长度值和宽度值相等。
  14. 根据权利要求11所述的装置,其特征在于,所述特效处理模块,具体用于:
    为所述第二图标文件添加预设长度值的透明边缘,得到包含透明边缘的图片;
    对所述包含透明边缘的图片进行高斯模糊处理,得到包含模糊效果的特效图片。
  15. 根据权利要求14所述的装置,其特征在于,所述装置还包括:
    混合透明处理模块,用于对所述特效处理模块处理得到的包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
    所述解锁背景显示模块,具体用于:当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、包含透明模糊效 果的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
  16. 根据权利要求14所述的装置,其特征在于,所述装置还包括:
    混合透明处理模块,用于对所述特效处理模块处理得到的包含模糊效果的特效图片进行alpha混合透明处理,得到包含透明模糊效果的特效图片;
    图片获取模块,用于获取一张底层图片;
    图片覆盖模块,用于将所述混合透明处理模块处理得到的包含透明模糊效果的特效图片覆盖到所述图片获取模块获取到的底层图片上,生成新的特效图片;
    所述解锁背景显示模块,具体用于:当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的、新的特效图片,并将放大后的新的特效图片的部分内容显示为解锁界面的背景。
  17. 根据权利要求16所述的装置,其特征在于,所述图片获取模块,包括:
    颜色解析子模块,用于对所述需要解锁的应用程序的图标文件进行颜色解析,确定该应用程序的图标文件的主要颜色;
    图片获取子模块,用于选择目标颜色的图片作为底层图片,其中,所述目标颜色为所确定的主要颜色中符合预设条件的颜色。
  18. 根据权利要求17所述的装置,其特征在于,所述颜色解析子模块,具体用于:
    将所述需要解锁的应用程序的图标文件缩小到预设的第二尺寸值,得到缩小的图标文件;
    自外向内地对所述缩小的图标文件进行色度扫描,得到该应用程序的主要颜色。
  19. 根据权利要求18所述的装置,其特征在于,所述图片获取子模 块,具体用于:
    对所述应用程序的主要颜色进行由RGB色度空间到HUE色度空间的转换,得到多个色码;
    选取占比最高的色码所对应的颜色的图片,作为底层图片。
  20. 根据权利要求11所述的装置,其特征在于,所述装置还包括:
    解锁背景更换模块,用于在检测到针对所述解锁界面的滑动操作后,对所述滑动动作的方向进行识别,得到识别结果;
    根据所述识别结果,移动所述放大后的特效图片以更换所述解锁界面的背景。
  21. 一种电子设备,其特征在于,包括:壳体、处理器、存储器、显示器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:
    获取需要解锁的应用程序的图标文件;
    对所述应用程序的图标文件进行尺寸缩放处理,得到具有预设图像尺寸大小的第二图标文件;
    对所述第二图标文件进行特效处理,得到特效图片,并将所述特效图片存储在预设存储位置;
    当检测到应用程序解锁界面的生成指令时,调用与当前需要解锁的应用程序相关的特效图片,并将放大后的特效图片的部分内容显示为解锁界面的背景。
PCT/CN2015/089508 2015-06-11 2015-09-14 应用程序解锁界面背景图片的设置方法、装置及电子设备 WO2016197470A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/756,877 US10437420B2 (en) 2015-06-11 2015-09-14 Method and apparatus for setting background picture of unlocking interface of application, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510319547.2 2015-06-11
CN201510319547.2A CN104866755B (zh) 2015-06-11 2015-06-11 应用程序解锁界面背景图片的设置方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2016197470A1 true WO2016197470A1 (zh) 2016-12-15

Family

ID=53912578

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089508 WO2016197470A1 (zh) 2015-06-11 2015-09-14 应用程序解锁界面背景图片的设置方法、装置及电子设备

Country Status (3)

Country Link
US (1) US10437420B2 (zh)
CN (1) CN104866755B (zh)
WO (1) WO2016197470A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106471564A (zh) 2014-07-10 2017-03-01 通用电气智能平台有限公司 用于电子设备的电子标记的设备和方法
CN104866755B (zh) * 2015-06-11 2018-03-30 北京金山安全软件有限公司 应用程序解锁界面背景图片的设置方法、装置及电子设备
CN105955564B (zh) * 2016-04-18 2019-03-15 北京小米移动软件有限公司 应用程序启动方法及装置
US10845987B2 (en) * 2016-05-03 2020-11-24 Intelligent Platforms, Llc System and method of using touch interaction based on location of touch on a touch screen
US11079915B2 (en) 2016-05-03 2021-08-03 Intelligent Platforms, Llc System and method of using multiple touch inputs for controller interaction in industrial control systems
CA2941368A1 (en) * 2016-09-08 2018-03-08 Drivecare Technologies Inc. Apparatus and method for prventing use of a mobile device while operating a vehicle
CN114071028B (zh) * 2020-07-30 2023-06-06 抖音视界有限公司 视频生成及播放方法、装置、电子设备及存储介质
CN116437034A (zh) * 2020-09-25 2023-07-14 荣耀终端有限公司 视频特效添加方法、装置及终端设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147701A (zh) * 2010-02-04 2011-08-10 三星电子株式会社 用于显示装备触摸屏的终端的锁定屏幕的装置和方法
CN103186346A (zh) * 2013-03-15 2013-07-03 厦门市美亚柏科信息股份有限公司 一种基于图案的触摸屏解锁系统及方法
CN103246453A (zh) * 2012-02-01 2013-08-14 上海博路信息技术有限公司 一种基于图片区域动作的解锁方法
CN104267891A (zh) * 2014-09-19 2015-01-07 苏州天平先进数字科技有限公司 一种触屏终端锁屏背景设置方法
CN104866755A (zh) * 2015-06-11 2015-08-26 北京金山安全软件有限公司 应用程序解锁界面背景图片的设置方法、装置及电子设备

Family Cites Families (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6545687B2 (en) * 1997-01-09 2003-04-08 Canon Kabushiki Kaisha Thumbnail manipulation using fast and aspect ratio zooming, compressing and scaling
KR101374034B1 (ko) * 2005-07-18 2014-03-12 톰슨 라이센싱 다중 비디오 스트림을 핸들링하는 방법 및 장치
US8351713B2 (en) * 2007-02-20 2013-01-08 Microsoft Corporation Drag-and-drop pasting for seamless image composition
US8127254B2 (en) * 2007-06-29 2012-02-28 Nokia Corporation Unlocking a touch screen device
JP5047051B2 (ja) * 2008-05-02 2012-10-10 キヤノン株式会社 画像処理装置及び画像符号化方法
KR101537706B1 (ko) * 2009-04-16 2015-07-20 엘지전자 주식회사 이동 단말기 및 그 제어 방법
CN101576932B (zh) * 2009-06-16 2012-07-04 阿里巴巴集团控股有限公司 近重复图片的计算机查找方法和装置
US9749607B2 (en) * 2009-07-16 2017-08-29 Digimarc Corporation Coordinated illumination and image signal capture for enhanced signal detection
CN102156999B (zh) * 2010-02-11 2015-06-10 腾讯科技(深圳)有限公司 一种用户界面的生成方法和装置
KR101705119B1 (ko) * 2010-09-15 2017-02-10 삼성전자 주식회사 전자 기기에서 2차원 이미지로 3차원 화면을 구성하는 방법 및 그 전자 기기
US9027117B2 (en) * 2010-10-04 2015-05-05 Microsoft Technology Licensing, Llc Multiple-access-level lock screen
TWI546700B (zh) * 2011-01-13 2016-08-21 宏達國際電子股份有限公司 手持電子裝置及其控制方法與電腦程式產品
KR101728728B1 (ko) * 2011-03-18 2017-04-21 엘지전자 주식회사 이동 단말기 및 그 제어방법
US8769435B1 (en) * 2011-09-16 2014-07-01 Google Inc. Systems and methods for resizing an icon
KR20130045549A (ko) * 2011-10-26 2013-05-06 삼성전자주식회사 컴퓨팅장치 및 그 제어방법
US9213822B2 (en) * 2012-01-20 2015-12-15 Apple Inc. Device, method, and graphical user interface for accessing an application in a locked device
TW201337721A (zh) * 2012-03-06 2013-09-16 Acer Inc 手持式裝置及其相關控制方法
US9569078B2 (en) * 2012-03-06 2017-02-14 Apple Inc. User interface tools for cropping and straightening image
CN103389868B (zh) * 2012-05-08 2018-07-06 腾讯科技(深圳)有限公司 一种触控解锁的方法、装置及触摸屏终端
US9326145B2 (en) * 2012-12-16 2016-04-26 Aruba Networks, Inc. System and method for application usage controls through policy enforcement
GB2518589B (en) * 2013-07-30 2019-12-11 Holition Ltd Image processing
US9224237B2 (en) * 2013-09-27 2015-12-29 Amazon Technologies, Inc. Simulating three-dimensional views using planes of content
CN103778381B (zh) * 2014-01-13 2017-07-21 中标软件有限公司 一种基于安卓系统的应用锁屏方法及装置
US9665952B2 (en) * 2014-02-19 2017-05-30 Beijing Lenovo Software Ltd. Information processing method and electronic device
US9912795B2 (en) * 2014-05-16 2018-03-06 Avant-Garde Ip Llc Dynamically replaceable lock screen wallpaper
JP6137068B2 (ja) * 2014-06-24 2017-05-31 コニカミノルタ株式会社 情報処理装置、同装置におけるロック中画面の表示制御方法及び表示制御プログラム
CN104090711B (zh) * 2014-06-30 2017-12-22 宇龙计算机通信科技(深圳)有限公司 一种图标的底盘颜色显示方法及装置
CN105446581A (zh) * 2014-08-14 2016-03-30 纬创资通股份有限公司 桌面管理方法及具有桌面管理功能的电子装置
KR102121532B1 (ko) * 2014-08-26 2020-06-10 삼성전자주식회사 프리뷰 영상 제공 방법 및 장치
CN104217151B (zh) * 2014-09-11 2017-10-27 三星电子(中国)研发中心 智能终端应用程序的加锁方法及智能终端
CN104331220A (zh) * 2014-10-31 2015-02-04 小米科技有限责任公司 解锁处理方法及装置
CN104463787B (zh) * 2014-12-11 2018-01-12 厦门美图之家科技有限公司 一种光斑虚化特效实现方法
KR20160105121A (ko) * 2015-02-27 2016-09-06 삼성전자주식회사 전자 장치의 동작 방법, 전자 장치 및 저장 매체
KR20160144818A (ko) * 2015-06-09 2016-12-19 삼성전자주식회사 이미지 데이터 처리 방법 및 이를 지원하는 전자 장치

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147701A (zh) * 2010-02-04 2011-08-10 三星电子株式会社 用于显示装备触摸屏的终端的锁定屏幕的装置和方法
CN103246453A (zh) * 2012-02-01 2013-08-14 上海博路信息技术有限公司 一种基于图片区域动作的解锁方法
CN103186346A (zh) * 2013-03-15 2013-07-03 厦门市美亚柏科信息股份有限公司 一种基于图案的触摸屏解锁系统及方法
CN104267891A (zh) * 2014-09-19 2015-01-07 苏州天平先进数字科技有限公司 一种触屏终端锁屏背景设置方法
CN104866755A (zh) * 2015-06-11 2015-08-26 北京金山安全软件有限公司 应用程序解锁界面背景图片的设置方法、装置及电子设备

Also Published As

Publication number Publication date
CN104866755A (zh) 2015-08-26
US10437420B2 (en) 2019-10-08
US20190095075A1 (en) 2019-03-28
CN104866755B (zh) 2018-03-30

Similar Documents

Publication Publication Date Title
WO2016197470A1 (zh) 应用程序解锁界面背景图片的设置方法、装置及电子设备
WO2016197469A1 (zh) 一种解锁界面的生成方法、装置及电子设备
EP3547218B1 (en) File processing device and method, and graphical user interface
WO2017032233A1 (zh) 一种图像生成方法及装置
WO2022121790A1 (zh) 分屏显示方法、装置、电子设备和可读存储介质
US10936170B2 (en) Method for enabling interaction using fingerprint on display and electronic device thereof
US20220392130A1 (en) Image special effect processing method and apparatus
CN116168038B (zh) 一种图像翻拍检测的方法、装置、电子设备及存储介质
CN111192190A (zh) 消除图像水印的方法、装置及电子设备
CN111857464A (zh) 信息显示方法、装置、电子设备及可读存储介质
CN113655929A (zh) 界面显示的适配处理方法、装置和电子设备
CN107767838B (zh) 色域映射方法及装置
CN110618852A (zh) 视图处理方法、视图处理装置及终端设备
CN113570609A (zh) 图像展示方法、装置及电子设备
CN112734661A (zh) 图像处理方法及装置
CN109766530B (zh) 图表边框的生成方法、装置、存储介质和电子设备
CN111968605A (zh) 曝光度调整方法及装置
WO2022135219A1 (zh) 图像显示方法、装置和电子设备
CN112184535B (zh) 图像防伪方法、装置及设备
CN116385469A (zh) 特效图像生成方法、装置、电子设备及存储介质
CN114253449A (zh) 截屏方法、装置、设备及介质
CN113805709A (zh) 信息输入方法、装置
CN112764633A (zh) 信息处理方法、装置和电子设备
CN109803163B (zh) 图像展示方法及其装置、存储介质
CN117009020A (zh) 壁纸设置方法、装置、电子设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15894738

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/04/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15894738

Country of ref document: EP

Kind code of ref document: A1