IP Library › Granted Patent US 10,825,130
Granted Patent B2
US 10,825,130 · App. 16/821,108 · Granted Nov 3, 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,825,130
App. No.
16/821,108
Granted
Nov 3, 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 (58)

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

performing, by a device comprising a memory and a process in communication with the memory, a de-indexing operation on an indexed object to 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

displaying, by the device, a picture in an application by using the bitmap object.

2. The method according to claim 1 , further comprising:

in response to trigging a content modification operation on the displayed picture, obtaining, by the device, the bitmap object in an editing mode by means of modification of the index color format in the bitmap object; and

modifying, by the device, a parameter related to the content modification operation to modify the picture.

3. The method according to claim 2 , further comprising:

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

4. The method according to claim 1 , further comprising:

in response to trigging a content modification operation on the displayed picture, accessing, by the device, the bitmap object to obtain a color format of the bitmap object; and

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

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

in response to trigging a color modification operation on the displayed picture, modifying, by the device, a color value in a color table of the bitmap object to match a color according to the color modification operation.

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

obtaining, by the device, original picture information of the picture; and

performing, by the device, an indexing operation on the original picture information to obtain the indexed object.

7. The method according to claim 1 , further comprising:

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

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

8. 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:

perform a de-indexing operation on an indexed object to 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 a picture in an application by using the bitmap object.

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

in response to trigging a content modification operation on the displayed picture, obtain the bitmap object in an editing mode by means of modification of the index color format in the bitmap object; and

modify a parameter related to the content modification operation to modify the picture.

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

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

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

in response to trigging a content modification operation on the displayed picture, 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 an editing mode.

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

in response to trigging a color modification operation on the displayed picture, 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 8 , wherein, when the processor executes the instructions, the processor is configured to further cause the apparatus to:

obtain original picture information of the picture; and

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

14. The apparatus according to claim 8 , wherein, when the processor executes the instructions, the processor is configured to further 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 original picture information of the picture.

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

perform a de-indexing operation on an indexed object to 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 a picture in an application by using the bitmap object.

16. The non-transitory computer readable storage medium according to claim 15 , wherein the instructions, when executed by the processor, are configured to further cause the processor to:

in response to trigging a content modification operation on the displayed picture, obtain the bitmap object in an editing mode by means of modification of the index color format in the bitmap object;

modify 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 displaying the modified picture.

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

in response to trigging a content modification operation on the displayed picture, 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 an editing mode.

18. The non-transitory computer readable storage medium according to claim 15 , wherein the instructions, when executed by the processor, are configured to further cause the processor to:

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

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

obtain original picture information of the picture; and

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

20. The non-transitory computer readable storage medium according to claim 15 , wherein the instructions, when executed by the processor, are configured to further cause the processor 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 original picture information of the picture.

Priority Claims (1)
CN 2016 1 0383178 · Jun 1, 2016 · national
Continuity (3)
Continuation 15964650 · Apr 27, 2018
Continuation PCTCN2017085469 · May 23, 2017
Related Publication 20200219226A1 · Jul 9, 2020