1. Technical Field
The present disclosure relates to electronic devices, and particularly to an electronic device and a method for adjusting a display scale of images.
2. Description of Related Art
In prior art, a multi-touch technology is usually used to enlarge or reduce a display scale of an image which is displayed on a touch screen. However, the multi-touch technologies need more than one fingers to achieve, it is inconvenient for user when only one finger is free.
Therefore, what is needed is an electronic device and a method for adjusting a display scale of images to overcome the above described limitations.
In a first embodiment, the processing unit 30 includes a sliding operation determining module 33, a determining module 36, and a scale adjusting module 37 which are a collection of software instructions and executed by the processing unit 30. In one embodiment, the sliding operation defines an operation which slides on the display module 20 in only one direction. The sliding operation determining module 33 determines whether there is a sliding operation on the display unit 20 when there is an image being displayed on the display unit 20. The determining module 36 determines a sliding direction and a sliding track of the sliding operation when the sliding operation is on the display unit 20. The scale adjusting module 37 adjusts the display scale of the image on the display unit 20 based on the determined sliding direction and the sliding track of the sliding operation. In one embodiment, the scale adjusting module 37 determines an adjusting manner such as, enlarging or reducing the image, based on the sliding direction, determines an adjusting scale based on the sliding track, and adjusts the display scale of the image based on the determined adjusting manner and the adjusting scale.
In a second embodiment, the processing unit 30 includes a touching operation determining module 31 and a duration determining module 32 which are collection of software instructions and executed by the processing unit 30. The touching operation determining module 31 determines whether there is a touching operation on the display unit 20 when the image is displayed on the display unit 20. The duration determining module 32 determines a duration of the touching operation on the display unit 20, and determines whether the duration exceeds a predetermined duration when the touching operation is on the display unit 20. The sliding operation determining module 33 determines whether there is the sliding operation when the duration of the touching operation on the display unit 20 exceeds the predetermined duration. As shown in
In a third embodiment, the processing unit 30 further includes a beginning point determining module 35 and a moving module 310 which are collection of software instructions and executed by the processing unit 30. The beginning point determining module 35 determines a beginning point of the sliding operation, and determines whether or not the beginning point is one of a number of predetermined beginning points on the display unit 20 after the determining module 36 determines the sliding direction and the sliding track of the sliding operation. The scale adjusting module 37 adjusts the display scale of the image 3 on the display unit 20 based on the sliding direction and the sliding track when the beginning point is one of the number of the predetermined beginning points. The moving module 310 moves the image on the display unit 20 based on the sliding direction and the sliding track of the sliding operation when the beginning point is not one of the number of the predetermined beginning points.
The processing unit 30 further includes a scale determining module 38, a display module 34, and a recording module 39 which are a collection of software instructions executed by the processing unit 30. The scale determining module 38 determines whether the display scale of the image is greater than a display scale of the display unit 20. The display module 34 displays a visual window 4 on the display unit 20 when the display scale of the image is greater than the display scale of the display unit 20. As shown in
The sliding operation determining module 33 determines whether there is a sliding operation on the display unit 20 when the display scale of the image is greater than the display scale of the display unit 20. The determining module 36 determines the sliding direction and the sliding track of the sliding operation. The beginning point determining module 35 determines whether the beginning point is one of the number of the predetermined beginning points after the sliding direction and the sliding track of the sliding operation is determined. The scale adjusting module 37 adjusts the display scale of the portion of the image which is visible on the display unit 20 based on the determined sliding direction and the sliding track when the beginning point is one of the number of the predetermined beginning points. The moving module 310 moves the image on the display unit 20 based on the determined sliding direction and the sliding track when the beginning point is not one of the number of the predetermined beginning points. For example, when the display scale of the image 3 is greater than the display scale of the display unit 20, the display scale of the portion of the image which is visible on the display unit 20 is adjusted from 125% to 175%, and the display scale of the portion of the image which is hidden by the display unit 20, maintains 125%. During the process of adjusting the display scale of the image, the visual window 4 records the adjusted display scale of the portion of the image which is visible on the display unit 20 on the first portion 42, and records the display scale of the remaining portion of the image which is invisible on the second portion 41. Furthermore, the display scale of the first portion 42 and the second portion 41 of the contracted image on the visual window 4 will change based on the change of the display scale of the image 3 on the display unit 20.
The display module 34 further displays each portion of the contracted image on the display unit 20 based on the recorded display scale when the user touches the contracted image on the visual window 4.
In step S601, the sliding operation determining module 33 determines whether the sliding operation is on the display unit 20 when the image is displayed on the display unit 20. If so, the procedure goes to step S602, otherwise, the procedure goes to step S601.
In step S602, the determining module 36 determines the sliding direction and the sliding track of the sliding operation.
In step S603, the scale adjusting module 37 adjusts the display scale of the image on the display unit 20 based on the determined sliding direction and the sliding track of the sliding operation.
The method can further includes the following steps: the touching operation determining module 31 determines whether the touching operation is on the display unit 20 when the image is displayed on the display unit 20; the duration determining module 32 determines the duration of the touching operation on the display unit 20, and determines whether the duration exceeds the predetermined duration when the touching operation is on the display unit 20; and the sliding operation determining module 33 determines whether the sliding operation is on the display unit 20 when the duration of the touching operation exceeds the predetermined duration.
The method further can also includes the following steps: the beginning points determining module 35 determines whether the beginning point of the sliding operation is one of the number of predetermined beginning points after the determining module 36 determines the sliding direction and the sliding track of the sliding operation; the scale adjusting module 37 adjusts the display scale of the image based on the determined sliding direction and the sliding track of the sliding operation when the beginning point is one of the number of the predetermined beginning points; and the moving module 310 moves the image based on the sliding direction and the sliding track of the sliding operation when the beginning point is not one of the number of predetermined beginning points.
In step S701, the scale determining module 38 determines whether the display scale of the image is greater than the display scale of the display unit 20, if yes, the procedure goes to step S702, if no, the procedure goes to step S701.
In step S702, the display module 34 displays the visual window 4 on the display unit 20.
In step S703, the sliding operation determining module 33 determines whether there is a sliding operation. If so, the procedure goes to step S704, otherwise, the procedure goes to step S703.
In step S704, the determining module 36 determines the sliding direction and the sliding track of the sliding operation.
In step S705, the beginning point determining module 35 determines whether the beginning point is one of the number of predetermined beginning points. If so, the procedure goes to step S706, otherwise, the procedure goes to S707.
In step S706, the scale adjusting module 37 adjusts the display scale of the image which is visible on the display unit 20 based on the sliding direction and the sliding track of the sliding operation.
In step S707, the moving module 310 moves the image on the display unit 22 based on the sliding direction and the sliding track of the sliding operation.
The method can further include the display module 34 displaying each portion of the contracted image on the display unit 20 based on the recorded display scale in response to the touching operation on the contracted image on the visual window 4.
Although various embodiments have been specifically described, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
102115534 | Apr 2013 | TW | national |