WO2017000647A1 - 图片显示方法及装置 - Google Patents

图片显示方法及装置 Download PDF

Info

Publication number
WO2017000647A1
WO2017000647A1 PCT/CN2016/080382 CN2016080382W WO2017000647A1 WO 2017000647 A1 WO2017000647 A1 WO 2017000647A1 CN 2016080382 W CN2016080382 W CN 2016080382W WO 2017000647 A1 WO2017000647 A1 WO 2017000647A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
displayed
display state
display
aspect ratio
Prior art date
Application number
PCT/CN2016/080382
Other languages
English (en)
French (fr)
Inventor
瞿广财
张殿凯
沈琳
王勃飞
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017000647A1 publication Critical patent/WO2017000647A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor

Definitions

  • the present application relates to the field of display technologies, for example, to a picture display method and apparatus.
  • position sensing devices such as gyroscopes
  • the display state of the display screen of the terminal is controlled by the position sensing device.
  • the display picture of the terminal when the screen of the terminal is currently in the vertical screen display state (that is, the width of the current screen display is less than the height), and the width of the currently displayed picture of the terminal is greater than the height, in order to make full use of the screen, the user generally needs to manually Adjusting the position of the terminal to adjust the screen display state of the terminal to the horizontal display state by the position sensing device (ie, the width of the current screen display is greater than the height); or, the screen of the terminal is currently in the horizontal display state, and the terminal is currently displayed.
  • a drawback of the related art is that when displaying a picture with a terminal, the user needs to adjust the display state of the terminal screen by manually adjusting the position of the terminal.
  • the embodiment of the invention provides a picture display method and device, which solves the technical problem that the position of the terminal needs to be adjusted manually to adjust the display state of the terminal screen.
  • a picture display method comprising:
  • the first size information is a first aspect ratio
  • the second size information is a second aspect ratio
  • the determining the to-be-displayed image according to the first size information and the second size information The display status includes:
  • the first aspect ratio is less than 1 and the second aspect ratio is greater than 1, or the first aspect ratio is greater than 1 And the second aspect ratio is less than 1, determining that the display state of the to-be-displayed picture is a rotating display state;
  • the displaying the to-be-displayed image on the display screen according to the determined display state includes:
  • the display state of the to-be-displayed picture is the rotation display state
  • the picture to be displayed is rotated, and the picture to be displayed after the rotation process is displayed.
  • the first size information is a first aspect ratio
  • the second size information is a second aspect ratio
  • the display state includes: determining a display state corresponding to the to-be-displayed picture according to the first aspect ratio and the second aspect ratio;
  • the corresponding display state is a first display state, and a width direction of the picture displayed in the first display state is parallel to a width direction of the display screen;
  • the corresponding display state is a second display state, and a width direction of the picture displayed in the second display state is parallel to a height direction of the display screen;
  • the display state corresponding to the to-be-displayed picture is the first display state or the second display state.
  • the first size information includes a first width and a first height
  • the second size information includes a second width and a second height
  • determining, according to the first size information and the second size information, The display status of the displayed picture includes:
  • the display state corresponding to the larger visible area is determined, and the determined display state is set as the display state of the picture to be displayed.
  • the image display method further includes:
  • the picture to be displayed is displayed on a display screen of the terminal according to a display state associated with the picture to be displayed.
  • a picture display device includes:
  • Obtaining a module configured to obtain first size information of a picture to be displayed and second size information of a display screen of the terminal;
  • a determining module configured to determine a display state of the to-be-displayed picture according to the first size information and the second size information
  • a display module configured to display the to-be-displayed picture on the display screen according to the determined display state.
  • the first size information is a first aspect ratio
  • the second size information is a second aspect ratio
  • the determining module includes:
  • a determining unit configured to determine whether the first aspect ratio is less than 1 and the second aspect ratio is greater than 1, or whether the first aspect ratio is greater than 1 and the second aspect ratio is less than 1;
  • a first determining unit configured to determine that the first aspect ratio is less than 1 and the second aspect ratio is greater than 1, or the first aspect ratio is greater than 1 and the second aspect ratio is less than 1,
  • the display state of the displayed picture is the rotated display state
  • the display module is configured to perform rotation processing on the to-be-displayed image when the display state of the to-be-displayed image is in a rotation display state, and display the to-be-displayed image after the rotation processing.
  • the first size information is a first aspect ratio
  • the second size information is a second aspect ratio
  • the determining module is configured to be according to the first aspect ratio and the second width and height. Determining a display state corresponding to the picture to be displayed;
  • the corresponding display state is a first display state, wherein a width direction of the picture displayed in the first display state is parallel to a width direction of the display screen;
  • the corresponding display state is a second display state, wherein a width direction of the picture displayed in the second display state is parallel to a height direction of the display screen;
  • the display state corresponding to the to-be-displayed picture is the first display state or the second display state.
  • the first size information includes a first width and a first height
  • the second size information includes a second width and a second height
  • the determining module includes:
  • a second determining unit configured to determine, according to the first width, the first height, the second width, and the second height, a first visible area corresponding to the to-be-displayed picture in the first display state, and a second display a second visible area corresponding to the state, wherein a width direction of the picture displayed in the first display state is parallel to a width direction of the display screen, and a width direction of the picture displayed in the second display state is parallel to the Display the height direction of the screen;
  • the setting unit is configured to determine a display state corresponding to the larger visible area in the determined visible area, and set the determined display state to the display state of the to-be-displayed picture.
  • the picture display device further includes:
  • a saving module configured to save an association relationship between the to-be-displayed image and the determined display state
  • the determining module is configured to: when the image display instruction is detected, determine whether the display state associated with the to-be-displayed picture corresponding to the picture display instruction is saved;
  • the acquiring module is configured to acquire first size information of a to-be-displayed picture and second size information of a display screen of the terminal when there is no display state associated with the to-be-displayed picture;
  • the display module is configured to display the to-be-displayed picture on a display screen of the terminal according to a display state associated with the to-be-displayed picture when there is a display state associated with the to-be-displayed picture.
  • a computer storage medium storing computer executable instructions arranged to perform the above method.
  • the image display method and device provided by the embodiment of the present invention obtain the first size information of the picture to be displayed and the second size information of the display screen of the terminal, and determine the to-be-set according to the first size information and the second size information. Displaying a display state of the picture, and displaying the picture to be displayed on the display screen according to the determined display state, so that when the user views the picture through the terminal, the screen display state of the terminal does not need to be manually adjusted, and the terminal can automatically Image size information and terminal display screen
  • the size information determines the corresponding display state, and displays the picture according to the determined display state, thereby eliminating the need to control the display state of the display screen by the position sensor, and avoiding that the position sensor cannot control the display state of the terminal display screen when the terminal is placed horizontally
  • the defect enables the terminal to automatically determine the display state corresponding to the terminal display screen when the terminal is placed horizontally.
  • FIG. 1 is a schematic flowchart of a first embodiment of a picture display method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a process of determining a display state in a fourth embodiment of a picture display method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a sixth embodiment of a picture display method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of a picture display device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a refinement function module of a determining module in a fourth embodiment of a picture display device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a sixth embodiment of a picture display device according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a first embodiment of a picture display method according to an embodiment of the present invention.
  • Step S10 acquiring first size information of a picture to be displayed and second size information of a display screen of the terminal;
  • the terminal may be a mobile terminal, for example, but not limited to a mobile phone, a tablet computer, or the like.
  • Step S10 may be performed when a picture display instruction is detected. Step S10 may also be performed when the picture stored by the terminal is acquired. For example, when it is detected that the photo shooting is completed, the photograph taken is taken as the image to be displayed, and step S10 is performed.
  • the first size information may be information such as a width, a height, and/or an aspect ratio of the picture to be displayed; and the second size information may be information such as a width, a height, and/or an aspect ratio of the display screen of the terminal. It should be noted that the above second size information can be obtained directly through the system parameters of the terminal.
  • Step S20 determining a display state of the to-be-displayed picture according to the first size information and the second size information
  • the display state of the picture to be displayed includes a first display state and a second display state, wherein a width direction of the picture displayed in the first display state is parallel to a width direction of the display screen, and in a second The width direction of the picture displayed in the display state is parallel to the height direction of the display screen.
  • the manner of determining the display state of the picture to be displayed may be selected according to actual needs, as long as the picture to be displayed has the largest visible area in the display state. For example, if the determined display state is the first display state, the visible area of the to-be-displayed picture in the first display state is greater than the viewable area of the to-be-displayed picture in the second display state.
  • the visible area of the picture to be displayed in the determined display state is the area of the display screen occupied by the picture when the picture is displayed on the display screen.
  • the aspect ratio of the picture to be displayed and the aspect ratio of the display screen can be determined, and the width and height of the picture to be displayed and the width and height of the display screen can be used to determine the display state, which can be performed according to actual needs. Choice, no limit here.
  • the picture to be displayed can be made to have the largest visible area in the determined display state.
  • Step S30 displaying the to-be-displayed picture on the display screen according to the determined display state.
  • the picture display program of the terminal can be directly called to display the picture to be displayed, and the picture display program of the terminal includes two types, one is a direct display program, that is, a picture called by directly displaying the program is displayed in the process.
  • the width direction is parallel to the width direction of the display screen; the other is the rotation display program, that is, the picture called by the rotation display program is in the display process, and its width direction is parallel to the height direction of the display screen.
  • the image display method provided by the embodiment of the present invention obtains the first size information of the picture to be displayed and the second size information of the display screen of the terminal, and determines the picture to be displayed according to the first size information and the second size information. And displaying the to-be-displayed picture on the display screen according to the determined display state, so that when the user views the picture through the terminal, the screen display state of the terminal does not need to be manually adjusted, and the terminal can automatically according to the picture.
  • the size information and the size information of the terminal display screen determine the corresponding display state, and display the image according to the determined display state, thereby eliminating the need to pass
  • the position sensor control terminal displays the display state of the screen, and avoids the defect that the position sensor cannot control the display state of the terminal display screen when the terminal is placed horizontally, so that the terminal can automatically determine the display state corresponding to the terminal display screen when the terminal is horizontally placed.
  • the embodiment of the present invention further provides a second embodiment of the picture display method.
  • the first size information is a first aspect ratio.
  • the second size information is the second aspect ratio, and the step S20 includes:
  • Determining that the display state of the to-be-displayed picture is rotation when the first aspect ratio is less than 1 and the second aspect ratio is greater than 1, or the first aspect ratio is greater than 1 and the second aspect ratio is less than 1. Display state;
  • the first aspect ratio and the second aspect ratio are both greater than 1, or the first aspect ratio and the second aspect ratio are both less than 1, determining that the display state of the to-be-displayed picture is a direct display state .
  • the display state of the to-be-displayed picture is a rotating display state or a direct display state, that is, a display corresponding to the picture to be displayed at this time
  • the status can be either a rotated display state or a direct display state.
  • Step S30 includes: performing rotation processing on the to-be-displayed image when the display state of the to-be-displayed image is in a rotation display state, and displaying the to-be-displayed image after the rotation processing.
  • the display state of the to-be-displayed picture is a direct display state
  • the picture to be displayed is directly displayed. That is, the picture to be displayed is displayed directly through the system picture display program.
  • the picture display method provided in this embodiment can automatically and automatically determine the display state of the picture according to the aspect ratio.
  • the embodiment of the present invention further provides a third embodiment of the picture display method.
  • the first size information is a first aspect ratio.
  • the second size information is the second aspect ratio, and the step S20 includes: determining a display state corresponding to the to-be-displayed picture according to the first aspect ratio and the second aspect ratio;
  • the corresponding display state is a first display state, and a width direction of the picture displayed in the first display state is parallel to a width direction of the display screen;
  • the first aspect ratio is the ratio between the width and the height of the picture to be displayed
  • the second aspect ratio is the ratio between the width and the height of the display screen
  • the corresponding display state is a second display state, and a width direction of the picture displayed in the second display state is parallel to a height direction of the display screen;
  • the display state corresponding to the to-be-displayed picture is the first display state or the second display state. That is, the display state corresponding to the picture to be displayed at this time may be either the first display state or the second display state.
  • the picture display method provided in this embodiment can automatically and automatically determine the display state of the picture according to the aspect ratio.
  • the embodiment of the present invention further provides a fourth embodiment of the picture display method.
  • the first size information includes a first width and a first height.
  • the second size information includes a second width and a second height.
  • FIG. 2 is a schematic flowchart of a step of determining a display state in a fourth embodiment of a picture display method according to an embodiment of the present invention.
  • Step S20 includes:
  • Step S21 determining, according to the first width, the first height, the second width, and the second height, respectively, the first visible area corresponding to the to-be-displayed picture in the first display state and the corresponding in the second display state.
  • Second visible area The width direction of the picture displayed in the first display state is parallel to the width direction of the display screen, and the width direction of the picture displayed in the second display state is parallel to the height direction of the display screen;
  • the way to calculate the first viewable area and the second viewable area is as follows:
  • the second viewable area is: Wherein W 1 represents a first width, H 1 represents the first height, W 2 represents a second width, and H 2 represents the second height.
  • the ratio of the first height of the picture to be displayed to the first width is smaller than the ratio of the second height of the display screen to the second width.
  • the display width of the picture to be displayed Is equal to the width of the display screen, that is, the display width of the to-be-displayed image is equal to the second width, and the display height of the to-be-displayed image is equal to the ratio between the product between the second width and the first height and the first width, and therefore, the image to be displayed
  • the corresponding first visible area is Similarly, in the second display state, the second visible area corresponding to the picture to be displayed is
  • the second viewable area is: Wherein W 1 represents a first width, H 1 represents the first height, W 2 represents a second width, and H 2 represents the second height.
  • the ratio of the first height of the picture to be displayed to the first width is greater than or equal to the ratio of the second height of the display screen to the second width.
  • the picture to be displayed is The display height is equal to the height of the display screen, that is, the display height of the to-be-displayed image is equal to the second height, and the display width of the to-be-displayed image is equal to the ratio between the product between the first width and the second height and the first height, and therefore,
  • the first visible area corresponding to the displayed image is Similarly, in the second display state, the second visible area corresponding to the picture to be displayed is
  • the first visible area and the second visible area may also be determined according to the mode (1).
  • step S22 in the determined visible area, the display state corresponding to the larger visible area is determined, and the determined display state is set as the display state of the picture to be displayed.
  • the first display state corresponding to the first visible area is set as the picture to be displayed. Display state.
  • the picture display method provided in this embodiment can automatically and automatically determine the display state of the picture according to the width and height information of the picture to be displayed and the display screen.
  • the embodiment of the present invention further provides a fifth embodiment of the picture display method.
  • the first size information includes a first width and a first height.
  • the second size information includes a second width and a second height, and step S20 includes:
  • the display state corresponding to the display picture is the second display state
  • the first width is equal to the first height, or the second width is equal to the second height, determining that the display state corresponding to the to-be-displayed picture is the first display state or the second display state.
  • the picture display method provided in this embodiment can automatically and automatically determine the display state of the picture according to the width and height information of the picture to be displayed and the display screen.
  • FIG. 3 is an embodiment of the present invention.
  • a flow chart of the sixth embodiment of the present invention, after the step S30, the image display method further includes:
  • Step S40 saving an association relationship between the to-be-displayed picture and the determined display state
  • the picture display method further includes:
  • Step S50 when detecting a picture display instruction, determining whether a display state associated with the picture to be displayed corresponding to the picture display instruction is saved;
  • step S10 When there is no display state associated with the picture to be displayed, step S10 is performed; when there is a display state associated with the picture to be displayed, step S60 is performed;
  • Step S60 Display the picture to be displayed on the display screen of the terminal according to the display state associated with the picture to be displayed.
  • the association relationship between the to-be-displayed image and the determined display state may be saved, for example, between the image identifier to be displayed and the corresponding display state may be saved.
  • connection relation may be a relationship table between the picture to be displayed and the display state, or based on the identifier of the picture to be displayed. For example, a flag may be established for the picture to be displayed, and the flag may be divided into two types, one of which is a first flag bit corresponding to the first display state, and a second flag bit corresponding to the second display state.
  • the display state corresponding to the picture to be displayed After determining the display state corresponding to the picture to be displayed, saving the corresponding flag based on the to-be-displayed picture Bit. Therefore, when the picture is displayed again, it is first determined whether there is a display state associated with the picture to be displayed corresponding to the picture display instruction, and when present, the display state corresponding to the picture is determined according to the pre-stored association relationship, and then the root is further determined. The picture is displayed according to the determined display state, so that it is not necessary to determine the display state according to the size information of the picture to be displayed and the size information of the screen of the terminal each time the picture is displayed, thereby improving the efficiency.
  • Embodiments of the present invention provide a picture display device.
  • FIG. 4 is a schematic diagram of a functional module of a first embodiment of a picture display device according to an embodiment of the present invention.
  • the picture display device provided by the embodiment of the present invention includes:
  • the obtaining module 10 is configured to obtain first size information of a picture to be displayed and second size information of a display screen of the terminal;
  • the terminal may be a mobile terminal, for example, but not limited to a mobile phone, a tablet computer, or the like.
  • the acquiring module 10 obtains the first size information of the picture to be displayed and the second size information of the display screen of the terminal when the picture display instruction is detected.
  • the acquiring module 10 obtains the first size information of the to-be-displayed picture and the second size information of the display screen of the terminal, when the picture stored by the terminal is acquired. For example, when it is detected that the photo shooting is completed, the photograph taken is taken as the image to be displayed, and the obtaining module 10 acquires the first size information of the image to be displayed and the second size information of the display screen of the terminal.
  • the first size information may be information such as a width, a height, and/or an aspect ratio of the picture to be displayed; and the second size information may be information such as a width, a height, and/or an aspect ratio of the display screen of the terminal. It should be noted that the above second size information can be obtained directly through the system parameters of the terminal.
  • the determining module 20 is configured to determine a display state of the to-be-displayed picture according to the first size information and the second size information;
  • the display state of the picture to be displayed includes a first display state and a second display state, wherein a width direction of the picture displayed in the first display state is parallel to a width direction of the display screen, and in a second The width direction of the picture displayed in the display state is parallel to the height direction of the display screen.
  • the specific manner of determining the display state of the picture to be displayed may be selected according to actual needs, as long as the picture to be displayed has the largest visible area in the display state. For example, if the determined display state is the first display state, the visible area of the to-be-displayed picture in the first display state is greater than the viewable area of the to-be-displayed picture in the second display state.
  • the visible area of the picture to be displayed in the determined display state is the area of the display screen occupied by the picture when the picture is displayed on the display screen.
  • the display state can be determined by using the width and height of the image to be displayed and the width and height of the display screen, and can be selected according to actual needs, which is not limited herein.
  • the picture to be displayed can be made to have the largest visible area in the determined display state.
  • the display module 30 is configured to display the to-be-displayed picture on the display screen according to the determined display state.
  • the picture display program of the terminal can be directly called to display the picture to be displayed, and the picture display program of the terminal includes two types, one is a direct display program, that is, a picture called by directly displaying the program is displayed in the process.
  • the width direction is parallel to the width direction of the display screen; the other is the rotation display program, that is, the picture called by the rotation display program is in the display process, and its width direction is parallel to the height direction of the display screen.
  • the picture display device obtaineds the first size information of the picture to be displayed and the second size information of the display screen of the terminal, and determines the picture to be displayed according to the first size information and the second size information. And displaying the to-be-displayed picture on the display screen according to the determined display state, so that when the user views the picture through the terminal, the screen display state of the terminal does not need to be manually adjusted, and the terminal can automatically according to the picture.
  • the size information and the size information of the terminal display screen determine the corresponding display state, and display the picture according to the determined display state, thereby eliminating the need to control the display state of the display screen by the position sensor, and avoiding that the position sensor cannot be controlled when the terminal is placed horizontally
  • the terminal displays a defect of the display state of the screen, so that the terminal can automatically determine the display state corresponding to the terminal display screen when the terminal is horizontally placed.
  • the embodiment of the present invention further provides a second embodiment of the picture display device.
  • the first size information is a first aspect ratio.
  • the second size information is a second aspect ratio, and the determining module 10 includes:
  • a determining unit configured to determine whether the first aspect ratio is less than 1 and the second aspect ratio is greater than 1, or whether the first aspect ratio is greater than 1 and the second aspect ratio is less than 1;
  • a first determining unit configured to determine that the first aspect ratio is less than 1 and the second aspect ratio is greater than 1, or the first aspect ratio is greater than 1 and the second aspect ratio is less than 1,
  • the display state of the displayed picture is the rotated display state
  • the first determining unit is configured to determine the to-be-displayed picture when both the first aspect ratio and the second aspect ratio are greater than 1, or both the first aspect ratio and the second aspect ratio are less than 1.
  • the display status is the direct display status.
  • the first determining unit is configured to determine that the display state of the to-be-displayed picture is a rotating display state or a direct display state when the first aspect ratio is equal to 1 or the second aspect ratio is equal to 1. That is, the display state corresponding to the picture to be displayed at this time may be either a rotating display state or a direct display state.
  • the display module 30 is configured to perform rotation processing on the to-be-displayed image when the display state of the to-be-displayed image is in a rotation display state, and display the to-be-displayed image after the rotation processing.
  • the display state of the to-be-displayed picture is a direct display state
  • the picture to be displayed is directly displayed. That is, the picture to be displayed is displayed directly through the system picture display program.
  • the picture display device provided in this embodiment can automatically and automatically determine the display state of the picture according to the aspect ratio.
  • the embodiment of the present invention further provides a third embodiment of the picture display device.
  • the first size information is a first aspect ratio.
  • the second size information is a second aspect ratio, and the determining module 20 is configured to: determine a display state corresponding to the to-be-displayed picture according to the first aspect ratio and the second aspect ratio;
  • the corresponding display state is a first display state, wherein a width direction of the picture displayed in the first display state is parallel to a width direction of the display screen;
  • the first aspect ratio is the ratio between the width and the height of the picture to be displayed
  • the second aspect ratio is the ratio between the width and the height of the display screen
  • the corresponding display state is a second display state, wherein a width direction of the picture displayed in the second display state is parallel to a height direction of the display screen;
  • the display state corresponding to the to-be-displayed picture is the first display state or the second display state. That is, the display state corresponding to the picture to be displayed at this time may be either the first display state or the second display state.
  • the picture display device provided in this embodiment can automatically determine the picture more effectively according to the aspect ratio. Display status.
  • the embodiment of the present invention further provides a fourth embodiment of the picture display device.
  • the first size information includes a first width and a first height.
  • the second size information includes a second width and a second height.
  • FIG. 5 is a schematic diagram of a refinement function module of the determining module in the fourth embodiment of the picture display device according to the embodiment of the present invention.
  • the determining module 20 includes:
  • the second determining unit 21 is configured to determine, according to the first width, the first height, the second width, and the second height, a first visible area corresponding to the to-be-displayed picture in the first display state, and a second a second visible area corresponding to the display state, wherein a width direction of the picture displayed in the first display state is parallel to a width direction of the display screen, and a width direction of the picture displayed in the second display state is parallel to the The height direction of the display screen;
  • the way to calculate the first viewable area and the second viewable area is as follows:
  • the second viewable area is: Wherein, W 1 represents a first width, H 1 represents the first height, W 2 represents a second width, H 2 represents the second height.
  • the ratio of the first height of the picture to be displayed to the first width is smaller than the ratio of the second height of the display screen to the second width.
  • the display width of the picture to be displayed Is equal to the width of the display screen, that is, the display width of the to-be-displayed image is equal to the second width, and the display height of the to-be-displayed image is equal to the ratio between the product between the second width and the first height and the first width, and therefore, the image to be displayed
  • the corresponding first visible area is Similarly, in the second display state, the second visible area corresponding to the picture to be displayed is
  • the second viewable area is: Wherein W 1 represents a first width, H 1 represents the first height, W 2 represents a second width, and H 2 represents the second height.
  • the ratio of the first height of the picture to be displayed to the first width is greater than or equal to the ratio of the second height of the display screen to the second width.
  • the picture to be displayed is The display height is equal to the height of the display screen, that is, the display height of the to-be-displayed image is equal to the second height, and the display width of the to-be-displayed image is equal to the ratio between the product between the first width and the second height and the first height, and therefore,
  • the first visible area corresponding to the displayed image is Similarly, in the second display state, the second visible area corresponding to the picture to be displayed is
  • the first visible area and the second visible area may also be determined according to the mode (1).
  • the setting unit 22 is configured to determine, in the determined visible area, a display state corresponding to the larger visible area, and set the determined display state to the display state of the picture to be displayed.
  • the first display state corresponding to the first visible area is set as the picture to be displayed. Display state.
  • the picture display device provided in this embodiment can automatically determine the display state of the picture more effectively according to the width and height information of the picture to be displayed and the display screen.
  • the embodiment of the present invention further provides a fifth embodiment of the picture display device.
  • the first size information includes a first width and a first height.
  • the second size information includes a second width and a second height, and the determining module 20 can be set to:
  • the display state corresponding to the display picture is the first display state
  • the display state corresponding to the display picture is the second display state
  • the first width is equal to the first height, or the second width is equal to the second height, determining that the display state corresponding to the to-be-displayed picture is the first display state or the second display state.
  • the picture display device provided in this embodiment can be based on the width of the picture to be displayed and the display screen.
  • the height information automatically determines the display state of the picture more automatically.
  • FIG. 6 is an embodiment of the present invention.
  • the saving module 40 is configured to save an association relationship between the to-be-displayed picture and the determined display state
  • the determining module 50 is configured to determine, when the image display instruction is detected, whether a display state associated with the to-be-displayed picture corresponding to the picture display instruction is saved;
  • the acquiring module 10 is configured to acquire first size information of a to-be-displayed picture and second size information of a display screen of the terminal when there is no display state associated with the to-be-displayed picture;
  • the display module 30 is configured to display the to-be-displayed picture on the display screen of the terminal according to the display state associated with the to-be-displayed picture when there is a display state associated with the to-be-displayed picture.
  • the display module 30 is configured to display the to-be-displayed picture according to a display state associated with the to-be-displayed picture when detecting a picture display instruction based on the picture to be displayed.
  • the association relationship between the to-be-displayed image and the determined display state may be saved, for example, between the image identifier to be displayed and the corresponding display state may be saved.
  • connection relation may be a relationship table between the picture to be displayed and the display state, or based on the identifier of the picture to be displayed. For example, a flag may be established for the picture to be displayed, and the flag may be divided into two types, one of which is a first flag bit corresponding to the first display state, and a second flag bit corresponding to the second display state.
  • the display state corresponding to the picture to be displayed After determining the display state corresponding to the picture to be displayed, saving the corresponding flag based on the to-be-displayed picture Bit. Therefore, when the picture is displayed again, it is first determined whether there is a display state associated with the picture to be displayed corresponding to the picture display instruction, and when present, the display state corresponding to the picture is determined according to the pre-stored association relationship, and then determined according to the determination.
  • the display state displays the picture, so that it is not necessary to determine the display state according to the size information of the picture to be displayed and the size information of the screen of the terminal each time the picture is displayed, thereby improving the efficiency.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, disk). And an optical disk, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present invention.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for performing the method of the above embodiment.
  • the embodiment of the invention further provides a user equipment, comprising a memory and at least one processor, wherein the memory stores instructions executable by the processor, the instructions being used to execute the method described in the above embodiments.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, embodiments of the present invention may be implemented by hardware, software, or in combination with software and hardware. Moreover, embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the terminal when the user uses the terminal to view the picture, the user does not need to manually adjust the screen display state of the terminal, and the terminal can automatically determine the corresponding display state according to the size information of the picture and the size information of the terminal display screen, and determine according to the determination.
  • the display state displays a picture, so that the display state of the display screen of the terminal is not required to be controlled by the position sensor, and the defect that the position sensor cannot control the display state of the display screen of the terminal when the terminal is placed horizontally is avoided, so that the terminal can automatically be automatically placed horizontally. Determine the display status corresponding to the terminal display screen.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种图片显示方法,包括:获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态;以及根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片。

Description

图片显示方法及装置 技术领域
本申请涉及显示技术领域,例如涉及一种图片显示方法及装置。
背景技术
目前,很多终端上会内置位置感应装置(例如陀螺仪),通过位置感应装置控制终端显示屏幕的显示状态。以利用终端显示图片为例,在终端的屏幕当前处于纵屏显示状态(即当前屏幕显示的宽度小于高度),且终端当前显示的图片的宽度大于高度时,为了充分利用屏幕,用户一般需要手动调整终端的位置,以通过位置感应装置将终端的屏幕显示状态调整为横屏显示状态(即当前屏幕显示的宽度大于高度);或者,在终端的屏幕当前处于横屏显示状态,且终端当前显示的图片的宽度小于高度时,用户一般需要手动调整终端的位置,以通过位置感应装置将终端的屏幕显示状态调整为纵屏显示状态。相关技术的缺陷在于,在利用终端显示图片时,用户需要通过手动调节终端的位置以调整终端屏幕的显示状态。
发明内容
本发明实施例的提供一种图片显示方法及装置,解决了需要通过手动调节终端的位置以调整终端屏幕的显示状态的技术问题。
一种图片显示方法,包括:
获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态;以及
根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片。
可选地,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态包括:
判断是否所述第一宽高比小于1且第二宽高比大于1,或者是否所述第一宽高比大于1且所述第二宽高比小于1;
在所述第一宽高比小于1且第二宽高比大于1,或者所述第一宽高比大于1 且第二宽高比小于1时,确定所述待显示图片的显示状态为旋转显示状态;
所述根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片包括:
在所述待显示图片的显示状态为旋转显示状态时,对所述待显示图片进行旋转处理,并显示旋转处理后的待显示图片。
可选地,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态包括:根据所述第一宽高比和第二宽高比确定所述待显示图片对应的显示状态;
在所述第一宽高比小于1且所述第二宽高比小于1时,或者所述第一宽高比大于1且所述第二宽高比大于1时,确定所述待显示图片对应的显示状态为第一显示状态,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向;
在所述第一宽高比小于1且所述第二宽高比大于1时,或者所述第一宽高比大于1且所述第二宽高比小于1时,确定所述待显示图片对应的显示状态为第二显示状态,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;以及
在所述第一宽高比等于1或所述第二宽高比等于1时,确定所述待显示图片对应的显示状态为第一显示状态或第二显示状态。
可选地,所述第一尺寸信息包括第一宽度和第一高度,所述第二尺寸信息包括第二宽度和第二高度,所述根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态包括:
根据所述第一宽度、第一高度、第二宽度和第二高度分别确定所述待显示图片在第一显示状态下对应的第一可视面积和在第二显示状态下对应的第二可视面积,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;以及
在确定的可视面积中,确定较大的可视面积对应的显示状态,并将确定的显示状态设置为所述待显示图片的显示状态。
可选地,所述根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片之后,所述图片显示方法还包括:
保存所述待显示图片与确定的显示状态之间的关联关系;
在侦测到图片显示指令时,判断是否保存有与所述图片显示指令对应的待显示图片关联的显示状态;
在不存在与所述待显示图片关联的显示状态时,所述获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
在存在与所述待显示图片关联的显示状态时,根据与所述待显示图片关联的显示状态在终端的显示屏幕上显示所述待显示图片。
一种图片显示装置包括:
获取模块,设置为获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
确定模块,设置为根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态;以及
显示模块,设置为根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片。
可选地,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述确定模块包括:
判断单元,设置为判断是否所述第一宽高比小于1且第二宽高比大于1,或者是否所述第一宽高比大于1且所述第二宽高比小于1;
第一确定单元,设置为在所述第一宽高比小于1且第二宽高比大于1,或者所述第一宽高比大于1且第二宽高比小于1时,确定所述待显示图片的显示状态为旋转显示状态;
所述显示模块是设置为在所述待显示图片的显示状态为旋转显示状态时,对所述待显示图片进行旋转处理,并显示旋转处理后的待显示图片。
可选地,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述确定模块是设置为根据所述第一宽高比和第二宽高比确定所述待显示图片对应的显示状态;
在所述第一宽高比小于1且所述第二宽高比小于1时,或者所述第一宽高比大于1且所述第二宽高比大于1时,确定所述待显示图片对应的显示状态为第一显示状态,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向;
在所述第一宽高比小于1且所述第二宽高比大于1时,或者所述第一宽高比大于1且所述第二宽高比小于1时,确定所述待显示图片对应的显示状态为第二显示状态,其中,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;以及
在所述第一宽高比等于1或所述第二宽高比等于1时,确定所述待显示图片对应的显示状态为第一显示状态或第二显示状态。
可选地,所述第一尺寸信息包括第一宽度和第一高度,所述第二尺寸信息包括第二宽度和第二高度,所述确定模块包括:
第二确定单元,设置为根据所述第一宽度、第一高度、第二宽度和第二高度分别确定所述待显示图片在第一显示状态下对应的第一可视面积和在第二显示状态下对应的第二可视面积,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;以及
设置单元,设置为在确定的可视面积中,确定较大的可视面积对应的显示状态,并将确定的显示状态设置为所述待显示图片的显示状态。
可选地,所述图片显示装置还包括:
保存模块,设置为保存所述待显示图片与确定的显示状态之间的关联关系;
判断模块,设置为在侦测到图片显示指令时,判断是否保存有与所述图片显示指令对应的待显示图片关联的显示状态;
所述获取模块是设置为在不存在与所述待显示图片关联的显示状态时,获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
所述显示模块是设置为在存在与所述待显示图片关联的显示状态时,根据与所述待显示图片关联的显示状态在终端的显示屏幕上显示所述待显示图片。
一种计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述方法。
本发明实施例提供的图片显示方法及装置,通过获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息,并根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态,再根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片,从而在用户通过终端查看图片时,不需要手动调节终端的屏幕显示状态,终端能够自动根据图片的尺寸信息和终端显示屏幕 的尺寸信息确定对应的显示状态,并根据确定的显示状态显示图片,从而不需要通过位置传感器控制终端显示屏幕的显示状态,并且避免了终端在水平放置时位置传感器无法控制终端显示屏幕的显示状态的缺陷,使得终端在水平放置时仍能够自动确定终端显示屏幕对应的显示状态。
附图说明
图1为本发明实施例图片显示方法第一实施例的流程示意图;
图2为本发明实施例图片显示方法第四实施例中确定显示状态步骤的细化流程示意图;
图3为本发明实施例图片显示方法第六实施例的流程示意图;
图4为本发明实施例图片显示装置第一实施例的功能模块示意图;
图5为本发明实施例图片显示装置第四实施例中确定模块的细化功能模块示意图;
图6为本发明实施例图片显示装置第六实施例的功能模块示意图。
实施方式
应当理解,此处所描述的实施例仅仅用以解释本申请,并不用于限定本申请。
本发明实施例提供一种图片显示方法,参照图1,图1为本发明实施例图片显示方法第一实施例的流程示意图,本发明实施例提出的图片显示方法包括:
步骤S10,获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
在本实施例中,上述终端可选为移动终端,例如,可以为但不限于手机、平板电脑等。
可以在侦测到图片显示指令时,执行步骤S10。也可以在获取到终端存储的图片时,执行步骤S10。例如,在侦测到照片拍摄完成时,即可以将拍摄完成的照片作为待显示图片,并执行步骤S10。
上述第一尺寸信息可以为待显示图片的宽度、高度和/或宽高比等信息;上述第二尺寸信息可以为终端的显示屏幕的宽度、高度和/或宽高比等信息。应当说明的是,上述第二尺寸信息可以直接通过终端的系统参数获得。
步骤S20,根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态;
在本实施例中,待显示图片的显示状态包括第一显示状态和第二显示状态,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向。
确定待显示图片的显示状态的方式可以根据实际需要进行选择,只要能够保证待显示图片在该显示状态下具有最大的可视面积即可。例如,若确定的显示状态为第一显示状态,则待显示图片在第一显示状态下的可视面积大于该待显示图片在第二显示状态下的可视面积。
上述待显示图片在确定的显示状态下的可视面积即为:在显示屏幕显示该图片时,该图片所占用的显示屏幕的面积。
在确定显示状态时,可以利用待显示图片的宽高比和显示屏幕的宽高比确定,还可以利用待显示图片的宽度、高度以及显示屏幕的宽度、高度确定显示状态,可以根据实际需要进行选择,在此不作限定。可选地,在确定待显示图片的显示状态时,只要能够使得待显示图片在确定的显示状态下具有最大的可视面积即可。
步骤S30,根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片。
在本实施例中,可以直接调用终端的图片显示程序显示所述待显示图片,终端的图片显示程序包括两种,一种是直接显示程序,即通过直接显示程序调用的图片在显示过程中,其宽度方向平行于显示屏幕的宽度方向;另一种是旋转显示程序,即通过旋转显示程序调用的图片在显示过程中,其宽度方向平行于显示屏幕的高度方向。在确定的显示状态为第一显示状态时,则调用所述直接显示程序显示所述待显示图片;在确定的显示状态为第二显示状态时,则调用所述旋转显示程序显示所述待显示图片。
本发明实施例提供的图片显示方法,通过获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息,并根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态,再根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片,从而在用户通过终端查看图片时,不需要手动调节终端的屏幕显示状态,终端能够自动根据图片的尺寸信息和终端显示屏幕的尺寸信息确定对应的显示状态,并根据确定的显示状态显示图片,从而不需要通过 位置传感器控制终端显示屏幕的显示状态,并且避免了终端在水平放置时位置传感器无法控制终端显示屏幕的显示状态的缺陷,使得终端在水平放置时仍能够自动确定终端显示屏幕对应的显示状态。
可选地,基于上述图片显示方法的第一实施例,本发明实施例还提出图片显示方法的第二实施例,在本实施例中,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,步骤S20包括:
判断是否所述第一宽高比小于1且第二宽高比大于1,或者是否所述第一宽高比大于1且所述第二宽高比小于1;
在所述第一宽高比小于1且第二宽高比大于1,或者所述第一宽高比大于1且第二宽高比小于1时,确定所述待显示图片的显示状态为旋转显示状态;
可选地,在第一宽高比和第二宽高比均大于1,或者第一宽高比和第二宽高比均小于1时,确定所述待显示图片的显示状态为直接显示状态。
在所述第一宽高比等于1或所述第二宽高比等于1时,确定所述待显示图片的显示状态为旋转显示状态或直接显示状态,即,此时待显示图片对应的显示状态既可以为旋转显示状态,也可以为直接显示状态。
步骤S30包括:在所述待显示图片的显示状态为旋转显示状态时,对所述待显示图片进行旋转处理,并显示旋转处理后的待显示图片。
可选地,在所述待显示图片的显示状态为直接显示状态时,则直接显示待显示图片。即直接通过系统图片显示程序显示待显示图片。
本实施例提供的图片显示方法,能够根据宽高比更加有效地自动确定图片的显示状态。
可选地,基于上述图片显示方法的第一实施例,本发明实施例还提出图片显示方法的第三实施例,在本实施例中,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,步骤S20包括:根据第一宽高比和第二宽高比确定所述待显示图片对应的显示状态;
在所述第一宽高比小于1且所述第二宽高比小于1时,或者所述第一宽高比大于1且所述第二宽高比大于1时,确定所述待显示图片对应的显示状态为第一显示状态,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向;
在本实施例中,第一宽高比即为待显示图片的宽度与高度之间的比值,第二宽高比即为显示屏幕的宽度与高度之间的比值。
在所述第一宽高比小于1且所述第二宽高比大于1时,或者所述第一宽高比大于1且所述第二宽高比小于1时,确定所述待显示图片对应的显示状态为第二显示状态,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;
在所述第一宽高比等于1或所述第二宽高比等于1时,确定所述待显示图片对应的显示状态为第一显示状态或第二显示状态。即,此时待显示图片对应的显示状态既可以为第一显示状态,也可以为第二显示状态。
本实施例提供的图片显示方法,能够根据宽高比更加有效地自动确定图片的显示状态。
可选地,基于上述图片显示方法的第一实施例,本发明实施例还提出图片显示方法的第四实施例,在本实施例中,所述第一尺寸信息包括第一宽度和第一高度,所述第二尺寸信息包括第二宽度和第二高度,参照图2,图2为本发明实施例图片显示方法第四实施例中确定显示状态步骤的细化流程示意图,步骤S20包括:
步骤S21,根据所述第一宽度、第一高度、第二宽度和第二高度分别确定所述待显示图片在第一显示状态下对应的第一可视面积和在第二显示状态下对应的第二可视面积。其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;
计算第一可视面积和第二可视面积的方式如下:
(1)在
Figure PCTCN2016080382-appb-000001
时,所述第一可视面积为:
Figure PCTCN2016080382-appb-000002
所述第二可视面积为:
Figure PCTCN2016080382-appb-000003
其中,W1表示第一宽度,H1表示所述第一高度,W2表示第二宽度,H2表示所述第二高度。
在本实施例中,即待显示图片的第一高度与第一宽度的比值小于显示屏幕的第二高度与第二宽度的比值,此时,在第一显示状态下,待显示图片的显示宽度等于显示屏幕的宽度,即待显示图片的显示宽度等于第二宽度,待显示图片的显示高度等于第二宽度与第一高度之间的乘积与第一宽度之间的比值,因 此,待显示图片对应的第一可视面积为
Figure PCTCN2016080382-appb-000004
同理,在第二显示状态下,待显示图片对应的第二可视面积为
Figure PCTCN2016080382-appb-000005
(2)在
Figure PCTCN2016080382-appb-000006
时,所述第一可视面积为:
Figure PCTCN2016080382-appb-000007
所述第二可视面积为:
Figure PCTCN2016080382-appb-000008
其中,W1表示第一宽度,H1表示所述第一高度,W2表示第二宽度,H2表示所述第二高度。
在本实施例中,即待显示图片的第一高度与第一宽度的比值大于或等于显示屏幕的第二高度与第二宽度的比值,此时,在第一显示状态下,待显示图片的显示高度等于显示屏幕的高度,即待显示图片的显示高度等于第二高度,待显示图片的显示宽度等于第一宽度与第二高度之间的乘积与第一高度之间的比值,因此,待显示图片对应的第一可视面积为
Figure PCTCN2016080382-appb-000009
同理,在第二显示状态下,待显示图片对应的第二可视面积为
Figure PCTCN2016080382-appb-000010
应当说明的是,在待显示图片的高度与宽度的比值等于显示屏幕的高度与宽度的比值时,也可以按照方式(1)确定第一可视面积和第二可视面积。
步骤S22,在确定的可视面积中,确定较大的可视面积对应的显示状态,并将确定的显示状态设置为所述待显示图片的显示状态。
例如,若在确定的第一可视面积和第二可视面积中,第一可视面积大于第二可视面积,则将第一可视面积对应的第一显示状态设置为待显示图片的显示状态。
本实施例提供的图片显示方法,能够根据待显示图片和显示屏幕的宽度和高度信息更加有效地自动确定图片的显示状态。
可选地,基于上述图片显示方法的第一实施例,本发明实施例还提出图片显示方法的第五实施例,在本实施例中,所述第一尺寸信息包括第一宽度和第一高度,所述第二尺寸信息包括第二宽度和第二高度,步骤S20包括:
在所述第一宽度小于所述第一高度且所述第二宽度小于第二高度时,或者 所述第一宽度大于第一高度且所述第二宽度大于第二高度时,确定所述待显示图片对应的显示状态为第一显示状态;
在所述第一宽度小于所述第一高度且所述第二宽度大于第二高度时,或者所述第一宽度大于第一高度且所述第二宽度小于第二高度时,确定所述待显示图片对应的显示状态为第二显示状态;
在所述第一宽度等于第一高度,或者所述第二宽度等于第二高度时,确定所述待显示图片对应的显示状态为第一显示状态或第二显示状态。
本实施例提供的图片显示方法,能够根据待显示图片和显示屏幕的宽度和高度信息更加有效地自动确定图片的显示状态。
可选的,基于本发明实施例图片显示方法的第一至第五任一实施例,本发明实施例还提出了图片显示方法的第六实施例,参照图3,图3为本发明实施例图片显示方法第六实施例的流程示意图,在步骤S30之后,所述图片显示方法还包括:
步骤S40,保存所述待显示图片与确定的显示状态之间的关联关系;
所述图片显示方法还包括:
步骤S50,在侦测到图片显示指令时,判断是否保存有与所述图片显示指令对应的待显示图片关联的显示状态;
在不存在与所述待显示图片关联的显示状态时,则执行步骤S10;在存在与所述待显示图片关联的显示状态时,则执行步骤S60;
步骤S60,根据与所述待显示图片关联的显示状态在终端的显示屏幕上显示所述待显示图片。
在本实施例中,在确定了待显示图片对应的显示状态之后,可以保存待显示图片和确定的显示状态之间的关联关系,例如,可以保存待显示图片标识与对应的显示状态之间的关联关系。关联关系可以为一关于待显示图片与显示状态之间的关联关系表,或者基于待显示图片的标识,例如,可以对待显示图片建立一标志位,该标志位可以分为两种,一种为与第一显示状态对应的第一标志位,另一种为与第二显示状态对应的第二标志位,在确定了待显示图片对应的显示状态之后,则基于该待显示图片保存对应的标志位。从而在再次显示该图片时,则先判断是否存在与图片显示指令对应的待显示图片关联的显示状态,在存在时,则根据预先保存的关联关系确定该图片对应的显示状态,然后再根 据确定的显示状态显示图片,从而不需要在每次显示图片时,均需要根据待显示图片的尺寸信息和终端的屏幕的尺寸信息确定显示状态,提高了效率。
本发明实施例提供一种图片显示装置。
参照图4,图4为本发明实施例图片显示装置第一实施例的功能模块示意图,本发明实施例提供的图片显示装置包括:
获取模块10,设置为获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
在本实施例中,上述终端可选为移动终端,例如,可以为但不限于手机、平板电脑等。
可以在侦测到图片显示指令时,获取模块10获取待显示图片的第一尺寸信息和所述终端的显示屏幕的第二尺寸信息。也可以在获取到终端存储的图片时,获取模块10获取待显示图片的第一尺寸信息和所述终端的显示屏幕的第二尺寸信息。例如,在侦测到照片拍摄完成时,即可以将拍摄完成的照片作为待显示图片,获取模块10获取待显示图片的第一尺寸信息和所述终端的显示屏幕的第二尺寸信息。
上述第一尺寸信息可以为待显示图片的宽度、高度和/或宽高比等信息;上述第二尺寸信息可以为终端的显示屏幕的宽度、高度和/或宽高比等信息。应当说明的是,上述第二尺寸信息可以直接通过终端的系统参数获得。
确定模块20,设置为根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态;
在本实施例中,待显示图片的显示状态包括第一显示状态和第二显示状态,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向。
确定待显示图片的显示状态的具体方式可以根据实际需要进行选择,只要能够保证待显示图片在该显示状态下具有最大的可视面积即可。例如,若确定的显示状态为第一显示状态,则待显示图片在第一显示状态下的可视面积大于该待显示图片在第二显示状态下的可视面积。
上述待显示图片在确定的显示状态下的可视面积即为:在显示屏幕显示该图片时,该图片所占用的显示屏幕的面积。
在确定显示状态时,可以利用待显示图片的宽高比和显示屏幕的宽高比确 定,还可以利用待显示图片的宽度、高度以及显示屏幕的宽度、高度确定显示状态,具体可以根据实际需要进行选择,在此不作限定。可选地,在确定待显示图片的显示状态时,只要能够使得待显示图片在确定的显示状态下具有最大的可视面积即可。
显示模块30,设置为根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片。
在本实施例中,可以直接调用终端的图片显示程序显示所述待显示图片,终端的图片显示程序包括两种,一种是直接显示程序,即通过直接显示程序调用的图片在显示过程中,其宽度方向平行于显示屏幕的宽度方向;另一种是旋转显示程序,即通过旋转显示程序调用的图片在显示过程中,其宽度方向平行于显示屏幕的高度方向。在确定的显示状态为第一显示状态时,则调用所述直接显示程序显示所述待显示图片;在确定的显示状态为第二显示状态时,则调用所述旋转显示程序显示所述待显示图片。
本发明实施例提供的图片显示装置,通过获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息,并根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态,再根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片,从而在用户通过终端查看图片时,不需要手动调节终端的屏幕显示状态,终端能够自动根据图片的尺寸信息和终端显示屏幕的尺寸信息确定对应的显示状态,并根据确定的显示状态显示图片,从而不需要通过位置传感器控制终端显示屏幕的显示状态,并且避免了终端在水平放置时位置传感器无法控制终端显示屏幕的显示状态的缺陷,使得终端在水平放置时仍能够自动确定终端显示屏幕对应的显示状态。
可选地,基于上述图片显示装置的第一实施例,本发明实施例还提出图片显示装置的第二实施例,在本实施例中,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述确定模块10包括:
判断单元,设置为判断是否所述第一宽高比小于1且第二宽高比大于1,或者是否所述第一宽高比大于1且所述第二宽高比小于1;
第一确定单元,设置为在所述第一宽高比小于1且第二宽高比大于1,或者所述第一宽高比大于1且第二宽高比小于1时,确定所述待显示图片的显示状态为旋转显示状态;
可选地,第一确定单元是设置为在第一宽高比和第二宽高比均大于1,或者第一宽高比和第二宽高比均小于1时,确定所述待显示图片的显示状态为直接显示状态。
可选地,第一确定单元是设置为在所述第一宽高比等于1或所述第二宽高比等于1时,确定所述待显示图片的显示状态为旋转显示状态或直接显示状态,即,此时待显示图片对应的显示状态既可以为旋转显示状态,也可以为直接显示状态。
所述显示模块30是设置为在所述待显示图片的显示状态为旋转显示状态时,对所述待显示图片进行旋转处理,并显示旋转处理后的待显示图片。
可选地,在所述待显示图片的显示状态为直接显示状态时,则直接显示待显示图片。即直接通过系统图片显示程序显示待显示图片。
本实施例提供的图片显示装置,能够根据宽高比更加有效地自动确定图片的显示状态。
可选地,基于上述图片显示装置的第一实施例,本发明实施例还提出图片显示装置的第三实施例,在本实施例中,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,确定模块20是设置为:根据第一宽高比和第二宽高比确定所述待显示图片对应的显示状态;
在所述第一宽高比小于1且所述第二宽高比小于1时,或者所述第一宽高比大于1且所述第二宽高比大于1时,确定所述待显示图片对应的显示状态为第一显示状态,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向;
在本实施例中,第一宽高比即为待显示图片的宽度与高度之间的比值,第二宽高比即为显示屏幕的宽度与高度之间的比值。
在所述第一宽高比小于1且所述第二宽高比大于1时,或者所述第一宽高比大于1且所述第二宽高比小于1时,确定所述待显示图片对应的显示状态为第二显示状态,其中,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;
在所述第一宽高比等于1或所述第二宽高比等于1时,确定所述待显示图片对应的显示状态为第一显示状态或第二显示状态。即,此时待显示图片对应的显示状态既可以为第一显示状态,也可以为第二显示状态。
本实施例提供的图片显示装置,能够根据宽高比更加有效地自动确定图片 的显示状态。
可选地,基于上述图片显示装置的第一实施例,本发明实施例还提出图片显示装置的第四实施例,在本实施例中,所述第一尺寸信息包括第一宽度和第一高度,所述第二尺寸信息包括第二宽度和第二高度,参照图5,图5为本发明实施例图片显示装置第四实施例中确定模块的细化功能模块示意图,确定模块20包括:
第二确定单元21,设置为根据所述第一宽度、第一高度、第二宽度和第二高度分别确定所述待显示图片在第一显示状态下对应的第一可视面积和在第二显示状态下对应的第二可视面积,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;
计算第一可视面积和第二可视面积的方式如下:
(1)在
Figure PCTCN2016080382-appb-000011
时,所述第一可视面积为:
Figure PCTCN2016080382-appb-000012
所述第二可视面积为:
Figure PCTCN2016080382-appb-000013
其中,W1表示第一宽度,H1表示所述第一高度,W2表示第二宽度,H2表示所述第二高度。
在本实施例中,即待显示图片的第一高度与第一宽度的比值小于显示屏幕的第二高度与第二宽度的比值,此时,在第一显示状态下,待显示图片的显示宽度等于显示屏幕的宽度,即待显示图片的显示宽度等于第二宽度,待显示图片的显示高度等于第二宽度与第一高度之间的乘积与第一宽度之间的比值,因此,待显示图片对应的第一可视面积为
Figure PCTCN2016080382-appb-000014
同理,在第二显示状态下,待显示图片对应的第二可视面积为
Figure PCTCN2016080382-appb-000015
(2)在
Figure PCTCN2016080382-appb-000016
时,所述第一可视面积为:
Figure PCTCN2016080382-appb-000017
所述第二可视面积为:
Figure PCTCN2016080382-appb-000018
其中,W1表示第一宽度,H1表示所述第一高度,W2表示第二宽度,H2表示所述第二高度。
在本实施例中,即待显示图片的第一高度与第一宽度的比值大于或等于显示屏幕的第二高度与第二宽度的比值,此时,在第一显示状态下,待显示图片的显示高度等于显示屏幕的高度,即待显示图片的显示高度等于第二高度,待显示图片的显示宽度等于第一宽度与第二高度之间的乘积与第一高度之间的比值,因此,待显示图片对应的第一可视面积为
Figure PCTCN2016080382-appb-000019
同理,在第二显示状态下,待显示图片对应的第二可视面积为
Figure PCTCN2016080382-appb-000020
应当说明的是,在待显示图片的高度与宽度的比值等于显示屏幕的高度与宽度的比值时,也可以按照方式(1)确定第一可视面积和第二可视面积。
设置单元22,设置为在确定的可视面积中,确定较大的可视面积对应的显示状态,并将确定的显示状态设置为所述待显示图片的显示状态。
例如,若在确定的第一可视面积和第二可视面积中,第一可视面积大于第二可视面积,则将第一可视面积对应的第一显示状态设置为待显示图片的显示状态。
本实施例提供的图片显示装置,能够根据待显示图片和显示屏幕的宽度和高度信息更加有效地自动确定图片的显示状态。
可选地,基于上述图片显示装置的第一实施例,本发明实施例还提出图片显示装置的第五实施例,在本实施例中,所述第一尺寸信息包括第一宽度和第一高度,所述第二尺寸信息包括第二宽度和第二高度,确定模块20可以是设置为:
在所述第一宽度小于所述第一高度且所述第二宽度小于第二高度时,或者所述第一宽度大于第一高度且所述第二宽度大于第二高度时,确定所述待显示图片对应的显示状态为第一显示状态;
在所述第一宽度小于所述第一高度且所述第二宽度大于第二高度时,或者所述第一宽度大于第一高度且所述第二宽度小于第二高度时,确定所述待显示图片对应的显示状态为第二显示状态;
在所述第一宽度等于第一高度,或者所述第二宽度等于第二高度时,确定所述待显示图片对应的显示状态为第一显示状态或第二显示状态。
本实施例提供的图片显示装置,能够根据待显示图片和显示屏幕的宽度和 高度信息更加有效地自动确定图片的显示状态。
可选的,基于本发明实施例图片显示装置的第一至第五任一实施例,本发明实施例还提出了图片显示装置的第六实施例,参照图6,图6为本发明实施例图片显示装置第六实施例的功能模块示意图,所述图片显示装置还包括:
保存模块40,设置为保存所述待显示图片与确定的显示状态之间的关联关系;
判断模块50,设置为在侦测到图片显示指令时,判断是否保存有与所述图片显示指令对应的待显示图片关联的显示状态;
所述获取模块10是设置为在不存在与所述待显示图片关联的显示状态时,获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
所述显示模块30是设置为在存在与所述待显示图片关联的显示状态时,根据与所述待显示图片关联的显示状态在终端的显示屏幕上显示所述待显示图片。
所述显示模块30是设置为在侦测到基于所述待显示图片的图片显示指令时,根据与所述待显示图片关联的显示状态显示所述待显示图片。
在本实施例中,在确定了待显示图片对应的显示状态之后,可以保存待显示图片和确定的显示状态之间的关联关系,例如,可以保存待显示图片标识与对应的显示状态之间的关联关系。关联关系可以为一关于待显示图片与显示状态之间的关联关系表,或者基于待显示图片的标识,例如,可以对待显示图片建立一标志位,该标志位可以分为两种,一种为与第一显示状态对应的第一标志位,另一种为与第二显示状态对应的第二标志位,在确定了待显示图片对应的显示状态之后,则基于该待显示图片保存对应的标志位。从而在再次显示该图片时,则先判断是否存在与图片显示指令对应的待显示图片关联的显示状态,在存在时,则根据预先保存的关联关系确定该图片对应的显示状态,然后再根据确定的显示状态显示图片,从而不需要在每次显示图片时,均需要根据待显示图片的尺寸信息和终端的屏幕的尺寸信息确定显示状态,提高了效率。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为 这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件实现。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明实施例所述的方法。
以上仅为本发明可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的保护范围内。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述实施例的方法。
本发明实施例还提供一种用户设备,包括存储器和至少一个处理器,其中,存储器存储有可由处理器执行的指令,所述指令用于执行上述实施例中所述的方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明实施例可采用硬件、软件、或结合软件和硬件来实现。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本文是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或 其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
工业实用性
通过本发明实施例的方法,用户在使用终端查看图片时,不需要手动调节终端的屏幕显示状态,终端能够自动根据图片的尺寸信息和终端显示屏幕的尺寸信息确定对应的显示状态,并根据确定的显示状态显示图片,从而不需要通过位置传感器控制终端显示屏幕的显示状态,并且避免了终端在水平放置时位置传感器无法控制终端显示屏幕的显示状态的缺陷,使得终端在水平放置时仍能够自动确定终端显示屏幕对应的显示状态。

Claims (11)

  1. 一种图片显示方法,包括:
    获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
    根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态;以及
    根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片。
  2. 如权利要求1所述的图片显示方法,其中,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态包括:
    判断是否所述第一宽高比小于1且第二宽高比大于1,或者是否所述第一宽高比大于1且所述第二宽高比小于1;
    在所述第一宽高比小于1且第二宽高比大于1,或者所述第一宽高比大于1且第二宽高比小于1时,确定所述待显示图片的显示状态为旋转显示状态;
    所述根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片包括:
    在所述待显示图片的显示状态为旋转显示状态时,对所述待显示图片进行旋转处理,并显示旋转处理后的待显示图片。
  3. 如权利要求1所述的图片显示方法,其中,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态包括:根据所述第一宽高比和第二宽高比确定所述待显示图片对应的显示状态;
    在所述第一宽高比小于1且所述第二宽高比小于1时,或者所述第一宽高比大于1且所述第二宽高比大于1时,确定所述待显示图片对应的显示状态为第一显示状态,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向;
    在所述第一宽高比小于1且所述第二宽高比大于1时,或者所述第一宽高比大于1且所述第二宽高比小于1时,确定所述待显示图片对应的显示状态为第二显示状态,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;以及
    在所述第一宽高比等于1或所述第二宽高比等于1时,确定所述待显示图片对应的显示状态为第一显示状态或第二显示状态。
  4. 如权利要求1所述的图片显示方法,其中,所述第一尺寸信息包括第一宽度和第一高度,所述第二尺寸信息包括第二宽度和第二高度,所述根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态包括:
    根据所述第一宽度、第一高度、第二宽度和第二高度分别确定所述待显示图片在第一显示状态下对应的第一可视面积和在第二显示状态下对应的第二可视面积,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;以及
    在确定的可视面积中,确定较大的可视面积对应的显示状态,并将确定的显示状态设置为所述待显示图片的显示状态。
  5. 如权利要求1至4任一项所述的图片显示方法,所述根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片之后,所述图片显示方法还包括:
    保存所述待显示图片与确定的显示状态之间的关联关系;
    在侦测到图片显示指令时,判断是否保存有与所述图片显示指令对应的待显示图片关联的显示状态;
    在不存在与所述待显示图片关联的显示状态时,获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
    在存在与所述待显示图片关联的显示状态时,根据与所述待显示图片关联的显示状态在终端的显示屏幕上显示所述待显示图片。
  6. 一种图片显示装置,包括:
    获取模块,设置为获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
    确定模块,设置为根据所述第一尺寸信息和第二尺寸信息确定所述待显示图片的显示状态;以及
    显示模块,设置为根据确定的所述显示状态在所述显示屏幕上显示所述待显示图片。
  7. 如权利要求6所述的图片显示装置,其中,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述确定模块包括:
    判断单元,设置为判断是否所述第一宽高比小于1且第二宽高比大于1,或者是否所述第一宽高比大于1且所述第二宽高比小于1;
    第一确定单元,设置为在所述第一宽高比小于1且第二宽高比大于1,或者所述第一宽高比大于1且第二宽高比小于1时,确定所述待显示图片的显示状态为旋转显示状态;
    所述显示模块是设置为在所述待显示图片的显示状态为旋转显示状态时,对所述待显示图片进行旋转处理,并显示旋转处理后的待显示图片。
  8. 如权利要求6所述的图片显示装置,其中,所述第一尺寸信息为第一宽高比,所述第二尺寸信息为第二宽高比,所述确定模块是设置为根据所述第一宽高比和第二宽高比确定所述待显示图片对应的显示状态;
    在所述第一宽高比小于1且所述第二宽高比小于1时,或者所述第一宽高比大于1且所述第二宽高比大于1时,确定所述待显示图片对应的显示状态为第一显示状态,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向;
    在所述第一宽高比小于1且所述第二宽高比大于1时,或者所述第一宽高比大于1且所述第二宽高比小于1时,确定所述待显示图片对应的显示状态为第二显示状态,其中,在第二显示状态下显示的图片的宽度方向平行于所述显示屏幕的高度方向;以及
    在所述第一宽高比等于1或所述第二宽高比等于1时,确定所述待显示图片对应的显示状态为第一显示状态或第二显示状态。
  9. 如权利要求6所述的图片显示装置,其中所述第一尺寸信息包括第一宽度和第一高度,所述第二尺寸信息包括第二宽度和第二高度,所述确定模块包括:
    第二确定单元,设置为根据所述第一宽度、第一高度、第二宽度和第二高度分别确定所述待显示图片在第一显示状态下对应的第一可视面积和在第二显示状态下对应的第二可视面积,其中,在第一显示状态下显示的图片的宽度方向平行于所述显示屏幕的宽度方向,在第二显示状态下显示的图片的宽度方向 平行于所述显示屏幕的高度方向;以及
    设置单元,设置为在确定的可视面积中,确定较大的可视面积对应的显示状态,并将确定的显示状态设置为所述待显示图片的显示状态。
  10. 如权利要求6至9任一项所述的图片显示装置,还包括:
    保存模块,设置为保存所述待显示图片与确定的显示状态之间的关联关系;
    判断模块,设置为在侦测到图片显示指令时,判断是否保存有与所述图片显示指令对应的待显示图片关联的显示状态;
    所述获取模块是设置为在不存在与所述待显示图片关联的显示状态时,获取待显示图片的第一尺寸信息和终端的显示屏幕的第二尺寸信息;
    所述显示模块是设置为在存在与所述待显示图片关联的显示状态时,根据与所述待显示图片关联的显示状态在终端的显示屏幕上显示所述待显示图片。
  11. 一种计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-5任一项的方法。
PCT/CN2016/080382 2015-06-30 2016-04-27 图片显示方法及装置 WO2017000647A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510374512.9A CN106326281A (zh) 2015-06-30 2015-06-30 图片显示方法及装置
CN201510374512.9 2015-06-30

Publications (1)

Publication Number Publication Date
WO2017000647A1 true WO2017000647A1 (zh) 2017-01-05

Family

ID=57607576

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080382 WO2017000647A1 (zh) 2015-06-30 2016-04-27 图片显示方法及装置

Country Status (2)

Country Link
CN (1) CN106326281A (zh)
WO (1) WO2017000647A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107509101A (zh) * 2017-08-11 2017-12-22 环球智达科技(北京)有限公司 图片处理方法
CN111327863A (zh) * 2018-12-17 2020-06-23 中移(杭州)信息技术有限公司 一种视频通话处理方法及装置
CN113721879B (zh) * 2021-09-02 2022-09-30 北京城市网邻信息技术有限公司 图像处理方法、装置、设备和计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222570A (zh) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 一种应用于移动终端的图像浏览器及图像调整方法
CN103105999A (zh) * 2013-01-17 2013-05-15 广东欧珀移动通信有限公司 一种视频窗口调整的方法及移动智能终端
CN103116631A (zh) * 2013-02-04 2013-05-22 浙江省通信产业服务有限公司 一种在手持电子设备上快捷查看批量图片的系统和方法
CN103905643A (zh) * 2014-03-26 2014-07-02 北京京东尚科信息技术有限公司 一种单一背景图片手机适配方法及系统
CN105159640A (zh) * 2015-08-28 2015-12-16 小米科技有限责任公司 显示界面旋转方法、装置和移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222570A (zh) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 一种应用于移动终端的图像浏览器及图像调整方法
CN103105999A (zh) * 2013-01-17 2013-05-15 广东欧珀移动通信有限公司 一种视频窗口调整的方法及移动智能终端
CN103116631A (zh) * 2013-02-04 2013-05-22 浙江省通信产业服务有限公司 一种在手持电子设备上快捷查看批量图片的系统和方法
CN103905643A (zh) * 2014-03-26 2014-07-02 北京京东尚科信息技术有限公司 一种单一背景图片手机适配方法及系统
CN105159640A (zh) * 2015-08-28 2015-12-16 小米科技有限责任公司 显示界面旋转方法、装置和移动终端

Also Published As

Publication number Publication date
CN106326281A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
US11496673B1 (en) Apparatus and method for supplying content aware photo filters
JP6286442B2 (ja) スクリーン画面の回転を制御する方法、装置、設備、プログラム及び記録媒体
CA2966400C (en) Method and apparatus for presenting panoramic photo in mobile terminal, and mobile terminal
CN104615336B (zh) 一种信息处理方法及电子设备
JP6563896B2 (ja) 映像方向の自動調整
US10165201B2 (en) Image processing method and apparatus and terminal device to obtain a group photo including photographer
US8531487B2 (en) Software for displays with different pixel densities
CN108280828B (zh) 相机装配位置检测方法与装置
US20140375698A1 (en) Method for adjusting display unit and electronic device
JP2017130920A (ja) 撮影位置推薦方法、コンピュータプログラムおよび撮影位置推薦システム
WO2017000647A1 (zh) 图片显示方法及装置
CN103763471A (zh) 数码变焦方法及装置
CN107145269B (zh) 一种数据旋转方法以及装置
US20230153897A1 (en) Integrating a product model into a user supplied image
CN108846899B (zh) 提高用户对房源中每个功能间的面积感知的方法及系统
WO2015165258A1 (zh) 一种电子地图绘制区域确定方法、装置及导航设备
CN112308859A (zh) 生成缩略图的方法、装置、相机以及存储介质
JP2018098705A5 (zh)
WO2016145831A1 (zh) 图像的获取方法及装置
CN109144363B (zh) 一种信息处理方法及电子设备
US10664066B2 (en) Method and apparatus for adjusting orientation, and electronic device
CN106792163B (zh) 一种视频播放状态的检测方法及装置
WO2016191952A1 (zh) 一种显示照片的方法及设备
WO2017088292A1 (zh) 调整图片文字的显示方法及装置
US20150029351A1 (en) Display method, image capturing method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16817011

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16817011

Country of ref document: EP

Kind code of ref document: A1