CN111625171A - Stroke display method, device and equipment and readable storage medium - Google Patents

Stroke display method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN111625171A
CN111625171A CN202010733763.2A CN202010733763A CN111625171A CN 111625171 A CN111625171 A CN 111625171A CN 202010733763 A CN202010733763 A CN 202010733763A CN 111625171 A CN111625171 A CN 111625171A
Authority
CN
China
Prior art keywords
stroke
displayed
redrawing
strokes
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010733763.2A
Other languages
Chinese (zh)
Other versions
CN111625171B (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.)
Shenzhen Qianfenyi Intelligent Technology Co Ltd
Original Assignee
Shenzhen Qianfenyi Intelligent 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 Shenzhen Qianfenyi Intelligent Technology Co Ltd filed Critical Shenzhen Qianfenyi Intelligent Technology Co Ltd
Priority to CN202010733763.2A priority Critical patent/CN111625171B/en
Publication of CN111625171A publication Critical patent/CN111625171A/en
Application granted granted Critical
Publication of CN111625171B publication Critical patent/CN111625171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a stroke display method, a device, equipment and a readable storage medium, wherein the stroke display method reads strokes to be displayed and pictures consistent with the contents of the strokes, loads the strokes to be displayed, and saves actual stroke redrawing operation when triggering the stroke redrawing operation, thereby saving the operation processing time required by the actual stroke redrawing, and ensuring that the writing equipment can simulate and complete the stroke redrawing process only by waiting for extremely short time; when the stroke redrawing logic is completed, the picture containing all the contents of the strokes to be displayed is used for replacing the actual strokes to be displayed for displaying, so that the time required for displaying the contents of the strokes is obviously shortened, and the equivalent effect of displaying the contents of the strokes to be displayed is realized.

Description

Stroke display method, device and equipment and readable storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a stroke display method, device and equipment and a readable storage medium.
Background
With the rapid development of writing equipment technology, various intelligent writing equipment is widely applied to daily life of people, people can conveniently write various strokes on the intelligent writing equipment and store the strokes, so that the stored strokes can be reloaded when the strokes need to be checked later. However, when the stored strokes are loaded, the existing intelligent writing device usually adopts a mode of rendering all the stroke contents which need to be displayed on a screen, and under the condition that the stroke contents to be rendered are more, the operation of rendering the strokes is very time-consuming, and the device is easy to be stuck for several seconds, so that the technical problem that the existing writing device consumes a long time for displaying the stored stroke contents is caused.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a stroke display method, and aims to solve the technical problem that the existing writing equipment consumes a long time for displaying the stored stroke content.
In order to achieve the above object, the present invention provides a stroke display method, including:
reading strokes to be displayed and a stroke picture to be displayed containing the strokes to be displayed;
loading the strokes to be displayed, triggering stroke redrawing logic, and simulating the redrawing process of the strokes to be displayed;
and when the completion of the execution of the stroke redrawing logic is detected, loading and displaying the stroke picture to be displayed so as to display the content of the stroke to be displayed.
Optionally, the step of loading the stroke to be displayed, triggering a stroke redrawing logic, and simulating a redrawing process of the stroke to be displayed includes:
loading the strokes to be displayed, and calling a redrawing function when triggering a stroke redrawing logic;
generating a successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the successful result, wherein the actual redrawing operation is not performed in the generation process of the successful result;
and waiting for screen refreshing when the successful result is generated so as to simulate the redrawing process of the strokes to be displayed.
Optionally, the successful result comprises a first successful result,
the step of generating a successful result of the redrawn function and returning to skip the execution process of the redrawn function based on the successful result comprises:
generating a first successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the first successful result;
the step of waiting for a screen refresh to simulate the redrawing process of the stroke to be displayed when the successful result is generated comprises:
and when the first success result is generated, copying the stroke picture to be displayed to a first video memory, and waiting for the first video memory to carry out screen refreshing so as to simulate the redrawing process of the stroke to be displayed.
Optionally, the success result comprises a second success result,
when the first success result is generated, copying the stroke picture to be displayed to a first display memory, and waiting for the first display memory to perform screen refreshing so as to simulate the step of redrawing process of the stroke to be displayed, the method further comprises the following steps:
calling the redrawing function, generating a second success result of the redrawing function and returning to skip the execution process of the redrawing function based on the second success result;
and when the second success result is generated, copying the stroke picture to be displayed to a second video memory, and waiting for the second video memory to carry out screen refreshing so as to finish stroke redrawing logic.
Optionally, when it is detected that the execution of the stroke redrawing logic is completed, the step of loading and displaying the stroke picture to be displayed to display the content of the stroke to be displayed includes:
and when the completion of the execution of the stroke redrawing logic is detected, displaying the stroke picture to be displayed on a screen by using the first video memory and the second video memory copied with the stroke picture to be displayed so as to display the content of the stroke to be displayed.
Optionally, before the step of reading the strokes to be displayed and the stroke picture to be displayed containing the strokes to be displayed, the method further includes:
when the stroke document recorded with the strokes to be displayed is saved, synchronously generating a document screenshot corresponding to the stroke document so as to take the document screenshot as the stroke picture to be displayed;
associating the stroke document with the document screenshot.
Optionally, the step of reading the strokes to be displayed and the stroke picture to be displayed containing the strokes to be displayed includes:
when a stroke display instruction is received, determining the stroke document based on the stroke display instruction so as to read the strokes to be displayed;
and searching and reading the document screenshot according to the stroke document association so as to finish reading the stroke image to be displayed.
Further, to achieve the above object, the present invention also provides a stroke display device including:
the stroke picture loading module is used for reading strokes to be displayed and pictures of the strokes to be displayed, wherein the pictures of the strokes to be displayed comprise the strokes to be displayed;
the redrawing process simulation module is used for loading the strokes to be displayed, triggering stroke redrawing logic and simulating the redrawing process of the strokes to be displayed;
and the stroke content display module is used for loading and displaying the stroke picture to be displayed when the completion of the execution of the stroke redrawing logic is detected so as to display the content of the stroke to be displayed.
Optionally, the redrawing process simulation module includes:
the redrawing operation triggering unit is used for loading the strokes to be displayed and calling a redrawing function when triggering the stroke redrawing logic;
a successful result generation unit, configured to generate a successful result of the redrawing function and return to skip an execution process of the redrawing function based on the successful result, where an actual redrawing operation is not performed in the generation process of the successful result;
and the screen refreshing waiting unit is used for waiting for screen refreshing when the successful result is generated so as to simulate the redrawing process of the strokes to be displayed.
Optionally, the successful result comprises a first successful result,
the success result generation unit is further configured to:
generating a first successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the first successful result;
the screen refresh waiting unit is further configured to:
and when the first success result is generated, copying the stroke picture to be displayed to a first video memory, and waiting for the first video memory to carry out screen refreshing so as to simulate the redrawing process of the stroke to be displayed.
Optionally, the success result comprises a second success result,
the redrawing process simulation module further comprises:
the second result generating unit is used for calling the redrawing function, generating a second success result of the redrawing function and returning the second success result so as to skip the execution process of the redrawing function based on the second success result;
and the second refreshing waiting unit is used for copying the stroke picture to be displayed to a second video memory when the second success result is generated, and waiting for the second video memory to carry out screen refreshing so as to finish the stroke redrawing logic.
Optionally, the stroke content display module includes:
and the picture display unit is used for displaying the picture of the strokes to be displayed on a screen by utilizing the first video memory and the second video memory copied with the picture of the strokes to be displayed when the completion of the execution of the stroke redrawing logic is detected, so as to display the content of the strokes to be displayed.
Optionally, the stroke display device further comprises:
the document screenshot generating module is used for synchronously generating a document screenshot corresponding to the stroke document when the stroke document recorded with the strokes to be displayed is saved so as to take the document screenshot as a picture of the strokes to be displayed;
and the document screenshot associating module is used for associating the stroke document with the document screenshot.
Optionally, the stroke picture loading module includes:
the stroke document determining unit is used for determining the stroke document based on the stroke display instruction so as to read the strokes to be displayed when the stroke display instruction is received;
and the document screenshot reading unit is used for searching and reading the document screenshot according to the stroke document association so as to finish reading the stroke image to be displayed.
Further, to achieve the above object, the present invention also provides a stroke display apparatus including: the system comprises a memory, a processor and a stroke display program stored on the memory and capable of running on the processor, wherein the stroke display program realizes the steps of the stroke display method when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a stroke display program stored thereon, which when executed by a processor implements the steps of the stroke display method as described above.
The invention provides a stroke display method, a stroke display device, stroke display equipment and a computer readable storage medium. The stroke display method comprises the steps of reading strokes to be displayed and a stroke picture to be displayed containing the strokes to be displayed; loading the strokes to be displayed, triggering stroke redrawing logic, and simulating the redrawing process of the strokes to be displayed; and when the completion of the execution of the stroke redrawing logic is detected, loading and displaying the stroke picture to be displayed so as to display the content of the stroke to be displayed. Through the mode, the strokes to be displayed and the pictures consistent with the contents of the strokes are read, the strokes to be displayed are loaded, and the actual stroke redrawing operation is saved when the stroke redrawing operation is triggered, so that the operation processing time required by the actual stroke redrawing is saved, and the writing equipment can simulate and complete the stroke redrawing process only by waiting for a very short time; when the stroke redrawing logic is completed, the picture containing all contents of the strokes to be displayed is used for replacing the actual strokes to be displayed for displaying, so that the time required for displaying the stroke contents is remarkably shortened, and the equivalent effect of displaying the stroke contents to be displayed is realized, thereby solving the technical problem that the existing writing equipment consumes a long time for displaying the stored stroke contents.
Drawings
FIG. 1 is a schematic diagram of a stroke display device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a stroke display method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a stroke displaying method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic diagram of a stroke display device of a hardware operating environment according to an embodiment of the present invention.
The stroke display equipment provided by the embodiment of the invention is intelligent writing equipment with a touch screen.
As shown in fig. 1, the stroke display device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The optional user interface 1003 may include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the stroke display device configuration shown in FIG. 1 does not constitute a limitation of the stroke display device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a stroke display program.
In the stroke display device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the stroke display program stored in the memory 1005 and perform the following operations:
reading strokes to be displayed and a stroke picture to be displayed containing the strokes to be displayed;
loading the strokes to be displayed, triggering stroke redrawing logic, and simulating the redrawing process of the strokes to be displayed;
and when the completion of the execution of the stroke redrawing logic is detected, loading and displaying the stroke picture to be displayed so as to display the content of the stroke to be displayed.
Further, the steps of loading the strokes to be displayed, triggering stroke redrawing logic, and simulating the redrawing process of the strokes to be displayed include:
loading the strokes to be displayed, and calling a redrawing function when triggering a stroke redrawing logic;
generating a successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the successful result, wherein the actual redrawing operation is not performed in the generation process of the successful result;
and waiting for screen refreshing when the successful result is generated so as to simulate the redrawing process of the strokes to be displayed.
Further, the successful result includes a first successful result,
the step of generating a successful result of the redrawn function and returning to skip the execution process of the redrawn function based on the successful result comprises:
generating a first successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the first successful result;
the step of waiting for a screen refresh to simulate the redrawing process of the stroke to be displayed when the successful result is generated comprises:
and when the first success result is generated, copying the stroke picture to be displayed to a first video memory, and waiting for the first video memory to carry out screen refreshing so as to simulate the redrawing process of the stroke to be displayed.
Further, the success result includes a second success result,
when the first success result is generated, copying the stroke picture to be displayed to a first display memory, and waiting for the first display memory to perform screen refreshing so as to simulate the step of redrawing process of the stroke to be displayed, the method further comprises the following steps:
calling the redrawing function, generating a second success result of the redrawing function and returning to skip the execution process of the redrawing function based on the second success result;
and when the second success result is generated, copying the stroke picture to be displayed to a second video memory, and waiting for the second video memory to carry out screen refreshing so as to finish stroke redrawing logic.
Further, when it is detected that the execution of the stroke redrawing logic is completed, the step of loading and displaying the stroke picture to be displayed to display the content of the stroke to be displayed includes:
and when the completion of the execution of the stroke redrawing logic is detected, displaying the stroke picture to be displayed on a screen by using the first video memory and the second video memory copied with the stroke picture to be displayed so as to display the content of the stroke to be displayed.
Further, before the step of reading the stroke to be displayed and the stroke picture to be displayed containing the stroke to be displayed, the processor 1001 may be further configured to call a stroke display program stored in the memory 1005, and perform the following operations:
when the stroke document recorded with the strokes to be displayed is saved, synchronously generating a document screenshot corresponding to the stroke document so as to take the document screenshot as the stroke picture to be displayed;
associating the stroke document with the document screenshot.
Further, the step of reading the strokes to be displayed and the stroke picture to be displayed containing the strokes to be displayed comprises the following steps:
when a stroke display instruction is received, determining the stroke document based on the stroke display instruction so as to read the strokes to be displayed;
and searching and reading the document screenshot according to the stroke document association so as to finish reading the stroke image to be displayed.
Based on the hardware structure, the invention provides various embodiments of the stroke display method.
With the rapid development of writing equipment technology, various intelligent writing equipment is widely applied to daily life of people, people can conveniently write various strokes on the intelligent writing equipment and store the strokes, so that the stored strokes can be reloaded when the strokes need to be checked later. However, when the stored strokes are loaded, the existing intelligent writing device usually adopts a mode of rendering all the stroke contents which need to be displayed on a screen, and under the condition that the stroke contents to be rendered are more, the operation of rendering the strokes is very time-consuming, and the device is easy to be stuck for several seconds, so that the technical problem that the existing writing device consumes a long time for displaying the stored stroke contents is caused.
In order to solve the technical problems, the invention provides a stroke display method, namely, a stroke to be displayed and a picture consistent with the content of the stroke are read, the stroke to be displayed is loaded, and only the screen refreshing processing is waited when the stroke redrawing operation is triggered, so that the actual stroke redrawing operation is saved, the operation processing time required by the actual stroke redrawing is saved, and the writing equipment can simulate the stroke redrawing process only by waiting for a very short time; when the screen is refreshed, the picture containing all the contents of the strokes to be displayed is used for replacing the actual strokes to be displayed for displaying, so that the time required for displaying the strokes is remarkably shortened, and the equivalent effect of displaying the strokes to be displayed is realized, thereby solving the technical problem that the existing writing equipment has longer time consumption for displaying the stored strokes. The stroke display method is applied to stroke display equipment, and is preferably an intelligent book.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a stroke display method.
A first embodiment of the present invention provides a stroke display method, including the steps of:
step S10, reading the strokes to be displayed and the strokes to be displayed pictures containing the strokes to be displayed;
in this embodiment, the present invention can be implemented based on TouchGFX (tai). TouchGFX is an embedded Graphical User Interface (GUI) middleware software that can be used to develop GUI interfaces. The strokes to be displayed are various writing strokes which are written by the user on the writing device and are stored, such as the note content written by the user. The picture of the strokes to be displayed is a picture which is consistent with the content of the strokes to be displayed, namely, the strokes to be displayed are stored in the form of pictures. The stroke picture to be displayed can be synchronously generated when the strokes to be displayed are stored by the writing equipment, and can also be correspondingly generated after the strokes to be displayed are stored by the writing equipment. The writing device can determine the strokes to be displayed which are required to be checked by the current user through the modes of triggering corresponding keys in the device by the user or through network remote control and the like, and read the data of the strokes to be displayed. The strokes to be displayed and the corresponding strokes to be displayed pictures can be searched and read simultaneously by the writing equipment, or the strokes to be displayed and the corresponding strokes to be displayed pictures can be read firstly and then the corresponding strokes to be displayed pictures can be searched and read according to the strokes to be displayed.
Step S20, loading the strokes to be displayed, triggering stroke redrawing logic, and simulating the redrawing process of the strokes to be displayed;
in this embodiment, the stroke redrawing logic is conventional processing logic in a writing device that performs data loading on stored strokes. In addition, it should be noted that each stroke in the writing device exists in the form of a control, and when a current stroke to be displayed that needs to be viewed is loaded, an object corresponding to the stroke to be displayed needs to be created, so as to open up a corresponding memory space for the stroke to be displayed. Specifically, the writing device loads the strokes to be displayed, which need to be checked by the current user, and automatically enters the stroke redrawing logic. When the redrawing function in the stroke redrawing logic is entered, the actual execution step of the redrawing function is skipped, and a success result is directly returned to directly end the stroke redrawing logic. The writing device waits for the screen to perform drawing refreshing and display refreshing twice based on the double-buffer technology, and then the picture of the strokes to be displayed corresponding to the current strokes to be displayed can be displayed on the screen.
And step S30, when the completion of the execution of the stroke redrawing logic is detected, loading and displaying the stroke picture to be displayed so as to display the content of the stroke to be displayed.
In this embodiment, when the writing device detects that the execution of the stroke redrawing logic is completed, a to-be-displayed stroke picture consistent with the content of the to-be-displayed stroke that needs to be viewed by the current user may be displayed on the screen, so that the user may view the content of the to-be-displayed stroke.
As a specific embodiment, if a current user intends to view a note document previously stored in the book, the interface for viewing the history document in the book is entered, and a button for displaying the document content in the interface is clicked. The notebook receives a note display instruction triggered based on the key, finds out note documents required to be checked by the user at present and document screenshots consistent with the document contents according to the instruction. The writing book loads the note document, creates an object of the writing strokes in the note document, and at the moment, can trigger the redrawing logic of the writing strokes in the note document. The writing device enters a redrawing function in the redrawing logic, but does not actually execute the redrawing function, but directly generates a successful return value of the redrawing function to jump out of the stroke redrawing logic, waits for the screen to be refreshed twice, namely switches from the drawing refresh to the display refresh, and then loads and displays the document screenshot consistent with the content of the note document on the screen of the writing book instead of the note document. It should be noted that the screen refreshing time depends on the screen refreshing rate of the writing device, for example, the screen refreshing rate of a book is 60 frames per second, the time for waiting for two screen refreshes, that is, about 1000ms/60 x 2, that is, about 33 ms, in practical application, the whole process only needs to wait for about 10 frames of time to display the document screenshot consistent with the content of the history document that the user needs to view currently on the screen for the user to view, and the jam of the writing device due to too much stroke content is avoided, so that the processing time of the writing device and the waiting time of the user are greatly reduced.
In the embodiment, the strokes to be displayed and the stroke pictures to be displayed containing the strokes to be displayed are read; loading the strokes to be displayed, triggering stroke redrawing logic, and simulating the redrawing process of the strokes to be displayed; and when the completion of the execution of the stroke redrawing logic is detected, loading and displaying the stroke picture to be displayed so as to display the content of the stroke to be displayed. Through the mode, the strokes to be displayed and the pictures consistent with the contents of the strokes are read, the strokes to be displayed are loaded, and the actual stroke redrawing operation is saved when the stroke redrawing operation is triggered, so that the operation processing time required by the actual stroke redrawing is saved, and the writing equipment can simulate and complete the stroke redrawing process only by waiting for a very short time; when the stroke redrawing logic is completed, the picture containing all contents of the strokes to be displayed is used for replacing the actual strokes to be displayed for displaying, so that the time required for displaying the stroke contents is remarkably shortened, and the equivalent effect of displaying the stroke contents to be displayed is realized, thereby solving the technical problem that the existing writing equipment consumes a long time for displaying the stored stroke contents.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a stroke display method.
A second embodiment of the stroke display method of the present invention is proposed based on the first embodiment shown in fig. 2 described above. In the present embodiment, step S20 includes:
step S21, loading the strokes to be displayed, and calling a redrawing function when triggering a stroke redrawing logic;
step S22, generating a successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the successful result, wherein the actual redrawing operation is not performed in the generation process of the successful result;
and step S23, waiting for screen refreshing when the successful result is generated so as to simulate the redrawing process of the strokes to be displayed.
In this embodiment, the writing device loads data of the strokes to be displayed, which the user currently needs to view, and creates an object of the strokes to be displayed, so as to trigger a stroke redrawing logic for redrawing the strokes to be displayed. When the writing device triggers the stroke redrawing logic, the writing device enters the redrawing function corresponding to each stroke. It should be noted that the redrawing function is not actually executed after entering the redrawing function, but a successful result of the redrawing function is directly returned, so as to simulate the redrawing process of the stroke to be displayed in a conventional manner, directly end the stroke redrawing logic, and skip the actual operation process of the stroke redrawing, thereby saving the time for actually redrawing the stroke to be displayed. The writing device enters the stroke redrawing logic, directly returns the successful result of the redrawing function, and waits for two frames of screen refreshing, so that the simulation of the stroke redrawing process can be completed. For example, if the current writing device has a screen refresh rate of 60Hz, i.e. 60 refreshes per second, the time to wait for two frames of screen refresh is about 33 ms.
Further, not shown in the figure, in the present embodiment, the success result includes a first success result, and the step S22 includes:
generating a first successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the first successful result;
step S23 includes:
and when the first success result is generated, copying the stroke picture to be displayed to a first video memory, and waiting for the first video memory to carry out screen refreshing so as to simulate the redrawing process of the stroke to be displayed.
In this embodiment, the first successful result is a result automatically returned by calling the redrawing function for the first time after triggering the stroke redrawing logic. The video memory, also called a frame buffer, is used for storing rendering data processed or to be extracted by the video card chip. As with the memory of a computer, video memory is the means used to store graphics information to be processed. And the first video memory is used for copying the stroke picture to be displayed after the first screen refreshing is carried out when the redrawing function is called for the first time and a successful result is returned.
Further, not shown in the figure, in this embodiment, the success result includes a second success result, and after the step of copying the to-be-displayed stroke picture to a first display memory and waiting for the first display memory to perform screen refreshing to simulate the redrawing process of the to-be-displayed stroke when the first success result is generated, the method further includes:
calling the redrawing function, generating a second success result of the redrawing function and returning to skip the execution process of the redrawing function based on the second success result;
and when the second success result is generated, copying the stroke picture to be displayed to a second video memory, and waiting for the second video memory to carry out screen refreshing so as to finish stroke redrawing logic.
In this embodiment, a double buffering technique is employed. Double buffering means that an object consistent with a screen drawing area is created in a memory, a graph is firstly drawn on the object in the memory, and the graph on the object is copied to a screen at one time. And the second success result is the result automatically returned by calling the redrawing function for the second time after the first video memory is refreshed. And the second video memory is used for copying the stroke picture to be displayed after the second screen refreshing is carried out when the redrawing function is called for the second time and a successful result is returned. The writing device is based on a double-buffer technology, and can complete the stroke redrawing simulation process of the strokes to be displayed after two refreshes of drawing refreshing and display refreshing are needed, so that the stroke pictures to be displayed, which are consistent with the contents of the strokes to be displayed, are displayed on a screen.
Further, not shown in the figure, in the present embodiment, the step S30 includes:
and when the completion of the execution of the stroke redrawing logic is detected, displaying the stroke picture to be displayed on a screen by using the first video memory and the second video memory copied with the stroke picture to be displayed so as to display the content of the stroke to be displayed.
In this embodiment, when the writing device detects that the current two refreshes, i.e., the drawing refresh and the display refresh, are completed, it may be determined that the stroke redrawing logic is completed, and the to-be-displayed strokes may be loaded and displayed on the screen, so that the user may view the contents of the to-be-displayed strokes.
In the embodiment, the redrawing function is skipped by directly returning the successful execution result in the entering process, so that the process of redrawing the strokes to be displayed in the conventional processing logic can be skipped, and the processing time is saved; waiting for two frames of refreshing time based on a double-buffering technology so as to finish redrawing simulation of the strokes to be displayed; through when the screen refreshes and accomplishes, the copy treats that the stroke picture that shows to the display memory for writing equipment screen can treat to show the stroke picture and show, and then reach the purpose that replaces stroke data with picture data and show same content, and in the user plane, show this process of stroke content and conventional redrawing display flow and do not have the difference on the screen from the instruction that sends stroke demonstration, but the length of waiting time greatly reduces, also be promptly need not to increase user's learning cost, can shorten user's waiting time greatly, thereby user experience has been promoted.
Further, not shown, a third embodiment of the stroke display method of the present invention is proposed based on the first embodiment shown in fig. 2 described above. In this embodiment, before step S10, the method further includes:
when the stroke document recorded with the strokes to be displayed is saved, synchronously generating a document screenshot corresponding to the stroke document so as to take the document screenshot as the stroke picture to be displayed;
associating the stroke document with the document screenshot.
In this embodiment, when a user writes strokes on a writing device and clicks a save button to save the strokes, the writing device records the current written strokes in a stroke document, correspondingly generates a document screenshot containing all the contents of the stroke document, and stores the stroke document and the document screenshot in association, so that when the stroke document is found, the corresponding document screenshot is searched in association.
Further, in the present embodiment, step S10 includes:
when a stroke display instruction is received, determining the stroke document based on the stroke display instruction so as to read the strokes to be displayed;
and searching and reading the document screenshot according to the stroke document association so as to finish reading the stroke image to be displayed.
In this embodiment, a user clicks a key used for viewing document content in a document search interface of a writing device to send a stroke display instruction to the writing device, the writing device searches a stroke document that the user currently needs to view based on the stroke display instruction to read a to-be-displayed stroke in the stroke document, and can search a document screenshot corresponding to the stroke document through association of the currently-searched stroke document. In addition, after step S30, the method may further include: and deleting the document screenshot when detecting that the stroke document is in a deleted state. If the user clicks a delete key in the document management interface to delete the stroke document with viewed content, the writing device deletes the data of the stroke document, and deletes the document screenshot with consistent stroke document content when detecting that the stroke document is in a deleted state, so as to save the memory space.
In the embodiment, the document screenshots corresponding to the stroke documents are generated synchronously while the stroke documents are stored, so that the stroke document contents can be stored in the form of pictures, the writing equipment can display the document contents directly by displaying the document screenshots, the complex redrawing process of the writing equipment on the strokes to be displayed is avoided, and the display efficiency of the stroke contents to be displayed is improved; the strokes to be displayed and the corresponding document screenshots are searched in an associated mode, so that the searching efficiency of the writing equipment for the document screenshots is improved.
The invention also provides a stroke display device.
The stroke display device includes:
the stroke picture loading module is used for reading strokes to be displayed and pictures of the strokes to be displayed, wherein the pictures of the strokes to be displayed comprise the strokes to be displayed;
the redrawing process simulation module is used for loading the strokes to be displayed, triggering stroke redrawing logic and simulating the redrawing process of the strokes to be displayed;
and the stroke content display module is used for loading and displaying the stroke picture to be displayed when the completion of the execution of the stroke redrawing logic is detected so as to display the content of the stroke to be displayed.
The invention also provides a stroke display device.
The stroke display device comprises a processor, a memory and a stroke display program stored on the memory and operable on the processor, wherein the stroke display program, when executed by the processor, implements the steps of the stroke display method as described above.
The method for implementing the stroke display program when executed may refer to various embodiments of the stroke display method of the present invention, and will not be described herein again.
The invention also provides a computer readable storage medium.
The present computer readable storage medium has stored thereon a stroke display program which, when executed by a processor, implements the steps of the stroke display method as described above.
The method implemented when the stroke display program is executed may refer to various embodiments of the stroke display method of the present invention, and details thereof are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a stroke display device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A stroke display method is characterized by comprising the following steps:
reading strokes to be displayed and a stroke picture to be displayed containing the strokes to be displayed;
loading the strokes to be displayed, triggering stroke redrawing logic, and simulating the redrawing process of the strokes to be displayed;
and when the completion of the execution of the stroke redrawing logic is detected, loading and displaying the stroke picture to be displayed so as to display the content of the stroke to be displayed.
2. The stroke display method of claim 1, wherein the steps of loading the strokes to be displayed, triggering stroke redrawing logic, and simulating a redrawing process of the strokes to be displayed comprise:
loading the strokes to be displayed, and calling a redrawing function when triggering a stroke redrawing logic;
generating a successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the successful result, wherein the actual redrawing operation is not performed in the generation process of the successful result;
and waiting for screen refreshing when the successful result is generated so as to simulate the redrawing process of the strokes to be displayed.
3. The stroke display method of claim 2, wherein the successful result comprises a first successful result,
the step of generating a successful result of the redrawn function and returning to skip the execution process of the redrawn function based on the successful result comprises:
generating a first successful result of the redrawing function and returning to skip the execution process of the redrawing function based on the first successful result;
the step of waiting for a screen refresh to simulate the redrawing process of the stroke to be displayed when the successful result is generated comprises:
and when the first success result is generated, copying the stroke picture to be displayed to a first video memory, and waiting for the first video memory to carry out screen refreshing so as to simulate the redrawing process of the stroke to be displayed.
4. The stroke display method of claim 3, wherein the successful result comprises a second successful result,
when the first success result is generated, copying the stroke picture to be displayed to a first display memory, and waiting for the first display memory to perform screen refreshing so as to simulate the step of redrawing process of the stroke to be displayed, the method further comprises the following steps:
calling the redrawing function, generating a second success result of the redrawing function and returning to skip the execution process of the redrawing function based on the second success result;
and when the second success result is generated, copying the stroke picture to be displayed to a second video memory, and waiting for the second video memory to carry out screen refreshing so as to finish stroke redrawing logic.
5. The stroke display method of claim 4, wherein the step of loading and displaying the picture of the strokes to be displayed to display the content of the strokes to be displayed when the completion of the execution of the stroke redrawing logic is detected comprises:
and when the completion of the execution of the stroke redrawing logic is detected, displaying the stroke picture to be displayed on a screen by using the first video memory and the second video memory copied with the stroke picture to be displayed so as to display the content of the stroke to be displayed.
6. The stroke display method of claim 1, wherein prior to the steps of reading the strokes to be displayed and the stroke picture to be displayed containing the strokes to be displayed, further comprising:
when the stroke document recorded with the strokes to be displayed is saved, synchronously generating a document screenshot corresponding to the stroke document so as to take the document screenshot as the stroke picture to be displayed;
associating the stroke document with the document screenshot.
7. The stroke display method of claim 5, wherein the step of reading the strokes to be displayed and the stroke picture to be displayed containing the strokes to be displayed comprises:
when a stroke display instruction is received, determining the stroke document based on the stroke display instruction so as to read the strokes to be displayed;
and searching and reading the document screenshot according to the stroke document association so as to finish reading the stroke image to be displayed.
8. A stroke display device, characterized in that the stroke display device comprises:
the stroke picture loading module is used for reading strokes to be displayed and pictures of the strokes to be displayed, wherein the pictures of the strokes to be displayed comprise the strokes to be displayed;
the redrawing process simulation module is used for loading the strokes to be displayed, triggering stroke redrawing logic and simulating the redrawing process of the strokes to be displayed;
and the stroke content display module is used for loading and displaying the stroke picture to be displayed when the completion of the execution of the stroke redrawing logic is detected so as to display the content of the stroke to be displayed.
9. A stroke display device, characterized in that the stroke display device comprises: memory, a processor and a stroke display program stored on the memory and executable on the processor, the stroke display program when executed by the processor implementing the steps of the stroke display method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a stroke display program which, when executed by a processor, implements the steps of the stroke display method of any one of claims 1 to 7.
CN202010733763.2A 2020-07-28 2020-07-28 Stroke display method, device and equipment and readable storage medium Active CN111625171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010733763.2A CN111625171B (en) 2020-07-28 2020-07-28 Stroke display method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010733763.2A CN111625171B (en) 2020-07-28 2020-07-28 Stroke display method, device and equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111625171A true CN111625171A (en) 2020-09-04
CN111625171B CN111625171B (en) 2020-11-03

Family

ID=72260418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010733763.2A Active CN111625171B (en) 2020-07-28 2020-07-28 Stroke display method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111625171B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467495A (en) * 2011-09-08 2012-05-23 中标软件有限公司 Method for handwriting comment for odt format file
CN103455250A (en) * 2012-05-30 2013-12-18 联合永道(北京)信息技术有限公司 Record broadcasting, class recording system writing stroke processing and displaying method
CN103870192A (en) * 2014-01-24 2014-06-18 白春荣 Input method and device based on touch screen as well as Pinyin input method and system
CN105745608A (en) * 2013-11-19 2016-07-06 株式会社和冠 Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication
CN106095294A (en) * 2016-06-08 2016-11-09 福建天泉教育科技有限公司 Method and the system thereof of stroke is synchronized between different platform
CN109858421A (en) * 2019-01-24 2019-06-07 广东第二师范学院 A kind of Android platform person's handwriting back method and device based on scalable vector graphics
CN110689052A (en) * 2019-09-06 2020-01-14 平安国际智慧城市科技股份有限公司 Session message processing method, device, computer equipment and storage medium
CN110703978A (en) * 2019-09-25 2020-01-17 掌阅科技股份有限公司 Information display method, reader, and computer storage medium
CN111045580A (en) * 2018-10-15 2020-04-21 鸿合科技股份有限公司 Handwriting processing method and device and electronic equipment
CN111428455A (en) * 2020-03-09 2020-07-17 广州视源电子科技股份有限公司 Table management method, device, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467495A (en) * 2011-09-08 2012-05-23 中标软件有限公司 Method for handwriting comment for odt format file
CN103455250A (en) * 2012-05-30 2013-12-18 联合永道(北京)信息技术有限公司 Record broadcasting, class recording system writing stroke processing and displaying method
CN105745608A (en) * 2013-11-19 2016-07-06 株式会社和冠 Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication
CN103870192A (en) * 2014-01-24 2014-06-18 白春荣 Input method and device based on touch screen as well as Pinyin input method and system
CN106095294A (en) * 2016-06-08 2016-11-09 福建天泉教育科技有限公司 Method and the system thereof of stroke is synchronized between different platform
CN111045580A (en) * 2018-10-15 2020-04-21 鸿合科技股份有限公司 Handwriting processing method and device and electronic equipment
CN109858421A (en) * 2019-01-24 2019-06-07 广东第二师范学院 A kind of Android platform person's handwriting back method and device based on scalable vector graphics
CN110689052A (en) * 2019-09-06 2020-01-14 平安国际智慧城市科技股份有限公司 Session message processing method, device, computer equipment and storage medium
CN110703978A (en) * 2019-09-25 2020-01-17 掌阅科技股份有限公司 Information display method, reader, and computer storage medium
CN111428455A (en) * 2020-03-09 2020-07-17 广州视源电子科技股份有限公司 Table management method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111625171B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN110221889B (en) Page display method and device, electronic equipment and storage medium
US8131591B2 (en) Updating contents of asynchronously refreshable webpages
JP6116941B2 (en) Information processing device
CN108984225A (en) The method and apparatus of quick start boarding application
CN108256062B (en) Webpage animation implementation method and device, electronic equipment and storage medium
US10049625B1 (en) Context-based rendering
US20150205454A1 (en) Systems and methods for displaying preview data
KR20140023534A (en) Apparatus for implementing responsive user interface, method thereof and recordable medium storing the method
CN104850388A (en) Method and apparatus for drafting webpage
US9646362B2 (en) Algorithm for improved zooming in data visualization components
CN112035198A (en) Home page loading method, television and storage medium
CN111625171B (en) Stroke display method, device and equipment and readable storage medium
CN109145241B (en) Browser and content display management method of browser
CN113779321B (en) Electronic whiteboard file storage method and device, electronic whiteboard and storage medium
CN113378084A (en) Page display method and device, electronic equipment and computer readable storage medium
CN112241303B (en) Image processing method and system, electronic device and storage medium
CN113835835B (en) Method, device and computer readable storage medium for creating consistency group
JP2908425B1 (en) Marking / redisplay method for homepages using frames
JP6699730B2 (en) Drawing data generation program, drawing data generation device, and drawing data generation method
CN110866203A (en) Page jump method, device, equipment and computer readable storage medium
CN114217709B (en) Page display method, reader and computer storage medium
CN113779462B (en) Image linkage method, device, equipment and storage medium
CN112783596B (en) Operating system, method and medium for realizing virtual desktop multitasking view response
CN116466900A (en) Screen display method
CN117539377A (en) Screen handwriting input method and device, computer equipment and storage 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
GR01 Patent grant
GR01 Patent grant