CPC G06F 3/04845 (2013.01) [G06F 1/1624 (2013.01); G06F 1/1652 (2013.01)] | 20 Claims |
1. An electronic device comprising:
memory storing instructions;
a camera;
a housing including a second housing part and a first housing part configured to movably engage with the second housing part between a retracted position and an extended position;
a flexible display coupled to the first housing part such that a size of an area of the flexible display visible from a front side of the housing changes between the retracted position and the extended position of the housing; and
at least one processor operatively connected to the camera and the flexible display,
wherein the instructions which, when executed by the at least one processor, cause the electronic device to:
display an image obtained via the camera in at least a part of the area of the flexible display,
in response to detecting a reduction in the size of the area of the flexible display, compare the reduced size of the area of the flexible display to a size of the image,
based on a result of the comparing, identify whether an entirety of the image is displayable in the reduced area of the flexible display,
in response to determining that the entirety of the image is displayable in the reduced area of the flexible display, display the image in the reduced area of the flexible display while maintaining an aspect ratio and the size of the image,
wherein control objects related to the camera at least partially overlap the image displayed in the reduced area of the flexible display, and
in response to determining that the entirety of the image is not displayable in the reduced area of the flexible display, display a part of the image in the reduced area of the flexible display while maintaining the aspect ratio and the size of the image or a reduced image in the reduced area of the flexible display.
|