Summary of the invention
Therefore, the biggish image process of data volume is shown in the prior art the technical problem to be solved in the present invention is that overcoming
In problem of resource waste.
For this purpose, the embodiment of the present invention provides a kind of image display method, include the following steps: the breviary for loading original image
The resolution ratio of figure, the thumbnail is less than the original image;Show the thumbnail;The thumbnail is put when receiving
When big operation, monitor whether the amplifying operation terminates;If the amplifying operation does not terminate, whenever current amplification factor reaches
When to presupposition multiple, another thumbnail of the original image, another described contracting of load are generated according to the presupposition multiple
Sketch map, and show another described thumbnail, wherein the resolution ratio of the thumbnail currently loaded is greater than the resolution of previous thumbnail
Rate.
Preferably, when the amplifying operation terminates, the another of the original image is generated according to current amplification factor
A thumbnail.
Preferably, before another thumbnail described in the load, further includes: the thumbnail that release currently loads.
Preferably, the presupposition multiple has multiple.
Preferably, the relationship of the multiple presupposition multiple is Sn=(Sn-1-Sn-2) * m+Sn-1, wherein n >=2, under Sn is
One presupposition multiple, Sn-1 are previous presupposition multiple, and S1=S0+N, S0=1, N, m are positive number, 0≤N≤1, m >=1.
Correspondingly, the embodiment of the present invention also provides a kind of image display device, comprising: loading unit, it is original for loading
The resolution ratio of the thumbnail of image, the thumbnail is less than the original image;Display unit, for showing the thumbnail;
Monitoring unit, for when receiving the amplifying operation to the thumbnail, monitoring whether the amplifying operation terminates;Refresh single
Member, for when current amplification factor reaches presupposition multiple, being preset again according to described when the amplifying operation does not terminate
Number generates another thumbnail of the original image, loads another described thumbnail, and shows another described thumbnail,
The resolution ratio of the thumbnail wherein currently loaded is greater than the resolution ratio of previous thumbnail.
Preferably, further includes: the second refresh unit is used for when the amplifying operation terminates, according to current times magnification
Number generates another thumbnail of the original image.
Preferably, further includes: releasing unit, for before another thumbnail described in the load, release currently to add
The thumbnail of load.
Preferably, the presupposition multiple has multiple.
Preferably, the relationship of the multiple presupposition multiple is Sn=(Sn-1-Sn-2) * m+Sn-1, wherein n >=2, under Sn is
One presupposition multiple, Sn-1 are previous presupposition multiple, and S1=S0+N, S0=1, N, m are positive number, 0≤N≤1, m >=1.
Technical solution of the present invention has the advantages that
The image display method and apparatus provided according to embodiments of the present invention, user can be by initially according to original images
The thumbnail for generating, loading and show checks the overview of original image, and can amplifying to initial thumbnail, putting
During big, whether the current amplifying operation of real-time monitoring reaches default amplification factor, at once when reaching default amplification factor
It regenerates, load simultaneously another higher thumbnail of display resolution, it is possible thereby to save memory, video memory when displaying an image
Etc. resources, and so that user is successively seen the different thumbnail of multiple resolution ratio during thumbnail is amplified.
There are multiple presupposition multiples in technical solution of the present invention, and can be when amplification factor is smaller, so that thumbnail
Refreshing frequency is higher;When amplification factor is larger, so that the refreshing frequency of thumbnail is lower, it is possible thereby to further save resource
Expense, and further increase the Experience Degree of user.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation
Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Originally it applies example and provides a kind of image display method, this method can be with display function and data processing function
It is executed in intelligent terminal (such as smart phone, tablet computer), as shown in Figure 1, this method comprises the following steps:
S1, loads the thumbnail of original image, and the resolution ratio of the thumbnail is less than original image, and above-mentioned original image can be with
It is the biggish high-definition image of data volume.Fig. 2 shows the relationship of the size of original image and intelligent terminal display screen, original images
21 size (including physical size and resolution ratio) is greater than the size of display screen 22, and original image 21 can store in intelligent terminal
Storage card (hard disks such as embedded memory card, external storage card) in, first can be according to original in order to economize on resources and convenient for checking
Beginning image data generates a thumbnail 23, and thumbnail 23 is preferably dimensioned to be the indication range less than or equal to display screen 22,
Then the thumbnail 23 is loaded into mobile phone EMS memory;For the terminal with independent display card, it can be and load the thumbnail
Into video memory.
S2 shows above-mentioned thumbnail 23, and user can understand the overview of original image by thumbnail at this time, if user
It needs to check details, can amplify operation, such as carry out amplifying gesture on the touch screen of terminal, which is that one kind is held
Continuous process.
S3, when receiving the amplifying operation to above-mentioned thumbnail 23, whether monitoring is enlarged and terminates, and holds if terminating
Row step S6, thens follow the steps S4 if not terminating;
S4, judges whether current amplification factor reaches presupposition multiple, and return step S4 continues to judge if not up to,
S5 is thened follow the steps if reached.
S5 then generates the another of original image according to presupposition multiple when current amplification factor reaches presupposition multiple
A thumbnail, and load and show another above-mentioned thumbnail, wherein the resolution ratio of the thumbnail currently loaded is greater than previous contracting
The resolution ratio of sketch map.As a preferred embodiment, after a newest thumbnail is loaded, can by previous thumbnail from
It is discharged in memory, it is possible thereby to further save device resource.
Such as the multiple of above-mentioned thumbnail 23 is 1 times, first presupposition multiple is 1.5 times, then operates when dissolute by breviary
At 1.5 times of figure amplification, is generated according to raw image data, loads (being loaded into memory or video memory) and show the second thumbnail
24, the resolution ratio of the second thumbnail 24 is 1.5 times of the resolution ratio of thumbnail 23, and user can be seen by the second thumbnail 24
The more details of original image, and thumbnail 23 can be discharged at this time.Since the size of the second thumbnail 24 may be
Greater than the size of display screen 22, it is possible to show one of the second thumbnail 24 according to offset caused by amplifying operation
Point, user can move the second thumbnail 24 to check the not shown part of default.
Above-mentioned presupposition multiple is preferably several, and multiple presupposition multiples are determined before can be generation thumbnail.It is default
Step-length between multiple will influence image refreshing (generating, load and show thumbnail) frequency, the smaller then refreshing frequency of step-length
It is higher, it is possible thereby to which user is made successively to see the different thumbnail of more resolution ratio, but it also will increase resource overhead;Step-length is got over
It is big then resource overhead is smaller, but user experience can be reduced.
The image display method provided according to embodiments of the present invention, user can by initially according to original image generate,
Load and the thumbnail that shows check the overview of original image, and can amplifying to initial thumbnail, amplified
Whether Cheng Zhong, the current amplifying operation of real-time monitoring reach default amplification factor, at once again when reaching default amplification factor
It generates, load simultaneously another higher thumbnail of display resolution, it is possible thereby to save the money such as memory, video memory when displaying an image
Source, and so that user is successively seen the different thumbnail of multiple resolution ratio during thumbnail is amplified.
S6 generates another thumbnail of above-mentioned original image according to current amplification factor, such as is enlarged and stops
When be 1.8 times to the amplification factor of above-mentioned thumbnail 23, then generate 1.8 times of the final thumbnail 25 having a size of thumbnail 23.
It is possible thereby to which amplification factor when being stopped operation according to user accurately generates final thumbnail.
As a preferred scheme, the relationship of above-mentioned multiple presupposition multiples can be Sn=(Sn-1–Sn-2)*m+Sn-1,
Middle n >=2, SnFor next presupposition multiple, Sn-1For previous presupposition multiple, S1=S0+ N, S0=1, N, m are positive number, 0≤N≤1, m
≥1。
Specifically, S0It is the multiple of initial thumbnail, S1……SnFor n presupposition multiple (S1……SnIt is all larger than 1), N
To convert difference, m is transformation coefficient.Such as N=0.2, m=2, then S1=1.2, S2=1.6, S3=2.4, that is, work as amplifying operation
When indicated amplification factor reaches 1.2, then generate a resolution ratio be initial thumbnail 1.2 another thumbnail,
When the indicated amplification factor of amplifying operation reaches 1.6, then one resolution ratio of generation is the another of the 1.6 of initial thumbnail
A thumbnail, when indicated amplification factor being enlarged reaching 2.4, then generating a resolution ratio is initial thumbnail
2.4 times another thumbnail.
It, can be when amplification factor be smaller, so that the refreshing of thumbnail according to multiple presupposition multiples of above-mentioned preferred embodiment
Frequency is higher;When amplification factor is larger, so that the refreshing frequency of thumbnail is lower, opened it is possible thereby to further save resource
Pin, and further increase the Experience Degree of user.
Another embodiment of the invention also provides a kind of image display device, and the device as shown in Figure 3 includes:
Loading unit 31, for loading the thumbnail of original image, the resolution ratio of the thumbnail is less than the original graph
Picture;
Display unit 32, for showing the thumbnail;
Monitoring unit 33, for whether when receiving the amplifying operation to the thumbnail, monitoring the amplifying operation
It terminates;
Refresh unit 34, for when it is described amplifying operation do not terminate when, whenever current amplification factor reaches presupposition multiple
When, another thumbnail of the original image is generated according to the presupposition multiple, loads another described thumbnail, and show
Another described thumbnail, wherein the resolution ratio of the thumbnail currently loaded is greater than the resolution ratio of previous thumbnail.Preferably, institute
State presupposition multiple can be it is multiple.
The image display device provided according to embodiments of the present invention, user can by initially according to original image generate,
Load and the thumbnail that shows check the overview of original image, and can amplifying to initial thumbnail, amplified
Whether Cheng Zhong, the current amplifying operation of real-time monitoring reach default amplification factor, at once again when reaching default amplification factor
It generates, load simultaneously another higher thumbnail of display resolution, it is possible thereby to save the money such as memory, video memory when displaying an image
Source, and so that user is successively seen the different thumbnail of multiple resolution ratio during thumbnail is amplified.
Preferably, above-mentioned apparatus further include: the second refresh unit 35, for when amplifyings operation termination, according to working as
The amplification factor of phase generates another thumbnail of the original image.It is possible thereby to times magnification when being stopped operation according to user
Number accurately generates final thumbnail.
Preferably, above-mentioned apparatus further include: releasing unit 36 is used for after another thumbnail described in the load,
The previous thumbnail for discharging load, it is possible thereby to further save device resource.
Preferably, the relationship of the multiple presupposition multiple is Sn=(Sn-1-Sn-2) * m+Sn-1, wherein n >=2, under Sn is
One presupposition multiple, Sn-1 are previous presupposition multiple, and S1=S0+N, S0=1, N, m are positive number, 0≤N≤1, m >=1.According to upper
Multiple presupposition multiples of preferred embodiment are stated, it can be when amplification factor be smaller, so that the refreshing frequency of thumbnail is higher;Amplifying
When multiple is larger, so that the refreshing frequency of thumbnail is lower, it is possible thereby to further save resource overhead, and use is further increased
The Experience Degree at family.
Obviously, the above embodiments are merely examples for clarifying the description, and does not limit the embodiments.It is right
For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or
It changes.There is no necessity and possibility to exhaust all the enbodiments.And it is extended from this it is obvious variation or
It changes still within the protection scope of the invention.