CN108762638A - A kind of secondary editing cartographic method based on Android - Google Patents

A kind of secondary editing cartographic method based on Android Download PDF

Info

Publication number
CN108762638A
CN108762638A CN201810520580.5A CN201810520580A CN108762638A CN 108762638 A CN108762638 A CN 108762638A CN 201810520580 A CN201810520580 A CN 201810520580A CN 108762638 A CN108762638 A CN 108762638A
Authority
CN
China
Prior art keywords
painting canvas
method based
graphing
revocation
android
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
CN201810520580.5A
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.)
Zhejiang Hongcheng Computer Systems Co Ltd
Zhejiang Special Equipment Inspection and Research Institute
Original Assignee
Zhejiang Hongcheng Computer Systems Co Ltd
Zhejiang Special Equipment Inspection and Research Institute
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 Zhejiang Hongcheng Computer Systems Co Ltd, Zhejiang Special Equipment Inspection and Research Institute filed Critical Zhejiang Hongcheng Computer Systems Co Ltd
Priority to CN201810520580.5A priority Critical patent/CN108762638A/en
Publication of CN108762638A publication Critical patent/CN108762638A/en
Pending legal-status Critical Current

Links

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The secondary editing cartographic method based on Android that the present invention relates to a kind of, the method of the present invention simulates mouse by recording the process point of graphing one by one when realizing the secondary editable of picture, while drawing, offset point is moved into mouse vertex, realizes and precisely draws.The secondary editor of drawing software may be implemented in this method, and can realize that mobile phone terminal is precisely drawn by way of simulating mouse.

Description

A kind of secondary editing cartographic method based on Android
Technical field
The present invention relates to draughtsmanship method field more particularly to a kind of secondary editing cartographic methods based on Android.
Background technology
Drawing software does not support secondary editor at present, and causing the figure of picture mistake to reopen original after being saved all needs It repaints, causes inconvenience to the user;Mobile phone terminal picture has that finger can not precisely click screen simultaneously.Therefore, A kind of secondary editing cartographic method based on Android is designed to be necessary.
Invention content
The present invention is to overcome above-mentioned shortcoming, and it is an object of the present invention to provide a kind of secondary editing cartographic based on Android Method, the method for the present invention realize the secondary editable of picture by recording the process point of graphing one by one, at the same draw when Simulation mouse is waited, offset point is moved into mouse vertex, realizes and precisely draws.The secondary volume of drawing software may be implemented in this method Volume, and can realize that mobile phone terminal is precisely drawn by way of simulating mouse.
The present invention is to reach above-mentioned purpose by the following technical programs:A kind of secondary editing cartographic side based on Android Method includes the following steps:
(1) drawing software is opened, the size of setting painting canvas may be selected in front into canvas page:If being configured, basis The width and height of the size setting painting canvas of graphing;Otherwise the width of painting canvas is defaulted as the width of terminal device screen with height With height;
(2) judge whether figure is precisely to draw, if so, initial point is deviated to mouse top using simulation mouse function Point;Otherwise initial point is on the basis of touch point;
(3) touch-screen event on terminal device screen is obtained, and condition adjudgement is carried out to touch-screen event:If condition adjudgement is It draws, thens follow the steps (3.1);If condition adjudgement is operation, then follow the steps (3.2);
(3.1) when graphing, the procedure file of graphic plotting is preserved, by the paintbrush size of graphing, color, figure The coordinate of location point is preserved;
(3.2) it when selection operation, moves or scaling figure, wherein single finger touching realizes that figure movement, more fingers are touched Touch diminution, amplification, rotation that screen realizes figure;
(4) when drawing file needs modification, the figure in procedure file is repainted on painting canvas, you can carry out figure The secondary editor of picture is realized in the secondary modification of shape.
Preferably, the step (1), in setting, the canvas size being if desired arranged is big beyond terminal device screen It is small, then utilize painting canvas locomotive function to complete the setting of canvas size.
Preferably, the touch-screen event includes the event for clicking, dragging and frameing out.
Preferably, gallery of templates function can be used in graphing for the step (3.1), i.e., in advance by common figure The figure that template or mobile phone terminal are difficult to realize, is drawn and is downloaded by the ends pc and be saved in this map office, can be selected in picture library Gallery of templates is plotted on painting canvas, and supports secondary modification.
Preferably, it includes that fixation is removed that revocation function, revocation function also can be used in graphing for the step (3.1) Pin, selection revocation and all revocations:The figure that fixed revocation is drawn for revocation last time, the revocable institute drawn of selection revocation There is any one in figure, all revocations are the graphing emptied on painting canvas.
Preferably, it is described when using selection revocation, in figure history list it can be seen that in historical process The figure of all draftings after choosing some figure in figure history list, then the figure chosen and comes the figure All graphings after shape will all be emptied;Wherein for the ease of distinguishing, a figure of figure history list is chosen When, corresponding figure will change color on painting canvas, and sliding list item can cancel corresponding figure.
Preferably, described can be arranged length check during graphing, by verifying initial point and leaving a little Between sliding distance:When the sliding distance is less than figure most short screen distance, the figure will not be drawn on painting canvas, to avoid Because finger accidentally put to due to draw mistake.
Preferably, described can be labeled figure during graphing, input letter and number text are provided This frame can be incremented by according to input content graphing wherein number is automatic.
The beneficial effects of the present invention are:The secondary editor of drawing software may be implemented in the method for the present invention, and passes through simulation The mode of mouse realizes that mobile phone terminal is precisely drawn.
Description of the drawings
Fig. 1 is the flow diagram of the method for the present invention.
Specific implementation mode
With reference to specific embodiment, the present invention is described further, but protection scope of the present invention is not limited in This:
Embodiment:As shown in Figure 1, a kind of secondary editing cartographic method based on Android, includes the following steps:
(1) it needs canvas size different due to drawing different graphic, is then entering in face of canvas page the width that painting canvas can be set With height, the width for being not provided with being defaulted as terminal screen is high;When the canvas size of setting exceeds the size of screen, moved using painting canvas Function completes the setting of canvas size;Painting canvas locomotive function:When graphing is high more than the width of terminal screen, due to needing two Secondary modification drawing file needs the coordinate position for preserving figure, if not by graphic plotting on the painting canvas independently of screen, moves Coordinate system can accordingly change after dynamic, and secondary modification coordinate system can be chaotic, and by by graphic plotting in the painting canvas independently of screen On, when painting canvas is mobile or scaling, bottom coordinate system is constant, to solve the problems, such as coordinate system confusion.
(2) judge whether to need precisely to draw, if in the stage is precisely drawn, simulate mouse function, initial point is inclined From to mouse vertex, observation is facilitated to draw;If need not precisely draw, initial point is on the basis of touch point.
(3) touch-screen event on terminal device screen is obtained, touch-screen event includes the thing for clicking, dragging and frameing out Part;And condition adjudgement is carried out to touch-screen event:If condition adjudgement is to draw, then follow the steps (3.1);If condition adjudgement is behaviour Make, thens follow the steps (3.2);
(3.1) when graphing, the procedure file of graphic plotting is preserved, by the paintbrush size of graphing, color, figure The coordinate of location point is preserved;
Due to needing secondary modification drawing file, need to preserve the procedure file that painting canvas is drawn, by the paintbrush of graphing The coordinate etc. of size, color, graph position point saves, and when needing modification, figure in procedure file is repainted On painting canvas, you can carry out secondary modification.
Drawing software provides gallery of templates function simultaneously, some are commonly used the figure that graphics template or mobile phone terminal are difficult to realize Shape is drawn by the ends pc, and download is saved in this map office, gallery of templates can be selected to be plotted on painting canvas in picture library, and can be into Row modification, saves efficiency.Drawing software also provides revocation function, and revocation function is divided into fixed revocation and selection revocation and all removes Pin:Fixed cancel is the figure for cancelling last time and drawing, and selection cancels any one in all figures that can cancel drafting, More in view of working as graphing, the previous graphic plotting mistake of discovery thinks that revocation can only cancel influence efficiency step by step, There is provided figure history list, it can be seen that the figure history of all draftings chooses the figure in list for the ease of distinguishing Shape, changes graphic color on corresponding painting canvas, and sliding list item cancels corresponding figure;All revocation empties painting canvas.
Length check can be set in drawing course, by verifying initial point and leaving a sliding distance:If most less than figure When short screen distance, painting canvas does not draw the figure.Finger is avoided accidentally to put picture mistake.Figure can be also labeled, be provided Input letter and digital text frame, draw according to input content, are incremented by wherein number is automatic.
(3.2) it when selection operation, moves or scaling figure, wherein single finger touching realizes that figure movement, more fingers are touched Touch diminution, amplification, rotation that screen realizes figure;
(4) when drawing file needs modification, the figure in procedure file is repainted on painting canvas, you can carry out figure The secondary editor of picture is realized in the secondary modification of shape.
It is specific embodiments of the present invention and the technical principle used described in above, if conception under this invention institute The change of work when the spirit that generated function is still covered without departing from specification and attached drawing, should belong to the present invention's Protection domain.

Claims (8)

1. a kind of secondary editing cartographic method based on Android, which is characterized in that include the following steps:
(1) drawing software is opened, the size of setting painting canvas may be selected in front into canvas page:If being configured, according to drafting The width and height of the size setting painting canvas of figure;Otherwise the width of painting canvas with height be defaulted as terminal device screen width with It is high;
(2) judge whether figure is precisely to draw, if so, initial point is deviated to mouse vertex using simulation mouse function; Otherwise initial point is on the basis of touch point;
(3) touch-screen event on terminal device screen is obtained, and condition adjudgement is carried out to touch-screen event:If condition adjudgement is to paint System, thens follow the steps (3.1);If condition adjudgement is operation, then follow the steps (3.2);
(3.1) when graphing, the procedure file of graphic plotting is preserved, by paintbrush size, color, the graph position of graphing The coordinate of point is preserved;
(3.2) it when selection operation, moves or scaling figure, wherein single finger touching realizes figure movement, refer to touch screen more Realize diminution, amplification, the rotation of figure;
(4) when drawing file needs modification, the figure in procedure file is repainted on painting canvas, you can carry out figure The secondary editor of picture is realized in secondary modification.
2. a kind of secondary editing cartographic method based on Android according to claim 1, it is characterised in that:The step Suddenly (1) in setting, the canvas size that is if desired arranged exceeds the size of terminal device screen, then utilizes painting canvas locomotive function complete At the setting of canvas size.
3. a kind of secondary editing cartographic method based on Android according to claim 1, it is characterised in that:Described Touch-screen event includes the event for clicking, dragging and frameing out.
4. a kind of secondary editing cartographic method based on Android according to claim 1, it is characterised in that:The step Suddenly (3.1) gallery of templates function can be used in graphing, i.e., is in advance difficult to realize common graphics template or mobile phone terminal Figure, draw and download by the ends pc and be saved in this map office, gallery of templates can be selected to be plotted on painting canvas in picture library, and Support secondary modification.
5. a kind of secondary editing cartographic method based on Android according to claim 1, it is characterised in that:The step Suddenly it includes fixed revocation, selection revocation and all revocations that (3.1) revocation function, revocation function also can be used in graphing: Fixed revocation is cancels the figure that last time is drawn, any one in all figures drawn can be revoked in selection revocation, entirely Portion's revocation is the graphing emptied on painting canvas.
6. a kind of secondary editing cartographic method based on Android according to claim 5, it is characterised in that:It is described When being cancelled using selection, the figure of all draftings in historical process is can see in figure history list, chooses figure After some figure in history list, then the figure chosen and come all graphings after the figure all will be by It empties;Wherein for the ease of distinguishing, when choosing a figure of figure history list, corresponding figure will on painting canvas Change color, sliding list item can cancel corresponding figure.
7. a kind of secondary editing cartographic method based on Android according to claim 1, it is characterised in that:It is described Length check can be set during graphing, pass through the sliding distance between verifying initial point and leaving a little:The sliding away from When from less than figure most short screen distance, the figure will not be drawn on painting canvas, to avoid because finger accidentally put to due to draw mistake.
8. a kind of secondary editing cartographic method based on Android according to claim 1, it is characterised in that:It is described Figure can be labeled during graphing, input letter and digital text frame are provided, can be drawn according to input content Figure is incremented by wherein number is automatic.
CN201810520580.5A 2018-05-28 2018-05-28 A kind of secondary editing cartographic method based on Android Pending CN108762638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810520580.5A CN108762638A (en) 2018-05-28 2018-05-28 A kind of secondary editing cartographic method based on Android

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810520580.5A CN108762638A (en) 2018-05-28 2018-05-28 A kind of secondary editing cartographic method based on Android

Publications (1)

Publication Number Publication Date
CN108762638A true CN108762638A (en) 2018-11-06

Family

ID=64006426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810520580.5A Pending CN108762638A (en) 2018-05-28 2018-05-28 A kind of secondary editing cartographic method based on Android

Country Status (1)

Country Link
CN (1) CN108762638A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324273A (en) * 2018-12-13 2020-06-23 鸿合科技股份有限公司 Media display implementation method and device
CN111367433A (en) * 2020-03-03 2020-07-03 淄博职业学院 Touch drawing processing system and method
CN111524210A (en) * 2020-04-10 2020-08-11 北京百度网讯科技有限公司 Method and apparatus for generating drawings
CN112259200A (en) * 2020-11-09 2021-01-22 深圳市爱科学教育科技有限公司 Editing and labeling system and method for microscope experiment result picture

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804774A (en) * 2004-12-22 2006-07-19 微软公司 Improving touch screen accuracy
CN103034439A (en) * 2012-11-30 2013-04-10 广东欧珀移动通信有限公司 Method and device for generating drawing file
US20130167087A1 (en) * 2009-01-09 2013-06-27 Joseph Tighe Mode-based graphical editing
CN106909293A (en) * 2015-12-22 2017-06-30 深圳富泰宏精密工业有限公司 The method and electronic installation of analog mouse operation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804774A (en) * 2004-12-22 2006-07-19 微软公司 Improving touch screen accuracy
US20130167087A1 (en) * 2009-01-09 2013-06-27 Joseph Tighe Mode-based graphical editing
CN103034439A (en) * 2012-11-30 2013-04-10 广东欧珀移动通信有限公司 Method and device for generating drawing file
CN106909293A (en) * 2015-12-22 2017-06-30 深圳富泰宏精密工业有限公司 The method and electronic installation of analog mouse operation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阿堃堃堃堃: ""Android的绘图软件开发(2)-图形的编辑操作实现"", 《HTTPS://WWW.JIANSHU.COM/P/B4B0692406EF》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324273A (en) * 2018-12-13 2020-06-23 鸿合科技股份有限公司 Media display implementation method and device
CN111367433A (en) * 2020-03-03 2020-07-03 淄博职业学院 Touch drawing processing system and method
CN111524210A (en) * 2020-04-10 2020-08-11 北京百度网讯科技有限公司 Method and apparatus for generating drawings
CN112259200A (en) * 2020-11-09 2021-01-22 深圳市爱科学教育科技有限公司 Editing and labeling system and method for microscope experiment result picture

Similar Documents

Publication Publication Date Title
CN108762638A (en) A kind of secondary editing cartographic method based on Android
JP6427559B6 (en) Permanent synchronization system for handwriting input
KR20120095852A (en) Method and apparatus for drawing and erasing calligraphic ink objects on a display surface
KR20130060145A (en) Processoing method and apparatus for beautifying handwritten input
CN110090444B (en) Game behavior record creating method and device, storage medium and electronic equipment
CN106201170A (en) The footmark processing method of a kind of application icon and terminal
DE112013006066T5 (en) Emulate the pressure sensitivity on multi-touch units
CN107463331A (en) Gesture path analogy method, device and electronic equipment
CN107656693A (en) A kind of method and device that cursor position is determined in touch-screen
JP2014059808A (en) Electronic equipment and handwritten document processing method
CN110275704A (en) Page data processing method and device, storage medium and electronic equipment
KR102057647B1 (en) Method for generating writing data and an electronic device thereof
CN108509142A (en) Writing software interaction method and device, terminal equipment and storage medium
CN109582929A (en) Mark line method for drafting and electronic equipment based on e-book
CN106406655A (en) Text processing method and mobile terminal
CN115359793A (en) Vehicle-mounted voice interaction method and device and vehicle
CN102681764A (en) Text input interaction method for touch screen
CN106155493A (en) A kind of method carrying out input prompt in display interface and device thereof
CN106648367B (en) Touch reading method and touch reading device
Ganhör et al. Monox: extensible gesture notation for mobile devices
EP1770489A3 (en) Data control method using mouse functions in a wireless terminal
CN110286826A (en) Show processing method, device, equipment and the storage medium of content
CN105955629A (en) Method and device for selecting rich text
US20190087653A1 (en) Preserving styles and ink effects in ink-to-text
CN105511772A (en) Method, device and mobile terminal using gesture operation to trigger touch screen button

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

Application publication date: 20181106