CN112732148A - Image display method and electronic equipment - Google Patents

Image display method and electronic equipment Download PDF

Info

Publication number
CN112732148A
CN112732148A CN202011611146.1A CN202011611146A CN112732148A CN 112732148 A CN112732148 A CN 112732148A CN 202011611146 A CN202011611146 A CN 202011611146A CN 112732148 A CN112732148 A CN 112732148A
Authority
CN
China
Prior art keywords
target image
equipment
screen
control instruction
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011611146.1A
Other languages
Chinese (zh)
Inventor
马岩
辛玉军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011611146.1A priority Critical patent/CN112732148A/en
Publication of CN112732148A publication Critical patent/CN112732148A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The application discloses an image display method and electronic equipment, wherein the method comprises the following steps: under the condition that the rotation of the equipment is detected, obtaining the current parameters of the equipment; generating a control instruction for a target image displayed in the screen of the equipment according to the current parameters of the equipment; and controlling the target image to perform relative rotation opposite to the rotation direction of the equipment according to the control instruction, wherein the rotation speed of the target image is consistent with the rotation speed of the equipment. By adopting the scheme provided by the application, under the condition that the equipment rotates, the target image in the equipment does not rotate along with the equipment, but the target image in the equipment is kept at the original angle through the opposite direction and the rotation at the same speed, so that the condition that the image is inclined in the screen rotating process is overcome through the mode, and the user experience is improved.

Description

Image display method and electronic equipment
Technical Field
The present disclosure relates to the field of image control, and in particular, to an image display method and an electronic device.
Background
In the conventional picture display scheme, when the screen rotates, the picture rotates along with the rotation of the screen, and when the picture rotates along with the screen, the situation that the picture inclines or the picture is reversed occurs, so that the user viewing experience is poor.
In order to overcome such a defect, a scheme for adaptively adjusting the display direction of the picture according to the gravity sensor when the screen rotates to a certain angle is provided, but the scheme triggers the picture adjustment only when the screen rotates to a certain angle, for example, the picture adjustment is triggered when the screen changes from a vertical state to a parallel state, or the picture adjustment is triggered when the rotation angle of the screen is 180 °. However, in some cases, the rotation process of the screen is a smooth and slow rotation process, and when the above-mentioned method is adopted, the situation of the picture tilting for a long time still occurs, so how to provide an image display method to overcome the situation of the picture tilting during the screen rotation process and improve the user experience is an urgent technical problem to be solved.
Disclosure of Invention
An object of an embodiment of the present application is to provide an image display method and an electronic device, where the following technical solutions are adopted: an image display method comprising:
under the condition that the rotation of the equipment is detected, obtaining the current parameters of the equipment;
generating a control instruction for a target image displayed in the screen of the equipment according to the current parameters of the equipment;
and controlling the target image to perform relative rotation opposite to the rotation direction of the equipment according to the control instruction, wherein the rotation speed of the target image is consistent with the rotation speed of the equipment.
The beneficial effect of this application lies in: under the condition that the equipment rotates, the target image in the equipment does not rotate along with the equipment, but the target image in the equipment is kept at the original angle through the rotation in the opposite direction and at the same speed, so that the phenomenon that the picture is inclined in the screen rotating process is overcome through the mode, and the user experience is improved.
In one embodiment, the obtaining the current parameter of the device includes:
acquiring the current rotating speed and rotating direction of the equipment;
the generating of the control instruction for the target image displayed in the screen of the device according to the current parameters of the device includes:
and generating a control instruction for enabling the target image to rotate at the same rotating speed and in the opposite rotating direction according to the current rotating speed and the rotating direction of the equipment.
In one embodiment, the obtaining the current parameter of the device includes:
acquiring the screen size of the equipment and the current angle of the equipment;
the generating of the control instruction for the target image displayed in the screen of the device according to the current parameters of the device includes:
and generating a control instruction for zooming the target image according to the screen size and the current angle of the equipment.
In one embodiment, the generating a control instruction for zooming the target image according to the screen size and the current angle of the device includes:
determining the maximum size allowed by the target image when the target image is completely displayed at the current angle of the equipment;
and generating a control instruction for zooming the target image according to the maximum size allowed when the target image is completely displayed at the current angle of the equipment.
In one embodiment, the generating a control instruction for scaling the target image according to the maximum size allowed by the target image when the target image is completely displayed at the current angle of the device includes:
and under the condition that the current angle of the equipment is a target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In one embodiment, generating a control instruction for a target image displayed in the screen of the device according to the current parameters of the device comprises:
acquiring the maximum display size allowed when the target image is completely displayed under each rotation angle of the equipment;
acquiring the minimum value of all the maximum display sizes;
and generating a control instruction for scaling the target image according to the minimum value.
In one embodiment, the obtaining the current parameter of the device includes:
acquiring the screen size of the equipment and the current angle of the equipment;
the generating of the control instruction for the target image displayed in the screen of the device according to the current parameters of the device includes:
determining a minimum size allowed by the target image which can enable the device at the current angle to be displayed in a full screen mode;
and generating a control instruction for zooming the target image according to the minimum size.
In one embodiment, the generating the control instruction for scaling the target image according to the minimum size includes:
and under the condition that the current angle of the equipment is a target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In one embodiment, in a case that the current angle of the device is a target angle, generating a control instruction for zooming the target image to fit a screen of the device includes:
and under the condition that the current angle of the equipment is the angle when the preset edge of the screen is parallel to or perpendicular to the reference surface, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
The present application further provides an electronic device, comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring the current parameters of the device under the condition that the rotation of the device is detected;
the generating module is used for generating a control instruction for the target image displayed in the equipment screen according to the current parameters of the equipment;
and the control module is used for controlling the target image to rotate in the direction opposite to the rotation direction of the equipment according to the control instruction, wherein the rotation speed of the equipment is consistent with the rotation speed of the target image.
In one embodiment, the obtaining module includes:
the first obtaining submodule is used for obtaining the current rotating speed and rotating direction of the equipment;
the generation module comprises:
and the first generation submodule is used for generating a control instruction for enabling the target image to rotate in the same rotating speed and opposite rotating directions according to the current rotating speed and rotating direction of the equipment.
In one embodiment, the obtaining module includes:
the second obtaining submodule is used for obtaining the screen size of the equipment and the current angle of the equipment;
the generation module comprises:
and the second generation submodule is used for generating a control instruction for zooming the target image according to the screen size and the current angle of the equipment.
In one embodiment, the second generation submodule includes:
determining the maximum size allowed by the target image when the target image is completely displayed at the current angle of the equipment;
and generating a control instruction for zooming the target image according to the maximum size allowed when the target image is completely displayed at the current angle of the equipment.
In one embodiment, the generating a control instruction for scaling the target image according to the maximum size allowed by the target image when the target image is completely displayed at the current angle of the device includes:
and under the condition that the current angle of the equipment is a target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In one embodiment, the generating module includes:
the third acquisition submodule is used for acquiring the maximum display size allowed by the target image when the device is completely displayed at each rotation angle;
the fourth obtaining submodule is used for obtaining the minimum value of all the maximum display sizes;
and the third generation submodule is used for generating a control instruction for scaling the target image according to the minimum value.
In one embodiment, the obtaining module includes:
the fifth obtaining submodule is used for obtaining the screen size of the equipment and the current angle of the equipment;
the generation module comprises:
a determination submodule, configured to determine a minimum size allowed by the target image, which enables a device at a current angle to display in a full screen;
and the fourth generation submodule is used for generating a control instruction for scaling the target image according to the minimum size.
In one embodiment, the fourth generation submodule includes:
and under the condition that the current angle of the equipment is a target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In one embodiment, in a case that the current angle of the device is a target angle, generating a control instruction for zooming the target image to fit a screen of the device includes:
and under the condition that the current angle of the equipment is the angle when the preset edge of the screen is parallel to or perpendicular to the reference surface, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
Drawings
FIG. 1 is a flowchart illustrating an image display method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating an apparatus with a rotatable screen according to an embodiment of the present application;
FIG. 3 is a diagram of a screen rotatable device according to another embodiment of the present application
FIG. 4 is a diagram illustrating an embodiment of the present application when a target image does not rotate with a screen;
FIG. 5 is a schematic diagram of another embodiment of the present application in which the target image does not rotate with the screen;
FIG. 6 is a schematic diagram of a target image not rotating with the screen in yet another embodiment of the present application;
FIG. 7 is a schematic diagram of an embodiment of the present application at a target angle;
FIG. 8 is a flowchart illustrating an image display method according to another embodiment of the present application;
FIG. 9 is a block diagram of an electronic device in an embodiment of the present application;
fig. 10 is a block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
Fig. 1 is a flowchart of an image display method according to an embodiment of the present application, the method including the following steps S11-S13:
in step S11, in the case where the rotation of the device is detected, the current parameters of the device are acquired;
in step S12, a control instruction for the target image displayed in the device screen is generated according to the current parameters of the device;
in step S13, according to the control instruction, the control target image is subjected to relative rotation in the opposite direction to the apparatus rotation direction, wherein the speed at which the target image is rotated is kept in agreement with the speed at which the apparatus is rotated.
In the embodiment, the current parameters of the equipment are obtained under the condition that the rotation of the equipment is detected; in this embodiment, the device may refer to a device with a screen in a rotating state, for example, a product that is applied to a rotatable screen in a scene such as a conference display device and a shopping guide shown in fig. 2 or fig. 3.
Of course, the device may also refer to a mobile terminal device held by a user, for example, when the user watches contents such as videos and photos through a device such as a mobile phone and a tablet computer, the user may adjust the posture to cause the device to rotate, at this time, when the device is detected to rotate, a current parameter of the device is obtained, where the current parameter may refer to a rotation speed of the device, a rotation direction of the device, and the like, and a control instruction for a target image displayed in a screen of the device is generated according to the current parameter of the device; and according to the control instruction, controlling the target image to perform relative rotation opposite to the rotation direction of the equipment, so that when the equipment rotates to each angle, the target image at each angle is obtained according to the control instruction, and the target image obtained according to the control instruction is displayed on a screen of the equipment. Wherein the speed of rotation of the target image is maintained in line with the speed of rotation of the device.
In general, during the rotation of the device, the image displayed on the device rotates along with the rotation of the device, which may cause the image to be inclined, and the viewing experience of the user is not good. In this embodiment, in order to overcome the above-mentioned defects, in the rotation process of the device, the target image displayed in the device rotates at the same rotation speed and in the opposite direction to the device, so that the picture in the device remains still with respect to some other reference objects (e.g., a horizontal plane, a user who is still) except the device, thereby overcoming the situation of picture inclination occurring in the rotation process of the existing device, and improving the viewing experience of the user.
Under the condition of overcoming the problem of picture inclination, different modes of processing are selected to be carried out on the target image displayed in the equipment, so that different effects can be realized, and the following specific steps are carried out:
in the first method, the target image is not zoomed, and as shown in fig. 4, when the device screen rotates, the size of the target image is not changed, but the target image is kept at the original angle by rotating in the same rotation speed and in the opposite direction to the device. In this case, since the target image and the location of the device do not completely overlap, a blank area appears on the device screen.
And secondly, zooming the target image to enable the target image to be completely displayed in the screen of the equipment.
Specifically, the modes of displaying the target image in the device screen completely include two modes:
firstly, acquiring the screen size of equipment and the current angle of the equipment; and generating a control instruction for zooming the target image according to the screen size and the current angle of the equipment. Generating a control instruction to zoom the target image according to the screen size and the current angle of the device may include: determining the maximum size allowed by the target image when the target image is completely displayed at the current angle of the equipment; and generating a control instruction for zooming the target image according to the maximum size allowed when the target image is completely displayed at the current angle of the equipment. After the control instruction is executed, the target image is scaled to the situation shown in fig. 5, and as shown in fig. 5, the device continuously generates new control instructions along with the rotation of the device, and dynamically adjusts the target image based on the control instructions, so that the target image can be completely displayed in the screen of the device at the maximum size all the time. And generating a control instruction for zooming the target image to be matched with the screen of the equipment under the condition that the equipment rotates to the target angle. In the method, the size of the target image is dynamically changed along with the change of the angle of the equipment so as to ensure that the target image is completely displayed in the screen of the equipment in the maximum size. Assuming that the device is rectangular, the target angle may be that the device is rotated to a position where a designated edge of the device screen is parallel or perpendicular to a reference surface such as the ground.
Secondly, acquiring the maximum display size allowed when the target image is completely displayed under each rotation angle of the equipment; acquiring the minimum value of all the maximum display sizes; and generating a control instruction for zooming the target image according to the minimum value. According to the method, the size of the target image is adjusted only once, and the target image can be completely displayed on the screen of the equipment when the equipment rotates to any angle through once adjustment. For example, the device corresponds to the maximum display size allowed when a target image is completely displayed at each angle, determines a minimum value from the maximum display sizes allowed when the target image is completely displayed at each angle, and directly adjusts the target image to the minimum value, so that the target image can be completely displayed on the screen of the device no matter the device rotates to any angle. For example, of the maximum display sizes allowed when the target images corresponding to all the angles are completely displayed, the size value corresponding to the four angles of 45 °, 135 °, 225 °, and 315 ° between the device and the reference surface (e.g., horizontal plane) is the smallest, and then the size value corresponding to any one of the four angles is taken to generate the control instruction, and the target image is adjusted to the size value corresponding to any one of 45 °, 135 °, 225 °, and 315 ° based on the control instruction.
And thirdly, zooming the target image to ensure that a blank area (an area except the target image in the device screen) as shown in fig. 4 or 5 does not appear in the device screen.
In the second mode, the target image can be completely displayed, but a blank area still appears, and the third mode is a scheme provided for ensuring that no blank area appears in the screen of the device, and in the third mode, as shown in fig. 6, the target image is zoomed to a size shown by a dotted line box in fig. 6, and the area where the target image is located can completely wrap the area where the screen of the device is located without changing the angle of the target image, so that the device can be displayed in a full screen regardless of the angle to which the device is rotated by the target image zooming mode based on the screen size and the device angle of the device as shown in fig. 6. Specifically, the screen size of the equipment and the current angle of the equipment are obtained; determining the minimum size allowed by a target image which can enable the device at the current angle to be displayed in a full screen mode; and generating a control instruction for scaling the target image according to the minimum size. In the third mode, in the case that the current angle of the device is the target angle, a control instruction for zooming the target image to fit the screen of the device is generated.
It should be noted that the target angle mentioned in the second and third modes may refer to an angle when the preset edge of the screen is parallel or perpendicular to the reference plane (e.g., horizontal plane), and the preset edge of the screen may be any edge of the screen. The generation of the control instruction for scaling the target image to be adapted to the screen of the device mentioned in the second and third modes may refer to scaling the size of the target image to be completely the same as the size of the screen, so that the area where the target image is located and the area where the screen is located are completely overlapped, fig. 7 is a case where the device is located at a target angle, as shown in fig. 7, when the device is located at an angle at which the preset edge of the screen is parallel or perpendicular to the reference surface, the target image is completely and fully displayed in the device, and thus, full-screen display of the device can be achieved, and complete display of the target image can also be achieved.
It is understood that, in the above-mentioned manners, during the scaling of the target image, the center point of the target image and the device may be kept in a coincident state.
The beneficial effect of this application lies in: under the condition that the equipment rotates, the target image in the equipment does not rotate along with the equipment, but the target image in the equipment is kept at the original angle through the rotation in the opposite direction and at the same speed, so that the phenomenon that the picture is inclined in the screen rotating process is overcome through the mode, and the user experience is improved.
In one embodiment, the above step S11 can be implemented as the following step a 1:
in step a1, acquiring the current rotation speed and rotation direction of the device;
the above step S12 may be implemented as the following step a 2:
in step a2, a control command for rotating the target image in the same rotational speed and opposite rotational directions is generated based on the current rotational speed and rotational direction of the apparatus.
In the embodiment, the current rotation speed and the current rotation direction of the equipment are obtained under the condition that the rotation of the equipment is detected; and then generating a control instruction for rotating the target image in the same rotating speed and opposite rotating directions according to the current rotating speed and rotating direction of the equipment. Therefore, the target image in the equipment can be controlled by the control instruction to not rotate along with the equipment, and the original angle is kept.
In one embodiment, the above step S11 can be implemented as the following step B1:
in step B1, acquiring the screen size of the device and the current angle of the device;
the above step S12 may be implemented as the following step B2:
in step B2, a control instruction for zooming the target image is generated according to the screen size and the current angle of the device.
Because in this application, in order to avoid the problem of picture tilting in the rotation process of the device, the target image does not rotate along with the screen, therefore, in the rotation process of the device, a situation that only partial areas of the device and the target image overlap as shown in fig. 4 may occur, at this time, two problems may occur, the first problem is that the device cannot display in a full screen manner, a blank area may occur in the screen of the device, and the second problem is that the target image cannot be completely displayed, therefore, the embodiment provided in this application further solves all or at least part of the problems that a blank area occurs in the screen of the device and the target image cannot be completely displayed on the basis of the problem of picture tilting in the rotation process of the device. Specifically, in the present application, the above technical problem is solved by scaling the size of a target image displayed in a screen based on the screen size of a device and the current angle of the device.
In one embodiment, the above step B2 may be implemented as the following steps C1-C2:
in step C1, the maximum size allowed for the target image when displayed in its entirety at the current angle of the device is determined;
in step C2, a control instruction for scaling the target image is generated based on the maximum size allowed for the target image when it is fully displayed at the current angle of the device.
In the embodiment, the maximum size allowed when the target image is completely displayed at the current angle of the equipment is determined; and generating a control instruction for zooming the target image according to the maximum size allowed when the target image is completely displayed at the current angle of the equipment. After the control instruction is executed, the target image is scaled to the situation shown in fig. 5, and as shown in fig. 5, the device continuously generates new control instructions along with the rotation of the device, and dynamically adjusts the target image based on the control instructions, so that the target image can be completely displayed in the screen of the device at the maximum size all the time.
In one embodiment, the step C2 can be implemented as the following steps:
and under the condition that the current angle of the equipment is the target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In this embodiment, in the case where the device is rotated to the target angle, a control instruction for zooming the target image to fit the screen of the device is generated.
For example, assuming that the device is rectangular, the target angle may be that the device is rotated to a position where a designated edge of the screen of the device is parallel or perpendicular to a reference surface such as the ground. The step of scaling the target image to the control instruction adapted to the screen of the device may be to scale the size of the target image to be completely the same as the size of the screen, so that the area where the target image is located is completely overlapped with the area where the screen is located, that is, when the device is located at an angle at which the preset edge of the screen is parallel or perpendicular to the reference surface, full-screen display and complete display can be achieved.
In one embodiment, as shown in FIG. 8, the above step S12 can be implemented as the following steps S81-S83:
in step S81, the maximum display size allowed when the target image is completely displayed at each rotation angle of the apparatus is acquired;
in step S82, the minimum value of all the maximum display sizes is acquired;
in step S83, a control command for scaling the target image is generated based on the minimum value.
In this embodiment, the size of the target image is adjusted only once, and the target image can be completely displayed on the screen of the device when the device rotates to any angle through one-time adjustment. For example, the device corresponds to the maximum display size allowed when a target image is completely displayed at each angle, determines a minimum value from the maximum display sizes allowed when the target image is completely displayed at each angle, and directly adjusts the target image to the minimum value, so that the target image can be completely displayed on the screen of the device no matter the device rotates to any angle.
For example, if the size value corresponding to the four angles of 45 °, 135 °, 225 °, and 315 ° included between the device and the reference surface (e.g., horizontal plane) is the smallest among the maximum display sizes allowed when the target images corresponding to all the angles are completely displayed, a control instruction is generated by taking the size value corresponding to any one of the four angles, and the target image is adjusted to the size value corresponding to any one of the angles of 45 °, 135 °, 225 °, and 315 ° based on the control instruction.
In one embodiment, the above step S11 can be implemented as the following step D1:
in step D1, acquiring the screen size of the device and the current angle of the device;
the above step S12 can be implemented as the following steps D2-D3:
in step D2, determining the minimum size allowed by the target image that enables full-screen display of the device at the current angle;
in step D3, a control instruction for scaling the target image is generated according to the minimum size.
In the above embodiment, a complete display of the target image is ensured, but the embodiment is to solve another problem related in the foregoing, that is, how to ensure a full-screen display of the device, in the embodiment, in a rotation process of the device, a screen size of the device and a current angle of the device are obtained; determining the minimum size allowed by a target image which can enable the device at the current angle to display in a full screen mode based on the screen size and the current angle of the device; and generating a control instruction for scaling the target image according to the minimum size.
As shown in fig. 6, the target image is zoomed to the size shown by the dotted line box in fig. 6, and the area where the target image is located can completely wrap the area where the screen of the device is located without changing the angle of the target image, so that the device can be displayed in a full screen no matter what angle the device is rotated by the target image zooming manner shown in fig. 6.
In one embodiment, the step D3 can be implemented as the following steps:
and under the condition that the current angle of the equipment is the target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In one embodiment, the above steps of generating a control instruction for zooming the target image to fit the screen of the device in the case that the current angle of the device is the target angle may be implemented as the following steps:
and under the condition that the current angle of the equipment is the angle when the preset edge of the screen is parallel to or perpendicular to the reference surface, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In this embodiment, when the current angle of the device is an angle at which the preset edge of the screen is parallel to or perpendicular to the reference surface, a control instruction for zooming the target image to fit the screen of the device is generated, where generating the control instruction for zooming the target image to fit the screen of the device may refer to zooming the size of the target image to be completely the same as the size of the screen, so that the area where the target image is located is completely overlapped with the area where the screen is located, fig. 7 is a case where the device is at the target angle, as shown in fig. 7, when the device is at the angle at which the preset edge of the screen is parallel to or perpendicular to the reference surface, the target image is completely displayed in the device in a full screen, and full screen display of the device can be achieved, and complete display of the target image can also be achieved.
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present application, where the electronic device includes the following modules:
an obtaining module 91, configured to obtain a current parameter of the device when the device rotation is detected;
a generating module 92, configured to generate a control instruction for a target image displayed in a screen of the device according to a current parameter of the device;
and the control module 93 is used for controlling the target image to rotate in the direction opposite to the rotation direction of the equipment according to the control instruction, wherein the rotation speed of the equipment is consistent with the rotation speed of the target image.
In one embodiment, as shown in fig. 10, the obtaining module 91 includes:
the first obtaining submodule 101 is used for obtaining the current rotation speed and the current rotation direction of the equipment;
a generating module 92 comprising:
the first generating submodule 102 is configured to generate a control instruction for rotating the target image in the same rotation speed and the opposite rotation direction according to the current rotation speed and the current rotation direction of the device.
In one embodiment, the obtaining module includes:
the second obtaining submodule is used for obtaining the screen size of the equipment and the current angle of the equipment;
a generation module comprising:
and the second generation submodule is used for generating a control instruction for zooming the target image according to the screen size and the current angle of the equipment.
In one embodiment, the second generation submodule includes:
determining the maximum size allowed by the target image when the target image is completely displayed at the current angle of the equipment;
and generating a control instruction for zooming the target image according to the maximum size allowed when the target image is completely displayed at the current angle of the equipment.
In one embodiment, the generating of the control instruction for scaling the target image according to the maximum size allowed when the target image is completely displayed at the current angle of the device comprises:
and under the condition that the current angle of the equipment is the target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In one embodiment, a generation module includes:
the third acquisition submodule is used for acquiring the maximum display size allowed by the target image when the device is completely displayed at each rotation angle;
the fourth obtaining submodule is used for obtaining the minimum value of all the maximum display sizes;
and the third generation submodule is used for generating a control instruction for scaling the target image according to the minimum value.
In one embodiment, the obtaining module includes:
the fifth obtaining submodule is used for obtaining the screen size of the equipment and the current angle of the equipment;
a generation module comprising:
the determining submodule is used for determining the minimum size allowed by the target image which can enable the device at the current angle to be displayed in a full screen mode;
and the fourth generation submodule is used for generating a control instruction for scaling the target image according to the minimum size.
In one embodiment, the fourth generation submodule includes:
and under the condition that the current angle of the equipment is the target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
In one embodiment, in the case that the current angle of the device is the target angle, generating a control instruction for zooming the target image to fit the screen of the device includes:
and under the condition that the current angle of the equipment is the angle when the preset edge of the screen is parallel to or perpendicular to the reference surface, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. An image display method comprising:
under the condition that the rotation of the equipment is detected, obtaining the current parameters of the equipment;
generating a control instruction for a target image displayed in the screen of the equipment according to the current parameters of the equipment;
and controlling the target image to perform relative rotation opposite to the rotation direction of the equipment according to the control instruction, wherein the rotation speed of the target image is consistent with the rotation speed of the equipment.
2. The method of claim 1, the obtaining current parameters of the device, comprising:
acquiring the current rotating speed and rotating direction of the equipment;
the generating of the control instruction for the target image displayed in the screen of the device according to the current parameters of the device includes:
and generating a control instruction for enabling the target image to rotate at the same rotating speed and in the opposite rotating direction according to the current rotating speed and the rotating direction of the equipment.
3. The method of claim 1, the obtaining current parameters of the device, comprising:
acquiring the screen size of the equipment and the current angle of the equipment;
the generating of the control instruction for the target image displayed in the screen of the device according to the current parameters of the device includes:
and generating a control instruction for zooming the target image according to the screen size and the current angle of the equipment.
4. The method of claim 3, wherein generating a control instruction to zoom the target image based on the screen size and a current angle of the device comprises:
determining the maximum size allowed by the target image when the target image is completely displayed at the current angle of the equipment;
and generating a control instruction for zooming the target image according to the maximum size allowed when the target image is completely displayed at the current angle of the equipment.
5. The method of claim 4, wherein generating the control instruction for zooming the target image according to the maximum size allowed by the target image when the target image is completely displayed at the current angle of the device comprises:
and under the condition that the current angle of the equipment is a target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
6. The method of claim 1, generating control instructions for a target image displayed in the device screen according to current parameters of the device, comprising:
acquiring the maximum display size allowed when the target image is completely displayed under each rotation angle of the equipment;
acquiring the minimum value of all the maximum display sizes;
and generating a control instruction for scaling the target image according to the minimum value.
7. The method of claim 1, the obtaining current parameters of the device, comprising:
acquiring the screen size of the equipment and the current angle of the equipment;
the generating of the control instruction for the target image displayed in the screen of the device according to the current parameters of the device includes:
determining a minimum size allowed by the target image which can enable the device at the current angle to be displayed in a full screen mode;
and generating a control instruction for zooming the target image according to the minimum size.
8. The method of claim 7, the generating control instructions to zoom the target image according to the minimum size comprising:
and under the condition that the current angle of the equipment is a target angle, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
9. The method of claim 5 or 8, wherein generating a control instruction to zoom the target image to fit the screen of the device if the current angle of the device is a target angle comprises:
and under the condition that the current angle of the equipment is the angle when the preset edge of the screen is parallel to or perpendicular to the reference surface, generating a control instruction for zooming the target image to be matched with the screen of the equipment.
10. An electronic device, comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring the current parameters of the device under the condition that the rotation of the device is detected;
the generating module is used for generating a control instruction for the target image displayed in the equipment screen according to the current parameters of the equipment;
and the control module is used for controlling the target image to rotate in the direction opposite to the rotation direction of the equipment according to the control instruction, wherein the rotation speed of the equipment is consistent with the rotation speed of the target image.
CN202011611146.1A 2020-12-30 2020-12-30 Image display method and electronic equipment Pending CN112732148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011611146.1A CN112732148A (en) 2020-12-30 2020-12-30 Image display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011611146.1A CN112732148A (en) 2020-12-30 2020-12-30 Image display method and electronic equipment

Publications (1)

Publication Number Publication Date
CN112732148A true CN112732148A (en) 2021-04-30

Family

ID=75610978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011611146.1A Pending CN112732148A (en) 2020-12-30 2020-12-30 Image display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112732148A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201516842A (en) * 2013-10-31 2015-05-01 Wistron Corp Mobile device and rotating method of image thereon
US20150326789A1 (en) * 2014-05-09 2015-11-12 Canon Kabushiki Kaisha Image pickup apparatus having touch panel, image processing method, and storage medium
CN107728883A (en) * 2017-10-19 2018-02-23 惠州Tcl移动通信有限公司 A kind of adjust automatically desk-top picture calibration method, mobile terminal and storage medium
CN111010476A (en) * 2019-11-13 2020-04-14 北京奇艺世纪科技有限公司 Image display method, device, terminal and readable storage medium
CN112083805A (en) * 2020-09-03 2020-12-15 深圳市雷鸟网络传媒有限公司 Screen picture self-adaptive adjusting method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201516842A (en) * 2013-10-31 2015-05-01 Wistron Corp Mobile device and rotating method of image thereon
US20150326789A1 (en) * 2014-05-09 2015-11-12 Canon Kabushiki Kaisha Image pickup apparatus having touch panel, image processing method, and storage medium
CN107728883A (en) * 2017-10-19 2018-02-23 惠州Tcl移动通信有限公司 A kind of adjust automatically desk-top picture calibration method, mobile terminal and storage medium
CN111010476A (en) * 2019-11-13 2020-04-14 北京奇艺世纪科技有限公司 Image display method, device, terminal and readable storage medium
CN112083805A (en) * 2020-09-03 2020-12-15 深圳市雷鸟网络传媒有限公司 Screen picture self-adaptive adjusting method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
EP1501019A2 (en) Apparatus and method for automatically compensating for an image gradient of a mobile communication terminal
EP2075761B1 (en) Method and device for adjusting output frame
WO2016119301A1 (en) Terminal, and image capturing method and device
WO2021098544A1 (en) Image processing method and apparatus, storage medium and electronic device
JP5092459B2 (en) Remote indication system and program for remote indication system
US20110096095A1 (en) Display device and method for adjusting image on display screen of the same
WO2022083229A1 (en) Image processing method, electronic device, and nonvolatile computer readable storage medium
CN103760980A (en) Display method, system and device for conducting dynamic adjustment according to positions of two eyes
EP4287610A1 (en) Focusing method and apparatus, electronic device, and medium
WO2022116397A1 (en) Virtual viewpoint depth map processing method, device, and apparatus, and storage medium
US20230362477A1 (en) Photographing method and apparatus, electronic device and readable storage medium
CN111240780A (en) Image display method, image display device, display terminal and readable storage medium
KR101897549B1 (en) Apparatus and method for displaying camera view area in a portable terminal
KR102129797B1 (en) Mobile terminal and controlling method thereof
CN110278432B (en) Naked eye 3D display screen 3D parameter manual calibration method and electronic equipment
CN104238983B (en) Control method and electronic equipment
KR20120008191A (en) A method and device for display of mobile device, and mobile device using the same
WO2022111330A1 (en) Image stitching method and apparatus for multi-camera device, storage medium, and terminal
CN112732148A (en) Image display method and electronic equipment
CN105007410A (en) Large viewing angle camera control method and user terminal
US11381734B2 (en) Electronic device and method for capturing an image and displaying the image in a different shape
JP4901981B2 (en) Image processing apparatus, image processing method, and program
CN111683282A (en) Image deformation adaptation method and device
US20210352217A1 (en) Device and method for image display
CN117666895A (en) Method, device, terminal and storage medium for adjusting image angle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210430