CN104537701A - Operation method of vector lines - Google Patents

Operation method of vector lines Download PDF

Info

Publication number
CN104537701A
CN104537701A CN201510033812.0A CN201510033812A CN104537701A CN 104537701 A CN104537701 A CN 104537701A CN 201510033812 A CN201510033812 A CN 201510033812A CN 104537701 A CN104537701 A CN 104537701A
Authority
CN
China
Prior art keywords
vector lines
drawing board
lines
quadrilateral drawing
quadrilateral
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
CN201510033812.0A
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.)
JIANGSU ZHONGWEI TECHNOLOGY SOFTWARE SYSTEM Co Ltd
Original Assignee
JIANGSU ZHONGWEI TECHNOLOGY SOFTWARE SYSTEM 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 JIANGSU ZHONGWEI TECHNOLOGY SOFTWARE SYSTEM Co Ltd filed Critical JIANGSU ZHONGWEI TECHNOLOGY SOFTWARE SYSTEM Co Ltd
Priority to CN201510033812.0A priority Critical patent/CN104537701A/en
Publication of CN104537701A publication Critical patent/CN104537701A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an operation method of vector lines. The operation method comprises the following steps of selecting all vector lines as required; generating a quadrilateral drawing board for drawing and carrying the vector lines by taking the upper, lower, left and right margins of all the selected vector lines as limits; removing all the selected vector lines from an original view, and drawing all the selected vector lines into the quadrilateral drawing board in a way of superposing with the position of the original view; and operating the quadrilateral drawing board, and then, redrawing all the selected vector lines in the quadrilateral drawing board into the original view. According to the operation method, other lines cannot be influenced when the lines are selected to be subjected to editing operation, and the operation can be canceled and reduced to the former step.

Description

Vector lines method of operating
Technical field
The application relates to technical field of image processing, particularly relates to a kind of vector lines method of operating.
Background technology
At present, on various electronic equipment (as operating environments such as traditional computer, smart mobile phone, flat boards), the operation such as we often can utilize touch-screen to carry out drawing, handwriting.
Under the prior art, the amendment for the lines having drawn wrong or word realizes mainly through the mode of wiping or shear.The method efficiency of these two kinds amendments is not high, and cannot meet all demands of user, as: the lines itself of the word that user writes or picture are no problem, and just position is not right, or size is not right.In this case, the mode of use erasing inputs original content after modifying and just needing user to wipe again, and the mode sheared then cannot be edited the size of lines.Simultaneously, user also can not wanted that the lines revised are wiped or clip to other positions by these two kinds of modes, as: two lines location partly overlap, but I only wants the single line bar revising the inside, at this time use erasing and shear the lines that all can be modified to user and not want to revise.And once perform erasing or shearing manipulation, user cannot revert to previous step.
Summary of the invention
The object of the application is to provide a kind of vector lines method of operating, can not have influence on other lines, and can cancel to revert to previous step when carrying out editing operation for choosing lines.
According to an aspect of the application, vector lines method of operating is provided, comprises:
Each vector lines are chosen by demand;
Being limited with the border, upper and lower, left and right of all selected vector lines, generating one for carrying the quadrilateral drawing board of vector lines;
All selected vector lines are removed from former view, and is plotted in described quadrilateral drawing board in the ground mode that overlaps with former view location;
Described quadrilateral drawing board is operated, then the described selected vector lines in this quadrilateral drawing board is repainted in former view.
According to such scheme, choosing lines by drawing the mode in closure region, and adopt vector lines to move and convergent-divergent replaces traditional erasing and shearing, other lines when making user can carry out editing operation for choosing lines, can not be had influence on.
In certain embodiments, the vector lines for required selection draw closure figure;
Travel through the unique point of all vector lines, or each vector lines that are contained in described closure figure in crossing with described closure figure are chosen; Wherein, the node identified continuously by preset interval time when described unique point is and draws vector lines, correspondingly can draw out this vector lines by each unique point of vector lines.Thus by closure figure selected vector lines quickly and easily.
In certain embodiments, the unique point of all selected vector lines is deducted first coordinate figure in the described quadrilateral drawing board upper left corner, to calculate the coordinate figure of vector lines on described quadrilateral drawing board, then position is plotted in described quadrilateral drawing board with overlapping.
In certain embodiments, described in be operating as movement, that is: drag described quadrilateral drawing board to final position, get second coordinate figure in the now described quadrilateral drawing board upper left corner, and the unique point of all selected vector lines is added described second coordinate figure.Again the described selected vector lines in this quadrilateral are repainted in former view, to complete mobile operation.
In certain embodiments, describedly be operating as convergent-divergent, that is: convergent-divergent is carried out by zoom factor in the angle dragging described quadrilateral drawing board, after end, the coordinate figure of the unique point of all selected vector lines is multiplied by zoom factor, obtains and add the three-dimensional value in the now described quadrilateral drawing board upper left corner.Again the described selected vector lines in this quadrilateral are repainted in former view, to complete zoom operations.
In certain embodiments, described zoom factor is the width of width divided by quadrilateral drawing board before convergent-divergent of quadrilateral drawing board after convergent-divergent.
In certain embodiments, described in be operating as and copy, that is: copy described quadrilateral drawing board to final position, get the 4-coordinate value in the now described quadrilateral drawing board upper left corner, and the unique point of all selected vector lines is added described 4-coordinate value.Again the described selected vector lines in this quadrilateral are repainted in former view, to complete replicate run.
In certain embodiments, also comprise:
Record positional information and the lines size information of each vector lines before each step action of described operation.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the vector lines method of operating of one embodiment of the invention;
Fig. 2 is the view of vector lines to be modified;
Fig. 3 is the view of vector lines after drafting closure figure;
Fig. 4 is the view of the rear vector lines generating quadrilateral;
Fig. 5 is the view of the vector lines after mobile also convergent-divergent;
Fig. 6 is the view having edited rear vector lines.
Embodiment
Below in conjunction with accompanying drawing, embodiments of the present invention are elaborated.
Refer to Fig. 1, according to one embodiment of the present invention, vector lines method of operating comprises the steps:
S1, draws closure figure in vector lines region for the vector lines of required selection, if figure is not closed, starting point is connected with terminal and forms closure.As shown in Figures 2 and 3.
S2, travel through the unique point of all vector lines in view successively, for any vector lines wherein, be all the connecting line of the unique point (node identified continuously by preset interval time when drawing vector lines) on screen after amplification, correspondingly can draw out this vector lines by each unique point of vector lines.Using unique point as key point, using connecting line as key lines.As long as any one unique point in certain vector lines or connecting line are through the closure figure drawn by step one, then these vector lines are just selected for being about to by the vector lines edited, and all selected vector lines are preserved in new array.Particularly, selected vector lines one of meet the following conditions:
A, at least crossing once with drawn closure figure.
B, is completely contained in drawn closure figure.
S3, travel through all selected vector lines, and determine the border of the upper and lower, left and right of all vector lines, calculate generation one for drawing and carrying the quadrilateral drawing board of vector lines, make selected vector lines just in time can repaint in this quadrilateral drawing board, as shown in Figure 4.
S4, obtain first coordinate figure in the quadrilateral drawing board upper left corner, and the key point (unique point) of all selected vector lines is deducted this first coordinate figure, to calculate the coordinate figure of vector lines on described quadrilateral drawing board, then remove selected vector lines, and the vector lines of removal are plotted in this quadrilateral drawing board.Like this, complete the vector lines after drafting just in time also in original position (that is: overlapping with vector lines present position in former view), but be in fact plotted in new view and gone.
S5, operates accordingly to quadrilateral drawing board according to demand, and concrete operation is divided into movement, convergent-divergent and copies.As shown in Figure 5 and Figure 6, wherein,
The realization of movement: press on quadrilateral drawing board with the head of a household, this quadrilateral drawing board can be dragged arbitrarily, drag the second coordinate figure getting the quadrilateral drawing board upper left corner after terminating, and the unique point of all selected vector lines is added described second coordinate figure, again the described selected vector lines location in this quadrilateral drawing board is repainted in former view with overlapping, to complete mobile operation.
The realization of convergent-divergent: first user can move this quadrilateral drawing board, then the lower right corner dragging quadrilateral drawing board realizes convergent-divergent, after convergent-divergent terminates, the key point of all selected vector lines is multiplied by zoom factor (value of zoom factor is: after convergent-divergent, the width of quadrilateral drawing board is divided by the width of quadrilateral drawing board before convergent-divergent), then obtains and add the three-dimensional value in the now described quadrilateral drawing board upper left corner.Again the described selected vector lines location in this quadrilateral drawing board is repainted in former view, to complete zoom operations with overlapping.
The realization copied: copy quadrilateral drawing board to final position, get the 4-coordinate value in the now quadrilateral drawing board upper left corner, and the unique point of all selected vector lines is added described 4-coordinate value.Again the described selected vector lines location in this quadrilateral drawing board is repainted in former view, to complete replicate run with overlapping.
Meanwhile, for each step action of operation, the information of each vector lines all before operation of recording: positional information and lines size information, makes user can cancel any single job action, the state before being reduced to action.
The above is only one embodiment of the present invention; it should be pointed out that to those skilled in the art, without departing from the concept of the premise of the invention; can also make some similar distortion and improvement, these also should be considered as within protection scope of the present invention.

Claims (8)

1. a vector lines method of operating, is characterized in that, comprising:
Each vector lines are chosen by demand;
Being limited with the border, upper and lower, left and right of all selected vector lines, generating one for carrying the quadrilateral drawing board of vector lines;
All selected vector lines are removed from former view, and is plotted in described quadrilateral drawing board in the ground mode that overlaps with former view location;
Described quadrilateral drawing board is operated, then the described selected vector lines in this quadrilateral drawing board is repainted in former view.
2. vector lines method of operating according to claim 1, is characterized in that,
Vector lines for required selection draw closure figure;
Travel through the unique point of all vector lines, or each vector lines that are contained in described closure figure in crossing with described closure figure are chosen; Wherein, the node identified continuously by preset interval time when described unique point is and draws vector lines, correspondingly can draw out this vector lines by each unique point of vector lines.
3. vector lines method of operating according to claim 1, is characterized in that,
The unique point of all selected vector lines is deducted first coordinate figure in the described quadrilateral drawing board upper left corner, to calculate the coordinate figure of vector lines on described quadrilateral drawing board, then position is plotted in described quadrilateral drawing board with overlapping.
4. vector lines method of operating according to claim 1, is characterized in that, described in be operating as movement, that is:
Drag described quadrilateral drawing board to final position, get second coordinate figure in the now described quadrilateral drawing board upper left corner, and the unique point of all selected vector lines is added described second coordinate figure.
5. vector lines method of operating according to claim 1, is characterized in that, described in be operating as convergent-divergent, that is:
Convergent-divergent is carried out by zoom factor in the angle dragging described quadrilateral drawing board, after terminating, the coordinate figure of the unique point of all selected vector lines is multiplied by zoom factor, obtains and adds the three-dimensional value in the now described quadrilateral drawing board upper left corner.
6. vector lines method of operating according to claim 5, is characterized in that, described zoom factor is the width of width divided by quadrilateral drawing board before convergent-divergent of quadrilateral drawing board after convergent-divergent.
7. vector lines method of operating according to claim 1, is characterized in that, described in be operating as and copy, that is:
Copy described quadrilateral drawing board to final position, get the 4-coordinate value in the now described quadrilateral drawing board upper left corner, and the unique point of all selected vector lines is added described 4-coordinate value.
8. the vector lines method of operating according to claim 4 or 5 or 7, is characterized in that, also comprise:
Record positional information and the lines size information of each vector lines before each step action of described operation.
CN201510033812.0A 2015-01-22 2015-01-22 Operation method of vector lines Pending CN104537701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510033812.0A CN104537701A (en) 2015-01-22 2015-01-22 Operation method of vector lines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510033812.0A CN104537701A (en) 2015-01-22 2015-01-22 Operation method of vector lines

Publications (1)

Publication Number Publication Date
CN104537701A true CN104537701A (en) 2015-04-22

Family

ID=52853220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510033812.0A Pending CN104537701A (en) 2015-01-22 2015-01-22 Operation method of vector lines

Country Status (1)

Country Link
CN (1) CN104537701A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574907A (en) * 2015-12-18 2016-05-11 广州视睿电子科技有限公司 Information processing method and device
CN106991711A (en) * 2017-03-15 2017-07-28 广州视源电子科技股份有限公司 Handwriting editing method and system
CN110458920A (en) * 2018-05-08 2019-11-15 杭州海康威视数字技术股份有限公司 A kind of handwriting erasing method and device
WO2020210977A1 (en) * 2019-04-16 2020-10-22 深圳市柔宇科技有限公司 Local trajectory selection method, trajectory splitting and merging method, electronic device and storage medium
CN114296591A (en) * 2021-12-27 2022-04-08 泰山信息科技有限公司 Composite line drawing method and device and related equipment
WO2024119565A1 (en) * 2022-12-08 2024-06-13 北星空间信息技术研究院(南京)有限公司 Geographic information system vector data drawing method and apparatus, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033678A1 (en) * 2007-08-04 2009-02-05 Case Robert M Method for checkerboard-based vector to raster conversion
CN101477694A (en) * 2008-12-02 2009-07-08 广东威创视讯科技股份有限公司 Handwriting erasing method and apparatus
CN101887592A (en) * 2010-07-30 2010-11-17 中国测绘科学研究院 Drawing method for vector graphic map symbols
CN103345389A (en) * 2013-06-06 2013-10-09 百度在线网络技术(北京)有限公司 Vector graph operating method and device applied to webpage
CN103927169A (en) * 2014-04-10 2014-07-16 南京信息工程大学 Method for realizing scaling of electronic map drawn by GDI (graphic device interface)+

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033678A1 (en) * 2007-08-04 2009-02-05 Case Robert M Method for checkerboard-based vector to raster conversion
CN101477694A (en) * 2008-12-02 2009-07-08 广东威创视讯科技股份有限公司 Handwriting erasing method and apparatus
CN101887592A (en) * 2010-07-30 2010-11-17 中国测绘科学研究院 Drawing method for vector graphic map symbols
CN103345389A (en) * 2013-06-06 2013-10-09 百度在线网络技术(北京)有限公司 Vector graph operating method and device applied to webpage
CN103927169A (en) * 2014-04-10 2014-07-16 南京信息工程大学 Method for realizing scaling of electronic map drawn by GDI (graphic device interface)+

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574907A (en) * 2015-12-18 2016-05-11 广州视睿电子科技有限公司 Information processing method and device
WO2017101454A1 (en) * 2015-12-18 2017-06-22 广州视睿电子科技有限公司 Information processing method and device
CN106991711A (en) * 2017-03-15 2017-07-28 广州视源电子科技股份有限公司 Handwriting editing method and system
CN110458920A (en) * 2018-05-08 2019-11-15 杭州海康威视数字技术股份有限公司 A kind of handwriting erasing method and device
CN110458920B (en) * 2018-05-08 2021-09-21 杭州海康威视数字技术股份有限公司 Handwriting erasing method and device
WO2020210977A1 (en) * 2019-04-16 2020-10-22 深圳市柔宇科技有限公司 Local trajectory selection method, trajectory splitting and merging method, electronic device and storage medium
CN114296591A (en) * 2021-12-27 2022-04-08 泰山信息科技有限公司 Composite line drawing method and device and related equipment
CN114296591B (en) * 2021-12-27 2024-05-28 泰山信息科技有限公司 Composite line drawing method and device and related equipment
WO2024119565A1 (en) * 2022-12-08 2024-06-13 北星空间信息技术研究院(南京)有限公司 Geographic information system vector data drawing method and apparatus, and electronic device

Similar Documents

Publication Publication Date Title
CN104537701A (en) Operation method of vector lines
EP3742280A1 (en) Display annotation method, device, apparatus, and storage medium
JP6364893B2 (en) Terminal device, electronic whiteboard system, electronic whiteboard input support method, and program
CN107918549B (en) Marking method and device for three-dimensional expansion drawing, computer equipment and storage medium
CN105630939A (en) General canvas input interface design method and device
JP5981175B2 (en) Drawing display device and drawing display program
CN109145272B (en) Text rendering and layout method, device, equipment and storage medium
WO2022242379A1 (en) Stroke-based rendering method and device, storage medium and terminal
JP2707175B2 (en) Graphic processing system
CN111061473A (en) Visual component editing method and device for quickly building page
CN114518822A (en) Application icon management method and device and electronic equipment
CN104932774A (en) Information processing method and electronic equipment
WO2016006294A1 (en) Image display apparatus, image processing system, and image processing method
CN103345389B (en) The operational approach of a kind of vector graphics being applied to webpage and device
JP6070116B2 (en) Image processing apparatus, image processing system, image processing method, and program
TWI512593B (en) Frame drawing method, frame updating method, and mobile electronic device thereof
JPH0619669A (en) Picture data editing and operating method
CN105094365A (en) Drawing-type input method and device and input method system
CN103259932A (en) Editing method and system of touch screen mobile terminal multimedia messages
DE102016204692A1 (en) Control of multiple selection on touch-sensitive surfaces
WO2022143337A1 (en) Display control method and apparatus, and electronic device and storage medium
US20150026552A1 (en) Electronic device and image data displaying method
WO2014103357A1 (en) Electronic apparatus and input method
JP2015101038A (en) Printing system, method for controlling printing system, and program
JP2009259082A (en) Ladder diagram editing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150422

RJ01 Rejection of invention patent application after publication