CN113379866A - Wallpaper setting method and device - Google Patents

Wallpaper setting method and device Download PDF

Info

Publication number
CN113379866A
CN113379866A CN202110730239.4A CN202110730239A CN113379866A CN 113379866 A CN113379866 A CN 113379866A CN 202110730239 A CN202110730239 A CN 202110730239A CN 113379866 A CN113379866 A CN 113379866A
Authority
CN
China
Prior art keywords
target
image
filling
information
wallpaper
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110730239.4A
Other languages
Chinese (zh)
Inventor
孟秋月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110730239.4A priority Critical patent/CN113379866A/en
Publication of CN113379866A publication Critical patent/CN113379866A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a wallpaper setting method and a device, wherein the method comprises the following steps: under the condition that a wallpaper preview interface comprising a first image is displayed in a display area of a display screen, and the size proportion of the first image is not matched with that of the display area of the display screen, target information used for filling a target area is acquired, wherein the target area at least comprises an area of the wallpaper preview interface which is not covered by the first image; filling the target area according to the target information to obtain a target image, wherein the size ratio of the target image is matched with the size ratio of the display area; and setting the target image as the wallpaper of the electronic equipment. According to the embodiment of the application, the convenience of wallpaper setting can be improved.

Description

Wallpaper setting method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a wallpaper setting method and device.
Background
In order to meet the personalized setting requirements of users on the wallpaper of the electronic equipment, the users can use the images in the gallery to set the wallpaper at present. If the size ratio of the images in the gallery does not match the size ratio of the display area of the display screen, the images need to be cropped, and some elements of the obtained target image are often lost. In order to ensure the integrity of the target image, a complex image editing operation needs to be performed, and the operation involved in the process is relatively complicated and has great technical difficulty.
Disclosure of Invention
The embodiment of the application provides a wallpaper setting method and device, and aims to solve the problem that image editing operation is complex in order to guarantee the integrity of a target image used for being set as wallpaper.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a wallpaper setting method, which is applied to an electronic device, where the electronic device includes a display screen, and the method may include:
under the condition that a wallpaper preview interface comprising a first image is displayed in a display area of a display screen, and the size proportion of the first image is not matched with that of the display area of the display screen, target information used for filling a target area is acquired, wherein the target area at least comprises an area of the wallpaper preview interface which is not covered by the first image;
filling the target area according to the target information to obtain a target image, wherein the size ratio of the target image is matched with the size ratio of the display area;
and setting the target image as the wallpaper of the electronic equipment.
In a second aspect, an embodiment of the present application provides a wallpaper setting apparatus, which is applied to an electronic device, where the electronic device includes a display screen, and the apparatus may include:
the wallpaper preview module is used for displaying a wallpaper preview interface comprising a first image in a display area of a display screen, and under the condition that the size proportion of the first image is not matched with that of the display area of the display screen, acquiring target information for filling a target area, wherein the target area at least comprises an area of the wallpaper preview interface which is not covered by the first image;
the filling module is used for filling the target area according to the target information to obtain a target image, and the size proportion of the target image is matched with that of the display area;
and the setting module is used for setting the target image as the wallpaper of the electronic equipment.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, when a wallpaper preview interface comprising a first image is displayed and the size ratio of the first image is not matched with the size ratio of a display area of a display screen, target information for filling the target area is acquired, filling processing is performed on the target area at least comprising an area, which is not covered by the first image, of the wallpaper preview interface according to the target information, a target image with the size ratio matched with the size ratio of the display area is generated, and the target image is set as wallpaper of electronic equipment. Therefore, the target image matched with the size of the display area can be quickly obtained without manually editing the first image by a user, the integrity of the target image can be ensured, the target image obtained according to the embodiment of the application is set as the wallpaper of the electronic equipment, and the convenience of wallpaper setting can be improved.
Drawings
The present application may be better understood from the following description of specific embodiments of the application taken in conjunction with the accompanying drawings, in which like or similar reference numerals identify like or similar features.
Fig. 1 is a schematic view of an application scenario of a wallpaper setting method according to an embodiment of the present application;
fig. 2 is a flowchart of a wallpaper setting method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating an adjustment of a first image according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an alternative filling scheme provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a target filling method according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating an element filling effect according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating a color filling effect according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a splicing filling effect provided in an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a display level effect according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a wallpaper setting device according to an embodiment of the present application;
fig. 11 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 12 is a schematic hardware structure diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The wallpaper setting method provided by the embodiment of the application can be applied to the following application scenarios, which are described below.
As shown in fig. 1, currently, a user may select a wallpaper image of a mood meter from wallpaper images of an electronic device for setting wallpaper, or may use images in a gallery for setting wallpaper. If the size ratio of the images in the gallery does not match the size ratio of the display area of the display screen, the images need to be cropped to fit the size ratio of the display area. The target image thus obtained tends to lose some elements. If the user wants to keep all elements in the image, complex image editing operation needs to be performed, and a third-party tool needs to be used, so that the operation cost and the operation time of the user are greatly increased.
In view of the problems in the related art, embodiments of the present application provide a wallpaper setting method, an apparatus, an electronic device, and a storage medium, so as to solve the problem in the related art that a cumbersome image editing operation needs to be performed in order to ensure the integrity of a target image for setting as a wallpaper.
The method provided by the embodiment of the application can be applied to any scene needing to undergo complicated image editing operation when wallpaper is set besides the application scene.
According to the method provided by the embodiment of the application, under the condition that the wallpaper preview interface comprising the first image is displayed and the size proportion of the first image is not matched with that of the display area of the display screen, the target information for filling the target area is acquired, the target area at least comprising the area of the wallpaper preview interface not covered by the first image is filled according to the target information, the target image with the size proportion matched with that of the display area is generated, and the target image is set as the wallpaper of the electronic equipment. Therefore, the target image matched with the size of the display area can be quickly obtained without manually editing the first image by a user, the integrity of the target image can be ensured, the target image obtained according to the embodiment of the application is set as the wallpaper of the electronic equipment, and the convenience of wallpaper setting can be improved.
Based on the application scenario, the wallpaper setting method provided by the embodiment of the present application is described in detail below.
Fig. 2 is a flowchart of a wallpaper setting method according to an embodiment of the present application.
As shown in fig. 2, the wallpaper setting method may include steps 210-230, and the method is applied to a wallpaper setting device, and specifically as follows:
step 210, when the display area of the display screen displays a wallpaper preview interface including a first image, and the size ratio of the first image is not matched with the size ratio of the display area of the display screen, acquiring target information for filling the target area, wherein the target area at least includes an area of the wallpaper preview interface not covered by the first image.
And step 220, filling the target area according to the target information to obtain a target image, wherein the size ratio of the target image is matched with the size ratio of the display area.
Step 230, set the target image as the wallpaper of the electronic device.
According to the wallpaper setting method, under the condition that a wallpaper preview interface comprising a first image is displayed and the size proportion of the first image is not matched with the size proportion of a display area of a display screen, target information used for filling the target area is obtained, filling processing is carried out on the target area at least comprising the area, which is not covered by the first image, of the wallpaper preview interface according to the target information, a target image with the size proportion matched with the size proportion of the display area is generated, and the target image is set as wallpaper of electronic equipment. Therefore, the target image matched with the size of the display area can be quickly obtained without manually editing the first image by a user, the integrity of the target image can be ensured, the target image obtained according to the embodiment of the application is set as the wallpaper of the electronic equipment, and the convenience of wallpaper setting can be improved.
The contents of steps 210-230 are described below:
first, step 210 is involved.
Wherein the related target information includes at least one of the following:
target element information associated with the first image, target color information associated with the first image, and second image information associated with the first image.
Wherein the related target element information may include at least one of the following: element information in the first image, element information related to an element in the first image.
Wherein the related target color information may include at least one of the following: color information extracted from the first image, color information synthesized based on the colors extracted from the first image, and user-selected color information.
Wherein the related second image information may include at least one of: the first image itself, image information relating to the origin of the first image, and image information having the same elements as the first image.
Next, step 220 is involved.
The step of generating the target image supports Artificial Intelligence (AI) one-key filling, and firstly identifies the first image to calculate the optimal filling mode of the first image or predicts the appropriate filling mode according to the habit of the user; then, one key generates a target image matching the size scale of the display area, and the filling effect may be one or a combination of manually selected filling manners. Wherein, the manual selection filling mode comprises: element filling, color filling and splice filling. In addition, if the user is not satisfied with the currently generated target image, the user can choose to replace the target image, and then the target image with different effects can be generated for the user to choose.
As an implementation manner of the present application, in order to make the generated target image more effective, before step 220, the following steps may be further included:
receiving a second input to the first image;
and responding to the second input, and adjusting the display position and/or display size of the first image in the wallpaper preview interface.
Wherein, the second input may be a drag input. Before the target area is filled, the first image is displayed in the middle of the wallpaper preview interface by default, and the user can manually drag the position of the current first image to adjust the display position and/or display size of the first image in the wallpaper preview interface.
Illustratively, as shown in fig. 3, the first image may be dragged to the top area of the wallpaper preview interface, and then the bottom area (i.e., the target area) of the wallpaper preview interface may be subsequently filled.
As an implementation manner of the present application, in order to make the generated target image closer to the user requirement, the wallpaper preview interface may include at least one filling manner, and before step 220, may further include the following steps:
receiving a first input of a target filling mode in a wallpaper preview interface;
in response to the first input, target information corresponding to a target filling manner is determined.
In the case of displaying a wallpaper preview interface including a first image, a comparison may be made first as to whether the size ratio of the first image matches the size ratio of the display area, if not, the first image may be directly set as wallpaper, and if not, mode selection needs to be initiated.
Illustratively, as shown in FIG. 4, the fill mode may include manual fill (i.e., a target fill mode) and AI one-touch fill. Further, as shown in fig. 5, the manual selection filling may specifically include three ways of element filling, color filling, and splicing filling.
After completing the filling in any one of the element filling, color filling and splicing filling mentioned above, the user can continue to select other modes from the element filling, color filling and splicing filling according to the preference to continue the filling.
First, the target filling manner may be element filling, and in step 220, the following steps may be specifically included:
acquiring target element information in a first image;
and filling the target area according to the target element information to generate a target image.
The target filling mode can be element filling, the element filling can identify element information existing in the current picture through an algorithm, and the target area is filled according to the target element information, so that the size proportion of the target image obtained after filling is matched with the size proportion of the display area.
Wherein, the element filling is more suitable for the scene picture, especially when the top and bottom colors of the picture are more uniform or regular.
Exemplarily, as shown in fig. 6, the top of the first image is a blue sky, and the bottom is a picture of a plant, at which time the target area may be element-filled, and fig. 6 shows the first image before element-filling (left) and the target image after element-filling (right).
Therefore, the target area is filled according to the target element information obtained by identifying the first image, so that the target image matched with the size of the display area can be generated quickly, and the integrity of the target image can be ensured.
Secondly, the target filling manner may be color filling, and in step 220, the method may specifically include the following steps:
filling a target area according to the target color information to generate a target image;
wherein the target color information includes: the color information selected by the user is taken as the target color information, or the color information extracted from the first image is taken as the target color information.
The target filling manner may be color filling, and the target color information may be color information selected by a user, or may be color information in the first image picked up by a color picker and then a target area in the first image is filled with the target color information.
Color filling is suitable for various types of pictures, and is particularly better for pictures with large areas in pure color, as shown in fig. 7, a first image (left) before color filling and a target image (right) after color filling are shown.
Therefore, the target area is filled according to the target color information, so that the target image matched with the size of the display area can be generated quickly, and the integrity of the target image can be ensured.
Then, the target filling manner may also be splicing filling, and in step 220, the following steps may be specifically included:
searching at least one piece of second image information related to the first image;
and filling at least one piece of second image information into the target area to generate a target image.
The target filling manner may also be stitching filling, where the second image information used for filling is determined according to the first image, and first a key element in the first image may be determined, and then second image information related to the key element may be searched in a preset gallery according to the key element in the first image, for example, the first image and the second image are derived from the same video, and the like.
Before the step of filling the target area with the at least one piece of second image information and generating the target image, the method may further include the following steps: displaying at least one third image on a wallpaper preview interface; a selected input of second image information in the at least one image is received, and the second image information is determined.
Illustratively, as shown in fig. 8, the first image before stitching filling (left) and the target image after stitching filling (right) are shown.
The mosaic filling can be applied to various types of images, and particularly, the production efficiency can be greatly improved under the condition that the wallpaper is generated by using the image of the video screenshot. At present, the ratio of the main stream video is mostly 16:9, the ratio of the full screen is 20:9, even most of video screenshots need to be turned over for 90 degrees to be displayed, the height of a content area on a display area of the display screen after turning over only occupies about 1/4 of the height of the whole display area, and at the moment, a piece of exquisite wallpaper can be manufactured by filling spliced pictures by using a plurality of video screenshots.
Therefore, through the at least one piece of second image information related to the first image, the target image matched with the size of the display area can be generated quickly, and the integrity of the target image can be guaranteed.
The step of filling at least one piece of second image information into the target area to generate the target image may specifically include the following steps:
determining a display layer of each second image;
and filling at least one second image into the target area according to the display layer to generate a target image.
The multiple second images in the wallpaper preview interface can be displayed in an overlapping manner, a corresponding display layer can be set for each second image, the higher the level of the display layer is, the higher the level of the display layer is, the lower the level of the display layer can be covered by pictures. The hierarchy of the display layer to which the second image is added after the default of the display layer is not set is higher than the hierarchy of the display layer to which the second image is added first.
As shown in fig. 9, the first image before the stitching filling (left) and the target image after the stitching filling (right) are shown, and the method is suitable for the case where the second image has the same picture and only subtitles are different.
Finally, step 230 is involved.
The three modes of element filling, color filling and custom picture filling can support pictures of different styles to quickly manufacture wallpaper meeting the screen proportion, and the multi-dimensional requirements of users are met.
In summary, in the embodiment of the present application, when a wallpaper preview interface including a first image is displayed and the size ratio of the first image does not match the size ratio of the display area of the display screen, target information for filling the target area is acquired, according to the target information, a filling process is performed on the target area at least including an area of the wallpaper preview interface not covered by the first image, a target image whose size ratio matches the size ratio of the display area is generated, and the target image is set as the wallpaper of the electronic device. Therefore, the target image matched with the size of the display area can be quickly obtained without manually editing the first image by a user, the integrity of the target image can be ensured, the target image obtained according to the embodiment of the application is set as the wallpaper of the electronic equipment, and the convenience of wallpaper setting can be improved.
It should be noted that, in the wallpaper setting method provided in the embodiment of the present application, the execution subject may be a wallpaper setting device, or a control module in the wallpaper setting device for executing a wallpaper loading setting method. In the embodiment of the present application, a wallpaper setting device is taken as an example to execute a wallpaper loading setting method, and the wallpaper setting method provided in the embodiment of the present application is described.
In addition, based on the wallpaper setting method, an embodiment of the application further provides a wallpaper setting device, which is specifically described in detail with reference to fig. 10.
Fig. 10 is a schematic structural diagram of a wallpaper setting device according to an embodiment of the application.
As shown in fig. 10, the wallpaper setting device 1000 may include:
the obtaining module 1010 is configured to, when the display area of the display screen displays a wallpaper preview interface that includes the first image, and the size ratio of the first image is not matched with the size ratio of the display area of the display screen, obtain target information for filling a target area, where the target area includes at least an area of the wallpaper preview interface that is not covered by the first image.
And a filling module 1020, configured to perform filling processing on the target area according to the target information to obtain a target image, where a size ratio of the target image is matched with a size ratio of the display area.
A setting module 1030 configured to set the target image as a wallpaper of the electronic device.
In one possible embodiment, the target information comprises at least one of:
target element information associated with the first image, target color information associated with the first image, and second image information associated with the first image.
In a possible embodiment, the wallpaper preview interface includes at least one filling manner, and the wallpaper setting apparatus 1000 may further include:
the receiving module is used for receiving first input of a target filling mode in the wallpaper preview interface.
And the determining module is used for responding to the first input and determining target information corresponding to the target filling mode.
In a possible embodiment, the target filling manner is element filling, and the obtaining module 1010 is further configured to obtain target element information in the first image.
The filling module 1020 is specifically configured to: and filling the target area according to the target element information to generate a target image.
In a possible embodiment, the target filling manner is color filling, and the filling module 1020 is specifically configured to: and filling the target area according to the target color information to generate a target image.
Wherein the target color information includes: the color information selected by the user is taken as the target color information, or the color information extracted from the first image is taken as the target color information.
In a possible embodiment, the target filling manner is splicing filling, and the wallpaper setting device 1000 may further include:
and the searching module is used for searching at least one piece of second image information related to the first image.
The filling module 1020 is specifically configured to: and filling at least one piece of second image information into the target area to generate a target image.
To sum up, the wallpaper setting apparatus provided in the embodiment of the present application acquires target information for filling a target area when a wallpaper preview interface including a first image is displayed and a size ratio of the first image is not matched with a size ratio of a display area of a display screen, performs filling processing on the target area at least including an area of the wallpaper preview interface not covered by the first image according to the target information, generates a target image having a size ratio matched with the size ratio of the display area, and sets the target image as a wallpaper of an electronic device. Therefore, the target image matched with the size of the display area can be quickly obtained without manually editing the first image by a user, the integrity of the target image can be ensured, the target image obtained according to the embodiment of the application is set as the wallpaper of the electronic equipment, and the convenience of wallpaper setting can be improved.
The wallpaper setting device in the embodiment of the application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The wallpaper setting device in the embodiment of the application may be a device with an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The wallpaper setting device provided by the embodiment of the application can implement each process implemented by the wallpaper setting device in the method embodiments of fig. 2 to 9, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 1100 is further provided in an embodiment of the present application, and includes a processor 1101, a memory 1102, and a program or an instruction stored in the memory 1102 and executable on the processor 1101, where the program or the instruction is executed by the processor 1101 to implement each process of the above-mentioned chat group creation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 12 is a schematic hardware structure diagram of another electronic device according to an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensor 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, processor 1210, and power source 1211. The input unit 1204 may include a graphic processor 12041 and a microphone 12042; the display unit 1206 may include a display panel 12061; the user input unit 1207 may include a touch panel 12071 and other input devices 12072; the memory 1209 may include applications and an operating system.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source 1211 may be logically connected to the processor 1210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
And a processor 1210, configured to, when the display area of the display screen displays a wallpaper preview interface including a first image and a size ratio of the first image does not match with the size ratio of the display area of the display screen, obtain target information for filling a target area, where the target area includes at least an area of the wallpaper preview interface not covered by the first image.
The processor 1210 is further configured to perform a filling process on the target area according to the target information to obtain a target image, where a size ratio of the target image is matched with a size ratio of the display area.
The processor 1210 is further configured to set the target image as a wallpaper of the electronic device.
Optionally, the wallpaper preview interface includes at least one filling mode, and the user input unit 1207 is configured to receive a first input of a target filling mode in the wallpaper preview interface.
A processor 1210 for determining target information corresponding to a target filling pattern in response to a first input.
Optionally, the processor 1210 is further configured to obtain target element information in the first image.
The processor 1210 is further configured to fill the target area according to the target element information, and generate a target image.
Optionally, the processor 1210 is further configured to fill the target area according to the target color information, and generate a target image. Wherein the target color information includes: the color information selected by the user is taken as the target color information, or the color information extracted from the first image is taken as the target color information.
Optionally, the processor 1210 is further configured to search for at least one piece of second image information related to the first image.
The processor 1210 is further configured to fill the target area with at least one piece of second image information, and generate a target image.
In the embodiment of the application, when a wallpaper preview interface comprising a first image is displayed and the size ratio of the first image is not matched with the size ratio of a display area of a display screen, target information for filling the target area is acquired, filling processing is performed on the target area at least comprising an area, which is not covered by the first image, of the wallpaper preview interface according to the target information, a target image with the size ratio matched with the size ratio of the display area is generated, and the target image is set as wallpaper of electronic equipment. Therefore, the target image matched with the size of the display area can be quickly obtained without manually editing the first image by a user, the integrity of the target image can be ensured, the target image obtained according to the embodiment of the application is set as the wallpaper of the electronic equipment, and the convenience of wallpaper setting can be improved.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the wallpaper setting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the wallpaper setting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A wallpaper setting method is applied to an electronic device, the electronic device comprises a display screen, and the method comprises the following steps:
under the condition that a wallpaper preview interface comprising a first image is displayed in a display area of the display screen, and the size proportion of the first image is not matched with that of the display area of the display screen, target information used for filling a target area is acquired, wherein the target area at least comprises an area of the wallpaper preview interface which is not covered by the first image;
filling the target area according to the target information to obtain a target image, wherein the size ratio of the target image is matched with the size ratio of the display area;
and setting the target image as the wallpaper of the electronic equipment.
2. The method of claim 1, wherein the target information comprises at least one of:
target element information related to the first image, target color information related to the first image, and second image information related to the first image.
3. The method according to claim 1, wherein the wallpaper preview interface comprises at least one filling mode, and before the filling processing is performed on the target area according to the target information to generate a target image, the method further comprises:
receiving a first input of a target filling mode in the wallpaper preview interface;
in response to the first input, determining the target information corresponding to the target filling manner.
4. The method according to claim 3, wherein the target filling method is element filling, and the step of performing filling processing on the target area according to the target information to generate the target image comprises:
acquiring target element information in the first image;
and filling the target area according to the target element information to generate the target image.
5. The method according to claim 3, wherein the target filling method is color filling, and the step of performing filling processing on the target area according to the target information to generate the target image comprises:
filling the target area according to target color information to generate the target image;
wherein the target color information includes: and using color information selected by a user as the target color information, or using color information extracted from the first image as the target color information.
6. The method according to claim 3, wherein the target filling manner is stitching filling, and the filling the target area according to the target information to generate the target image comprises:
searching at least one piece of second image information related to the first image;
and filling the at least one piece of second image information into the target area to generate the target image.
7. A wallpaper setting device is applied to an electronic device, wherein the electronic device comprises a display screen, and the wallpaper setting device comprises:
the wallpaper preview interface comprises a first image, and the wallpaper preview interface comprises a size ratio of the first image and a size ratio of a display area of the display screen;
the filling module is used for filling the target area according to the target information to obtain a target image, and the size proportion of the target image is matched with that of the display area;
and the setting module is used for setting the target image as the wallpaper of the electronic equipment.
8. The apparatus of claim 7, wherein the target information comprises at least one of:
target element information related to the first image, target color information related to the first image, and second image information related to the first image.
9. The apparatus of claim 7, wherein the wallpaper preview interface comprises at least one filling mode, the apparatus further comprising:
the receiving module is used for receiving first input of a target filling mode in the wallpaper preview interface;
a determining module, configured to determine the target information corresponding to the target filling manner in response to the first input.
10. The apparatus according to claim 9, wherein the target filling manner is element filling, and the obtaining module is further configured to obtain target element information in the first image;
the filling module is specifically configured to: and filling the target area according to the target element information to generate the target image.
11. The apparatus according to claim 9, wherein the target filling manner is color filling, and the filling module is specifically configured to:
filling the target area according to target color information to generate the target image;
wherein the target color information includes: and using color information selected by a user as the target color information, or using color information extracted from the first image as the target color information.
12. The apparatus of claim 9, wherein the target filling manner is splice filling, the apparatus further comprising:
the searching module is used for searching at least one piece of second image information related to the first image;
the filling module is specifically configured to: and filling the at least one piece of second image information into the target area to generate the target image.
CN202110730239.4A 2021-06-29 2021-06-29 Wallpaper setting method and device Pending CN113379866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110730239.4A CN113379866A (en) 2021-06-29 2021-06-29 Wallpaper setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110730239.4A CN113379866A (en) 2021-06-29 2021-06-29 Wallpaper setting method and device

Publications (1)

Publication Number Publication Date
CN113379866A true CN113379866A (en) 2021-09-10

Family

ID=77580005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110730239.4A Pending CN113379866A (en) 2021-06-29 2021-06-29 Wallpaper setting method and device

Country Status (1)

Country Link
CN (1) CN113379866A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116820370A (en) * 2023-05-29 2023-09-29 深圳市视景达科技有限公司 Picture display proportion compensation method, device, equipment and storage medium
WO2024067202A1 (en) * 2022-09-29 2024-04-04 北京字跳网络技术有限公司 Image extension method and apparatus, storage medium, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045435A (en) * 2009-10-20 2011-05-04 深圳富泰宏精密工业有限公司 Mobile phone and processing method of wallpaper thereof
EP2557562A1 (en) * 2011-08-08 2013-02-13 Research In Motion Limited Method and apparatus for displaying an image
CN105898030A (en) * 2015-12-31 2016-08-24 乐视致新电子科技(天津)有限公司 Picture processing method and device and mobile phone
CN107368295A (en) * 2017-06-07 2017-11-21 努比亚技术有限公司 A kind of terminal wallpaper generation method, terminal and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045435A (en) * 2009-10-20 2011-05-04 深圳富泰宏精密工业有限公司 Mobile phone and processing method of wallpaper thereof
EP2557562A1 (en) * 2011-08-08 2013-02-13 Research In Motion Limited Method and apparatus for displaying an image
CN105898030A (en) * 2015-12-31 2016-08-24 乐视致新电子科技(天津)有限公司 Picture processing method and device and mobile phone
CN107368295A (en) * 2017-06-07 2017-11-21 努比亚技术有限公司 A kind of terminal wallpaper generation method, terminal and computer-readable recording medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TZYZXXDJZX: "如何利用手机将图片按照原有内容进行扩展填充", 《URL: HTTPS://JINGYAN.BAIDU.COM/ARTICLE/6079AD0EED1B4E28FF86DB8B.HTML》 *
汐汐手机摄影: "照片尺寸太小不够做壁纸时怎么办", 《URL: HTTPS://QUANMIN.BAIDU.COM/SV?SOURCE=SHARE-H5&PD=QM_SHARE_SEARCH&VID=3352897917213625568》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067202A1 (en) * 2022-09-29 2024-04-04 北京字跳网络技术有限公司 Image extension method and apparatus, storage medium, and electronic device
CN116820370A (en) * 2023-05-29 2023-09-29 深圳市视景达科技有限公司 Picture display proportion compensation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111756995A (en) Image processing method and device
CN112135049A (en) Image processing method and device and electronic equipment
US20230345113A1 (en) Display control method and apparatus, electronic device, and medium
CN113379866A (en) Wallpaper setting method and device
CN113596555B (en) Video playing method and device and electronic equipment
CN112416485A (en) Information guiding method, device, terminal and storage medium
US20240196082A1 (en) Image Processing Method and Apparatus, and Electronic Device
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN113905175A (en) Video generation method and device, electronic equipment and readable storage medium
CN112702531B (en) Shooting method and device and electronic equipment
CN111885298B (en) Image processing method and device
CN114025092A (en) Shooting control display method and device, electronic equipment and medium
CN112541955A (en) Image processing method, device and equipment
CN113362426B (en) Image editing method and image editing device
CN115936998A (en) Picture splicing method and device, electronic equipment and storage medium
CN112367487B (en) Video recording method and electronic equipment
CN112162805B (en) Screenshot method and device and electronic equipment
CN112732958B (en) Image display method and device and electronic equipment
CN114679546A (en) Display method and device, electronic equipment and readable storage medium
CN112312021B (en) Shooting parameter adjusting method and device
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114518821A (en) Application icon management method and device and electronic equipment
CN114338874A (en) Image display method of electronic device, image processing circuit and electronic device
CN112261483A (en) Video output method and device
CN113393372A (en) Desktop wallpaper setting method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210910

RJ01 Rejection of invention patent application after publication