Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2016-11-16
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the drawing process and the erasing process are relatively complicated, and the fast and accurate erasing of line segments cannot be achieved.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Rapid line erasing method and system
  • Rapid line erasing method and system
  • Rapid line erasing method and system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a rapid line erasing method and system. The method comprises steps of obtaining drawing path points; obtaining a drawing path point array corresponding to each drawing line according to the drawing path points; obtaining a background color of an initial drawing interface; obtaining an erasing path point array corresponding to drawn erasing lines in the erasing process; obtaining color values of each erasing path point in the erasing path point array corresponding to the background color of the initial drawing interface and a current drawing interface; according to obtained order traversal erasing path points in the erasing path point array, determining whether the color value of each erasing path point corresponding to the background color of the drawing interface is consistent to the color value of each erasing path point corresponding to the current drawing interface or not, and obtaining a determination result; finishing traversal if the determination result is inconsistent; and obtaining drawing lines of the erasing path points containing color value changes, and erasing obtained drawing lines.

Description

Technical field [0001] The invention relates to the field of data analysis and processing, in particular to a method and system for quickly erasing lines. Background technique [0002] Existing line erasing is achieved by setting the brush as the background color and covering the original line to remove the drawn line. In this case, if the user needs to erase the entire line and the number is large, the operation will be very troublesome. The user experience is poor. [0003] The Chinese patent application with the authorization announcement number CN 1109291 C discloses a data processing device and its method. It specifically discloses inputting a drawing by touching the touch screen surface with a pen. In the drawing mode, each drawing is drawn during the drawing input period. The lines are all entered and displayed in different colors. Then, in the erase mode, after specifying a color for the line to be erased, process the line to be erased with a pen. In this solution, the e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06T3/40
CPCG06T3/40
Inventor 刘德建郑凌耿方振华郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products