CN113658293B - Picture drawing method and device, electronic equipment and storage medium - Google Patents

Picture drawing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113658293B
CN113658293B CN202110864708.1A CN202110864708A CN113658293B CN 113658293 B CN113658293 B CN 113658293B CN 202110864708 A CN202110864708 A CN 202110864708A CN 113658293 B CN113658293 B CN 113658293B
Authority
CN
China
Prior art keywords
drawn
canvas
coordinate
size
distance value
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.)
Active
Application number
CN202110864708.1A
Other languages
Chinese (zh)
Other versions
CN113658293A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110864708.1A priority Critical patent/CN113658293B/en
Publication of CN113658293A publication Critical patent/CN113658293A/en
Application granted granted Critical
Publication of CN113658293B publication Critical patent/CN113658293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a picture drawing method, a picture drawing device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a canvas generation request, wherein the canvas generation request comprises a canvas size; according to the canvas generation request, generating a canvas with the size of the canvas; establishing a coordinate system by taking the upper left corner of a canvas as an origin, and acquiring an object to be drawn and drawing configuration information of the object to be drawn, wherein the drawing configuration information comprises coordinates of the object to be drawn, and the coordinates in the coordinates comprise at least one of a first distance value, a second distance value, a third distance value and a fourth distance value, wherein the first distance value and the second distance value of the object to be drawn move downwards by taking the origin as a reference system center, the third distance value and the fourth distance value move leftwards by taking an x-axis maximum as a reference system center, and the fourth distance value moves upwards by taking a y-axis maximum as a reference system center; determining a drawing starting point of the object to be drawn according to the coordinate value in the coordinate information; and drawing the drawing starting point of the object to be drawn in the canvas based on the drawing configuration information to obtain a drawing picture.

Description

Picture drawing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and apparatus for drawing a picture, an electronic device, and a storage medium.
Background
With the rising and high-speed development of the mobile internet, mobile terminals are continuously upgraded, and the requirements of enterprises and users on mobile terminal apps are also water-logging boats. Therefore, when the App is used by the user, smooth program execution, good interaction experience, and more interesting design are important. Because H5 itself is low in development cost and strong in propagation, and naturally supports multi-terminal, multi-device access, developers in the related art often use H5 to fulfill the requirements.
When H5 is used for drawing pictures at high frequency, a canvas drawing method is generally adopted, when the canvas drawing method is used for drawing, drawing is carried out by taking an origin as a reference point, drawing dimension is single, certain limitation is achieved, and application is not flexible enough.
Disclosure of Invention
The embodiment of the invention aims to provide a picture drawing method, a picture drawing device, electronic equipment and a storage medium, which are used for solving the problems that in the related art, drawing is carried out by taking an origin as a reference point, drawing dimension is single, certain limitation is caused, and application is not flexible.
In a first aspect of an embodiment of the present invention, there is first provided a picture drawing method, including:
Obtaining a canvas generation request, wherein the canvas generation request comprises a canvas size;
generating canvas with the size of the canvas according to the canvas generation request;
establishing a coordinate system by taking the upper left corner of the canvas as an origin, and determining an x-axis maximum value and a y-axis maximum value in the coordinate system;
acquiring an object to be drawn and drawing configuration information of the object to be drawn, wherein the drawing configuration information comprises coordinate information of the object to be drawn, and coordinate values in the coordinate information comprise at least one of a first distance value, a second distance value, a third distance value and a fourth distance value, wherein the first distance value and the second distance value are used for enabling the object to be drawn to move downwards and rightwards by taking an origin as a reference system center, the third distance value and the fourth distance value are used for enabling the x-axis maximum value to serve as a reference system center to move leftwards, and the fourth distance value is used for enabling the y-axis maximum value to serve as a reference system center to move upwards;
determining a drawing starting point of the object to be drawn according to the coordinate value in the coordinate information;
and drawing the object to be drawn at the drawing starting point in the canvas based on the drawing configuration information to obtain a drawing picture.
Optionally, the determining the drawing starting point of the object to be drawn according to the coordinate values in the coordinates includes:
Screening a target coordinate value of a current coordinate axis from the coordinate values of the current coordinate axis, wherein the current coordinate axis is any coordinate axis in different coordinate axes, and the distance between the target coordinate value and the origin is shortest;
and forming a drawing starting point of the object to be drawn by the target coordinate value.
Optionally, when there are two coordinate values on the current coordinate axis, the method further includes:
if the current coordinate axis is the x axis, setting the length of the object to be drawn as a distance value between the second distance value and the third distance value;
and if the current coordinate axis is the y axis, setting the width of the object to be drawn as a distance value between the first distance value and the fourth distance value.
Optionally, the drawing configuration information includes a format type of the object to be drawn;
the drawing the object to be drawn at the drawing starting point in the canvas based on the drawing configuration information comprises the following steps:
when the format type of the object to be drawn is a picture format, acquiring the original size of the object to be drawn;
calculating the length-width ratio of the object to be drawn according to the original size;
Acquiring a first configuration size of the object to be drawn, wherein the first configuration size comprises a configuration length or a configuration width;
determining a second configuration size of the object to be drawn according to the aspect ratio and a first configuration size, wherein the second configuration size is a width to be configured when the first configuration size is the configuration length, or the second configuration size is a length to be configured when the first configuration size is the configuration width;
and drawing the object to be drawn on the canvas according to the first configuration size and the second configuration size at the drawing starting point.
Optionally, the obtaining the configuration size of the object to be drawn includes:
if the object to be drawn is a background picture, acquiring the layout direction of the object to be drawn;
and acquiring the canvas size of the canvas in the layout direction and taking the canvas size as the configuration size of the object to be drawn.
Optionally, after the drawing starting point draws the object to be drawn on the canvas according to the configuration size and the size to be configured, the method further includes:
and aligning the center line of the object to be drawn in the layout direction with the center line of the canvas in the layout direction.
Optionally, the drawing configuration information further includes a format type of the object to be drawn;
the drawing the object to be drawn at the drawing starting point in the canvas based on the drawing configuration information comprises the following steps:
when the format type of the object to be drawn is a text format, acquiring the number of the text in the object to be drawn and the first width of the drawing area;
determining a starting point of the drawing area as the drawing starting point;
sequentially drawing the characters in the object to be drawn in the drawing area;
before each character to be drawn is drawn, calculating a second width of the drawn character in the current drawing line;
and if the difference value between the second width and the first width is smaller than the width of the characters to be drawn, drawing the characters to be drawn on the next line of the current drawing line until the characters of the number of the characters are drawn.
Optionally, the obtaining the object to be drawn includes:
acquiring a resource path of the object to be drawn;
and downloading according to the resource path to obtain the object to be drawn.
Optionally, after the downloading according to the resource path, the method further includes:
Judging whether the object to be drawn is successfully downloaded;
if not, determining to give up the drawing of the object to be drawn.
Optionally, before each drawing of one word to be drawn, after calculating the second width of the drawn word in the current drawing line, the method further includes:
determining English words in the object to be drawn;
if the to-be-drawn characters are characters in English words, taking all character widths included in the English words as the widths of the to-be-drawn characters; the drawing the text to be drawn on the next line of the current drawing line comprises the following steps:
and drawing all characters in the English word on the next line of the current drawing line.
Optionally, after the drawing of the number of words is finished, the method further includes:
judging whether the bottom edge of the drawing area is overlapped with the bottom edge of the canvas;
if yes, determining the adjustment length of the drawing area;
and moving the drawing area upwards by the distance of the adjustment length.
In a second aspect of the embodiment of the present invention, there is also provided a picture drawing apparatus, including:
the first acquisition module acquires a canvas generation request, wherein the canvas generation request comprises a canvas size;
The canvas generation module is used for generating a canvas with the size of the canvas according to the canvas generation request;
the coordinate system establishing module is used for establishing a coordinate system by taking the upper left corner of the canvas as an origin, and determining an x-axis maximum value and a y-axis maximum value in the coordinate system;
a second obtaining module, configured to obtain an object to be drawn and drawing configuration information of the object to be drawn, where the drawing configuration information includes coordinates of the object to be drawn, where the coordinates include a first distance value that the object to be drawn moves downward with an origin as a reference frame center, a second distance value that the object to be drawn moves rightward, and at least one of a third distance value that the x-axis maximum value moves leftward with the reference frame center, and a fourth distance value that the y-axis maximum value moves upward with the reference frame center;
the determining module is used for determining a drawing starting point of the object to be drawn according to the coordinate values in the coordinate information;
and the drawing module is used for drawing the object to be drawn at the coordinate position in the canvas based on the drawing configuration information to obtain a drawing picture.
In a third aspect of the embodiment of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
and the processor is used for realizing the picture drawing method in any one of the first aspect when executing the program stored in the memory.
In a fourth aspect of embodiments of the present invention, there is also provided a storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the picture drawing method of any one of the first aspects described above.
In a fifth aspect of embodiments of the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the picture drawing method of any of the first aspects described above.
According to the technical scheme provided by the embodiment of the invention, the canvas generation request is obtained, and the canvas generation request comprises the canvas size; according to the canvas generation request, generating a canvas with the size of the canvas; establishing a coordinate system by taking the upper left corner of the canvas as an origin, and determining an x-axis maximum value and a y-axis maximum value in the coordinate system; obtaining an object to be drawn and drawing configuration information of the object to be drawn, wherein the drawing configuration information comprises coordinates of the object to be drawn, and the coordinates in the coordinates comprise at least one of a first distance value, a second distance value, a third distance value and a fourth distance value, wherein the first distance value and the second distance value of the object to be drawn move downwards and rightwards by taking an origin as a reference frame center, and the third distance value and the fourth distance value of the object to be drawn move leftwards by taking an x-axis maximum value as a reference frame center and upwards by taking a y-axis maximum value as a reference frame center; determining a drawing starting point of the object to be drawn according to the coordinate value in the coordinate information; and drawing the object to be drawn at the coordinate position in the canvas based on the drawing configuration information to obtain a drawing picture. Therefore, the limitation of the drawing modes of two parameters of the element position determined only according to the distance values from the origin to the x axis and the y axis in the related technology is solved, the coordinates of the object to be drawn are set to be the first distance value and the second distance value from the origin, the third distance value from the maximum value of the x axis and the fourth distance value from the maximum value of the y axis, the description modes of the coordinates are enriched, the drawing dimension of the object to be drawn is increased, the position of the object to be drawn in the canvas can be determined more quickly, and accordingly the drawing of the object to be drawn is more flexible.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic view of a scene structure of an implementation of a picture drawing method according to an embodiment of the present invention;
fig. 2 is a flow chart of a picture drawing method in an embodiment of the invention;
FIG. 3 is a schematic diagram of a coordinate system shown in an embodiment of the present invention;
fig. 4 is a schematic flow chart of another embodiment of a picture drawing method according to the present invention;
fig. 5 is a schematic flow chart of an implementation of another picture drawing method in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a picture drawing device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the application, a picture drawing method is provided. Alternatively, in the embodiment of the present application, the above-described picture drawing method may be applied to a hardware environment constituted by the terminal 101 and the server 102 as shown in fig. 1. As shown in fig. 1, the server 102 is connected to the terminal 101 through a network, which may be used to provide services (such as video services, application services, etc.) to the terminal or clients installed on the terminal, and a database may be provided on the server or independent of the server, for providing data storage services to the server 102, where the network includes, but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, or the like.
The picture drawing method in the embodiment of the present application may be executed by the server 102 or may be executed by the terminal 101. The terminal 101 performs the picture drawing method of the embodiment of the present application, specifically, by the client installed thereon.
Taking an example that the terminal executes the picture drawing method according to the embodiment of the present application, fig. 2 is a schematic flow chart of an alternative picture drawing method according to the embodiment of the present application, as shown in fig. 2, the flow of the method may include the following steps:
Step 201, obtaining a canvas generation request, wherein the canvas generation request comprises a canvas size.
In some embodiments, the canvas generation request may be generated after the user clicks the corresponding trigger position on the terminal to trigger; the node condition can be preset, and the node condition is triggered when the node condition is met, wherein the node condition can be interval duration.
For example, when the answer H5 page is generated, the user may make a page by using the corresponding APP, and by clicking a trigger button on the terminal, the terminal pops up a corresponding setting interface, so that the user may select page making information, such as canvas information, template information, background information, and the like. In the process, after the user clicks the trigger button and selects canvas information, a canvas generation request is generated so that the terminal can perform subsequent operations.
Accordingly, the size of the canvas may be uploaded to the terminal by the user; alternatively, the canvas size may be set to a default value when canvas size related content is not received. The default value may be set according to actual situations, which is not limited herein. Canvas dimensions include the length and width of the canvas.
It will be appreciated that when the canvas size is larger or smaller than the screen size of the terminal, the canvas size may be scaled equally to fit the screen of the terminal.
Step 202, according to the canvas generation request, generating a canvas with the size of the canvas.
In some embodiments, after the canvas creation request is obtained, the canvas is created according to the information carried by the canvas creation request. Specifically, the canvas size is included in the canvas generation request, and the terminal generates a canvas of the canvas size according to the canvas size.
And 203, establishing a coordinate system by taking the upper left corner of the canvas as an origin, and determining the maximum value of the x axis and the maximum value of the y axis in the coordinate system.
In some embodiments, determining the x-axis maximum and the y-axis maximum in the coordinate system may be based on canvas dimensions, e.g., the x-axis maximum in the coordinate system may be, but is not limited to, set to the width of the canvas and the y-axis maximum may be, but is not limited to, set to the length of the canvas.
It may be appreciated that, in order to avoid that the object to be drawn clings to the edge of the canvas and causes visual impact, the x-axis maximum value in the coordinate system may be set to be smaller than a first preset value of the width of the canvas, the y-axis maximum value may be set to be smaller than a second preset value of the length of the canvas, where the first preset value and the second preset value may be set according to actual conditions, and may be the same or different, and the present invention is not limited thereto. The first preset value and the second preset value are both 1 cm, or the first preset value is 1 cm, and the second preset value is 2 cm.
Step 204, obtaining the object to be drawn and drawing configuration information of the object to be drawn, wherein the drawing configuration information comprises coordinates of the object to be drawn.
The coordinate values in the coordinates comprise at least one of a first distance value of an object to be drawn moving downwards by taking an origin as a reference system center, a second distance value of the object to be drawn moving rightwards, a third distance value of the object to be drawn moving leftwards by taking an x-axis maximum value as a reference system center and a fourth distance value of the object to be drawn moving upwards by taking a y-axis maximum value as a reference system center.
In some embodiments, the object to be drawn may be obtained after the user uploads the content to be drawn to the terminal, or may be obtained after the user uploads the path resource of the content to be drawn to the terminal and the terminal downloads the path resource.
When in practical application, when a certain item needs to draw a picture at a target position, after a canvas generation request is acquired, the terminal calls the picture drawing method, integrates the picture drawing method into the item, instantiates the method object, and when drawing the picture, finishes drawing the picture by calling an API (Application Programming Interface, application program interface) in the object. Among them, APIs in the object include coordinate processing APIs, picture processing APIs and word processing APIs. Wherein the drawing configuration information may be configured in the instantiation process, the drawing configuration information including coordinates of the object to be drawn.
Referring to fig. 3, an example will be described in which the coordinates a of the object to be drawn are (top, left, right, bottom). Wherein, top describes the object to be drawn at the y-axis coordinate (0, ytop), left describes the x-axis coordinate (xleft, 0) of the object to be drawn, and top and left are respectively a value of the distance of the ytop (i.e. a first distance value) and a value of the distance of the xleft (i.e. a second distance value) which are moved downwards and rightwards by taking the origin (0, 0) of the coordinate system as the center of the reference system; right describes that the object to be drawn moves to the left by an xright distance value (i.e. a third distance value) with the x-axis maximum value (xmax, 0) as the reference frame center at the x-axis coordinate (xright, 0); the bottom describes that the object to be drawn moves upward by a ybottom distance value (i.e., a fourth distance value) with the y-axis maximum value (0, ymax) as the center of the reference frame at the y-axis coordinate (0, ybottom).
And 205, determining a drawing starting point of the object to be drawn according to the coordinate values in the coordinate information.
In some embodiments, the coordinate values in the coordinate information include at least one of the first distance value to the fourth distance value, which can be selectively set. When the number of coordinate values in the coordinate information is different, the determined drawing start points of the objects to be drawn are also different.
In an alternative embodiment, determining a drawing start point of an object to be drawn according to coordinate values in coordinates includes:
Screening a target coordinate value of the current coordinate axis from the coordinate values of the current coordinate axis, wherein the current coordinate axis is any coordinate axis in different coordinate axes, and the distance between the target coordinate value and the origin is the shortest; and forming a drawing starting point of the object to be drawn by the target coordinate values.
In some embodiments, after the coordinate information of the object to be drawn is obtained, since the coordinate values in the coordinate information include at least one of the first distance value to the fourth distance value, the coordinate value on each coordinate axis in the coordinate system is filtered, and the coordinate value closest to the origin is taken as the target coordinate value on the current coordinate axis, so that the coordinate point formed by the target coordinate values on the two coordinate axes is determined as the drawing starting point of the object to be drawn.
It can be understood that when the above coordinate values are not configured, after the coordinate values of the coordinate information are obtained, the unconfigured coordinate values are assigned as preset values corresponding to the coordinate values. By way of example, and without limitation, the first distance value and the second distance value may be set to 0, the third distance value to the x-axis maximum, and the fourth distance value to the y-axis maximum.
Based on the above-described related embodiments, the coordinates of the object to be drawn are at least one of top, left, right, and bottom, for example, only one coordinate value is configured in the coordinates of the object to be drawn, for example, only one coordinate value top is configured in the coordinates of the object to be drawn, and since the other coordinate values are not configured, the other coordinate values are set to the corresponding preset values, thereby determining that the coordinates of the object to be drawn are (top, 0).
For example, when two coordinate values are arranged in the coordinates of the object to be drawn, for example, the two coordinate values are top and bottom, the coordinates of the object to be drawn are determined as (top, 0). Similarly, when the two coordinate values are left and right, the coordinates of the object to be drawn are determined to be (0, left).
Further, when two coordinate values exist on the current coordinate axis, the picture drawing method further includes:
if the current coordinate axis is the x axis, setting the length of the object to be drawn as a distance value between the second distance value and the third distance value; and if the current coordinate axis is the y axis, setting the width of the object to be drawn as a distance value between the first distance value and the fourth distance value.
In some embodiments, when two coordinate values exist on the current coordinate axis, if the drawing size of the object to be drawn is not configured, the relevant size of the object to be drawn may be determined according to the distance value between the two coordinate values on the coordinate axis. For example, when there are two coordinate values on the x-axis, that is, there are a second distance value and a third distance value, a distance value between the second distance value and the third distance value may be taken as the length of the object to be drawn; when there are two coordinate values on the y-axis, that is, there are a first distance value and a fourth distance value, a distance value between the first distance value and the fourth distance value may be taken as the width of the object to be drawn.
For example, when two coordinate values are configured in the same coordinate axis of the object to be drawn, for example, the two coordinate values are top and bottom, the length of the object to be drawn is set to ymax-top-bottom. Similarly, when the two coordinate values are left and right, the width of the object to be drawn is set to xmax-left-right.
In this embodiment, by adding right and bottom, the limitation of the drawing method that only supports two parameters of left and top in the related art is solved. By changing the coordinates of the object to be drawn from two parameters to four parameters, on one hand, the description method of the coordinate system is enriched, and the object to be drawn is more efficient when being drawn; on the other hand, when the coordinate processing API is called, the interface parameters can be more semantically processed.
In an alternative embodiment, since the coordinates of the object to be drawn in the related art include only two parameters of top and left, that is, it can draw only the coordinate position with respect to the origin of the coordinate system (i.e., the upper left corner of the canvas) to draw the object to be drawn. Since in the prior art only the object to be drawn at the upper left corner position relative to the canvas can be drawn. Therefore, when the user needs to draw at the right lower corner of the distance canvas, the user needs to calculate the coordinate value of the left upper corner of the corresponding canvas when drawing at the right lower corner or other corner positions of the distance canvas after complex budget is carried out in the earlier configuration stage, and the calculation process is complex, so that the drawing efficiency is lower. In the application, by adding two parameters of right and bottom on the basis of left and right, the drawing can be performed at the position away from the upper left corner of the canvas according to left and top, the drawing can be performed at the position away from the lower right corner of the canvas according to right and bottom, the drawing can be performed at the position away from the lower left corner of the canvas according to left and right, and the initial drawing point of an object to be drawn can be directly determined without further calculation according to top and bottom, so that the drawing dimension is diversified, the calculation of a user when relevant drawing configuration information is configured is reduced, and the drawing process efficiency is higher.
Further, when the object to be drawn is obtained by downloading according to the resource path, judging whether the object to be drawn is successfully downloaded after the object to be drawn is downloaded according to the resource path; if not, determining to give up the drawing of the object to be drawn; if yes, go to step 206.
In some embodiments, when there is an inconsistency in the resource path, information is insufficient, or the server does not support opening, the object to be drawn under the resource path cannot be downloaded successfully, and at this time, drawing of the object to be drawn is abandoned, so that the object to be drawn acquired later can be drawn in time.
And 206, drawing the drawing starting point of the object to be drawn in the canvas based on the drawing configuration information to obtain a drawing picture.
In some embodiments, after obtaining the object to be drawn and drawing configuration information of the object to be drawn, the terminal may draw the object to be drawn at a coordinate position in the canvas based on the drawing configuration information, and after all the objects to be drawn are drawn on the canvas, a drawing picture may be obtained.
It can be understood that when an object to be drawn is drawn, its drawing direction is drawn in accordance with a preset drawing direction. The preset drawing direction may be set as required, for example, but not limited to, from top to bottom, and from left to right.
Further, the drawing configuration information further includes a drawing order of the objects to be drawn; drawing the coordinate position of the object to be drawn in the canvas based on the drawing configuration information, including:
and drawing the object to be drawn in the coordinate positions in the canvas according to the drawing sequence.
In some embodiments, the drawing order may be an acquisition order of the objects to be processed. In the picture drawing process, the object to be drawn can be drawn at the coordinate position of the canvas according to the acquisition sequence according to the principle of first acquiring and first drawing. Specifically, after the objects to be drawn are obtained, the obtained objects to be drawn may be stored in the subscriber, and after all the objects to be drawn are obtained, drawing is performed according to the drawing order.
Further, the drawing configuration information further includes a format type of the object to be drawn, where the format type of the object to be drawn may be, for example, a picture format or a text format, and the coordinate position of how to draw the object to be drawn in the canvas is specifically described below by using the format type of the object to be drawn as the picture format and the text format.
When drawing the object to be drawn in the picture format, the picture processing API is called, and when drawing the object to be drawn in the text format, the text processing API is called.
In an alternative embodiment, referring to fig. 4, when the format type of the object to be drawn is a picture format, drawing the drawing starting point of the object to be drawn in the canvas based on the drawing configuration information specifically includes:
step 401, obtaining an original size of an object to be drawn.
In some embodiments, the original size of the object to be drawn represents the size at which the object to be drawn was obtained. The original size of the object to be drawn includes an original length and an original width.
Step 402, calculating the aspect ratio of the object to be drawn according to the original size.
In some embodiments, the aspect ratio of the original dimension may be obtained by calculating the ratio of the original length to the original width.
Step 403, obtaining a first configuration size of the object to be drawn, where the first configuration size includes a configuration length or a configuration width.
In some embodiments, when the object to be drawn is in a picture format, the object to be drawn includes a foreground picture and a background picture, and when the object to be drawn is the foreground picture, drawing configuration information of the object to be drawn includes a first configuration size, where the first configuration size includes at least one of a configuration length and a configuration width; when the object to be drawn is a background picture, the drawing configuration information of the object to be drawn also comprises a layout direction.
Specifically, when the object to be drawn is a background picture, determining a first configuration size of the background picture includes obtaining a layout direction of the object to be drawn; and acquiring the canvas size of the canvas in the layout direction and taking the canvas size as the first configuration size of the object to be drawn.
The layout direction may be obtained from drawing configuration information of the object to be drawn, and the layout direction includes a lateral layout and a longitudinal layout.
For example, when the layout direction is a lateral layout, the canvas size of the canvas on the lateral layout is the width of the canvas, thereby setting the first configuration size of the background picture to the width of the canvas; when the layout direction is the portrait layout, the canvas size of the canvas on the portrait layout is the length of the canvas, thereby setting the first configuration size of the background picture to the length of the canvas.
It will be appreciated that when the configuration size includes both the configuration length and the configuration width, the object to be drawn may be drawn on the canvas directly at the drawing start point according to the configuration length and the configuration width of the configuration size.
And step 404, determining a second configuration size of the object to be drawn according to the aspect ratio and the first configuration size, wherein the second configuration size is a width to be configured when the first configuration size is a length, or the second configuration size is a length to be configured when the first configuration size is a width.
In some embodiments, after the aspect ratio and the first configuration size are obtained, since the first configuration size includes only one of the length and the width of the object to be drawn, the second configuration size in which the object to be drawn is not configured may be determined by the aspect ratio and the configuration size. Specifically, when the first configuration size is a configuration length, the second configuration size is a width to be configured, or when the first configuration size is a configuration width, the second configuration size is a length to be configured.
And 405, drawing the object to be drawn on the canvas according to the first configuration size and the second configuration size at the drawing starting point.
In some embodiments, after determining the drawing start point of the object to be drawn and the size of the object to be drawn in the canvas (i.e., the first configuration size and the second configuration size), the object to be drawn may be drawn on the canvas based on the above information.
It will be appreciated that where both a configuration length and a configuration width are included in the configuration size, the object to be drawn may be drawn directly on the canvas using the configuration size at the drawing start point.
Further, at the drawing start point, after the object to be drawn is drawn on the canvas according to the first configuration size and the second configuration size, the center line of the object to be drawn in the layout direction is aligned with the center line of the canvas in the layout direction.
In some embodiments, when the object to be drawn is a background picture, after the background picture is drawn on the canvas according to the layout direction, there may be a size of the background picture in the direction perpendicular to the layout direction smaller than the canvas size, so that the background picture is not in the middle of the canvas. By aligning the center line of the object to be drawn in the layout direction with the center line of the canvas in the layout direction, the background picture can be centered on the canvas, so that the canvas is more attractive and harmonious.
In another alternative embodiment, referring to fig. 5, when the format type of the object to be drawn is a text format, drawing the object to be drawn at the coordinate position in the canvas includes:
step 501, acquiring the number of characters in an object to be drawn and a first width of a drawing area.
In some embodiments, when the object to be drawn is in a text format, the object to be drawn includes contents of text to be drawn. The number of words and the first width may be obtained from the drawing configuration information.
Step 502, determining a starting point of the drawing area as a drawing starting point.
And 503, sequentially drawing the characters in the object to be drawn in the drawing area.
Step 504, before each drawing word to be drawn, calculating a second width of the drawn word in the current drawing line.
In some embodiments, when drawing the text, the text in the object to be drawn is sequentially drawn in the drawing area, and before each text to be drawn is drawn, the second width of the drawn text in the current drawing line is calculated, so that the width of the text in the current drawing line can be determined in real time, and the situation that the text exceeds the drawing area is avoided.
Step 505, judging whether the difference between the second width and the first width is smaller than the width of the text to be drawn. If yes, go to step 507, if no, go to step 506.
And step 506, drawing the text to be drawn on the current drawing line.
And 507, drawing the text to be drawn on the next line of the current drawing line.
In some embodiments, the second width of the text of the drawing line is calculated in real time by drawing the text in real time, and when the second width is larger than the first width, that is, the width of the modified text is larger than the width of the drawing area, the drawn text is drawn in the next line, so that the situation that the text exceeds the drawing area is avoided.
Step 508, judging whether the characters of the character number are drawn, if yes, ending, otherwise, executing step 503.
In some embodiments, each time a word is drawn in the drawing area, the count is increased by one, or the number of words is decreased by one, and when the count result is equal to the number of words or the number of words is 0, it indicates that the word in the object to be drawn is drawn.
In an alternative embodiment, if the text in the object to be drawn is an english word, to avoid that the english word is split when the english word appears at the end of a certain line, the word length is longer than the length of the remaining space of the line. Before each character to be drawn is drawn, after the second width of the drawn character in the current drawing line is calculated, determining English words in the object to be drawn, and then drawing all characters in the English words in the next line of the current drawing line.
The method for determining the English word in the object to be drawn can adopt a regular matching method.
In some embodiments, by determining that the target word with the second width being greater than the first width is an english word, and drawing all the characters in the english word on the next line where the target word is located, the situation that the english word is drawn on different lines and is split is avoided, and the situation that the english word exceeds the drawing area and the characters overlap with the characters in other drawing areas is avoided.
In an alternative embodiment, after the characters of the character number are drawn, judging whether the drawing area is overlapped with the bottom edge of the canvas or not; if yes, determining the adjustment length of the drawing area; the drawing area is moved upward by a distance of the adjustment length.
In some embodiments, when the text is drawn, the length of the drawing area will change along with the adjustment of the number of lines, so after the text is drawn, whether the drawing area overlaps with the bottom edge of the canvas or not can be further determined, and if so, the drawing area needs to be moved upwards to avoid that the text exceeds the canvas. Specifically, when the drawing area overlaps the bottom edge of the canvas, the adjustment length may be used as the adjustment length according to the length of the drawing area beyond the bottom edge of the canvas.
Optionally, when the bottom edge of the drawing area overlaps with the bottom edge of the canvas, the adjustment length may be set to be the row of text in the drawing area, so as to avoid the situation that the last row of the drawing area is attached to the bottom edge of the canvas and avoid the situation that text is truncated by the bottom edge of the canvas.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a picture drawing device, as shown in fig. 6, where the device may include:
A first obtaining module 601 that obtains a canvas generation request, the canvas generation request including a canvas size;
a canvas generation module 602, configured to generate a canvas with a canvas size according to the canvas generation request;
a coordinate system establishing module 603, configured to establish a coordinate system with an upper left corner of the canvas as an origin, and determine an x-axis maximum value and a y-axis maximum value in the coordinate system;
a second obtaining module 604, configured to obtain a drawing configuration information of the object to be drawn and the object to be drawn, where the drawing configuration information includes coordinates of the object to be drawn, and the coordinates in the coordinates include a first distance value in which the object to be drawn moves downward with an origin as a reference frame center, a second distance value in which the object to be drawn moves rightward, and at least one of a third distance value in which the x-axis maximum value is used as a reference frame center moves leftward, and a fourth distance value in which the y-axis maximum value is used as a reference frame center moves upward;
a determining module 605, configured to determine a drawing start point of the object to be drawn according to the coordinate values in the coordinate information;
and the drawing module 606 is used for drawing the object to be drawn at the coordinate position in the canvas based on the drawing configuration information to obtain a drawing picture.
Based on the same concept, the embodiment of the application also provides an electronic device, as shown in fig. 7, where the electronic device mainly includes: a processor 701, a memory 702, and a communication bus 703, wherein the processor 701 and the memory 702 perform communication with each other through the communication bus 703. The memory 702 stores a program executable by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement the following steps:
Acquiring a canvas generation request, wherein the canvas generation request comprises a canvas size;
according to the canvas generation request, generating a canvas with the size of the canvas;
establishing a coordinate system by taking the upper left corner of the canvas as an origin, and determining an x-axis maximum value and a y-axis maximum value in the coordinate system;
obtaining an object to be drawn and drawing configuration information of the object to be drawn, wherein the drawing configuration information comprises coordinates of the object to be drawn, and the coordinates in the coordinates comprise at least one of a first distance value, a second distance value, a third distance value and a fourth distance value, wherein the first distance value and the second distance value of the object to be drawn move downwards and rightwards by taking an origin as a reference frame center, and the third distance value and the fourth distance value of the object to be drawn move leftwards by taking an x-axis maximum value as a reference frame center and upwards by taking a y-axis maximum value as a reference frame center;
determining a drawing starting point of the object to be drawn according to the coordinate value in the coordinate information;
and drawing the object to be drawn at the coordinate position in the canvas based on the drawing configuration information to obtain a drawing picture.
The communication bus 703 mentioned in the above-mentioned electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated to PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated to EISA) bus, or the like. The communication bus 703 may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 7, but not only one bus or one type of bus.
The memory 702 may include random access memory (Random Access Memory, RAM) or may include non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor 701.
The processor 701 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In yet another embodiment of the present invention, a storage medium is provided, in which instructions are stored, which when executed on a computer, cause the computer to perform the picture drawing method according to any one of the above embodiments.
In a further embodiment of the present invention, a computer program product comprising instructions which, when run on a computer, cause the computer to perform the picture drawing method according to any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage media may be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A picture drawing method, characterized by comprising:
obtaining a canvas generation request, wherein the canvas generation request comprises a canvas size;
generating canvas with the size of the canvas according to the canvas generation request;
establishing a coordinate system by taking the upper left corner of the canvas as an origin, and determining an x-axis maximum value and a y-axis maximum value in the coordinate system;
acquiring an object to be drawn and drawing configuration information of the object to be drawn, wherein the drawing configuration information comprises coordinate information of the object to be drawn, and coordinate values in the coordinate information comprise at least one of a third distance value of the object to be drawn moving leftwards by taking the maximum value of the x axis as a reference system center and a fourth distance value of the object to be drawn moving upwards by taking the maximum value of the y axis as the reference system center;
determining a drawing starting point of the object to be drawn according to the coordinate value in the coordinate information;
and drawing the object to be drawn at the drawing starting point in the canvas based on the drawing configuration information to obtain a drawing picture.
2. The method according to claim 1, wherein the determining the drawing start point of the object to be drawn from the coordinate values in the coordinates includes:
screening a target coordinate value of a current coordinate axis from the coordinate values of the current coordinate axis, wherein the current coordinate axis is any coordinate axis in different coordinate axes, and the distance between the target coordinate value and the origin is shortest;
and forming a drawing starting point of the object to be drawn by the target coordinate value.
3. The method according to claim 2, wherein when there are two coordinate values on the current coordinate axis, the coordinate values further include a first distance value that an object to be drawn moves downward with an origin as a reference frame center, a second distance value that moves rightward, the method further comprising:
if the current coordinate axis is the x axis, setting the length of the object to be drawn as a distance value between the second distance value and the third distance value;
and if the current coordinate axis is the y axis, setting the width of the object to be drawn as a distance value between the first distance value and the fourth distance value.
4. A method according to any one of claims 1-3, wherein the drawing configuration information includes a format type of the object to be drawn;
The drawing the object to be drawn at the drawing starting point in the canvas based on the drawing configuration information comprises the following steps:
when the format type of the object to be drawn is a picture format, acquiring the original size of the object to be drawn;
calculating the length-width ratio of the object to be drawn according to the original size;
acquiring a first configuration size of the object to be drawn, wherein the first configuration size comprises a configuration length or a configuration width;
determining a second configuration size of the object to be drawn according to the aspect ratio and a first configuration size, wherein the second configuration size is a width to be configured when the first configuration size is the configuration length, or the second configuration size is a length to be configured when the first configuration size is the configuration width;
and drawing the object to be drawn on the canvas according to the first configuration size and the second configuration size at the drawing starting point.
5. The method of claim 4, wherein the obtaining the configuration size of the object to be drawn comprises:
if the object to be drawn is a background picture, acquiring the layout direction of the object to be drawn;
And acquiring the canvas size of the canvas in the layout direction and taking the canvas size as the configuration size of the object to be drawn.
6. The method of claim 5, wherein after the drawing the object to be drawn on the canvas according to the first configuration size and the second configuration size at the drawing start point, further comprising:
and aligning the center line of the object to be drawn in the layout direction with the center line of the canvas in the layout direction.
7. A method according to any one of claims 1-3, wherein the drawing configuration information further includes a format type of the object to be drawn;
the drawing the object to be drawn at the drawing starting point in the canvas based on the drawing configuration information comprises the following steps:
when the format type of the object to be drawn is a text format, acquiring the number of the text in the object to be drawn and the first width of the drawing area;
determining a starting point of the drawing area as the drawing starting point;
sequentially drawing the characters in the object to be drawn in the drawing area;
before each character to be drawn is drawn, calculating a second width of the drawn character in the current drawing line;
And if the difference value between the second width and the first width is smaller than the width of the characters to be drawn, drawing the characters to be drawn on the next line of the current drawing line until the characters of the number of the characters are drawn.
8. A picture drawing apparatus characterized by comprising:
the first acquisition module acquires a canvas generation request, wherein the canvas generation request comprises a canvas size;
the canvas generation module is used for generating a canvas with the size of the canvas according to the canvas generation request;
the coordinate system establishing module is used for establishing a coordinate system by taking the upper left corner of the canvas as an origin, and determining an x-axis maximum value and a y-axis maximum value in the coordinate system;
a second obtaining module, configured to obtain an object to be drawn and drawing configuration information of the object to be drawn, where the drawing configuration information includes coordinate information of the object to be drawn, and coordinate values in the coordinate information include at least one of a third distance value that the object to be drawn moves leftwards with the x-axis maximum value as a reference frame center and a fourth distance value that the object to be drawn moves upwards with the y-axis maximum value as a reference frame center;
the determining module is used for determining a drawing starting point of the object to be drawn according to the coordinate values in the coordinate information;
And the drawing module is used for drawing the object to be drawn at the drawing starting point in the canvas based on the drawing configuration information to obtain a drawing picture.
9. An electronic device, comprising: the device comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus; the memory is used for storing a computer program; the processor is configured to execute a program stored in the memory to implement the picture drawing method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the picture drawing method of any one of claims 1 to 7.
CN202110864708.1A 2021-07-29 2021-07-29 Picture drawing method and device, electronic equipment and storage medium Active CN113658293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110864708.1A CN113658293B (en) 2021-07-29 2021-07-29 Picture drawing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110864708.1A CN113658293B (en) 2021-07-29 2021-07-29 Picture drawing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113658293A CN113658293A (en) 2021-11-16
CN113658293B true CN113658293B (en) 2023-07-21

Family

ID=78490858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110864708.1A Active CN113658293B (en) 2021-07-29 2021-07-29 Picture drawing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113658293B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668268A (en) * 1992-08-21 1994-03-11 Mutoh Ind Ltd Vector/raster conversion system
CN1121222A (en) * 1993-11-25 1996-04-24 卡西欧计算机公司 Graph display apparatus
JP2003085589A (en) * 2002-07-26 2003-03-20 Canon Inc Method and apparatus for processing graphic information
JP2012198670A (en) * 2011-03-18 2012-10-18 Fujitsu Ltd Figure drawing program and figure drawing device
JP2012248167A (en) * 2011-05-31 2012-12-13 Sharp Corp Electronic whiteboard device
CN112102437A (en) * 2020-08-04 2020-12-18 中科三清科技有限公司 Canvas-based radar map generation method and device, storage medium and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2524047A (en) * 2014-03-12 2015-09-16 Samsung Electronics Co Ltd Improvements in and relating to rendering of graphics on a display device
CN105183333A (en) * 2014-06-12 2015-12-23 福建福昕软件开发股份有限公司北京分公司 Method for displaying strokes on painting canvas
CN105389170A (en) * 2015-11-20 2016-03-09 中国农业大学 Drawing method and system
CN109145931B (en) * 2018-09-03 2019-11-05 百度在线网络技术(北京)有限公司 Object detecting method, device and storage medium
EP3842910A4 (en) * 2018-10-24 2021-11-10 Samsung Electronics Co., Ltd. Method and device for processing drawn content on terminal apparatus, and terminal apparatus
EP3726184A1 (en) * 2019-04-16 2020-10-21 PSA Automobiles SA Method and device for determining the curve of a road

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668268A (en) * 1992-08-21 1994-03-11 Mutoh Ind Ltd Vector/raster conversion system
CN1121222A (en) * 1993-11-25 1996-04-24 卡西欧计算机公司 Graph display apparatus
JP2003085589A (en) * 2002-07-26 2003-03-20 Canon Inc Method and apparatus for processing graphic information
JP2012198670A (en) * 2011-03-18 2012-10-18 Fujitsu Ltd Figure drawing program and figure drawing device
JP2012248167A (en) * 2011-05-31 2012-12-13 Sharp Corp Electronic whiteboard device
CN112102437A (en) * 2020-08-04 2020-12-18 中科三清科技有限公司 Canvas-based radar map generation method and device, storage medium and terminal

Also Published As

Publication number Publication date
CN113658293A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
JP6479142B2 (en) Image identification and organization according to layout without user intervention
CN107992301B (en) User interface implementation method, client and storage medium
JP6226394B2 (en) Instantiable gesture object
CN107831974B (en) Information sharing method and device and storage medium
CN110708202B (en) Configuration method, device, equipment and storage medium of plug-in node
KR20190067229A (en) Application interface management method and apparatus
CN111443863A (en) Page control method and device, storage medium and terminal
KR101975049B1 (en) Method and apparatus for setting background of ui control, and terminal
CN114779987B (en) Method, device, terminal and storage medium for displaying content
WO2019233307A1 (en) User interface display method and apparatus, and terminal and storage medium
CN107315595B (en) Desktop layout method and device and user terminal
CN112328353B (en) Display method and device of sub-application player, electronic equipment and storage medium
CN107391017B (en) Word processing method, device, mobile terminal and storage medium
WO2019020061A1 (en) Video dialogue processing method, video client, video server, and computer readable storage medium
US9008466B2 (en) Sharing or applying digital image editing operations
CN110471700B (en) Graphic processing method, apparatus, storage medium and electronic device
KR20140086979A (en) Method of internet browser-based remote user interface virtual mouse cursor positioning
CN111147659A (en) Display control method and device, electronic equipment and storage medium
CN111324398A (en) Recent content processing method, device, terminal and storage medium
CN113658293B (en) Picture drawing method and device, electronic equipment and storage medium
CN111931708A (en) Form generation method and device
CN105635832B (en) A kind of method for processing video frequency and device
CN108304104B (en) Data acquisition method and equipment, storage medium and terminal thereof
CN106383705B (en) Method and device for setting mouse display state in application thin client
EP3612921A1 (en) Enhanced inking capabilities for content creation applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant