The content of the invention
The technical problem to be solved in the present invention be there is provided it is a kind of based on gesture control screen-picture move method, can
Effectively solve user can not free switching screen horizontal/vertical screen display pattern the problem of, realize horizontal by the autonomous toggle screen of user at any time
Effect of portrait layout display pattern, in addition, can more make screen by the control of user so as to switch to oblique screen state and from
By mobile screen-picture, the effect of mobile terminal screen picture is manipulated completely by user is reached.
Embodiments of the invention are adopted the following technical scheme that:
A kind of method moved based on gesture control screen-picture, applied to mobile terminal, this method comprises the following steps:
An at least contact gesture is obtained by touch-screen;
Detect and recognize whether the contact gesture is consistent with an at least preparatory condition;
If being consistent, in response to the preparatory condition, the real-time pictures of the touch-screen will be by axle center of screen midpoint certainly
The dynamic default number of degrees of rotation one are converted at least one default picture;Wherein, the default number of degrees are preset, and change entrance to change
The default number of degrees;
It is described in response to the preparatory condition, the real-time pictures of the touch-screen will automatically rotate using screen midpoint as axle center
The one default number of degrees, which are converted at least one default picture, specifically also to be included:
When the contact gesture, in being performed on touch-screen clockwise, continuously contact movement is consistent with two finger contacts
When, detect the real-time mobile number of degrees of one of finger contact by axle center of screen midpoint;
Record the real-time mobile number of degrees, and control to state the real-time pictures of touch-screen by axle center of screen midpoint it is automatic to the right
The real-time mobile number of degrees are rotated to be converted into the corresponding real-time pictures;
It is described in response to the preparatory condition, the real-time pictures of the touch-screen will automatically rotate using screen midpoint as axle center
The one default number of degrees, which are converted at least one default picture, specifically also to be included:
When the contact gesture, in being performed on touch-screen counterclockwise, continuously contact movement is consistent with two finger contacts
When, detect the real-time mobile number of degrees of one of finger contact by axle center of screen midpoint;
Record the real-time mobile number of degrees, and control to state the real-time pictures of touch-screen by axle center of screen midpoint it is automatic to the left
The real-time mobile number of degrees are rotated to be converted into the corresponding real-time pictures;
This method also includes:
An at least contact gesture is obtained by touch-screen;
Detect and recognize whether the contact gesture is that at least one finger contact is slided in contact on touch-screen;
If so, then controlling the real-time pictures of the touch-screen to be moved along the sliding trace;When detecting the contact
When gesture stops sliding, then the real-time pictures for controlling the touch-screen are stopped sliding.
Preferably, also including before an at least contact gesture by touch-screen acquisition:Pre-set data with
And parameter, it is specially:
In input preparatory condition, the default number of degrees and default picture in database, wherein, the preparatory condition includes first
Preparatory condition, the second preparatory condition any one or two kinds, first preparatory condition is:At least receive two finger contacts
Moved in performing continuous contact clockwise on touch-screen, second preparatory condition is:At least receive two finger contacts
Moved in performing continuous contact counterclockwise on touch-screen;Wherein, the default number of degrees are 90 degree;Wherein, the default picture
Including the first default picture, the second default picture any one or two kinds, the described first default picture is:Using screen midpoint as axle
The heart be rotated by 90 ° to the right automatically after state, the described second default picture is:It is automatic to anticlockwise 90 by axle center of screen midpoint
State after degree.
Preferably, described detect and recognize whether the contact gesture is consistent specific bag with an at least preparatory condition
Include:
Detect and recognize the contact gesture received whether with two finger contacts in performing up time on touch-screen
The continuous contact movement of pin is consistent;And detect and recognize the contact gesture that receives whether with two finger contacts in
Continuous contact movement counterclockwise is performed on touch-screen to be consistent.
Preferably, described in response to the preparatory condition, the real-time pictures of the touch-screen will be using screen midpoint as axle
The default number of degrees of the automatic rotation one of the heart are converted at least one default picture and specifically included:
When the contact gesture, in being performed on touch-screen clockwise, continuously contact movement is consistent with two finger contacts
When, the real-time pictures of the touch-screen will be to the right rotated by 90 ° automatically using screen midpoint as axle center to be preset with being converted into described first
Picture;And
When the contact gesture, in being performed on touch-screen counterclockwise, continuously contact movement is consistent with two finger contacts
When, the real-time pictures of the touch-screen will be to the left rotated by 90 ° automatically using screen midpoint as axle center to be preset with being converted into described second
Picture.
Preferably, the default picture also includes a plurality of real-time pictures corresponding with a plurality of number of degrees units, i.e.,
One real-time pictures of each number of degrees correspondence.
Implementing the present invention has following beneficial effect:In practice, when detecting and identify contact gesture and at least one
When preparatory condition is consistent, then the real-time pictures of touch-screen will automatically be rotated by axle center of screen midpoint a default number of degrees be converted into
Few one default picture, in this way, can effectively solve user can not free switching screen horizontal/vertical screen display pattern the problem of, realize at any time
By effect of the autonomous toggle screen horizontal/vertical screen display pattern of user;When contact gesture and two finger contacts on touch-screen in holding
When row continuous contact movement clockwise is consistent, real-time degree of excursion of one of finger contact by axle center of screen midpoint is detected
Number, records the real-time mobile number of degrees, and control the real-time pictures of touch-screen automatic to right rotation institute by axle center of screen midpoint
The real-time mobile number of degrees are stated to be converted into corresponding real-time pictures, in this way, screen can be made by the control of user to cut
It is changed to oblique screen state and moves freely screen-picture, reaches the effect of mobile terminal screen picture is manipulated completely by user.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
His embodiment, belongs to protection scope of the present invention.
Below, the present invention describes a kind of technology for being used to control screen picture moving in the terminal, applied to shifting
Dynamic terminal, this method comprises the following steps:An at least contact gesture is obtained by touch-screen;Detect and recognize the contact
Whether gesture is consistent with an at least preparatory condition;If being consistent, in response to the preparatory condition, the real-time pictures of the touch-screen
A default number of degrees will be rotated automatically by axle center of screen midpoint and be converted at least one default picture.
In the following description, the mobile terminal includes smart mobile phone, tablet personal computer, PDA with touch-screen
(Portable Digital Assistant), audio layer -3(MP3)Deng.
[first embodiment]
Mobile phone will be applied in first embodiment of the invention in this way for example to be described, but will be not limited thereto.
Fig. 1 is refer to, Fig. 1 is the step flow chart based on gesture control screen-picture moving method of first embodiment of the invention.For
Effective solution user can not free switching screen horizontal/vertical screen display pattern the problem of, realize at any time by the autonomous toggle screen of user
Effect of horizontal/vertical screen display pattern, first embodiment of the invention provides a kind of side moved based on gesture control screen-picture
Method, applied to mobile terminal, specifically includes following steps:
Step 1, an at least contact gesture is obtained by touch-screen;
Step 2, detect and recognize whether the contact gesture is consistent with an at least preparatory condition;
Step 3, if being consistent, in response to the preparatory condition, the real-time pictures of the touch-screen will using screen midpoint as
Automatically the default number of degrees of rotation one are converted at least one default picture in axle center.
Specifically, wherein, the touch-screen, such as, but not limited to general electric resistance touch screen, capacitance touch screen, infrared ray
Touch-screen etc. will be capacitance touch screen using the touch-screen in the first embodiment of the invention to be for example illustrated, but not
As limit.The contact gesture is user by contacting the gesture that the touch screen surface is performed, such as when user's profit
When carrying out function with touch-screen and using, it is contact gesture in the action produced by screen surface.Further, the step
Preparatory condition described in rapid 2 is a default gesture, specially detects and recognizes whether the contact gesture is preset with described
Gesture is identical.
Also include step 0 before the step 1, pre-set data and parameter, the step 0 is specifically included:
In input preparatory condition, the default number of degrees and default picture in database, wherein, the preparatory condition includes first
Preparatory condition, the second preparatory condition any one or two kinds, first preparatory condition is:At least receive two finger contacts
Moved in performing continuous contact clockwise on touch-screen, second preparatory condition is:At least receive two finger contacts
Moved in performing continuous contact counterclockwise on touch-screen;Wherein, the default number of degrees are 90 degree;Wherein, the default picture
Including the first default picture, the second default picture any one or two kinds, the described first default picture is:Using screen midpoint as axle
The heart be rotated by 90 ° to the right automatically after state, the described second default picture is:It is automatic to anticlockwise 90 by axle center of screen midpoint
State after degree.
In the step 2, if detecting and recognizing that the contact gesture is not consistent with an at least preparatory condition, it will return
Return the step 1.
Specifically, in the first embodiment of the invention, the default number of degrees can be it is set in advance by software, such as 90
Degree, when implementing, can also provide the user modification entrance, so that user is described pre- to change by the modification entrance
If the number of degrees, such as user can be revised as 180 degree by the modification entrance by 90 degree.
In first preparatory condition, its specific action is:Two finger contacts are continuous clockwise in being performed on touch-screen
Contact is moved, when user's execution is acted, according to the custom of most people, described two preferably to be performed using the right hand
Finger contact can be the contact of the combinations such as thumb and forefinger, middle finger, the third finger, little finger, equally be alternatively forefinger with
The contact of the combination such as finger, the third finger, little finger, in the first embodiment of the invention by touching that preferably thumb is combined with middle finger
Point, so, the present invention is not limited to this.Specifically, its action is continuous clockwise in being performed on touch-screen with forefinger for thumb
Contact is moved, i.e., similar to be acted with knob, and its action need to only be performed in the touch screen surface.Described second presets
Specifically action in condition is same, simply changes moving direction, will no longer be repeated herein.
Further, the step 2 specifically includes following steps:
Step 21, detect and recognize the contact gesture received whether with two finger contacts in being held on touch-screen
Continuous contact movement is consistent row clockwise;And
Step 22, detect and recognize the contact gesture received whether with two finger contacts in being held on touch-screen
Continuous contact movement is consistent row counterclockwise.
Wherein, in the step 21, if detecting and identifying, the contact gesture received is touched with two fingers
In being performed on touch-screen clockwise, continuously contact movement is not consistent point, then will perform the step 22, if being consistent, will perform
The step 3;In the step 22, if detect and identify the contact gesture that receives and two finger contacts in
Continuous contact movement counterclockwise is performed on touch-screen not to be consistent, then will return to the step 21, if being consistent, will perform described
Step 3.
Further, the step 3 specifically includes following steps:
Step 31, when the contact gesture, in being performed on touch-screen clockwise, continuously contact is moved with two finger contacts
Dynamic when being consistent, the real-time pictures of the touch-screen will to the right be rotated by 90 ° to be converted into described the automatically using screen midpoint as axle center
One default picture;And
Step 32, when the contact gesture, in being performed on touch-screen counterclockwise, continuously contact is moved with two finger contacts
Dynamic when being consistent, the real-time pictures of the touch-screen will to the left be rotated by 90 ° to be converted into described the automatically using screen midpoint as axle center
Two default pictures.
Specifically, in the step 31, when the touch-screen is in real-time pictures state, it can be in main work(
Energy interface, or in other application program interface, the other application program interface can think the application of APP softwares
Interface, i.e., when the touch-screen is in free position, as long as detecting and identifying that the contact gesture is touched with two fingers
Point is consistent in performing continuous contact movement clockwise on touch-screen, then the real-time pictures of the touch-screen will using screen midpoint as
Axle center is rotated by 90 ° to the right to be converted into the described first default picture automatically.Further, it is however generally that, the touch-screen is being answered
It is mostly rectangle when on mobile terminal, thus it is in first embodiment of the invention that the shape of the touch-screen is preferred
But rectangle is not limited to, the screen midpoint can be the cornerwise intersection point of rectangle.Described first default picture be with
Screen midpoint is the state after axle center is rotated by 90 ° to the right automatically.The step 32 is identical with the step 31, has only and changes
The direction of rotation, herein will be without repeating.
Fig. 2 is refer to, Fig. 2 shows for the application based on gesture control screen-picture moving method of first embodiment of the invention
It is intended to.Figure center picture show the raw frames shown by touch-screen, you can be interpreted as being in real-time pictures state, square frame 1-
6 be to be shown in the particular contents of the real-time pictures, can be but be not limited to application icon.Further, first, will be in
An at least contact gesture is obtained on the touch-screen, will be detected after acquisition and recognize the contact gesture and two fingers
Detect in performing whether continuous contact movement clockwise is consistent on touch-screen and recognize whether user touches in described in contact
Whether the action that screen surfaces are performed meets first preparatory condition, if meeting, and the real-time pictures of the touch-screen will be with screen
Curtain midpoint is that axle center is rotated by 90 ° to the right so as to be converted into the first default picture automatically, as schemed shown in right picture, the real-time picture
The particular content square frame 1-6 in face is the picture for being rotated by 90 ° to the right to change into automatically using screen midpoint as axle center.Further
Ground, when detecting and recognizing that user closes first preparatory condition in the performance of a different dive that the touch screen surface is performed, then will connect
It is continuous to detect and recognize that continuously contact movement is the contact gesture in being performed on touch-screen counterclockwise with two finger contacts
It is no to be consistent, that is, detect and recognize whether whether the action performed in the touch screen surface meets the described second default bar to user
Part, if meeting, the real-time pictures of the touch-screen will to the left be rotated by 90 ° to be converted into automatically using screen midpoint as axle center
Second default picture, as schemed shown in left picture, the particular content square frame 1-6 of the real-time pictures is oneself by axle center of screen midpoint
The left-handed picture for turning 90 degrees to change into of trend.
[second embodiment]
Second embodiment of the invention is roughly the same with first embodiment, and difference is, in second embodiment of the invention
In, the default picture also includes a plurality of real-time pictures corresponding with a plurality of number of degrees units, i.e., each number of degrees correspondence one
Real-time pictures.For example, when the number of degrees be 45 degree, then its corresponding real-time pictures then be by raw frames by axle center of screen midpoint oneself
The picture that trend rotates 45 degree to change into.
Fig. 3 is refer to, Fig. 3 flows for second embodiment of the invention the step of being based on gesture control screen-picture moving method
Cheng Tu.Specifically, it comprises the following steps:
Step 10, an at least contact gesture is obtained by touch-screen;
Step 20, detect and recognize whether the contact gesture is consistent with the first preparatory condition;
Step 30, when the contact gesture, in being performed on touch-screen clockwise, continuously contact is moved with two finger contacts
It is dynamic when being consistent, detect the real-time mobile number of degrees of one of finger contact by axle center of screen midpoint;
Step 40, the real-time mobile number of degrees are recorded, and control the real-time pictures of the touch-screen using screen midpoint as axle
The heart it is automatic to described in right rotation in real time the mobile number of degrees to be converted into the corresponding real-time pictures.
Specifically, in the step 20, if the contact gesture for detecting and identifying not with the first preparatory condition
It is consistent, i.e., in being performed on touch-screen clockwise, continuously contact movement is not consistent described contact gesture with two finger contacts
When, then step 50 will be performed, detects and recognizes whether the contact gesture is consistent with the second preparatory condition;If being consistent, hold
Row step 60, detects the real-time mobile number of degrees and step 70 of one of finger contact by axle center of screen midpoint, records institute
The mobile number of degrees in real time are stated, and control the real-time pictures of the touch-screen automatic to real-time described in anticlockwise by axle center of screen midpoint
The mobile number of degrees are to be converted into the corresponding real-time pictures, if the contact gesture and the second preparatory condition not phase
Symbol, then return to the step 10.
Fig. 4 is refer to, Fig. 4 shows for the application based on gesture control screen-picture moving method of second embodiment of the invention
It is intended to.Figure center picture show the raw frames shown by the touch-screen, you can be interpreted as being in real-time pictures state, side
Frame 1-6 is the particular content for being shown in the real-time pictures, can be but be not limited to application icon.Specifically, first, will
In obtaining an at least contact gesture on the touch-screen, it will be detected after acquisition and recognize the contact gesture and two hands
Refer to contact in performing whether continuous contact movement clockwise is consistent on touch-screen, that is, detect and recognize whether user touches in described
Whether the action for touching screen surfaces execution meets first preparatory condition, if meeting, detects one of finger contact to shield
Curtain midpoint is the real-time mobile number of degrees in axle center, that is, detects one of finger contact using the degree of screen midpoint camber line drawn by axle center
Number, the contact referred in will being preferably in second embodiment of the invention, so, the present invention is not limited to this.Further, detecting is worked as
Recorded after to the real-time mobile number of degrees, and control the real-time pictures of the touch-screen by axle center of screen midpoint from
The number of degrees are moved described in trend right rotation in real time to be converted into the corresponding real-time pictures.As schemed shown in right picture, institute
The particular content for stating real-time pictures is automatic to the real-time mobile number of degrees described in right rotation so as to change into by axle center of screen midpoint
Picture.The step and method rotated to be shown in a figure left side herein will be without repeating.
[3rd embodiment]
Fig. 5 is refer to, Fig. 5 flows for third embodiment of the invention the step of being based on gesture control screen-picture moving method
Cheng Tu.Third embodiment of the invention is roughly the same with first embodiment and second embodiment, and difference is, in the present invention
In 3rd embodiment, this method also includes:
Step 100, an at least contact gesture is obtained by touch-screen;
Step 200, detect and recognize whether the contact gesture is at least one finger contact in being contacted on touch-screen
Formula is slided;
Step 300, if so, then controlling the real-time pictures of the touch-screen to be moved along the sliding trace.
Specifically, in the step 200, do not touched if detecting and identifying the contact gesture at least one finger
Point is slided in contact on touch-screen, then returns to the step 100.
The finger contact can be one, or a plurality of, the invention is not restricted to this.Further, the step
Sliding trace described in rapid 300 includes direction of displacement and shift length, i.e., when detecting and recognize the contact gesture for extremely
A few finger contact then touches the real-time pictures for controlling the touch-screen along the finger when contact on touch-screen is slided
Point is slided in direction of displacement and shift length on the touch-screen.
Fig. 6 is refer to, Fig. 6 shows for the application based on gesture control screen-picture moving method of third embodiment of the invention
It is intended to.Figure center picture show the raw frames shown by the touch-screen, you can be interpreted as being in real-time pictures state, side
Frame 1-6 is the particular content for being shown in the real-time pictures, can be but be not limited to application icon.Specifically, first, will
In obtaining an at least contact gesture on the touch-screen, will be detected after acquisition and recognize the contact gesture whether be to
A few finger contact is slided in contact on touch-screen, if so, then controlling the real-time pictures of the touch-screen to be slided along described
Move track.It is the finger contact in performing contact slip to the left on touch-screen as schemed shown in left picture, so as to control institute
The real-time pictures for stating touch-screen are slided form to the left.As schemed shown in right picture, be the finger contact in performed on touch-screen to
Right contact is slided, and is formed so as to control the real-time pictures of the touch-screen to slide to the right.Equally, picture institute on figure and under figure
Show, being the finger contact slides in performing upward and downward contact on touch-screen, so as to control the reality of the touch-screen
When picture upwards and slide downward form.
You need to add is that, when detecting the contact gesture stopping slip, then it will control the reality of the touch-screen
When picture stop sliding stop.I.e. user stops at when the contact is performed on the touch-screen sliding, the touch-screen it is real-time
Picture stop sliding stop.
The achievable advantages below of the present invention:
By the present invention, when detecting and identify contact gesture and at least a preparatory condition is consistent, then touch-screen
Real-time pictures will rotate a default number of degrees automatically by axle center of screen midpoint and be converted at least one default picture, in this way, can be effective
Solve user can not free switching screen horizontal/vertical screen display pattern the problem of, realize at any time by the autonomous toggle screen horizontal/vertical screen of user
Effect of display pattern;When contact gesture with two finger contacts in the continuous contact mobile phase clockwise of execution on touch-screen
Fu Shi, detects the real-time mobile number of degrees of one of finger contact by axle center of screen midpoint, records the real-time mobile number of degrees,
And control the real-time pictures of touch-screen by axle center of screen midpoint it is automatic to described in right rotation in real time the mobile number of degrees be converted into
Corresponding real-time pictures, in this way, screen can be made by the control of user to switch to oblique screen state and move freely
Screen-picture, reaches the effect of mobile terminal screen picture is manipulated completely by user.
It should be noted that the embodiments of the present invention are for illustration only, the quality of embodiment is not represented.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Lid is within the scope of the present invention.Therefore, protection scope of the present invention should be defined by the protection domain of the requirement.