CPC G06F 3/04883 (2013.01) [G06F 3/04845 (2013.01)] | 16 Claims |
1. A display apparatus, comprising:
a display, configured to display an image and/or user interface;
a touch component, configured to detect a touch track input from a user;
a memory, configured to store data associated with the display and computer instructions;
at least one processor in connection with the display, the touch component and the memory and configured to execute the computer instructions to cause the display apparatus to:
generate a first rotation angle based on a rotation gesture formed by contacting the display with at least two fingers of the user and moving at least one finger, wherein the first rotation angle is a rotation angle of the rotation gesture;
upon receiving the rotation gesture formed by contacting the display, obtain an aspect ratio of the display and, an aspect ratio and an initial diagonal value of an image initially displayed on the display;
draw a rotated image according to the first rotation angle of the rotation gesture, to cause the first rotation angle to associate with a second rotation angle of the rotated image, wherein at least one processor is further configured to cause the display apparatus to:
calculate a current diagonal value according to:
the first rotation angle of the rotation gesture,
an angle between a diagonal line and a width line of the rotated image, and
a height of the display, or a width and the height of the display, based on a comparison between the aspect ratios of the display and the image; and
according to the initial diagonal value and the current diagonal value, calculate a scaling factor for reducing or enlarging the image; and
control the display to present the rotated image.
|