CN112084750A - Sticker processing method and device, electronic equipment and storage medium - Google Patents

Sticker processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112084750A
CN112084750A CN201910515119.5A CN201910515119A CN112084750A CN 112084750 A CN112084750 A CN 112084750A CN 201910515119 A CN201910515119 A CN 201910515119A CN 112084750 A CN112084750 A CN 112084750A
Authority
CN
China
Prior art keywords
sticker
target
date
template
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910515119.5A
Other languages
Chinese (zh)
Other versions
CN112084750B (en
Inventor
卢欣琪
郭诗雅
潘辰
蔡钰麒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Cyber Tianjin Co Ltd
Original Assignee
Tencent Cyber Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Cyber Tianjin Co Ltd filed Critical Tencent Cyber Tianjin Co Ltd
Priority to CN201910515119.5A priority Critical patent/CN112084750B/en
Publication of CN112084750A publication Critical patent/CN112084750A/en
Application granted granted Critical
Publication of CN112084750B publication Critical patent/CN112084750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application relates to the technical field of computers, in particular to a sticker processing method, a device, an electronic device and a storage medium, wherein the method comprises the steps of responding to a selection instruction aiming at a displayed sticker template, and determining a selected target sticker template, wherein the target sticker template comprises at least one editable object; acquiring attribute parameters associated with the at least one editable object in the target sticker template; calling an editing control corresponding to the at least one editable object to acquire associated data of the at least one editable object; according to the attribute parameters, the associated data of at least one editable object is drawn on the target sticker template to generate the target sticker, so that real-time associated data can be automatically acquired, the target sticker template is more intelligent, different editable objects are integrated on the target sticker template, and when the target sticker template is added and adjusted, a user only needs to operate the whole target sticker, so that the convenience of operation of the user is improved, and the efficiency is improved.

Description

Sticker processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a sticker, an electronic device, and a storage medium.
Background
With the development of computer technology, a user can record events through an electronic account log, the user can conveniently record and review the events at any time and any place, the account log usually comprises some stickers for decoration, and the user can use various stickers in the account log to increase the interestingness and the individuation of the account log.
In the prior art, different stickers are usually manually overlaid on stickers, and the content displayed in the stickers is usually static, for example, a default value set for a system is displayed every time a user adds the stickers, which is not intelligent enough and needs to be manually modified every time, and when the user needs to adjust, the overlaid stickers need to be respectively adjusted.
Disclosure of Invention
The embodiment of the application provides a sticker processing method and device, an electronic device and a storage medium, and aims to solve the problems that the sticker editing processing operation is complex and the efficiency is low in the prior art.
The embodiment of the application provides the following specific technical scheme:
one embodiment of the present application provides a sticker processing method, including:
in response to a selection instruction for a displayed sticker template, determining a selected target sticker template, wherein the target sticker template includes at least one editable object;
acquiring attribute parameters associated with the at least one editable object in the target sticker template;
calling an editing control corresponding to the at least one editable object to acquire associated data of the at least one editable object;
and drawing the associated data of the at least one editable object on the target paster template according to the attribute parameters to generate the target paster.
Another embodiment of the present application provides a sticker processing apparatus, including:
a determination module for determining a selected target sticker template in response to a selection instruction for a displayed sticker template, wherein the target sticker template includes at least one editable object;
a first obtaining module, configured to obtain an attribute parameter associated with the at least one editable object in the target sticker template;
the second obtaining module is used for calling the editing control corresponding to the at least one editable object and obtaining the associated data of the at least one editable object;
and the generating module is used for drawing the associated data of the at least one editable object on the target paster template according to the attribute parameters to generate the target paster.
Another embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the above-mentioned sticker processing methods.
Another embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of any of the above-described sticker processing methods.
In the embodiment of the application, various sticker templates are displayed, a user can select from the sticker templates, a target sticker template selected by the user is determined, attribute parameters associated with editable objects in the target sticker template are obtained, corresponding editing controls can be called, associated data of the editable objects are automatically obtained, and accordingly, the target sticker is generated on the target sticker template drawn by the associated data of the editable objects according to the attribute parameters, so that due to the fact that each editable object corresponds to the editing control, real-time associated data can be automatically obtained through the editing controls, automatic dynamic adjustment of the content on the target sticker is achieved, instead of displaying default values every time, the method is more intelligent, drawing is performed based on the target sticker template, different editable objects can be integrated, the user only needs to add the target sticker once, the finally generated target sticker is an integer, and only needs to adjust the target sticker during adjustment, the operation is not needed for multiple times, the operation is simpler, the efficiency is improved, and the use experience of the user on the paster is also improved.
Drawings
FIG. 1 is a flow chart illustrating the effect of adding date type stickers in the prior art;
FIG. 2 is a flowchart illustrating the effect of adding a schedule type sticker in the prior art;
FIG. 3 is a diagram illustrating an application architecture of a sticker processing method according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for processing a sticker in an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating the composition effect of a date sticker in an embodiment of the present application;
FIG. 6 is a diagram illustrating absolute position effects of editable objects on a date stamp in an embodiment of the application;
FIG. 7 is a diagram illustrating the effect of replacing sticker naming for date stickers in the embodiment of the present application;
FIG. 8 is a schematic diagram of a process of drawing a sticker in an embodiment of the present application;
FIG. 9 is a diagram illustrating an interface effect of an example of entering a ledger editing interface process;
FIG. 10 is a diagram illustrating an interface effect of a process of generating a date stamp in an embodiment of the present application;
FIG. 11 is a diagram illustrating an interface effect of a process of editing a date stamp in an embodiment of the present application;
FIG. 12 is a diagram illustrating the interface effect of the process of editing a calendar sticker in an embodiment of the present application;
FIG. 13 is a schematic view of a sticker processing apparatus according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For the purpose of facilitating an understanding of the embodiments of the present application, a brief introduction of several concepts is provided below:
hand account log: a kind of imitative material object note book, move to the journal form containing a large amount of decorative stickers, characters, etc. of the intelligent terminal, the hand account journal can be used alone, can also be regarded as a function of some application program to use, it is the hand account journal function to mainly aim at the application program in this embodiment of application, for example, the hand account journal based on QQ space in the QQ application program.
Application program, (Application, APP): computer programs that perform one or more specific tasks typically have a visual display that interacts with objects, such as QQ and WeChat, and may be referred to as applications.
Date paster: the embodiment of the application shows a personalized paster which can acquire current date information and support modification, and mainly comprises a calendar picture and date information.
And (5) pasting a schedule: the personalized paster mainly comprises a background picture, date information and a marked picture, wherein the date information in the schedule paster is different from the date information in the date paster, the date information in the date paster only displays a certain specific date, and the date information in the schedule paster can display all days, weeks and the like included in a certain month.
The inventor analyzes the prior art and finds that the demand of the user for personalized editing of the account log is gradually increased, and various stickers can be added in the account log for decoration, but in the prior art, the content displayed in the stickers is usually static, for example, a default value set for a system is provided, the default value is displayed every time the user adds, the user needs to manually modify every time, the real-time data cannot be automatically updated, for example, the current date information cannot be automatically updated, and the stickers in the prior art are single objects of the same type, generally, the user needs to manually superimpose and use different stickers, after superimposing different stickers, each sticker needs to be respectively adjusted if the user needs to adjust, the operation is complex, and the efficiency is low.
For example, referring to fig. 1, a flowchart of an effect of adding a date type sticker in the prior art is shown, as shown in fig. 1, in the prior art, a user needs to add a calendar sticker first, then manually superimpose a text sticker on the calendar sticker, default text content is displayed on the text sticker, the user can achieve the purpose of adding a current date in a manual account by adjusting the content, the size of a font and the rotation angle of a text, and if the size of the sticker is to be adjusted after adding, the calendar sticker and the text sticker need to be adjusted respectively, which is relatively complex in operation and is not intelligent.
For another example, referring to fig. 2, which is a flowchart illustrating an effect of adding schedule type stickers in the prior art, as shown in fig. 2, fig. 2 provides two effects of schedule type stickers in the prior art, for example, a schedule type sticker is a calendar, both the two types of schedule type stickers in the prior art only support adding static schedule type stickers, the number of days in the month cannot be automatically and dynamically adjusted according to the selected month, the corresponding week cannot be dynamically adjusted, and a user can only manually mark lines and add characters if the user wants to add a sticker that does not provide a month, which is inefficient, complicated to operate, and not intelligent enough.
In order to solve the above problem, an embodiment of the present application provides a method for processing a sticker, in which a plurality of different editable objects are combined into a sticker template, the plurality of different editable objects may also be drawn in a superimposed manner, and each editable object has a corresponding editing control, which may be used to automatically acquire associated data, and when a selection instruction is received, a target sticker template is determined in response to the selection instruction for a displayed sticker template, the target sticker template includes at least one editable object, and may acquire attribute parameters associated with the at least one editable object, and call the corresponding editing control to acquire associated data, and according to the attribute parameters, the associated data of the at least one editable object is drawn on the target sticker template to generate a target sticker, so that the associated data may be automatically acquired through the corresponding editing control, for example, the associated data such as current date information, weather and position are automatically acquired, the associated data are automatically displayed on the target sticker, manual input of a user is not needed, the operation is more intelligent, the operation is simple and more intelligent, different editable objects are drawn on one target sticker template, the finally generated target sticker is integrated, different stickers do not need to be manually overlapped by the user, adjustment can be performed on the whole target sticker during adjustment, simplicity is realized, and the efficiency of adding the sticker is also improved.
Fig. 3 is a schematic diagram of an application architecture of the sticker processing method in the embodiment of the present application, including a terminal 100 and a server 200.
Terminal 100 can be any intelligent device such as a smart phone, a tablet computer, a portable personal computer, and the like, and various APPs can be installed on terminal 100, for example, in the APP installed on terminal 100 in the embodiment of the present application, a manual account log function can be integrated, a user can use the manual account log in the APP, various stickers can be added in the manual account log, and the APP is taken as a QQ application as an example, and the manual account log function is integrated in a QQ space of the QQ application, then in the embodiment of the present application, a sticker template can be provided in the manual account log in the QQ space, the user can select the sticker template, and based on the sticker processing method in the embodiment of the present application, a target sticker is generated, and then the target sticker is displayed in the manual account log.
It should be noted that the sticker processing method in the embodiment of the present application is mainly executed by an application installed in the terminal 100, for example, the sticker template is displayed in the application, and in response to a selection instruction of a user for the sticker template, drawing is performed on the target sticker template by obtaining associated attribute parameters and associated data, so as to generate a target sticker and display the target sticker, and the user may also be supported to modify and adjust the generated target sticker.
The server 200 can provide various network services for the terminal 100, and for different applications on the terminal 100, the server 200 may be regarded as a backend server providing corresponding network services, for example, may be an instant messaging application, such as a QQ application, and the server 200 may be understood as a QQ backend server for providing a service related to the QQ, for example, in this embodiment, when a sticker is added to a manual account log in a QQ space, the server may request associated data of an editable object in the sticker from the QQ backend server, and the QQ backend server may directly return the associated data, or communicate with backend servers of other applications, acquire the associated data, and return the associated data.
The server 200 may be a server, a server cluster formed by a plurality of servers, or a cloud computing center.
The terminals 100 and the server 200 are connected via the internet to communicate with each other. Optionally, the internet described above uses standard communication techniques and/or protocols. The internet is typically the internet, but can be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), any combination of mobile, wireline or wireless networks, private or virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including Hypertext Mark-up Language (HTML), Extensible Markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
It should be noted that the application architecture diagram in the embodiment of the present application is for more clearly illustrating the technical solution in the embodiment of the present application, and does not limit the technical solution provided in the embodiment of the present application, and is not limited to the sticker service, and the technical solution provided in the embodiment of the present application is also applicable to similar problems for other application architectures and service applications. In the following embodiments of the present application, the application architecture shown in fig. 3 is taken as an example to schematically illustrate the application of the sticker processing method.
In addition, it should be noted that, in the embodiment of the present application, a hypertext markup Language (HTML) 5 (abbreviated as H5) related front-end technology may be used to implement the sticker processing method in the embodiment of the present application, the method can be applied to functional applications built based on H5 webpage environments such as QQ space, the sticker function realized in the method can be H5 embedded in an application program, compared with the current special account APP, the sticker function realized based on the APP native environment can not be reused in QQ space scenes, and the sticker processing method in the embodiment of the method, can be embedded in an H5 functional module, can be well decoupled from the existing application program version, is convenient for quick iterative update, and the size of the update package can be effectively reduced, less memory is occupied, and the user download and installation experience is better when the user downloads the update package and uses the sticker function.
Based on the foregoing embodiment, a method for processing a sticker in an embodiment of the present application is described below, and referring to fig. 4, which is a flowchart of a method for processing a sticker in an embodiment of the present application, where the method includes:
step 400: in response to a selection instruction for a displayed sticker template, a selected target sticker template is determined, wherein the target sticker template includes at least one editable object.
In the embodiment of the application, various sticker templates can be displayed on the interface, and the sticker templates can be divided according to types, such as date types, hot door types, city types and the like, and can be updated and added at any time according to user requirements.
The target sticker template comprises at least one editable object, preferably a plurality of editable objects, the plurality of editable objects can also be different types of objects, and each editable object can also be understood as a layer, so that the plurality of editable objects can be overlaid and drawn on the same target sticker template, a user does not need to manually overlay different stickers respectively, the operation is simpler, and the efficiency is higher.
Step 410: an attribute parameter associated with at least one editable object in the target sticker template is obtained.
And combining the parameter name and the parameter value of the attribute parameter of each editable object according to a preset rule. The attribute parameters are at least divided into common parameters and specific parameters, wherein the common parameters represent the attribute parameters shared by the editable objects, and the specific parameters represent the attribute parameters of the editable objects.
In the embodiment of the application, the attribute parameters are predefined for each editable object, and the attribute parameters of each editable object can be combined according to the preset rule, so that when the attribute parameter of at least one editable object in the target sticker template is obtained, the associated attribute parameter can be obtained in a regular matching manner according to the preset rule in a matching manner.
For example, the preset rule is that the common parameter is listed in front, the specific parameter is listed in back, each common parameter and the specific parameter are separated by a preset symbol, and the parameter name and the parameter value of each attribute parameter may also be connected by a preset symbol, for example, the preset symbol is "_" or "__", etc., which is not limited in the embodiment of the present application.
For example, referring to fig. 5 for a date sticker, which is a schematic diagram illustrating a composition effect of the date sticker in the embodiment of the present application, as shown in fig. 5, the date sticker may be composed of a calendar picture and three groups of text elements, i.e., a year, a month, and a day number, i.e., editable objects thereof include the calendar picture, the year, the month, and the day number.
The rule defining the attribute parameters may be:
date theme _ sticker name _ font name _ align _ alignment mode _ text type 1 attribute a _ parameter _ text type 1 attribute b _ parameter _ text type 2 attribute a _ parameter _ text type 2 attribute b _ parameter
The 'date theme' is a parameter name, the 'sticker name' connected immediately behind the 'date theme' is a parameter value of the 'date theme', the 'font' is a parameter name, the 'font name' is a parameter value of the 'font', and the like, so that correct parameter values can be obtained through regular matching parameters.
Specifically, the attribute parameters respectively for the calendar picture, year, month and day number may be defined as: 1) calendar pictures are named corresponding to the stickers of the date stickers: date theme _ slash blue circle, wherein "date theme" is the parameter name and "slash blue circle" is its parameter value; 2) common parameters: font _ aayanqmann _ color _ ffffff _ align _ center _, wherein the font is a font parameter name, the aayanqmann' is a font parameter value, and the font parameter value can support a customized personalized font, so that the sticker has stronger flexibility and meets the requirement of user personalization, the color is a color parameter name, the ffffff is a color parameter value, the align is an alignment mode parameter name, and the center is an alignment mode parameter value and represents centered alignment; common parameters may apply to each editable object, here just for the year, month and day letters. 3) Month word parameters: month _ Size _120_ letter space _ -6_ a _132_ B _140_, wherein "month" represents a specific parameter immediately after a month, "Size" is a font Size parameter name, "120" is a font Size parameter value, "letter space" is a word space parameter name, "-6" is a word space parameter value, "a" and "B" represent absolute position information, if the alignment mode is center alignment, the absolute position of each word relative to the upper left corner of the calendar picture is recorded by using a center anchor point, "a" is a parameter name of an X axis from the upper left corner, "132" is a parameter value of an X axis from the upper left corner, "B" is a parameter name of a Y axis from the upper left corner, and "140" is a parameter value of a Y axis from the upper left corner. 4) The character of day number: day _ Size _120_ letter space _ -6_ a _272_ B _194_, wherein "day" represents a specific parameter of a day number immediately behind, "Size" is a font Size parameter name, "120" is a font Size parameter value, "letter space" is a word pitch parameter name, "-6" is a word pitch parameter value, "a" and "B" represent absolute position information, if the alignment mode is centered alignment, the absolute position of each character relative to the upper left corner of the calendar picture is recorded by using a center anchor point, "a" is a parameter name of an X axis from the upper left corner, "272" is a parameter value of an X axis from the upper left corner, "B" is a parameter name of a Y axis from the upper left corner, and "194" is a parameter value of a Y axis from the upper left corner. 5) Year text parameters: year _ Size _68_ letter space _0_ a _206_ B _298, wherein "year" represents a specific parameter of a year immediately behind, "Size" is a font Size parameter name, "68" is a font Size parameter value, "letter space" is a word space parameter name, "0" is a word space parameter value, "a" and "B" represent absolute position information, if the alignment mode is centered alignment, the absolute position of each character relative to the upper left corner of the calendar picture is recorded by using a center anchor point, "a" is a parameter name of a value of an X axis from the upper left corner, "206" is a parameter value of an X axis from the upper left corner, "B" is a parameter name of a Y axis from the upper left corner, and "298" is a parameter value of a Y axis from the upper left corner. That is, for the date type sticker or the sticker containing characters, the attribute parameters may contain character style, absolute position information, etc., and further, the attribute parameters of the name, year, month and day number of the sticker may be combined together according to the rule, that is, the attribute parameters of all editable objects completing the date sticker are defined.
For convenience of understanding, the absolute position information is described below, for example, referring to fig. 6, which is a schematic diagram illustrating an absolute position effect of each editable object of the date sticker in the embodiment of the present application, as shown in fig. 6, taking an alignment manner as an example of center alignment, in order to describe the position information of each editable object, an absolute position of a center anchor point of year, month and day numbers relative to an upper left corner is used for description, and two parameters, namely, a and B, are used to represent absolute values corresponding to values of an X axis and a Y axis which are central points relative to the upper left corner, for example, in fig. 6, the center anchor point of a month "10" takes an a value of 42 and the center anchor point of B takes a value of 58 relative to the upper left corner.
Furthermore, aiming at the date sticker, if the character style, the absolute position information and the like need to be reused, the attribute parameters of the characters do not need to be modified during the picture cutting, only the calendar picture needs to be replaced, can be realized only by replacing the parameter value of the 'date theme' named by the paster when defining the attribute parameters, for example, as shown in the parameter fig. 7, which is a schematic diagram of the effect of naming the date sticker replacement sticker for the embodiment of the present application, as shown in fig. 7, the attribute parameters of the characters of the left and right images are identical, only the parameter value named by the sticker is replaced, the parameter value of the left image "date theme" is "slash blue circle", the parameter value of the right image "date theme" is "slash calendar", it can be known that the calendar picture of the background of the left image and the right image is changed, and the rest of the text styles are the same, specifically, the attribute parameters of the date sticker of the left image are defined as:
date theme _ slash blue circle
_font_AaYuanqimanman_color_ffffff_align_center_month_Size_120_LetterSpace_-6_A_132_B_140_day_Size_120_LetterSpace_-6_A_272_B_194_year_Size_68_LetterSpace_0_A_206_B_298.png
The property parameters of the date sticker of the right picture are defined as:
date theme _ slash calendar
_font_AaYuanqimanman_color_ffffff_align_center_month_Size_120_LetterSpace_-6_A_132_B_140_day_Size_120_LetterSpace_-6_A_272_B_194_year_Size_68_LetterSpace_0_A_206_B_298.png
In this way, by defining the attribute parameters of each editable object in the sticker file, when the sticker is generated by drawing, the associated attribute parameters of each editable object, including parameter names, parameter values and the like, can be obtained through regular matching, and the realization is simple and the flexible multiplexing is also possible.
Further, before obtaining the attribute parameter associated with the at least one editable object in the target sticker template, the embodiment of the application further includes: determining a drag end position of the drag operation in the target area in response to the drag operation associated with the selection instruction; and displaying the selected target paster template based on the dragging end position.
That is to say, in the embodiment of the application, a user can be supported to select and display a target sticker by selecting and dragging a sticker template, for example, the user selects a sticker template, drags the sticker template to a target area without moving the target area, drags the target area to a proper position, the position of releasing the hand is a dragging ending position, displays the target sticker template at the dragging ending position, and generates the target sticker by subsequent operations of acquiring attribute parameters, associated data, drawing and the like.
Step 420: and calling the corresponding editing control of the at least one editable object to acquire the associated data of the at least one editable object.
In the embodiment of the application, each editable object can be associated with a corresponding editing control, when a user adds a sticker for the first time, the associated data can be automatically obtained, that is, the target sticker in the embodiment of the application is a dynamic sticker, the associated data can be automatically updated when the sticker is added, instead of displaying static content of default settings, for example, when the target sticker includes a date, such as a date sticker or a schedule sticker, the current date information of the system can be automatically obtained, so that the current date can be quickly inserted, the method is simpler, the efficiency is improved, and the method is more intelligent, for example, when the target sticker includes editable objects such as weather or places, the associated weather data or place data can be obtained through the corresponding editing controls, such as interaction with a weather or positioning application program in the terminal, so that the content in the target sticker can be dynamically displayed, information such as current weather or place is added on the target sticker quickly, and therefore the intelligent mobile terminal is more intelligent and user experience is improved.
Step 430: and drawing the associated data of at least one editable object on the target paster template according to the attribute parameters to generate the target paster.
Specifically, if there are at least two editable objects, when step 430 is executed, a possible implementation manner is provided in this embodiment of the application, in which attribute parameters of each editable object are respectively analyzed, a corresponding parameter type is determined, a drawing sequence of each editable object is determined according to the corresponding parameter type, and according to the determined drawing sequence, according to the associated attribute parameters, associated data of each editable object is respectively drawn on a target sticker template to generate a target sticker.
Of course, the drawing order may also be determined in other manners, for example, the drawing order of each editable object is determined according to the order of each attribute parameter defined in the sticker file, for example, if the calendar picture in the defined attribute parameters is month, day, and year in the front and the back, then the calendar picture, month, day, and year may be drawn in sequence.
Further, after the target sticker is generated, the method further comprises the following steps: and adding an adjusting operation event aiming at the generated target paster.
Wherein, the adjusting operation event comprises any one or combination of the following: a delete operation, a zoom operation, a move operation, and of course, other adjustment events, such as a rotate operation, may also be included, and embodiments of the present application are not limited thereto.
Furthermore, the embodiment of the present application further includes: and responding to the adjustment operation aiming at the adjustment operation event, and correspondingly adjusting the target paster.
That is to say, this application embodiment, can carry out holistic adjustment operation to the target sticker, for example remove the target sticker, adjust its position, and need not carry out adjustment many times respectively to every editable object, operate simplyr, improved efficiency and convenience.
Furthermore, after the target sticker is generated, the content on the target sticker is the associated data acquired through the corresponding editing control, and if the user needs to modify the content, the embodiment of the application can also support the user to edit the target sticker, specifically: 1) responding to the editing operation of any editable object aiming at the target paster, and calling a corresponding editing control; 2) responding to the input operation of a user in the editing control, and acquiring input associated data; 3) and redrawing the input associated data on the target sticker template according to the attribute parameters associated with any editable object.
Therefore, when a user needs to modify the content on the target sticker, the corresponding editing control can be called through editing operation, for example, the editing operation is double-click operation, the target sticker is a date sticker, when the user wants to modify the date, the user can double-click characters of the date, call the calendar editing control, display the calendar editing control, quickly select required date information from the calendar editing control, and after the date information is clicked and determined, the date on the date sticker can be updated to the date information selected by the user, so that the user can be supported to modify flexibly.
The following describes steps 420 and 430 in the embodiment of the sticker processing method by using a specific application example, specifically taking the target sticker template as the target date sticker template and the target schedule sticker template as an example, which may be divided into the following two cases:
in the first case: and if the target paster template is the target date paster template, wherein the editable object of the target date paster template at least comprises a calendar picture and date characters.
Then step 420 is performed: calling an editing control corresponding to at least one editable object to acquire associated data of the at least one editable object, specifically comprising:
1) and calling a picture editing control, and requesting to acquire the calendar picture according to the link address of the calendar picture.
For example, the link address of the calendar picture may be a Uniform Resource Locator (url) address thereof, a url address of the calendar picture is obtained, and based on the url address, the corresponding calendar picture is requested to be obtained from the background server.
2) And calling a calendar editing control to acquire current date information.
For example, a calendar edit control may be invoked via communications to obtain current date information for the calendar.
Therefore, when the target sticker is generated, the calendar picture can be acquired, the current date information of the system is automatically pulled, the system is more intelligent, and the current date can be quickly inserted when the user adds the sticker.
Then step 430 is executed: according to the attribute parameters, drawing the associated data of at least one editable object on the target paster template to generate the target paster, which specifically comprises the following steps:
1) and respectively analyzing the public parameters and the specific parameters associated with each editable object, and determining the parameter types of the calendar picture and the date character, and the character style of the date character and the absolute position information of the calendar picture and the date character.
That is, in the embodiment of the present application, the common parameters and the specific parameters associated with the editable object at least include the parameter type, the text style, and the absolute position information thereof.
2) And determining a drawing sequence according to the parameter types of the calendar picture and the date character.
3) And according to the determined drawing sequence, sequentially drawing the calendar picture and the current date information on the target paster template according to the character style and the absolute position information of the date characters, and generating the target date paster.
Like this, combine calendar picture and characters for the date sticker in this application embodiment, can realize adding the date sticker fast, do not need the user to manually stack calendar picture and date information respectively to if want to modify date information after adding, also can be through the quick selection of calendar editing control required date information, and when needing to adjust the date sticker, for example when adjusting date sticker position or rotation angle, also only need carry out once operation, need not respectively to calendar picture and characters multiple operation, promote user operation convenience.
In the second case: if the target paster template is the target schedule paster template, wherein editable objects of the target schedule paster template at least comprise background pictures, date characters and labeled pictures.
Then step 420 is performed: calling an editing control corresponding to at least one editable object to acquire associated data of the at least one editable object, specifically comprising:
1) and calling a picture editing control, and requesting to acquire the background picture and the labeled picture according to the link address of the background picture and the link address of the labeled picture.
2) And calling a calendar editing control to acquire the current date information and the number of days corresponding to the month in the current date information.
In the embodiment of the application, not only can the current date information be automatically pulled, but also the number of days in the month can be dynamically adjusted according to the current month, and further the week value corresponding to each day can be obtained.
Then step 430 is executed: according to the attribute parameters, drawing the associated data of at least one editable object on the target paster template to generate the target paster, which specifically comprises the following steps:
1) and respectively analyzing the public parameters and the specific parameters associated with each editable object, and determining the parameter types of the background picture, the date character and the labeled picture, the character style of the date character and the absolute position information of the background picture, the date character and the labeled picture.
2) And determining a drawing sequence according to the parameter types of the background picture, the date character and the labeled picture.
3) And according to the determined drawing sequence, drawing the background picture, the current date information and the labeled picture on the target paster template in sequence according to the character style and the absolute position information of the date characters, and generating the target schedule paster.
Specifically, the method comprises the following steps: (1) and drawing a background picture on the target paster template, and drawing date information containing the number of days on the target paster template according to the number of days corresponding to the month in the current date information and the character style of the date characters and the absolute position information of the date characters relative to the background picture.
(2) And taking the day number in the current date information as the labeled date, and drawing the labeled picture at the position corresponding to the labeled date according to the set labeled picture and the absolute position information of the labeled picture relative to the labeled date.
It should be noted that, when the schedule sticker is added for the first time, a default is to draw a labeled picture on the day number in the current date information, for example, the day is No. 5, and then draw a labeled picture on the day number 5, where the labeled picture may also include text information, and the like, for example, label pictures that a certain day is a birthday, or a meeting, or a tour, and the like are labeled on the schedule sticker. Of course, the embodiment of the application also supports the user to modify the annotation date and also supports the modification of the annotation picture.
Like this, the user can add the schedule sticker fast, can draw current date information automatically in this application embodiment to can dynamic adjustment day of the month and corresponding date etc. do not need the user to add the manual line drawing and add or revise the day of the month that does not provide on the sticker template, the operation is simpler, and efficiency is higher, and also once generate, does not need a plurality of stickers of manual stack, also only need adjust once when the adjustment, and it is more convenient to operate.
In the embodiment of the application, a user can select a target sticker template from sticker templates, the target sticker template comprises at least one editable object, the selected target sticker template is determined in response to a selection instruction for the displayed sticker template, attribute parameters associated with at least one editable object in the target sticker template are acquired, corresponding editing controls are called, associated data are acquired, and then the associated data of the at least one editable object are drawn on the target sticker template according to the attribute parameters to generate a target sticker, so that the associated data can be automatically acquired, the content of the target sticker is dynamically updated instead of static layers, and is more intelligent, when the user adds a sticker, real-time associated data can be displayed on the target sticker, the requirements of the user are met, the user operation is reduced, the efficiency is higher, and each editable object is drawn by taking the target sticker template as a carrier, can include a plurality of editable objects, can be in order to support on the target sticker template stack a plurality of editable objects, do not need the manual stack of user, promote sticker functional practicality to the target sticker that finally generates is a whole, if needs are adjusted the target sticker, also only need carry out once operation, need not carry out the operation many times to every editable object respectively, and it is more simple and convenient to operate, has promoted efficiency.
In addition, in the embodiment of the present application, a webpage drawing technology is mainly used for drawing to generate the target sticker, for example, the webpage drawing technology is a webpage Graphics Library (Web gl) technology, which is not limited, and may be applicable to an H5 environment, so that the implementation is simpler, the function of the sticker may be implemented by being embedded into an existing application program conveniently, and update packages may be reduced effectively. Based on the foregoing embodiment, taking a target sticker as a date sticker and a web page rendering technology as a webGL technology as an example, a specific application scenario is used to describe a sticker rendering flow in a sticker processing method, where the sticker processing method in the embodiment of the present application may be embedded in a ledger editor of H5, a container is implemented based on a webGL rendering engine, after a target sticker template selected by a user is determined, a url address of a calendar picture in the target sticker template is obtained, attribute parameters associated with each editable object are obtained, a sticker name is extracted and matched with the attribute parameters, rendering of each editable object is performed, and finally, the obtained object is added into a canvas (canvas) container for displaying a ledger, which is specifically shown in fig. 8 and is a schematic diagram of a sticker rendering flow in the embodiment of the present application.
Step 800: and starting.
Step 801: and acquiring the link address of the calendar picture in the target sticker template.
The link address of the calendar picture is, for example, url of the calendar picture.
Step 802: requesting a calendar picture, if successful, executing step 804, and if failed, executing step 803.
Specifically, based on the url of the calendar picture, a request is made to the server for obtaining the corresponding calendar picture, if the request is successful, the calendar picture returned by the server can be obtained, and if the request is failed, failure prompt information is returned.
Step 803: and returning addition failure prompt information.
The user may be prompted that the sticker addition failed.
Step 804: the calendar picture is converted to a Sprite object and added to the parent Container.
The Sprite is a corresponding base class of an object that does not need a time axis, and the parent Container, the object and the like are concrete implementation means for realizing the sticker drawing based on the webGL technology.
Step 805: and judging whether the attribute parameters are legal, if so, executing the step 806, otherwise, returning to the step 803.
Step 806: the common parameters are parsed and the object globalStyle is stored.
Wherein, the globalStyle is a defined common style for representing characters.
Step 807: the concrete parameters are analyzed and stored into the objects yearStyle/monthStyle/datastyle/daysStyle respectively.
Here, the date words in the date sticker are exemplified by including year, month, day number and week, and thus the yearStyle/monthStyle/dateStyle/days style defined herein respectively represent the word patterns of year, month, week and day number.
Step 808: and acquiring the font according to the common parameters, if the font is successfully acquired, executing step 810, and if the font is failed, executing step 809.
Step 809: a system default font is employed.
Step 810: current date information is acquired, including year/month/day/week.
The fonts of all date characters are defined in the public parameters, if the fonts are acquired in a matching mode, the fonts defined in the public parameters can be used, the current date information of the system can be acquired, and if the fonts are not acquired, the default fonts of the system can be adopted.
Step 811: and judging whether the fontType in the common parameter is a number, if so, executing the step 812, and if so, executing the step 813.
Wherein the fontType is a font type parameter defined in the common parameter.
Step 812: and acquiring the Chinese or English configuration name.
Step 813: and judging whether align in the common parameter is centered alignment, if so, executing step 815, otherwise, executing step 814.
Wherein align represents the font alignment defined in the common parameters.
Step 814: the center point is set to (0, 0.5).
Step 815: the center point is set to (0.5 ).
The specific value set by the central point is only an example, and can be set according to actual requirements.
Step 816: and drawing the text object according to the specific parameters and the public parameters.
Wherein text is defined and represents word associated data, including year/month/day/week associated data.
For example, the associated data of year/month/day/week are respectively rendered according to the font size, the character spacing and the like in the specific parameters, and the attribute parameters representing the character style such as the font color, the font alignment mode and the like in the common parameters.
Step 817: and positioning the absolute position information of the text object relative to the parent Container according to the specific parameters, and adding the absolute position information into the parent Container.
For example, according to the attribute parameters representing absolute position information, such as the rotation angle, the values of the X and Y axes relative to the central point, and the like in the specific parameters, the position of the date character is positioned and added to the corresponding position of the Container, and then the superposition drawing of each editable object is realized.
Step 818: an adjustment operation event is added to the parent Container.
For example, the adjustment operation event is deletion, zoom, move, etc., and is not limited.
Step 819: and (6) ending.
Therefore, the web GL technology is adopted to realize drawing and displaying of the target sticker, the method is suitable for the H5 environment, the sticker function of the hand account log can be realized in H5 environment scenes such as a QQ space, the realization is simple, a needed update package is small, and the downloading and installation experience of a user is better.
Based on the above embodiments, the following describes the sticker processing method in the embodiment of the present application from the product implementation side, taking the manual account log of the QQ space in which the sticker function is implemented in the QQ application as an example, and taking the target sticker as the date sticker and the schedule sticker as an example, respectively.
1) Referring to fig. 9, as shown in a diagram (a) in fig. 9, a user may open a mobile phone QQ client, enter a QQ space, click a personal avatar to enter a personal homepage, click a "log" shown in a diagram (a) in fig. 9 to enter a log list page, that is, as shown in a diagram (B) in fig. 9, a log list page is shown, click a "write hand account" function button in the log list page, enter a select hand account template interface shown in a diagram (C) in fig. 9, and then the user may select a desired hand account template from the log list page, and enter a hand account log edit page after selecting the hand account template, that is, as shown in a diagram (D) in fig. 9, and then the user may add a sticker to the hand account edit page.
2) Referring to fig. 10, for an interface effect diagram of a process of generating a date sticker in the embodiment of the present application, specifically, as shown in (a) of fig. 10, a user may click on a sticker option at the bottom of an account editing page to call up a sticker keyboard, the sticker keyboard may include different types of stickers, such as hot door, latest date, etc., the user may select a corresponding sticker from different tabs of the sticker keyboard, taking a date sticker as an example, as shown in (B) of fig. 10, the user may click on a date sticker category to display various provided date sticker templates on the sticker keyboard, the user may select a desired date sticker template from the selected date sticker templates, for example, the user may click and drag the date sticker template to a target area if the user selects a second date sticker template, and then, based on the sticker processing method in the embodiment of the present application, the current date information of the system can be automatically pulled, the attribute parameters associated with each editable object in the date sticker template are obtained, and then the date sticker is finally synthesized according to the calendar picture, the current date information and the attribute parameters, as shown in (C) of fig. 10, and the date sticker displayed in the target area is the generated date sticker.
Similarly, the sticker processing method in the embodiment of the present application is also applicable to a generation scene of a sticker including a plurality of editable objects, such as weather, a place, a schedule, and the like, and is not described herein again.
3) In the embodiment of the application, the user can also be supported to edit the generated target paster.
Taking the date sticker as an example, if the user needs to change the date information in the date sticker, specifically referring to fig. 11, which is an interface effect diagram of the process of editing the date sticker in the embodiment of the present application, the user may select and change the date information on the date sticker according to the user's own needs, as shown in (a) in fig. 11, the user may double-click the date sticker to edit the date sticker, call the calendar edit control after double-clicking the date sticker, enter the date selector, as shown in (B) in fig. 11, may select a year after entering the date selector, click to determine after selecting the required year, for example, select "2019" year, as shown in (C) in fig. 11, may select a month, click to determine after selecting, for example, select "4 months", as shown in (D) in fig. 11, may select a day number, click to determine after selecting a day number, for example, a number "19" is selected, so that the user can select the required date information, after the date information is determined, the date information selected by the user can be obtained, the associated attribute parameters can be obtained again, the same character style and the attribute parameters such as absolute position information are applied, a new date sticker is synthesized, as shown in a diagram (E) in fig. 11, the date sticker with the same style is generated, the date information changed by the user is displayed on the date sticker, the whole process does not need the user to manually reset the font style, and the operation is simple.
Taking the schedule sticker as an example, when the user adds the schedule sticker for the first time, the schedule sticker will automatically acquire and display the current date information, or may also display other real-time information, such as location, weather, etc., if the user needs to modify the date information in the schedule sticker, as shown in fig. 12, which is an interface effect diagram of the schedule sticker editing process in the embodiment of the present application, similarly, as shown in (a) in fig. 12, the date information in the upper left corner is the current date information of the system, and the editable object shown below is an editable object, including a background picture, a date character and a labeled picture, such as a labeled picture is a date picture, the current date information is displayed by default, the user can edit the schedule sticker by double-clicking the schedule sticker, call the editing calendar control after double-clicking the schedule sticker, enter the date selector, as shown in (B) in fig. 12, after entering the date selector, the year can be selected, and the click determination is performed after the selection of the required year, for example, the year "2019" is selected, as shown in the (C) diagram in fig. 12, the month can be selected, and the click determination is performed after the selection of the month, as shown in the (D) diagram in fig. 12, the number of days of the month can be automatically obtained after the selection of the month, the number of days and the corresponding week can be dynamically adjusted, for example, the number of days of 4 months in 2019 and the corresponding week can be automatically obtained and displayed, so that the user can select the number of days from the number, and the click determination is performed after the number of days is selected, as shown in the (E) diagram in fig. 12, so that the corresponding static date style can be automatically called according to the month selected by the user, and the annotation picture can be overlaid and drawn at the position according to the number of days selected by the user, for example, the annotation picture is annotated on the number of 4 months and 19, the date information selected by the user is displayed on the schedule sticker, the date selected by the user is marked on the day selected by the user, in addition, the editing operation of modifying marked pictures and the like by the user can be supported, the number of days, weeks and the like of the month do not need to be manually adjusted by the user in the whole process, and the calendar system is more intelligent and is convenient to operate.
Therefore, the paster templates of dates, schedules and the like are provided in the embodiment of the application, the paster templates can be combined with self-defined or personalized fonts and decoration, and associated data can be automatically acquired for drawing, so that the user can quickly insert the pasters of dates, schedules and the like, real-time associated data can be displayed on the pasters, the user can be helped to generate the pasters containing the personalized fonts, dates, weather and the like more efficiently, the attractiveness and the practical function of the pasters are improved, the operation is simpler, the efficiency is improved, the user can be supported to adjust and edit, the account log interface is enriched, and the use experience of the user is improved.
It should be noted that the above interface effect diagram is only one possible example, and should not limit the embodiments of the present application.
Based on the same inventive concept, the embodiment of the present application further provides a sticker processing apparatus, which may be, for example, the terminal in the foregoing embodiment, and the sticker processing apparatus may be a hardware structure, a software module, or a hardware structure plus a software module. Based on the above embodiment, referring to fig. 13, the sticker processing apparatus in the embodiment of the present application specifically includes:
a determination module 1300 for determining a selected target sticker template in response to a selection instruction for a displayed sticker template, wherein the target sticker template includes at least one editable object;
a first obtaining module 1310 for obtaining attribute parameters associated with the at least one editable object in the target sticker template;
a second obtaining module 1320, configured to invoke an editing control corresponding to the at least one editable object, and obtain associated data of the at least one editable object;
a generating module 1330, configured to draw the associated data of the at least one editable object on the target sticker template according to the attribute parameter, so as to generate a target sticker.
Optionally, before obtaining the attribute parameter associated with the at least one editable object in the target sticker template, the method further includes, before the obtaining, the presenting module 1340, configured to:
in response to a drag operation associated with the selection instruction, determining a drag end position of the drag operation in a target area; displaying the selected target sticker template based on the drag end position.
Optionally, the method further includes:
an adding module 1350, configured to add an adjustment operation event to the generated target sticker;
an adjusting module 1360, configured to perform corresponding adjustment on the target sticker in response to the adjusting operation for the adjusting operation event.
Optionally, the adjusting operation event includes any one or a combination of the following: delete operation, zoom operation, move operation.
Optionally, the method further includes an editing module 1370, configured to:
responding to the editing operation of any editable object aiming at the target paster, and calling a corresponding editing control;
responding to the input operation of a user in the editing control, and acquiring input associated data;
redrawing the input associated data on the target sticker template according to the attribute parameters associated with the any editable object.
Optionally, the parameter name and the parameter value of the attribute parameter of each editable object are combined according to a preset rule; the attribute parameters are at least divided into common parameters and specific parameters, wherein the common parameters represent the attribute parameters shared by all the editable objects, and the specific parameters represent the attribute parameters of all the editable objects.
Optionally, if the target sticker template is a target date sticker template, the editable object of the target date sticker template at least includes a calendar picture and date characters;
when the editing control corresponding to the at least one editable object is called to acquire the associated data of the at least one editable object, the second acquiring module 1320 is specifically configured to:
calling a picture editing control, and requesting to acquire the calendar picture according to the link address of the calendar picture;
and calling a calendar editing control to acquire current date information.
Optionally, according to the attribute parameter, the associated data of the at least one editable object is drawn on the target sticker template, and when the target sticker is generated, the generating module 1330 is specifically configured to:
respectively analyzing the public parameters and the specific parameters associated with each editable object, and determining the parameter types of the calendar picture and the date character, and the character style of the date character and the absolute position information of the calendar picture and the date character;
determining a drawing sequence according to the parameter types of the calendar picture and the date character;
and according to the determined drawing sequence, sequentially drawing the calendar picture and the current date information on the target paster template according to the character style of the date characters and the absolute position information to generate the target date paster.
Optionally, if the target sticker template is a target schedule sticker template, the editable object of the target schedule sticker template at least comprises a background picture, date characters and a labeled picture;
when the editing control corresponding to the at least one editable object is called to acquire the associated data of the at least one editable object, the second acquiring module 1320 is specifically configured to:
calling a picture editing control, and requesting to acquire a background picture and a labeled picture according to a link address of the background picture and a link address of the labeled picture;
and calling a calendar editing control to acquire the current date information and the number of days corresponding to the month in the current date information.
Optionally, according to the attribute parameter, the associated data of the at least one editable object is drawn on the target sticker template, and when the target sticker is generated, the generating module 1330 is specifically configured to:
respectively analyzing the public parameters and the specific parameters associated with each editable object, and determining the parameter types of the background picture, the date character and the labeled picture, the character style of the date character and the absolute position information of the background picture, the date character and the labeled picture;
determining a drawing sequence according to the parameter types of the background picture, the date character and the labeled picture;
and according to the determined drawing sequence, drawing a background picture, current date information and a labeled picture on the target paster template in sequence according to the character style of the date characters and the absolute position information to generate the target schedule paster.
Optionally, according to the determined drawing sequence, when the background picture, the current date information, and the labeled picture are drawn on the target sticker template in sequence according to the text style of the date text and the absolute position information, the generating module 1330 is specifically configured to:
drawing a background picture on the target paster template;
according to the number of days corresponding to the month in the current date information, according to the character style of the date characters and the absolute position information of the date characters relative to the background picture, drawing the date information containing a plurality of day numbers of the days on the target paster template;
and taking the day number in the current date information as a marked date, and drawing the marked picture at a position corresponding to the marked date according to the set marked picture and the absolute position information of the marked picture relative to the marked date.
The division of the modules in the embodiment of the present application is schematic, and only one logic function division is provided, and in actual implementation, there may be another division manner, and in addition, each function module in the embodiment of the present application may be integrated in one processor, or may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Based on the above embodiments, fig. 14 is a schematic structural diagram of an electronic device in an embodiment of the present application.
An embodiment of the present application provides an electronic device, which may include a processor 1410 (central Processing Unit, CPU), a memory 1420, an input device 1430, an output device 1440, and the like, wherein the input device 1430 may include a keyboard, a mouse, a touch screen, and the like, and the output device 1440 may include a Display device, such as a Liquid Crystal Display (LCD), a Cathode Ray Tube (CRT), and the like.
Memory 1420 may include read-only memory (ROM) and Random Access Memory (RAM), and provides program instructions and data stored in memory 1420 to processor 1410. In the embodiment of the present application, the memory 1420 may be used to store a program of any one of the decal processing methods in the embodiment of the present application.
The processor 1410 is configured to execute any one of the sticker processing methods according to the embodiments of the present application by calling the program instructions stored in the memory 1420, and the processor 1410 is configured to execute the obtained program instructions.
Based on the above embodiments, in the embodiments of the present application, there is provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the sticker processing method in any of the above method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.

Claims (14)

1. A sticker processing method is characterized by comprising:
in response to a selection instruction for a displayed sticker template, determining a selected target sticker template, wherein the target sticker template includes at least one editable object;
acquiring attribute parameters associated with the at least one editable object in the target sticker template;
calling an editing control corresponding to the at least one editable object to acquire associated data of the at least one editable object;
and drawing the associated data of the at least one editable object on the target paster template according to the attribute parameters to generate the target paster.
2. The method of claim 1, wherein prior to obtaining the property parameters associated with the at least one editable object in the target sticker template, the method further comprises:
in response to a drag operation associated with the selection instruction, determining a drag end position of the drag operation in a target area;
displaying the selected target sticker template based on the drag end position.
3. The method of claim 1, wherein the method further comprises:
adding an adjustment operation event aiming at the generated target paster;
and responding to the adjustment operation aiming at the adjustment operation event, and correspondingly adjusting the target paster.
4. The method of claim 3, wherein the adjustment operation event comprises any one or a combination of: delete operation, zoom operation, move operation.
5. The method of claim 1, wherein the method further comprises:
responding to the editing operation of any editable object aiming at the target paster, and calling a corresponding editing control;
responding to the input operation of a user in the editing control, and acquiring input associated data;
redrawing the input associated data on the target sticker template according to the attribute parameters associated with the any editable object.
6. The method according to any one of claims 1 to 5, wherein the parameter name and the parameter value of the attribute parameter of each editable object are combined according to a preset rule;
the attribute parameters are at least divided into common parameters and specific parameters, wherein the common parameters represent the attribute parameters shared by all the editable objects, and the specific parameters represent the attribute parameters of all the editable objects.
7. The method of claim 6, wherein if the target decal template is a target date decal template, the editable objects of the target date decal template include at least calendar pictures and date text;
calling an editing control corresponding to the at least one editable object to acquire associated data of the at least one editable object, which specifically includes:
calling a picture editing control, and requesting to acquire the calendar picture according to the link address of the calendar picture;
and calling a calendar editing control to acquire current date information.
8. The method according to claim 7, wherein the drawing the associated data of the at least one editable object on the target sticker template according to the attribute parameter to generate the target sticker comprises:
respectively analyzing the public parameters and the specific parameters associated with each editable object, and determining the parameter types of the calendar picture and the date character, and the character style of the date character and the absolute position information of the calendar picture and the date character;
determining a drawing sequence according to the parameter types of the calendar picture and the date character;
and according to the determined drawing sequence, sequentially drawing the calendar picture and the current date information on the target paster template according to the character style of the date characters and the absolute position information to generate the target date paster.
9. The method of claim 6, wherein if the target sticker template is a target calendar sticker template, the editable objects of the target calendar sticker template include at least a background picture, date text, and a markup picture;
calling an editing control corresponding to the at least one editable object to acquire associated data of the at least one editable object, which specifically includes:
calling a picture editing control, and requesting to acquire a background picture and a labeled picture according to a link address of the background picture and a link address of the labeled picture;
and calling a calendar editing control to acquire the current date information and the number of days corresponding to the month in the current date information.
10. The method according to claim 9, wherein the drawing the associated data of the at least one editable object on the target sticker template according to the attribute parameter to generate the target sticker comprises:
respectively analyzing the public parameters and the specific parameters associated with each editable object, and determining the parameter types of the background picture, the date character and the labeled picture, the character style of the date character and the absolute position information of the background picture, the date character and the labeled picture;
determining a drawing sequence according to the parameter types of the background picture, the date character and the labeled picture;
and according to the determined drawing sequence, drawing a background picture, current date information and a labeled picture on the target paster template in sequence according to the character style of the date characters and the absolute position information to generate the target schedule paster.
11. The method as claimed in claim 10, wherein the step of sequentially rendering the background picture, the current date information and the labeled picture on the target sticker template according to the determined rendering order and based on the text style of the date text and the absolute position information comprises:
drawing a background picture on the target paster template;
according to the number of days corresponding to the month in the current date information, according to the character style of the date characters and the absolute position information of the date characters relative to the background picture, drawing the date information containing a plurality of day numbers of the days on the target paster template;
and taking the day number in the current date information as a marked date, and drawing the marked picture at a position corresponding to the marked date according to the set marked picture and the absolute position information of the marked picture relative to the marked date.
12. A sticker processing apparatus, comprising:
a determination module for determining a selected target sticker template in response to a selection instruction for a displayed sticker template, wherein the target sticker template includes at least one editable object;
a first obtaining module, configured to obtain an attribute parameter associated with the at least one editable object in the target sticker template;
the second obtaining module is used for calling the editing control corresponding to the at least one editable object and obtaining the associated data of the at least one editable object;
and the generating module is used for drawing the associated data of the at least one editable object on the target paster template according to the attribute parameters to generate the target paster.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any of claims 1-11 are implemented when the program is executed by the processor.
14. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method of any one of claims 1 to 11.
CN201910515119.5A 2019-06-14 2019-06-14 Label paper processing method and device, electronic equipment and storage medium Active CN112084750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910515119.5A CN112084750B (en) 2019-06-14 2019-06-14 Label paper processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910515119.5A CN112084750B (en) 2019-06-14 2019-06-14 Label paper processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112084750A true CN112084750A (en) 2020-12-15
CN112084750B CN112084750B (en) 2023-05-23

Family

ID=73733851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910515119.5A Active CN112084750B (en) 2019-06-14 2019-06-14 Label paper processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112084750B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024037557A1 (en) * 2022-08-19 2024-02-22 北京字跳网络技术有限公司 Special effect prop processing method and apparatus, electronic device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150193392A1 (en) * 2013-04-17 2015-07-09 Google Inc. User Interface for Quickly Checking Agenda and Creating New Events
CN107831974A (en) * 2017-11-30 2018-03-23 腾讯科技(深圳)有限公司 information sharing method, device and storage medium
CN108833779A (en) * 2018-06-15 2018-11-16 Oppo广东移动通信有限公司 Filming control method and Related product
CN108845753A (en) * 2018-06-28 2018-11-20 维沃移动通信有限公司 A kind of image processing method and terminal
CN109089144A (en) * 2018-06-28 2018-12-25 北京潘达互娱科技有限公司 A kind of method, apparatus, electronic equipment and storage medium sending paster present

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150193392A1 (en) * 2013-04-17 2015-07-09 Google Inc. User Interface for Quickly Checking Agenda and Creating New Events
CN107831974A (en) * 2017-11-30 2018-03-23 腾讯科技(深圳)有限公司 information sharing method, device and storage medium
CN108833779A (en) * 2018-06-15 2018-11-16 Oppo广东移动通信有限公司 Filming control method and Related product
CN108845753A (en) * 2018-06-28 2018-11-20 维沃移动通信有限公司 A kind of image processing method and terminal
CN109089144A (en) * 2018-06-28 2018-12-25 北京潘达互娱科技有限公司 A kind of method, apparatus, electronic equipment and storage medium sending paster present

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
乐活女人(北京)科技公司: "多彩手账", 《"多彩手账"APP,安卓客户端,版本号3.7.1》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024037557A1 (en) * 2022-08-19 2024-02-22 北京字跳网络技术有限公司 Special effect prop processing method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN112084750B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN107832108B (en) Rendering method and device of 3D canvas webpage elements and electronic equipment
US7293034B2 (en) Dynamically customizing a user interface for the aggregation of content
EP3417639B1 (en) Message extension app store
US11216253B2 (en) Application prototyping tool
US9037974B2 (en) Creating and editing dynamic graphics via a web interface
AU2016201889B2 (en) Methods and apparatus for translating forms to native mobile applications
US10210142B1 (en) Inserting linked text fragments in a document
US20060225094A1 (en) Enabling customization and personalization of views in content aggregation frameworks
US20170169474A1 (en) Internet-based display material system and internet-based display material producing method
AU2020202901B2 (en) Enriching collaboration using visual comments in a shared review
US20180101974A1 (en) Portable typelet file
US7543236B1 (en) System and method for replacing application publisher interface branding with identity plates
US20210247967A1 (en) Design interface object manipulation based on aggregated property values
US20230418562A1 (en) Interactive graphic design system to enable creation and use of variant component sets for interactive objects
CN110286971B (en) Processing method and system, medium and computing device
KR20160113135A (en) Providing print view of document for editing in web-based application
US20110283195A1 (en) Device theme matching
US20160371062A1 (en) Method For The Automatic Presentation And Interaction Of A Data-Form User-Interface From Object-Model Metadata Under Media And Security Constraints
CN112084750B (en) Label paper processing method and device, electronic equipment and storage medium
EP3819760A1 (en) Methods and apparatus for generating a platform-agnostic mobile application configuration data structure with a dynamic quiz
US10409575B2 (en) System and method for developing software applications of wearable devices
US11966572B2 (en) Commenting feature for graphic design systems
US20230176718A1 (en) Commenting feature for graphic design systems
US20240104808A1 (en) Method and system for creating stickers from user-generated content
US20220342644A1 (en) Branching and merging in a design interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40035320

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant