Method and device for browsing picture
A picture and picture browsing technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as poor user experience and slow response
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] like figure 1 Shown is a flow chart of a picture browsing method provided by the first embodiment of the present invention. For convenience of description, only the parts related to the embodiment of the present invention are shown.
[0045] In step S101, a picture browsing instruction input by a user is received.
[0046] In the embodiment of the present invention, the picture browsing instruction input by the user includes but is not limited to double-clicking a picture and the like.
[0047] In step S102, the picture specified by the picture browsing instruction is read and analyzed, and the small layer and the middle layer / original layer corresponding to the picture specified by the picture browsing instruction are sequentially loaded.
[0048] In the embodiment of the present invention, read and analyze the picture specified by the picture browsing command according to the picture browsing command input by the user. Here, an image generation thread ImageGenThread ...
Embodiment 2
[0063] In order to further refine this technical solution, such as figure 2 The diagram provides a flow chart of a method for flipping pages to browse pictures, and for convenience of description, only the parts related to the embodiment of the present invention are shown.
[0064] In step S201, receiving an instruction from the user to turn pages and browse pictures;
[0065] In step S202, it is judged whether the instruction of flipping pages and browsing pictures issued by the user is a quick page flipping browsing instruction, if so, execute step S205, otherwise execute step S203.
[0066] In the embodiment of the present invention, when the UI drawing thread UIRenderThread receives an instruction to turn pages and browse pictures, it needs to judge whether the current user is turning pages at the normal speed of viewing pictures or the rapid page turning caused by the user always triggering a certain page turning key state. Here, through the function GetKeyState in the...
Embodiment 3
[0076] In the embodiment of the present invention, image 3 What is shown is the specific process of loading layers, which will be described in detail below, but is not limited to this embodiment.
[0077] In the embodiment of the present invention, the process of loading layers is completed by the preset image generation thread ImageGenThread.
[0078] In step S301, a layer loading task is received, and it is judged whether the layer to be loaded exists in the cache, if yes, step S307 is executed, otherwise, step S302 is executed.
[0079] In step S302, it is determined whether the layer loading task is to load a small layer, if yes, execute step S303, otherwise execute step S306.
[0080] In step S303, it is judged whether the small layer to be loaded exists in the thumbnail database, if yes, execute step S304, otherwise execute step S305.
[0081] In the embodiment of the present invention, it is judged whether the small layer to be loaded exists in the thumbnail database...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 