CN111524210A - Method and apparatus for generating drawings - Google Patents

Method and apparatus for generating drawings Download PDF

Info

Publication number
CN111524210A
CN111524210A CN202010280384.2A CN202010280384A CN111524210A CN 111524210 A CN111524210 A CN 111524210A CN 202010280384 A CN202010280384 A CN 202010280384A CN 111524210 A CN111524210 A CN 111524210A
Authority
CN
China
Prior art keywords
graph
response
generating
canvas
graphic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010280384.2A
Other languages
Chinese (zh)
Inventor
邬一平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010280384.2A priority Critical patent/CN111524210A/en
Publication of CN111524210A publication Critical patent/CN111524210A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method and a device for generating drawings, and relates to the field of cloud computing. The specific implementation scheme is as follows: obtaining a canvas in response to receiving a drawing request in an instant messaging application program; in response to the detection of the touch sliding operation on the canvas, drawing a first graph on the canvas according to the touch sliding track and preset painting parameters; in response to detecting a revocation operation for the second graph, deleting the second graph from the graphs to obtain a third graph; and generating an instant message comprising the third graph in response to the detection of the export operation, and sending the instant message to the opposite terminal. The embodiment provides a light-weight drawing tool for assisting network communication, simplifies the drawing process and improves the network communication efficiency.

Description

Method and apparatus for generating drawings
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a cloud computing technology.
Background
In the process of on-line communication with colleagues and friends at ordinary times, a drawing is often needed to complete the communication when the description of a thing is not clear sometimes, but no good drawing software is available on the current mobile phone, particularly the mobile phone of an android system, and no particularly light drawing software which runs out and is used for assisting the scene is available on the apple system.
The apple system has a self-contained note tool, but the scene is heavy, and online storage is not supported. In the communication process, the original communication program needs to be quitted, then the communication program returns to the apple note program, after the graph is drawn, the graph needs to be specially exported to be a picture, and then the picture can be uploaded to the opposite user, obviously, the process is complicated, and a data backup mechanism does not exist.
The built-in tools of the chat tool only can make particularly simple scrawling, and have the requirement of uploading photos, and the tools are particularly few.
Disclosure of Invention
A method, apparatus, device, and storage medium for generating a drawing are provided.
According to a first aspect, there is provided a method for generating a drawing, comprising: obtaining a canvas in response to receiving a drawing request in an instant messaging application program; in response to the fact that touch sliding operation on the canvas is detected, drawing a first graph on the canvas according to a touch sliding track and preset painting parameters; in response to detecting a revocation operation for a second graph, deleting the second graph from the first graph to obtain a third graph; and generating an instant message comprising the third graph in response to the detection of the export operation, and sending the instant message to the opposite terminal.
According to a second aspect, there is provided an apparatus for generating a drawing, comprising: an acquisition unit configured to acquire a canvas in response to receiving a drawing request in an instant messaging application; the drawing unit is configured to respond to the detection of touch sliding operation on the canvas, and draw a first graph on the canvas according to the touch sliding track and preset painting parameters; a revocation unit configured to delete the second graphic from the graphics, resulting in a third graphic, in response to detecting a revocation operation for the second graphic; and a generating unit configured to generate an instant message including the third graphic in response to the detection of the derivation operation, and transmit the instant message to the counterpart terminal.
According to a third aspect, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the first aspects.
According to a fourth aspect, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of the first aspects.
According to the technology of the application, the canvas is called, drawing is carried out according to the touch sliding track of the user, lines can be withdrawn at any time, and finally the drawn graph is generated to be exported. The hand-drawn picture can be added under the condition that the current instant messaging application program is not quitted, and the hand-drawn picture can be sent to the opposite side after being drawn without local storage, so that the convenience and the communication efficiency of network communication are improved, and the storage space is saved. The problem that drawing cannot be flexibly and quickly carried out in the network conversation process is solved, and the network communication efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram for one embodiment of a method for generating a drawing in accordance with the present application;
FIG. 3 is a flow diagram of yet another embodiment of a method for generating a drawing in accordance with the present application;
4a-4c are schematic diagrams of an application scenario of a method for generating a drawing according to the present application;
FIG. 5 is a schematic diagram of an embodiment of an apparatus for generating a drawing in accordance with the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use with an electronic device implementing embodiments of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the present method for generating a drawing or apparatus for generating a drawing may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as an instant messaging application (e.g., WeChat), a web browser application, a shopping-like application, a search-like application, a mailbox client, social platform software, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a touch screen and supporting chat conversation and drawing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio La6erii, motion Picture Experts compression standard Audio layer 3), MP4 players (Moving Picture Experts Group Audio La6er IV, motion Picture Experts compression standard Audio layer 4), laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The users can communicate with each other via the instant messaging application installed in the terminal devices 101, 102 and 103. In the communication process, the user can draw in the instant communication application program at any time and then send the drawing to the opposite-end user. The user can also store the drawing under the own account in the server, and the drawing can be retrieved even if the terminal equipment is replaced.
Server 105 may be a server that provides various services, such as a background drawing server that provides support for drawing tools on terminal devices 101, 102, 103. The background drawing server can analyze and process the received data such as the drawing and the like, and store the drawing under the account of the user. The user can check the own drawing after logging in the account.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for generating the drawing provided by the embodiment of the present application is generally executed by the terminal devices 101, 102, 103, and accordingly, the apparatus for generating the drawing is generally disposed in the terminal devices 101, 102, 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow diagram of one embodiment of a method for generating a drawing in accordance with the present application is shown. The method for generating a drawing comprises the following steps:
step 201, in response to receiving a drawing request in an instant messaging application program, obtaining a canvas.
In this embodiment, when an instant messaging application (e.g., WeChat) running by an execution subject (e.g., the terminal device shown in fig. 1) of the method for generating a drawing detects that a user calls a drawing applet, the drawing applet is opened, and a canvas is called, where the canvas may be a canvas blank canvas. The picture can also be used as a canvas according to the selection of the user. The size of the canvas can be defaulted to the full screen size, and the size of the canvas can be adaptively adjusted according to the chat window. For example, the chat window is floated on the canvas, and the user can move or close the chat window at will without missing the conversation content while drawing. The window of the last conversation prior to switching to the widget may be detected as a floating displayed chat window. The canvas may have a variety of option icons such as an icon for setting a brush parameter, an eraser, a graphical marquee, an insertion tool, a trash can icon, a dismiss icon, save, export, edit, etc. Clicking on the insertion tool may display an edit menu, which may include inserting pictures, inserting text, etc.
And 202, in response to the detection of the touch sliding operation on the canvas, drawing a first graph on the canvas according to the touch sliding track and preset painting parameters.
In this embodiment, the touch slide track of the user is displayed on the canvas, so as to obtain the first graph. The painting parameters can be preset or adjusted after painting. The brushstroke parameter includes at least one of: material, thickness, transparency, color. The material may include: pencils, pens, oil pencils, and the like.
The line drawn between each start touch and stop touch is one stroke. Each line is saved in a line list. When the user selects a line in the list of lines, the selected trajectory is highlighted. The list of lines may be displayed on the canvas for selection by the user. After the lines are selected, the color, thickness, etc. of the lines can be adjusted. In addition to selecting a line in the list of lines, the line can be selected by clicking any point on the line. At least one line may also be selected by a selection box, which may select a segment within the line.
And step 203, in response to detecting the undo operation on the second graph, deleting the second graph from the graphs to obtain a third graph.
In the present embodiment, the second graphic is a graphic to be deleted. The third pattern is a pattern remaining after the second pattern is deleted from the first pattern. The second graphic may be the most recently drawn line and the undo operation may be the most recently saved line in the default undo line list. The user may also select tracks to undo from the list of lines. Optionally, the second graphic to be revoked may also be selected directly in the canvas. The second graphic may be a single line or a combination of lines. One line can be selected by touching any point on the line. The line to be dismissed may be dragged into the trash. The deleted lines are stored in the garbage can and can be restored from the garbage can. All lines can also be dismissed, i.e., the canvas is emptied. Optionally, the line may also be dismissed by some gesture operations, e.g., long pressing the line or re-pressing the line. The second graph can also be a graph in a certain area, and all lines in the area are deleted.
And step 204, responding to the detection of the export operation, generating an instant message comprising a third graph and sending the instant message to the opposite terminal.
In this embodiment, the canvas has a lead-out option, and the user forms a picture with the graphics on the canvas after clicking to generate an instant message, and sends the instant message to the other terminal. The instant message is exported by default to the last dialog box. Alternatively, they may be exported to other users or stored locally. Optionally, export to other applications.
According to the method provided by the embodiment of the application, the applet is called in the instant messaging application program for drawing, the original instant messaging application program does not need to be quitted, drawing can be carried out, the drawing is finished and sent, local storage is not needed, convenience and communication efficiency of network communication are improved, and storage space is saved. The problem that drawing cannot be flexibly and quickly carried out in the network conversation process is solved, and the network communication efficiency is improved.
With further reference to FIG. 3, a flow diagram of yet another embodiment of a method for generating a drawing is shown. The flow of the method for generating the drawing comprises the following steps:
in response to receiving a drawing request, a canvas is obtained, step 301.
Step 301 is substantially the same as step 201, and therefore will not be described again.
And 302, in response to the detection of the touch sliding operation on the canvas, drawing a first graph on the canvas according to the touch sliding track and preset painting parameters.
In this embodiment, step 302 is substantially the same as step 202, and therefore is not described again.
In some optional implementations of the embodiment, in response to detecting a long-press operation or a re-press operation of the user, the thickness of the brush (or the brush made of other materials) is adjusted according to the operation time length. The long press refers to that the time of a certain point of the touch screen exceeds a preset time, and the re-press refers to that the pressure of the certain point of the touch screen exceeds a preset pressure value. The brush may be thickened as the user holds down at a certain point in time until it becomes the thickest brush, and may be tapered if the long press continues. Similarly, the brush thickness may be increased by continually pressing a point until the thickest brush is reached, and the brush may be tapered if the press is continued. The scheme can quickly adjust the thickness of the paintbrush without switching to a paintbrush option, so that the drawing process is simpler and more convenient.
Step 303, in response to detecting the undo operation for the second graph, deleting the second graph from the graphs to obtain a third graph.
Step 303 is substantially the same as step 203, and therefore is not described in detail.
In some optional implementations of this embodiment, an editing tool may be selected to edit the graphics on the canvas, the editing tool including at least one of: rubber, a graphic selection frame and an insertion tool. The rubber can be used for erasing the existing lines, and the line in one area can be selected by the graphic selection frame to be uniformly edited, for example, the line in a circular area is selected to change the color, the thickness and the like. The insertion tool may insert pictures, text, emoticons, etc. Through the editing tool, the idea of the user can be more accurately expressed by drawing, the key points are highlighted, and the meaning of the drawing is easy to understand by the opposite side.
And 304, in response to the detection of the export operation, generating an instant message comprising a third graph and sending the instant message to the opposite terminal.
Step 304 is substantially the same as step 204 and thus will not be described again.
In some optional implementations of the present embodiment, a correspondence between a position of the touch slide trajectory and time is recorded. And generating an instant message according to the corresponding relation and the third graph so that the opposite terminal can display the drawing process of the graph according to the corresponding relation.
The user records the time each time the finger draws a point while sliding on the touch. The function of recording the screen is realized. The instant message records not only the graph, but also the time of each point drawn on the canvas, and the receiver can select to play the drawing, thereby displaying the drawing process of the user. Therefore, the opposite side can clearly know the drawing sequence, and the contents expressed by the drawing can be clearer.
In some optional implementations of the embodiment, the narration voice is recorded during the touch sliding process. And generating an instant message according to the explication voice and the third graph so that the opposite terminal can synchronously play the explication voice when the drawing process of the graph is displayed.
The user can explain the side painting in the drawing process and explain the recording. Recording can be started by default while the canvas is opened, and recording can be started by clicking a recording key on the canvas. The instant message records not only the graph but also the explanation, and the opposite side terminal can more clearly understand the intention of the user through the explanation recording when viewing the picture. The recording can be stored simultaneously with the corresponding relation between the position and the time, or only the recording can be stored. The communication efficiency is further improved through the combination of the explanation and the drawing of the user.
Step 305, in response to detecting the save operation, storing the third graph under the account of the logged-in instant messaging application program.
In this embodiment, the user may click on the save icon on the canvas and select to store the third graphic under the account of the logged-in instant messaging application. And may also be saved locally. And after the user logs in the account of the instant messaging application program, the user can still find the self-drawn graph by virtue of the account even if the terminal equipment is replaced. In response to detecting a user's work-viewing operation, displaying a list of works under the user's account that has logged into the instant messaging application. The list of works may be displayed in a thumbnail or list manner.
In some optional implementation manners of the embodiment, in response to receiving a picture sent by the other terminal, a graph is drawn on the picture according to the user touch sliding track and preset painting parameters. The picture sent by the other party can be received and edited on the basis of drawing of the other party, so that interaction between the two parties is realized, the communication efficiency is improved, and the interestingness is increased.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the flow of the method for generating a drawing in this embodiment represents a step of storing the third graph below the account of the user that has logged into the instant messaging application, and adds an illustration and a drawing. Therefore, the scheme described in the embodiment can introduce more drawing related information, so that more comprehensive information exchange is realized, and the communication efficiency is improved.
With continuing reference to fig. 4a-4c, fig. 4a-4c are schematic diagrams of an application scenario of the method for generating a drawing according to the present embodiment. In the application scenario of fig. 4a, when a user a chats with a user B through a WeChat on a mobile phone, if the user B needs to be explained through drawing, the user a opens a blank canvas after calling an applet of the WeChat, and the canvas has some painting options and menu bars. The painting option is displayed at the lower end of the mobile phone, and the brush, the pen, the pencil, the eraser, the color and the like are sequentially arranged from left to right. The menu bar displayed on the upper part of the canvas is cleared, cancelled, exported, stored, works and the like from left to right in sequence. If user A clicks on the color icon, the color option shown in FIG. 4b is displayed for user selection. The user a selects a color and draws the color in the selected color. If user A does not select a color or brush, draw by default. After drawing, user A can click the export of menu bar, and the drawn graph is generated into instant message and then sent to user B. User a may also click on the save option to save the picture under user a's account. Clicking on the "composition" option, as shown in FIG. 4c, views the picture drawn by user A. The pictures in the work list may be edited again. And the user B can directly view the picture after receiving the picture through the WeChat dialog box, and can also call a small program of WeChat to edit the picture by clicking the picture.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present application provides an embodiment of an apparatus for generating a drawing, which corresponds to the embodiment of the method shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for generating a drawing of the present embodiment includes: an acquisition unit 501, a rendering unit 502, a revocation unit 503, and a generation unit 504. The obtaining unit 501 is configured to obtain a canvas in response to receiving a drawing request in an instant messaging application program; a drawing unit 502 configured to draw a first graphic on the canvas according to the touch slide trajectory and a preset drawing parameter in response to detecting a touch slide operation on the canvas; a revocation unit 503 configured to delete the second graphic from the graphics, resulting in a third graphic, in response to detecting a revocation operation for the second graphic; a generating unit 504 configured to generate an instant message including a third graphic to transmit to the counterpart terminal in response to the detection of the derivation operation.
In this embodiment, specific processing of the acquiring unit 501, the drawing unit 502, the cancelling unit 503, and the generating unit 504 of the apparatus 500 for generating a drawing may refer to step 201, step 202, step 203, step 204 in the corresponding embodiment of fig. 2.
In some optional implementations of this embodiment, the apparatus 500 further comprises a saving unit (not shown in the drawings) configured to: in response to detecting the save operation, storing the third graphic under the account logged into the instant messaging application.
In some optional implementations of this embodiment, the generating unit 504 is further configured to: recording the corresponding relation between the position of the touch sliding track and the time; and generating an instant message according to the corresponding relation and the graph so that the opposite terminal can display the drawing process of the graph according to the corresponding relation.
In some optional implementations of this embodiment, the generating unit 504 is further configured to: recording an explication voice in the process of touch sliding; and generating an instant message according to the explication voice and the graph so that the opposite terminal can synchronously play the explication voice when the drawing process of the graph is displayed.
In some optional implementations of this embodiment, the apparatus 500 further includes a parameter adjusting unit (not shown in the drawings) configured to: and adjusting the thickness of the brush according to the operation time length in response to the detection of the long-press operation or the re-press operation.
In some optional implementations of this embodiment, the apparatus 500 further comprises an editing unit (not shown in the drawings) configured to: selecting an editing tool to edit the graph on the canvas, wherein the editing tool comprises at least one of the following items: rubber, a graphic selection frame and an insertion tool.
In some optional implementations of this embodiment, the rendering unit 502 is further configured to: and in response to the received picture sent by the opposite terminal, drawing a first graph on the picture according to the touch sliding track and the preset painting parameters.
In some optional implementations of this embodiment, the apparatus 500 further comprises a viewing unit (not shown in the drawings) configured to: in response to detecting the view work operation, displaying a list of works under the account that has logged into the instant messaging application.
In some optional implementations of this embodiment, the paintbrush parameters include at least one of: material, thickness, transparency, color.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 6, is a block diagram of an electronic device for generating a drawing according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.
The memory 602 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for generating a drawing provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method for generating a drawing provided herein.
The memory 602, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for generating drawings in the embodiment of the present application (for example, the obtaining unit 501, the drawing unit 502, the undoing unit 503, and the generating unit 504 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 602, that is, implements the method for generating drawings in the above method embodiments.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device for generating drawings, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 optionally includes memory located remotely from the processor 601, which may be connected to an electronic device for generating drawings over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the method for generating a drawing may further comprise: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus used to generate the drawing, such as an input device like a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, etc. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the hand-drawn picture can be added under the condition that the current instant messaging application program is not quitted, and the hand-drawn picture can be sent to the opposite side after being drawn without local storage, so that the convenience and the communication efficiency of network communication are improved, and the storage space is saved. The problem that drawing cannot be flexibly and quickly carried out in the network conversation process is solved, and the network communication efficiency is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A method for generating a drawing, comprising:
obtaining a canvas in response to receiving a drawing request in an instant messaging application program;
in response to the fact that touch sliding operation on the canvas is detected, drawing a first graph on the canvas according to a touch sliding track and preset painting parameters;
in response to detecting a revocation operation for a second graph, deleting the second graph from the first graph to obtain a third graph;
and generating an instant message comprising the third graph in response to the detection of the export operation, and sending the instant message to the opposite terminal.
2. The method of claim 1, wherein the method further comprises:
in response to detecting the save operation, storing the third graphic under the account logged into the instant messaging application.
3. The method of claim 1, wherein the generating an instant message including the third graphic comprises:
recording the corresponding relation between the position of the touch sliding track and the time;
and generating an instant message according to the corresponding relation and the third graph so that the opposite terminal can display the drawing process of the graph according to the corresponding relation.
4. The method of claim 1, wherein the generating an instant message including the third graphic comprises:
recording an explication voice in the process of touch sliding;
and generating an instant message according to the comment voice and the third graph so that the opposite terminal can synchronously play the comment voice when displaying the drawing process of the graph.
5. The method of claim 1, wherein the method further comprises:
and responding to the received picture sent by the opposite terminal, and drawing a graph on the picture according to the touch sliding track and preset painting parameters.
6. The method of claim 2, wherein the method further comprises:
in response to detecting the view work operation, displaying a list of works under the account that has logged into the instant messaging application.
7. An apparatus for generating a drawing, comprising:
an acquisition unit configured to acquire a canvas in response to receiving a drawing request in an instant messaging application;
a drawing unit configured to draw a first graphic on the canvas according to a touch slide track and a preset drawing parameter in response to detecting a touch slide operation on the canvas;
a revocation unit configured to delete a second graphic from the first graphic, resulting in a third graphic, in response to detecting a revocation operation for the second graphic;
a generating unit configured to generate an instant message including the third graphic in response to detection of the deriving operation, and transmit the instant message to the counterpart terminal.
8. The apparatus of claim 7, wherein the apparatus further comprises a saving unit configured to:
in response to detecting the save operation, storing the third graphic under the account logged into the instant messaging application.
9. The apparatus of claim 7, wherein the generating unit is further configured to:
recording the corresponding relation between the position of the touch sliding track and the time;
and generating an instant message according to the corresponding relation and the third graph so that the opposite terminal can display the drawing process of the graph according to the corresponding relation.
10. The apparatus of claim 7, wherein the generating unit is further configured to:
recording an explication voice in the process of touch sliding;
and generating an instant message according to the comment voice and the third graph so that the opposite terminal can synchronously play the comment voice when displaying the drawing process of the graph.
11. The apparatus of claim 7, wherein the rendering unit is further configured to:
and responding to the received picture sent by the opposite terminal, and drawing a graph on the picture according to the touch sliding track and preset painting parameters.
12. The apparatus of claim 8, wherein the apparatus further comprises a viewing unit configured to:
in response to detecting the view work operation, displaying a list of works under the account that has logged into the instant messaging application.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202010280384.2A 2020-04-10 2020-04-10 Method and apparatus for generating drawings Pending CN111524210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010280384.2A CN111524210A (en) 2020-04-10 2020-04-10 Method and apparatus for generating drawings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010280384.2A CN111524210A (en) 2020-04-10 2020-04-10 Method and apparatus for generating drawings

Publications (1)

Publication Number Publication Date
CN111524210A true CN111524210A (en) 2020-08-11

Family

ID=71901598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010280384.2A Pending CN111524210A (en) 2020-04-10 2020-04-10 Method and apparatus for generating drawings

Country Status (1)

Country Link
CN (1) CN111524210A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686973A (en) * 2020-12-24 2021-04-20 京东方科技集团股份有限公司 Image editing method, control device, storage medium and computer equipment
CN114003163A (en) * 2021-10-27 2022-02-01 腾讯科技(深圳)有限公司 Image processing method and apparatus, storage medium, and electronic device
CN114547047A (en) * 2021-12-22 2022-05-27 广州工程技术职业学院 Online collaborative drawing method, device, equipment and storage medium
CN114995727A (en) * 2022-05-23 2022-09-02 Oppo广东移动通信有限公司 Method for locally operating drawing content, electronic equipment and storage medium
CN115480654A (en) * 2021-05-29 2022-12-16 华为技术有限公司 Line backspacing method of input panel and related device
CN115774513A (en) * 2022-11-22 2023-03-10 北京元跃科技有限公司 System, method, electronic device and medium for determining drawing direction based on ruler

Citations (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1208889A (en) * 1997-07-25 1999-02-24 太阳微***有限公司 Detachable JAVA applets
CN101650637A (en) * 2009-09-07 2010-02-17 苏州瀚瑞微电子有限公司 Method for editing graph on touch screen
CN102263789A (en) * 2011-07-15 2011-11-30 同济大学 Call patterning assisting system
CN102866898A (en) * 2012-07-20 2013-01-09 厦门亿联网络技术股份有限公司 Method for quickly displaying interface on embedded device
CN103729196A (en) * 2014-01-22 2014-04-16 南京恒知讯科技有限公司 Graphic layer based electronic drawing board system drawn by multiple persons, processing method and processing equipment
CN104468338A (en) * 2014-12-25 2015-03-25 北京奇虎科技有限公司 Instant messaging method, client sides and terminal device
CN104503694A (en) * 2014-12-24 2015-04-08 北京奇虎科技有限公司 Drawing data instant messaging based method, client and system
CN104850408A (en) * 2015-05-28 2015-08-19 深圳市陨石通信设备有限公司 Method and device for drawing pictures on smartwatch
CN105068727A (en) * 2015-08-18 2015-11-18 百度在线网络技术(北京)有限公司 Realization method and device for drawing tool
CN106294474A (en) * 2015-06-03 2017-01-04 阿里巴巴集团控股有限公司 The processing method of video data, Apparatus and system
CN106445087A (en) * 2015-07-21 2017-02-22 阿里巴巴集团控股有限公司 Method and device for canceling input operation
CN106843728A (en) * 2017-01-16 2017-06-13 珠海市魅族科技有限公司 A kind of operation trace processing method and system
CN107168635A (en) * 2017-05-05 2017-09-15 百度在线网络技术(北京)有限公司 Information demonstrating method and device
CN107808554A (en) * 2017-09-26 2018-03-16 上海欧美拉光电股份有限公司 A kind of intellectual development drawing entertainment experience equipment for being used to cultivate people
CN108153450A (en) * 2017-11-20 2018-06-12 羽触(北京)科技有限公司 A kind of terminal device, the input unit based on power sense and control method
CN108198031A (en) * 2017-12-29 2018-06-22 深圳市咿呀商务服务有限公司 A kind of ornament matching method and customization method based on wechat
CN108459800A (en) * 2018-02-11 2018-08-28 广州视源电子科技股份有限公司 Lines selection edit methods, device, equipment and the storage medium of writing whiteboard
CN108733290A (en) * 2018-05-21 2018-11-02 张宗良 Drawing control method, device and electronic equipment
CN108762638A (en) * 2018-05-28 2018-11-06 浙江鸿程计算机***有限公司 A kind of secondary editing cartographic method based on Android
CN108810646A (en) * 2018-06-29 2018-11-13 上海哔哩哔哩科技有限公司 Group information pushes control method, device and computer readable storage medium
CN108966031A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 Method and device, the electronic equipment of broadcasting content control are realized in video session
CN109165072A (en) * 2018-08-28 2019-01-08 珠海格力电器股份有限公司 A kind of expression packet generation method and device
CN109887058A (en) * 2018-11-07 2019-06-14 上海艾麒信息科技有限公司 Cross-platform drafting system
CN110162371A (en) * 2019-05-24 2019-08-23 网易(杭州)网络有限公司 Display control method and device, electronic equipment and storage medium
CN110379340A (en) * 2019-06-19 2019-10-25 北京邮电大学 Outdoor positioning tourism guide system based on iBeacon and GPS
CN110727383A (en) * 2019-09-18 2020-01-24 北京百度网讯科技有限公司 Touch interaction method and device based on small program, electronic equipment and storage medium
CN110874166A (en) * 2018-08-29 2020-03-10 腾讯科技(深圳)有限公司 Page switching method and device, storage medium and computer equipment
CN110889056A (en) * 2019-12-06 2020-03-17 北京百度网讯科技有限公司 Page marking method and device

Patent Citations (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1208889A (en) * 1997-07-25 1999-02-24 太阳微***有限公司 Detachable JAVA applets
CN101650637A (en) * 2009-09-07 2010-02-17 苏州瀚瑞微电子有限公司 Method for editing graph on touch screen
CN102263789A (en) * 2011-07-15 2011-11-30 同济大学 Call patterning assisting system
CN102866898A (en) * 2012-07-20 2013-01-09 厦门亿联网络技术股份有限公司 Method for quickly displaying interface on embedded device
CN103729196A (en) * 2014-01-22 2014-04-16 南京恒知讯科技有限公司 Graphic layer based electronic drawing board system drawn by multiple persons, processing method and processing equipment
CN104503694A (en) * 2014-12-24 2015-04-08 北京奇虎科技有限公司 Drawing data instant messaging based method, client and system
CN104468338A (en) * 2014-12-25 2015-03-25 北京奇虎科技有限公司 Instant messaging method, client sides and terminal device
CN104850408A (en) * 2015-05-28 2015-08-19 深圳市陨石通信设备有限公司 Method and device for drawing pictures on smartwatch
CN106294474A (en) * 2015-06-03 2017-01-04 阿里巴巴集团控股有限公司 The processing method of video data, Apparatus and system
CN106445087A (en) * 2015-07-21 2017-02-22 阿里巴巴集团控股有限公司 Method and device for canceling input operation
CN105068727A (en) * 2015-08-18 2015-11-18 百度在线网络技术(北京)有限公司 Realization method and device for drawing tool
CN106843728A (en) * 2017-01-16 2017-06-13 珠海市魅族科技有限公司 A kind of operation trace processing method and system
CN107168635A (en) * 2017-05-05 2017-09-15 百度在线网络技术(北京)有限公司 Information demonstrating method and device
CN108966031A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 Method and device, the electronic equipment of broadcasting content control are realized in video session
CN107808554A (en) * 2017-09-26 2018-03-16 上海欧美拉光电股份有限公司 A kind of intellectual development drawing entertainment experience equipment for being used to cultivate people
CN108153450A (en) * 2017-11-20 2018-06-12 羽触(北京)科技有限公司 A kind of terminal device, the input unit based on power sense and control method
CN108198031A (en) * 2017-12-29 2018-06-22 深圳市咿呀商务服务有限公司 A kind of ornament matching method and customization method based on wechat
CN108459800A (en) * 2018-02-11 2018-08-28 广州视源电子科技股份有限公司 Lines selection edit methods, device, equipment and the storage medium of writing whiteboard
CN108733290A (en) * 2018-05-21 2018-11-02 张宗良 Drawing control method, device and electronic equipment
CN108762638A (en) * 2018-05-28 2018-11-06 浙江鸿程计算机***有限公司 A kind of secondary editing cartographic method based on Android
CN108810646A (en) * 2018-06-29 2018-11-13 上海哔哩哔哩科技有限公司 Group information pushes control method, device and computer readable storage medium
CN109165072A (en) * 2018-08-28 2019-01-08 珠海格力电器股份有限公司 A kind of expression packet generation method and device
CN110874166A (en) * 2018-08-29 2020-03-10 腾讯科技(深圳)有限公司 Page switching method and device, storage medium and computer equipment
CN109887058A (en) * 2018-11-07 2019-06-14 上海艾麒信息科技有限公司 Cross-platform drafting system
CN110162371A (en) * 2019-05-24 2019-08-23 网易(杭州)网络有限公司 Display control method and device, electronic equipment and storage medium
CN110379340A (en) * 2019-06-19 2019-10-25 北京邮电大学 Outdoor positioning tourism guide system based on iBeacon and GPS
CN110727383A (en) * 2019-09-18 2020-01-24 北京百度网讯科技有限公司 Touch interaction method and device based on small program, electronic equipment and storage medium
CN110889056A (en) * 2019-12-06 2020-03-17 北京百度网讯科技有限公司 Page marking method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
百度经验: "网络画板操作手册-绘制线形及后续操作", pages 1 - 5, Retrieved from the Internet <URL:http://jingyan.***.com/article/90bc8fc8bd9dbdf653640c84.html> *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686973A (en) * 2020-12-24 2021-04-20 京东方科技集团股份有限公司 Image editing method, control device, storage medium and computer equipment
CN115480654A (en) * 2021-05-29 2022-12-16 华为技术有限公司 Line backspacing method of input panel and related device
CN114003163A (en) * 2021-10-27 2022-02-01 腾讯科技(深圳)有限公司 Image processing method and apparatus, storage medium, and electronic device
CN114003163B (en) * 2021-10-27 2023-10-24 腾讯科技(深圳)有限公司 Image processing method and device, storage medium and electronic equipment
CN114547047A (en) * 2021-12-22 2022-05-27 广州工程技术职业学院 Online collaborative drawing method, device, equipment and storage medium
CN114995727A (en) * 2022-05-23 2022-09-02 Oppo广东移动通信有限公司 Method for locally operating drawing content, electronic equipment and storage medium
CN115774513A (en) * 2022-11-22 2023-03-10 北京元跃科技有限公司 System, method, electronic device and medium for determining drawing direction based on ruler

Similar Documents

Publication Publication Date Title
CN111524210A (en) Method and apparatus for generating drawings
US10229102B2 (en) Formula and function generation and use in electronic spreadsheets
US10318109B2 (en) Emoji suggester and adapted user interface
US9954806B2 (en) Inline message composing with visible list view
EP3084634B1 (en) Interaction with spreadsheet application function tokens
TW201519068A (en) Providing visualizations for conversations
US10739988B2 (en) Personalized persistent collection of customized inking tools
CN108353256A (en) Method and system for emoticon and other graphical contents to be created and used in instant communicating system
WO2015014305A1 (en) Method and apparatus for presenting clipboard contents on a mobile terminal
CN102640114B (en) Method for directly manipulating incoming interactions in an instant communication client application
US20180330291A1 (en) Efficient schedule item creation
CN114615220B (en) Message sending control method and device
EP3357017A1 (en) Conversation and version control for objects in communications
US11329941B2 (en) Automated display state of electronic mail items
CN106547676A (en) A kind of user operation method for recording and terminal
CN111369645B (en) Expression information display method, device, equipment and medium
CN112306590B (en) Screenshot generating method and related device
CN108140173B (en) Classifying attachments parsed from a communication
CN111651229A (en) Font changing method, device and equipment
US10459612B2 (en) Select and move hint
CN111209023A (en) Skill service updating method and device, electronic equipment and readable storage medium
CA2760976C (en) Mobile communications device user interface
CN113989421A (en) Image generation method, apparatus, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200811