Patent ID: 11954787
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 8:
9. A terminal device, comprising:
at least one processor; and
one or more memories including programming instructions that, when executed by the at least one processor, cause the terminal device to:
in response to an operation on an panoramic application, obtain a foreground image and a panoramic image, wherein the panoramic image is a background image of the foreground image;
render the foreground image, and set a depth value of each pixel on a canvas, wherein the depth value of each pixel comprises a first depth value and a depth reference value, the first depth value is a depth value of a pixel corresponding to the foreground image, the depth reference value is a depth value of a pixel other than the pixel corresponding to the foreground image, and the canvas is an area that is on a screen of the terminal device and that is used to display the panoramic image and the foreground image; and
render at a first pixel based on the first depth value and the depth reference value, a color value that corresponds to the first pixel and that is on the panoramic image, wherein the first pixel is a pixel corresponding to the depth reference value.