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

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

Active Publication Date: 2020-02-14
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF6 Cites 0 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

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

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 for quickly erasing lines and a system thereof. Background technique [0002] The existing line erasing is to clear the drawn lines by setting the brush as the background color and covering the original lines. In this way, if the user needs to erase the entire line and the number is large, the operation will be very troublesome. Poor user experience. [0003] The Chinese patent application with the authorized announcement number CN 1109291 C discloses a data processing device and its method. It specifically discloses that a drawing is input through a pen touch and a touch screen surface. In the drawing mode, during drawing input, each line drawn Lines are all entered and displayed in different colors. Then, in erase mode, after assigning a color to the line to be erased, handle the line to be erased with the pen. In this scheme, the lines to be erased are d...

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 Patents(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