Summary of the invention
In order to solve the problem that exists in the background technology, the invention provides a kind of image zooming mode that can be fit to the mobile terminal screen size, and take full advantage of the method for the valid pixel demonstration image of screen, described technical scheme is as follows:
The invention provides a kind of method that shows image, may further comprise the steps:
Receive triggering command, described triggering command is used for opening image;
According to the described triggering command that receives, described image is in proportion according to display window carries out convergent-divergent, and demonstration scaled images all over the screen.
Preferably, the image of opening is carried out convergent-divergent according to the ratio of display window, and demonstration scaled images all over the screen, comprising:
Judge the described size of images size of opening and the magnitude relationship of display screen display window;
When described picture size size during less than the display window of described display screen, according to the amplification that is in proportion of display window, and the image of demonstration all over the screen after amplifying;
When described picture size size is not less than the display window of described display screen, dwindle according to being in proportion of display window, and the image of demonstration all over the screen after dwindling.
Preferably, when described picture size size during less than the display window of described display screen, amplify according to the ratio of display window, and after the described image of demonstration all over the screen, comprising:
Obtain first touch control operation, described first touch control operation is used for recovering described image original size;
According to described first touch control operation that obtains, calculate the original size size of described image;
According to the original size size of the described image that calculates, in described display window, show the image of original size size.
More preferably, when described picture size size during less than the display window of described display screen, amplify according to the ratio of display window, and after the described image of demonstration all over the screen, also comprise:
Obtain second touch control operation, described second touch control operation is used for amplifying described image according to setting multiple; Wherein, described setting multiple is set according to the pixel of described image and the display parameter of described display screen;
According to described second touch control operation that obtains, the image after amplifying is shown in described display window.
Preferably, when described picture size size is not less than the display window of described display screen, dwindle according to being in proportion of display window, and after the image of demonstration all over the screen after dwindling, comprising:
Obtain first touch control operation, described first touch control operation is used for recovering described image original size;
According to described first touch control operation that obtains, calculate the original size size of described image;
According to the original size size of the described image that calculates, in described display window, show the image of original size size.
More preferably, when described picture size size is not less than the display window of described display screen, dwindle according to being in proportion of display window, and after the image of demonstration all over the screen after dwindling, comprising:
Obtain the 3rd touch control operation, described the 3rd touch control operation is used for according to setting the multiple threshold value amplification described image less with setting multiple; Wherein, described setting multiple threshold value is set according to the pixel of described image and the display parameter of described display screen;
Size after described image amplifies according to described setting multiple is during less than the size after amplifying according to described setting multiple threshold value, and according to described the 3rd touch control operation that obtains, the image after will amplifying according to described setting multiple be shown in described display window;
When the size after described image amplifies according to described setting multiple is not less than according to the size after the described setting multiple threshold value amplification, according to described the 3rd touch control operation that obtains, the image after will amplifying according to described setting multiple threshold value is shown in described display window.
The present invention also provides a kind of portable terminal, comprising:
Receiving element is used for receiving triggering command, and described triggering command is used for opening image;
Display unit is used for according to the described triggering command that receives, and described image is in proportion according to display window carries out convergent-divergent, and demonstration scaled images all over the screen.
Preferably, described display unit comprises:
Judge module is used for judging the described size of images size of opening and the magnitude relationship of display screen display window;
Display module is used for when described picture size size during less than the display window of described display screen, according to the amplification that is in proportion of display window, and the image after the demonstration all over the screen amplification; And be used for when described picture size size is not less than the display window of described display screen, dwindling according to being in proportion of display window, and the image of demonstration all over the screen after dwindling.
More preferably, also comprise:
Acquiring unit is used for obtaining first touch control operation, and described first touch control operation is used for recovering described image original size;
Computing unit is used for calculating the original size size of described image according to described first touch control operation that obtains;
Wherein, described display unit also is used for the original size size according to the described image that calculates, and shows the image of original size size in described display window.
Further, described acquiring unit also is used for obtaining second touch control operation, and described second touch control operation is used for amplifying described image according to setting multiple; Wherein, described setting multiple is set according to the pixel of described image and the display parameter of described display screen;
Described display unit also is used for according to described second touch control operation that obtains, and the image after amplifying is shown in described display window.
Further, described acquiring unit also is used for obtaining the 3rd touch control operation, and described the 3rd touch control operation is used for according to setting the multiple threshold value amplification described image less with setting multiple; Wherein, described setting multiple threshold value is set according to the pixel of described image and the display parameter of described display screen;
Described display unit, also be used for size after described image amplifies according to described setting multiple less than according to the size after the described setting multiple threshold value amplification time, according to described the 3rd touch control operation that obtains, the image after will amplifying according to described setting multiple is shown in described display window; And
Described display unit, when also being not less than according to the size after the described setting multiple threshold value amplification for the size after described image amplifies according to described setting multiple, according to described the 3rd touch control operation that obtains, the image after will amplifying according to described setting multiple threshold value is shown in described display window.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
For some images littler than display screen, the user need see the original size of image, and be not only the enlarged image of full screen display, can realize checking original image less than screen size by first touch control operation by the inventive method and portable terminal.
In addition, for surpassing three times of big images of screen than former figure, also solved the original size that can't be amplified to this image, influence the user to the problem of the judgement of picture size, and when image was big, when there is no need to be amplified to three times big or small of former figure, the present invention can carry out intelligence according to the size of the pixel size of image and display screen and amplify selection, do not need to be amplified to by force three times of images, solved to the user yet and brought the problem that produces a lot of noises when checking enlarged image.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing, and obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtain under the creative work prerequisite.
As shown in Figure 1, the embodiment of the invention provides a kind of method that shows image, may further comprise the steps:
Step 101: receive triggering command, described triggering command is used for opening image;
Step 102: according to the described triggering command that receives, described image is in proportion according to display window carries out convergent-divergent, and demonstration scaled images all over the screen.
Preferably, the image of opening is carried out convergent-divergent according to the ratio of display window, and demonstration scaled images all over the screen, may further comprise the steps:
Judge the described size of images size of opening and the magnitude relationship of display screen display window;
When described picture size size during less than the display window of described display screen, according to the amplification that is in proportion of display window, and the image of demonstration all over the screen after amplifying;
When described picture size size is not less than the display window of described display screen, dwindle according to being in proportion of display window, and the image of demonstration all over the screen after dwindling.
Generally speaking, when browsing an image, image directly can be opened, original image shows and display window, but for convenience the user can better check picture, and the arranging of the present invention's acquiescence opened the display window size that is set at according to display screen with image and fully supported screen display and check to the user.
Wherein as shown in Figure 2, be that 1280*720 is example with the screen size, the display interface of image during default conditions that embodiment one provides, provided among the figure when size of images size during less than display screen, for example 720<and long limit<1280, and minor face<720 o'clock are when picture is vertical or horizontal demonstration, acquiescence fully supports display image screen when opening, be divided into vertical screen display interface again and laterally shield display interface; In addition just like long limit<720, and minor face<720 o'clock, acquiescence fully supporting display image screen when opening, be divided into vertical screen display interface again and laterally shield display interface.
When receiving triggering command, described triggering command is used for opening image, can be to choose the click of the image for the treatment of preview or instruction such as pull, and shows described image according to the triggering command that receives.Further, need before showing image, carry out the judgement of picture size size and display window magnitude relationship, because each size of images varies in size, so need carry out the scaling operation to image, the scaling multiple calculates acquisition according to the size of display screen, when judging the size of images size less than the display window size, according to the amplification that is in proportion of display window, and the image after the demonstration all over the screen amplification.
The enlargement factor of corresponding image is calculated according to picture size size and the size of display window, and the length of side of corresponding image or minor face all need to amplify with the big or small equal proportion of display window, fully supports screen in a certain direction of display window and is as the criterion.
As shown in Figure 3, the display interface of image during the default conditions that provide for the embodiment of the invention two, provided among the figure when picture size is big or small more than or equal to display screen, also be that acquiescence fully supports screen display interface when opening, comprising long limit〉1280 and 816〉minor face〉720 o'clock, vertically reach horizontal demonstration at display screen, and when long limit〉1280 and minor face<720 the time, when being horizontal and vertical, former figure vertically reaches horizontal demonstration at display screen respectively, and long limit<1280 and 816〉minor face〉720 o'clock, vertically reach horizontal demonstration at display screen.
When receiving triggering command, described triggering command can be to click or pull image to be surveyed, according to the described triggering command that receives, the image of choosing is in proportion according to display window carries out convergent-divergent, and demonstration scaled images all over the screen.
Further, when showing image, need to judge the magnitude relationship of picture size size and display window, be not less than when judging the picture size size, during just more than or equal to the display window of described display screen, dwindle according to being in proportion of display window, and the image of demonstration all over the screen after dwindling.
The minification of correspondence image calculates according to picture size size and the size of display window, and the length of side of corresponding image or minor face all need the big or small scaled down with display window, fully supports screen in a certain direction of display window and is as the criterion.
As shown in Figure 4, a kind of method flow diagram that shows image that provides for the embodiment of the invention one,
When described picture size size during less than the display window of described display screen, amplify according to the ratio of display window, and after the described image of demonstration all over the screen, wherein this method may further comprise the steps:
Step 401: obtain first touch control operation, described first touch control operation is used for recovering described image original size;
Step 402: according to described first touch control operation that obtains, calculate the original size size of described image;
Step 403: according to the original size size of the described image that calculates, in described display window, show the image of original size size.
Wherein first touch control operation can be double click operation, and perhaps two fingers stretch and realize that image recovers the original size size.
Same in addition, for the situation when described picture size size is not less than the display window of described display screen, dwindle according to being in proportion of display window, and after the image of demonstration all over the screen after dwindling, may further comprise the steps:
Obtain first touch control operation, described first touch control operation is used for recovering described image original size;
According to described first touch control operation that obtains, calculate the original size size of described image;
According to the original size size of the described image that calculates, in described display window, show the image of original size size.
As shown in Figure 5, a kind of method flow diagram that shows image that provides for the embodiment of the invention two when described picture size size during less than the display window of described display screen, amplifies according to the ratio of display window, and after the described image of demonstration all over the screen, can also may further comprise the steps:
Step 501: obtain second touch control operation, described second touch control operation is used for amplifying described image according to setting multiple; Wherein, described setting multiple is set according to the pixel of described image and the display parameter of described display screen;
Step 502: according to described second touch control operation that obtains, the image after amplifying is shown in described display window.
Yet, for when described picture size size is not less than the display window of described display screen, dwindle according to being in proportion of display window, and after the image of demonstration all over the screen after dwindling, may further comprise the steps:
Obtain the 3rd touch control operation, described the 3rd touch control operation is used for according to setting the multiple threshold value amplification described image less with setting multiple; Wherein, described setting multiple threshold value is set according to the pixel of described image and the display parameter of described display screen;
Size after described image amplifies according to described setting multiple is during less than the size after amplifying according to described setting multiple threshold value, and according to described the 3rd touch control operation that obtains, the image after will amplifying according to described setting multiple be shown in described display window;
When the size after described image amplifies according to described setting multiple is not less than according to the size after the described setting multiple threshold value amplification, according to described the 3rd touch control operation that obtains, the image after will amplifying according to described setting multiple threshold value is shown in described display window.
For example screen size is 1280*720, sets multiple threshold X=2448, and setting multiple is 3, judges that the standard of picture size is figure length of a film edge lengths, and is regular as following table:
Former figure |
Acquiescence is opened |
Double-click |
Double-click again |
Two fingers dwindle |
Double-click again |
Two fingers stretch |
Double-click again |
Long limit<1280 and minor face<720 |
Fully support |
The 3x acquiescence |
Fully support |
Former figure |
Long temple is full |
? |
Fully support |
Perpendicular h〉w |
Fully support |
The 3x acquiescence |
Fully support |
Former figure |
Long temple is full |
The perpendicular acquiescence of maximum 3x |
Fully support |
Horizontal h<w |
Fully support |
The 3x acquiescence |
Fully support |
Former figure |
Long temple is full |
The horizontal acquiescence of maximum 3x |
Fully support |
Long limit〉1280 or minor face 720 |
Fully support |
The 3x acquiescence |
Fully support |
Former figure |
Long temple is full |
? |
Fully support |
Minor face<1/3 (2448) |
Fully support |
The 3x acquiescence |
Fully support |
Fully support |
? |
The former figure of maximum 3x |
Fully support |
1/3 (2448)<minor face<(2448) |
Fully support |
The 3x acquiescence |
Fully support |
Fully support |
? |
Maximum minor face (2448) |
Fully support |
Minor face〉(2448) |
Fully support |
The 3x acquiescence |
Fully support |
Fully support |
? |
Former figure |
Fully support |
? |
? |
? |
? |
? |
? |
? |
? |
Wherein said second touch control operation or described the 3rd touch control operation comprise following mode: double click operation, long by operation, clicking operation, two finger or refer in the stretching touch control operation any one more.
The sequencing of the above embodiments is not done any restriction, no matter be that image is checked in reduction earlier, still checks that in order to check that details is amplified image is all passable.
As shown in Figure 6, the structural representation of the portable terminal that provides for the embodiment of the invention one comprises:
Receiving element 601 is used for receiving triggering command, and described triggering command is used for opening image;
Display unit 602 is used for according to the described triggering command that receives, and described image is in proportion according to display window carries out convergent-divergent, and demonstration scaled images all over the screen.Wherein, described display unit comprises: judge module is used for judging the described size of images size of opening and the magnitude relationship of display screen display window;
Wherein, display module 602 also is used for when described picture size size during less than the display window of described display screen, according to the amplification that is in proportion of display window, and the image after the demonstration all over the screen amplification; And be used for when described picture size size is not less than the display window of described display screen, dwindling according to being in proportion of display window, and the image of demonstration all over the screen after dwindling.
As shown in Figure 7, for the embodiment of the invention two provides a kind of structural representation of terminal, comprising:
Receiving element 701 is used for receiving triggering command, and described triggering command is used for opening image;
Display unit 702 is used for according to the described triggering command that receives, and described image is in proportion according to display window carries out convergent-divergent, and demonstration scaled images all over the screen.
Acquiring unit 703 is used for obtaining first touch control operation, and described first touch control operation is used for recovering described image original size;
Computing unit 704 is used for calculating the original size size of described image according to described first touch control operation that obtains,
Wherein, display unit 702 also is used for the original size size according to the described image that calculates, and shows the image of original size size in described display window.
Further, acquiring unit 703 also is used for obtaining second touch control operation, and described second touch control operation is used for amplifying described image according to setting multiple; Wherein, described setting multiple is set according to the pixel of described image and the display parameter of described display screen;
Display unit 702 also is used for according to described second touch control operation that obtains, and the image after amplifying is shown in described display window.
Further, acquiring unit 703 also is used for obtaining the 3rd touch control operation, and described the 3rd touch control operation is used for according to setting the multiple threshold value amplification described image less with setting multiple; Wherein, described setting multiple threshold value is set according to the pixel of described image and the display parameter of described display screen;
Display unit 702, also be used for size after described image amplifies according to described setting multiple less than according to the size after the described setting multiple threshold value amplification time, according to described the 3rd touch control operation that obtains, the image after will amplifying according to described setting multiple is shown in described display window; And
Display unit 702, when also being not less than according to the size after the described setting multiple threshold value amplification for the size after described image amplifies according to described setting multiple, according to described the 3rd touch control operation that obtains, the image after will amplifying according to described setting multiple threshold value is shown in described display window.