Rapid line erasing method and system
A line and fast technology, applied in image data processing, instruments, calculations, etc., can solve problems such as the inability to achieve fast and accurate erasing of line segments, the drawing process, and the complexity of the erasing process, so as to improve 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
Image
Examples
Embodiment 1
[0085] This embodiment provides a method for quickly erasing lines, which may include the following:
[0086] Obtaining a drawing trajectory point; obtaining a drawing trajectory point array corresponding to each drawing line according to the drawing trajectory point;
[0087] Specifically, the method for obtaining 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; according to the newly drawn drawing track points and the previous basis The historical drawing track points acquired in the data update cycle, and the drawing lines and their corresponding drawing track point arrays are acquired.
[0088] Get the background color of the initial drawing interface;
[0089] Obtain the erase track point array corresponding to the erase line drawn in the erase process;
[0090] Obtain the color value of each erase track point in the erase track point array corresponding to th...
Embodiment 2
[0100] See figure 2 This embodiment provides a method for quickly erasing lines, which may 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 erased line are realized through the mouse operation; for the system, the position of the drawn line is determined by monitoring the mouse event, and the corresponding track point is obtained by monitoring the drawing event according to the mouse event , And draw it out.
[0102] 1. Specifically, the monitoring process of mouse events is as follows:
[0103] Perform logical processing according to the different mouse messages received by the Panel (because mouse events are used to obtain relevant data, Panel can judge whether to er...
Embodiment 3
[0130] Please refer to figure 2 with 3 This embodiment is a further extension on the basis of the second embodiment, and the similarities will not be repeated. The difference is that the process of erasing track points in the trace point array EL has been refined. During the mouse event monitoring process, when the mouse slides quickly, the system does not record the position of each mouse cursor, so it is impossible to accurately obtain all the erase track points, such as image 3 In the middle, the hollow track point is the point where the original mouse has passed, and the track formed by the original track point is incomplete, so we need to refine the trajectory to fill in the missing erase track points. image 3 The solid track point. The specific process can include the following steps:
[0131] A. When processing the WM_PAINT message in the message processing function, first determine whether the array length length of the erased track point array EL is 0; if it is, then j...
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