1. Technical Field
The invention relates to showing of a picture on a display, particularly to zooming in or out the picture with a touchscreen.
2. Related Art
Almost all smartphones and tablet computers are provided with a multi-touch screen. Such a multi-touch screen possesses a touch sensing surface's (trackpad or touchscreen) ability to recognize the presence of two or more points of contact with the surface. This plural-point awareness is often used to implement advanced functionality such as pinch to zoom or activating predefined programs. The pinch-to-zoom function is very useful in browsing pictures or web pages.
In recent years, some users prefer to connect their smartphones or tablets to a large-sized TV set or monitor for enlarging the picture. However, almost all TV sets and monitors are not provided with a touchscreen. Thus the pinch-to-zoom function cannot be performed on a TV set or monitor once a smartphone or tablet has been connected to the TV set or monitor. This will really cause inconvenience to users who are used to browse pictures of smartphones or tablets on a TV set.
An object of the invention is to provide method for zooming a picture with a single key, which can simulate a pinch-to-zoom function only with clicking a single virtual key.
To accomplish the above object, the method of the invention includes the steps of: a) displaying a picture and a zoom key on a screen; b) defining a rectangular coordinate system in the picture with an origin at a center of the picture; c) defining the zoom key as a point P in the perpendicular coordinate system and defining coordinates thereof as (x, y); d) drawing a line through the point P and a reflection point Q at (−x, −y); e) defining points Q1 and Q2 on the line beside the point Q, wherein the point Q1 is between the origin and the point Q, the point Q is between the points Q1 and Q2, a distance d between the points Q and Q1 is the same as that between the points Q and Q2, and double the distance d (2d) is defined as a simulated operating distance; and; and f) creating a zoom event object corresponding to the simulated operating distance.
Please refer to
Please refer to
Next, in step S5, the application defines two points Q1 and Q2 on the line L1 beside the point Q, wherein the point Q1 is between the origin O and the point Q, the point Q is between the points Q1 and Q2, and a distance d1 between the points Q and Q1 is the same as that between the points Q and Q2. Identically, the application defines two points S1 and S2 on the line L2 beside the point S, wherein the point S1 is between the origin O and the point S, the point S is between the points S1 and S2, and a distance d2 between the points S and S1 is the same as that between the points S and S2. The distances d1 and d2 may be determined by the counts of continuously clicking the zoom-in key 111 or zoom-out key 112 in a short period of time, or determined by the time period of continuously pressing the zoom-in key 111 or zoom-out key 112. Double the distance d1 or d2 (2d1 or 2d2) is defined as a simulated operating distance. In detail, the more the counts of continuously clicking the zoom-in key 111 or zoom-out key 112 is or the longer the time period of continuously pressing the zoom-in key 111 or zoom-out key 112 is, the longer the distance d1 or d2 is. That is to say, the distance d1 or d2 is directly proportional to the counts of continuously clicking the zoom-in key 111 or zoom-out key 112 or the time period of continuously pressing the zoom-in key 111 or zoom-out key 112.
Finally, in step S6, the application creates a zoom event object corresponding to the simulated operating distance. The zoom event object will zoom in or out the picture 11 with centering on the origin according to a length of 2d1 (double d1) or 2d2 (double d2). In other words, as shown in
It will be appreciated by persons skilled in the art that the above embodiment has been described by way of example only and not in any limitative sense, and that various alterations and modifications are possible without departure from the scope of the invention as defined by the appended claims.
This application claims priority to provisional applications U.S. 61/902,162, filed Nov. 9, 2013.
Number | Name | Date | Kind |
---|---|---|---|
8731824 | Alaniz et al. | May 2014 | B1 |
20040046796 | Fujita | Mar 2004 | A1 |
20100017112 | Sim | Jan 2010 | A1 |
20120303629 | Klein et al. | Nov 2012 | A1 |
20130150093 | Seol et al. | Jun 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
61902162 | Nov 2013 | US |