CN113093938B - Method and device for realizing writing and erasing simultaneously and terminal equipment - Google Patents

Method and device for realizing writing and erasing simultaneously and terminal equipment Download PDF

Info

Publication number
CN113093938B
CN113093938B CN202110341017.3A CN202110341017A CN113093938B CN 113093938 B CN113093938 B CN 113093938B CN 202110341017 A CN202110341017 A CN 202110341017A CN 113093938 B CN113093938 B CN 113093938B
Authority
CN
China
Prior art keywords
erasing
writing
area
electronic whiteboard
points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110341017.3A
Other languages
Chinese (zh)
Other versions
CN113093938A (en
Inventor
王敏
张振宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202110341017.3A priority Critical patent/CN113093938B/en
Publication of CN113093938A publication Critical patent/CN113093938A/en
Application granted granted Critical
Publication of CN113093938B publication Critical patent/CN113093938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Drawing Aids And Blackboards (AREA)
  • Position Input By Displaying (AREA)
  • Facsimiles In General (AREA)

Abstract

The invention provides a method and a device for realizing writing and erasing simultaneously and terminal equipment. The erasing area is divided into a first erasing area, a second erasing area and a third erasing area according to the time sequence of the erasing objects and the writing objects touching on the electronic whiteboard. Marking the drawn line points in the writing area, which are intersected with the second erasing area, as to-be-erased points, and marking the drawn line points in the writing area, which are not intersected with the second erasing area, as connecting line points. And when the writing object stops touching the electronic whiteboard and the writing area enters the writing queue, removing the drawn lines marked as the points to be erased in the writing area, and connecting the drawn lines marked as the connecting lines. The crossed draw-line points formed on the electronic whiteboard by the written object and the erased object at the same time are erased. And if the intersection area exists between the writing area and the third erasing area, removing the drawn line point in the intersection area. The removal of the line drawing points enables the line drawing to show a partially erased effect, which is consistent with the actual effect to be achieved by the edge writing and erasing effect of the electronic whiteboard.

Description

Method and device for realizing writing and erasing simultaneously and terminal equipment
The application is a divisional application of a Chinese patent application which is submitted to a Chinese patent office in 2018, 1 month and 31 days, has an application number of 201810097349.X and has a patent name of' method, device and terminal equipment for realizing writing and erasing.
Technical Field
The invention relates to the technical field of touch control, in particular to a method and a device for realizing writing and erasing simultaneously and a terminal device.
Background
An electronic whiteboard is an electronic product applied to a touch control all-in-one machine. Under the support of an application program, the touch control all-in-one machine is touched by a writing object such as a pen, a hand or other touch objects, so that writing on the electronic whiteboard can be realized. The written content is stored in a computer for saving, copying, printing, and the like. The electronic whiteboard can also realize the functions of annotation, drag and drop, hiding and the like, thereby greatly enriching the multimedia functions of the traditional computer and being gradually applied to scenes such as paperless office, teaching, collaborative meetings and the like.
In some specific situations, such as situations where important meeting contents, commercial secrets, military secrets and the like cannot be disclosed and reserved, when the electronic whiteboard is used for communication, written contents need to be erased in time through an eraser such as a board eraser, a hand or other touch objects, that is, the electronic whiteboard needs to realize a function of erasing while writing. At present, electronic whiteboards using the method of writing and erasing at the same time generally use two superposed image layers, that is: the drawing layer is displayed on the upper layer, and the background layer is displayed on the lower layer. In the process of writing and erasing while writing, a writing area formed by writing the writing object on the drawing layer is opaque, and an erasing area formed by passing the erasing object on the drawing layer is transparent, namely: a writing area formed by the drawn lines formed by writing is displayed in an opaque state and is displayed in the color of the drawn lines; the erasing area formed by the erasing objects is in transparent display and is displayed as the color of the background layer. And after the drawn lines are written and enter the writing queue, calculating the erasing area and the drawn lines entering the writing queue to obtain the drawn lines to be erased. And setting the drawn line to be erased to be transparent so as to update the drawing layer, thereby realizing the writing and erasing functions of the electronic whiteboard.
Because the starting and ending time of the line drawing and the erasing are different in the writing and erasing process, the writing and erasing process can be divided into a: writing first and then erasing, and finishing writing first, b: write first and erase last, c: erasing first, writing then, finishing first, d: four cases of first erasing and then writing erasing are finished first. For example: for b: the write-then-erase-end-first case is shown in fig. 1. Since the writing area including the drawn line is formed by writing and then the erasing operation is performed, if the erasing area intersects the drawn line in the writing area, the intersected drawn line should be erased, as shown in fig. 2. However, since the erasing is ended first and the action of drawing the line is still in progress, i.e., the line is not entered into the writing queue, and thus the line that has not entered the writing queue does not participate in the erasing calculation, the intersecting line cannot be erased. When the drawing layer needs to be updated after writing, the erasing area displays the crossed drawing which needs to be erased. Therefore, the condition that the drawn line cannot be erased easily occurs by using the existing method for writing while erasing, namely the effect of writing while erasing of the electronic whiteboard is not consistent with the actual effect to be achieved, and the function of writing while erasing of the electronic whiteboard is influenced.
Disclosure of Invention
The invention provides a method, a device and a terminal device for realizing writing and erasing, which aim to solve the problem that the writing and erasing effect of the existing electronic whiteboard is not consistent with the actual effect.
In a first aspect, the present invention provides a method for implementing writing and erasing, including:
respectively forming a writing area and an erasing area according to the continuous touch of the writing object and the erasing object on the electronic whiteboard;
the erasing area comprises a first erasing area and a second erasing area, wherein the first erasing area is an erasing area formed before the first drawing point is formed on the electronic whiteboard by the writing object, and the second erasing area is an erasing area formed after the first drawing point is formed on the electronic whiteboard by the writing object;
marking the line drawing points in the writing area along with the formation of the writing area, wherein the line drawing points which are intersected with the second erasing area are marked as points to be erased, and the line drawing points which are not intersected with the second erasing area are marked as connecting points;
and the writing object stops touching the electronic whiteboard, and before the writing area enters a writing queue, the point to be erased is removed, and the connecting point is connected.
In a second aspect, the present invention provides an apparatus for implementing writing and erasing, including:
the writing module is used for forming a writing area according to continuous touch of a writing object on the electronic whiteboard;
the erasing module is used for forming an erasing area according to continuous touch of an erasing object on the electronic whiteboard; the erasing area comprises a first erasing area and a second erasing area;
the marking module is used for marking the scribing points in the writing area along with the formation of the writing area, wherein the scribing points which are intersected with the erasing area are marked as points to be erased, and the scribing points which are not intersected with the erasing area are marked as connecting points;
the removing module is used for removing the to-be-erased point before the writing object stops touching the electronic whiteboard and the writing area enters a writing queue;
and the line connecting module is used for connecting the line connecting point before the writing object stops touching the electronic whiteboard and the writing area enters the writing queue.
In a third aspect, the invention provides a terminal device, which includes the device for implementing writing and erasing in the second aspect.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
the invention provides a method and a device for realizing writing and erasing simultaneously and terminal equipment. In the writing-while-erasing process, the writing area and the erasing area are respectively formed by the continuous touch of the writing object and the erasing object on the electronic whiteboard, wherein the erasing area comprises a first erasing area and a second erasing area. The first erasing area is an erasing area formed before the first drawing point is formed on the electronic whiteboard by the writing object, and the second erasing area is an erasing area formed after the first drawing point is formed on the electronic whiteboard by the writing object. Marking the drawn line points in the writing area along with the formation of the writing area, wherein the drawn line points which are intersected with the second erasing area are marked as points to be erased, and the drawn line points which are not intersected with the second erasing area are marked as connecting line points, so that the drawn line points in the writing area are respectively marked in different states according to different writing and erasing time sequences. When the writing object stops touching the electronic whiteboard and the writing area enters the writing queue, the drawn line points marked as points to be erased in the writing area are removed, the connecting lines are marked as the drawn line points of the connecting line points, at the moment, the crossed drawn line points formed by the writing object and the erasing object on the electronic whiteboard at the same time are erased, and further, the effect that part of the drawn line is erased is presented, which is consistent with the actual effect to be achieved by the edge-writing and edge-erasing effect of the electronic whiteboard.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly describe the technical solution of the present application, the drawings required to be used in the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a diagram of a write-while-erase process in the erase process b, in which the write-before-erase-end-first case is shown;
FIG. 2 is a diagram illustrating the theoretical effect of the first-write-then-erase-first-end situation during the erase process b;
fig. 3 is a schematic flow chart of a method for implementing writing while erasing according to an embodiment of the present invention;
FIG. 4(a) is a diagram of a write-while-erase process for a write-before-erase-write-first-end case according to an embodiment of the present invention;
FIG. 4(b) is a diagram of a write-while-erase process for a write-before-erase-end-first case according to an embodiment of the present invention;
FIG. 4(c) is a diagram illustrating a process of erasing while writing under the condition of first erasing, then writing and ending first;
FIG. 4(d) is a diagram of a write-while-write erase process for an erase-before-write erase end-first case according to an embodiment of the present invention;
FIG. 5(a) is a diagram illustrating the actual effect of the first-write-then-erase-first-end situation provided by the embodiment of the present invention;
FIG. 5(b) is a diagram illustrating the practical effect of the first-end-of-write-then-erase condition according to the embodiment of the present invention;
FIG. 5(c) is a diagram illustrating the actual effect of the first-erase, then-write and first-end writing situation provided by the embodiment of the present invention;
fig. 5(d) is a diagram illustrating an actual effect of the first-end-first-erase-then-write-erase condition according to the embodiment of the present invention.
Detailed Description
In the writing and erasing function of the electronic whiteboard, because the starting and ending time of line drawing and erasing are different, the writing and erasing process can be divided into a: writing first and then erasing, and finishing writing first, b: write first and erase last, c: erasing first and writing second and finishing first, d: four cases of first erasing and then writing erasing are finished first. For example: for b: write-then-erase-end-first. Since the writing area including the drawn line is formed by writing first and then the erasing operation is performed, if the erasing area intersects the drawn line in the writing area, the intersected drawn line should be erased. However, since the erasing is finished first and the line drawing action is still in progress, that is, the drawn line does not enter the writing queue, and thus the drawn line that has not entered the writing queue does not participate in the erasing calculation, the intersecting drawn lines cannot be erased. When the drawing layer needs to be updated after writing, the erasing area displays the crossed drawing which needs to be erased. Therefore, the condition that the drawn line cannot be erased easily occurs by using the existing method for writing while erasing, namely the effect of writing while erasing of the electronic whiteboard is not consistent with the actual effect to be achieved, and the function of writing while erasing of the electronic whiteboard is influenced.
In order to solve the above problem, embodiments of the present invention provide a method, an apparatus, and a terminal device for implementing writing and erasing. The method for realizing writing and erasing simultaneously provided by the embodiment of the invention has the core idea that: according to the fact that the time for forming the first touch point on the electronic whiteboard by the touch object and the erasing object is different, the erasing area formed on the electronic whiteboard by the erasing object is divided into a first erasing area and a second erasing area, and the drawing point in the writing area is marked according to the relation between the first erasing area, the second erasing area and the writing area. Marking the drawn line points in the writing area formed by the touch object on the electronic whiteboard, namely marking the drawn line points as to-be-erased points and connecting line points, and further removing and retaining the drawn line points formed by the drawn line points in the writing area through the to-be-erased points and the connecting line points.
Specifically, referring to fig. 3, fig. 3 is a schematic flow chart illustrating a method for implementing writing while erasing according to an embodiment of the present invention.
As can be seen from fig. 3, the method for implementing writing and erasing in the embodiment of the present invention includes:
s01: and respectively forming a writing area and an erasing area according to the continuous touch of the writing object and the erasing object on the electronic whiteboard.
The touch of a writing object such as a pen, a hand or other touching object, and an erasing object such as an eraser, a hand or other touching object on the electronic whiteboard forms a touch point. According to the writing purpose and the erasing purpose of the writing object and the erasing object, the touch point formed by the writing object on the electronic whiteboard is defined as the drawn line point, and the touch point formed by the erasing object on the electronic whiteboard is defined as the erasing point in the embodiment of the invention.
The continuous touch of the written object on the electronic whiteboard forms a plurality of drawn lines, and the plurality of drawn lines appear as drawn lines, as shown by thick solid lines in fig. 4, because the written object is continuously touched. The area where the line is drawn is the writing area. The size of the writing area is related to the first drawing point, the last drawing point and the size of the writing object formed by the writing object continuously touching on the electronic whiteboard. The process of forming the drawn line on the electronic whiteboard by the writing object comprises two processes of writing and entering a writing area into a writing queue. Specifically, writing is a normal writing process. The data acquisition device in the electronic whiteboard can judge whether the writing object stops writing or not according to the pressing and lifting actions of the writing object or the distance between the writing object and the electronic whiteboard, namely whether a writing area is formed or not. When the writing object leaves the electronic whiteboard, a writing area formed by writing enters a writing queue, namely, the drawn line enters the writing queue. When the electronic whiteboard refreshes, the drawn lines which have entered the writing queue are displayed.
Likewise, the continuous touch of the erasing object on the electronic whiteboard forms a plurality of erasing points, and the plurality of erasing points are in a block shape or a strip shape according to the size of the erasing object, such as a strip shape in fig. 4. The area where the plurality of erasing points are located is an erasing area, i.e. a strip area in fig. 4. The size of the erasing area is related to the size of the first erasing point, the last erasing point and the erasing object formed by the erasing object continuously touching on the electronic whiteboard.
The electronic whiteboard in the embodiment of the invention adopts two superposed image layers, namely: the drawing layer is displayed on the upper layer, and the background layer is displayed on the lower layer. In the drawn line layer of the electronic whiteboard, a writing area and an erasing area are respectively formed according to continuous touch of a writing object and an erasing object on the electronic whiteboard. The pixel attribute of the drawing area in the drawing layer is opaque, that is, the pixel attribute of the drawn line is opaque, such as displaying the color, the character and the like of the drawn line. The pixel attribute in the residual area in the drawing layer is transparent; and all the pixel attributes in the background layer are opaque, such as displaying the color of the background layer.
Because the starting and ending time of drawing a line and erasing are different, the process of writing and erasing can be divided into a: writing first and then erasing, and finishing writing first, b: write first and erase last, c: erasing first and writing second and finishing first, d: four cases of first erase then write erase ending first are shown in fig. 4, where fig. 4(a) shows a: the writing is finished first after the erasing; FIG. 4(b) shows b: write first then erase first end condition; FIG. 4(c) shows c: the condition of first erasing, then writing and ending first; FIG. 4(d) shows d: erase before write erase end first case. In fig. 4, a thick solid line indicates a drawn line in a written area formed by a written matter, and a square frame indicates an erased area.
In the method for implementing writing and erasing while writing, provided by the embodiment of the invention, the erasing area is divided into the first erasing area and the second erasing area according to the sequence of the first touch point formed by the writing object and the touching object on the electronic whiteboard. The first erasing area is an erasing area formed by the writing object touching the electronic whiteboard before the first drawing point is formed on the electronic whiteboard by the writing object, as shown by the thin solid line frames in fig. 4(c) and fig. 4 (d). Since the erasing processes a and b are writing before erasing, that is, the drawn dots are formed on the electronic whiteboard first and then the erasing dots are formed, the first erasing area does not exist in fig. 4(a) and 4 (b). The second erasing area is an erasing area formed by the writing object touching the electronic whiteboard after the first drawing point is formed on the electronic whiteboard by the writing object, as shown by the dashed boxes in fig. 4(a) -4 (d).
S02: marking the drawing points in the writing area along with the formation of the writing area, wherein the drawing points which are intersected with the second erasing area are marked as points to be erased, and the drawing points which are not intersected with the second erasing area are marked as connecting points.
As shown in fig. 4, in the erasing while writing process, when the drawn line in the writing area intersects with the erasing area, that is, in the writing area forming process, the drawn line point intersecting with the second erasing area is marked as a point to be erased, and the drawn line point not intersecting with the second erasing area is marked as a link point. The marking mode of the to-be-erased point and the connection point can be different numbers or symbols, for example, the to-be-erased point is marked as 1, and the connection point is marked as 2, so as to achieve the function of distinguishing the to-be-erased point from the connection point.
S03: and (4) stopping touching the electronic whiteboard by the writing object, removing the point to be erased before the writing area enters the writing queue, and connecting the line connecting points.
And when the writing object is about to stop touching the electronic whiteboard and before the writing area enters the writing queue, removing the marked point to be erased and connecting the connecting line points. And connecting the formed drawn lines by using the connecting points into a writing queue. And when the electronic whiteboard refreshes, displaying the drawn lines entering the writing queue. Because the drawn line point in the writing area, which is intersected with the second erasing area, is marked as the point to be erased, after the electronic whiteboard is refreshed, the drawn line intersected with the second erasing area is not displayed, but the rest of the drawn lines are displayed, which is consistent with the actual effect of writing while erasing. Specifically, after the line drawing point is marked as a point to be erased, the pixel attribute at the point to be erased in the line drawing layer is set to be transparent, and at this time, the color of the background layer is displayed at the point to be erased. And setting the attribute of the pixel at the connecting line point in the drawing layer to be opaque, wherein the color of the drawing line point is displayed at the connecting line point. After the electronic whiteboard is refreshed, the pixel attributes in the drawing layer are set to be transparent drawing points and are not displayed, the pixel attributes are set to be opaque drawing points and are displayed, and therefore the points to be erased and the connecting lines are removed and displayed.
Further, for the edge writing and erasing processes a and c, after the writing is finished, the erasing process is still performed, at this time, the erasing area is divided into a second erasing area and a third erasing area according to the sequence of the end of the writing and the end of the erasing, wherein the second erasing area is the second erasing area in the foregoing embodiment. Specifically, the third erasing area is an erasing area formed after the last drawing point is formed on the electronic whiteboard by the writing object, such as a dotted frame in fig. 4 (c). Therefore, the first erasing area, the second erasing area and the third erasing area are sequentially connected end to form a total erasing area.
Since the third erasing area is formed, the writing object stops touching the electronic whiteboard, that is, the writing area is formed, and the writing area enters the writing queue. The line draw points in the writing area that entered the writing queue are no longer identified. Since the writing area has entered the writing queue, after the erasing object stops touching the electronic whiteboard, the pre-erased drawing point in the intersection area is calculated from the intersection area of the third erasing area and the writing area. And after the pre-erased drawing points are calculated, removing the pre-erased drawing points. At this time, after the electronic whiteboard is refreshed, the drawn line intersecting the third erasing area is not displayed, which is consistent with the actual effect of writing while erasing.
Four cases of the edge-writing and edge-erasing process are described below respectively according to the method for implementing edge-writing and edge-erasing provided by the embodiment of the invention.
Case a: writing first and erasing second
Referring to fig. 4(a), since the erasing process while writing is performed in case a, the erasing process is performed after writing, and thus there is no erasing area before the first drawn line point is formed on the electronic whiteboard by the writing object, i.e. there is no first erasing area. The first line drawing point formed by the writing object touching the electronic whiteboard is marked as a 1. During the process of forming the drawn line by touching the electronic whiteboard with the writing object, when the drawn line point a2 is formed, the erasing object starts to touch the electronic whiteboard, i.e. the second erasing area starts to be formed, as shown by the dashed box in fig. 4(a), and the process of simultaneously performing writing and erasing is formed. In the process of simultaneously writing and erasing, when the writing area intersects with the second erasing area along with the operation of writing and erasing, the intersected drawing point is marked as the point to be erased, such as the thick dotted line in the drawing of fig. 4 (a). Meanwhile, the drawing points in the written area that do not intersect with the second erased area are identified as the drawing points, such as the thick solid lines in the drawing of fig. 4 (a).
Writing is terminated first, i.e., the writing object stops touching the electronic whiteboard first, so that the writing object touches the electronic whiteboard to form the last drawn line point a 3. At this time, in the formation process from the drawing line point a2 to a3, the second erased area formed by the erased matter is shown as a dashed-line box in fig. 4 (a). And after the writing object stops touching the electronic whiteboard, namely after the writing action is stopped, the erasing object continues to erase. The erasing area formed by the erasing object at this time is a third erasing area, as shown by a dotted frame in fig. 4 (a).
And when the writing is finished and the writing area enters the writing queue, setting the pixel attribute of the point to be erased to be transparent, and setting the pixel attribute of the connecting line point to be opaque. After the writing area enters the writing queue, when the electronic whiteboard refreshes, the transparent points to be erased are not displayed, the opaque connecting lines are displayed, and the displayed connecting lines perform connecting actions, so that the marked points to be erased are removed, and the connecting lines are displayed. Since the dots to be erased are removed and the dots for linking are linked, the drawn lines intersecting the second erased area in the written area are not displayed.
After the erasing is finished, because the writing area finished earlier enters the writing queue, if the writing area and the third erasing area have an intersection area, the pre-erased drawing point in the intersection area is calculated, and then the pre-erased drawing point is removed when the electronic whiteboard is refreshed. At this time, the drawn lines in the written area that intersect the third erased area are not displayed, and the drawn lines in the written area that do not intersect the third erased area are displayed.
Referring to fig. 5(a), fig. 5(a) shows an actual effect diagram displayed after the method for implementing writing while erasing provided by the embodiment of the invention is adopted. The actual effect graph accords with the actual effect of writing and erasing under the condition a.
Case b: write-first then erase-first end
Referring to fig. 4(b), since the erasing process while writing is performed in case b, there is no erasing area before the first drawing point is formed on the electronic whiteboard, that is, there is no first erasing area. The first line drawing point formed by the writing object touching the electronic whiteboard is marked as b 1. During the process of forming the drawn line by touching the electronic whiteboard with the writing object, when the drawn line point b2 is formed, the erasing object starts to touch the electronic whiteboard, i.e. the second erasing area starts to be formed, as shown by the dashed box in fig. 4(b), and the process of simultaneously performing writing and erasing is formed. In the process of simultaneously writing and erasing, as the writing and erasing actions are performed, when the writing area intersects with the second erasing area, the intersected drawing point is marked as a point to be erased, such as a thick dotted line in the drawing of fig. 4 (b). Meanwhile, the drawing points in the written area that do not intersect with the second erased area are identified as the drawing points, such as the thick solid lines in the drawing of fig. 4 (b).
The erasing is finished first, namely the erasing object stops touching the electronic whiteboard first. After the erasing is finished, the writing action is still carried out, and the third erasing area is the erasing area formed after the last drawing point is formed on the electronic whiteboard by the writing object, so that the third erasing area does not exist in the case b, namely, only the second erasing area exists.
Since the written matter always touches the electronic whiteboard in the case b, as the written matter forms the writing area, the drawn line points in the writing area that intersect with the second erasing area are always marked as the points to be erased, and the drawn line points in the writing area that do not intersect with the second erasing area are always marked as the link points. And when the writing is finished and the writing area enters the writing queue, setting the pixel attribute of the point to be erased to be transparent, and setting the pixel attribute of the connecting line point to be opaque. After the writing area enters the writing queue, when the electronic whiteboard is refreshed, the transparent points to be erased are not displayed, the opaque connecting lines are displayed, and the displayed connecting lines perform connecting actions, so that the marked points to be erased are removed, and the connecting lines are displayed. Since the dots to be erased are removed and the link dots are linked, the drawn lines intersecting the second erased area in the written area are not displayed, and the other drawn lines in the written area are displayed.
Referring to fig. 5(b), fig. 5(b) shows an actual effect diagram displayed after the method for implementing writing while erasing provided by the embodiment of the invention is adopted. The actual effect graph accords with the actual effect of writing and erasing under the condition b.
Case c: first erasing then writing and ending first
Referring to fig. 4(c), since the erasing while writing process in case c is a process of starting erasing first and then writing, the first erasing area is formed before the first drawing point is formed on the electronic whiteboard by the writing object, as shown by the solid and thin frame in fig. 4 (c). When the erased matter is erased to (r), the written matter starts to touch the electronic whiteboard, and a first drawn line point c1 is formed. When the first drawn line point c1 is formed, the area where the eraser continues to erase is the second erased area, as shown by the dashed box in fig. 4 (c). After the writing object begins to touch the electronic whiteboard, a process of writing while erasing is formed. In the process of simultaneously writing and erasing, as the writing and erasing actions are performed, when the writing area intersects with the second erasing area, the intersected drawing point is marked as a point to be erased, such as a thick dotted line in the drawing of fig. 4 (c). Meanwhile, the drawn line points in the written area that do not intersect with the second erased area are marked as the continuous line points, as shown by the thick solid lines in the drawn line of fig. 4 (c).
Writing is terminated first, i.e., the writing object stops touching the electronic whiteboard first, so that the writing object touches the electronic whiteboard to form the last drawn line point c 2. At this time, the erased object is erased to the position of (c) from the formation of the drawing lines c1 to c 2. And after the writing object stops touching the electronic whiteboard, namely after the writing action is stopped, the erasing object continues to erase. The erasing area formed by the erasing object at this time is a third erasing area, as shown by a dotted frame in fig. 4 (c).
And when the writing is finished and the writing area enters the writing queue, setting the pixel attribute of the point to be erased to be transparent, and setting the pixel attribute of the connecting line point to be opaque. After the writing area enters the writing queue, when the electronic whiteboard is refreshed, the transparent points to be erased are not displayed, the opaque connecting lines are displayed, and the displayed connecting lines perform connecting actions, so that the marked points to be erased are removed, and the connecting lines are displayed. Since the dots to be erased are removed and the dots for linking are linked, the drawn lines intersecting the second erased area in the written area are not displayed.
After the erasing is finished, because the writing area finished earlier enters the writing queue, if the writing area and the third erasing area have an intersection area, the pre-erased drawing point in the intersection area is calculated, and then the pre-erased drawing point is removed when the electronic whiteboard is refreshed. At this time, the drawn lines in the written area that intersect the third erased area are not displayed, and the drawn lines in the written area that do not intersect the third erased area are displayed.
Referring to fig. 5(c), fig. 5(c) shows a graph of actual effects displayed after the method for implementing writing while erasing provided by the embodiment of the invention is adopted. The actual effect graph accords with the actual effect of writing and erasing under the condition c.
Case d: first erase then write erase ends first
Referring to fig. 4(d), since the erasing process while writing is performed in case d, the first erasing area is formed before the first drawing point is formed on the electronic whiteboard, as shown by the thin solid line frame in fig. 4 (d). When the erasing object is erased to (r), the written object starts to touch the electronic whiteboard, and a first drawn line point d1 is formed. When the first drawn line point d1 is formed, the area where the eraser continues to be erased is a second erased area, as indicated by the dashed box in fig. 4 (d). After the writing object begins to touch the electronic whiteboard, a process of writing while erasing is formed. In the process of simultaneously writing and erasing, as the writing and erasing actions are performed, when the writing area intersects with the second erasing area, the intersected drawing point is marked as a point to be erased, such as a thick dotted line in the drawing of fig. 4 (d). Meanwhile, the drawn line points in the written area that do not intersect with the second erased area are marked as the continuous line points, as shown by the thick solid lines in the drawn line of fig. 4 (d).
The erasing is finished first, namely the erasing object stops touching the electronic whiteboard first. After the erasing is finished, the writing action is still performed, and the third erasing area is the erasing area formed after the last drawing point is formed on the electronic whiteboard by the writing object, so that the third erasing area does not exist in the case d, namely only the first erasing area and the second erasing area exist. FIG. 5(d) is a diagram illustrating the actual effect of the first-erase, then-write-erase, first-end situation according to the embodiment of the present invention.
In the case d, after the writing object touches the electronic whiteboard, the electronic whiteboard is always touched, so that as the writing area is formed by the writing object, the drawing point in the writing area, which is intersected with the second erasing area, is always marked as the point to be erased, and the drawing point in the writing area, which is not intersected with the second erasing area, is always marked as the connecting point. And when the writing is finished and the writing area enters the writing queue, setting the pixel attribute of the point to be erased to be transparent, and setting the pixel attribute of the connecting line point to be opaque. After the writing area enters the writing queue, when the electronic whiteboard is refreshed, the transparent points to be erased are not displayed, the opaque connecting lines are displayed, and the displayed connecting lines perform connecting actions, so that the marked points to be erased are removed, and the connecting lines are displayed. Since the dots to be erased are removed and the link dots are linked, the drawn lines intersecting the second erased area in the written area are not displayed, while the drawn lines intersecting the first erased area in the written area are displayed.
Corresponding to the method for implementing writing and erasing while provided by the embodiment of the invention, the embodiment of the invention also provides a device for implementing writing and erasing while, the device comprises:
the writing module is used for forming a writing area according to continuous touch of a written object on the electronic whiteboard;
the erasing module is used for forming an erasing area according to continuous touch of an erasing object on the electronic whiteboard; the erasing area comprises a first erasing area and a second erasing area;
the marking module is used for marking the line drawing points in the writing area along with the formation of the writing area, wherein the line drawing points which are intersected with the erasing area are marked as points to be erased, and the line drawing points which are not intersected with the erasing area are marked as connecting points;
the removing module is used for removing the point to be erased before the writing object stops touching the electronic whiteboard and the writing area enters the writing queue;
and the connecting line module is used for connecting the connecting line point before the writing object stops touching the electronic whiteboard and the writing area enters the writing queue.
Further, in the device for implementing writing and erasing while the invention is provided, the erasing module includes a third erasing module; and the third erasing module is used for forming a third erasing area after the last drawing point is formed on the electronic whiteboard by the writing object.
The embodiment of the invention also provides terminal equipment which comprises the device for realizing writing and erasing.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented using software plus any required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, and the like, and includes several instructions for enabling a touch-control all-in-one device (which may be a personal computer, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present invention.
The above-described embodiments of the present invention do not limit the scope of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (7)

1. A method for realizing writing and erasing simultaneously is characterized by comprising the following steps:
respectively forming a writing area and an erasing area according to the continuous touch of the writing object and the erasing object on the electronic whiteboard; the writing area is an area through which a written matter passes, the erasing area comprises at least one of a first erasing area, a second erasing area and a third erasing area, the first erasing area is an area through which the written matter passes before the written matter begins to be written on the electronic whiteboard, the second erasing area is an area through which the erased matter passes in the writing process of the written matter on the electronic whiteboard, and the third erasing area is an erasing area formed after the written matter finishes being written on the electronic whiteboard;
and after the writing objects and the erasing objects stop touching the electronic whiteboard, presenting connecting lines, wherein the connecting lines do not comprise drawing points in a second erasing area and a third erasing area.
2. The method for realizing writing while erasing according to claim 1, wherein a connecting line is presented after the writing object and the erasing object stop touching the electronic whiteboard, wherein the connecting line does not include drawing a line point in the second erasing area and the third erasing area,
and the connecting line comprises a drawing point of the first erasing area.
3. The method for realizing writing while erasing according to claim 1, wherein the drawing points in the writing area are marked after the writing object stops touching the electronic whiteboard or before the third erasing area is generated, wherein the drawing points intersecting with the second erasing area are marked as points to be erased; marking the drawing points which are not intersected with the second erasing area as connecting points;
and removing the point to be erased and connecting the connecting line point.
4. The method for realizing writing while erasing according to claim 1, wherein the electronic whiteboard comprises a drawing layer displayed on an upper layer and a background layer displayed on a lower layer; the writing area formed by writing the writing object on the drawing layer is opaque, and the erasing area formed by passing the erasing object on the drawing layer is transparent.
5. The method for realizing writing while erasing as claimed in claim 3, wherein the continuous writing area formed after the connecting points are connected enters the writing queue.
6. A device for realizing writing and erasing simultaneously is characterized by comprising:
the writing module is used for forming a writing area according to continuous touch of a writing object on the electronic whiteboard;
the erasing module is used for forming an erasing area according to continuous touch of an erasing object on the electronic whiteboard; the erasing area comprises at least one of a first erasing area, a second erasing area and a third erasing area, the first erasing area is an area through which the erasing objects pass before the writing objects begin to write on the electronic whiteboard, the second erasing area is an area through which the erasing objects pass in the writing process of the writing objects on the electronic whiteboard, and the third erasing area is an erasing area formed after the writing objects finish writing on the electronic whiteboard;
and the display module presents a connecting line after the writing object and the erasing object stop touching the electronic whiteboard, wherein the connecting line does not include the drawing points in the second erasing area and the third erasing area.
7. An electronic whiteboard, characterized by being used for executing the method for realizing writing while erasing as claimed in claims 1-5.
CN202110341017.3A 2018-01-31 2018-01-31 Method and device for realizing writing and erasing simultaneously and terminal equipment Active CN113093938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110341017.3A CN113093938B (en) 2018-01-31 2018-01-31 Method and device for realizing writing and erasing simultaneously and terminal equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810097349.XA CN108319391B (en) 2018-01-31 2018-01-31 Method and device for realizing writing and erasing simultaneously and terminal equipment
CN202110341017.3A CN113093938B (en) 2018-01-31 2018-01-31 Method and device for realizing writing and erasing simultaneously and terminal equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201810097349.XA Division CN108319391B (en) 2018-01-31 2018-01-31 Method and device for realizing writing and erasing simultaneously and terminal equipment

Publications (2)

Publication Number Publication Date
CN113093938A CN113093938A (en) 2021-07-09
CN113093938B true CN113093938B (en) 2022-07-12

Family

ID=62888507

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810097349.XA Active CN108319391B (en) 2018-01-31 2018-01-31 Method and device for realizing writing and erasing simultaneously and terminal equipment
CN202110341017.3A Active CN113093938B (en) 2018-01-31 2018-01-31 Method and device for realizing writing and erasing simultaneously and terminal equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201810097349.XA Active CN108319391B (en) 2018-01-31 2018-01-31 Method and device for realizing writing and erasing simultaneously and terminal equipment

Country Status (1)

Country Link
CN (2) CN108319391B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297558B (en) * 2019-06-11 2023-09-05 广州视源电子科技股份有限公司 Multi-touch control method and device, intelligent interaction panel and storage medium
CN111352570B (en) 2020-03-24 2021-06-01 深圳市鸿合创新信息技术有限责任公司 Writing interaction method, intelligent interaction display equipment and writing interaction system
CN114092943B (en) * 2021-10-13 2024-07-02 北京易言科技有限公司 Method and device for displaying and training text writing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325737A (en) * 2016-08-03 2017-01-11 青岛海信电器股份有限公司 Method and equipment for erasing writing path
CN106598351A (en) * 2016-10-19 2017-04-26 青岛海信电器股份有限公司 Touch point processing method and equipment
CN106610783A (en) * 2016-10-10 2017-05-03 广州视源电子科技股份有限公司 Handwriting erasing method and system for infrared touch equipment
CN106775429A (en) * 2017-03-08 2017-05-31 青岛海信电器股份有限公司 A kind of method and apparatus based on setting-out storage on touch-screen
CN106910232A (en) * 2017-02-24 2017-06-30 青岛海信电器股份有限公司 Line drawing eraser removes method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6686900B1 (en) * 1999-05-27 2004-02-03 Acoustic Information Processing Lab, Llc Combination of message board and computer equipment
US20040207606A1 (en) * 1999-11-08 2004-10-21 Atwood Stephen P. Sensing the size of a touch point in a touch-sensitive panel employing resistive membranes
JP5516535B2 (en) * 2011-08-25 2014-06-11 コニカミノルタ株式会社 Electronic information terminal and area setting control program
CN104992460B (en) * 2015-05-28 2019-05-07 深圳市创易联合科技有限公司 The method for wiping vector person's handwriting
CN106650648B (en) * 2016-12-12 2020-04-03 广东威创视讯科技股份有限公司 Recognition method and system for erasing handwriting
CN107291350B (en) * 2017-06-15 2019-09-17 青岛海信电器股份有限公司 Method for deleting and terminal device applied to the terminal device for supporting multi-point touch
CN107193424A (en) * 2017-06-27 2017-09-22 北京北纬天辰科技有限公司 A kind of Intelligent electronic-type method for deleting and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325737A (en) * 2016-08-03 2017-01-11 青岛海信电器股份有限公司 Method and equipment for erasing writing path
CN106610783A (en) * 2016-10-10 2017-05-03 广州视源电子科技股份有限公司 Handwriting erasing method and system for infrared touch equipment
CN106598351A (en) * 2016-10-19 2017-04-26 青岛海信电器股份有限公司 Touch point processing method and equipment
CN106910232A (en) * 2017-02-24 2017-06-30 青岛海信电器股份有限公司 Line drawing eraser removes method and device
CN106775429A (en) * 2017-03-08 2017-05-31 青岛海信电器股份有限公司 A kind of method and apparatus based on setting-out storage on touch-screen

Also Published As

Publication number Publication date
CN113093938A (en) 2021-07-09
CN108319391B (en) 2021-03-02
CN108319391A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN104106037B (en) Projecting apparatus, figure input and display device, portable terminal device and program
CN113093938B (en) Method and device for realizing writing and erasing simultaneously and terminal equipment
CN109284059A (en) Handwriting drawing method and device, interactive intelligent panel and storage medium
CN108334486A (en) table control method, device, equipment and storage medium
CN109144382A (en) Handwriting display method and device based on dual systems, terminal equipment and storage medium
CN109407954A (en) A kind of method for deleting and system of handwriting trace
CN109445676A (en) The method of the handwritten stroke information of user's input is deleted on handwriting equipment
CN104882033B (en) A kind of interactive electronic panel assembly and the method for effectively utilizing electronic teaching resource
JPH029385B2 (en)
CN106502667B (en) Rendering method and device
CN107678825A (en) A kind of rendering intent and electronic whiteboard applied to electronic whiteboard
CN108304129A (en) Teaching electronics exhibition booth annotation method, equipment, storage medium and system
CN108255546A (en) A kind of implementation method and device of data loading animation
CN111580903B (en) Real-time voting method, device, terminal equipment and storage medium
CN109782986A (en) A kind of production method of teaching courseware, storage medium and application system
CN110297558B (en) Multi-touch control method and device, intelligent interaction panel and storage medium
CN109960543B (en) Writing operation processing method and device
CN113485570B (en) Multi-user writing method, device, computer readable storage medium and terminal equipment
CN109509240A (en) A kind of smart machine display methods, readable storage medium storing program for executing and smart machine
CN110322538A (en) character display method, device, storage medium and processor
CN106598928A (en) Method and system for annotating on display screen
CN114356204B (en) Note processing method, electronic device, and computer storage medium
DE102016204692A1 (en) Control of multiple selection on touch-sensitive surfaces
DE68921336T2 (en) ELECTRONIC DOCUMENT DISPLAY WITH RECORDING ROUTINES AND SEVERAL WINDOWS.
CN112181231A (en) Blackboard writing input method, system and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant