CN103218074B - Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal - Google Patents

Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal Download PDF

Info

Publication number
CN103218074B
CN103218074B CN201310070640.5A CN201310070640A CN103218074B CN 103218074 B CN103218074 B CN 103218074B CN 201310070640 A CN201310070640 A CN 201310070640A CN 103218074 B CN103218074 B CN 103218074B
Authority
CN
China
Prior art keywords
touch screen
point
successively
preset value
broken line
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.)
Expired - Fee Related
Application number
CN201310070640.5A
Other languages
Chinese (zh)
Other versions
CN103218074A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201310070640.5A priority Critical patent/CN103218074B/en
Publication of CN103218074A publication Critical patent/CN103218074A/en
Application granted granted Critical
Publication of CN103218074B publication Critical patent/CN103218074B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to electronic applications, disclose a kind of method and the intelligent terminal that realize touch screen stroke structure at intelligent terminal, its method comprises: according to the touch-screen input of user, and the touch screen portion that samples successively, at least two touch screen points of screen process, records the coordinate figure of each touch screen point; The abscissa value of each touch screen point and ordinate value are added the first preset value, the second preset value respectively, obtains each change point successively; Connect each touch screen point successively, obtain the first broken line; Connect each change point successively, obtain the second broken line; Each touch screen point and each change point are connected one to one, obtain at least two connecting lines, this connecting line and first, second broken line form at least one enclosed region; According to the stroke color preset, fill the region that this is closed.Application the technical program can according to the touch-screen input of user, and the stroke structure that simulated implementation is hand-written on smart machine, presents calligraphy effect, is conducive to the application impression improving user.

Description

Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal
Technical field
The present invention relates to electronic applications, particularly a kind of method and intelligent terminal realizing touch screen stroke structure at intelligent terminal.
Background technology
In today of high speed development, the intelligent terminal having a touch screen functionality is that the life of people brings increasing facility.People can directly write with finger, to meet account or the communication exchanges of daily life on touch-screen equipment.But because most of user has been accustomed to adopting pen to write, and prior art is the simple path pointed and streak that draws, obtain corresponding word by recognition device again or directly export corresponding pattern or word according to the path of streaking, the text effects that this method obtains is also bad, cannot write out the font with brush writing effect.
Summary of the invention
The embodiment of the present invention first object is to provide a kind of method realizing touch screen stroke structure at intelligent terminal, applying this technical scheme can according to the touch-screen input of user, the stroke structure that simulated implementation is hand-written on smart machine, presents calligraphy effect, is conducive to the application impression improving user.
The embodiment of the present invention second object is to provide a kind of intelligent terminal, and applying this technical scheme can according to the touch-screen input of user, and the stroke structure that simulated implementation is hand-written on smart machine, presents calligraphy effect, is conducive to the application impression improving user.
First aspect, present embodiments provide a kind of method realizing touch screen stroke structure at intelligent terminal, comprise: control touch screen portion according to user and move on intelligent terminal screen and the touch-screen input produced, to sample successively at least two the touch screen points of described touch screen portion in described screen process, record the coordinate figure of each described touch screen point;
According to the sampling priority of each described touch screen point, the abscissa value of each described touch screen point is added the first preset value respectively, and the ordinate value of each described touch screen point is added the second preset value respectively, obtain each change point successively;
According to the sampling priority of each described touch screen point, connect each described touch screen point successively, obtain the first broken line;
According to the acquisition priority of each described change point, connect each described change point successively, obtain the second broken line;
Each described touch screen point and described change point are connected one to one, obtain at least two connecting lines, described connecting line and first, second broken line described form at least one enclosed region;
Respectively according to the stroke color preset, fill each described closed region.
In conjunction with first aspect, under the first implementation, described first preset value, the second preset value are identical.
In conjunction with the first implementation of first aspect or first aspect, under the second implementation, described first preset value, the second preset value are default stroke width.
Second aspect, a kind of intelligent terminal, comprising:
Touch-screen input module, moves for controlling touch screen portion for user and produces touch-screen input on screen;
Microprocessor, move on intelligent terminal screen and the touch-screen input produced for controlling touch screen portion according to user, to sample successively at least two the touch screen points of described touch screen portion in described screen process, record the coordinate figure of each described touch screen point, and for the sampling according to each described touch screen point successively, the abscissa value of each described touch screen point is added the first preset value respectively, and the ordinate value of each described touch screen point is added the second preset value respectively, obtain each change point successively, and for the sampling according to each described touch screen point successively, connect each described touch screen point successively, obtain the first broken line, and for the acquisition according to each described change point successively, connect each described change point successively, obtain the second broken line, and for each described touch screen point and described change point are connected one to one, obtain at least two connecting lines, described connecting line and described first, second broken line forms at least one enclosed region, and for according to preset stroke color, fill described closed region.
In conjunction with second aspect, under the first implementation, described first preset value, the second preset value are identical.
In conjunction with the first implementation of second aspect or second aspect, under the second implementation, described first preset value, the second preset value are default stroke width.
Therefore, adopt technical scheme of the present invention, when user adopts touch screen portion to carry out the stroke input of touch screen at intelligent terminal, the path locus of sampling touch screen portion movement on screen, record the coordinate figure of each touch screen point in this path, and the broken line that each touch screen point connects successively is designated as the first broken line.First preset value, the second preset value are added respectively to the abscissa value of each touch screen point and ordinate value, obtains each change point successively, the broken line that each change point connects successively is designated as the second broken line.Connect one to one each touch screen point and each change point, obtains at least two connecting lines, and this connecting line and the first broken line, the second broken line form at least one closed region, finally according to this enclosed region of stroke color filling of setting.
Compared to prior art be only identified by the track inputted corresponding word or according to input path locus export corresponding character and graphic, the technical program can according to the touch-screen input of user, the trajectory path of input is processed, the stroke structure that simulated implementation is hand-written on smart machine, present calligraphy effect, be conducive to the application impression improving user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is that the embodiment of the present invention 1 provides a kind of schematic flow sheet realizing the method for touch screen stroke structure at intelligent terminal;
Fig. 2 is the text effects schematic diagram that the embodiment of the present invention 1 provides a kind of touch screen stroke structure;
Fig. 3 is the structural representation that the embodiment of the present invention 2 provides a kind of intelligent terminal.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1:
See Fig. 1, present embodiments provide a kind of method realizing touch screen stroke structure at intelligent terminal, be applicable to the intelligent terminal having touch screen writing function.
Its key step comprises following:
Step 101: control touch screen portion according to user and move on intelligent terminal screen and the touch-screen input that produces, the touch screen portion that samples successively, at least two touch screen points of screen process, records the coordinate figure of each touch screen point.
In the present embodiment, touch screen portion can be, but not limited to as screen touch pen or finger.When user's touch-screen input starts, touch screen point coordinate value during record firm contact screen in touch screen portion, on the direction of touch screen portion movement, record touch screen portion moves to the coordinate figure of next point.Before the touch-screen input of user stops, the coordinate figure of each touch screen point of sampling successively.
In the present embodiment, judge whether the touch-screen input of user stops can be, but not limited to as judging whether this screen touch pen frames out.
Step 102: the abscissa value of each touch screen point and ordinate value are added the first preset value, the second preset value respectively, obtains each change point successively.
In the present embodiment, the each touch screen point recording coordinate figure is processed, according to the employing priority of each touch screen point, the abscissa value of each touch screen point is added the first preset value respectively, and the ordinate value of each touch screen point is added the second preset value respectively, by the horizontal ordinate newly obtained and ordinate, obtain each change point successively.
In the present embodiment, the first preset value can be, but not limited to identical with the second preset value.First preset value, the second preset value can be, but not limited to be set to stroke width, need to carry out regulating and arrange according to user.
Step 103: according to the sampling priority of each touch screen point, connect each touch screen point successively, obtain the first broken line.
In the present embodiment, according to the sequencing of each touch screen point sampling, each touch screen point is coupled together, obtains the first broken line.Trajectory path when this first broken line is the touch-screen input of user.
Step 104: according to the acquisition priority of each change point, connect each change point successively, obtain the second broken line.
In the present embodiment, according to the acquisition order of each change point, each change point is coupled together, obtains the second broken line.This second broken line builds according to the trajectory path of the first broken line.
Step 105: each touch screen point and each change point are connected one to one, obtains at least two connecting lines, and this connecting line and first, second broken line form at least one enclosed region.
In the present embodiment, because each change point is obtained through conversion by each touch screen point, thus point on the first broken line all with the some one_to_one corresponding on the second broken line.Connect this each touch screen point and each change point one to one respectively, obtain at least two connecting lines, this connecting line forms at least one enclosed region with the first broken line, the second broken line.
In the present embodiment, the curve that can be, but not limited to adopt straight line or have certain radian connects each point, and the enclosed region formed be can be, but not limited to as quadrilateral, arc and circle.
Step 106: according to the stroke color preset, fills the region that this is closed.
In the present embodiment, can be, but not limited to adopt this closed region of different color fillings, to realize the stroke input of user, obtain the word of different colours effect.
For example: user carries out stroke input by screen touch pen at screen, each touch screen point coordinate value when sample record screen touch pen moves respectively in path locus is A (Xa, Ya), B (Xb, Yb) ... until user stops touch-screen input.First preset value and the second preset value are set to width simultaneously, by A, B ... this value is added respectively etc. the horizontal ordinate of each touch screen point and ordinate, obtain each change point A ' (Xa+width, Ya+width), B ' (Xb+width, Yb+width) ... by A, B ... connect Deng touch screen point and form the first broken line, there are A ', B ' ... connect to form the second broken line Deng change point, then connect one to one A and A ', B and B respectively ' ... obtain at least two connecting lines.This connecting line and the first broken line, the second broken line form at least one closed quadrilateral ABB ' A ', according to the stroke color preset, fill this closed quadrilateral, thus structure obtains word or the pattern of the input of this touch screen stroke.
See the word schematic diagram that Fig. 2, Fig. 2 form for the enclosed region obtained before filling.As seen from the figure, accompanying drawing mark 201 is touch screen point, the change point of accompanying drawing mark 202 for being converted by touch screen point 201, mutually corresponding with touch screen point 201.Accompanying drawing mark 205 is the connecting line that touch screen point 201 connects one to one with change point 202.Accompanying drawing mark 203 is the first broken line be connected in sequence by touch screen point 201, and accompanying drawing mark 204 is the second broken line be connected in sequence by change point 204.As seen from the figure, form at least one enclosed region by the first broken line 203, second broken line 204 and connecting line 205, according to this enclosed region of stroke color filling, i.e. the obtainable word with hand-written Brush calligraphy effect.
Therefore, adopt technical scheme of the present invention, when user adopts touch screen portion to carry out the stroke input of touch screen at intelligent terminal, the path locus of sampling touch screen portion movement on screen, record the coordinate figure of each touch screen point in this path, and the broken line that each touch screen point connects successively is designated as the first broken line.First preset value, the second preset value are added respectively to the abscissa value of each touch screen point and ordinate value, obtains each change point successively, the broken line that each change point connects successively is designated as the second broken line.Connect one to one each touch screen point and each change point, obtains at least two connecting lines, and this connecting line and the first broken line, the second broken line form at least one closed region, finally according to this enclosed region of stroke color filling of setting.
Compared to prior art be only identified by the track inputted corresponding word or according to input path locus export corresponding character and graphic, the technical program can according to the touch-screen input of user, the trajectory path of input is processed, the stroke structure that simulated implementation is hand-written on smart machine, present calligraphy effect, be conducive to the application impression improving user.
Embodiment 2:
See Fig. 3, present embodiments provide a kind of intelligent terminal, the conformation function of touch screen stroke can be realized.Mainly comprise: touch-screen input module 301, microprocessor 302.
Annexation and the principle of work of its each parts are as follows:
Touch-screen input module 301, is electrically connected with microprocessor 302, moves for controlling touch screen portion for user and produces touch-screen input on screen.
Microprocessor 302, move on screen and the touch-screen input produced for controlling touch screen portion according to user, sampling touch screen portion is at least two touch screen points of this screen process successively, record the coordinate figure of each touch screen point, and for the sampling according to each touch screen point successively, the abscissa value of each touch screen point is added the first preset value respectively, and the ordinate value of each touch screen point is added the second preset value respectively, obtain each change point successively, and for the sampling according to each touch screen point successively, connect each touch screen point successively, obtain the first broken line, and for the acquisition according to each change point successively, connect each change point successively, obtain the second broken line, and for each touch screen point and each change point are connected one to one, obtain at least two connecting lines, this connecting line and described first, second broken line forms at least one enclosed region, and for according to preset stroke color, fill the region that this is closed.
The more detailed principle of work of these parts passable but be not limited to record accordingly see in example 1.
Therefore, adopt technical scheme of the present invention, when user adopts touch screen portion to carry out the stroke input of touch screen at intelligent terminal, the path locus of sampling touch screen portion movement on screen, record the coordinate figure of each touch screen point in this path, and the broken line that each touch screen point connects successively is designated as the first broken line.First preset value, the second preset value are added respectively to the abscissa value of each touch screen point and ordinate value, obtains each change point successively, the broken line that each change point connects successively is designated as the second broken line.Connect one to one each touch screen point and each change point, obtains at least two connecting lines, and this connecting line and the first broken line, the second broken line form at least one closed region, finally according to this enclosed region of stroke color filling of setting.
Compared to prior art be only identified by the track inputted corresponding word or according to input path locus export corresponding character and graphic, the technical program can according to the touch-screen input of user, the trajectory path of input is processed, the stroke structure that simulated implementation is hand-written on smart machine, present calligraphy effect, be conducive to the application impression improving user.
Above-described embodiment, does not form the restriction to this technical scheme protection domain.The amendment done within any spirit at above-mentioned embodiment and principle, equivalently to replace and improvement etc., within the protection domain that all should be included in this technical scheme.

Claims (6)

1. realize a method for touch screen stroke structure at intelligent terminal, comprising:
Control touch screen portion according to user to move on intelligent terminal screen and the touch-screen input produced, at least two the touch screen points of described touch screen portion in described screen process of sampling successively, record the coordinate figure of each described touch screen point; It is characterized in that, also comprise:
According to the sampling priority of each described touch screen point, the abscissa value of each described touch screen point is added the first preset value respectively, and the ordinate value of each described touch screen point is added the second preset value respectively, obtain each change point successively;
According to the sampling priority of each described touch screen point, connect each described touch screen point successively, obtain the first broken line;
According to the acquisition priority of each described change point, connect each described change point successively, obtain the second broken line;
Each described touch screen point and described change point are connected one to one, obtain at least two connecting lines, described connecting line and first, second broken line described form at least one enclosed region;
Respectively according to the stroke color preset, fill each described closed region.
2. method according to claim 1, is characterized in that,
Described first preset value, the second preset value are identical.
3. method according to claim 1 and 2, is characterized in that,
Described first preset value, the second preset value are default stroke width.
4. an intelligent terminal, comprising:
Touch-screen input module, moves for controlling touch screen portion for user and produces touch-screen input on screen;
Microprocessor, move on intelligent terminal screen and the touch-screen input produced for controlling touch screen portion according to user, at least two the touch screen points of described touch screen portion in described screen process of sampling successively, record the coordinate figure of each described touch screen point;
It is characterized in that, described microprocessor also for the sampling according to each described touch screen point successively, the abscissa value of each described touch screen point is added the first preset value respectively, and the ordinate value of each described touch screen point is added the second preset value respectively, obtain successively each change point,
And for the sampling according to each described touch screen point successively, connect each described touch screen point successively, obtain the first broken line,
And for the acquisition according to each described change point successively, connect each described change point successively, obtain the second broken line,
And for each described touch screen point and described change point being connected one to one, obtain at least two connecting lines, described connecting line and first, second broken line described form at least one enclosed region,
And for according to the stroke color preset, fill described closed region.
5. intelligent terminal according to claim 4, is characterized in that,
Described first preset value, the second preset value are identical.
6. the intelligent terminal according to claim 4 or 5, is characterized in that,
Described first preset value, the second preset value are default stroke width.
CN201310070640.5A 2013-03-06 2013-03-06 Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal Expired - Fee Related CN103218074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310070640.5A CN103218074B (en) 2013-03-06 2013-03-06 Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310070640.5A CN103218074B (en) 2013-03-06 2013-03-06 Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal

Publications (2)

Publication Number Publication Date
CN103218074A CN103218074A (en) 2013-07-24
CN103218074B true CN103218074B (en) 2016-03-09

Family

ID=48815949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310070640.5A Expired - Fee Related CN103218074B (en) 2013-03-06 2013-03-06 Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal

Country Status (1)

Country Link
CN (1) CN103218074B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105160296B (en) * 2015-07-23 2019-06-14 浙江致晟信息科技有限公司 One kind wield the pen motion capture system, device and drawing style emulation mode
CN109147004B (en) * 2018-08-20 2023-06-09 广州视源电子科技股份有限公司 Handwriting display method, device, equipment and storage medium
CN112803938B (en) * 2020-12-31 2023-04-07 美智光电科技股份有限公司 Storage method and apparatus, switch apparatus, memory apparatus and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06175777A (en) * 1992-12-03 1994-06-24 Matsushita Electric Ind Co Ltd Method and device for generating brush-written style
CN101976128A (en) * 2010-10-11 2011-02-16 庄永基 Digital calligraphy/painting real-time data acquisition simulation system and acquisition method thereof
CN102937850A (en) * 2012-12-04 2013-02-20 上海合合信息科技发展有限公司 Method for beautifying handwriting in real time and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06175777A (en) * 1992-12-03 1994-06-24 Matsushita Electric Ind Co Ltd Method and device for generating brush-written style
CN101976128A (en) * 2010-10-11 2011-02-16 庄永基 Digital calligraphy/painting real-time data acquisition simulation system and acquisition method thereof
CN102937850A (en) * 2012-12-04 2013-02-20 上海合合信息科技发展有限公司 Method for beautifying handwriting in real time and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
中国书法字体生成的初步研究;江浩;《中国优秀硕士学位论文全文数据库 信息科技辑》;20071215;全文 *
伴随风格模拟的中国传统书法自动化生成探索;江斌;《中国优秀硕士学位论文全文数据库 信息科技辑》;20110715;全文 *

Also Published As

Publication number Publication date
CN103218074A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN103268166B (en) The former handwriting information collection of handwriting input device and display packing
CN103019602B (en) A kind of method realizing the operation of many people split screen
CN103218074B (en) Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal
CN109445676A (en) The method of the handwritten stroke information of user's input is deleted on handwriting equipment
EP2703959A1 (en) Terminal and method for inputting in terminal using positive and negative ends of stylus
CN105159508A (en) Writing and erasing control method and system for multifunctional electronic whiteboard
CN103744555A (en) Bidirectional display and reduction method for instant messaging handwriting as well as related system and method
CN101833386A (en) Multifunctional electronic writing pen
CN105224180A (en) A kind of method of icon display and device
CN107632741A (en) A kind of direct writing system of instinct type touch-control electronic blank
CN203520671U (en) Electronic-whiteboard-based interactive teaching system
CN102117150A (en) Character post-processing method and system
CN201698347U (en) Electronic pen and host machine
CN107089005A (en) A kind of 3D printer based on mixed proportion
CN103345389B (en) The operational approach of a kind of vector graphics being applied to webpage and device
CN109509240A (en) A kind of smart machine display methods, readable storage medium storing program for executing and smart machine
CN205139865U (en) Eliminate touch pad pasting that touches blind area between electrode
CN201616083U (en) Multifunctional electronic writing pen
CN102722245A (en) Character copying method based on intelligent handheld equipment
CN104407721A (en) Touch control type electronic input pen
CN104317501B (en) Operation instruction input method and system in touch writing state
CN204883622U (en) Electric capacity writing brush
CN103092425A (en) Method for achieving touch screen control through mouse man-machine interface
CN103914193A (en) Capacitive touch screen
CN204302924U (en) A kind of touch control e typing pen

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160309

CF01 Termination of patent right due to non-payment of annual fee