IP Library Granted Patent US 10,636,113
Granted Patent B2
US 10,636,113 · App. 15/964,650 · Granted Apr 28, 2020

Method and apparatus for displaying picture content in application, and storage medium

Inventor: Kai Dong (Guangdong, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06T1/60G09G5/02G09G5/391G09G5/395G09G5/39G09G2340/02G09G2380/14
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,636,113
App. No.
15/964,650
Granted
Apr 28, 2020
Kind
B2
Abstract

The present disclosure describes a method, an apparatus, and a non-transitory computer readable storage medium for displaying pictures in an application. The method includes obtaining original picture information and performing an indexing operation on the original picture information to obtain an indexed object. The method also includes performing a de-indexing operation on the indexed object, and establishing a bitmap object of an index color format according to a color table and a pixel buffer in the indexed object. The method further includes displaying the picture in the application by using the bitmap object. By using the present disclosure, a memory occupation rate in an electronic device can be effectively reduced, thereby solving the existing problem and improving the functionality and stability of the application in the electronic device.

Claims (72)

1. A method for displaying a picture in an application, the method comprising:

obtaining, by a processor, original picture information of a picture, wherein the processor is in communication with a memory and a display screen;

performing, by the processor, an indexing operation on the original picture information to obtain an indexed object;

performing, by the processor, a de-indexing operation on the indexed object, and establishing a bitmap object of an index color format according to a color table of the indexed object and a pixel buffer of the indexed object; and

displaying, by the display screen, the picture in the application by using the bitmap object.

2. The method according to claim 1 , wherein the obtaining the original picture information of the picture comprises:

constructing, by the processor, picture information of the picture; and

obtaining, by the processor, the original picture information according to the constructed picture information.

3. The method according to claim 1 , wherein the obtaining the original picture information of the picture comprises:

obtaining, by the processor, the picture conforming to a preset picture information format in the application; and

decoding, by the processor, the picture by using a picture decoder to obtain the original picture information.

4. The method according to claim 1 , wherein the method further comprises:

when a color modification operation on the displayed picture is triggered, modifying, by the processor, a color value in a color table of the bitmap object to match a color according to the color modification operation.

5. A method for displaying a picture in an application, the method comprising:

obtaining, by a processor, original picture information of a picture, wherein the processor is communication with a memory and a display screen;

performing, by the processor, an indexing operation on the original picture information to obtain an indexed object;

performing, by the processor, a de-indexing operation on the indexed object, and establishing a bitmap object of an index color format according to a color table of the indexed object and a pixel buffer of the indexed object;

displaying, by the display screen, the picture in the application by using the bitmap object;

when a content modification operation on the displayed picture is triggered, obtaining, by the processor, the bitmap object in an editing mode by means of modification of the index color format in the bitmap object;

modifying, by the processor in the bitmap object in the editing mode, a parameter related to the content modification operation to modify the picture; and

recovering, by the processor, the modification of the index color format in the bitmap object, and displaying the modified picture.

6. The method according to claim 5 , wherein when the content modification operation on the displayed picture is triggered, the obtaining the bitmap object in the editing mode by means of modification of the index color format in the bitmap object comprises:

when the content modification operation on the displayed picture is triggered, accessing, by the processor, the bitmap object to obtain a color format of the bitmap object; and

modifying, by the processor, the color format of the bitmap object into an Alpha8 format, wherein the bitmap object of the Alpha8 format is in the editing mode.

7. An apparatus for displaying picture in an application, comprising:

a memory storing instructions;

a processor in communication with the memory, wherein, when the processor executes the instructions, the processor is configured to cause the apparatus to:

obtain original picture information of a picture,

perform an indexing operation on the original picture information to obtain an indexed object,

perform a de-indexing operation on the indexed object, and establish a bitmap object of an index color format according to a color table of the indexed object and a pixel buffer of the indexed object, and

display the picture in the application by using the bitmap object.

8. The apparatus according to claim 7 , wherein, when the processor is configured to cause the apparatus to obtain the original picture information of the picture, the processor is configured to cause the apparatus to:

construct picture information of the picture; and

obtain the original picture information according to the constructed picture information.

9. The apparatus according to claim 7 , wherein, when the processor is configured to cause the apparatus to obtain the original picture information of the picture, the processor is configured to cause the apparatus to:

obtain the picture conforming to a preset picture information format in the application; and

decode the picture by using a picture decoder to obtain the original picture information.

10. The apparatus according to claim 7 , wherein, when the processor executes the instructions, the processor is configured to further cause the apparatus to:

when a content modification operation on the displayed picture is triggered, obtain the bitmap object in an editing mode by means of modification of the index color format in the bitmap object;

modify, in the bitmap object in the editing mode, a parameter related to the content modification operation to modify the picture; and

recover the modification of the index color format in the bitmap object, and display the modified picture.

11. The apparatus according to claim 10 , wherein, when the processor is configured to cause the apparatus to, when the content modification operation on the displayed picture is triggered, obtain the bitmap object in the editing mode by means of modification of the index color format in the bitmap object, the processor is configured to cause the apparatus to:

when the content modification operation on the displayed picture is triggered, access the bitmap object to obtain a color format of the bitmap object; and

modify the color format of the bitmap object into an Alpha8 format, wherein the bitmap object of the Alpha8 format is in the editing mode.

12. The apparatus according to claim 7 , wherein when the processor executes the instructions, the processor is configured to further cause the apparatus to:

when a color modification operation on the displayed picture is triggered, modify a color value in a color table of the bitmap object to match a color according to the color modification operation.

13. The apparatus according to claim 12 , wherein when the processor executes the instructions, the processor is configured to further cause the apparatus to:

locate a storing address of the color table in the bitmap object; and

read content stored in the storing address to obtain the color table.

14. A non-transitory computer readable storage medium storing instructions, the instructions, when executed by a processor, cause the processor to perform:

obtaining original picture information of a picture;

performing an indexing operation on the original picture information to obtain an indexed object;

performing a de-indexing operation on the indexed object, and establishing a bitmap object of an index color format according to a color table of the indexed object and a pixel buffer of the indexed object; and

displaying the picture in an application by using the bitmap object.

15. The non-transitory computer readable storage medium according to claim 14 , wherein, when the instructions cause the processor to perform the obtaining the original picture information of the picture, the instructions cause the processor to perform:

constructing picture information of the picture; and

obtaining the original picture information according to the constructed picture information.

16. The non-transitory computer readable storage medium according to claim 14 , wherein, when the instructions cause the processor to perform the obtaining the original picture information of the picture, the instructions cause the processor to perform:

obtain the picture conforming to a preset picture information format in the application; and

decode the picture by using a picture decoder to obtain the original picture information.

17. The non-transitory computer readable storage medium according to claim 14 , wherein, the instructions, when executed by the processor, further cause the processor to perform:

when a content modification operation on the displayed picture is triggered, obtaining the bitmap object in an editing mode by means of modification of the index color format in the bitmap object;

modifying, in the bitmap object in the editing mode, a parameter related to the content modification operation to modify the picture; and

recovering the modification of the index color format in the bitmap object, and displaying the modified picture.

18. The non-transitory computer readable storage medium according to claim 17 , wherein, when the instructions cause the processor to perform, when the content modification operation on the displayed picture is triggered, the obtaining the bitmap object in the editing mode by means of modification of the index color format in the bitmap object, the instructions cause the processor to perform:

when the content modification operation on the displayed picture is triggered, accessing the bitmap object to obtain a color format of the bitmap object; and

modifying the color format of the bitmap object into an Alpha8 format, wherein the bitmap object of the Alpha8 format is in the editing mode.

19. The non-transitory computer readable storage medium according to claim 14 , wherein, the instructions, when executed by the processor, further cause the processor to perform:

when a color modification operation on the displayed picture is triggered, modifying a color value in a color table of the bitmap object to match a color according to the color modification operation.

20. The non-transitory computer readable storage medium according to claim 19 , wherein, the instructions, when executed by the processor, further cause the processor to perform:

locating a storing address of the color table in the bitmap object; and

reading content stored in the storing address to obtain the color table.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 27, 2018
From: DONG, KAI
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 045660/0931 →
Priority Claims (1)
CN 2016 1 0383178 · Jun 1, 2016 · national
Continuity (2)
Continuation PCTCN2017085469 · May 23, 2017
Related Publication 20180247389A1 · Aug 30, 2018