Method for zooming picture with single key

Information

  • Patent Grant
  • 8866973
  • Patent Number
    8,866,973
  • Date Filed
    Wednesday, November 20, 2013
    11 years ago
  • Date Issued
    Tuesday, October 21, 2014
    10 years ago
Abstract
A method for zooming a picture on a display without a touchscreen is disclosed. The method 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 (x, y) in the perpendicular coordinate system; 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 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 is defined as a simulated operating distance; and; and f) creating a zoom event object corresponding to the simulated operating distance.
Description
BACKGROUND OF THE INVENTION

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.


SUMMARY OF THE INVENTION

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.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic view showing a handheld computer connected to a TV set;



FIG. 2 is a flowchart of the invention;



FIG. 3 is a schematic view showing the method of the invention; and



FIG. 4 is a schematic view showing a simulated zooming operation.





DETAILED DESCRIPTION OF THE INVENTION

Please refer to FIGS. 1 and 2. In step S1, a handheld computer 2, such as a smartphone or tablet computer, is electrically connected to a display 1 such as a TV set or monitor for outputting video signals to the display 1. The handheld computer 2 is installed with an application which makes an intermediary control between the handheld computer 2 and the display 1. Thus, as shown in FIG. 2, the display 1 can show a picture 11 from the handheld computer 2. The application adds a zoom-in key 111 and a zoom-out key 112 superposed on the picture 11, which are virtual and clickable.


Please refer to FIG. 3. In step S2, the application defines a rectangular coordinate system in the picture 11. The rectangular coordinate system is composed of an x-axis, a y-axis and an origin O. The origin O is located at the center of the picture 11. Next, in step S3, the application defines the positions of the zoom-in key 111 and zoom-out key 112 as a point P and a point R in the perpendicular coordinate system, respectively. And the application defines coordinates of the points P and R as (x1, y1) and (x2, y2), respectively. In step S4, the application draws a line L1 through the point P and a reflection point Q at (−x1, −y1) and another line L2 through the point R and another reflection point S at (−x2, −y2).


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 FIG. 4, the application simulates a pinch-to-zoom-in operation when the zoom-in key 111 is continuously clicked or pressed, and the distance 2d1 is equivalent to an operating distance of a pinch-to-zoom-in operation. Similarly, the application simulates a pinch-to-zoom-out operation when the zoom-out key 112 is continuously clicked or pressed, and the distance 2d2 is equivalent to an operating distance of a pinch-to-zoom-out operation. The operating distance will determine a zooming ratio. The larger the operating distance is, the larger the zooming ratio is. As a result, the method of the invention can simulate a pinch-to-zoom function only with clicking a single virtual key, just like operating on a multi-touch screen.


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.

Claims
  • 1. A method for zooming picture with a single key, comprising the steps of: a) connecting a handheld computer to a display and displaying a picture from the handheld computer and a zoom key superposed on the picture;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 is defined as an imaginary operating distance; andf) creating a zoom event object corresponding to the imaginary operating distance.
  • 2. The method of claim 1, wherein the zoom key is a zoom-in key.
  • 3. The method of claim 2, wherein the step f) is to create a zoom-in event object.
  • 4. The method of claim 1, wherein the zoom key is a zoom-out key.
  • 5. The method of claim 2, wherein the step f) is to create a zoom-out event object.
  • 6. The method of claim 1, wherein the distance d is determined by counts of continuously repeatedly clicking the zoom key.
  • 7. The method of claim 1, wherein the distance d is determined by a time period of continuously pressing the zoom key.
RELATED APPLICATIONS

This application claims priority to provisional applications U.S. 61/902,162, filed Nov. 9, 2013.

US Referenced Citations (5)
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
Provisional Applications (1)
Number Date Country
61902162 Nov 2013 US