Non-delay line drawing display method, device, equipment and storage medium
Patent Information
- Application Number
- CN202111342722.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2041-11-12
AI Technical Summary
由于将内存画布上的内容复制到显示窗口比较耗时,因此在进行书写或者绘画等操作时经常出现延迟现象,导致用户的操作体验不佳
[0027]本发明提供的无延迟线条绘制显示方法,将与触摸显示设备的触摸动作对应的像素点位置信息保存至预设内存内,读取预设内存内的位置信息,并基于所读取到的位置信息将预设内存画布上的目标像素点的颜色设为预设颜色,从而形成显示图案,经过预设时间段后将所形成的显示图案显示在触摸显示设备上。由于显示图案显示在显示窗口的次数大大减少,可减少时间的损耗,从而避免延迟现象的出现,提高用户的操作体验。
Smart Images

Figure CN116136734B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing, and specifically to a delay-free line drawing and display method, apparatus, device, and storage medium. Background Technology
[0002] The development of touch technology has led users to go beyond simple interactions with terminal devices, seeking to use them more conveniently for daily life and work tasks. For example, writing and drawing on touch display devices.
[0003] When a user performs writing or drawing operations on a terminal device, the device receives data from each point on the touchscreen, draws on a memory canvas, and then copies the content from the memory canvas to the display window for presentation to the user. Because copying the content from the memory canvas to the display window is time-consuming, delays frequently occur during writing or drawing operations, resulting in a poor user experience. Summary of the Invention
[0004] Therefore, this invention aims to solve the technical problem of frequent delays during writing or drawing operations, and provides a delay-free line drawing display method for displaying patterns corresponding to received touch screen actions on a touch display device, comprising the following steps:
[0005] Receive touch actions on the touch display device and save the position information of the pixel corresponding to the touch action to a preset memory;
[0006] The position information stored in the preset memory is read, and the color of the target pixel on the preset memory canvas is set to a preset color based on the read position information to form a display pattern; wherein, the position of the target pixel corresponds to the position information;
[0007] After a preset time period, the display pattern on the preset memory canvas is displayed on the touch display device.
[0008] Preferably, the method further includes: monitoring whether the location information is continuously stored in the current preset memory;
[0009] When it is detected that the location information is not continuously stored in the current preset memory, a display pattern is formed based on the location information in the current preset memory and then displayed on the touch display device.
[0010] Preferably, displaying the display pattern on the preset memory canvas on the touch display device includes: using the bitblt function, XCopyArea function, or StretchBlt function to display the display pattern on the preset memory canvas on the touch display device.
[0011] Preferably, displaying the display pattern on the preset memory canvas using the bitblt function, XCopyArea function, or StretchBlt function includes:
[0012] The display pattern on the preset memory canvas is displayed on the touch display device using the bitblt function, XCopyArea function, or StretchBlt function.
[0013] Preferably, the method further includes: after reading the location information stored in the preset memory, clearing the location information in the preset memory;
[0014] The system receives another touch action on the touch display device and saves the position information of the pixels of the touch action to the preset memory.
[0015] Preferably, receiving a touch action on the touch display device and saving the position information of the corresponding pixel in a preset memory includes:
[0016] Use a preset cache to call the GetRawInputData function or the read function once to obtain the pixel position information corresponding to the touch action;
[0017] The pixel position information is parsed and saved to the preset memory.
[0018] The present invention also provides a delay-free line drawing display device for displaying patterns corresponding to touch screen actions received by a touch display device, comprising:
[0019] A receiving and storage module is used to receive touch actions on the touch display device and save the position information of the pixels corresponding to the touch actions into a preset memory.
[0020] The drawing module is used to read the position information stored in the preset memory, and set the color of the target pixel on the preset memory canvas to a preset color based on the read position information to form a display pattern; wherein the position of the target pixel corresponds to the position information;
[0021] The first display module is used to display the display pattern on the preset memory canvas on the touch display device after a preset time period.
[0022] Preferably, the display device further includes: a monitoring module, used to monitor whether the location information is continuously stored in the current preset memory;
[0023] The second display module is used to, when it is detected that the location information is not continuously stored in the current preset memory, form a display pattern based on the location information in the current preset memory and display the display pattern on the touch display device.
[0024] The present invention also provides a computer device, including: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the above-described delay-free line drawing and display method.
[0025] The present invention also provides a computer-readable storage medium storing computer instructions for causing a computer to execute the above-described delay-free line drawing and display method.
[0026] The technical solution of this invention has the following advantages:
[0027] The delay-free line drawing and display method provided by this invention saves the pixel position information corresponding to the touch action of the touch display device into a preset memory, reads the position information from the preset memory, and sets the color of the target pixel on the preset memory canvas to a preset color based on the read position information, thereby forming a display pattern. After a preset time period, the formed display pattern is displayed on the touch display device. Since the number of times the display pattern is displayed in the display window is greatly reduced, the time loss can be reduced, thereby avoiding the occurrence of delay and improving the user's operating experience. Attached Figure Description
[0028] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0029] Figure 1 This is a flowchart of the delay-free line drawing and display method of Embodiment 1 of the present invention;
[0030] Figure 2 This is a schematic diagram of the structure for drawing lines on a display window in the delay-free line drawing and display method of Embodiment 1 of the present invention;
[0031] Figure 3This is another flowchart of the delay-free line drawing and display method of Embodiment 1 of the present invention;
[0032] Figure 4 This is a structural block diagram of the delay-free line drawing display device according to Embodiment 2 of the present invention;
[0033] Figure 5 This is another structural block diagram of the delay-free line drawing display device according to Embodiment 2 of the present invention;
[0034] Figure 6 This is a schematic block diagram of the computer device in Embodiment 3 of the present invention. Detailed Implementation
[0035] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0036] In the description of this invention, it should be noted that the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, the technical features involved in the different embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0037] The development of touch technology has greatly improved the user experience of interacting with terminal devices. In particular, the application of capacitive screens on terminal devices has led users to go beyond simple interaction; they now desire to use these devices to handle daily life and work matters more conveniently. For example, writing and / or drawing on terminal devices.
[0038] In existing technologies, delays frequently occur when writing and / or drawing on terminal devices. For example, when writing on a terminal device, the display window shows the characters significantly slower than the user's writing speed, severely impacting the user experience.
[0039] Example 1
[0040] This embodiment provides a method for displaying line drawing without delay. Figure 1 This is a flowchart illustrating the display of a touch action corresponding to a pattern on a touch display device according to certain embodiments of the present invention. Although the process described below includes multiple operations that appear in a specific order, it should be clearly understood that these processes may also include more or fewer operations, which may be executed sequentially or in parallel (e.g., using a parallel processor or a multi-threaded environment).
[0041] This embodiment provides a zero-latency line drawing and displaying method, which is used for a touch display device to display a pattern corresponding to a received touch screen action. For example, when a user writes the Chinese character "一" on a display window of the touch display device, the touch display device displays the corresponding Chinese character "一" in the display window. The touch display device may employ a capacitive screen or an electromagnetic screen, and said touch display device is a human-computer interaction device, including but not limited to terminal devices such as smartphones, smart watches, tablet computers, and notebook computers. As Figure 1 shown, the zero-latency line drawing and displaying method comprises the following steps:
[0042] S101, receiving a touch action on said touch display device, and saving position information of pixel points corresponding to said touch action into a preset memory.
[0043] In the above implementation steps, a user can interact with the touch display device using media such as fingers, styluses, capacitive pens, mice, electromagnetic pens, etc. Among them, electromagnetic pens, styluses and capacitive pens refer to external devices capable of interacting on the display window of the touch display device. For example, writing and / or drawing is performed on a display window of a tablet computer using a capacitive pen. It should be noted that the touch display device may be a display device with a processor, such as a mobile phone, a tablet computer, a notebook computer, etc.; the touch display device may also be a device only having a touch display function, in which case the touch display device needs to be connected to a device with a processor to implement data processing and display functions.
[0044] In some embodiments, when a user interacts with the touch display device, the user contacts the display window of the touch display device, that is, performs a touch action (i.e., a touch screen action) on the display window of the touch display device to draw lines on the display window. For example, when a user writes the Chinese character "口" on a tablet computer using a capacitive pen, the user needs to write on the display window with the capacitive pen just like writing on paper to draw the lines required for the Chinese character "口". It should be noted herein that both writing and painting can be understood as display patterns composed of lines.
[0045] After the touch display device receives the touch action, it saves the position information of the pixel points corresponding to the touch action in the display window into the preset memory. A person skilled in the art can reasonably select the size of the preset memory according to actual conditions, which is not limited herein.
[0046] Furthermore, a preset cache can be pre-allocated. After receiving a touch action, the touch display device, under Windows, uses the preset cache to call the GetRawInputData function only once to obtain touch data. This touch data is the pixel position information corresponding to the touch action. After parsing the touch data, the parsed data is saved to a preset memory. Compared to the prior art, which calls the GetRawInputData function once to obtain the required cache size and allocate the cache after each touch action, and then calls the GetRawInputData function a second time to obtain the coordinate data corresponding to the touch action (i.e., the pixel position information corresponding to the touch action), the technical solution provided in this embodiment can reduce the number of calls to the GetRawInputData function and the number of cache allocations, thereby reducing the possibility of latency and improving the user experience. Under Linux, the preset cache can be used to call the read function only once to obtain touch data.
[0047] like Figure 2 As shown, the display window 200 is formed by numerous pixels 201. After receiving a touch action from the touch display device, the position information of the corresponding pixel in the display window 200 is identified and saved to a preset memory. For example, if a user draws a horizontal line on the display window 200 with a capacitive stylus, forming a line 202, the position information of the pixel in the display window 200 corresponding to the line 202 is saved to a preset memory.
[0048] When using a touch display device with its own processor, after receiving a touch action on the display window, the position information of the pixel point corresponding to the touch action in the display window is saved to its own preset memory; when using a touch display device with only touch display function, after receiving a touch action on the display window, the position information of the pixel point corresponding to the touch action in the display window is saved to the preset memory of the external processor.
[0049] S102. Read the position information stored in the preset memory, and set the color of the target pixel on the preset memory canvas to a preset color based on the read position information to form a display pattern; wherein, the position of the target pixel corresponds to the position information.
[0050] In the above embodiments, the preset memory contains position information of pixels corresponding to touch actions, and the memory canvas can have the same number and arrangement of pixels as the display window. The position information stored in the preset memory is read, and the target pixel is determined on the preset memory canvas based on the read position information. The color of the target pixel on the preset memory canvas is changed to a preset color, thereby forming a display pattern. The preset color can be selected according to the user's pre-settings, such as black, green, red, or blue selected by the user in the system. In some embodiments, the number of pixels on the memory canvas can be greater than the number of pixels in the display window, that is, the size of the memory canvas is larger than the size of the display window.
[0051] It should be noted that when using a touch display device with its own processor, the default memory canvas is the memory canvas of the touch display device itself; when using a touch display device with only touch display function, the default memory canvas is the memory canvas of the external processor.
[0052] For example, such as Figure 2 As shown, the display window 200 has an 8*8 pixel array, and the preset memory canvas (not shown) also has an 8*8 pixel array. A line 202 is drawn on the display window 200, and the position information of line 202 corresponds to the pixels in row 4, column 2 to row 4, column 7 of the display window 200. Then, based on the position information of line 202, the corresponding position is determined on the memory canvas, that is, the target pixel at position "row 4, column 2 to row 4, column 7" is determined on the preset memory canvas.
[0053] S103. After a preset time period, the display pattern on the preset memory canvas is displayed on the touch display device.
[0054] In the above implementation steps, a timer can be used to periodically display the pattern on the preset memory canvas on the touch display device. That is, after a preset time period, a pattern corresponding to the user's touch screen action is displayed on the display window to interact with the user. The preset time period can be 30-60 frames, such as 40 or 50 frames. It should be noted that the preset time period should be set according to the number of frames that the human eye can perceive; those skilled in the art can choose a reasonable time period based on the actual situation.
[0055] Since the displayed pattern is drawn based on the positional information in the preset memory and then displayed in the display window after a preset time period, the number of times the displayed pattern is refreshed can be reduced, that is, the number of times the pattern on the preset memory canvas is copied to the display window can be reduced. Because copying the pattern from the preset memory canvas to the display window is time-consuming, reducing the number of times the pattern is copied can significantly reduce time loss, thereby avoiding latency and improving the user experience.
[0056] In the above embodiments, the pixel position information corresponding to the touch action of the touch display device is saved to a preset memory. The position information in the preset memory is read, and the color of the target pixel on the preset memory canvas is set to a preset color based on the read position information, thereby forming a display pattern. After a preset time period, the formed display pattern is displayed on the touch display device. Since the number of times the display pattern is displayed in the display window is greatly reduced, the time loss can be reduced, thereby avoiding the occurrence of delay and improving the user's operating experience.
[0057] In one or more embodiments, such as Figure 3 As shown, the delay-free line drawing and display method further includes the following steps:
[0058] S201. Monitor whether the location information is continuously stored in the current preset memory.
[0059] In the above implementation steps, if the touch action on the touch display device is not continuous, the acquired position information will be interrupted, indicating that the drawing on the touch display device has been terminated. It should be noted that the current preset memory refers to the memory that stores the position information.
[0060] S202. When it is detected that the location information is not continuously stored in the current preset memory, a display pattern is formed based on the location information in the current preset memory, and the display pattern is displayed on the touch display device.
[0061] In the above implementation steps, if the drawing on the touch display device is terminated, the display pattern can be displayed on the touch display device after reading the position information in the preset memory and forming the display pattern, without waiting for a preset time period, which can improve the display effect.
[0062] Although the process described above includes multiple operations that occur in a specific order, it should be clearly understood that these processes can also include more or fewer operations, which can be executed sequentially or in parallel (e.g., using parallel processors or a multithreaded environment).
[0063] In one or more embodiments, for Windows systems, the `bitblt` or `StretchBlt` function can be used to display the pattern on the preset memory canvas on the touch display device. For example, after drawing the pattern on the preset memory canvas, the `bitblt` function is used to copy the pattern from the preset memory canvas to the display window for presentation to the user. However, since calling the `bitblt` function is time-consuming, the delay-free line drawing display method provided in this embodiment can greatly reduce the number of calls to the `bitblt` function and avoid latency. In some embodiments, for Linux systems, the `XCopyArea` function can be used to display the pattern on the preset memory canvas on the touch display device.
[0064] In one or more embodiments, the bitblt function, XCopyArea function, or StretchBlt function is used to display the display pattern on the preset memory canvas on the touch display device, that is, to display the display pattern on the preset memory canvas at the pixel position corresponding to the touch action in the display window.
[0065] For example, such as Figure 2 As shown, a line 202 is drawn on the display window 200. The position of the line 202 corresponds to the pixel points "row 4 column 2 to row 4 column 7" in the display window 200. After the touch display device draws the line on the preset memory canvas, it displays the line on the preset memory canvas on the pixel points "row 4 column 2 to row 4 column 7" of the display window 200.
[0066] It should be noted that users can draw on one touch display device, while the image is displayed on another touch display device. For example, drawing on a graphics tablet and displaying the image on a desktop computer monitor.
[0067] In one or more embodiments, after reading the position information stored in the preset memory, the position information in the preset memory is cleared; a touch action on the touch display device is received again, and the position information of the pixels of the touch action is saved to the preset memory. It should be noted that the preset memory can be in a full state or a partially full state at this time. When the preset memory is full of position information, the position information in the preset memory is read and a pattern is drawn on the memory canvas, and then the position information in the preset memory is cleared to store subsequent position information. When the preset memory is not full of position information but no subsequent position information is received, the position information in the preset memory is read and a pattern is drawn on the memory canvas, and then the position information in the preset memory is cleared.
[0068] The location information in the preset memory can be cleared before or after it is displayed in the display window. Those skilled in the art can make a reasonable choice based on the actual situation, and no restrictions are imposed here.
[0069] The delay-free line drawing and display method provided in this embodiment can still ensure that there is no delay when the window is transparent and / or the mouse event is transparent.
[0070] Example 2
[0071] This embodiment provides a delay-free line drawing display device for displaying patterns corresponding to touch screen actions received by a touch display device, such as... Figure 4 As shown, the delay-free line drawing display device includes:
[0072] The receiving and storage module 301 is used to receive touch actions on the touch display device and save the position information of the corresponding pixel points of the touch actions into a preset memory; for details, please refer to the relevant description of step S101 in Embodiment 1, which will not be repeated here.
[0073] The reading and drawing module 302 is used to read the position information stored in the preset memory, and set the color of the target pixel on the preset memory canvas to a preset color based on the read position information to form a display pattern; wherein, the position of the target pixel corresponds to the position information; for details, please refer to the relevant description of step S102 in Embodiment 1, which will not be repeated here.
[0074] The first display module 303 is used to display the display pattern on the preset memory canvas on the touch display device after a preset time period. For details, please refer to the relevant description of step S103 in Embodiment 1, which will not be repeated here.
[0075] In the above embodiment, the receiving and storage module 301 saves the pixel position information corresponding to the touch action of the touch display device into a preset memory. The reading and drawing module 302 reads the position information in the preset memory and sets the color of the target pixel on the preset memory canvas to a preset color based on the read position information, thereby forming a display pattern. After a preset time period, the first display module 303 displays the formed display pattern on the touch display device. Since the number of times the display pattern is displayed in the display window is greatly reduced, the time loss can be reduced, thereby avoiding the occurrence of delay and improving the user's operating experience.
[0076] In one or more embodiments, such as Figure 5 As shown, the delay-free line drawing display device further includes:
[0077] The monitoring module 401 is used to monitor whether the location information is continuously stored in the current preset memory; for details, please refer to the relevant description of step 201 in Embodiment 1, which will not be repeated here.
[0078] The second display module 402 is used to, when it is detected that the position information is not continuously stored in the current preset memory, form a display pattern based on the position information in the current preset memory, and then display the display pattern on the touch display device. For details, please refer to the relevant description of step 202 in Embodiment 1, which will not be repeated here.
[0079] In one or more embodiments, the first display module 303 and / or the second display module 402 use the bitblt function, the XCopyArea function, or the StretchBlt function to display the display pattern on the preset memory canvas on the touch display device. For details, please refer to the relevant description in Embodiment 1, which will not be repeated here.
[0080] Example 3
[0081] This embodiment provides a computer device, such as... Figure 6 As shown, the computer device includes a processor 501 and a memory 502, wherein the processor 501 and the memory 502 can be connected via a bus or other means. Figure 6 Taking the example of a connection between China and Israel via a bus.
[0082] Processor 501 can be a Central Processing Unit (CPU). Processor 501 can also be other general-purpose processors, digital signal processors (DSPs), graphics processing units (GPUs), embedded neural network processing units (NPUs), or other dedicated deep learning coprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips.
[0083] Memory 502, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the delay-free line drawing and display method in this embodiment of the invention (e.g., Figure 4The receiving and storage module 301, the reading and drawing module 302, and the first display module 303 shown are... Figure 5 The monitoring module 401 and the second display module 402 are shown. The processor 501 executes various functional applications and data processing by running non-transitory software programs, instructions and modules stored in the memory 502, thereby realizing the delay-free line drawing and display method in the above-described method embodiment 1.
[0084] Memory 502 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor 501, etc. Furthermore, memory 502 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 502 may optionally include memory remotely located relative to processor 501, and these remote memories may be connected to processor 501 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0085] The one or more modules are stored in the memory 502, and when executed by the processor 501, they perform actions such as... Figure 1 The method for displaying delayed line drawing in the illustrated embodiment.
[0086] In this embodiment, the memory 502 stores program instructions or modules for a delay-free line drawing display method. When the processor 501 executes the program instructions or modules stored in the memory 502, it saves the pixel position information corresponding to the touch action of the touch display device to a preset memory, reads the position information from the preset memory, and sets the color of the target pixel on the preset memory canvas to a preset color based on the read position information, thereby forming a display pattern. After a preset time period, the formed display pattern is displayed on the touch display device. Since the number of times the display pattern is displayed in the display window is greatly reduced, the time loss can be reduced, thereby avoiding the occurrence of delay and improving the user's operating experience.
[0087] This invention also provides a computer-readable storage medium storing computer-executable instructions that can execute the delay-free line drawing and display method in any of the above method embodiments. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium may also include combinations of the above types of memory.
[0088] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.
Claims
1. A delay-free line drawing display method for displaying patterns corresponding to received touch screen actions on a touch display device, characterized in that, The steps include the following: Receive touch actions on the touch display device and save the position information of the pixel corresponding to the touch action to a preset memory; The position information stored in the preset memory is read, and the color of the target pixel on the preset memory canvas is set to a preset color based on the read position information to form a display pattern; wherein, the position of the target pixel corresponds to the position information; After a preset time period, the display pattern on the preset memory canvas is displayed on the touch display device, wherein the preset time period is set according to the number of frames that the human eye can recognize; After reading the location information stored in the preset memory, clear the location information in the preset memory; The system receives another touch action on the touch display device and saves the pixel position information of the touch action to the preset memory. The step of receiving a touch action on the touch display device and saving the position information of the corresponding pixel in a preset memory includes: Use a preset cache to call the GetRawInputData function or the read function once to obtain the pixel position information corresponding to the touch action; The pixel position information is parsed and saved to the preset memory. The method further includes: Monitor whether the location information is continuously stored in the current preset memory; When it is detected that the location information is not continuously stored in the current preset memory, a display pattern is formed based on the location information in the current preset memory, and the display pattern is displayed on the touch display device. When using a touch display device with only touch display function, the preset memory canvas is the memory canvas of the external processor. The step of displaying the display pattern on the preset memory canvas on the touch display device includes: The display pattern on the preset memory canvas is displayed on the touch display device using the bitblt function, XCopyArea function, or StretchBlt function.
2. A delay-free line drawing display device for displaying patterns corresponding to touch screen actions received by a touch display device, characterized in that, include: A receiving and storage module is used to receive touch actions on the touch display device and save the position information of the pixel corresponding to the touch action to a preset memory, including: using a preset cache to call the GetRawInputData function or the read function once to obtain the pixel position information corresponding to the touch action; The pixel position information is parsed and saved to the preset memory. The drawing module is used to read the position information stored in the preset memory, and set the color of the target pixel on the preset memory canvas to a preset color based on the read position information to form a display pattern; wherein the position of the target pixel corresponds to the position information; The first display module is used to display the display pattern on the preset memory canvas on the touch display device after a preset time period, wherein the preset time period is set according to the number of frames that the human eye can recognize; It is also used to clear the position information stored in the preset memory after reading the position information; to receive the touch action on the touch display device again, and to save the position information of the pixels of the touch action into the preset memory; The monitoring module is used to monitor whether the location information is continuously stored in the current preset memory. The second display module is used to, when it is detected that the location information is not continuously stored in the current preset memory, form a display pattern based on the location information in the current preset memory and display the display pattern on the touch display device. It is also used to: monitor whether the location information is continuously stored in the currently preset memory; When it is detected that the location information is not continuously stored in the current preset memory, a display pattern is formed based on the location information in the current preset memory, and the display pattern is displayed on the touch display device. When using a touch display device with only touch display function, the preset memory canvas is the memory canvas of the external processor. The step of displaying the display pattern on the preset memory canvas on the touch display device includes: The display pattern on the preset memory canvas is displayed on the touch display device using the bitblt function, XCopyArea function, or StretchBlt function.
3. A computer device, characterized in that, include: The system includes a memory and a processor, which are interconnected. The memory stores computer instructions, and the processor executes the computer instructions to perform the delay-free line drawing and display method of claim 1.
4. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to execute the delay-free line drawing and display method of claim 1.
Citation Information
Patent Citations
Touch screen event acquisition method and apparatus
CN105807966A
Intelligent terminal display control method and device, storage medium and intelligent terminal
CN108762652A