CPC G09G 5/005 (2013.01) [G09G 5/006 (2013.01); G09G 2340/0407 (2013.01); G09G 2340/0442 (2013.01)] | 11 Claims |
1. A display terminal adjustment method implemented on the display terminal, comprising:
obtaining image data of an image to be displayed and screen data of the display terminal, wherein the image data comprises an image size, and the screen data comprises a screen size;
obtaining a first adjustment ratio and a second adjustment ratio according to the image size and the screen size, wherein the first adjustment ratio is an adjustment ratio corresponding to the display terminal in a first display mode, and the second adjustment ratio is an adjustment ratio corresponding to the display terminal in a second display mode;
adjusting the image to be displayed to obtain a first target image according to the first adjustment ratio, and adjusting the image to be displayed to obtain a second target image according to the second adjustment ratio; and
adjusting the display terminal to be displayed in a target display mode according to the first target image and the second target image, wherein the target display mode is the first display mode or the second display mode;
wherein the image size comprises an original image height and an original image width, and the screen size comprises an original screen height and an original screen width;
said obtaining the first adjustment ratio and the second adjustment ratio according to the image size and the screen size comprises:
determining a first candidate ratio according to the original screen height and the original image height, and determining a second candidate ratio according to the original screen width and the original image width;
determining the first candidate ratio as the first adjustment ratio if the first candidate ratio is less than or equal to the second candidate ratio; or determining the second candidate ratio as the first adjustment ratio if the first candidate ratio is greater than the second candidate ratio; and
determining a third candidate ratio according to the original screen width and the original image height, and determining a fourth candidate ratio according to the original screen height and the original image width;
determining the third candidate ratio as the second adjustment ratio if the third candidate ratio is less than or equal to the fourth candidate ratio; or determining the fourth candidate ratio as the second adjustment ratio if the third candidate ratio is greater than the fourth candidate ratio;
wherein said adjusting the display terminal to be displayed in the target display mode according to the first target image and the second target image comprises:
obtaining a first image area corresponding to the first target image and a second image area corresponding to the second target image;
determining whether the second image area is greater than the first image area; and
adjusting the display terminal to be in the second display mode if the second image area is determined as being greater than the first image area; or
adjusting the display terminal to be in the first display mode if the second image area is determined as being smaller than or equal to the first image area.
|