Information setting method, device and electronic device

By receiving background setting instructions and generating layers and editing background pictures, the problem of cumbersome background setting in the existing technology is solved, efficient background setting and diversity are achieved, and the user's personalized needs are met.

CN111857900BActive Publication Date: 2024-10-18BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 16 Cites 0 Cited by

Patent Information

Application Number
CN201910346541.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-26
Publication Date
2024-10-18
Estimated Expiration
2040-04-14

AI Technical Summary

Technical Problem

When users set the input method keyboard background, the existing technology needs to select appropriate pictures from the background library. Gradient colors, styles and other elements are cumbersome and inefficient, making it difficult to meet personalized needs.

Method used

By receiving the background setting instructions, obtain the background parameters, create layers and edit according to the parameters to generate background images, including color filling, pattern and text processing, generate a background image that meets the user's needs and set it as the input method keyboard background.

Benefits of technology

The efficiency of information setting is improved. Users can automatically generate background images that meet their needs based on custom parameters, simplifying the background setting process and increasing the diversity of backgrounds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111857900B_ABST
    Figure CN111857900B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide an information setting method, device and electronic device, wherein the method comprises: obtaining corresponding background parameters according to a received background setting instruction, wherein the background parameters include layer parameters of at least one layer; creating at least one layer, editing the layer according to the corresponding layer parameters, and generating a corresponding background picture; setting the background picture as the background of an input method keyboard; thereby being able to automatically generate a background picture according to user-defined parameters and set the background picture as the background of an input method keyboard, setting a picture that meets user needs as the background of the input method keyboard, and improving the efficiency of information setting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of input methods, and in particular to an information setting method, device and electronic equipment. Background Art

[0002] With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more and more popular, bringing great convenience to people's life, study and work. These electronic devices are usually installed with input method applications (input methods for short), so that users can use the input methods to input information.

[0003] When users use input methods to input information, the input method's keyboard will remain in the current interface and occupy a large area, which makes the user's personalized demand for the input method keyboard interface relatively high; therefore, the input method provides a keyboard background setting function, that is, after the user selects the desired picture from the background library, the input method can set the background of its keyboard to the picture selected by the user, thereby satisfying the user's personalized demand for the input method keyboard interface.

[0004] For a certain picture in the background library, some elements in it may not meet the user's needs, such as the background's gradient color, gradient method, pattern style, text, etc.; therefore, the user needs to draw a picture that meets the needs and upload it to the background library before setting the picture as the background of the input method keyboard. The operation is cumbersome and inefficient. Summary of the invention

[0005] The embodiment of the present invention provides an information setting method to improve information setting efficiency.

[0006] Correspondingly, the embodiment of the present invention further provides an information setting device and an electronic device to ensure the implementation and application of the above method.

[0007] In order to solve the above problems, an embodiment of the present invention discloses an information setting method, which specifically includes: obtaining corresponding background parameters according to a received background setting instruction, wherein the background parameters include layer parameters of at least one layer; creating at least one layer, editing the layer according to the corresponding layer parameters, and generating a corresponding background image; and setting the background image as the background of an input method keyboard.

[0008] Optionally, the background parameters include layer parameters of a layer, the layer parameters include color parameters, and editing the layer according to the corresponding layer parameters to generate a background image includes: filling the layer with color according to the color parameters to generate the background image.

[0009] Optionally, filling the layer with color according to the color parameters to generate a background image includes: determining the corresponding number of colors according to the color parameters; if the number of colors is one, filling the layer with the color corresponding to the color parameter to generate a solid color image; if the number of colors corresponding to the color information is multiple, filling the layer with multiple colors corresponding to the color parameters to generate a gradient image; and determining the solid color image or the gradient image as the background image.

[0010] Optionally, the layer parameters also include gradient type parameters, and the step of filling the layer with multiple colors corresponding to the color parameters to generate a gradient image includes: filling the layer with multiple colors corresponding to the color parameters according to the gradient type parameters to generate a gradient image.

[0011] Optionally, the background parameters include layer parameters of multiple layers, and the layers include multiple layers. Editing the layers according to corresponding layer parameters to generate a background image includes: editing each layer according to the corresponding layer parameters to obtain a corresponding edited layer; and superimposing each edited layer to generate a background image.

[0012] Optionally, the layers include a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; and editing each layer according to the corresponding layer parameters to obtain the corresponding edited layer includes: filling the first layer with color according to the color parameters to obtain the first edited layer; and editing the second layer according to the corresponding layer parameters to obtain the second edited layer.

[0013] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and a pattern attribute parameter, the pattern attribute parameter includes at least one of the following: a color parameter, a line parameter, and a position parameter; the editing the second layer according to the corresponding layer parameters to obtain the second edited layer includes: obtaining a corresponding pattern according to the pattern storage address;

[0014] The pattern is added to the second layer, and the pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

[0015] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, the pattern attribute parameters include at least one of the following: color parameters, line parameters and position parameters; editing the second layer according to the corresponding layer parameters to obtain the second edited layer includes: drawing a corresponding pattern on the second layer according to the pattern drawing parameters; editing the pattern according to the pattern attribute parameters to obtain the second edited layer.

[0016] Optionally, the layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, the text attribute parameters include at least one of the following: color parameters, font parameters, font size parameters and position parameters; editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: obtaining corresponding text according to the text storage address; adding the text to the second layer, and editing the text according to the text attribute parameters to obtain a second edited layer.

[0017] Optionally, superimposing the edited layers to generate a background image includes: superimposing the second edited layer on the first edited layer to generate a background image.

[0018] An embodiment of the present invention also discloses an information setting device, which specifically includes: an acquisition module, used to acquire corresponding background parameters based on a received background setting instruction, wherein the background parameters include layer parameters of at least one layer; a generation module, used to create at least one layer, edit the layer based on the corresponding layer parameters, and generate a corresponding background image; and a setting module, used to set the background image as the background of an input method keyboard.

[0019] Optionally, the background parameters include layer parameters of a layer, the layer parameters include color parameters, and the generation module includes: a picture generation submodule, which is used to fill the layer with color according to the color parameters to generate a background picture.

[0020] Optionally, the image generation submodule includes: a quantity determination unit, used to determine the corresponding number of colors based on the color parameters; a pure color image generation unit, used to fill the layer with a color corresponding to the color parameter if the number of colors is one, to generate a pure color image; a gradient image generation unit, used to fill the layer with multiple colors corresponding to the color parameters if the number of colors corresponding to the color information is multiple, to generate a gradient image; a background image generation unit, used to determine the pure color image or the gradient image as the background image.

[0021] Optionally, the layer parameters further include gradient type parameters, and the gradient image generating unit is used to use a plurality of colors corresponding to the color parameters to fill the layer with colors according to the gradient type parameters to generate a gradient image.

[0022] Optionally, the background parameters include layer parameters of multiple layers, the layers include multiple layers, and the generation module includes: a layer editing sub-module, used to edit each layer according to the corresponding layer parameters to obtain the corresponding edited layer; a layer overlay sub-module, used to overlay each edited layer to generate a background image.

[0023] Optionally, the layer includes a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; the layer editing submodule includes: a first layer editing unit, used to fill the first layer with color according to the color parameters to obtain a first edited layer; a second layer editing unit, used to edit the second layer according to the corresponding layer parameters to obtain a second edited layer.

[0024] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and pattern attribute parameters, the pattern attribute parameters include at least one of the following: color parameters, line parameters and position parameters; the second layer editing unit is used to obtain the corresponding pattern according to the pattern storage address; add the pattern to the second layer, and edit the pattern according to the pattern attribute parameters to obtain a second edited layer.

[0025] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, the pattern attribute parameters include at least one of the following: color parameters, line parameters and position parameters; the second layer editing unit is used to draw a corresponding pattern on the second layer according to the pattern drawing parameters; and edit the pattern according to the pattern attribute parameters to obtain a second edited layer.

[0026] Optionally, the layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, the text attribute parameters include at least one of the following: color parameters, font parameters, font size parameters and position parameters; the second layer editing unit is used to obtain the corresponding text based on the text storage address; add the text to the second layer, and edit the text based on the text attribute parameters to obtain a second edited layer.

[0027] Optionally, the layer overlay submodule is used to overlay the second edited layer on the first edited layer to generate a background image.

[0028] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the information setting method as described in any one of the embodiments of the present invention.

[0029] An embodiment of the present invention also discloses an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: obtaining corresponding background parameters based on a received background setting instruction, wherein the background parameters include layer parameters of at least one layer; creating at least one layer, editing the layer based on the corresponding layer parameters, and generating a corresponding background image; and setting the background image as the background of an input method keyboard.

[0030] Optionally, the background parameters include layer parameters of a layer, the layer parameters include color parameters, and editing the layer according to the corresponding layer parameters to generate a background image includes: filling the layer with color according to the color parameters to generate the background image.

[0031] Optionally, filling the layer with color according to the color parameters to generate a background image includes: determining the corresponding number of colors according to the color parameters; if the number of colors is one, filling the layer with the color corresponding to the color parameter to generate a solid color image; if the number of colors corresponding to the color information is multiple, filling the layer with multiple colors corresponding to the color parameters to generate a gradient image; and determining the solid color image or the gradient image as the background image.

[0032] Optionally, the layer parameters also include gradient type parameters, and the step of filling the layer with multiple colors corresponding to the color parameters to generate a gradient image includes: filling the layer with multiple colors corresponding to the color parameters according to the gradient type parameters to generate a gradient image.

[0033] Optionally, the background parameters include layer parameters of multiple layers, and the layers include multiple layers. Editing the layers according to corresponding layer parameters to generate a background image includes: editing each layer according to the corresponding layer parameters to obtain a corresponding edited layer; and superimposing each edited layer to generate a background image.

[0034] Optionally, the layers include a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; and editing each layer according to the corresponding layer parameters to obtain the corresponding edited layer includes: filling the first layer with color according to the color parameters to obtain the first edited layer; and editing the second layer according to the corresponding layer parameters to obtain the second edited layer.

[0035] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and a pattern attribute parameter, the pattern attribute parameter includes at least one of the following: a color parameter, a line parameter, and a position parameter; the editing the second layer according to the corresponding layer parameters to obtain the second edited layer includes: obtaining a corresponding pattern according to the pattern storage address;

[0036] The pattern is added to the second layer, and the pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

[0037] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, the pattern attribute parameters include at least one of the following: color parameters, line parameters and position parameters; editing the second layer according to the corresponding layer parameters to obtain the second edited layer includes: drawing a corresponding pattern on the second layer according to the pattern drawing parameters; editing the pattern according to the pattern attribute parameters to obtain the second edited layer.

[0038] Optionally, the layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, the text attribute parameters include at least one of the following: color parameters, font parameters, font size parameters and position parameters; editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: obtaining corresponding text according to the text storage address; adding the text to the second layer, and editing the text according to the text attribute parameters to obtain a second edited layer.

[0039] Optionally, superimposing the edited layers to generate a background image includes: superimposing the second edited layer on the first edited layer to generate a background image.

[0040] The embodiments of the present invention include the following advantages:

[0041] In an embodiment of the present invention, a background setting instruction can be received to obtain background parameters corresponding to the background setting instruction, wherein the background parameters include layer parameters of at least one layer; then at least one layer can be created, and the layer can be edited according to the corresponding layer parameters to generate a corresponding background image, and then the background image can be set as the background of the input method keyboard; thereby, a background image can be automatically generated according to user-defined parameters and the background image can be set as the background of the input method keyboard, and a picture that meets user needs can be set as the background of the input method keyboard, thereby improving the efficiency of information setting. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flowchart of a method for setting information according to an embodiment of the present invention;

[0043] Figure 2a is a schematic diagram of an input method keyboard interface embodiment of the present invention;

[0044] Figure 2b is a schematic diagram of another input method keyboard interface embodiment of the present invention;

[0045] Figure 3 is a flowchart of steps of an optional embodiment of an information setting method of the present invention;

[0046] Figure 4 is a flowchart of steps of another optional embodiment of the information setting method of the present invention;

[0047] Figure 5 is a structural block diagram of an embodiment of an information setting device of the present invention;

[0048] Figure 6 is a structural block diagram of an optional embodiment of an information setting device of the present invention;

[0049] Figure 7 A structural block diagram of an electronic device for information setting according to an exemplary embodiment;

[0050] Figure 8 It is a structural schematic diagram of an electronic device for information setting according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0052] One of the core concepts of the embodiment of the present invention is that a background image can be automatically generated according to user-defined parameters and set as the background of the input method keyboard, thereby being able to set a picture that meets user needs as the background of the input method keyboard, thereby improving the efficiency of information setting.

[0053] Reference Figure 1 , shows a flowchart of an information setting method embodiment of the present invention, which may specifically include the following steps:

[0054] Step 102: Acquire corresponding background parameters according to the received background setting instruction, wherein the background parameters include layer parameters of at least one layer.

[0055] Step 104: create at least one layer, edit the layer according to corresponding layer parameters, and generate a corresponding background image.

[0056] Step 106: Set the background image as the background of the input method keyboard.

[0057] In the embodiment of the present invention, the input method may be provided with a background setting function, and when the user needs to set the background of the input method keyboard, the user may enter the corresponding background setting interface; then, the user may set the background of the input method keyboard according to the needs in the background setting interface, and then perform the background setting operation, so as to set the background of the input method keyboard according to the user's needs. Of course, the user may also directly perform the background setting operation without configuring each picture element, and the embodiment of the present invention does not limit this.

[0058] In an example of the present invention, a picture can be split into multiple picture elements, such as background picture elements, pattern picture elements, text picture elements, etc., and in order to better meet user needs, the background setting interface can provide configurations corresponding to multiple picture elements; wherein the number and type of picture elements provided by the background setting interface can be set as required, and the embodiment of the present invention does not limit this. Then, in the background setting interface, the user can select the corresponding configuration item for each picture element as required to implement the configuration of each picture element.

[0059] After the user performs the background setting operation, the input method can receive the corresponding background setting instruction, and then obtain the background parameters corresponding to each picture element, and determine the background parameters corresponding to each picture element as the background parameters corresponding to the background setting instruction. Among them, if the user configures the picture element, then for the picture element configured by the user, the background parameters corresponding to the configuration item selected by the user can be obtained as the background parameters corresponding to the picture element; for the picture element not configured by the user, the corresponding default background parameters can be obtained as the background parameters corresponding to the picture element. Among them, each picture element may have a corresponding default background parameter, or may not have a corresponding default background parameter, which can be set according to the requirements, and the embodiment of the present invention does not limit this; if the picture element not configured by the user does not have a corresponding default background parameter, the background parameters corresponding to the background setting instruction may not include the background parameters of the picture element not configured by the user.

[0060] In one example of the present invention, the background setting interface can provide multiple dimensions of configuration for each image element. For example, the background image element can include two dimensions of configuration: color dimension and gradient type dimension; each dimension can include multiple categories of configuration items, for example, the color dimension can include configuration items of various RGB colors, and the gradient type dimension can include configuration items of various gradient types such as linear gradient configuration items, radial gradient configuration items, angle gradient configuration items, etc.; each configuration item can include multiple configuration items, for example, the angle gradient configuration item can include multiple configuration items, such as various gradient angle configuration items, etc. Among them, the dimension corresponding to the configuration of each image element, the type corresponding to each dimensional configuration item, and the quantity corresponding to each configuration item can all be set as required, and the embodiment of the present invention does not limit this.

[0061] In an example of the present invention, for each picture element, if the user configures some dimensions in the picture element, after receiving the background setting instruction, the background parameters corresponding to the configuration items selected by the user can be obtained for the dimensions configured by the user, and the corresponding default background parameters can be obtained for the dimensions not configured by the user. For example, if the user configures the color dimension in the background picture element, the color parameters corresponding to the color selected by the user can be obtained, and the default gradient type parameters corresponding to the gradient type dimension can also be obtained. Except for the background picture element, if the user does not configure any dimension in the picture element, after receiving the background setting instruction, there is no need to obtain the background parameters corresponding to the picture element. Furthermore, when the user only configures the background picture element, the background parameters corresponding to the background setting instruction obtained only include the background parameters of one picture element, that is, the background parameters corresponding to the background picture element. When the user configures other picture elements but does not configure the background picture element, the background parameters corresponding to the background picture element and the background parameters corresponding to the configured other picture elements can still be obtained; the corresponding background parameters corresponding to the background setting instruction obtained can include the background parameters of at least two picture elements.

[0062] Among them, when the background parameters corresponding to the background setting instruction include background parameters of at least two kinds of picture elements, after determining each picture element, various picture elements can be superimposed to generate a background picture. Therefore, in an embodiment of the present invention, after determining the background parameters corresponding to the background setting instruction, a corresponding number of layers can be created according to the number of picture elements corresponding to the background parameters corresponding to the background setting instruction, and then according to the background parameters corresponding to the picture elements, the layers corresponding to the picture elements are edited to obtain edited layers; if the background parameters corresponding to the background setting instruction include multiple picture elements, the edited layers can be superimposed to generate a background picture, and if the background parameters corresponding to the background setting instruction include one picture element, the edited layers can be directly used to generate a background picture.

[0063] Furthermore, in the embodiment of the present invention, an identifier can be configured in advance for each picture element, and the identifier of the picture element to which it belongs can be configured for the default background parameter corresponding to the picture element, and the identifier is used to uniquely identify a layer; then, in the process of obtaining the background parameters corresponding to each picture element, after determining the background parameter corresponding to the configuration item selected by the user, the identifier of the picture element to which the corresponding configuration item belongs can be added to the background parameter. For the convenience of subsequent description, the background parameter of a picture element can be referred to as the layer parameter of a layer.

[0064] Therefore, the background parameters corresponding to the background setting instruction may include layer parameters of at least one layer. After obtaining the background parameters corresponding to the background setting instruction, at least one layer can be created, and then the layer can be edited according to the corresponding layer parameters to obtain an edited layer; then a background picture is generated based on the edited picture; for example, if there is one edited layer, the edited layer is saved as a picture, and the picture is determined as the background picture; if there are multiple edited pictures, the multiple edited layers are synthesized and saved as a picture, and then the picture is determined as the background picture.

[0065] Then, the background image is set as the background of the input keyboard. When the user starts the input method in other applications, the background of the displayed input method keyboard is the background image set above.

[0066] In an example of the present invention, the user configures two picture elements in the background setting interface: a background picture element (such as the user selected color 1) and a pattern picture element (such as the user selected a heart shape); and then performs a background setting operation. The input method can then obtain background parameters corresponding to the background setting instruction based on the received background setting instruction. For example, the background parameters include: layer parameters of the layer corresponding to the background picture element (such as the layer parameters corresponding to color 1), and layer parameters of the layer corresponding to the pattern picture element (such as the layer parameters of the heart shape and the default layer parameters corresponding to the color (such as the layer parameters corresponding to color 2)). Then create at least one layer, edit the layer according to the corresponding layer parameters, and generate a corresponding background picture; for example, fill the layer corresponding to the background picture element with color 1, add a heart-shaped pattern to the layer corresponding to the pattern picture element, and fill the heart-shaped pattern with color, and then generate a background picture based on these two layers; then set the background picture as the background of the input method keyboard. Figure 2a shown.

[0067] In an example of the present invention, a user configures a picture element such as a background picture element in the background setting interface (such as the user selects configuration items color 3, color 4, and linear gradient type), and then performs a background setting operation. Then, the input method can obtain background parameters corresponding to the background setting instruction based on the received background setting instruction, such as background parameters including: layer parameters of the layer corresponding to the background picture element, including: layer parameters corresponding to color 3, layer parameters corresponding to color 4, and layer parameters corresponding to the linear gradient type. Then, at least one layer is created, and the layer is edited according to the corresponding layer parameters to generate a corresponding background picture; for example, according to the layer parameters corresponding to the gradient type, the layer corresponding to the background picture element is filled with color 3 and color 4, and a background picture is generated based on the layer. Then, the background picture is set as the background of the input method keyboard. Figure 2b shown.

[0068] In summary, in the embodiments of the present invention, a background setting instruction can be received to obtain background parameters corresponding to the background setting instruction, wherein the background parameters include layer parameters of at least one layer; then at least one layer can be created, and the layer can be edited according to the corresponding layer parameters to generate a corresponding background image, and then the background image can be set as the background of the input method keyboard; thereby, a background image can be automatically generated according to user-defined parameters and the background image can be set as the background of the input method keyboard, and a picture that meets user needs can be set as the background of the input method keyboard, thereby improving the efficiency of information setting.

[0069] The technical solution of the embodiment of the present invention is described below by taking the case where the background parameters corresponding to the background setting instruction include background parameters of a picture element as an example.

[0070] Reference Figure 3 , shows a flow chart of steps of an optional embodiment of an information setting method of the present invention; the details are as follows:

[0071] Step 302: Receive a background setting instruction.

[0072] The user can configure each image element according to his / her own needs in the background setting interface and then perform the background setting operation; correspondingly, the input method can receive the corresponding background setting instruction, and then set the input method keyboard background according to the background setting instruction, which may include steps 304-310.

[0073] Step 304: Obtain background parameters corresponding to the background setting instruction.

[0074] After receiving the background setting instruction, for the configured picture element, the background parameter corresponding to the configuration item selected by the user can be obtained, and the identifier of the corresponding picture element can be added to the background parameter to obtain the layer parameter corresponding to the picture element; for the unconfigured picture element, the default background parameter corresponding to the picture element and the identifier corresponding to the default background parameter can be obtained to obtain the layer parameter corresponding to the picture element. Then, according to each layer parameter and the corresponding identifier, the background parameter corresponding to the background setting instruction is determined, and the background parameter can include the layer parameter of at least one layer.

[0075] Step 306: If the background parameters include layer parameters of a layer, create a layer.

[0076] Step 308: Fill the layer with color according to the color parameters to generate a background image.

[0077] In an embodiment of the present invention, if the user only configures the background picture element, the background parameters include layer parameters of a layer, and the layer may refer to the layer corresponding to the background picture element, and the layer parameters may include color parameters; at this time, a layer can be created, and then the layer can be filled with color according to the color parameter to obtain a layer of the corresponding color (i.e., the edited layer); then the edited layer is saved as a picture, and the picture is used as the background picture.

[0078] When the user wants to set a solid color image as the background of the input method keyboard, a configuration item of one color will be selected. When the user wants to set a gradient image as the background of the input method keyboard, multiple color configuration items will be selected from the configuration items of the background image element. Therefore, the step of filling the layer with color according to the color parameter to generate the background image may include the following sub-steps 22-28:

[0079] Sub-step 22: Determine the corresponding number of colors according to the color parameters.

[0080] Sub-step 24: If the number of colors is one, fill the layer with a color corresponding to the color parameter to generate a pure color image.

[0081] Sub-step 26: If the color information corresponds to multiple colors, fill the layer with multiple colors corresponding to the color parameters to generate a gradient image.

[0082] Sub-step 28: determining the solid color image or gradient image as the background image.

[0083] Among them, when the user wants to set the gradient picture as the background of the input method keyboard, the gradient type corresponding to the gradient picture can also be set, so the layer parameters can also include gradient type parameters, and the gradient type parameters can be gradient type parameters and gradient attribute parameters. The gradient attribute parameters are parameters of the attributes corresponding to the gradient type. For example, if the gradient type is an angle gradient, the corresponding attributes may include the gradient angle, etc. Of course, the user may not select the configuration item corresponding to the gradient type. At this time, the gradient type parameter may be a default gradient type parameter, and the embodiment of the present invention does not limit this. Therefore, the step of using multiple colors corresponding to the color parameters to fill the layer with colors and generate a gradient picture may include: using multiple colors corresponding to the color parameters, filling the layer with colors according to the gradient type parameters, and generating a gradient picture.

[0084] Step 310: Set the background image as the background of the input method keyboard.

[0085] Then you can set the gradient image or solid color image as the background of the input method keyboard.

[0086] In summary, in an embodiment of the present invention, a background setting instruction can be received, and then background parameters corresponding to the background setting instruction can be obtained, a corresponding background picture can be generated based on the background parameters, and then the background picture can be set as the background of the input method keyboard; furthermore, a background picture can be automatically generated according to user-defined parameters and the background picture can be set as the background of the input method keyboard, so that a picture that meets user needs can be set as the background of the input method keyboard, thereby improving the efficiency of information setting.

[0087] Secondly, in an embodiment of the present invention, if the user configures a background image element, the layer parameters of a layer can be obtained. At this time, at least one layer can be created, and then the corresponding number of colors can be determined based on the color parameters; if the number of colors is one, the layer is filled with a color corresponding to the color parameter to generate a solid color image; if the number of colors corresponding to the color information is multiple, the layer is filled with multiple colors corresponding to the color parameters to generate a gradient image; the solid color image or the gradient image is determined as the background image; and a solid color background image or a gradient background image can be generated to meet the personalized needs for the background color, increase the diversity of the background image, and thus improve the efficiency of information setting.

[0088] Furthermore, if the user selects multiple color configuration items in the color dimension for the background image element, and selects the configuration items in the gradient type dimension, the layer parameters may also include color parameters and gradient type parameters, and then multiple colors corresponding to the color parameters may be used to fill the layer with colors according to the gradient type parameters to generate a gradient image; thereby generating a background image that meets the user's gradient needs, meets the user's personalized needs for gradient methods, and increases the diversity of background images, thereby improving the efficiency of information setting.

[0089] The technical solution of the embodiment of the present invention is described below by taking the background parameters corresponding to the background setting instruction including background parameters of multiple picture elements as an example.

[0090] Reference Figure 4 , shows a flowchart of another optional embodiment of the information setting method of the present invention, which may specifically include the following steps:

[0091] Step 402: Receive a background setting instruction.

[0092] This step is similar to the above step 302 and will not be described again here.

[0093] Step 404: Obtain background parameters corresponding to the background setting instruction.

[0094] This step is similar to the above step 304 and will not be described again here.

[0095] Step 406: If the background parameters include layer parameters of multiple layers, create multiple layers; wherein the layers include a first layer and at least one second layer, and the layer parameters of the first layer include color parameters.

[0096] In an embodiment of the present invention, if the user configures multiple image elements, the background parameters include layer parameters of multiple layers. At this time, multiple layers can be created, and then each layer can be edited according to the corresponding layer parameters to obtain the corresponding edited layer (refer to steps 408-410), and then the edited layers are superimposed to generate a background image (refer to step 412).

[0097] When the background parameters include layer parameters of multiple layers, the layers may include layers corresponding to background picture elements and layers of at least one other picture element; therefore, in an example of the present invention, a first layer and at least one second layer may be created, the first layer may refer to a layer corresponding to a background picture element, and the second layer may include layers corresponding to other picture elements, such as a layer corresponding to a pattern picture element, a layer corresponding to a text picture element, etc., which is not limited in the embodiment of the present invention; in addition, the embodiment of the present invention does not limit the number of the second layers. Correspondingly, the layer parameters of the multiple layers may include layer parameters of the first layer and layer parameters of at least one second layer.

[0098] Step 408: Fill the first layer with color according to the color parameter to obtain a first edited layer.

[0099] In the embodiment of the present invention, the layer parameters of the first layer may include color parameters. Therefore, after the first layer is created, the first layer may be filled with color according to the color parameters to obtain a first edited layer. The following sub-steps 42-48 may be included:

[0100] Sub-step 42: Determine the corresponding color quantity according to the color parameter.

[0101] Sub-step 44: If the number of colors is one, fill the first layer with a color corresponding to the color parameter to generate a pure color layer.

[0102] Sub-step 46: If the color information corresponds to a plurality of colors, the plurality of colors corresponding to the color parameters are used to fill the first layer with colors to generate a gradient layer.

[0103] Sub-step 48: determining the solid color layer or gradient layer as the first edited layer.

[0104] Here, sub-steps 42-48 are similar to the above sub-steps 22-28 and will not be described in detail.

[0105] Among them, the step of filling the first layer with multiple colors corresponding to the color parameters to generate a gradient layer may include: filling the first layer with multiple colors corresponding to the color parameters according to the gradient type parameters to generate a gradient layer.

[0106] In an example of the present invention, when the user configures configuration items of color dimension and configuration items of gradient type dimension for the background image element, the layer parameters of the first layer may include color parameters and gradient type parameters corresponding to the configuration items selected by the user; when the user does not configure configuration items of color dimension and configuration items of gradient type dimension for the background image element, the layer parameters of the first layer may be default color parameters and gradient type parameters; when the user only configures configuration items of color dimension for the background image element, the layer parameters of the first layer may include color parameters corresponding to the configuration items selected by the user, or color parameters and default gradient type parameters corresponding to the configuration items selected by the user.

[0107] Step 410: Edit the second layer according to corresponding layer parameters to obtain a second edited layer.

[0108] In an embodiment of the present invention, after the second layer is created, the second layer can be edited using corresponding layer parameters for each second layer to obtain a second edited layer; wherein, when the second layer corresponds to a layer of different picture elements, the method of editing the second layer is also different; the details are as follows.

[0109] In an embodiment of the present invention, the background setting interface may also provide multiple dimensions of configuration for the pattern image element, such as pattern selection dimension and pattern attribute dimension. The pattern selection dimension may include multiple categories, such as selecting a category from the background library of the input method keyboard background, selecting a category from the pattern of the terminal local album, and selecting a category from the server; the pattern attribute dimension may include multiple categories, such as the pattern fill color category, the pattern fill color corresponding to the gradient type category, the pattern line color category, the pattern position category, etc. Among them, for each category of the pattern attribute dimension, multiple configuration items may be provided, such as the pattern fill color category and the pattern line color category may both provide various RGB color configuration items, the pattern fill color corresponding to the gradient type category may provide various gradient type configuration items, and the pattern position category may provide multiple position (relative to the position of the corresponding layer) configurations such as the upper left corner, the lower right corner, the center, etc. Among them, for the position type of pattern, the background setting interface can also provide a preview interface for the input method keyboard background, so that users can move and scale the pattern in the input method keyboard background preview interface to configure the pattern position; in addition, the preview interface of the input method keyboard background can also facilitate users to preview the effect of the input method keyboard background setting after performing the background setting operation.

[0110] If the second layer is a layer corresponding to a pattern picture element, the layer parameters of the second layer may include pattern parameters, and the pattern parameters may include a pattern storage address and pattern attribute parameters; then the second layer may be edited according to the layer parameters to obtain a second edited layer, which may include the following sub-steps 62-64:

[0111] Sub-step 62, obtaining a corresponding pattern according to the pattern storage address;

[0112] Sub-step 64: adding the pattern to the second layer, and editing the pattern according to the pattern attribute parameters to obtain a second edited layer.

[0113] Therefore, in the embodiment of the present invention, the pattern storage address can be the address of the pattern in the background library of the input method keyboard background, or the address of the pattern in the local photo album of the terminal, or of course the link address of the pattern in the server, and the embodiment of the present invention does not limit this. The pattern attribute parameters can include multiple types, such as the fill color parameter of the pattern, the gradient type parameter of the fill color of the pattern, the line color parameter of the pattern, the position parameter of the pattern, etc., and the embodiment of the present invention does not limit this.

[0114] In an embodiment of the present invention, the corresponding pattern can be obtained based on the pattern storage address, and then the pattern can be added to the second layer; then, on the second layer, the style of the pattern can be edited based on the pattern attribute parameters, such as setting the style of the pattern, for example, filling the pattern with a color, setting the color of the pattern lines, adjusting the position of the pattern on the created layer, etc., and the embodiment of the present invention does not limit this; and then the corresponding second edited layer can be obtained.

[0115] In an optional embodiment of the present invention, a pattern selection dimension provided for a pattern picture element in the background setting interface may provide a pattern drawing entry, and a user may enter the drawing entry to draw a desired image. Therefore, if the second layer is a layer corresponding to the pattern picture element, the layer parameters of the second layer may include pattern parameters, and the pattern parameters may include pattern drawing parameters and pattern attribute parameters; and then the second layer may be edited according to the layer parameters to obtain a second edited layer, which may include the following sub-steps 82-84:

[0116] Sub-step 82: drawing a corresponding pattern on the second layer according to the pattern drawing parameters.

[0117] Sub-step 84: edit the pattern according to the pattern attribute parameters to obtain a second edited layer.

[0118] In an embodiment of the present invention, for the second layer corresponding to the pattern image element, pattern drawing parameters and pattern attribute parameters can be obtained, and then the corresponding pattern can be drawn on the second layer according to the pattern drawing parameters, and then the pattern can be edited according to the pattern attribute parameters to obtain a second edited layer; the specific details are similar to the above-mentioned sub-step 84 and will not be repeated here.

[0119] Of course, the pattern parameters may also include: pattern storage address, pattern drawing parameters and pattern attribute parameters, so that the above sub-steps 62, 82 and 84 can be executed; wherein, the embodiment of the present invention does not limit the execution order of sub-steps 62 and 82.

[0120] In an embodiment of the present invention, the background setting interface may also provide multiple dimensions of configuration for the text image element, such as text selection dimension and text attribute dimension. The text selection dimension may include multiple categories, such as selecting a category from the background library of the input method keyboard background, selecting a category from other local folders of the terminal, and selecting a category from the server; the text attribute dimension may include multiple categories, such as the text fill color category, the text fill color corresponding to the gradient type category, the text line color category, the text font category, the text font size category, the text position category, etc. Among them, for each category of the text attribute dimension, multiple configuration items may be provided, such as the text fill color category and the text line color category may provide various RGB color configuration items, the text fill color corresponding to the gradient type category may provide various gradient type configuration items, the text font category may provide various font configuration items, the text font size category may provide various font size configuration items, and the text position category may be configured through multiple positions (relative to the position of the corresponding layer) such as the upper left corner, the lower right corner, the center, etc. Among them, for the text position type, the background setting interface can also provide a preview interface for the input method keyboard background, so that users can move and scale the text in the input method keyboard background preview interface to configure the text position; in addition, the preview interface of the input method keyboard background can also facilitate users to preview the effect of the input method keyboard background setting after performing the background setting operation.

[0121] If the second layer is a layer corresponding to a text picture element, the layer parameters of the second layer may include text parameters, and the text parameters may include a text storage address and text attribute parameters; and then the second layer may be edited according to the text parameters to obtain a second edited layer, which may include the following sub-steps S2-S4:

[0122] Sub-step S2: acquiring the corresponding text according to the text storage address;

[0123] Sub-step S4: adding the text to the second layer, and editing the text according to the text attribute parameters to obtain a second edited layer.

[0124] Therefore, in the embodiment of the present invention, the text storage address can be the address of the text in the background library of the input method keyboard background, or the address of the text in other local folders of the terminal, and of course, it can also be the link address of the text in the server, and the embodiment of the present invention does not limit this. The text attribute parameters can include multiple parameters, such as the fill color parameters of the text, the gradient type parameters of the fill color of the text, the line color parameters of the text, the font parameters, the font size parameters and the position parameters of the text, etc., and the embodiment of the present invention does not limit this. In the embodiment of the present invention, the corresponding text can be obtained according to the text storage address, and then the text can be added to the second layer; then, on the second layer, the style of the text can be edited according to the text attribute parameters, such as filling the text with color, setting the color of the text line, adjusting the position of the text on the created layer, etc., and the embodiment of the present invention does not limit this; and then the corresponding second edited layer can be obtained.

[0125] In an embodiment of the present invention, the second edited layer may include only at least one second edited layer generated according to the layer parameters corresponding to the pattern picture element; it may also include only at least one second edited layer generated according to the layer parameters corresponding to the text picture element; it may also include at least one second edited layer generated according to the layer parameters corresponding to the pattern picture element and at least one second edited layer generated according to the layer parameters corresponding to the text picture element; the embodiment of the present invention is not limited to this.

[0126] Then, the edited layers can be superimposed to generate a background image, as shown in step 412:

[0127] Step 412: Overlay the second edited layer on the first edited layer to generate a background image.

[0128] In an embodiment of the present invention, the first edited layer can be used as the bottom layer. If there is only one second edited layer, the second edited layer can be used as the top layer, and then the second edited layer is superimposed on the first edited layer to generate a background image. If there are multiple second edited layers, the superposition order of each second edited layer can be determined according to the set rules. One of them can be used as the top layer, and the others can be used as the middle layer. Then the middle layer is superimposed on the first edited layer, and the top layer is superimposed on the middle layer to generate a background image. Among them, the preset rule can be set according to the demand, and it can be a rule that the previous second edited layer does not cover the next second edited layer. The embodiment of the present invention is not limited to multiple times.

[0129] Step 414: Set the background image as the background of the input method keyboard.

[0130] Then you can set the background image generated by superimposing the various layers as the background of the input method keyboard.

[0131] In summary, in the embodiments of the present invention, a background setting instruction can be received to obtain background parameters corresponding to the background setting instruction, wherein the background parameters include layer parameters of at least one layer; then at least one layer can be created, and the layer can be edited according to the corresponding layer parameters to generate a corresponding background image, and then the background image can be set as the background of the input method keyboard; thereby, a background image can be automatically generated according to user-defined parameters and the background image can be set as the background of the input method keyboard, and a picture that meets user needs can be set as the background of the input method keyboard, thereby improving the efficiency of information setting.

[0132] Secondly, in an embodiment of the present invention, if the user configures other picture elements, the layer parameters of multiple layers can be obtained. At this time, multiple layers are created, and then each layer is edited according to the corresponding layer parameters to obtain the corresponding edited layers; the edited layers are superimposed to generate a background picture; and then the picture elements that the user meets can be synthesized into a background picture, thereby meeting the personalized needs for different picture elements, and also increasing the diversity of background pictures, thereby improving the efficiency of information setting.

[0133] Again, in an embodiment of the present invention, the layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, the pattern attribute parameters include at least one of the following: color parameters, line parameters and position parameters; the second layer is edited according to the corresponding layer parameters to obtain the second edited layer, including: drawing the corresponding pattern on the second layer according to the pattern drawing parameters; editing the pattern according to the pattern attribute parameters to obtain the second edited layer. Then, a background image can be generated according to the pattern drawn by the user, thereby meeting the personalized needs for pattern image elements, and increasing the diversity of background images, thereby improving the efficiency of information setting.

[0134] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0135] Reference Figure 5 , shows a structural block diagram of an information setting device embodiment of the present invention, which may specifically include the following modules:

[0136] An acquisition module 502 is used to acquire corresponding background parameters according to the received background setting instruction, wherein the background parameters include layer parameters of at least one layer;

[0137] A generating module 504, used to create at least one layer, edit the layer according to corresponding layer parameters, and generate a corresponding background image;

[0138] The setting module 506 is used to set the background image as the background of the input method keyboard.

[0139] Reference Figure 6 , showing a structural block diagram of an optional embodiment of an information setting device of the present invention.

[0140] In an optional embodiment of the present invention, the background parameters include layer parameters of a layer, the layer parameters include color parameters, and the generation module 504 includes: an image generation submodule 5042, which is used to fill the layer with color according to the color parameters to generate a background image.

[0141] In an optional embodiment of the present invention, the picture generation submodule 5042 includes:

[0142] A quantity determination unit 50422, used to determine the corresponding color quantity according to the color parameter;

[0143] A pure color image generating unit 50424 is configured to fill the layer with a color corresponding to the color parameter to generate a pure color image if the number of colors is one;

[0144] A gradient image generating unit 50426 is configured to fill the layer with the multiple colors corresponding to the color parameters to generate a gradient image if the number of colors corresponding to the color information is multiple;

[0145] The background image generation unit 50428 is used to determine the solid color image or gradient image as the background image.

[0146] In an optional embodiment of the present invention, the layer parameters also include gradient type parameters, and the gradient image generation unit 50426 is used to use multiple colors corresponding to the color parameters to fill the layer with colors according to the gradient type parameters to generate a gradient image.

[0147] In an optional embodiment of the present invention, the background parameters include layer parameters of multiple layers, the layers include multiple layers, and the generating module 504 includes:

[0148] The layer editing submodule 5044 is used to edit each layer according to the corresponding layer parameters to obtain the corresponding edited layer;

[0149] The layer overlay submodule 5046 is used to overlay the edited layers to generate a background image.

[0150] In an optional embodiment of the present invention, the layer includes a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; the layer editing submodule 5044 includes:

[0151] A first layer editing unit 50442, used to fill the first layer with color according to the color parameter to obtain a first edited layer;

[0152] The second layer editing unit 50444 is used to edit the second layer according to the corresponding layer parameters to obtain a second edited layer.

[0153] In an optional embodiment of the present invention, the layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and pattern attribute parameters, and the pattern attribute parameters include at least one of the following: color parameters, line parameters, and position parameters;

[0154] The second layer editing unit 50444 is used to obtain the corresponding pattern according to the pattern storage address; add the pattern to the second layer, and edit the pattern according to the pattern attribute parameters to obtain a second edited layer.

[0155] In an optional embodiment of the present invention, the layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, and the pattern attribute parameters include at least one of the following: color parameters, line parameters, and position parameters;

[0156] The second layer editing unit 50444 is used to draw a corresponding pattern on the second layer according to the pattern drawing parameters; and edit the pattern according to the pattern attribute parameters to obtain a second edited layer.

[0157] In an optional embodiment of the present invention, the layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, and the text attribute parameters include at least one of the following: color parameters, font parameters, font size parameters, and position parameters;

[0158] The second layer editing unit 50444 is used to obtain the corresponding text according to the text storage address; add the text to the second layer, and edit the text according to the text attribute parameters to obtain a second edited layer.

[0159] In an optional embodiment of the present invention, the layer overlay submodule 5046 is used to overlay the second edited layer on the first edited layer to generate a background image.

[0160] In an embodiment of the present invention, a background setting instruction can be received to obtain background parameters corresponding to the background setting instruction, wherein the background parameters include layer parameters of at least one layer; then at least one layer can be created, and the layer can be edited according to the corresponding layer parameters to generate a corresponding background image, and then the background image can be set as the background of the input method keyboard; thereby, a background image can be automatically generated according to user-defined parameters and the background image can be set as the background of the input method keyboard, and a picture that meets user needs can be set as the background of the input method keyboard, thereby improving the efficiency of information setting.

[0161] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0162] Figure 7 1 is a block diagram of an electronic device 700 for information setting according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0163] Reference Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0164] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0165] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0166] The power component 706 provides power to the various components of the electronic device 700. The power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700.

[0167] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0168] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0169] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0170] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of contact between the user and the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0171] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 714 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 714 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0172] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0173] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0174] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to execute an information setting method, the method comprising: obtaining corresponding background parameters according to a received background setting instruction, wherein the background parameters include layer parameters of at least one layer; creating at least one layer, editing the layer according to the corresponding layer parameters, and generating a corresponding background image; and setting the background image as the background of an input method keyboard.

[0175] Optionally, the background parameters include layer parameters of a layer, the layer parameters include color parameters, and editing the layer according to the corresponding layer parameters to generate a background image includes: filling the layer with color according to the color parameters to generate the background image.

[0176] Optionally, filling the layer with color according to the color parameters to generate a background image includes: determining the corresponding number of colors according to the color parameters; if the number of colors is one, filling the layer with the color corresponding to the color parameter to generate a solid color image; if the number of colors corresponding to the color information is multiple, filling the layer with multiple colors corresponding to the color parameters to generate a gradient image; and determining the solid color image or the gradient image as the background image.

[0177] Optionally, the layer parameters also include gradient type parameters, and the step of filling the layer with multiple colors corresponding to the color parameters to generate a gradient image includes: filling the layer with multiple colors corresponding to the color parameters according to the gradient type parameters to generate a gradient image.

[0178] Optionally, the background parameters include layer parameters of multiple layers, and the layers include multiple layers. Editing the layers according to corresponding layer parameters to generate a background image includes: editing each layer according to the corresponding layer parameters to obtain a corresponding edited layer; and superimposing each edited layer to generate a background image.

[0179] Optionally, the layers include a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; and editing each layer according to the corresponding layer parameters to obtain the corresponding edited layer includes: filling the first layer with color according to the color parameters to obtain the first edited layer; and editing the second layer according to the corresponding layer parameters to obtain the second edited layer.

[0180] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and a pattern attribute parameter, the pattern attribute parameter includes at least one of the following: a color parameter, a line parameter, and a position parameter; the editing the second layer according to the corresponding layer parameters to obtain the second edited layer includes: obtaining a corresponding pattern according to the pattern storage address;

[0181] The pattern is added to the second layer, and the pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

[0182] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, the pattern attribute parameters include at least one of the following: color parameters, line parameters and position parameters; editing the second layer according to the corresponding layer parameters to obtain the second edited layer includes: drawing a corresponding pattern on the second layer according to the pattern drawing parameters; editing the pattern according to the pattern attribute parameters to obtain the second edited layer.

[0183] Optionally, the layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, the text attribute parameters include at least one of the following: color parameters, font parameters, font size parameters and position parameters; editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: obtaining corresponding text according to the text storage address; adding the text to the second layer, and editing the text according to the text attribute parameters to obtain a second edited layer.

[0184] Optionally, superimposing the edited layers to generate a background image includes: superimposing the second edited layer on the first edited layer to generate a background image.

[0185] Figure 8: is a structural diagram of an electronic device 800 for information setting according to another exemplary embodiment of the present invention. The electronic device 800 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 may be temporary storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 822 may be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server.

[0186] The server may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, one or more keyboards 856, and / or one or more operating systems 841, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, etc.

[0187] An electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: obtaining corresponding background parameters according to a received background setting instruction, wherein the background parameters include layer parameters of at least one layer; creating at least one layer, editing the layer according to the corresponding layer parameters, and generating a corresponding background image; and setting the background image as the background of an input method keyboard.

[0188] Optionally, the background parameters include layer parameters of a layer, the layer parameters include color parameters, and editing the layer according to the corresponding layer parameters to generate a background image includes: filling the layer with color according to the color parameters to generate the background image.

[0189] Optionally, filling the layer with color according to the color parameters to generate a background image includes: determining the corresponding number of colors according to the color parameters; if the number of colors is one, filling the layer with the color corresponding to the color parameter to generate a solid color image; if the number of colors corresponding to the color information is multiple, filling the layer with multiple colors corresponding to the color parameters to generate a gradient image; and determining the solid color image or the gradient image as the background image.

[0190] Optionally, the layer parameters also include gradient type parameters, and the step of filling the layer with multiple colors corresponding to the color parameters to generate a gradient image includes: filling the layer with multiple colors corresponding to the color parameters according to the gradient type parameters to generate a gradient image.

[0191] Optionally, the background parameters include layer parameters of multiple layers, and the layers include multiple layers. Editing the layers according to corresponding layer parameters to generate a background image includes: editing each layer according to the corresponding layer parameters to obtain a corresponding edited layer; and superimposing each edited layer to generate a background image.

[0192] Optionally, the layers include a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; and editing each layer according to the corresponding layer parameters to obtain the corresponding edited layer includes: filling the first layer with color according to the color parameters to obtain the first edited layer; and editing the second layer according to the corresponding layer parameters to obtain the second edited layer.

[0193] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and a pattern attribute parameter, the pattern attribute parameter includes at least one of the following: a color parameter, a line parameter, and a position parameter; the editing the second layer according to the corresponding layer parameters to obtain the second edited layer includes: obtaining a corresponding pattern according to the pattern storage address;

[0194] The pattern is added to the second layer, and the pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

[0195] Optionally, the layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, the pattern attribute parameters include at least one of the following: color parameters, line parameters and position parameters; editing the second layer according to the corresponding layer parameters to obtain the second edited layer includes: drawing a corresponding pattern on the second layer according to the pattern drawing parameters; editing the pattern according to the pattern attribute parameters to obtain the second edited layer.

[0196] Optionally, the layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, the text attribute parameters include at least one of the following: color parameters, font parameters, font size parameters and position parameters; editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: obtaining corresponding text according to the text storage address; adding the text to the second layer, and editing the text according to the text attribute parameters to obtain a second edited layer.

[0197] Optionally, superimposing the edited layers to generate a background image includes: superimposing the second edited layer on the first edited layer to generate a background image.

[0198] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0199] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0200] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0201] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0202] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0203] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0204] The above is a detailed introduction to an information setting method, an information setting device and an electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An information setting method, characterized in that: include: According to the received background setting instruction, corresponding background parameters are acquired, wherein the background parameters include layer parameters of at least one layer; Creating at least one layer, editing the layer according to corresponding layer parameters, and generating a corresponding background image; Setting the background image as the background of the input method keyboard; The background parameters include layer parameters of multiple layers, the layers include multiple layers, and the layers are edited according to the corresponding layer parameters to generate corresponding background images, including: Edit each layer according to the corresponding layer parameters to obtain the corresponding edited layer; Overlay each edited layer to generate the corresponding background image; The layers include a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; The editing of each layer according to the corresponding layer parameters to obtain the corresponding edited layer includes: Filling the first layer with color according to the color parameter to obtain a first edited layer; Editing the second layer according to corresponding layer parameters to obtain a second edited layer; The layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and pattern attribute parameters, and the pattern attribute parameters include at least one of the following: color parameters, line parameters, and position parameters; The step of editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: According to the pattern storage address, obtaining a corresponding pattern; The pattern is added to the second layer, and the pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

2. The method according to claim 1, characterized in that The background parameters include layer parameters of a layer, and the layer parameters include color parameters. The step of editing the layer according to corresponding layer parameters to generate a background image includes: The layer is filled with color according to the color parameter to generate a background image.

3. The method according to claim 2, characterized in that The step of filling the layer with color according to the color parameter to generate a background image includes: According to the color parameters, determining the corresponding number of colors; If the number of colors is one, fill the layer with a color corresponding to the color parameter to generate a pure color image; If the color information corresponds to multiple colors, the layer is filled with multiple colors corresponding to the color parameters to generate a gradient image; The solid color picture or the gradient picture is determined as the background picture.

4. The method according to claim 3, characterized in that The layer parameters also include gradient type parameters, and the layer is filled with multiple colors corresponding to the color parameters to generate a gradient image, including: The layer is filled with colors using multiple colors corresponding to the color parameters according to the gradient type parameters to generate a gradient image.

5. The method according to claim 1, characterized in that The layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, and the pattern attribute parameters include at least one of the following: color parameters, line parameters, and position parameters; The step of editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: Drawing a corresponding pattern on the second layer according to the pattern drawing parameters; The pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

6. The method according to claim 5, characterized in that The layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, and the text attribute parameters include at least one of the following: a color parameter, a font parameter, a font size parameter, and a position parameter; The step of editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: According to the text storage address, obtain the corresponding text; The text is added to the second layer, and the text is edited according to the text attribute parameters to obtain a second edited layer.

7. The method according to any one of claims 5-6, characterized in that: The step of superimposing the edited layers to generate a background image includes: The second edited layer is superimposed on the first edited layer to generate a background image.

8. An information setting device, characterized in that: include: An acquisition module, used for acquiring corresponding background parameters according to the received background setting instruction, wherein the background parameters include layer parameters of at least one layer; A generation module, used to create at least one layer, edit the layer according to corresponding layer parameters, and generate a corresponding background image; A setting module, used to set the background image as the background of the input method keyboard; Wherein, the background parameters include layer parameters of multiple layers, and the layers include multiple, The generation module comprises: The layer editing submodule is used to edit each layer according to the corresponding layer parameters to obtain the corresponding edited layer; The layer overlay submodule is used to overlay each edited layer to generate a corresponding background image; The layers include a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; The layer editing submodule includes: A first layer editing unit, used for filling the first layer with color according to a color parameter to obtain a first edited layer; A second layer editing unit, used for editing the second layer according to corresponding layer parameters to obtain a second edited layer; The layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and pattern attribute parameters, and the pattern attribute parameters include at least one of the following: color parameters, line parameters, and position parameters; The second layer editing unit is used to obtain the corresponding pattern according to the pattern storage address; add the pattern to the second layer, and edit the pattern according to the pattern attribute parameters to obtain a second edited layer.

9. The device according to claim 8, characterized in that The background parameters include layer parameters of a layer, and the layer parameters include color parameters. The generation module comprises: The picture generation submodule is used to fill the layer with color according to the color parameters to generate a background picture.

10. The device according to claim 9, characterized in that The picture generation submodule includes: A quantity determination unit, used to determine the corresponding color quantity according to the color parameter; A pure color image generating unit, configured to fill the layer with a color corresponding to the color parameter to generate a pure color image if the number of colors is one; A gradient image generating unit, configured to fill the layer with the multiple colors corresponding to the color parameters to generate a gradient image if the number of colors corresponding to the color information is multiple; The background image generating unit is used to determine the solid color image or the gradient image as the background image.

11. The device according to claim 10, characterized in that The layer parameters also include gradient type parameters. The gradient image generation unit is used to use multiple colors corresponding to the color parameters to fill the layer with colors according to the gradient type parameters to generate a gradient image.

12. The device according to claim 8, characterized in that The layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, and the pattern attribute parameters include at least one of the following: color parameters, line parameters, and position parameters; The second layer editing unit is used to draw a corresponding pattern on the second layer according to the pattern drawing parameters; The pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

13. The device according to claim 12, characterized in that The layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, and the text attribute parameters include at least one of the following: a color parameter, a font parameter, a font size parameter, and a position parameter; The second layer editing unit is used to obtain the corresponding text according to the text storage address; add the text to the second layer, and edit the text according to the text attribute parameters to obtain a second edited layer.

14. The device according to any one of claims 12-13, characterized in that: The layer overlay submodule is used to overlay the second edited layer on the first edited layer to generate a background image.

15. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the information setting method as described in any one of method claims 1-7.

16. An electronic device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: According to the received background setting instruction, corresponding background parameters are acquired, wherein the background parameters include layer parameters of at least one layer; Creating at least one layer, editing the layer according to corresponding layer parameters, and generating a corresponding background image; Setting the background image as the background of the input method keyboard; Wherein, the background parameters include layer parameters of multiple layers, and the layers include multiple, The editing of the layer according to the corresponding layer parameters to generate a corresponding background image includes: Edit each layer according to the corresponding layer parameters to obtain the corresponding edited layer; Overlay each edited layer to generate the corresponding background image; The layers include a first layer and at least one second layer, and the layer parameters corresponding to the first layer include color information; The editing of each layer according to the corresponding layer parameters to obtain the corresponding edited layer includes: Filling the first layer with color according to the color parameter to obtain a first edited layer; Editing the second layer according to corresponding layer parameters to obtain a second edited layer; The layer parameters of the second layer include pattern parameters, the pattern parameters include a pattern storage address and pattern attribute parameters, and the pattern attribute parameters include at least one of the following: color parameters, line parameters, and position parameters; The step of editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: According to the pattern storage address, obtaining a corresponding pattern; The pattern is added to the second layer, and the pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

17. The electronic device according to claim 16, characterized in that: The background parameters include layer parameters of a layer, and the layer parameters include color parameters. The step of editing the layer according to corresponding layer parameters to generate a background image includes: The layer is filled with color according to the color parameter to generate a background image.

18. The electronic device according to claim 17, characterized in that: The step of filling the layer with color according to the color parameter to generate a background image includes: According to the color parameters, determining the corresponding number of colors; If the number of colors is one, fill the layer with a color corresponding to the color parameter to generate a pure color image; If the color information corresponds to multiple colors, the layer is filled with multiple colors corresponding to the color parameters to generate a gradient image; The solid color picture or the gradient picture is determined as the background picture.

19. The electronic device according to claim 18, characterized in that: The layer parameters also include gradient type parameters, and the layer is filled with multiple colors corresponding to the color parameters to generate a gradient image, including: The layer is filled with colors using multiple colors corresponding to the color parameters according to the gradient type parameters to generate a gradient image.

20. The electronic device according to claim 16, characterized in that: The layer parameters of the second layer include pattern parameters, the pattern parameters include pattern drawing parameters and pattern attribute parameters, and the pattern attribute parameters include at least one of the following: color parameters, line parameters, and position parameters; The step of editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: Drawing a corresponding pattern on the second layer according to the pattern drawing parameters; The pattern is edited according to the pattern attribute parameters to obtain a second edited layer.

21. The electronic device according to claim 20, characterized in that: The layer parameters of the second layer include text parameters, the text parameters include a text storage address and text attribute parameters, and the text attribute parameters include at least one of the following: a color parameter, a font parameter, a font size parameter, and a position parameter; The step of editing the second layer according to the corresponding layer parameters to obtain a second edited layer includes: According to the text storage address, obtain the corresponding text; The text is added to the second layer, and the text is edited according to the text attribute parameters to obtain a second edited layer.

22. The electronic device according to any one of claims 20-21, characterized in that: The step of superimposing the edited layers to generate a background image includes: The second edited layer is superimposed on the first edited layer to generate a background image.

Citation Information

Patent Citations

  • User interface changing method and system

    CN101021790A

  • Method and device for adjusting background image colour parameter

    CN101071555A

  • Generation method and device thereof for user interface

    CN102156999A

  • Method and device for processing picture data

    CN103903587A

  • System and method for adjusting background color of user interface

    CN104679380A