Patent ID: 11907607
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. A method for outputting an image in an electronic device, the method comprising:
identifying whether a specified condition for determining a position of a virtual light source is satisfied, wherein the specified condition includes at least one of a change of a display state, a predetermined period elapsing, or movement of the electronic device out of a specified range;
in response to satisfaction of the specified condition, obtaining context information associated with the electronic device, wherein the context information includes at least one of an orientation of the electronic device, time information, or illumination around the electronic device;
determining the position of the virtual light source with respect to a foldable display based on the context information;
detecting a display state of at least one of a housing of the electronic device or the foldable display;
rendering an image based on the detected display state and the position of the virtual light source; and
controlling the foldable display to display the rendered image,
wherein the housing comprises a first housing structure and a second housing structure foldable with respect to the first housing structure about a first axis,
wherein the foldable display includes a first portion coupled to the first housing structure and a second portion coupled to the second housing structure, and the first portion is foldable with respect to the second portion about a second axis, and
wherein the method further comprises:
determining a shadow region on which a shadowing effect is to be applied in the second portion based on the display state and the position of the virtual light source; and
determining a shadowing application mode associated with the shadowing effect based on the orientation of the electronic device, and

wherein the rendering of the image comprises:
rendering the image such that the shadowing effect is applied to the first portion and the shadow region when the shadowing application mode is a landscape mode; and
rendering the image such that the shadowing effect is displayed on a region adjacent to the second axis in the first portion and a region adjacent to the second axis in the second portion when the shadowing application mode is a portrait mode.