CN109920029A - A method of drawing erasable figure - Google Patents

A method of drawing erasable figure Download PDF

Info

Publication number
CN109920029A
CN109920029A CN201910203461.1A CN201910203461A CN109920029A CN 109920029 A CN109920029 A CN 109920029A CN 201910203461 A CN201910203461 A CN 201910203461A CN 109920029 A CN109920029 A CN 109920029A
Authority
CN
China
Prior art keywords
drawing board
coordinate points
coordinate
interim
ink marks
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.)
Pending
Application number
CN201910203461.1A
Other languages
Chinese (zh)
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.)
Hebei Huafa Education Technology Corp Ltd
Original Assignee
Hebei Huafa Education Technology Corp 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 Hebei Huafa Education Technology Corp Ltd filed Critical Hebei Huafa Education Technology Corp Ltd
Priority to CN201910203461.1A priority Critical patent/CN109920029A/en
Publication of CN109920029A publication Critical patent/CN109920029A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present invention proposes a kind of method for drawing erasable figure, the following steps are included: opening the graphing function of whiteboarding software, select the figure of picture, global paintbrush mode field is set as the Graphic State for needing to paint, start to draw, the x and y coordinates pressed when by acquisition relative to the mouse pointer position of specified object, i.e., the coordinate (X of current dot system drawing board are being clicked on system drawing board, Y), record;The present invention first records the coordinate points during figure is drawn, then coordinate points instantiation is added to 2-d spatial coordinate set, two-dimensional space set coordinate points are added to drawing board ink marks set again, it is converted into ink marks and is added to interim drawing board, when erasing, the coordinate points needed at position need to be only wiped on interim drawing board, it is again coupled to adjacent coordinate points, figure after may make up erasing part, teacher is facilitated to wipe visuals to be explained in detail, and figure deletes part according to coordinate points, and more accurate, explanation is accurate.

Description

A method of drawing erasable figure
Technical field
The present invention relates to graphics process field more particularly to a kind of methods for drawing erasable figure.
Background technique
In teaching, with the development of intelligent multi-media equipment, teacher comes commonly using the drawing function of whiteboarding software It does teaching and shows that this kind of functions are more convenient, and teacher can draw specific basic geometric figure at once, and can be according to teacher Desired size draws out figure, and still, existing drawing function cannot be as using powder after drawing out figure on blackboard before Stroke is such, is explained in detail with blackboard eraser erasing visuals or visuals deletion is inaccurate, cause explanation not Enough accurate, therefore, the present invention proposes a kind of method for drawing erasable figure, to solve shortcoming in the prior art.
Summary of the invention
In view of the above-mentioned problems, the present invention first records the coordinate points during figure is drawn, then coordinate points instantiation is added It is added to 2-d spatial coordinate set, then two-dimensional space set coordinate points are added to drawing board ink marks set, ink marks is converted into and adds It is added to interim drawing board, when erasing, only need to wipe the coordinate points needed at position on interim drawing board, be again coupled to adjacent coordinate Point, that is, the figure after may make up erasing part, facilitates teacher to wipe visuals to be explained in detail.
The present invention proposes a kind of method for drawing erasable figure, comprising the following steps:
Step 1: opening the graphing function of whiteboarding software, selects the figure of picture, and global paintbrush mode field is set as The Graphic State for needing to paint;
Step 2: starting to draw, and the mouse pressed when by acquisition relative to specified object is being clicked on system drawing board The x and y coordinates of pointer position are marked, i.e., the coordinate (X, Y) of current dot system drawing board is recorded;
Step 3: mobile paintbrush defines an interim drawing board, by the category of the attribute setup of interim drawing board and system drawing board Property is the same;
Step 4: mobile paintbrush, one position of every movement obtains the coordinate (X, Y) of current dot system drawing board, makes current point Figure is formed with starting point;
Step 5: obtaining the coordinate points for wanting graphing, arbitrarily takes the starting point a little for figure;
Step 6: the coordinate points set instantiation is added to inside the coordinate points of 2-d spatial coordinate set;
Step 7: being added to drawing board ink marks set for two-dimensional space set coordinate points, be converted into ink marks according to ink marks set, Carry out the acquisition of sampling point formula, the specified point of acquisition figure;
Step 8: check whether ink marks sum is more than or equal to zero on interim drawing board, if so, removing the ink on interim drawing board Then the ink marks converted in step 7 is added to interim drawing board by mark;
Step 9: when erasing, obtaining corresponding coordinate points according to the ink marks on interim drawing board, then to needing erasure location The coordinate points at place are wiped, the figure after constituting erasing part, and are compared with coordinate points original on system drawing board.
Further improvement lies in that: in the step 1, it is the figure to be drawn that global paintbrush mode field, which is arranged, and according to wanting The needs of picture shape set corresponding graphic variable function.
Further improvement lies in that: in the step 2, judges that main drawing board whether there is when mouse-up paintbrush and face When drawing board, have and just remove interim drawing board, just do not skip.
Further improvement lies in that: in the step 2, record the coordinate information, mouse down and the seat of movement of mouse down The coordinate information that mark series information, mouse flick.
Further improvement lies in that: in the step 3, the interim drawing board of definition is transparent color, the sightless picture of naked eyes Plate, and the ink marks of interim drawing board is display, macroscopic ink marks.
Further improvement lies in that: in the step 5, obtain the coordinate points for wanting graphing, top of the coordinate points than figure More the points of point, and the ending point in coordinate points is as the coordinate of starting point.
Further improvement lies in that: in the step 6, by the strongly-typed list of the object of index accesses, provide for pair The coordinate points set instantiation is added to 2-d spatial coordinate set by the method that list is scanned for, sorts and operated Coordinate points inside.
The invention has the benefit that the present invention first records the coordinate points during figure is drawn, then by coordinate points reality Exampleization is added to 2-d spatial coordinate set, then two-dimensional space set coordinate points are added to drawing board ink marks set, is converted into ink Mark is simultaneously added to interim drawing board, when erasing, only need to wipe the coordinate points needed at position on interim drawing board, be again coupled to adjacent Coordinate points, that is, the figure after may make up erasing part facilitates teacher to wipe visuals and is explained in detail, and figure Part is deleted according to coordinate points, more accurate, explanation is accurate, meanwhile, the figure behind the erasing part constituted on interim drawing board Shape can be compared with coordinate points original on system drawing board, optimize teaching efficiency.
Specific embodiment
In order to realize invention technological means, reach purpose and effect is easy to understand, below with reference to specific implementation Mode, the present invention is further explained.
The present embodiment proposes a kind of method for drawing erasable figure, comprising the following steps:
Step 1: opening the graphing function of whiteboarding software, selects the figure of picture, and global paintbrush mode field is set as The Graphic State for needing to paint, and corresponding graphic variable function is set according to the needs of shape to be drawn, for example rectangle setting is entirely Office's variable is Rectangle;
Step 2: starting to draw, and judges that main drawing board with the presence or absence of interim drawing board, has and just moves when mouse-up paintbrush It except interim drawing board, does not just skip, the mouse pressed when by acquisition relative to specified object is being clicked on system drawing board The x and y coordinates of pointer position, i.e., the coordinate (X, Y) of current dot system drawing board, are recorded, and record the coordinate letter of mouse down The coordinate information that coordinate series information, the mouse of breath, mouse down and movement flick;
Step 3: mobile paintbrush defines an interim drawing board, the interim drawing board of definition be transparent color, naked eyes not Visible drawing board, and the ink marks of interim drawing board is display, macroscopic ink marks, by the attribute setup and system of interim drawing board The attribute of drawing board is the same;
Step 4: mobile paintbrush, one position of every movement obtains the coordinate (X, Y) of current dot system drawing board, makes current point Figure is formed with starting point;
Step 5: obtain want graphing coordinate points, coordinate points than figure vertex more than a point, arbitrarily take a bit For the starting point of figure, the ending point in coordinate points is as the coordinate of starting point, for rectangle, if the upper left corner is that starting point is sat Mark is set as origin coordinates (X, Y), second point (X of transfer point, the Y-coordinate of starting point, thirdly (the coordinate X, Y of transfer point), 4th point (starting point X, transfer point Y), the 5th ending point coordinate and first starting point coordinate are the same;
Step 6: it by the strongly-typed list of the object of index accesses, provides for scanning for, sorting and grasping to list The coordinate points set instantiation is added to inside the coordinate points of 2-d spatial coordinate set by the method for work;
Step 7: being added to drawing board ink marks set for two-dimensional space set coordinate points, be converted into ink marks according to ink marks set, Carry out the acquisition of sampling point formula, the specified point of acquisition figure;
Step 8: check whether ink marks sum is more than or equal to zero on interim drawing board, if so, removing the ink on interim drawing board Then the ink marks converted in step 7 is added to interim drawing board by mark;
Step 9: when erasing, obtaining corresponding coordinate points according to the ink marks on interim drawing board, then to needing erasure location The coordinate points at place are wiped, the figure after constituting erasing part, and are compared with coordinate points original on system drawing board.
The present invention first records the coordinate points during figure is drawn, and coordinate points instantiation is then added to two-dimensional space and is sat Mark set, then two-dimensional space set coordinate points are added to drawing board ink marks set, be converted into ink marks and are added to interim drawing board, it wipes Except when, only the coordinate points needed at position need to be wiped on interim drawing board, be again coupled to adjacent coordinate points, that is, may make up erasing Figure behind part facilitates teacher to wipe visuals and is explained in detail, and figure according to coordinate points come to partially deleting It removes, more accurate, explanation is accurate, meanwhile, the figure behind the erasing part constituted on interim drawing board can be with original on system drawing board The coordinate points come compare, and optimize teaching efficiency.
The basic principles, main features and advantages of the invention have been shown and described above.The technical staff of the industry should Understand, the present invention is not limited to the above embodiments, and the above embodiments and description only describe originals of the invention Reason, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes and improvements It all fall within the protetion scope of the claimed invention.The claimed scope of the invention is by appended claims and its equivalent circle It is fixed.

Claims (7)

1. a kind of method for drawing erasable figure, which comprises the following steps:
Step 1: opening the graphing function of whiteboarding software, selects the figure of picture, and global paintbrush mode field is set as needing The Graphic State of drawing;
Step 2: starting to draw, and refers to clicking the mouse pressed when by acquisition relative to specified object on system drawing board The x and y coordinates of pin position, i.e., the coordinate (X, Y) of current dot system drawing board, are recorded;
Step 3: mobile paintbrush defines an interim drawing board, by the attribute one of the attribute setup of interim drawing board and system drawing board Sample;
Step 4: mobile paintbrush, one position of every movement obtain the coordinate (X, Y) of current dot system drawing board, make current point and rise Initial point forms figure;
Step 5: obtaining the coordinate points for wanting graphing, arbitrarily takes the starting point a little for figure;
Step 6: the coordinate points set instantiation is added to inside the coordinate points of 2-d spatial coordinate set;
Step 7: being added to drawing board ink marks set for two-dimensional space set coordinate points, be converted into ink marks according to ink marks set, carries out The acquisition of sampling point formula, the specified point of acquisition figure;
Step 8: checking whether ink marks sum is more than or equal to zero on interim drawing board, if so, the ink marks on interim drawing board is removed, Then the ink marks converted in step 7 is added to interim drawing board;
Step 9: when erasing, obtaining corresponding coordinate points according to the ink marks on interim drawing board, then to needing at erasure location Coordinate points are wiped, the figure after constituting erasing part, and are compared with coordinate points original on system drawing board.
2. a kind of method for drawing erasable figure according to claim 1, it is characterised in that: in the step 1, if Setting global paintbrush mode field is the figure to be drawn, and sets corresponding graphic variable function according to the needs of shape to be drawn.
3. a kind of method for drawing erasable figure according to claim 1, it is characterised in that: in the step 2, Judge that main drawing board with the presence or absence of interim drawing board, has and just removes interim drawing board, just do not skip when mouse-up paintbrush.
4. a kind of method for drawing erasable figure according to claim 1, it is characterised in that: in the step 2, note The coordinate information that coordinate information, mouse down and the coordinate of movement series information, the mouse of record mouse down flick.
5. a kind of method for drawing erasable figure according to claim 1, it is characterised in that: fixed in the step 3 The interim drawing board of justice is transparent color, the sightless drawing board of naked eyes, and the ink marks of interim drawing board is display, macroscopic Ink marks.
6. a kind of method for drawing erasable figure according to claim 1, it is characterised in that: in the step 5, obtain Take the coordinate points of desired graphing, coordinate points than figure vertex more than a point, and ending point and starting point in coordinate points Coordinate it is the same.
7. a kind of method for drawing erasable figure according to claim 1, it is characterised in that: in the step 6, lead to The strongly-typed list for crossing the object of index accesses, provides the method for scanning for, sorting and operating to list, will be arranged Good coordinate points instantiation is added to inside the coordinate points of 2-d spatial coordinate set.
CN201910203461.1A 2019-03-18 2019-03-18 A method of drawing erasable figure Pending CN109920029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910203461.1A CN109920029A (en) 2019-03-18 2019-03-18 A method of drawing erasable figure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910203461.1A CN109920029A (en) 2019-03-18 2019-03-18 A method of drawing erasable figure

Publications (1)

Publication Number Publication Date
CN109920029A true CN109920029A (en) 2019-06-21

Family

ID=66965322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910203461.1A Pending CN109920029A (en) 2019-03-18 2019-03-18 A method of drawing erasable figure

Country Status (1)

Country Link
CN (1) CN109920029A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0061755A1 (en) * 1981-03-30 1982-10-06 BZ Plankenhorn KG Computer-aided drawing apparatus
JPH0198074A (en) * 1987-10-09 1989-04-17 Sanyo Electric Co Ltd Image plotting/erasing method
US5337404A (en) * 1989-04-24 1994-08-09 Digital Equipment International Limited Process and system for making computer-aided drawings using a contour inclusion tree associated planar map data structure
CA2483943A1 (en) * 1995-12-26 1997-07-10 Imax Corporation Computer-assisted animation construction system and method and user interface
JP2011039689A (en) * 2009-08-07 2011-02-24 Casio Computer Co Ltd Graphic display device and program
CN102799315A (en) * 2011-05-24 2012-11-28 程抒一 Infrared touch screen accurate erasing system
CN103345389A (en) * 2013-06-06 2013-10-09 百度在线网络技术(北京)有限公司 Vector graph operating method and device applied to webpage
US20140088926A1 (en) * 2012-09-27 2014-03-27 Siemens Product Lifecycle Management Software Inc. Virtual drafting tools
CN105373264A (en) * 2015-09-07 2016-03-02 河北华发教育科技股份有限公司 Dustproof infrared touch screen frame
CN106097414A (en) * 2016-05-31 2016-11-09 福建天泉教育科技有限公司 Curve method for deleting and system
WO2018103227A1 (en) * 2016-12-08 2018-06-14 广州视源电子科技股份有限公司 Method and device for drawing symmetrical figure
CN109407954A (en) * 2018-09-11 2019-03-01 宁波思骏科技有限公司 A kind of method for deleting and system of handwriting trace

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0061755A1 (en) * 1981-03-30 1982-10-06 BZ Plankenhorn KG Computer-aided drawing apparatus
JPH0198074A (en) * 1987-10-09 1989-04-17 Sanyo Electric Co Ltd Image plotting/erasing method
US5337404A (en) * 1989-04-24 1994-08-09 Digital Equipment International Limited Process and system for making computer-aided drawings using a contour inclusion tree associated planar map data structure
CA2483943A1 (en) * 1995-12-26 1997-07-10 Imax Corporation Computer-assisted animation construction system and method and user interface
JP2011039689A (en) * 2009-08-07 2011-02-24 Casio Computer Co Ltd Graphic display device and program
CN102799315A (en) * 2011-05-24 2012-11-28 程抒一 Infrared touch screen accurate erasing system
US20140088926A1 (en) * 2012-09-27 2014-03-27 Siemens Product Lifecycle Management Software Inc. Virtual drafting tools
CN103345389A (en) * 2013-06-06 2013-10-09 百度在线网络技术(北京)有限公司 Vector graph operating method and device applied to webpage
CN105373264A (en) * 2015-09-07 2016-03-02 河北华发教育科技股份有限公司 Dustproof infrared touch screen frame
CN106097414A (en) * 2016-05-31 2016-11-09 福建天泉教育科技有限公司 Curve method for deleting and system
WO2018103227A1 (en) * 2016-12-08 2018-06-14 广州视源电子科技股份有限公司 Method and device for drawing symmetrical figure
CN109407954A (en) * 2018-09-11 2019-03-01 宁波思骏科技有限公司 A kind of method for deleting and system of handwriting trace

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
任伟嘉等: "Android平板电脑无线控制的计算机演示系统", 《计算机工程与设计》 *
杨海等: "空中交通监视电子地图平台设计", 《中国民航大学学报》 *
桂斌: "非真实感绘制技术的研究", 《微计算机信息》 *

Similar Documents

Publication Publication Date Title
Coleman " Digital inking": How to make perfect line drawings on computers
DE60312572T2 (en) Method and apparatus for converting digital images of hand drawings for further use in a structured text / graphics editor.
CN107209633A (en) Electronic information board device and method
CN109407954B (en) Writing track erasing method and system
CN1229757C (en) System and method for indexing and retrieval of record scanned from white board
EP1901233A2 (en) Techniques for image segment accumulation in document rendering
CN109445676A (en) The method of the handwritten stroke information of user's input is deleted on handwriting equipment
CN103268166A (en) Original handwriting information collecting and displaying method for handwriting input device
CN108958455A (en) Handwriting trace projecting method and device
CN103488415A (en) Handwritten text and graphic recognition system based on paper medium and recognition method
CN101872715A (en) Wafer defect marking system
KR20210039360A (en) Method, apparatus and electronic device for annotating information of structured document
CN113485570B (en) Multi-user writing method, device, computer readable storage medium and terminal equipment
CN109543525B (en) Table extraction method for general table image
CN110362217A (en) A kind of touth-interactive electronic blackboard blackboard eraser system and method for deleting
CN103345389B (en) The operational approach of a kind of vector graphics being applied to webpage and device
CN112035035B (en) Eraser realizing method and system capable of erasing strokes of top layer local area
CN109509240A (en) A kind of smart machine display methods, readable storage medium storing program for executing and smart machine
CN101877067B (en) Method and system for hand input based on camera device
CN109920029A (en) A method of drawing erasable figure
CN210038810U (en) Intelligent evaluation equipment and system
CN112084103B (en) Interface test method, device, equipment and medium
CN207557895U (en) A kind of equipment positioning device applied to large display screen curtain or projection screen
CN113093938A (en) Method and device for realizing writing and erasing simultaneously and terminal equipment
US6430583B1 (en) Scenario editing apparatus for performing editing of multimedia using figure feature points

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190621

WD01 Invention patent application deemed withdrawn after publication