1. Field of the Invention
The present invention relates to a method for entering a command for zooming image shown in a touch screen and a touch screen reading such command.
2. Description of Related Art
A conventional method for zooming image shown in a touch screen is disclosed in U.S. Pat. No. 7,864,161 B2 issued to Hollemans. To operate the command of zooming the image usually needs two fingers to move on the touch screen. However, it is not quite convenient to operate and a more expensive capacitive touch screen is needed to read such command.
U.S. Patent Application publication No. 2006/0026536A1 relates to gesturing associated with touch sensitive devices and mentions that a wide range of different gestures can be utilized. The gestures may be single point or multipoint gestures; static or dynamic gestures; continuous or segmented gestures; and/or the like. Single point gestures are those gestures that are performed with a single contact point, e.g., the gesture is performed with a single touch as for example from a single finger, a palm or a stylus. During a zooming gesture, the fingers may spread apart or close together in order to cause the object shown on the screen or a separate display to zoom in during the spreading and zoom out during the closing. During this operation, the computer system recognizes the user input as a zoom gesture, determines what action should be taken, and outputs control data to the appropriate device.
There is a need to provide a method for conveniently executing a command for zooming image in a touch screen.
An object of the present invention is to provide a method for zooming image shown in a touch screen under a command being entered by a continuous writing locus of one stylus thereon. The method comprises the following steps: reading information of times and positions of a plurality of discrete points in a continuous writing locus formed on the touch screen by a stylus; selecting a first group of points in the writing locus formed at an earlier first time and a second group of points in the writing locus formed at a later second time; dealing with the first group of points and obtaining a first radius approximating to a radius at one point of the first group, dealing with the second group of points in the writing locus and obtaining a second radius approximating to a radius at one point of the second group; comparing the first radius and the second radius to define a zooming command; executing the zooming command.
Another object of the present invention is to provide a touch screen device being able to translate a continuous writing locus of one stylus thereon into command of zoom image shown therein. The touch screen comprises: a touch screen that can read information of times and positions of discrete points disposed in a writing locus when one stylus writes on the touch screen continuously; a process unit being loaded with a software to get radius at the discrete points in the writing locus, and define a zooming command according to the radius of curvature.
Other objects, advantages and novel features of the invention will become more apparent from the following detailed description of a preferred embodiment when taken in conjunction with the accompanying drawings.
Reference will now be made to the drawing figures to describe the present invention in detail.
As is defined in geometry, the radius of curvature of a curve at a point is a measure of the radius of the circular arc which best approximates the curve at that point. A method for zooming image shown in a touch screen is provided, implemented as a zooming command entered by a continuous writing locus of a stylus on the touch screen. The method comprises the following steps:
(1) reading information of times and positions of a plurality of discrete points in a continuous writing locus formed on the touch screen by a stylus;
(2) selecting a first group of points in the writing locus formed at an earlier first time and a second group of points in the writing locus formed at a later second time;
(3) calculating, from the first group of points, a first radius approximating to a radius of curvature at one point of the first group and, from the second group of points in the writing locus, a second radius approximating to a radius of curvature at one point of the second group;
(4) comparing the first radius and the second radius to define a zooming command in the following way: if the second radius of curvature were greater than the first radius of curvature, the zooming command is zooming in the image shown in the touch screen; if the second radius of curvature were less than the first radius of curvature, the zooming command is zooming out the image shown in the touch screen;
(5) executing the zooming command.
During step (1), referring to
During step (2), a first group of points of P1, P2 and P3 and a second group of points of P2, P3 and P4 in the writing locus are chosen.
During step (3), the first group of points of P1, P2 and P3 determine a first radius R1 of a common imaginary circle CR1 in which the first group of points are disposed. The second group of points of P2, P3 and P4 determine a second radius R2 of a common imaginary circle CR2 in which the second group of points are disposed. The positions of the center points of the common imaginary circles CR1 and CR2 are (XC1, YC1) and (XC2, YC2). Two groups of equations respectively shown in
When a user of a touch screen needs to zoom an image shown in the touch screen, he/she just needs to write a continuous writing locus with a stylus on the touch screen and a number of commands for zooming the image shown in the touch screen would be executed. When the image shown in the touch screen is needed to be zoomed in, the stylus is operated to move on the touch screen along an involute (referring to
Additionally, in order to improve accuracy of the command, the points at the end of the locus could be discarded, and if a number of commands were entered in a continuous writing locus, a single command different from the others is discarded and not executed.
In an alternative embodiment, the software is so configured that if the stylus is routed along a continuous curved locus clockwise, commands of zooming in are executed, and if the stylus is routed along a continuous locus anticlockwise, commands of zooming out are executed, and vice versa.
Number | Date | Country | Kind |
---|---|---|---|
099143118 | Dec 2010 | TW | national |