Picture display method and apparatus
First Claim
1. A method for picture display, comprising:
- receiving, by an electronic device, an instruction to display a target picture, the instruction including information identifying the target picture;
loading, by the electronic device, an original bitmap of the target picture according to the information identifying the target picture;
obtaining, by the electronic device, a first rotation angle corresponding to the target picture;
adjusting, by the electronic device according to a predetermined resolution associated with the electronic device, a display size of the original bitmap of the target picture to obtain a compressed bitmap of the original bitmap;
rotating, by the electronic device, the compressed bitmap of the original bitmap according to the first rotation angle;
adjusting, by the electronic device, according to the predetermined resolution associated with the electronic device, a display size of the rotated compressed bitmap so as to obtain an adaptive window bitmap; and
displaying, by the electronic device, the adaptive window bitmap.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure provides a picture display method and apparatus that relate to the field of image processing and are increase flexibility of picture display and reducing a memory occupation rate of a terminal on the premise of not modifying an attribute of an original picture. The method and apparatus include receiving an instruction for displaying a picture; obtaining, according to an identifier of a to-be-displayed picture included in the instruction, an original bitmap of the to-be-displayed picture and searching, a database of a current device for a pre-stored first rotation angle corresponding to the to-be-displayed picture; adjusting, according to a resolution of a current screen and/or a current window size, a display size of the original bitmap of the to-be-displayed picture, so as to obtain a compressed bitmap of the original bitmap; and displaying, according to the first rotation angle, a compressed bitmap of the original bitmap.
14 Citations
17 Claims
-
1. A method for picture display, comprising:
-
receiving, by an electronic device, an instruction to display a target picture, the instruction including information identifying the target picture; loading, by the electronic device, an original bitmap of the target picture according to the information identifying the target picture; obtaining, by the electronic device, a first rotation angle corresponding to the target picture; adjusting, by the electronic device according to a predetermined resolution associated with the electronic device, a display size of the original bitmap of the target picture to obtain a compressed bitmap of the original bitmap; rotating, by the electronic device, the compressed bitmap of the original bitmap according to the first rotation angle; adjusting, by the electronic device, according to the predetermined resolution associated with the electronic device, a display size of the rotated compressed bitmap so as to obtain an adaptive window bitmap; and displaying, by the electronic device, the adaptive window bitmap. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An electronic apparatus for picture display, comprising:
-
a memory storing a set of instructions; a processor in communication with the memory, wherein, when the processor executes the set of instructions, the processor is configured to cause the electronic apparatus to; receive an instruction to display a target picture, the instruction including information identifying the target picture; load an original bitmap of the target picture according to the information identifying the target picture; obtain a first rotation angle corresponding to the target picture; adjust, according to a predetermined resolution associated with the electronic apparatus, a display size of the original bitmap of the target picture to obtain a compressed bitmap of the original bitmap; rotate the compressed bitmap according to the first rotation angle; adjust a display size of the rotated compressed bitmap according to the predetermined resolution so as to obtain an adaptive window bitmap; and display the adaptive window bitmap. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
-
14. A non-transitory processor-readable storage medium, comprising a set of instructions for picture display, wherein, when a processor of an electronic device executes the set of instructions, the set of instructions directs the processor to perform actions of:
-
receiving an instruction to display a target picture including information identifying the target picture; loading an original bitmap of the target picture according to the information identifying the target picture; obtaining from a database a first rotation angle corresponding to the target picture; adjusting, according to a predetermined resolution associated with the electronic device, a display size of the original bitmap of the target picture to obtain a compressed bitmap of the original bitmap; rotating the compressed bitmap of the original bitmap according to the first rotation angle; adjusting, according to the predetermined resolution associated with the electronic device, a display size of the rotated compressed bitmap so as to obtain an adaptive window bitmap; and displaying the adaptive window bitmap. - View Dependent Claims (15, 16, 17)
-
Specification