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

Claim 0:
1. An electronic device, comprising:
a housing comprising a first housing structure and a second housing structure foldable with respect to the first housing structure about a first axis;
a foldable display foldable about a second axis parallel to the 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 the second axis;
a folding sensor circuit configured to detect a display state of at least one of the housing or the foldable display;
an orientation sensing circuit configured to detect an orientation of the electronic device;
a memory storing instructions; and
a processor configured to execute the instructions stored in the memory to:
identify 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 the 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, determine the position of the virtual light source with respect to the foldable display based on 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;
render an image based on the display state detected by the folding sensor circuit and the position of the virtual light source; and

control the foldable display to display the rendered image,
wherein the processor is further configured to:
determine 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;
determine a shadowing application mode associated with the shadowing effect based on the orientation of the electronic device;
render 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
render 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.