Method and system for quickly erasing lines
A line and fast technology, applied in the direction of instruments, graphics and image conversion, calculation, etc., can solve the problems of fast and accurate erasing of line segments, the drawing process and the complex erasing process, so as to improve the erasing efficiency and user experience. , the effect of accurate erasing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment 1
[0085] This embodiment provides a method for quickly erasing lines, which may include the following:
[0086] Acquiring drawing trajectory points; obtaining an array of drawing trajectory points corresponding to each drawing line according to the drawing trajectory points;
[0087] Specifically, the way to obtain the drawing track points may include: preset the data update cycle of the drawing process; obtain the latest drawn drawing track points according to the data update cycle; The historical drawing track points obtained in the data update cycle, and the drawing lines and their corresponding drawing track point arrays are obtained.
[0088] Get the background color of the initial drawing interface;
[0089] Obtain the array of erasing track points corresponding to the erasing lines drawn during the erasing process;
[0090] Obtain the color value corresponding to the background color of the initial drawing interface and the color value corresponding to the current drawi...
Embodiment 2
[0100] see figure 2 , this embodiment provides a method for quickly erasing lines, which can be implemented based on a window system or a mobile terminal (android, ios, etc.), and may specifically include the following:
[0101] Create a window for drawing (hereinafter referred to as Panel), register the window procedure, and listen to drawing events and mouse events at the same time. For the operator, the drawing of the drawing line and the drawing of the erasing line are realized through the mouse operation; for the inside of the system, the position of the drawn line is determined by monitoring the mouse event, and the corresponding track point is obtained according to the mouse event by monitoring the drawing event , and plotted to display it.
[0102] 1. Specifically, the monitoring process of the mouse event is as follows:
[0103] Logical processing is performed according to different mouse messages received by the Panel (since mouse events are used to obtain relevan...
Embodiment 3
[0130] Please refer to figure 2 and 3 , this embodiment is a further extension on the basis of the second embodiment, the similarities will not be repeated, and the difference is that the process of refining the erasing track points in the erasing track point array EL is added. During the mouse event monitoring process, when the mouse slides fast, the system does not record the position of each mouse slide, so it is impossible to accurately obtain all erasure track points, such as image 3 In , the hollow track point is the position point where the original mouse slid over, and the track formed by the original track point is incomplete, so we need to refine and reconstruct the track to fill in the missing erasing track point, image 3 The solid trajectory point in the center. The specific process may include the following steps:
[0131] A. When processing the WM_PAINT message in the message processing function, firstly judge whether the array length length of the erasing ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com