[go: up one dir, main page]

WO2026011465A1 - Picture display method and electronic device - Google Patents

Picture display method and electronic device

Info

Publication number
WO2026011465A1
WO2026011465A1 PCT/CN2024/105364 CN2024105364W WO2026011465A1 WO 2026011465 A1 WO2026011465 A1 WO 2026011465A1 CN 2024105364 W CN2024105364 W CN 2024105364W WO 2026011465 A1 WO2026011465 A1 WO 2026011465A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
images
interface
electronic device
thumbnail
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
PCT/CN2024/105364
Other languages
French (fr)
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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to PCT/CN2024/105364 priority Critical patent/WO2026011465A1/en
Publication of WO2026011465A1 publication Critical patent/WO2026011465A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/04842Selection of displayed objects or displayed text elements

Definitions

  • This application relates to the field of terminals, and more particularly to an image display method and an electronic device.
  • This application provides an image display method and an electronic device that can provide users with a convenient way to manage images and improve the user's experience in managing images on electronic devices.
  • embodiments of this application provide an image display method, comprising: an electronic device displaying a first interface, the first interface including multiple thumbnails and a first control; after a first number (M) of thumbnails are selected, in response to a first operation (e.g., a click operation) on the first control, displaying a second interface, the second interface including a first image and a second image; wherein the first number of thumbnails includes a first thumbnail, a second thumbnail, and a third thumbnail, the first image being the image corresponding to the first thumbnail, and the second image being the image corresponding to the second thumbnail.
  • the second interface is an image comparison interface, the first image and the second image being two images selected for image comparison, optionally, the first image and the second image being the two images ranked first.
  • a second operation e.g., deletion operation
  • the second image is deleted from the electronic device and the third interface is displayed.
  • the third interface includes the first image and the third image, and the third image is the image corresponding to the third thumbnail in the first interface.
  • the electronic device displays a second interface (image comparison interface).
  • This second interface includes two or more of the selected images. This allows users to compare multiple images. Furthermore, images can be deleted directly from the electronic device while the second interface (image comparison interface) is displayed, and the interface will automatically add new images, facilitating image management for the user.
  • a first image and a second image in the second interface are displayed in a first layout; when the electronic device unfolds from the folded state, the first layout is switched to the second layout to display the first image and the second image; the second layout is different from the first layout.
  • a first number of thumbnails correspond to a first number of images, meaning the number of images selected for comparison is the first number
  • the second layout is related to the aspect ratio of the second number of images within the first number of images.
  • the electronic device unfolds from a folded state to an unfolded state, and the layout of the first and second images changes accordingly.
  • the layout can include a horizontal layout or a vertical layout. For example, when the electronic device is in a folded state, the first and second images are arranged horizontally; when the electronic device is in an unfolded state, the first and second images are arranged vertically. Vertical layout.
  • the first and second images are preset to be in a horizontal layout.
  • the screen of the electronic device is approximately square; when the electronic device unfolds from a folded state, the layout of each image in the image comparison interface is determined according to the size of the selected images for comparison.
  • the image comparison interface Because the size and shape of the images displayed in the image comparison interface are adapted to the size and shape of the area where the image is displayed, the image will be enlarged during the adaptation process.
  • the layout of each image in the image comparison interface according to the image size that is, the shape of the display area is more in line with the image size, which can reduce the situation where the image is significantly cropped after being enlarged, so that more of the image is displayed.
  • the layout of the first and second images is related to the W (second number) frames of the images selected for comparison according to a preset order.
  • the first and second images when more than half of the images in the second number of images are in a vertical orientation, the first and second images are arranged vertically (optionally, the second arrangement is vertical); when less than half of the images in the second number of images are in a vertical orientation, the first and second images are arranged horizontally (optionally, the second arrangement is horizontal).
  • most images are portrait-oriented, they are laid out portrait-oriented; when most images are landscape-oriented, they are laid out landscape-oriented.
  • the image layout is consistent with the aspect ratio of most images. This allows more of the image to be displayed, reducing the likelihood of images being heavily cropped when displayed.
  • the first and second images in the second interface are displayed in a third layout; when the third interface is displayed, the first and third images in the third interface are displayed in a fourth layout.
  • the fourth layout differs from the third layout, and the layout can include a horizontal layout or a vertical layout.
  • the layout can include a horizontal layout or a vertical layout.
  • the first and second images are arranged horizontally; after the second image is removed from the electronic device, the third interface is displayed, and the first and third images in the third interface are arranged vertically.
  • the first and second images are arranged vertically; after the second image is removed from the electronic device, the third interface is displayed, and the first and third images in the third interface are arranged horizontally.
  • the first number of thumbnails corresponds to the first number of images, meaning the number of images selected for image comparison is the first number.
  • the third and fourth layouts are related to the aspect ratio of the second number of images within the first number of images.
  • the layout of each image in the image comparison interface is determined based on the top W (second number) of the selected images for comparison.
  • the image comparison interface is determined based on the image's aspect ratio.
  • the images in the second number of images when more than half of the images in the second number of images are in a vertical orientation, the images are arranged vertically; when less than half of the images in the second number of images are in a vertical orientation, the images are arranged horizontally.
  • most images are portrait-oriented, they are laid out portrait-oriented; when most images are landscape-oriented, they are laid out landscape-oriented.
  • the image layout is consistent with the aspect ratio of most images. This allows more of the image to be displayed, reducing the likelihood of images being heavily cropped when displayed.
  • the second interface when the second interface is displayed, if more than half of the images in the second number of images are in a vertical orientation, the first and second images in the second interface are arranged vertically. After the second image is deleted, the third interface is displayed. At this time, if less than half of the images in the second number of images are in a vertical orientation, the first and third images in the third interface are arranged horizontally.
  • the second interface when the second interface is displayed, less than half of the images in the second number of images are in a vertical orientation, and the first and second images in the second interface are arranged horizontally.
  • the third interface is displayed. At this time, more than half of the images in the second number of images are in a vertical orientation, and the first and third images in the third interface are arranged vertically.
  • the second interface and the third interface further include a first region;
  • the first region of the second interface includes a sub-thumbnail of the first image, a sub-thumbnail of the second image, and a sub-thumbnail of the third image, wherein the sub-thumbnail of the first image and the sub-thumbnail of the second image are highlighted;
  • the first region of the third interface includes the sub-thumbnail of the first image and the sub-thumbnail of the third image, but does not include the sub-thumbnail of the second image.
  • the first area of the interface includes a list of sub-thumbs, displaying sub-thumbs of all or some of the selected images to visually show the user the images selected for comparison.
  • the second interface includes a first image and a second image, with the sub-thumbs of the first and second images highlighted accordingly, providing the user with a clear view of the images currently displayed in the image comparison interface.
  • the second image After the second image is deleted, the second image will not be included in the third interface. Consequently, the first area of the third interface will not include the secondary thumbnail of the second image.
  • the sub-thumbnail of the third image is ordered after the sub-thumbnail of the second image.
  • the sub-thumbs are ordered in the same way as the images.
  • the sub-thumbs of the third image are ordered after the sub-thumbs of the second image, meaning the third image is ordered after the second image. In other words, if the second image is deleted, the image following the second image is added to the image comparison interface.
  • a first area of the second interface includes a second control, and in response to a third operation (e.g., a click operation) on the second control, a fourth interface is displayed, the fourth interface including multiple thumbnails; a first number of thumbnails among the multiple thumbnails are selected, the first number of thumbnails including a first thumbnail, a second thumbnail, and a third thumbnail.
  • a third operation e.g., a click operation
  • the first area includes a second control, such as the "Add" button 50d in Figure 9B.
  • the electronic device displays a fourth interface (e.g., an image selection interface 701), where the image is selected.
  • the selection interface 701 includes thumbnails of multiple images, wherein a second number of thumbnails are selected; for example, the thumbnails corresponding to the first and second images in the second interface are selected.
  • each thumbnail includes a selection control corresponding to that image. Users can select or deselect images by clicking the selection control. This allows users to easily view the selected images for comparison, and to easily add, remove, or change the selected images for comparison.
  • a first area of the second interface includes a sub-thumbnail of the fourth image
  • a fourth operation e.g., a click operation
  • a fifth interface is displayed, the fifth interface including the first image, the second image, and the fourth image, with the sub-thumbnail of the fourth image highlighted in the first area of the fifth interface.
  • a second interface in response to a fourth operation on a sub-thumbnail of a highlighted fourth image, a second interface is displayed, wherein the sub-thumbnail of the fourth image is not highlighted in a first area of the second interface.
  • the first image and the second image are enlarged and displayed at the same scale.
  • the images in the second interface can be enlarged or reduced simultaneously and proportionally, making it convenient for users to compare images.
  • the first application window displays a first image and a second image from the second interface in a fifth layout.
  • the second application window is closed and the first application window is displayed in full-screen mode.
  • the first image and the second image are displayed in a sixth layout.
  • the fifth layout is the same as the third layout
  • the sixth layout is the same as the fourth layout.
  • the layout of the images changes when switching from split-screen to full-screen display.
  • the first number of thumbnails corresponds to the first number of images, that is, the number of images selected for image comparison is the first number
  • the sixth layout is related to the aspect ratio of the second number of images in the first number of images.
  • the layout of the first and second images within the first application window for full-screen display is determined based on the top W (second number) of the selected images for comparison.
  • the first and second images when more than half of the images in the second number of images are in a vertical orientation, the first and second images are arranged vertically in the first application window displayed in full screen; when less than half of the images in the second number of images are in a vertical orientation, the first and second images are arranged horizontally in the first application window displayed in full screen.
  • the first and second images When most images are portrait-oriented, the first and second images are arranged vertically; when most images are landscape-oriented, the first and second images are arranged horizontally, with the image layout consistent with the majority of the image dimensions. This allows more of the image to be displayed, reducing the likelihood of significant image cropping during display.
  • a seventh operation e.g., a long press
  • the first image is selected; after the first image is selected in the second interface, in response to...
  • a seventh operation on the first image e.g., a long press
  • a floating image corresponding to the first image is displayed; in response to the floating image being dragged to a preset hot zone, an application icon of at least one application is displayed in a second area; in response to the floating image being dragged to the first application icon, the first image is sent to the application corresponding to the first application icon.
  • a seventh operation e.g., a long press
  • a floating image corresponding to the second image is displayed; in response to the floating image corresponding to the second image being dragged to a preset hot zone, an application icon of at least one application is displayed in the second area; in response to the floating image corresponding to the second image being dragged to a first application icon, the second image is sent to the application corresponding to the first application icon.
  • a seventh operation e.g., a long press
  • a third control e.g., the "delete" button 517 in FIG14
  • an eighth operation e.g., a selection operation
  • a ninth operation e.g., a click operation
  • This method allows users to delete multiple images at once in the image comparison interface, making image management easier.
  • the first number of thumbnails, the fifth thumbnail and the sixth thumbnail in response to a ninth operation on the third control, display a sixth interface, the sixth interface including a fifth image and a sixth image, the fifth image being the image corresponding to the fifth thumbnail and the sixth image being the image corresponding to the sixth thumbnail.
  • the image comparison interface automatically replenishes the same number of images, making it convenient for users to continue comparing images.
  • a first number of thumbnails correspond to a first number of images; the third image is ranked first among the first number of images after the reference image, where the reference image is the image ranked later between the first and second images. That is, the rule for automatically supplementing the image comparison interface is based on the principle of proximity and prioritizing selection from the nearest image. In this way, the images in the comparison list are displayed sequentially in the image comparison interface from front to back. Each time the user deletes an image, the automatically supplemented images in the updated image comparison interface are those that have not yet been compared, allowing the user to compare images sequentially and avoiding repetitive manual image selection, thus saving user steps.
  • the third image is the last one in the first number of images, ordered before the reference image.
  • the reference image is the image that appears later in the order of the first and second images, and is the last one in the first number of images. In this implementation, there are no images after the reference image; instead, the image closest to the reference image is selected.
  • the third image is the one among the first number of images whose acquisition time is closest to that of the second image.
  • images with similar shooting (or acquisition) times are likely to have similar image content, making it easier for users to view images with similar content.
  • an electronic device which has the function of implementing the method described in the first aspect.
  • This function can be implemented by hardware or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the aforementioned function.
  • an electronic device comprising: a processor, a memory, and a display screen; the display screen is used to display a user interface, the memory is used to store computer execution instructions, and when the electronic device is running, the processor executes the computer execution instructions stored in the memory to cause the electronic device to perform the method as described in any of the possible embodiments of the first aspect above.
  • a computer program product containing instructions is provided, which, when run on a computer, enables the computer to perform the method described in any of the possible embodiments of the first aspect above.
  • Figure 1 is a schematic diagram of an electronic device configured with a foldable screen according to an embodiment of this application;
  • Figure 3 is a schematic diagram of another electronic device configured with a foldable screen according to an embodiment of this application.
  • Figure 4 is a schematic diagram of another electronic device equipped with a foldable screen provided in an embodiment of this application.
  • Figure 5 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 6 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 7A is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 7B is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 7C is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 8 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 9A is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 9B is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 10 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 11 is a schematic diagram of a scenario in which an image is deleted according to an embodiment of this application.
  • Figures 12 and 13 are schematic diagrams illustrating a scenario in which multiple images are deleted in batches, as provided in the embodiments of this application.
  • Figure 14 is a schematic diagram of a scenario example where multiple images are deleted in batches according to an embodiment of this application;
  • Figure 15 is a schematic diagram of a scenario in which an image is deleted according to an embodiment of this application.
  • Figures 16 and 17 are schematic diagrams illustrating the rules for automatically adding an image from the comparison list to the updated image comparison interface in the embodiments of this application.
  • Figure 18 is a schematic diagram of a scenario example of automatically exiting the image comparison interface provided in an embodiment of this application.
  • Figure 19 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 20 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 21 is a schematic diagram of the image's aspect ratio
  • Figure 22 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 23 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 24 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 25 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 26 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 27 is a schematic diagram of an example of an image display method provided in an embodiment of this application.
  • Figure 28 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of this application.
  • Figure 29 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
  • references to "one embodiment” or “some embodiments” in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in still other embodiments,” etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean “one or more, but not all, embodiments,” unless otherwise specifically emphasized.
  • the terms “comprising,” “including,” “having,” and variations thereof mean “including but not limited to,” unless otherwise specifically emphasized.
  • connection includes direct connections and indirect connections, unless otherwise stated. "First” and “second” are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
  • the terms "exemplary” or “for example” are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as “exemplary” or “for example” in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms “exemplary” or “for example” is intended to present the relevant concepts in a specific manner.
  • This application provides an image display method that can be applied to electronic devices equipped with foldable screens.
  • the electronic device equipped with a foldable screen can also be referred to as a foldable device.
  • the foldable device described above can be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR)/virtual reality (VR) device, etc.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • the embodiments of this application do not impose any special limitations on the specific form of the electronic device.
  • the foldable device includes at least one foldable screen, which can be folded to form at least two screens (display areas).
  • the foldable screen can be folded along a straight line (folding line) or folding axis to form display area one and display area two.
  • the at least two screens (display areas) formed after the folding screen is folded can be multiple independent screens or a single integrated screen, simply folded into at least two parts.
  • the folding screen can be a flexible screen, also known as a flexible OLED (organic light-emitting diode).
  • OLED organic light-emitting diode
  • flexible screens have the characteristics of being bendable and highly flexible.
  • the flexible screen may be partially or entirely made of flexible materials.
  • only the foldable parts (such as the folding edges) of the flexible screen may be made of flexible materials, while other parts may be made of rigid materials; or, the entire flexible screen may be made of flexible materials.
  • the electronic device 10 includes an inner screen 101, which is divided into screen A and screen B along the fold line 1a. Screen A and screen B can be two independent screens or two parts of a single screen. As shown in FIG1(b), the electronic device 10 also includes an outer screen 102, also referred to as screen C. Exemplarily, screen C is positioned back-to-back with screen A. It is understood that FIG1 is merely an example of screen C being positioned behind screen A and is not intended to limit the electronic device 10 provided in this application embodiment. In other possible embodiments, screen C may also be positioned behind screen B.
  • Foldable devices can be in different postures, such as unfolded, supported, and folded.
  • the inner screen 101 includes screen A and screen B.
  • the user can change the orientation of electronic device 10 by altering the angle between screen A and screen B.
  • the unfolded state of electronic device 10 refers to the state where the angle between screen A and screen B is greater than or equal to a preset first angle.
  • This first angle can be a preset value, such as 135°, 165°, or 175°.
  • the angle between screen A and screen B of electronic device 10 gradually decreases.
  • the user can fold electronic device 10 inward (in the direction of the inner screen 101) along folding line 1a.
  • the second angle can be a preset value, such as 5°, 30°, 65°, etc.
  • the angle between screen A and screen B of the electronic device 10 gradually increases.
  • the electronic device 10 is in a stand state.
  • the angle between screen A and screen B of the electronic device 10 continues to increase, the electronic device 10 is in an unfolded state, and the angle between screen A and screen B is greater than or equal to the first angle.
  • the posture of the electronic device 10 can be switched between the unfolded state, the stand state, and the unfolded state under the operation of the user.
  • the electronic device 10 shown in Figure 1 includes an inner screen 101 and an outer screen 102.
  • the inner screen 101 or the outer screen 102 of the electronic device 10 displays a user interface accordingly.
  • the inner screen 101 displays the user interface
  • the outer screen 102 displays the user interface
  • the outer screen 102 displays the user interface.
  • the electronic device 10 can switch between displaying the user interface on the inner screen 101 or the outer screen 102 according to its posture.
  • the inner screen 101 of the electronic device 10 displays the user interface; in response to the user's folding operation of the electronic device, the posture of the electronic device 10 changes to a folded state, and the electronic device...
  • the outer screen 102 of the electronic device 10 displays the user interface.
  • the electronic device 10 changes to an unfolded state, and the inner screen 101 of the electronic device 10 displays the user interface.
  • the inner screen 101 of the electronic device 10 displays the user interface of the electronic device.
  • the outer screen 102 of the electronic device 10 displays the user interface of the electronic device.
  • the electronic device 10 has an inner screen 101 with four sides of similar length, resulting in an approximately square user interface when displayed on the inner screen 101.
  • the outer screen 102 has a larger difference in length between its long and short sides, resulting in an approximately rectangular user interface when displayed on the outer screen 102.
  • the long side of the outer screen 102 along the vertical direction is referred to as the electronic device 10 being placed vertically
  • the short side of the outer screen 102 along the vertical direction is referred to as the electronic device 10 being placed horizontally.
  • the electronic device 10 is placed vertically.
  • This embodiment presents the user interface using the vertical placement of the electronic device as an example. When the electronic device is placed horizontally, the displayed user interface can be changed according to the vertically placed user interface; however, this embodiment will not provide further examples.
  • the electronic device 20 includes a screen 201, which is divided into a D screen and an E screen along the fold line 1b.
  • the D screen and the E screen can be two separate screens or two parts of a single screen.
  • angle one can be a preset value, such as 130°, 165°, 170°, etc.
  • angle two can be a preset value, such as 5°, 30°, 65°, etc.
  • the angle between the D screen and the E screen of the electronic device 20 gradually increases.
  • the electronic device 20 is in a stand state.
  • the angle between the D screen and the E screen of the electronic device 20 continues to increase, the electronic device 20 is in an unfolded state, and the angle between the D screen and the E screen is greater than or equal to angle one.
  • the posture of the electronic device 20 changes between the unfolded state, the support state, and the unfolded state under the operation of the user.
  • the corresponding display areas of the screen 201 of the electronic device 20 display the user interface.
  • the D screen and E screen of the screen 201 display the user interface;
  • the D screen of the screen 201 displays the user interface;
  • the electronic device 20 is in a folded state, the D screen of the screen 201 displays the user interface.
  • the electronic device 20 shown in Figure 3 has screen 201 with four sides of similar length.
  • the user interface is approximately square.
  • the D screen of screen 201 has a larger difference in length between its long and short sides.
  • the user interface is approximately rectangular.
  • Figures 1 and 3 above show the electronic device folded along a horizontal fold line.
  • the electronic device can also be folded along a vertical fold line.
  • the vertical fold line is perpendicular to the horizontal fold line.
  • the electronic device 30 includes a folding screen 301.
  • the electronic device 30 folds inward along the folding line 1c, and the folding screen 301 also folds inward along the folding line 1c.
  • the folding screen 301 is divided into two display areas along the folding line 1c, such as the F screen and the G screen. It is understood that the F screen and the G screen can be multiple independent screens; or they can be a single, integrated screen, simply divided into at least two parts along the folding line. This application embodiment does not specifically limit this.
  • the F screen and the G screen face each other.
  • the electronic device 30 also has an H screen on the back of the folding screen 301.
  • the H screen can be located on the back of the F screen or the G screen. It is understood that Figure 4 is only an example of the H screen being configured on the back of the F screen and is not intended to limit the electronic device provided in this application embodiment.
  • the user can change the posture of electronic device 30 by altering the angle between the F screen and the G screen.
  • the posture of electronic device 30 can switch between an unfolded state, a stand state, and an unfolded state under the user's operation.
  • the screen 301 or H-screen of the electronic device 30 displays the user interface accordingly. For example, when the electronic device 30 is in an unfolded state, the screen 301 of the electronic device 30 displays the user interface; when the electronic device 30 is in a stand state or a folded state, the H-screen of the electronic device 30 displays the user interface.
  • the four sides of the H screen are of similar length, and when the H screen displays the user interface, the user interface is approximately square.
  • the long side and short side of the screen 301 have a larger difference in length, and when the screen 301 displays the user interface, the user interface is approximately rectangular.
  • This application uses the electronic device 10 shown in FIG1 as an example to illustrate the embodiment.
  • the implementation of the image display method provided in this application on the electronic device 20 shown in FIG3 or the electronic device 30 shown in FIG4 can refer to the implementation of the electronic device 10.
  • the user interface displayed on the D screen and E screen of the screen 201 of the electronic device 20 corresponds to the user interface displayed on the inner screen 101 of the electronic device 10, and the user interface displayed separately on the D screen of the screen 201 of the electronic device 20 corresponds to the user interface displayed on the outer screen 102 of the electronic device 10.
  • the user interface displayed on the H screen of electronic device 30 corresponds to the user interface displayed on the inner screen 101 of electronic device 10, and the user interface displayed on the screen 301 of electronic device 30 corresponds to the user interface displayed on the outer screen 102 of electronic device 10.
  • This application provides an image display method that offers users a convenient way to manage images.
  • applications such as image galleries and file management on electronic devices can provide the function of displaying images to users.
  • This application embodiment uses an image gallery application as an example for description. It can be understood that the image display method provided in this application embodiment is also applicable to applications such as file management.
  • the electronic device can be in three states: unfolded, mounted, or folded. When the electronic device is in any of these states, it can respond to user input by launching a gallery application.
  • the gallery application's interface displays multiple images to the user.
  • the external screen of the electronic device 10 displays a desktop interface, which includes application icons for multiple applications.
  • the desktop interface includes application icon 501.
  • the electronic device 10 displays a photo display interface 502 of a gallery application, which includes thumbnails of multiple images.
  • the electronic device 10 displays a desktop interface including application icons 501.
  • the electronic device 10 displays a gallery interface 601, which includes at least one folder, such as "All Photos,” “Albums,” “Screenshots/Screen Recordings,” “My Favorites,” etc.
  • the electronic device 10 displays an "All Photos” interface 602, which includes thumbnails of multiple images.
  • the electronic device 10 displays thumbnails of multiple images (e.g., displaying a photo display interface 502 or a "All Photos” interface 602), the user can select multiple images for comparison.
  • thumbnails of multiple images e.g., displaying a photo display interface 502 or a "All Photos” interface 602
  • the photo display interface 502 includes thumbnails of multiple images, such as thumbnails a, b, c, d, e, and f.
  • the electronic device 10 displays an image selection interface 503.
  • the image selection interface 503 includes thumbnails of multiple images, each thumbnail containing a selection control corresponding to that image. The user can select or deselect an image by clicking the selection control.
  • the image selection interface 503 also includes a "Share” control, a "Compare” control, a "Create” control, and a "Delete” control.
  • the electronic device 10 In response to the user clicking the "Share” control, the electronic device 10 sends the selected image to other applications or devices. In response to the user clicking the "Compare” control, the electronic device 10 displays a user interface for comparing images, which includes the selected image. In response to the user clicking the “Create” control, the electronic device 10 generates a video based on the selected image. In response to the user clicking the "Delete” control, the selected image is deleted from the electronic device 10.
  • the "Compare" control cannot be selected when the number of selected images is less than a preset number. For example, the preset number is 2, as shown in Figure 7A. When the number of selected images is 1, the "Compare” control is grayed out, indicating that it cannot be selected.
  • the "Compare" control is black, indicating that it can be selected.
  • the electronic device 10 displays an image comparison interface 504 in response to the user's click on the "Compare" control.
  • the image comparison interface 504 includes images 505 and 506, where images 505 and 506 are two of the six selected images.
  • images 505 and 506 are the two images whose thumbnails appear first in the selected images.
  • image 505 is the image corresponding to thumbnail a
  • image 506 is the image corresponding to thumbnail b.
  • image 505 includes a "favorite” icon 5071 and a “delete” icon 5081
  • image 506 includes a "favorite” icon 5072 and a “delete” icon 5082.
  • the electronic device 10 adds image 505 to the "My Favorites” folder.
  • the electronic device 10 adds image 506 to the "My Favorites” folder.
  • image 505 is deleted from the electronic device 10.
  • image 506 is deleted from the electronic device 10.
  • the image comparison interface 504 includes a portion of the selected images, but not all of them; for example, as shown in Figure 7A, the number of selected images is 6, while the image...
  • the comparison interface 504 includes two images, but does not display all six selected images in the image comparison interface 504; the selected images are those that can participate in the comparison, and the image comparison interface 504 displays the images that are participating in the comparison this time.
  • the display area 509 at the bottom of the image comparison interface 504 can display thumbnails of all or some of the selected images.
  • the list of image thumbnails (referred to as sub-thumbs up) displayed at the bottom of the image comparison interface is called the comparison list.
  • the maximum number of images that can be displayed in the comparison list is N, and the number of selected images that can participate in the image comparison is M; when M is greater than N, the comparison list includes thumbnails of N images, that is, displays thumbnails of some of the selected images; when M is less than or equal to N, the comparison list includes M images, that is, displays thumbnails of all the selected images.
  • the comparison list includes thumbnails of 5 images, namely thumbnail a’, thumbnail b’, thumbnail c’, thumbnail d’, and thumbnail e’.
  • thumbnail a’ corresponds to thumbnail a and image 505
  • thumbnail b’ corresponds to thumbnail b and image 506
  • thumbnail c’ corresponds to thumbnail c
  • thumbnail d corresponds to thumbnail d
  • thumbnail e’ corresponds to thumbnail e.
  • thumbnails thumbnail a’ and thumbnail b’
  • images images 505 and 506 displayed in the image comparison interface 504 are highlighted in the comparison list, which makes it convenient for users to quickly locate the image currently being compared in the comparison list.
  • the images in images 505 and 506 can be magnified in tandem.
  • the image comparison interface 504 includes a linkage button 5041.
  • the linkage button 5041 is grayed out, it indicates that magnification is not linked, and in response to the user's magnification operation on image 505, the image in image 505 is magnified.
  • Figure 7A uses the default display of two images in the image comparison interface as an example.
  • the default number of images displayed in the image comparison interface can be more, such as 3 or 4 images.
  • the electronic device 10 displays an image selection interface 503, in which 6 images are selected, corresponding to thumbnails a, b, c, d, e, and f.
  • the electronic device 10 displays an image comparison interface 510, which includes images 505, 506, 511, and 512.
  • image 505 is the image corresponding to thumbnail a
  • image 506 is the image corresponding to thumbnail b
  • image 511 is the image corresponding to thumbnail c
  • image 512 is the image corresponding to thumbnail d.
  • Images 505, 506, 511, and 512 are four of the six selected images, meaning that four images are compared at a time. Users can compare and view images 505, 506, 511, and 512.
  • the images 505, 506, 511, and 512 can be zoomed in together or individually.
  • the thumbnails corresponding to images 505, 506, 511, and 512 are highlighted in the comparison list.
  • the electronic device 10 can respond to user operations by increasing or decreasing the number of images displayed on the image comparison interface, facilitating comparison of multiple images by the user. For example, as shown in FIG9A, the electronic device 10 displays an image comparison interface 504, which includes images 505 and 506. Correspondingly, for... The thumbnails a' of image 505 and b' of image 506 in the comparison list are highlighted. Highlighting thumbnail a' indicates that the image corresponding to thumbnail a' is displayed on the image comparison interface 504, and highlighting thumbnail b' indicates that the image corresponding to thumbnail b' is displayed on the image comparison interface 504.
  • the electronic device 10 in response to a user's click on thumbnail c', the electronic device 10 displays the image comparison interface 513, which includes images 505, 506, and 511, where image 511 is the image corresponding to thumbnail c'.
  • the electronic device 10 displays the image comparison interface 513
  • the electronic device 10 displays the image comparison interface 504.
  • the user can display the selected image on the image comparison interface or deselect the selected image from the image comparison interface.
  • the number of images displayed on the image comparison interface is less than or equal to value one and greater than or equal to value two, where value one and value two are preset values, for example, value one is 4 and value two is 2.
  • the electronic device 10 can increase or decrease the number of selected images in response to user operations. For example, as shown in FIG9B, the electronic device 10 displays an image comparison interface 504, which includes an "Add" button 50d. In response to a user clicking the "Add" button 50d, the electronic device 10 displays an image selection interface 701, which includes thumbnails of multiple images, each thumbnail containing a selection control corresponding to that image. The user can select or deselect images by clicking the selection control.
  • the image selection interface 701 also includes a page 702, which includes thumbnails of the selected images. Each thumbnail of a selected image includes a delete button, which the user can click to deselect the image corresponding to that delete button. This allows users to quickly select or adjust the images participating in the image comparison.
  • the images in the image comparison interface can be quickly shared to other applications in response to user operations.
  • the electronic device 10 displays an image comparison interface 510, which includes images 505, 506, 511, and 512.
  • the electronic device 10 in response to a user's long-press operation on image 511, displays a selection interface 514, which includes images 505, 506, 511, and 512, each image including a selection control.
  • the image comparison interface 510 the long-press operation is applied to image 511, and correspondingly, the selection control for image 511 in the selection interface 514 is in a selected state, meaning image 511 has been selected.
  • a floating image 801 in response to a user's long-press operation on image 511 in the selection interface 514, a floating image 801 is displayed; wherein, the floating image 801 is generated based on image 511, indicating that image 511 is shared to other applications.
  • the user can drag the floating image 801 to any position on the screen.
  • the electronic device 10 in response to the floating image 801 being dragged to a preset hot area, such as area 802 on the screen, the electronic device 10 can display a menu bar 803 on the right side of the screen, including icons of one or more candidate applications.
  • the menu bar 803 may include a favorite icon, a search icon, a share icon, a note icon, an SMS icon, etc.
  • the favorite application corresponding to the favorite icon can provide a global system favorite function
  • the search icon provides a search function
  • the share icon provides a sharing function to a specific application
  • the note application corresponding to the note icon can provide in-app recording, favorite, and other functions.
  • the candidate applications can be applications that support receiving images selected by the electronic device 10 from all installed applications.
  • the image 511 corresponding to the floating image 801 is sent to the application corresponding to that icon.
  • users only need to long-press an image to easily and quickly share any image in the image comparison interface to other applications, facilitating image management.
  • the size of the floating image 801 can change as it is dragged; for example, the closer it is to a preset hotspot, the smaller the floating image 801 becomes, providing users with a dynamic experience as if the image is being delivered to the corresponding application.
  • image 511 when image 511 is selected in selection interface 514, in response to a user's long-press operation on image 512 in selection interface 514, a floating image corresponding to image 512 is displayed. Further, in response to an operation where the floating image corresponding to image 512 is dragged to any icon in menu bar 803 and released, image 512 is sent to the application corresponding to that icon. In this example, the image being shared is different from the image already selected in selection interface 514.
  • the user when the electronic device 10 displays an image comparison interface, the user can delete one or more images.
  • Figures 11-18 illustrate several scenario examples where one or more images are deleted from electronic device 10.
  • Figure 11 shows a schematic diagram of a scenario where one image is deleted
  • Figures 12-13 show schematic diagrams of a scenario where multiple images are deleted in batches
  • Figure 14 shows a schematic diagram of a scenario where multiple images are deleted in batches, but unlike Figures 12 and 13, in Figure 14, after an image is deleted, multiple images in the comparison list are automatically added to the updated image comparison interface
  • Figure 15 shows a schematic diagram of a scenario where one image is deleted, but unlike Figure 11, in Figure 15, after an image is deleted, one image in the comparison list is automatically added to the updated image comparison interface
  • Figures 16 and 17 illustrate the rules for automatically adding one image from the comparison list to the updated image comparison interface
  • Figure 18 shows a schematic diagram of a scenario where the image comparison interface is automatically exited.
  • each image in the image comparison interface includes a "delete” icon.
  • the user can click the "delete” icon to delete the image corresponding to that "delete” icon from the electronic device 10.
  • the electronic device 10 displays an image comparison interface 510, which includes images 505, 506, 511, and 512, each of which includes a "delete” icon.
  • the electronic device 10 in response to a user's click on the "delete” icon 5111 on image 511, the electronic device 10 displays a prompt box 515, which includes the prompt message “Delete this image?", and also includes a "delete” button and a “cancel” button.
  • the image 511 corresponding to the "delete” icon 5111 is deleted from the electronic device 10.
  • users can easily delete an image from their electronic device through the image comparison interface.
  • the electronic device 10 when the electronic device 10 displays an image comparison interface, in response to the user's operation of deleting multiple images, multiple images are deleted in batches from the electronic device 10.
  • the user can select multiple images in the image comparison interface to achieve batch deletion of multiple images from the electronic device 10.
  • the electronic device 10 displays an image comparison interface 510, which includes images 505, 506, 511, and 512.
  • the electronic device 10 displays a selection interface 514, which includes images 505, 506, 511, and 512, wherein each image includes a selection control.
  • the long-press operation is applied to image 511, and correspondingly, the selection control of image 511 in the selection interface 514 is in a selected state, that is, image 511 has been selected.
  • users can also select other images on the selection interface 514 by clicking the selection control.
  • the selection control for image 512 in the selection interface 514 is selected, meaning image 512 is selected.
  • two images are selected on the selection interface 514.
  • the selection interface 514 also includes a "Delete" button 517.
  • the electronic device 10 displays a prompt box 518.
  • the prompt box 518 includes the message “Delete 2 images?" and also includes a "Delete” button and a "Cancel” button.
  • the selected images 511 and 512 on the selection interface 514 are deleted from the electronic device 10.
  • the user can easily delete multiple images from the electronic device in the image comparison interface without having to perform the deletion operation one by one, simplifying the steps for deleting photos in the image comparison interface.
  • the number of images displayed in the image comparison interface decreases accordingly. For example, when the image comparison interface displays P images, if Q images out of the P images are deleted from the electronic device, the updated image comparison interface will display (P-Q) images, where the value of (P-Q) is greater than or equal to the value of two.
  • the image 511 corresponding to the "Delete” icon 5111 is deleted from the electronic device 10.
  • the image comparison interface 510 displays four images, i.e., four images are compared.
  • the image comparison interface 516 displays three images, i.e., three images are compared.
  • the selected images 511 and 512 on the selection interface 514 are deleted from the electronic device 10.
  • the image comparison interface 510 displays four images, i.e., four images are compared. After two of these images are deleted from the electronic device 10, the image comparison interface 504 displays two images, i.e., two images are compared.
  • the electronic device 10 when the electronic device 10 receives a user's click operation on the "delete” icon 5111 on the image 511, in response to the click operation on the "delete” icon 5111 on the image 511, the electronic device 10 displays the image comparison interface 516; for example, referring to FIG12 and FIG13, in response to a user's click operation on the "delete” button 517 in the selection interface 514, the electronic device 10 displays the image comparison interface 504.
  • the image comparison interface when one or more images in the image comparison interface are deleted from the electronic device...
  • the number of images displayed in the image comparison interface remains unchanged.
  • the image comparison interface displays P images
  • the updated image comparison interface will still display P images. That is, the remaining Q selected images for comparison are automatically added to the updated image comparison interface, ensuring that the number of images included in the updated interface remains constant. This allows users to directly view and compare multiple images without having to manually add new images to the image comparison interface after deleting existing ones, simplifying the user experience.
  • a comparison list displays thumbnails of five images: thumbnail a', thumbnail b', thumbnail c', thumbnail d', and thumbnail e'. Thumbnail a' for image 505, thumbnail b' for image 506, thumbnail c' for image 511, and thumbnail d' for image 512 are highlighted.
  • the electronic device 10 displays a selection interface 514, where the user can select images 511 and 512.
  • the remaining number of images selected for the image comparison is 4, and the corresponding thumbnails are thumbnail a, b, e, and f, respectively.
  • the remaining number of images selected for the image comparison is equal to P, so the updated image comparison interface displays P images, i.e., the updated image comparison interface includes 4 images.
  • the electronic device 10 displays an image comparison interface 519, which includes images 505, 506, 520, and 521. In the comparison list, thumbnails a' corresponding to image 505, b' corresponding to image 506, e' corresponding to image 520, and f' corresponding to image 521 are highlighted.
  • image 520 corresponds to thumbnail e in Figure 7A
  • image 521 corresponds to thumbnail f in Figure 7A. That is to say, after the images corresponding to thumbnails c and d in Figure 7A (images 511 and 512 in Figure 14) are deleted, image 520 corresponding to thumbnail e in Figure 7A and image 521 corresponding to thumbnail f in Figure 7A are automatically added to the image comparison interface, so that the number of images included in the updated image comparison interface remains unchanged.
  • a comparison list displays thumbnails of five images: thumbnail a', thumbnail b', thumbnail c', thumbnail d', and thumbnail e'. Thumbnail a' for image 505, thumbnail b' for image 506, and thumbnail c' for image 511 are highlighted.
  • the electronic device 10 in response to a user clicking the "Delete" icon on image 511, the electronic device 10 displays a prompt box 515.
  • image 511 is deleted from the electronic device 10, and correspondingly, thumbnail c' for image 511 is also deleted from the comparison list.
  • the remaining number of selected images participating in the comparison is 5, corresponding to thumbnails a, b, d, e, and f respectively. If the number of remaining selected images for comparison is greater than P, then the updated image comparison interface displays P images, meaning the updated image comparison interface includes 3 images.
  • the electronic device 10 displays an image comparison interface 522, which includes images 505, 506, and 512. Thumbnails a' corresponding to image 505, b' corresponding to image 506, and d' corresponding to image 512 are highlighted in the comparison list. Among them, image 512 corresponds to thumbnail d in Figure 7A. That is to say, after the image corresponding to thumbnail c in Figure 7A (image 511 in Figure 15) is deleted, image 512 corresponding to thumbnail d in Figure 7A is automatically added to the image comparison interface, so that the number of images included in the updated image comparison interface remains unchanged.
  • the electronic device 10 displays a prompt box containing information to prompt the user to confirm the deletion.
  • the electronic device 10 may not display a prompt message but directly delete the corresponding image from the electronic device.
  • the electronic device 10 upon receiving a user's click on the "Delete” button 517, the electronic device 10 displays an image comparison interface 519 in response to the click on the "Delete” button 517; for example, referring to Figure 15, the electronic device 10 displays an image comparison interface 522 in response to a user's click on the "Delete" icon on image 511.
  • P 2.
  • the image comparison interface includes 2 images
  • one image is deleted from the electronic device 10. If the number of remaining images selected for image comparison is greater than or equal to 2, the updated image comparison interface includes 2 images; that is, one image that was not previously displayed on the image comparison interface is displayed on the updated image comparison interface.
  • the images added to the updated image comparison interface can be determined according to preset rules.
  • the preset rules include: determining the images to be added to the updated image comparison interface according to the principle of selecting the nearest image and the principle of selecting images from the back.
  • the image closest to the reference image is selected after the reference image.
  • the reference image is the image stored later in the storage order among the two images included in the image comparison interface. For instance, if the comparison list includes 7 images, numbered 1-7 in storage order, and the image comparison interface displays images 2 and 5 (i.e., image 5 is the reference image), after image 2 is deleted, the closest image after image 5 is image 6, which is automatically added to the updated image comparison interface, which then includes images 5 and 6. Subsequently, image 6 is deleted, and the reference image becomes image 6, with image 7 being the closest image after it. After image 6 is deleted, image 7 is automatically added to the updated image comparison interface, which then includes images 5 and 7.
  • the images in the comparison list are displayed sequentially in the image comparison interface from front to back.
  • the images automatically added to the updated image comparison interface are all those that have not yet been compared. This allows users to compare images in order, avoiding repetitive manual image selection and saving user time. step.
  • the image closest to the baseline image is selected. For example, if the comparison list includes 7 images, stored in order from image 1 to image 7, the image comparison interface displays images 2 and 7. This means the baseline image is image 7, and there are no images after it. The closest image before image 7 is image 6. If image 2 is deleted, image 6 is automatically added to the updated image comparison interface, which then includes both images 6 and 7. Similarly, if image 7 is deleted, image 6 is automatically added to the updated image comparison interface, which then includes both images 2 and 6.
  • Figures 16 and 17 show an example of automatically supplementing images using the principle of selecting the nearest image and the principle of prioritizing backward selection.
  • the electronic device 10 displays an image comparison interface 901, which includes images 902 and 903.
  • the comparison list includes thumbnails a', b', c', and d', with thumbnail b' corresponding to image 902 and thumbnail c' corresponding to image 903 highlighted.
  • the image comparison interface 901 includes an "Image Comparison” button, as shown in Figure 16(b).
  • the electronic device 10 displays an image selection interface 904, which includes multiple images, where thumbnail a', thumbnail b', thumbnail c', and thumbnail d' are selected.
  • the number of images selected for comparison is 4, meaning the comparison list includes 4 images; the number of images displayed on the image comparison interface is 2, of which the baseline image is image 903 (the image corresponding to thumbnail c').
  • image 902 is deleted from electronic device 10.
  • Electronic device 10 displays an image comparison interface 905, which includes images 903 and 906.
  • Image 906 is the first image stored on electronic device 10 after image 903, as shown in Figure 16(a).
  • the thumbnail d' corresponding to image 906 is the first image after the thumbnail c' corresponding to image 903.
  • the thumbnail b' corresponding to image 902 is also deleted, as shown in Figure 16(c).
  • the comparison list includes thumbnails a', c', and d', with thumbnails c' corresponding to image 903 and d' corresponding to image 906 highlighted.
  • the images in the image comparison interface are displayed in the order in which they are stored in the electronic device 10, as shown in Figure 16(c).
  • Image 903 is stored in the electronic device 10 before image 906. Accordingly, in the image comparison interface 905, image 903 is displayed above image 906. Compared to the image comparison interface 901, the display position of image 903 has been moved upward.
  • the image comparison interface 905 includes an "Image Comparison” button, as shown in Figure 16(d).
  • the electronic device 10 displays an image selection interface 907, which includes multiple images, among which thumbnail a' corresponding to thumbnail a, thumbnail c' corresponding to thumbnail c, and thumbnail d' corresponding to thumbnail d are selected.
  • the image comparison interface 905 includes an "Image Comparison" button, as shown in Figure 17(b).
  • the electronic device 10 displays an image selection interface 907.
  • image 906 is deleted from electronic device 10. No image follows the thumbnail d' corresponding to image 906, and the most recent image before thumbnail d' is image 909 corresponding to thumbnail a'.
  • image comparison interface 908 in response to the user's click on the "delete" icon on image 906, electronic device 10 displays an image comparison interface 908, which includes images 909 and 903.
  • the thumbnail d' corresponding to image 906 is also deleted.
  • the comparison list includes thumbnails a' and c'.
  • the image comparison interface 908 includes an "image comparison” button, as shown in Figure 17(d).
  • the electronic device 10 displays an image selection interface 910, which includes multiple images, among which thumbnail a' and thumbnail c' are selected.
  • the preset rules include: selecting images to be added to the updated image comparison interface based on the principles of proximity and forward selection. For example, according to the storage order of images in the electronic device, the image closest to the calibrated image is selected, where the calibrated image is the one stored earlier in the two images included in the image comparison interface. If no image exists before the calibrated image, the image closest to the calibrated image is selected after it. This allows users to perform a more detailed comparison of images they have already viewed.
  • the preset rules include: selecting the image from the comparison list whose shooting time (or acquisition time) is closest to that of the images retained in the image comparison interface.
  • images with similar shooting times (or acquisition times) are likely to have similar image content, making it easier for users to view images with similar content.
  • the images corresponding to the thumbnails in the comparison list are also referred to as images in the comparison list.
  • the preset rules include: selecting images from the comparison list that were taken at the same location as the images retained in the image comparison interface. Generally, images taken at the same location are likely to have similar image content, making it easier for users to view images with similar content.
  • the electronic device can perform image analysis on all images in the comparison list to obtain the image similarity between each image.
  • Preset rules include selecting the image with the highest similarity to the images retained in the image comparison interface from the comparison list. This makes it easier for users to view images with similar content.
  • the preset rules include: selecting images from multiple images in the order they were chosen for comparison. This allows users to prioritize viewing the first image they selected.
  • the electronic device 10 displays an image comparison interface 908, which includes images 909 and 903.
  • the comparison list includes thumbnails a' and c', where thumbnail a' corresponds to image 909 and thumbnail c' corresponds to image 903.
  • the electronic device 10 displays an image selection interface 911, which includes multiple images, where thumbnail a' (image 909) is the selected thumbnail. of.
  • the above embodiments illustrate the image display method provided in this application embodiment, taking the electronic device 10 in a folded state and the external screen 102 of the electronic device 10 displaying a user interface as an example. It should be noted that the image display method provided in the above embodiments is also applicable when the electronic device 10 is in a stand state or an unfolded state. When the electronic device 10 is in a stand state or an unfolded state, the specific implementation of processes such as displaying an image comparison interface, increasing or decreasing the number of images in the image comparison interface, increasing or decreasing the number of images participating in the comparison, and deleting images from the electronic device 10 can be referred to the implementation when the electronic device 10 is in a folded state, and will not be exemplified one by one in this application embodiment.
  • the four sides of the display area of the electronic device are of similar length, and the user interface displayed by the electronic device is approximately square.
  • the inner screen 101 of the electronic device 10 displays the user interface
  • the four sides of the inner screen 101 are of similar length, approximating a square.
  • the D screen and E screen of the screen 201 of the electronic device 20 display the user interface
  • the four sides of the screen 201 are of similar length, approximating a square.
  • the electronic device 30 when the electronic device 30 is in the stand state or folded state, the H screen of the electronic device 30 displays the user interface, and the four sides of the H screen are of similar length, approximating a square.
  • the image display method provided in this application embodiment is such that when the display area of the electronic device is approximately square, the user interface displayed by the electronic device is also approximately square.
  • the user interface is an image comparison interface.
  • the inner screen 101 of the electronic device 10 displays the user interface (image comparison interface), which is approximately square.
  • the image comparison interface includes multiple images arranged in both horizontal and vertical layouts.
  • the image comparison interface when the image comparison interface includes two images, in a horizontal layout, the two images are arranged vertically, with the horizontal length of each image greater than its vertical length.
  • the image comparison interface when the image comparison interface includes two images, in a vertical layout, the two images are arranged horizontally, with the vertical length of each image greater than its horizontal length.
  • the image comparison interface when the image comparison interface includes three images, in a horizontal layout, the three images are arranged vertically, with the horizontal length of each image greater than its vertical length.
  • the image comparison interface when the image comparison interface includes three images, in a vertical layout, the three images are arranged horizontally, with the vertical length of each image greater than its horizontal length.
  • the image comparison interface when the image comparison interface includes four images, a fixed layout is used. For example, as shown in Figure 20, when the image comparison interface includes four images, the four images are arranged in a 2x2 grid.
  • the image comparison interface includes multiple images, each with both vertical and horizontal aspect ratios.
  • the image if the vertical length of the image is greater than its horizontal length, the image is displayed vertically; if the vertical length is equal to the horizontal length, the image is displayed vertically; and if the vertical length is less than the horizontal length, the image is displayed horizontally.
  • the electronic device 10 displays an image comparison interface 1001, which includes two images, image 1002 and image 1003.
  • image comparison interface 1001 When the image comparison interface 1001 is laid out horizontally, but the original images of the two images being compared are in portrait orientation, the original images are enlarged and cropped vertically before display.
  • the images in images 1002 and 1003 are not fully displayed, resulting in a poor user experience.
  • the layout of the image comparison interface is related to the aspect ratio of the selected images for comparison.
  • the layout of the image comparison interface is determined according to the aspect ratio of the first W images selected for comparison.
  • the electronic device 10 displays an image comparison interface 1004, which includes thumbnails of multiple images, of which 6 images have been selected.
  • the number of images selected for comparison may change when the electronic device displays an image comparison interface. For example, if one or more images are deleted while the image comparison interface is displayed, the number of images selected for comparison may change; or the number of selected images may be increased or decreased based on user actions (e.g., as shown in the scenario in Figure 9B).
  • the layout of the image comparison interface is redefined based on the orientation of the first W images among the selected images.
  • the following example uses an image comparison interface with two images. It is understood that the implementation of an image comparison interface with three or more images can refer to the implementation of an image comparison interface with two images. In this application embodiment, they will not be illustrated one by one.
  • the electronic device 10 displays an image comparison interface 1005, which includes images 1008 and 1009 arranged horizontally, i.e., the image comparison interface 1005 is a vertical layout.
  • the vertical layout of the image comparison interface 1005 is determined based on the orientation of the first four selected images; for example, the first image is vertical, the second image is vertical, the third image is horizontal, and the fourth image is horizontal.
  • the number of vertical images is equal to the number of horizontal images, thus the image comparison interface is vertically laid out.
  • image 1009 is removed from...
  • an electronic device 10 deletes an image, it displays an image comparison interface 1010.
  • This interface includes images 1008 and 1011, arranged vertically, meaning the image comparison interface 1010 has a horizontal layout.
  • the electronic device 10 determines the updated layout of the image comparison interface based on the orientation of the first four selected images.
  • the image comparison interface has a horizontal layout.
  • the electronic device 10 displays an image comparison interface 1007, which includes images 1011 and 1012. Images 1011 and 1012 are arranged vertically, i.e., the image comparison interface 1007 has a horizontal layout.
  • image 1012 is deleted from the electronic device 10, and the electronic device 10 displays an image comparison interface 1013.
  • the comparison interface 1013 includes images 1011 and 1008, which are arranged horizontally, i.e., the image comparison interface 1013 has a vertical layout.
  • the electronic device 10 when the electronic device 10 displays the image comparison interface and the interface of another application in a split-screen manner, it changes from split-screen display to full-screen display. After determining the change from split-screen display to full-screen display, the layout of the image comparison interface in full-screen display is determined according to the aspect ratio of the first W images selected for image comparison.
  • the electronic device 10 displays application window 1014 and application window 1015 in a split screen.
  • application window 1014 is the application window of the calculator application, displaying the calculator interface
  • application window 1015 is the application window of the gallery application, displaying the image comparison interface 1016, which includes image 1017 and image 1018, arranged vertically.
  • electronic device 10 In response to the operation of closing application window 1014, electronic device 10 displays the application window of the gallery application in full screen.
  • the calculator interface includes an exit control 10141, and electronic device 10 receives the user's click operation on the exit control 10141, which is equivalent to receiving the operation of closing application window 1014.
  • electronic device 10 displays an image comparison interface 1019, which includes image 1017 and image 1018, arranged horizontally, i.e., the image comparison interface 1019 has a vertical layout.
  • the layout of the image comparison interface for full-screen display is determined to be a vertical layout based on the aspect ratio of the first W images selected for image comparison.
  • the electronic device 10 displays the image comparison interface 1019 in full screen, if a split-screen display operation is received, the electronic device 10 displays the image comparison interface 1016 in the application window 1015, in which images 1017 and 1018 are arranged vertically.
  • the layout of the image comparison interface in the unfolded state is determined according to the aspect ratio of the first W images among the selected images for image comparison.
  • the electronic device 10 is in a folded state, and the outer screen 102 of the electronic device 10 displays an image comparison interface 1020.
  • the image comparison interface 1020 includes image 1021 and image 1022, which are arranged vertically.
  • the electronic device 10 is unfolded from a folded state to an unfolded state, and the electronic device 10 is determined to be unfolded.
  • the layout is determined based on the aspect ratio of the first W images selected for comparison. For example, if the number of images selected for comparison is 4 and the value of Q is 4, the layout of the image comparison interface is determined to be a vertical layout based on the aspect ratio of the first 4 images selected for comparison.
  • the inner screen 101 of the electronic device 10 displays an image comparison interface 1023, which includes image 1021 and image 1022.
  • image 1021 and image 1022 are arranged horizontally, that is, the image comparison interface 1023 is arranged vertically.
  • the various embodiments provided in this application can be combined in any way; for example, the user interface displayed by the electronic device 10 in the folded state in the scenario shown in FIG27 can be the user interface displayed by the electronic device 10 in the folded state in the aforementioned embodiments, such as the image comparison interface 504 in FIG7A and FIG13, the image comparison interface 901 in FIG16, the image comparison interface 905 in FIG17, the image comparison interface 908 in FIG18, etc.; as another example, the image comparison interface 1016 in the application window 1015 displayed in the split screen in FIG26 can be obtained by splitting any one of the image comparison interfaces in FIG22-FIG25; as yet another example, the image comparison interface 1005 in FIG24 can be the image comparison interface 1023 in FIG27.
  • the image display method provided in this application embodiment can be applied to electronic devices configured with foldable screens.
  • Figure 28 shows a schematic diagram of a hardware structure of the above-mentioned electronic device.
  • Electronic device 100 may include: processor 110, memory 120, antenna 1, antenna 2, mobile communication module 130, wireless communication module 140, audio module 150, camera 160, display screen 170, sensor module 180, etc.
  • Sensor module 180 may include pressure sensor, touch sensor, gyroscope sensor, accelerometer sensor, etc.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural network processing unit
  • the controller can be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also include a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 may include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous receiver.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART Universal Asynchronous Receiver/Transmitter
  • MIPI Mobile Industry Processor Interface
  • GPIO General-Purpose Input/Output
  • SIM Subscriber Identity Module
  • USB Universal Serial Bus
  • the wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 130, wireless communication module 140, modem processor, and baseband processor.
  • the mobile communication module 130 can provide wireless communication solutions, including 2G/3G/4G/5G, for use on the electronic device 100.
  • at least some functional modules of the mobile communication module 130 may be housed in the processor 110.
  • at least some functional modules of the mobile communication module 130 and at least some modules of the processor 110 may be housed in the same device.
  • the wireless communication module 140 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as Wi-Fi networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR).
  • WLANs wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the electronic device 100 can receive images from other devices via the mobile communication module 130 or the wireless communication module 140, and save the received images to the image library.
  • Electronic device 100 implements display functions through a GPU, a display screen 170, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display screen 170 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and for graphics rendering.
  • Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
  • the display screen 170 is used to display images, videos, etc.
  • the display screen 170 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED active-matrix organic light-emitting diode
  • FLED flexible light-emitting diode
  • Mini-LED a Mini-LED
  • Micro-OLED a quantum dot light-emitting diode
  • QLED quantum dot light-emitting diode
  • the display screen 170 can be used to display the user interface of the electronic device 100, such as an image comparison interface in a gallery.
  • the electronic device 100 may include multiple display screens, such as an inner screen and an outer screen.
  • Electronic device 100 can perform shooting functions through ISP, camera 160, video codec, GPU, display 170 and application processor.
  • Camera 160 is used to capture still images or videos.
  • An object is projected onto a photosensitive element by generating an optical image through a lens.
  • the photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • the photosensitive element converts the light signal into an electrical signal, which is then transmitted to an ISP (Internet Service Provider) for conversion into a digital image signal.
  • the ISP outputs the digital image signal to a DSP (Digital Signal Processor) for processing.
  • the DSP converts the digital image signal into image signals in standard formats such as RGB and YUV.
  • the electronic device may include one or N cameras 160, where N is a positive integer greater than 1. In this embodiment, the still images captured by the camera 160 can be saved to a gallery.
  • the audio module 150 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal.
  • the audio module 150 can also be used for encoding and decoding audio signals.
  • the audio module 150 may be located in the processor 110, or some functional modules of the audio module 150 may be located in the processor 110.
  • the memory 120 can be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 120.
  • the processor 110 can execute instructions stored in the memory 120, which may include a program storage area and a data storage area.
  • the program storage area may store the operating system and at least one application required for a function.
  • the data storage area may store data created during the use of the electronic device (such as image or video files).
  • the memory 120 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • a pressure sensor is used to sense pressure signals and converts them into electrical signals.
  • the pressure sensor may be disposed on the display screen 170.
  • pressure sensors such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen 170, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor. The electronic device 100 may also calculate the touch location based on the detection signal from the pressure sensor.
  • a touch sensor also known as a "touch panel” can be located on the display screen 170.
  • the touch sensor and the display screen 170 together form a touchscreen, also called a "touch screen.”
  • the touch sensor detects touch operations applied to or near it.
  • the touch sensor can then transmit the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 170.
  • the touch event can determine whether a user's touch operation (e.g., tap, double-tap, etc.) on the inner or outer screen has been received, and it can also determine whether a gesture on the inner or outer screen has been received.
  • a gyroscope sensor can be used to determine the motion attitude of an electronic device 100.
  • the angular velocity of the electronic device 100 about three axes i.e., the x, y, and z axes
  • the gyroscope sensor can be determined by the gyroscope sensor.
  • An accelerometer can be used to detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). When electronic device 100 is stationary, the magnitude and direction of gravity can be detected.
  • the orientation of the electronic device 100 can be obtained using a gyroscope sensor and an accelerometer sensor, for example, to determine whether the electronic device 100 is placed horizontally or vertically.
  • multiple sets of sensors can be set in the electronic device 100.
  • sensor modules can be set on screen A and screen B of the electronic device.
  • screen A can be equipped with gyroscope sensor 1 and accelerometer sensor 1
  • screen B can be equipped with gyroscope sensor 2 and accelerometer sensor 2.
  • the electronic device 100 can obtain parameters such as the angle between screen A and screen B, thereby determining the attitude of the electronic device 100, such as unfolded state, supported state, or folded state.
  • the electronic device provided in this application embodiment includes hardware structures and/or software modules corresponding to perform each function in order to achieve the above-mentioned functions.
  • the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.
  • This application embodiment can divide the above-described electronic device into functional modules based on the method example described above. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module.
  • the integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
  • the electronic device 2900 includes: a processing unit 2910, a storage unit 2920, and a display unit 2930.
  • the processing unit 2910 is used to control and manage the operation of the electronic device 2900.
  • Storage unit 2920 is used to store program code and data of electronic device 2900.
  • Display unit 2930 is used to display the user interface of electronic device 2900.
  • the unit modules in the above-mentioned electronic device 2900 include, but are not limited to, the processing unit 2910, the storage unit 2920 and the display unit 2930.
  • the electronic device 2900 may also include an image acquisition unit 2940.
  • the image acquisition unit 2940 is used to acquire images.
  • the electronic device 2900 may also include a communication unit 2950.
  • the communication unit 2950 is used to support communication between the electronic device 2900 and other devices, such as acquiring images from other devices.
  • the processing unit 2910 can be a processor or controller, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • the storage unit 2920 can be a memory.
  • the display unit 2930 can be a display screen, etc.
  • the image acquisition unit 2940 can be a camera, etc.
  • the communication unit 2950 can include a mobile communication unit and/or a wireless communication unit.
  • processing unit 2910 is a processor (processor 110 as shown in FIG. 28), storage unit 2920 is a memory (memory 120 as shown in FIG. 28), and display unit 2930 is a display screen (display screen 170 as shown in FIG. 28).
  • Image acquisition unit 2940 is a camera (camera 160 as shown in FIG. 28).
  • Communication unit 2950 may include a mobile communication unit (mobile communication module 130 as shown in FIG. 28) and a wireless communication unit (wireless communication module 140 as shown in FIG. 28).
  • the electronic device 2900 provided in this application embodiment can be the electronic device 100 shown in FIG. 28.
  • the processor, memory, display screen, camera, mobile communication unit, and wireless communication unit described above can be connected together, for example, via a bus.
  • This application also provides a chip system, which includes at least one processor and at least one... Interface circuitry.
  • the processor and interface circuitry can be interconnected via lines.
  • the interface circuitry can be used to receive signals from other devices (e.g., the memory of an electronic device).
  • the interface circuitry can be used to send signals to other devices (e.g., the processor).
  • the interface circuitry can read instructions stored in memory and send those instructions to the processor. When the instructions are executed by the processor, the electronic device can perform the steps in the above embodiments.
  • the chip system may also include other discrete components, and this application embodiment does not specifically limit this.
  • This application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform various functions or steps performed by the mobile phone in the above method embodiments.
  • This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the mobile phone in the above method embodiments.
  • the disclosed apparatus and methods can be implemented in other ways.
  • the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods.
  • multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
  • a component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
  • the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
  • the integrated unit can be implemented in hardware or as a software functional unit.
  • the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application.
  • the aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the field of terminals, and provides a picture display method and an electronic device. The method comprises: an electronic device displaying a plurality of thumbnails and a first control; and when a first number of thumbnails among the plurality of thumbnails have been selected, displaying a second interface in response to a first operation on a first control, wherein the second interface comprises two or more of a plurality of pictures that have been selected, for example, the second interface comprises a first picture and a second picture. In this way, a user can compare the plurality of pictures. When the second interface is displayed, a second operation on the second picture is received, the second picture is deleted from the electronic device, and a third interface is displayed, for example, the third interface comprises the first picture and a third picture. Therefore, when the second interface is displayed, the picture can be directly deleted from the electronic device and another picture is automatically supplemented. The present invention facilitates a user in comparing and managing pictures.

Description

一种图片显示方法及电子设备A method for displaying images and an electronic device 技术领域Technical Field

本申请实施例涉及终端领域,尤其涉及一种图片显示方法及电子设备。This application relates to the field of terminals, and more particularly to an image display method and an electronic device.

背景技术Background Technology

随着电子设备拍摄能力不断提高,很多用户都会使用电子设备拍摄图片;用户还可以使用电子设备从网络上下载各类图片;用户还可以使用电子设备接收其他设备分享的图片等。As the shooting capabilities of electronic devices continue to improve, many users use electronic devices to take pictures; users can also use electronic devices to download various pictures from the Internet; users can also use electronic devices to receive pictures shared by other devices, etc.

电子设备上保存的图片越来越多,用户会有对图片进行管理的需求。比如,查看图片,比较图片之间的差异,删除图片,收藏图片等。As the number of images stored on electronic devices increases, users will have a need to manage these images. This includes things like viewing images, comparing differences between them, deleting images, and saving images to favorites.

如何方便用户对电子设备上的图片进行管理,是需要解决的一个问题。How to make it easier for users to manage pictures on their electronic devices is a problem that needs to be solved.

发明内容Summary of the Invention

本申请实施例提供一种图片显示方法及电子设备,能够向用户提供方便的图片管理方式,提高用户在电子设备上管理图片的操作体验。This application provides an image display method and an electronic device that can provide users with a convenient way to manage images and improve the user's experience in managing images on electronic devices.

为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

第一方面,本申请实施例提供一种图片显示方法,该方法包括:电子设备显示第一界面,第一界面包括多张缩略图和第一控件;在多张缩略图中第一数量(M个)的缩略图被选中后,响应于对第一控件的第一操作(例如点击操作),显示第二界面,第二界面包括第一图片和第二图片;其中,第一数量的缩略图包括第一缩略图、第二缩略图和第三缩略图,第一图片是第一缩略图对应的图片,第二图片是第二缩略图对应的图片。例如,第二界面为图片对比界面,第一图片和第二图片为已被选中参与图片对比的图片中两张,可选的,第一图片和第二图片是排序最靠前的两张。In a first aspect, embodiments of this application provide an image display method, comprising: an electronic device displaying a first interface, the first interface including multiple thumbnails and a first control; after a first number (M) of thumbnails are selected, in response to a first operation (e.g., a click operation) on the first control, displaying a second interface, the second interface including a first image and a second image; wherein the first number of thumbnails includes a first thumbnail, a second thumbnail, and a third thumbnail, the first image being the image corresponding to the first thumbnail, and the second image being the image corresponding to the second thumbnail. For example, the second interface is an image comparison interface, the first image and the second image being two images selected for image comparison, optionally, the first image and the second image being the two images ranked first.

当显示第二界面时,接收对第二图片的第二操作(例如删除操作),将第二图片从电子设备删除并显示第三界面,第三界面包括第一图片和第三图片,第三图片是第一界面中第三缩略图对应的图片。When the second interface is displayed, a second operation (e.g., deletion operation) is received on the second image, the second image is deleted from the electronic device and the third interface is displayed. The third interface includes the first image and the third image, and the third image is the image corresponding to the third thumbnail in the first interface.

在该方法中,用户选中多张图片的缩略图后,电子设备显示第二界面(图片对比界面),第二界面包括被选中的多个图片中两个或两个以上。这样,用户可以对多个图片进行对比。还可以在显示第二界面(图片对比界面)时直接将图片从电子设备删除,并向图片对比界面自动补充图片。方便用户管理图片。In this method, after a user selects thumbnails of multiple images, the electronic device displays a second interface (image comparison interface). This second interface includes two or more of the selected images. This allows users to compare multiple images. Furthermore, images can be deleted directly from the electronic device while the second interface (image comparison interface) is displayed, and the interface will automatically add new images, facilitating image management for the user.

结合第一方面,在一种可能的实施方式中,当电子设备为折叠状态时,以第一布局显示第二界面中第一图片和第二图片;当电子设备由折叠状态为展开状态时,从第一布局切换为以第二布局显示第一图片和第二图片;第二布局与第一布局不同。其中,第一数量的缩略图对应第一数量的图片,即已被选中参与图片对比的图片数量为第一数量,第二布局与第一数量的图片中第二数量的图片的画幅方向相关。In conjunction with the first aspect, in one possible implementation, when the electronic device is in a folded state, a first image and a second image in the second interface are displayed in a first layout; when the electronic device unfolds from the folded state, the first layout is switched to the second layout to display the first image and the second image; the second layout is different from the first layout. Specifically, a first number of thumbnails correspond to a first number of images, meaning the number of images selected for comparison is the first number, and the second layout is related to the aspect ratio of the second number of images within the first number of images.

在该方法中,电子设备由折叠状态展开为展开状态,第一图片和第二图片的布局随之改变。其中,布局可以包括横向布局、纵向布局。例如,当电子设备为折叠状态时,第一图片和第二图片横向布局,当电子设备为展开状态时,第一图片和第二图片 纵向布局。In this method, the electronic device unfolds from a folded state to an unfolded state, and the layout of the first and second images changes accordingly. The layout can include a horizontal layout or a vertical layout. For example, when the electronic device is in a folded state, the first and second images are arranged horizontally; when the electronic device is in an unfolded state, the first and second images are arranged vertically. Vertical layout.

在一种可能的实施方式中,当电子设备为折叠状态时,第一图片和第二图片预设为横向布局。当电子设备为展开状态时,电子设备的屏幕近似正方形;电子设备由折叠状态展开为展开状态时,根据已被选中参与对比的图片的画幅确定图片对比界面中各图片的布局。In one possible implementation, when the electronic device is in a folded state, the first and second images are preset to be in a horizontal layout. When the electronic device is in an unfolded state, the screen of the electronic device is approximately square; when the electronic device unfolds from a folded state, the layout of each image in the image comparison interface is determined according to the size of the selected images for comparison.

由于图片对比界面中图片被显示的大小及形状是与显示该图片的区域的大小和形状适配的,在适配过程中,图片的图像会被放大;根据图片的画幅确定图片对比界面中各图片的布局,即显示区域的形状与图片画幅更匹配,就可以减少放大图片后图像被大幅裁剪的情况,使得图片中图像较多地被显示。Because the size and shape of the images displayed in the image comparison interface are adapted to the size and shape of the area where the image is displayed, the image will be enlarged during the adaptation process. By determining the layout of each image in the image comparison interface according to the image size, that is, the shape of the display area is more in line with the image size, which can reduce the situation where the image is significantly cropped after being enlarged, so that more of the image is displayed.

在一种可能的实施方式中,当电子设备为展开状态时,第一图片和第二图片的布局与已被选中参与图片对比的图片中按预设排序在前W个(第二数量)的画幅相关。In one possible implementation, when the electronic device is in an unfolded state, the layout of the first and second images is related to the W (second number) frames of the images selected for comparison according to a preset order.

在该实施方式中,已被选中参与图片对比的图片中排序在前的图片被显示于屏幕上,根据排序在前的图片的画幅确定图片的布局,可以使得显示区域与图片画幅更匹配。In this embodiment, the image ranked first among the selected images for comparison is displayed on the screen. The layout of the images is determined based on the size of the ranked image, which makes the display area more compatible with the image size.

在一种可能的实施方式中,当第二数量的图片中大于或等于一半数量的图片的画幅方向为竖向画幅,第一图片和第二图片纵向布局(可选的,第二布局为纵向布局);当第二数量的图片中小于一半数量的图片的画幅方向为竖向画幅,第一图片和第二图片横向布局(可选的,第二布局为横向布局)。In one possible implementation, when more than half of the images in the second number of images are in a vertical orientation, the first and second images are arranged vertically (optionally, the second arrangement is vertical); when less than half of the images in the second number of images are in a vertical orientation, the first and second images are arranged horizontally (optionally, the second arrangement is horizontal).

当大部分图片的画幅为纵向时图片纵向布局,当大部分图片的画幅为横向时图片横向布局,图片布局与大部分图片画幅一致;这样就可以使得图片中图像较多地被显示,减少显示图片时图像被大幅裁剪的情况。When most images are portrait-oriented, they are laid out portrait-oriented; when most images are landscape-oriented, they are laid out landscape-oriented. The image layout is consistent with the aspect ratio of most images. This allows more of the image to be displayed, reducing the likelihood of images being heavily cropped when displayed.

结合第一方面,在一种可能的实施方式中,当显示第二界面时,第二界面中第一图片和第二图片以第三布局显示;当显示第三界面时,第三界面中第一图片和第三图片以第四布局显示。其中,第四布局与第三布局不同,布局可以包括横向布局、纵向布局。例如,当显示第二界面时,第一图片和第二图片横向布局;第二界面中第二图片被从电子设备删除后,显示第三界面,第三界面中第一图片和第三图片纵向布局。又例如,当显示第二界面时,第一图片和第二图片纵向布局;第二界面中第二图片被从电子设备删除后,显示第三界面,第三界面中第一图片和第三图片横向布局。In conjunction with the first aspect, in one possible implementation, when the second interface is displayed, the first and second images in the second interface are displayed in a third layout; when the third interface is displayed, the first and third images in the third interface are displayed in a fourth layout. The fourth layout differs from the third layout, and the layout can include a horizontal layout or a vertical layout. For example, when the second interface is displayed, the first and second images are arranged horizontally; after the second image is removed from the electronic device, the third interface is displayed, and the first and third images in the third interface are arranged vertically. As another example, when the second interface is displayed, the first and second images are arranged vertically; after the second image is removed from the electronic device, the third interface is displayed, and the first and third images in the third interface are arranged horizontally.

在该方法中,在图片对比界面,当图片对比界面中一张图片被删除后,图片的布局改变。In this method, when an image is deleted from the image comparison interface, the image layout changes.

在一种可能的实施方式中,第一数量的缩略图对应第一数量的图片,即已被选中参与图片对比的图片数量为第一数量,第三布局及第四布局与第一数量的图片中第二数量的图片的画幅方向相关。当图片对比界面中一张图片被删除后,第二数量的图片所包括的图片更新,第二数量的图片的画幅改变,相应的,图片对比界面中图片布局改变。In one possible implementation, the first number of thumbnails corresponds to the first number of images, meaning the number of images selected for image comparison is the first number. The third and fourth layouts are related to the aspect ratio of the second number of images within the first number of images. When an image is deleted from the image comparison interface, the second number of images is updated, the aspect ratio of the second number of images changes, and correspondingly, the image layout in the image comparison interface changes.

在一种可能的实施方式中,根据已被选中参与对比的图片的画幅中前W个(第二数量)确定图片对比界面中各图片的布局。In one possible implementation, the layout of each image in the image comparison interface is determined based on the top W (second number) of the selected images for comparison.

由于图片对比界面中图片被显示的大小及形状是与显示该图片的区域的大小和形状适配的,在适配过程中,图片的图像会被放大;根据图片的画幅确定图片对比界面 中各图片的布局,即显示区域的形状与图片画幅更匹配,就可以减少放大图片后图像被大幅裁剪的情况,使得图片中图像较多地被显示。已被选中参与图片对比的图片中排序在前的图片被显示于屏幕上,根据排序在前的图片的画幅确定图片的布局,可以使得显示区域与图片画幅更匹配。Because the size and shape of the images displayed in the image comparison interface are adapted to the size and shape of the area where the image is displayed, the image will be enlarged during the adaptation process; the image comparison interface is determined based on the image's aspect ratio. By ensuring the layout of each image in the comparison, and making the shape of the display area more closely match the image size, we can reduce the likelihood of significant image cropping when enlarging the image, thus allowing more of the image to be displayed. Among the selected images for comparison, the image ranked first is displayed on the screen. Determining the image layout based on the size of the first image in the ranking ensures a better match between the display area and the image size.

在一种可能的实施方式中,当第二数量的图片中大于或等于一半数量的图片的画幅方向为竖向画幅,图片纵向布局;当第二数量的图片中小于一半数量的图片的画幅方向为竖向画幅,图片横向布局。In one possible implementation, when more than half of the images in the second number of images are in a vertical orientation, the images are arranged vertically; when less than half of the images in the second number of images are in a vertical orientation, the images are arranged horizontally.

当大部分图片的画幅为纵向时图片纵向布局,当大部分图片的画幅为横向时图片横向布局,图片布局与大部分图片画幅一致;这样就可以使得图片中图像较多地被显示,减少显示图片时图像被大幅裁剪的情况。When most images are portrait-oriented, they are laid out portrait-oriented; when most images are landscape-oriented, they are laid out landscape-oriented. The image layout is consistent with the aspect ratio of most images. This allows more of the image to be displayed, reducing the likelihood of images being heavily cropped when displayed.

例如,当显示第二界面时,第二数量的图片中大于或等于一半数量的图片的画幅方向为竖向画幅,相应的,第二界面中第一图片和第二图片纵向布局;第二图片被删除后,显示第三界面;此时,第二数量的图片中小于一半数量的图片的画幅方向为竖向画幅,相应的,第三界面中第一图片和第三图片横向布局。For example, when the second interface is displayed, if more than half of the images in the second number of images are in a vertical orientation, the first and second images in the second interface are arranged vertically. After the second image is deleted, the third interface is displayed. At this time, if less than half of the images in the second number of images are in a vertical orientation, the first and third images in the third interface are arranged horizontally.

例如,当显示第二界面时,第二数量的图片中小于一半数量的图片的画幅方向为竖向画幅,相应的,第二界面中第一图片和第二图片横向布局;第二图片被删除后,显示第三界面;此时,第二数量的图片中大于或等于一半数量的图片的画幅方向为竖向画幅,相应的,第三界面中第一图片和第三图片纵向布局。For example, when the second interface is displayed, less than half of the images in the second number of images are in a vertical orientation, and the first and second images in the second interface are arranged horizontally. After the second image is deleted, the third interface is displayed. At this time, more than half of the images in the second number of images are in a vertical orientation, and the first and third images in the third interface are arranged vertically.

结合第一方面,在一种可能的实施方式中,第二界面和第三界面还包括第一区域;第二界面的第一区域包括第一图片的副缩略图、第二图片的副缩略图和第三图片的副缩略图,其中,第一图片的副缩略图、第二图片的副缩略图突出显示;第三界面的第一区域包括第一图片的副缩略图和第三图片的副缩略图,不包括第二图片的副缩略图。In conjunction with the first aspect, in one possible implementation, the second interface and the third interface further include a first region; the first region of the second interface includes a sub-thumbnail of the first image, a sub-thumbnail of the second image, and a sub-thumbnail of the third image, wherein the sub-thumbnail of the first image and the sub-thumbnail of the second image are highlighted; the first region of the third interface includes the sub-thumbnail of the first image and the sub-thumbnail of the third image, but does not include the sub-thumbnail of the second image.

在该方法中,界面的第一区域包括副缩略图的列表,即在第一区域显示已被选中的图片中全部或部分图片的副缩略图,向用户直观展示已被选中参与对比的图片。其中,第二界面包括第一图片和第二图片,相应的,第一图片的副缩略图、第二图片的副缩略图突出显示;向用户直观展示图片对比界面当前显示的图片。In this method, the first area of the interface includes a list of sub-thumbs, displaying sub-thumbs of all or some of the selected images to visually show the user the images selected for comparison. The second interface includes a first image and a second image, with the sub-thumbs of the first and second images highlighted accordingly, providing the user with a clear view of the images currently displayed in the image comparison interface.

第二图片被删除后,第三界面中不包括第二图片,相应的,第三界面的第一区域不包括第二图片的副缩略图。After the second image is deleted, the second image will not be included in the third interface. Consequently, the first area of the third interface will not include the secondary thumbnail of the second image.

在一种可能的实施方式中,第二界面的第一区域中,第三图片的副缩略图排序在第二图片的副缩略图之后。In one possible implementation, in the first area of the second interface, the sub-thumbnail of the third image is ordered after the sub-thumbnail of the second image.

该方法中,副缩略图的排序与图片的排序一致。第三图片的副缩略图排序在第二图片的副缩略图之后,即第三图片排序在第二图片之后。也就是说,第二图片被删除后,将第二图片之后的一张图片补充至图片对比界面。In this method, the sub-thumbs are ordered in the same way as the images. The sub-thumbs of the third image are ordered after the sub-thumbs of the second image, meaning the third image is ordered after the second image. In other words, if the second image is deleted, the image following the second image is added to the image comparison interface.

在一种可能的实施方式中,第二界面的第一区域包括第二控件,响应于对第二控件的第三操作(例如点击操作),显示第四界面,第四界面包括多张缩略图;在多张缩略图中第一数量的缩略图被选中,第一数量的缩略图包括第一缩略图、第二缩略图和第三缩略图。In one possible implementation, a first area of the second interface includes a second control, and in response to a third operation (e.g., a click operation) on the second control, a fourth interface is displayed, the fourth interface including multiple thumbnails; a first number of thumbnails among the multiple thumbnails are selected, the first number of thumbnails including a first thumbnail, a second thumbnail, and a third thumbnail.

在该方法中,第一区域包括第二控件,例如图9B中“添加”按钮50d。响应于用户对第二控件的点击操作,电子设备显示第四界面(例如图片选择界面701),图片选 择界面701包括多张图片的缩略图,其中,第二数量的缩略图是已被选中的,例如,第二界面中第一图片、第二图片对应的缩略图是已被选中的。在一种实施方式中,每个缩略图上包括该图片对应的选择控件。用户可以通过点击选择控件选中图片或取消选中图片。这样,用户可以方便地查看被选中参与对比的图片,以及方便地增加或减少或改变被选中参与对比的图片。In this method, the first area includes a second control, such as the "Add" button 50d in Figure 9B. In response to a user's click on the second control, the electronic device displays a fourth interface (e.g., an image selection interface 701), where the image is selected. The selection interface 701 includes thumbnails of multiple images, wherein a second number of thumbnails are selected; for example, the thumbnails corresponding to the first and second images in the second interface are selected. In one embodiment, each thumbnail includes a selection control corresponding to that image. Users can select or deselect images by clicking the selection control. This allows users to easily view the selected images for comparison, and to easily add, remove, or change the selected images for comparison.

结合第一方面,在一种可能的实施方式中,第二界面的第一区域包括第四图片的副缩略图,响应于对第四图片的副缩略图的第四操作(例如点击操作),显示第五界面,第五界面包括第一图片、第二图片以及第四图片,第五界面的第一区域中第四图片的副缩略图突出显示。In conjunction with the first aspect, in one possible implementation, a first area of the second interface includes a sub-thumbnail of the fourth image, and in response to a fourth operation (e.g., a click operation) on the sub-thumbnail of the fourth image, a fifth interface is displayed, the fifth interface including the first image, the second image, and the fourth image, with the sub-thumbnail of the fourth image highlighted in the first area of the fifth interface.

在该方法中,用户可以通过点击第一区域内的副缩略图,方便地添加参与对比的图片。In this method, users can easily add images for comparison by clicking on the sub-thumbnail in the first area.

在一种可能的实施方式中,响应于对突出显示的第四图片的副缩略图的第四操作,显示第二界面,第二界面的第一区域中第四图片的副缩略图未突出显示。In one possible implementation, in response to a fourth operation on a sub-thumbnail of a highlighted fourth image, a second interface is displayed, wherein the sub-thumbnail of the fourth image is not highlighted in a first area of the second interface.

在该方法中,用户可以通过点击第一区域内突出显示的副缩略图,方便地取消参与对比的图片。In this method, users can easily deselect images for comparison by clicking on the highlighted sub-thumbnail in the first area.

结合第一方面,在一种可能的实施方式中,响应于对第二界面中第一图片的第五操作,第一图片和第二图片被以相同比例放大显示。In conjunction with the first aspect, in one possible implementation, in response to a fifth operation on the first image in the second interface, the first image and the second image are enlarged and displayed at the same scale.

在显示第二界面(图片对比界面)时,第二界面中图片可以同时、同比例放大或缩小,方便用户对比图片。When the second interface (image comparison interface) is displayed, the images in the second interface can be enlarged or reduced simultaneously and proportionally, making it convenient for users to compare images.

结合第一方面,在一种可能的实施方式中,当电子设备显示第一应用窗口和第二应用窗口时,第一应用窗口内以第五布局显示第二界面中的第一图片和第二图片,响应于对第二应用窗口的第六操作(例如关闭窗口的操作),关闭第二应用窗口并全屏显示第一应用窗口;全屏显示的第一应用窗口内,以第六布局显示第一图片和第二图片。可选的,第五布局与第三布局相同,第六布局与第四布局相同。In conjunction with the first aspect, in one possible implementation, when the electronic device displays a first application window and a second application window, the first application window displays a first image and a second image from the second interface in a fifth layout. In response to a sixth operation on the second application window (e.g., closing the window), the second application window is closed and the first application window is displayed in full-screen mode. Within the full-screen first application window, the first image and the second image are displayed in a sixth layout. Optionally, the fifth layout is the same as the third layout, and the sixth layout is the same as the fourth layout.

在该方法中,分屏显示切换到全屏显示时,图片的布局改变。In this method, the layout of the images changes when switching from split-screen to full-screen display.

在一种可能的实施方式中,第一数量的缩略图对应第一数量的图片,即已被选中参与图片对比的图片数量为第一数量,第六布局与第一数量的图片中第二数量的图片的画幅方向相关。In one possible implementation, the first number of thumbnails corresponds to the first number of images, that is, the number of images selected for image comparison is the first number, and the sixth layout is related to the aspect ratio of the second number of images in the first number of images.

在一种可能的实施方式中,根据已被选中参与对比的图片的画幅中前W个(第二数量)确定全屏显示的第一应用窗口内第一图片和第二图片的布局。In one possible implementation, the layout of the first and second images within the first application window for full-screen display is determined based on the top W (second number) of the selected images for comparison.

在一种可能的实施方式中,当第二数量的图片中大于或等于一半数量的图片的画幅方向为竖向画幅,全屏显示的第一应用窗口内第一图片和第二图片纵向布局;当第二数量的图片中小于一半数量的图片的画幅方向为竖向画幅,全屏显示的第一应用窗口内第一图片和第二图片横向布局。In one possible implementation, when more than half of the images in the second number of images are in a vertical orientation, the first and second images are arranged vertically in the first application window displayed in full screen; when less than half of the images in the second number of images are in a vertical orientation, the first and second images are arranged horizontally in the first application window displayed in full screen.

当大部分图片的画幅为纵向时第一图片和第二图片纵向布局,当大部分图片的画幅为横向时第一图片和第二图片横向布局,图片布局与大部分图片画幅一致;这样就可以使得图片中图像较多地被显示,减少显示图片时图像被大幅裁剪的情况。When most images are portrait-oriented, the first and second images are arranged vertically; when most images are landscape-oriented, the first and second images are arranged horizontally, with the image layout consistent with the majority of the image dimensions. This allows more of the image to be displayed, reducing the likelihood of significant image cropping during display.

结合第一方面,在一种可能的实施方式中,响应于对第二界面中第一图片的第七操作(例如长按操作),第一图片被选中;在第二界面中第一图片被选中之后,响应 于对第一图片的第七操作(例如长按操作),显示第一图片对应的悬浮图片;响应于该悬浮图片被拖动至预设热区,在第二区域显示至少一个应用的应用图标;响应于悬浮图片被拖动至第一应用图标,向第一应用图标对应的应用发送第一图片。In conjunction with the first aspect, in one possible implementation, in response to a seventh operation (e.g., a long press) on the first image in the second interface, the first image is selected; after the first image is selected in the second interface, in response to... In response to a seventh operation on the first image (e.g., a long press), a floating image corresponding to the first image is displayed; in response to the floating image being dragged to a preset hot zone, an application icon of at least one application is displayed in a second area; in response to the floating image being dragged to the first application icon, the first image is sent to the application corresponding to the first application icon.

在该方法中,用户只需要长按图片,就可以方便地将图片对比界面中任意一张图片快捷地分享至其他应用,方便用户对图片进行管理。In this method, users can easily share any image from the image comparison interface to other applications simply by long-pressing the image, making it convenient for users to manage their images.

结合第一方面,在一种可能的实施方式中,在第二界面中第一图片被选中之后,响应于对第二界面中第二图片的第七操作(例如长按操作),显示第二图片对应的悬浮图片;响应于第二图片对应的悬浮图片被拖动至预设热区,在第二区域显示至少一个应用的应用图标;响应于第二图片对应的悬浮图片被拖动至第一应用图标,向第一应用图标对应的应用发送所述第二图片。In conjunction with the first aspect, in one possible implementation, after the first image is selected in the second interface, in response to a seventh operation (e.g., a long press) on the second image in the second interface, a floating image corresponding to the second image is displayed; in response to the floating image corresponding to the second image being dragged to a preset hot zone, an application icon of at least one application is displayed in the second area; in response to the floating image corresponding to the second image being dragged to a first application icon, the second image is sent to the application corresponding to the first application icon.

在该方法中,在长按第一图片使得第一图片被选中后,可以长按第二图片,方便地将第二图片快捷地分享至其他应用,方便用户对图片进行管理。In this method, after long-pressing the first image to select it, you can long-press the second image to easily and quickly share it to other applications, making it convenient for users to manage their images.

结合第一方面,在一种可能的实施方式中,响应于对第二界面中第一图片的第七操作(例如长按操作),第一图片被选中并显示第三控件(例如图14中“删除”按钮517);响应于对第二界面中第二图片的第八操作(例如选中图片的操作),第二图片被选中;响应于对第三控件的第九操作(例如点击操作),将第一图片和第二图片从电子设备删除。In conjunction with the first aspect, in one possible implementation, in response to a seventh operation (e.g., a long press) on the first image in the second interface, the first image is selected and a third control (e.g., the "delete" button 517 in FIG14) is displayed; in response to an eighth operation (e.g., a selection operation) on the second image in the second interface, the second image is selected; and in response to a ninth operation (e.g., a click operation) on the third control, the first and second images are deleted from the electronic device.

在该方法中,方便用户在图片对比界面一次删除多张图片,方便用户管理图片。This method allows users to delete multiple images at once in the image comparison interface, making image management easier.

结合第一方面,在一种可能的实施方式中,第一数量的缩略图第五缩略图和第六缩略图,响应于对第三控件的第九操作,显示第六界面,第六界面包括第五图片和第六图片,第五图片是第五缩略图对应的图片,第六图片是第六缩略图对应的图片。In conjunction with the first aspect, in one possible implementation, the first number of thumbnails, the fifth thumbnail and the sixth thumbnail, in response to a ninth operation on the third control, display a sixth interface, the sixth interface including a fifth image and a sixth image, the fifth image being the image corresponding to the fifth thumbnail and the sixth image being the image corresponding to the sixth thumbnail.

在该方法中,多张图片被删除后,图片对比界面自动补充相同数量的图片,方便用户继续对比图片。In this method, after multiple images are deleted, the image comparison interface automatically replenishes the same number of images, making it convenient for users to continue comparing images.

结合第一方面,在一种可能的实施方式中,第一数量的缩略图对应第一数量的图片;第三图片在第一数量的图片中排序在基准图片之后第1个,其中,基准图片为第一图片和第二图片中排序靠后的图片。也就是说,向图片对比界面自动补充图片的规则为,就近选择原则、优先向后选择原则。这样的话,对比列表中的图片按照从前向后的顺序依次在图片对比界面中显示,每次用户删除一张图片后,自动补充至更新后图片对比界面的图片都是还未对比的,方便用户按照顺序依次对比图片,避免用户手动选择图片的重复操作,节省用户操作步骤。In conjunction with the first aspect, in one possible implementation, a first number of thumbnails correspond to a first number of images; the third image is ranked first among the first number of images after the reference image, where the reference image is the image ranked later between the first and second images. That is, the rule for automatically supplementing the image comparison interface is based on the principle of proximity and prioritizing selection from the nearest image. In this way, the images in the comparison list are displayed sequentially in the image comparison interface from front to back. Each time the user deletes an image, the automatically supplemented images in the updated image comparison interface are those that have not yet been compared, allowing the user to compare images sequentially and avoiding repetitive manual image selection, thus saving user steps.

在另一种可能的实施方式中,第三图片在第一数量的图片中排序在基准图片之前的最后1个,其中,基准图片为第一图片和第二图片中排序靠后的图片,基准图片是第一数量的图片中排序最后的1个。在该实施方式中,基准图片之后不存在图片,选择基准图片之前,与基准图片最近的一张图片。In another possible implementation, the third image is the last one in the first number of images, ordered before the reference image. The reference image is the image that appears later in the order of the first and second images, and is the last one in the first number of images. In this implementation, there are no images after the reference image; instead, the image closest to the reference image is selected.

在另一种可能的实施方式中,第三图片是第一数量的图片中与第二图片的获取时间最接近的图片。一般来说,拍摄时间(或获取时间)接近的图片的图像内容可能更接近,这样的话,方便用户查看图像内容比较相似的图片。In another possible implementation, the third image is the one among the first number of images whose acquisition time is closest to that of the second image. Generally, images with similar shooting (or acquisition) times are likely to have similar image content, making it easier for users to view images with similar content.

在另一种可能的实施方式中,第三图片是第一数量的图片中与第二图片的图像相似度最高的图片。这样的话,方便用户查看图像内容比较相似的图片。 In another possible implementation, the third image is the one among the first number of images that has the highest image similarity to the second image. This makes it easier for users to view images with similar content.

第二方面,提供了一种电子设备,该电子设备具有实现上述第一方面所述方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。Secondly, an electronic device is provided, which has the function of implementing the method described in the first aspect. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned function.

第三方面,提供了一种电子设备,包括:处理器、存储器和显示屏;显示屏用于显示用户界面,该存储器用于存储计算机执行指令,当该电子设备运行时,该处理器执行该存储器存储的该计算机执行指令,以使该电子设备执行如上述第一方面中任意一种可能的实施方式所述的方法。Thirdly, an electronic device is provided, comprising: a processor, a memory, and a display screen; the display screen is used to display a user interface, the memory is used to store computer execution instructions, and when the electronic device is running, the processor executes the computer execution instructions stored in the memory to cause the electronic device to perform the method as described in any of the possible embodiments of the first aspect above.

第四方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述第一方面中任意一种可能的实施方式所述的方法。Fourthly, a computer-readable storage medium is provided that stores instructions which, when executed on a computer, enable the computer to perform the method described in any of the possible embodiments of the first aspect.

第五方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第一方面中任意一种可能的实施方式所述的方法。Fifthly, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to perform the method described in any of the possible embodiments of the first aspect above.

其中,第二方面至第五方面中任一种可能的实施方式所带来的技术效果可参见第一方面中不同实施方式所带来的技术效果,此处不再赘述。The technical effects of any of the possible implementations in the second to fifth aspects can be found in the technical effects of different implementations in the first aspect, and will not be repeated here.

附图说明Attached Figure Description

图1为本申请实施例提供的一种配置了折叠屏的电子设备的示意图;Figure 1 is a schematic diagram of an electronic device configured with a foldable screen according to an embodiment of this application;

图2为本申请实施例提供的一种图片显示方法的实例示意图;Figure 2 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图3为本申请实施例提供的另一种配置了折叠屏的电子设备的示意图;Figure 3 is a schematic diagram of another electronic device configured with a foldable screen according to an embodiment of this application;

图4为本申请实施例提供的又一种配置了折叠屏的电子设备的示意图;Figure 4 is a schematic diagram of another electronic device equipped with a foldable screen provided in an embodiment of this application;

图5为本申请实施例提供的一种图片显示方法的实例示意图;Figure 5 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图6为本申请实施例提供的一种图片显示方法的实例示意图;Figure 6 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图7A为本申请实施例提供的一种图片显示方法的实例示意图;Figure 7A is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图7B为本申请实施例提供的一种图片显示方法的实例示意图;Figure 7B is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图7C为本申请实施例提供的一种图片显示方法的实例示意图;Figure 7C is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图8为本申请实施例提供的一种图片显示方法的实例示意图;Figure 8 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图9A为本申请实施例提供的一种图片显示方法的实例示意图;Figure 9A is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图9B为本申请实施例提供的一种图片显示方法的实例示意图;Figure 9B is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图10为本申请实施例提供的一种图片显示方法的实例示意图;Figure 10 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图11为本申请实施例提供的一张图片被删除的一种场景实例示意图;Figure 11 is a schematic diagram of a scenario in which an image is deleted according to an embodiment of this application;

图12-图13为本申请实施例提供的多张图片被批量删除的一种场景实例示意图;Figures 12 and 13 are schematic diagrams illustrating a scenario in which multiple images are deleted in batches, as provided in the embodiments of this application.

图14为本申请实施例提供的多张图片被批量删除的一种场景实例示意图;Figure 14 is a schematic diagram of a scenario example where multiple images are deleted in batches according to an embodiment of this application;

图15为本申请实施例提供的一张图片被删除的一种场景实例示意图;Figure 15 is a schematic diagram of a scenario in which an image is deleted according to an embodiment of this application;

图16-图17为本申请实施例提供的对比列表中一张图片自动补充至更新后的图片对比界面的规则示意图;Figures 16 and 17 are schematic diagrams illustrating the rules for automatically adding an image from the comparison list to the updated image comparison interface in the embodiments of this application.

图18为本申请实施例提供的自动退出图片对比界面的一种场景实例示意图;Figure 18 is a schematic diagram of a scenario example of automatically exiting the image comparison interface provided in an embodiment of this application;

图19为本申请实施例提供的一种图片显示方法的实例示意图;Figure 19 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图20为本申请实施例提供的一种图片显示方法的实例示意图;Figure 20 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图21为图片的画幅方向的一种示意图;Figure 21 is a schematic diagram of the image's aspect ratio;

图22为本申请实施例提供的一种图片显示方法的实例示意图; Figure 22 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图23为本申请实施例提供的一种图片显示方法的实例示意图;Figure 23 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图24为本申请实施例提供的一种图片显示方法的实例示意图;Figure 24 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图25为本申请实施例提供的一种图片显示方法的实例示意图;Figure 25 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图26为本申请实施例提供的一种图片显示方法的实例示意图;Figure 26 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图27为本申请实施例提供的一种图片显示方法的实例示意图;Figure 27 is a schematic diagram of an example of an image display method provided in an embodiment of this application;

图28为本申请实施例提供的电子设备的一种硬件结构示意图;Figure 28 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of this application;

图29为本申请实施例提供的一种电子设备结构组成示意图。Figure 29 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

具体实施方式Detailed Implementation

在本申请实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and/or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and/or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character "/" generally indicates that the preceding and following related objects are in an "or" relationship.

在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

本申请实施例提供一种图片显示方法,该方法可以应用于配置了折叠屏的电子设备。本申请实施例中,配置了折叠屏的电子设备也可以称为可折叠设备。This application provides an image display method that can be applied to electronic devices equipped with foldable screens. In this application, the electronic device equipped with a foldable screen can also be referred to as a foldable device.

示例性的,上述可折叠设备可以是手机,平板电脑,桌面型、膝上型、手持计算机,笔记本电脑,超级移动个人计算机(ultra-mobile personal computer,UMPC),上网本,以及蜂窝电话,个人数字助理(personal digital assistant,PDA),增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等,本申请实施例对该电子设备的具体形态不作特殊限制。For example, the foldable device described above can be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR)/virtual reality (VR) device, etc. The embodiments of this application do not impose any special limitations on the specific form of the electronic device.

可折叠设备包括至少一个折叠屏,折叠屏可被折叠形成至少两个屏(显示区域),例如,折叠屏可沿一条直线(折叠线)或折叠轴被折叠形成显示区域一和显示区域二。 需要说明的是,该折叠屏被折叠后形成的至少两个屏(显示区域),可以为独立存在的多个屏,也可以为一体结构的一个完整屏,只是被折叠形成了至少两部分。在一些实施例中,上述折叠屏可以是柔性屏幕,柔性屏幕也可称为柔性OLED(organic light-emitting diode,有机发光二极管),相较于传统屏幕,柔性屏幕具有可弯曲、柔韧性佳的特性。该柔性屏幕的部分或全部采用柔性材质制作。例如,该柔性屏幕中只有可折叠的部分(如折叠边)采用柔性材质制作,其它部分采用刚性材质制作;或者,该柔性屏幕全部采用柔性材质制作。The foldable device includes at least one foldable screen, which can be folded to form at least two screens (display areas). For example, the foldable screen can be folded along a straight line (folding line) or folding axis to form display area one and display area two. It should be noted that the at least two screens (display areas) formed after the folding screen is folded can be multiple independent screens or a single integrated screen, simply folded into at least two parts. In some embodiments, the folding screen can be a flexible screen, also known as a flexible OLED (organic light-emitting diode). Compared to traditional screens, flexible screens have the characteristics of being bendable and highly flexible. The flexible screen may be partially or entirely made of flexible materials. For example, only the foldable parts (such as the folding edges) of the flexible screen may be made of flexible materials, while other parts may be made of rigid materials; or, the entire flexible screen may be made of flexible materials.

在一种示例中,如图1的(a)所示,电子设备10包括内屏101,沿着折叠线1a,内屏101被划分为A屏和B屏。其中,A屏和B屏可以是独立的两块屏,也可以是一块屏的两个部分。如图1的(b)所示,电子设备10还包括外屏102,也称为C屏。示例性的,C屏与A屏背对设置。可以理解的,图1仅为C屏设置于A屏背面的示例,并不作为对本申请实施例提供的电子设备10的限定,在其他可能的实施例中,C屏还可以设置于B屏的背面。In one example, as shown in FIG1(a), the electronic device 10 includes an inner screen 101, which is divided into screen A and screen B along the fold line 1a. Screen A and screen B can be two independent screens or two parts of a single screen. As shown in FIG1(b), the electronic device 10 also includes an outer screen 102, also referred to as screen C. Exemplarily, screen C is positioned back-to-back with screen A. It is understood that FIG1 is merely an example of screen C being positioned behind screen A and is not intended to limit the electronic device 10 provided in this application embodiment. In other possible embodiments, screen C may also be positioned behind screen B.

可折叠设备可以处于不同姿态,例如可折叠设备的姿态可以包括展开状态、支架状态和折叠状态。Foldable devices can be in different postures, such as unfolded, supported, and folded.

以电子设备10为例,如图1的(a)和图1的(b)所示,内屏101包括A屏和B屏,用户在使用电子设备10的过程中,可以通过改变A屏和B屏之间的夹角来改变电子设备10的姿态。比如,电子设备10的展开状态指的是电子设备10的A屏和B屏之间的夹角大于或等于预设的第一角度时的状态,其中,第一角度可以是预设值,例如135°、165°、175°等。Taking electronic device 10 as an example, as shown in Figure 1(a) and Figure 1(b), the inner screen 101 includes screen A and screen B. During use, the user can change the orientation of electronic device 10 by altering the angle between screen A and screen B. For instance, the unfolded state of electronic device 10 refers to the state where the angle between screen A and screen B is greater than or equal to a preset first angle. This first angle can be a preset value, such as 135°, 165°, or 175°.

响应于用户的折叠操作,电子设备10的A屏和B屏之间的夹角逐渐变小。参考图1的(c)和图1的(d),用户可以沿着折叠线1a对电子设备10向内(内屏101所在方向)折叠,当A屏和B屏之间的夹角小于第一角度且大于第二角度,电子设备10处于支架状态,其中,第二角度可以是预设值,例如5°、30°、65°等。In response to the user's folding operation, the angle between screen A and screen B of electronic device 10 gradually decreases. Referring to Figures 1(c) and 1(d), the user can fold electronic device 10 inward (in the direction of the inner screen 101) along folding line 1a. When the angle between screen A and screen B is less than a first angle and greater than a second angle, electronic device 10 is in a support state. The second angle can be a preset value, such as 5°, 30°, 65°, etc.

随着电子设备10的A屏和B屏之间的夹角继续变小,参考图1的(e),当A屏和B屏之间的夹角小于或等于第二角度,电子设备10处于折叠状态。As the angle between screen A and screen B of electronic device 10 continues to decrease, referring to Figure 1(e), when the angle between screen A and screen B is less than or equal to the second angle, electronic device 10 is in a folded state.

当电子设备10处于折叠状态,响应于用户的展开操作,电子设备10的A屏和B屏之间的夹角逐渐变大,当A屏和B屏之间的夹角大于第二角度且小于第一角度时,电子设备10处于支架状态。随着电子设备10的A屏和B屏之间的夹角继续变大,电子设备10处于展开状态,A屏和B屏之间的夹角大于或等于第一角度。When the electronic device 10 is in a folded state, in response to the user's unfolding operation, the angle between screen A and screen B of the electronic device 10 gradually increases. When the angle between screen A and screen B is greater than a second angle but less than a first angle, the electronic device 10 is in a stand state. As the angle between screen A and screen B of the electronic device 10 continues to increase, the electronic device 10 is in an unfolded state, and the angle between screen A and screen B is greater than or equal to the first angle.

可以理解的是,电子设备10的姿态可以在用户的操作下在展开状态、支架状态和展开状态之间转换。Understandably, the posture of the electronic device 10 can be switched between the unfolded state, the stand state, and the unfolded state under the operation of the user.

图1所示的电子设备10包括内屏101和外屏102。在一些实施例中,当电子设备10处于不同姿态时,相应的,电子设备10的内屏101或外屏102显示用户界面。例如,当电子设备10处于展开状态时,内屏101显示用户界面;当电子设备10处于支架状态时,外屏102显示用户界面;当电子设备10处于折叠状态时,外屏102显示用户界面。电子设备10可以根据姿态切换内屏101或外屏102显示用户界面。示例性的,如图2所示,当电子设备处于展开状态时,电子设备10的内屏101显示用户界面;响应于用户对电子设备的折叠操作,电子设备10的姿态变为折叠状态,电子设备 10的外屏102显示用户界面。当电子设备处于折叠状态时,响应于用户对电子设备的展开操作,电子设备10的姿态变为展开状态,电子设备10的内屏101显示用户界面。The electronic device 10 shown in Figure 1 includes an inner screen 101 and an outer screen 102. In some embodiments, when the electronic device 10 is in different postures, the inner screen 101 or the outer screen 102 of the electronic device 10 displays a user interface accordingly. For example, when the electronic device 10 is in an unfolded state, the inner screen 101 displays the user interface; when the electronic device 10 is in a stand state, the outer screen 102 displays the user interface; when the electronic device 10 is in a folded state, the outer screen 102 displays the user interface. The electronic device 10 can switch between displaying the user interface on the inner screen 101 or the outer screen 102 according to its posture. For example, as shown in Figure 2, when the electronic device is in an unfolded state, the inner screen 101 of the electronic device 10 displays the user interface; in response to the user's folding operation of the electronic device, the posture of the electronic device 10 changes to a folded state, and the electronic device... The outer screen 102 of the electronic device 10 displays the user interface. When the electronic device is in a folded state, in response to the user's unfolding operation, the electronic device 10 changes to an unfolded state, and the inner screen 101 of the electronic device 10 displays the user interface.

在一些实施例中,当折叠屏的各个屏之间的夹角大于或等于第一角度时,电子设备10的内屏101显示电子设备的用户界面。当折叠屏的各个屏之间的夹角小于第一角度时,电子设备10的外屏102显示电子设备的用户界面。In some embodiments, when the included angle between the individual screens of the foldable screen is greater than or equal to a first angle, the inner screen 101 of the electronic device 10 displays the user interface of the electronic device. When the included angle between the individual screens of the foldable screen is less than the first angle, the outer screen 102 of the electronic device 10 displays the user interface of the electronic device.

图2所示的电子设备10,内屏101的四条边长度接近,当内屏101显示用户界面时,用户界面呈近似正方形。外屏102的长边和短边长度差较大,当外屏102显示用户界面时,用户界面呈近似长方形。本申请实施例中,以外屏102的长边沿纵向称为电子设备10纵向放置,以外屏102的短边沿纵向称为电子设备10横向放置。例如,图2中,电子设备10为纵向放置。本申请实施例以电子设备纵向放置为例呈现用户界面,当电子设备横向放置时显示的用户界面可以根据纵向放置的用户界面进行变换,本申请实施例中不再一一示例。As shown in Figure 2, the electronic device 10 has an inner screen 101 with four sides of similar length, resulting in an approximately square user interface when displayed on the inner screen 101. The outer screen 102 has a larger difference in length between its long and short sides, resulting in an approximately rectangular user interface when displayed on the outer screen 102. In this embodiment, the long side of the outer screen 102 along the vertical direction is referred to as the electronic device 10 being placed vertically, and the short side of the outer screen 102 along the vertical direction is referred to as the electronic device 10 being placed horizontally. For example, in Figure 2, the electronic device 10 is placed vertically. This embodiment presents the user interface using the vertical placement of the electronic device as an example. When the electronic device is placed horizontally, the displayed user interface can be changed according to the vertically placed user interface; however, this embodiment will not provide further examples.

在另一种示例中,如图3的(a)所示,电子设备20包括屏幕201,沿着折叠线1b,屏幕201被划分为D屏和E屏。其中,D屏和E屏可以是独立的两块屏,也可以是一块屏的两个部分。In another example, as shown in Figure 3(a), the electronic device 20 includes a screen 201, which is divided into a D screen and an E screen along the fold line 1b. The D screen and the E screen can be two separate screens or two parts of a single screen.

用户在使用电子设备20的过程中,可以通过改变D屏和E屏之间的夹角来改变电子设备20的姿态。如图3的(a)所示,当电子设备20的D屏和E屏之间的夹角大于或等于角度一,电子设备20处于展开状态。其中,角度一可以是预设值,例如130°、165°、170°等。During the use of electronic device 20, the user can change the posture of electronic device 20 by changing the angle between screen D and screen E. As shown in Figure 3(a), when the angle between screen D and screen E of electronic device 20 is greater than or equal to angle one, electronic device 20 is in the unfolded state. Here, angle one can be a preset value, such as 130°, 165°, 170°, etc.

用户可以沿着折叠线1b对电子设备20向外(屏幕201背面方向)折叠,响应于用户的折叠操作,电子设备20的D屏和E屏之间的夹角逐渐变小。如图3的(b)所示,当D屏和E屏之间的夹角小于角度一且大于角度二,电子设备20处于支架状态。其中,角度二可以是预设值,例如5°、30°、65°等。The user can fold the electronic device 20 outwards (towards the back of the screen 201) along folding line 1b. In response to the user's folding operation, the angle between the D screen and the E screen of the electronic device 20 gradually decreases. As shown in Figure 3(b), when the angle between the D screen and the E screen is less than angle one and greater than angle two, the electronic device 20 is in a stand state. Here, angle two can be a preset value, such as 5°, 30°, 65°, etc.

随着电子设备20的D屏和E屏之间的夹角继续变小,参考图3的(c),当D屏和E屏之间的夹角小于或等于角度二,电子设备20处于折叠状态。As the angle between the D screen and the E screen of the electronic device 20 continues to decrease, referring to Figure 3(c), when the angle between the D screen and the E screen is less than or equal to angle 2, the electronic device 20 is in a folded state.

当电子设备20处于折叠状态,响应于用户的展开操作,电子设备20的D屏和E屏之间的夹角逐渐变大,当D屏和E屏之间的夹角大于角度二且小于角度一时,电子设备20处于支架状态。随着电子设备20的D屏和E屏之间的夹角继续变大,电子设备20处于展开状态,D屏和E屏之间的夹角大于或等于角度一。When the electronic device 20 is in a folded state, in response to the user's unfolding operation, the angle between the D screen and the E screen of the electronic device 20 gradually increases. When the angle between the D screen and the E screen is greater than angle two and less than angle one, the electronic device 20 is in a stand state. As the angle between the D screen and the E screen of the electronic device 20 continues to increase, the electronic device 20 is in an unfolded state, and the angle between the D screen and the E screen is greater than or equal to angle one.

电子设备20的姿态在用户的操作下在展开状态、支架状态和展开状态之间转换。The posture of the electronic device 20 changes between the unfolded state, the support state, and the unfolded state under the operation of the user.

在一些实施例中,当电子设备20处于不同姿态时,相应的,电子设备20的屏幕201的不同显示区域显示用户界面。例如,当电子设备20处于展开状态时,屏幕201的D屏和E屏显示用户界面;当电子设备20处于支架状态时,屏幕201的D屏显示用户界面;当电子设备20处于折叠状态时,屏幕201的D屏显示用户界面。In some embodiments, when the electronic device 20 is in different postures, the corresponding display areas of the screen 201 of the electronic device 20 display the user interface. For example, when the electronic device 20 is in an unfolded state, the D screen and E screen of the screen 201 display the user interface; when the electronic device 20 is in a stand state, the D screen of the screen 201 displays the user interface; and when the electronic device 20 is in a folded state, the D screen of the screen 201 displays the user interface.

图3所示的电子设备20,屏幕201的四条边长度接近,当屏幕201的D屏和E屏显示用户界面时,用户界面呈近似正方形。屏幕201的D屏的长边和短边长度差较大,当屏幕201的D屏显示用户界面时,用户界面呈近似长方形。The electronic device 20 shown in Figure 3 has screen 201 with four sides of similar length. When the D and E screens of screen 201 display the user interface, the user interface is approximately square. The D screen of screen 201 has a larger difference in length between its long and short sides. When the D screen of screen 201 displays the user interface, the user interface is approximately rectangular.

需要说明的是,图1和图3中虚线用于指示电子设备被折叠的位置,在实际产品 中,电子设备上可以不存在折叠线或折叠轴。It should be noted that the dashed lines in Figures 1 and 3 are used to indicate the position where the electronic device is folded. In the actual product... In China, electronic devices may not have fold lines or fold axes.

上述图1和图3中是将电子设备沿横向折叠线进行折叠。当然,电子设备也可以沿纵向折叠线进行折叠。在一种示例中,纵向折叠线相较于横向折叠线垂直。Figures 1 and 3 above show the electronic device folded along a horizontal fold line. Of course, the electronic device can also be folded along a vertical fold line. In one example, the vertical fold line is perpendicular to the horizontal fold line.

在另一种示例中,如图4所示,电子设备30包括折叠屏301;电子设备30沿着折叠线1c向内折叠,折叠屏301也沿着折叠线1c向内折叠,折叠屏301沿折叠线1c分为两个显示区域,如称为F屏和G屏。可以理解地,F屏和G屏可以为独立存在的多个屏;也可以为一体结构的完整屏,只是沿折叠线分为至少两部分;本申请实施例对此不作具体限定。上述电子设备301内折之后,F屏和G屏相对。电子设备30在折叠屏301背面还设置有H屏,例如,H屏可以设置在F屏或G屏背面。可以理解地,图4仅为H屏配置于F屏背面的示例,并不作为对本申请实施例提供的电子设备的限定。In another example, as shown in Figure 4, the electronic device 30 includes a folding screen 301. The electronic device 30 folds inward along the folding line 1c, and the folding screen 301 also folds inward along the folding line 1c. The folding screen 301 is divided into two display areas along the folding line 1c, such as the F screen and the G screen. It is understood that the F screen and the G screen can be multiple independent screens; or they can be a single, integrated screen, simply divided into at least two parts along the folding line. This application embodiment does not specifically limit this. After the electronic device 301 is folded inward, the F screen and the G screen face each other. The electronic device 30 also has an H screen on the back of the folding screen 301. For example, the H screen can be located on the back of the F screen or the G screen. It is understood that Figure 4 is only an example of the H screen being configured on the back of the F screen and is not intended to limit the electronic device provided in this application embodiment.

用户在使用电子设备30的过程中,可以通过改变F屏和G屏之间的夹角来改变电子设备30的姿态。电子设备30的姿态在用户的操作下在展开状态、支架状态和展开状态之间转换。During the use of electronic device 30, the user can change the posture of electronic device 30 by altering the angle between the F screen and the G screen. The posture of electronic device 30 can switch between an unfolded state, a stand state, and an unfolded state under the user's operation.

在一些实施例中,当电子设备30处于不同姿态时,相应的,电子设备30的屏幕301或H屏显示用户界面。例如,当电子设备30处于展开状态时,电子设备30的屏幕301显示用户界面;当电子设备30处于支架状态或折叠状态时,电子设备30的H屏显示用户界面。In some embodiments, when the electronic device 30 is in different postures, the screen 301 or H-screen of the electronic device 30 displays the user interface accordingly. For example, when the electronic device 30 is in an unfolded state, the screen 301 of the electronic device 30 displays the user interface; when the electronic device 30 is in a stand state or a folded state, the H-screen of the electronic device 30 displays the user interface.

图4所示的电子设备30,H屏的四条边长度接近,当H屏显示用户界面时,用户界面呈近似正方形。屏幕301的长边和短边长度差较大,当屏幕301显示用户界面时,用户界面呈近似长方形。In the electronic device 30 shown in Figure 4, the four sides of the H screen are of similar length, and when the H screen displays the user interface, the user interface is approximately square. The long side and short side of the screen 301 have a larger difference in length, and when the screen 301 displays the user interface, the user interface is approximately rectangular.

本申请实施例以图1所示电子设备10为例介绍,本申请实施例提供的图片显示方法在图3所示电子设备20或在图4所示电子设备30上的实现,可以参考电子设备10的实现。This application uses the electronic device 10 shown in FIG1 as an example to illustrate the embodiment. The implementation of the image display method provided in this application on the electronic device 20 shown in FIG3 or the electronic device 30 shown in FIG4 can refer to the implementation of the electronic device 10.

其中,电子设备20的屏幕201的D屏和E屏上共同显示的用户界面与电子设备10的内屏101显示的用户界面对应,电子设备20的屏幕201的D屏单独显示的用户界面与电子设备10的外屏102显示的用户界面对应。The user interface displayed on the D screen and E screen of the screen 201 of the electronic device 20 corresponds to the user interface displayed on the inner screen 101 of the electronic device 10, and the user interface displayed separately on the D screen of the screen 201 of the electronic device 20 corresponds to the user interface displayed on the outer screen 102 of the electronic device 10.

电子设备30的H屏上显示的用户界面与电子设备10的内屏101显示的用户界面对应,电子设备30的屏幕301显示的用户界面与电子设备10的外屏102显示的用户界面对应。The user interface displayed on the H screen of electronic device 30 corresponds to the user interface displayed on the inner screen 101 of electronic device 10, and the user interface displayed on the screen 301 of electronic device 30 corresponds to the user interface displayed on the outer screen 102 of electronic device 10.

用户可以对电子设备上保存的图片进行管理,例如,查看图片,比较图片之间的差异,删除图片,收藏图片等。本申请实施例提供一种图片显示方法,能够向用户提供方便的图片管理方式。Users can manage images stored on their electronic devices, such as viewing images, comparing differences between images, deleting images, and saving images to favorites. This application provides an image display method that offers users a convenient way to manage images.

示例性的,电子设备上图库、文件管理等应用都可以提供向用户展示图片的功能。本申请实施例以图库应用为例进行介绍,可以理解的,本申请实施例提供的图片显示方法同样适用于文件管理等应用。For example, applications such as image galleries and file management on electronic devices can provide the function of displaying images to users. This application embodiment uses an image gallery application as an example for description. It can be understood that the image display method provided in this application embodiment is also applicable to applications such as file management.

电子设备的姿态包括展开状态、支架状态和折叠状态。当电子设备处于上述任一姿态时,可以响应于用户操作,启动图库应用,图库应用的应用界面包括多张图片,即向用户展示多张图片。 The electronic device can be in three states: unfolded, mounted, or folded. When the electronic device is in any of these states, it can respond to user input by launching a gallery application. The gallery application's interface displays multiple images to the user.

以电子设备10处于折叠状态,电子设备10的外屏102显示用户界面为例。Taking the electronic device 10 in a folded state as an example, with the external screen 102 of the electronic device 10 displaying the user interface.

在一种示例中,如图5所示,电子设备10的外屏显示桌面界面,桌面界面包括多个应用程序的应用图标。例如,桌面界面包括应用图标501,响应于用户对应用图标501的点击操作,电子设备10显示图库应用的照片展示界面502,照片展示界面502包括多张图片的缩略图。In one example, as shown in Figure 5, the external screen of the electronic device 10 displays a desktop interface, which includes application icons for multiple applications. For example, the desktop interface includes application icon 501. In response to a user's click on application icon 501, the electronic device 10 displays a photo display interface 502 of a gallery application, which includes thumbnails of multiple images.

在另一种示例中,如图6所示,电子设备10显示桌面界面,桌面界面包括应用图标501,响应于用户对应用图标501的点击操作,电子设备10显示图库应用的相册界面601,相册界面601包括至少一个文件夹,例如“所有照片”、“相册”、“截屏录屏”、“我的收藏”等。示例性的,响应于用户对文件夹“所有照片”的点击操作,电子设备10显示“所有照片”界面602,“所有照片”界面602包括多张图片的缩略图。In another example, as shown in Figure 6, the electronic device 10 displays a desktop interface including application icons 501. In response to a user's click on the application icons 501, the electronic device 10 displays a gallery interface 601, which includes at least one folder, such as "All Photos," "Albums," "Screenshots/Screen Recordings," "My Favorites," etc. For example, in response to a user's click on the folder "All Photos," the electronic device 10 displays an "All Photos" interface 602, which includes thumbnails of multiple images.

当电子设备10显示多张图片的缩略图时(例如显示照片展示界面502或显示“所有照片”界面602),用户可以选择其中的多张图片进行对比。When the electronic device 10 displays thumbnails of multiple images (e.g., displaying a photo display interface 502 or a "All Photos" interface 602), the user can select multiple images for comparison.

示例性的,如图7A所示,照片展示界面502包括多张图片的缩略图,例如包括缩略图a、缩略图b、缩略图c、缩略图d、缩略图e和缩略图f。响应于用户对其中一张图片的缩略图(例如缩略图a)的操作,如长按操作,电子设备10显示图片选择界面503,图片选择界面503包括多张图片的缩略图,每个缩略图上包括该图片对应的选择控件。用户可以通过点击选择控件选中图片或取消选中图片。图片选择界面503还包括“分享”控件、“对比”控件、“创作”控件、“删除”控件等;响应于用户点击“分享”控件,电子设备10向其他应用或设备发送被选中的图片;响应于用户点击“对比”控件,电子设备10显示对比图片的用户界面,对比图片的用户界面包括被选中的图片;响应于用户点击“创作”控件,电子设备10根据被选中的图片生成视频等;响应于用户点击“删除”控件,从电子设备10上删除被选中的图片。在一种实现方式中,当已被选中的图片数量小于预设数量时,“对比”控件不可被选中。示例性的,预设数量为2,如图7A所示,当已被选中图片数量为1项时,“对比”控件是灰色的,表示不可被选中。当已被选中图片数量为6项时,“对比”控件是黑色的,表示可被选中。示例性的,当已被选中图片数量为6项时,例如缩略图a、缩略图b、缩略图c、缩略图d、缩略图e和缩略图f已被选中,响应于用户对“对比”控件的点击操作,电子设备10显示图片对比界面504,图片对比界面504包括图片505和图片506,其中,图片505和图片506是已被选中的6张图片中的两张,例如,图片505和图片506是已被选中的图片中缩略图排列顺序靠前的两张,示例性的,参考图7A,图片505是缩略图a对应的图片,图片506是缩略图b对应的图片。For example, as shown in Figure 7A, the photo display interface 502 includes thumbnails of multiple images, such as thumbnails a, b, c, d, e, and f. In response to a user's action on one of the image thumbnails (e.g., thumbnail a), such as a long press, the electronic device 10 displays an image selection interface 503. The image selection interface 503 includes thumbnails of multiple images, each thumbnail containing a selection control corresponding to that image. The user can select or deselect an image by clicking the selection control. The image selection interface 503 also includes a "Share" control, a "Compare" control, a "Create" control, and a "Delete" control. In response to the user clicking the "Share" control, the electronic device 10 sends the selected image to other applications or devices. In response to the user clicking the "Compare" control, the electronic device 10 displays a user interface for comparing images, which includes the selected image. In response to the user clicking the "Create" control, the electronic device 10 generates a video based on the selected image. In response to the user clicking the "Delete" control, the selected image is deleted from the electronic device 10. In one implementation, the "Compare" control cannot be selected when the number of selected images is less than a preset number. For example, the preset number is 2, as shown in Figure 7A. When the number of selected images is 1, the "Compare" control is grayed out, indicating that it cannot be selected. When the number of selected images is 6, the "Compare" control is black, indicating that it can be selected. For example, when six images are selected, such as thumbnails a, b, c, d, e, and f, the electronic device 10 displays an image comparison interface 504 in response to the user's click on the "Compare" control. The image comparison interface 504 includes images 505 and 506, where images 505 and 506 are two of the six selected images. For example, images 505 and 506 are the two images whose thumbnails appear first in the selected images. For example, referring to Figure 7A, image 505 is the image corresponding to thumbnail a, and image 506 is the image corresponding to thumbnail b.

可选的,图片505上包括“收藏”图标5071和“删除”图标5081,图片506上包括“收藏”图标5072和“删除”图标5082。响应于用户对“收藏”图标5071的点击操作,电子设备10将图片505加入“我的收藏”文件夹。响应于用户对“收藏”图标5072的点击操作,电子设备10将图片506加入“我的收藏”文件夹。响应于用户对“删除”图标5081的点击操作,将图片505从电子设备10上删除。响应于用户对“删除”图标5082的点击操作,将图片506从电子设备10上删除。Optionally, image 505 includes a "favorite" icon 5071 and a "delete" icon 5081, and image 506 includes a "favorite" icon 5072 and a "delete" icon 5082. In response to a user's click on the "favorite" icon 5071, the electronic device 10 adds image 505 to the "My Favorites" folder. In response to a user's click on the "favorite" icon 5072, the electronic device 10 adds image 506 to the "My Favorites" folder. In response to a user's click on the "delete" icon 5081, image 505 is deleted from the electronic device 10. In response to a user's click on the "delete" icon 5082, image 506 is deleted from the electronic device 10.

需要说明的是,在一些示例中,图片对比界面504包括已被选中的图片中一部分,未包括所有的已被选中图片;例如,如图7A所示,已被选中图片数量为6项,而图片 对比界面504中包括两张图片,并未将6张已被选中图片都显示于图片对比界面504中;已被选中图片是可以参与对比的图片,图片对比界面504中显示的是本次参与对比的图片。It should be noted that in some examples, the image comparison interface 504 includes a portion of the selected images, but not all of them; for example, as shown in Figure 7A, the number of selected images is 6, while the image... The comparison interface 504 includes two images, but does not display all six selected images in the image comparison interface 504; the selected images are those that can participate in the comparison, and the image comparison interface 504 displays the images that are participating in the comparison this time.

可选的,图片对比界面504底部的显示区域509内可以显示已被选中的图片中全部或部分图片的缩略图。本申请实施例中,图片对比界面底部显示的图片缩略图(称为副缩略图)的列表称为对比列表。例如,对比列表中可以展示的最大图片数量为N,已被选中可以参与图片对比的图片数量为M;当M大于N时,对比列表包括N张图片的缩略图,即展示已被选中的图片中部分图片的缩略图;当M小于或等于N时,对比列表包括M张图片,即展示全部已被选中图片的缩略图。示例性的,如图7A所示,已被选中图片数量为6项,即M=6,对比列表中最多可以展示5张图片,即N=5,对比列表包括5张图片的缩略图,分别为缩略图a’、缩略图b’、缩略图c’、缩略图d’和缩略图e’,其中,缩略图a’对应缩略图a和图片505,缩略图b’对应缩略图b和图片506,缩略图c’对应缩略图c,缩略图d’对应缩略图d,缩略图e’对应缩略图e。在一种实现方式中,在图片对比界面504中展示的图片(图片505和图片506)对应的缩略图(缩略图a’和缩略图b’)在对比列表中突出显示,这样,方便用户在对比列表中快速定位当前参与对比的图片。Optionally, the display area 509 at the bottom of the image comparison interface 504 can display thumbnails of all or some of the selected images. In this embodiment, the list of image thumbnails (referred to as sub-thumbs up) displayed at the bottom of the image comparison interface is called the comparison list. For example, the maximum number of images that can be displayed in the comparison list is N, and the number of selected images that can participate in the image comparison is M; when M is greater than N, the comparison list includes thumbnails of N images, that is, displays thumbnails of some of the selected images; when M is less than or equal to N, the comparison list includes M images, that is, displays thumbnails of all the selected images. For example, as shown in Figure 7A, the number of selected images is 6, i.e., M=6. The comparison list can display a maximum of 5 images, i.e., N=5. The comparison list includes thumbnails of 5 images, namely thumbnail a’, thumbnail b’, thumbnail c’, thumbnail d’, and thumbnail e’. Among them, thumbnail a’ corresponds to thumbnail a and image 505, thumbnail b’ corresponds to thumbnail b and image 506, thumbnail c’ corresponds to thumbnail c, thumbnail d’ corresponds to thumbnail d, and thumbnail e’ corresponds to thumbnail e. In one implementation, the thumbnails (thumbnail a’ and thumbnail b’) corresponding to the images (images 505 and 506) displayed in the image comparison interface 504 are highlighted in the comparison list, which makes it convenient for users to quickly locate the image currently being compared in the comparison list.

用户可以对比查看图片505和图片506。在一些示例中,图片505和图片506中的图像可以联动放大。示例性的,如图7B所示,当电子设备10显示图片对比界面504时,响应于用户对图片505的放大操作,例如,放大操作为在图片505上双指外扩的操作,图片505和图片506中图像被放大。可选的,图片505和图片506被以相同比例放大。在另一些示例中,图片505和图片506也可以单独放大。示例性的,如图7C所示,图片对比界面504包括联动按钮5041,当联动按钮5041显示灰色,表示不联动放大,响应于用户对图片505的放大操作,图片505中图像被放大。Users can compare and view images 505 and 506. In some examples, the images in images 505 and 506 can be magnified in tandem. For example, as shown in FIG7B, when the electronic device 10 displays the image comparison interface 504, in response to the user's magnification operation on image 505, for example, a two-finger outward gesture on image 505, the images in images 505 and 506 are magnified. Optionally, images 505 and 506 are magnified at the same ratio. In other examples, images 505 and 506 can also be magnified individually. For example, as shown in FIG7C, the image comparison interface 504 includes a linkage button 5041. When the linkage button 5041 is grayed out, it indicates that magnification is not linked, and in response to the user's magnification operation on image 505, the image in image 505 is magnified.

需要说明的是,图7A以图片对比界面默认展示两张图片为例进行示例,在实际实现中,图片对比界面默认展示的图片数量可以更多,例如默认展示3张图片、4张图片等。示例性的,如图8所示,电子设备10显示图片选择界面503,图片选择界面503中已被选中的图片数量为6项,对应缩略图a、缩略图b、缩略图c、缩略图d、缩略图e和缩略图f,响应于用户对“对比”控件的点击操作,电子设备10显示图片对比界面510,图片对比界面510包括图片505、图片506、图片511和图片512,其中,图片505是缩略图a对应的图片,图片506是缩略图b对应的图片,图片511是缩略图c对应的图片,图片512是缩略图d对应的图片。图片505、图片506、图片511和图片512是已被选中的6张图片中的4张,也就是说每次参与对比的图片为4张。用户可以对比查看图片505、图片506、图片511和图片512,在一种实现方式中,图片505、图片506、图片511和图片512的图像可以联动放大,也可以单独放大。在一种示例中,对比列表中图片505、图片506、图片511和图片512对应的缩略图突出显示。It should be noted that Figure 7A uses the default display of two images in the image comparison interface as an example. In actual implementation, the default number of images displayed in the image comparison interface can be more, such as 3 or 4 images. For example, as shown in Figure 8, the electronic device 10 displays an image selection interface 503, in which 6 images are selected, corresponding to thumbnails a, b, c, d, e, and f. In response to the user's click on the "Compare" control, the electronic device 10 displays an image comparison interface 510, which includes images 505, 506, 511, and 512. Among them, image 505 is the image corresponding to thumbnail a, image 506 is the image corresponding to thumbnail b, image 511 is the image corresponding to thumbnail c, and image 512 is the image corresponding to thumbnail d. Images 505, 506, 511, and 512 are four of the six selected images, meaning that four images are compared at a time. Users can compare and view images 505, 506, 511, and 512. In one implementation, the images 505, 506, 511, and 512 can be zoomed in together or individually. In one example, the thumbnails corresponding to images 505, 506, 511, and 512 are highlighted in the comparison list.

在一些实施例中,电子设备10可以响应于用户操作,增加或减少在图片对比界面显示的图片数量,方便用户对多张图片进行对比。示例性的,如图9A所示,电子设备10显示图片对比界面504,图片对比界面504包括图片505和图片506,相应的,对 比列表中图片505的缩略图a’以及图片506的缩略图b’突出显示,缩略图a’突出显示表示缩略图a’对应的图片被显示于图片对比界面504上,缩略图b’突出显示表示缩略图b’对应的图片被显示于图片对比界面504上。在一种示例中,响应于用户对缩略图c’的点击操作,电子设备10显示图片对比界面513,图片对比界面513包括图片505、图片506和图片511,其中,图片511是缩略图c’对应的图片。在一种示例中,当电子设备10显示图片对比界面513时,响应于用户对缩略图c’的点击操作,电子设备10显示图片对比界面504。这样,用户通过点击对比列表中缩略图,实现将已被选中的图片展示在图片对比界面,或取消将已被选中的图片展示在图片对比界面。在一种实现方式中,图片对比界面展示的图片数量小于或等于数值一且大于或等于数值二,其中,数值一和数值二为预设值,例如,数值一为4,数值二为2。In some embodiments, the electronic device 10 can respond to user operations by increasing or decreasing the number of images displayed on the image comparison interface, facilitating comparison of multiple images by the user. For example, as shown in FIG9A, the electronic device 10 displays an image comparison interface 504, which includes images 505 and 506. Correspondingly, for... The thumbnails a' of image 505 and b' of image 506 in the comparison list are highlighted. Highlighting thumbnail a' indicates that the image corresponding to thumbnail a' is displayed on the image comparison interface 504, and highlighting thumbnail b' indicates that the image corresponding to thumbnail b' is displayed on the image comparison interface 504. In one example, in response to a user's click on thumbnail c', the electronic device 10 displays the image comparison interface 513, which includes images 505, 506, and 511, where image 511 is the image corresponding to thumbnail c'. In another example, when the electronic device 10 displays the image comparison interface 513, in response to a user's click on thumbnail c', the electronic device 10 displays the image comparison interface 504. Thus, by clicking on the thumbnails in the comparison list, the user can display the selected image on the image comparison interface or deselect the selected image from the image comparison interface. In one implementation, the number of images displayed on the image comparison interface is less than or equal to value one and greater than or equal to value two, where value one and value two are preset values, for example, value one is 4 and value two is 2.

在一些实施例中,电子设备10可以响应于用户操作,增加或减少被选中的图片的数量。示例性的,如图9B所示,电子设备10显示图片对比界面504,图片对比界面504包括“添加”按钮50d。响应于用户对“添加”按钮50d的点击操作,电子设备10显示图片选择界面701,图片选择界面701包括多张图片的缩略图,每个缩略图上包括该图片对应的选择控件。用户可以通过点击选择控件选中图片或取消选中图片。示例性的,图片选择界面701还包括页面702,页面702包括已被选中图片的缩略图,已被选中图片的缩略图上包括删除按钮,用户可以点击删除按钮取消选中该删除按钮对应图片。这样,方便用户快速选择或调整参与图片对比的图片。In some embodiments, the electronic device 10 can increase or decrease the number of selected images in response to user operations. For example, as shown in FIG9B, the electronic device 10 displays an image comparison interface 504, which includes an "Add" button 50d. In response to a user clicking the "Add" button 50d, the electronic device 10 displays an image selection interface 701, which includes thumbnails of multiple images, each thumbnail containing a selection control corresponding to that image. The user can select or deselect images by clicking the selection control. For example, the image selection interface 701 also includes a page 702, which includes thumbnails of the selected images. Each thumbnail of a selected image includes a delete button, which the user can click to deselect the image corresponding to that delete button. This allows users to quickly select or adjust the images participating in the image comparison.

在一些实施例中,在电子设备10显示图片对比界面时,可以响应于用户操作,将图片对比界面中图片快速分享至其他应用。示例性的,如图10的(a)所示,电子设备10显示图片对比界面510,图片对比界面510包括图片505、图片506、图片511和图片512。如图10的(b)所示,响应于用户对图片511的长按操作,电子设备10显示选择界面514,选择界面514包括图片505、图片506、图片511和图片512,其中,每张图片上包括一个选择控件。当电子设备10显示图片对比界面510时,长按操作作用于图片511,相应的,选择界面514中图片511的选择控件为已被选中状态,即图片511已被选中。进一步的,如图10的(c)所示,响应于用户对选择界面514中图片511的长按操作,显示悬浮图片801;其中,悬浮图片801是根据图片511生成的,表示将图片511分享至其他应用。用户可以拖动悬浮图片801至屏幕上任意位置。在一种示例中,如图10的(d)所示,响应于悬浮图片801被拖动至预设热区,例如预设热区为屏幕上区域802,电子设备10可在屏幕右侧显示包括一个或多个候选应用的图标的菜单栏803,菜单栏803中可包括收藏图标、搜索图标、分享图标、笔记图标、短信图标等。其中,收藏图标对应的收藏应用可以提供全局的系统收藏功能,搜索图标对应提供搜索功能,分享图标对应的应用提供向特定应用分享的功能,笔记图标对应的笔记应用可以提供应用内的记录、收藏等功能。候选应用可以是电子设备10从安装的全部应用程序中筛选出来的支持接收图片的应用程序。响应于悬浮图片801被拖动至菜单栏803中任意一个图标上并被释放的操作,悬浮图片801对应的图片511被发送至该图标对应的应用。在该实施例中,用户只需要长按图片,就可以方便地将图片对比界面中任意一张图片快捷地分享至其他应用,方便用户对图片进行管理。例如,用户在图片对比界面中对比查看多张图片后,选择出效果最满意的一张图片,只需要 在该图片上进行长按操作,就可以方便地将该图片进行分享。可选的,在一种实现方式中,悬浮图片801被拖动过程中,悬浮图片801的大小可以发生变化,例如,越靠近预设热区,悬浮图片801越小,给用户带来图片被投送至相应应用的动态体验。In some embodiments, when the electronic device 10 displays an image comparison interface, the images in the image comparison interface can be quickly shared to other applications in response to user operations. For example, as shown in FIG10(a), the electronic device 10 displays an image comparison interface 510, which includes images 505, 506, 511, and 512. As shown in FIG10(b), in response to a user's long-press operation on image 511, the electronic device 10 displays a selection interface 514, which includes images 505, 506, 511, and 512, each image including a selection control. When the electronic device 10 displays the image comparison interface 510, the long-press operation is applied to image 511, and correspondingly, the selection control for image 511 in the selection interface 514 is in a selected state, meaning image 511 has been selected. Further, as shown in Figure 10(c), in response to a user's long-press operation on image 511 in the selection interface 514, a floating image 801 is displayed; wherein, the floating image 801 is generated based on image 511, indicating that image 511 is shared to other applications. The user can drag the floating image 801 to any position on the screen. In one example, as shown in Figure 10(d), in response to the floating image 801 being dragged to a preset hot area, such as area 802 on the screen, the electronic device 10 can display a menu bar 803 on the right side of the screen, including icons of one or more candidate applications. The menu bar 803 may include a favorite icon, a search icon, a share icon, a note icon, an SMS icon, etc. Among them, the favorite application corresponding to the favorite icon can provide a global system favorite function, the search icon provides a search function, the share icon provides a sharing function to a specific application, and the note application corresponding to the note icon can provide in-app recording, favorite, and other functions. The candidate applications can be applications that support receiving images selected by the electronic device 10 from all installed applications. In response to the operation of dragging the floating image 801 onto any icon in the menu bar 803 and releasing it, the image 511 corresponding to the floating image 801 is sent to the application corresponding to that icon. In this embodiment, users only need to long-press an image to easily and quickly share any image in the image comparison interface to other applications, facilitating image management. For example, after comparing and viewing multiple images in the image comparison interface, users can select the image with the most satisfactory effect simply by... Long-pressing on the image allows for easy sharing. Optionally, in one implementation, the size of the floating image 801 can change as it is dragged; for example, the closer it is to a preset hotspot, the smaller the floating image 801 becomes, providing users with a dynamic experience as if the image is being delivered to the corresponding application.

在另一示例中,当选择界面514中图片511已被选中时,响应于用户对选择界面514中图片512的长按操作,显示图片512对应的悬浮图片。进一步的,响应于图片512对应的悬浮图片被拖动至菜单栏803中任意一个图标上并被释放的操作,图片512被发送至该图标对应的应用。在该示例中,被分享的图片与选择界面514中已被选中的图片是不同的图片。In another example, when image 511 is selected in selection interface 514, in response to a user's long-press operation on image 512 in selection interface 514, a floating image corresponding to image 512 is displayed. Further, in response to an operation where the floating image corresponding to image 512 is dragged to any icon in menu bar 803 and released, image 512 is sent to the application corresponding to that icon. In this example, the image being shared is different from the image already selected in selection interface 514.

在一些实施例中,在电子设备10显示图片对比界面时,用户可以删除一张或多张图片。In some embodiments, when the electronic device 10 displays an image comparison interface, the user can delete one or more images.

图11-图18示出了一张或多张图片被从电子设备10删除的一些场景实例。其中,图11示出了一张图片被删除的一种场景实例示意图;图12-图13示出了多张图片被批量删除的一种场景实例示意图;图14示出了多张图片被批量删除的一种场景实例示意图,与图12和图13所示场景实例不同的是,图14示出的场景实例中,图片被删除后,对比列表中多张图片被自动补充至更新后的图片对比界面;图15示出了一张图片被删除的一种场景实例示意图,与图11所示场景实例不同的是,图15示出的场景实例中,一张图片被删除后,对比列表中一张图片被自动补充至更新后的图片对比界面;图16和图17示出了对比列表中一张图片自动补充至更新后的图片对比界面的规则示意图;图18示出了自动退出图片对比界面的一种场景实例示意图。Figures 11-18 illustrate several scenario examples where one or more images are deleted from electronic device 10. Specifically, Figure 11 shows a schematic diagram of a scenario where one image is deleted; Figures 12-13 show schematic diagrams of a scenario where multiple images are deleted in batches; Figure 14 shows a schematic diagram of a scenario where multiple images are deleted in batches, but unlike Figures 12 and 13, in Figure 14, after an image is deleted, multiple images in the comparison list are automatically added to the updated image comparison interface; Figure 15 shows a schematic diagram of a scenario where one image is deleted, but unlike Figure 11, in Figure 15, after an image is deleted, one image in the comparison list is automatically added to the updated image comparison interface; Figures 16 and 17 illustrate the rules for automatically adding one image from the comparison list to the updated image comparison interface; and Figure 18 shows a schematic diagram of a scenario where the image comparison interface is automatically exited.

在一种示例中,当电子设备10显示图片对比界面时,响应于用户删除一张图片的操作,从电子设备10上删除该图片。在一种实现方式中,图片对比界面中每张图片上包括“删除”图标。用户可以点击“删除”图标,实现从电子设备10中删除该“删除”图标对应图片。示例性的,如图11的(a)所示,电子设备10显示图片对比界面510,图片对比界面510包括图片505、图片506、图片511和图片512,其中每张图片上包括一个“删除”图标。如图11的(b)所示,响应于用户对图片511上“删除”图标5111的点击操作,电子设备10显示提示框515,提示框515包括提示信息“是否删除此图片”,提示框515还包括“删除”按钮和“取消”按钮,响应于用户对“删除”按钮的点击操作,“删除”图标5111对应的图片511被从电子设备10上删除。在该示例中,用户可以方便地在图片对比界面将一张图片从电子设备上删除。In one example, when the electronic device 10 displays an image comparison interface, in response to a user's deletion of an image, that image is deleted from the electronic device 10. In one implementation, each image in the image comparison interface includes a "delete" icon. The user can click the "delete" icon to delete the image corresponding to that "delete" icon from the electronic device 10. For example, as shown in FIG11(a), the electronic device 10 displays an image comparison interface 510, which includes images 505, 506, 511, and 512, each of which includes a "delete" icon. As shown in FIG11(b), in response to a user's click on the "delete" icon 5111 on image 511, the electronic device 10 displays a prompt box 515, which includes the prompt message "Delete this image?", and also includes a "delete" button and a "cancel" button. In response to a user's click on the "delete" button, the image 511 corresponding to the "delete" icon 5111 is deleted from the electronic device 10. In this example, users can easily delete an image from their electronic device through the image comparison interface.

在另一种示例中,当电子设备10显示图片对比界面时,响应于用户删除多张图片的操作,从电子设备10上批量删除多张图片。在一种实现方式中,用户可以在图片对比界面选择多张图片,实现从电子设备10中批量删除多张图片。示例性的,如图12的(a)所示,电子设备10显示图片对比界面510,图片对比界面510包括图片505、图片506、图片511和图片512。响应于用户对图片511的长按操作,如图12的(b)所示,电子设备10显示选择界面514,选择界面514包括图片505、图片506、图片511和图片512,其中,每张图片上包括一个选择控件。当电子设备10显示图片对比界面510时,长按操作作用于图片511,相应的,选择界面514中图片511的选择控件为已被选中状态,即图片511已被选中。进一步的,用户还可以通过点击选择控件选中选择界面514上其他图片。示例性的,响应于用户对选择界面514中图片512上 选择控件的点击操作,如图12的(c)所示,选择界面514中图片512的选择控件为已被选中状态,即图片512已被选中。如图12的(c)所示,选择界面514上已被选中的图片为2项,示例性的,选择界面514还包括“删除”按钮517,响应于用户对“删除”按钮517的点击操作,如图12的(d)所示,电子设备10显示提示框518,提示框518包括提示信息“是否删除2张图片”,提示框518还包括“删除”按钮和“取消”按钮,响应于用户对提示框518中“删除”按钮的点击操作,选择界面514上已被选中的图片511和图片512被从电子设备10上删除。在该示例中,用户可以方便地在图片对比界面将多张图片从电子设备上删除,不需要用户逐张地执行删除操作,简化了用户在图片对比界面删除照片的操作步骤。In another example, when the electronic device 10 displays an image comparison interface, in response to the user's operation of deleting multiple images, multiple images are deleted in batches from the electronic device 10. In one implementation, the user can select multiple images in the image comparison interface to achieve batch deletion of multiple images from the electronic device 10. For example, as shown in FIG12(a), the electronic device 10 displays an image comparison interface 510, which includes images 505, 506, 511, and 512. In response to the user's long-press operation on image 511, as shown in FIG12(b), the electronic device 10 displays a selection interface 514, which includes images 505, 506, 511, and 512, wherein each image includes a selection control. When the electronic device 10 displays the image comparison interface 510, the long-press operation is applied to image 511, and correspondingly, the selection control of image 511 in the selection interface 514 is in a selected state, that is, image 511 has been selected. Furthermore, users can also select other images on the selection interface 514 by clicking the selection control. For example, in response to a user's selection of image 512 on the selection interface 514... As shown in Figure 12(c), the selection control for image 512 in the selection interface 514 is selected, meaning image 512 is selected. As shown in Figure 12(c), two images are selected on the selection interface 514. For example, the selection interface 514 also includes a "Delete" button 517. In response to the user's click on the "Delete" button 517, as shown in Figure 12(d), the electronic device 10 displays a prompt box 518. The prompt box 518 includes the message "Delete 2 images?" and also includes a "Delete" button and a "Cancel" button. In response to the user's click on the "Delete" button in the prompt box 518, the selected images 511 and 512 on the selection interface 514 are deleted from the electronic device 10. In this example, the user can easily delete multiple images from the electronic device in the image comparison interface without having to perform the deletion operation one by one, simplifying the steps for deleting photos in the image comparison interface.

在一种实现方式中,当图片对比界面中一张或多张图片被从电子设备删除后,图片对比界面显示的图片数量相应减少。例如,当图片对比界面显示P张图片时,P张图片中Q张图片被从电子设备删除,更新后的图片对比界面显示的图片数量为(P-Q)张,其中,(P-Q)的值大于或等于数值二。In one implementation, when one or more images in the image comparison interface are deleted from the electronic device, the number of images displayed in the image comparison interface decreases accordingly. For example, when the image comparison interface displays P images, if Q images out of the P images are deleted from the electronic device, the updated image comparison interface will display (P-Q) images, where the value of (P-Q) is greater than or equal to the value of two.

示例性的,结合图11的(a),电子设备10显示图片对比界面510,图片对比界面510包括4张图片,即P=4。结合图11的(b),响应于用户对提示框515中“删除”按钮的点击操作,“删除”图标5111对应的图片511被从电子设备10上删除。如图11的(c)所示,电子设备10显示图片对比界面516,图片对比界面516包括图片505、图片506和图片512,即(P-Q)=3。在该示例中,图片对比界面510上显示了4张图片,即4张图片参与对比,在其中1张图片被从电子设备10上删除后,图片对比界面516上显示了3张图片,即3张图片参与对比。For example, referring to Figure 11(a), the electronic device 10 displays an image comparison interface 510, which includes four images, i.e., P = 4. Referring to Figure 11(b), in response to the user's click on the "Delete" button in the prompt box 515, the image 511 corresponding to the "Delete" icon 5111 is deleted from the electronic device 10. As shown in Figure 11(c), the electronic device 10 displays an image comparison interface 516, which includes images 505, 506, and 512, i.e., (P-Q) = 3. In this example, the image comparison interface 510 displays four images, i.e., four images are compared. After one image is deleted from the electronic device 10, the image comparison interface 516 displays three images, i.e., three images are compared.

示例性的,结合图12,电子设备10显示图片对比界面510,图片对比界面510包括4张图片,即P=4。如图13所示,响应于用户对提示框518中“删除”按钮的点击操作,选择界面514上已被选中的图片511和图片512被从电子设备10上删除。电子设备10显示图片对比界面504,图片对比界面504包括图片505和图片506,即(P-Q)=2。在该示例中,图片对比界面510上显示了4张图片,即4张图片参与对比,在其中2张图片被从电子设备10上删除后,图片对比界面504上显示了2张图片,即2张图片参与对比。For example, referring to Figure 12, the electronic device 10 displays an image comparison interface 510, which includes four images, i.e., P = 4. As shown in Figure 13, in response to the user's click on the "Delete" button in the prompt box 518, the selected images 511 and 512 on the selection interface 514 are deleted from the electronic device 10. The electronic device 10 displays an image comparison interface 504, which includes images 505 and 506, i.e., (P-Q) = 2. In this example, the image comparison interface 510 displays four images, i.e., four images are compared. After two of these images are deleted from the electronic device 10, the image comparison interface 504 displays two images, i.e., two images are compared.

需要说明的是,在图11-图13的示例中,电子设备10接收到用户删除一张或多张图片的操作,例如,图11的(a)中电子设备10接收到用户对“删除”图标5111的点击操作,或图12中电子设备10接收到用户对“删除”按钮517的点击操作,显示提示框,提示框包括提示信息,用于提示用户确认删除图片。在接收到用户确认删除图片的操作后,例如,接收到用户对提示框中“删除”按钮的点击操作后,从电子设备上删除对应图片。在另一些实现方式中,电子设备10接收到用户删除一张或多张图片的操作后,可以不显示提示信息,而是直接从电子设备上删除对应图片。例如,参考图11,电子设备10接收到用户对图片511上“删除”图标5111的点击操作,响应于对图片511上“删除”图标5111的点击操作,电子设备10显示图片对比界面516;例如,参考图12和图13,电子设备10响应于用户对选择界面514中“删除”按钮517的点击操作,显示图片对比界面504。It should be noted that in the examples of Figures 11-13, when electronic device 10 receives a user's operation to delete one or more images—for example, in Figure 11(a), electronic device 10 receives a user's click on the "Delete" icon 5111, or in Figure 12, electronic device 10 receives a user's click on the "Delete" button 517—a prompt box is displayed, containing information to prompt the user to confirm the deletion of the images. After receiving confirmation from the user, for example, after receiving a user's click on the "Delete" button in the prompt box, the corresponding image is deleted from the electronic device. In other implementations, after receiving a user's operation to delete one or more images, electronic device 10 may not display a prompt message but directly delete the corresponding image from the electronic device. For example, referring to FIG11, when the electronic device 10 receives a user's click operation on the "delete" icon 5111 on the image 511, in response to the click operation on the "delete" icon 5111 on the image 511, the electronic device 10 displays the image comparison interface 516; for example, referring to FIG12 and FIG13, in response to a user's click operation on the "delete" button 517 in the selection interface 514, the electronic device 10 displays the image comparison interface 504.

在另一种实现方式中,当图片对比界面中一张或多张图片被从电子设备删除后, 图片对比界面显示的图片数量不变。例如,当图片对比界面显示数量为P的图片时,P张图片中Q张图片被从电子设备删除,如果剩余的已被选择可以参与对比的图片数量大于或等于P,则更新后的图片对比界面仍然显示P张图片。即,剩余的已被选择可以参与对比的Q张图片被自动补充至更新后的图片对比界面,使得更新后的图片对比界面包括的图片数量不变,方便用户直接查看多张图片、进行对比,不需要用户在删除图片后手动添加新的图片至图片对比界面,简化了用户操作步骤。In another implementation, when one or more images in the image comparison interface are deleted from the electronic device... The number of images displayed in the image comparison interface remains unchanged. For example, when the image comparison interface displays P images, if Q images out of the P images are deleted from the electronic device, and the number of remaining selected images for comparison is greater than or equal to P, the updated image comparison interface will still display P images. That is, the remaining Q selected images for comparison are automatically added to the updated image comparison interface, ensuring that the number of images included in the updated interface remains constant. This allows users to directly view and compare multiple images without having to manually add new images to the image comparison interface after deleting existing ones, simplifying the user experience.

在一种示例中,P=4。示例性的,如图14的(a)所示,电子设备10显示图片对比界面510,图片对比界面510包括4张图片(P=4),分别为图片505、图片506、图片511和图片512,对比列表中显示了5张图片的缩略图,分别为缩略图a’、缩略图b’、缩略图c’、缩略图d’和缩略图e’,其中,图片505对应的缩略图a’、图片506对应的缩略图b’、图片511对应的缩略图c’和图片512对应的缩略图d’突出显示。响应于用户在图片511的长按操作,如图14的(b)所示,电子设备10显示选择界面514,用户可以在选择界面514选中图片511和图片512。进一步的,响应于用户对“删除”按钮517的点击操作,如图14的(c)所示,电子设备10显示提示框518;响应于用户对提示框518中“删除”按钮的点击操作,选择界面514上已被选中的图片511和图片512被从电子设备10上删除,即Q=2。结合图7A,在图片选择界面503,缩略图a、缩略图b、缩略图c、缩略图d、缩略图e和缩略图f已被选中,即参与图片对比的图片数量是6(N=6),图片511(对应缩略图c)和图片512(对应缩略图d)被删除后,剩余已被选中参与图片对比的图片数量是4,对应的缩略图分别为缩略图a、缩略图b、缩略图e和缩略图f,剩余已被选中参与图片对比的图片数量等于P,则更新后的图片对比界面显示P张图片,即更新后的图片对比界面包括4张图片。示例性的,如图14的(d)所示,电子设备10显示图片对比界面519,图片对比界面519包括图片505、图片506、图片520和图片521,对比列表中图片505对应的缩略图a’、图片506对应的缩略图b’、图片520对应的缩略图e’以及图片521对应的缩略图f’突出显示;其中,图片520对应图7A中缩略图e,图片521对应图7A中缩略图f,也就是说,图7A中缩略图c和缩略图d对应的图片(图14中图片511和图片512)被删除后,自动将图7A中缩略图e对应的图片520以及图7A中缩略图f对应的图片521补充显示于图片对比界面,使得更新后图片对比界面包括的图片数量不变。In one example, P = 4. For instance, as shown in Figure 14(a), the electronic device 10 displays an image comparison interface 510, which includes four images (P = 4): image 505, image 506, image 511, and image 512. A comparison list displays thumbnails of five images: thumbnail a', thumbnail b', thumbnail c', thumbnail d', and thumbnail e'. Thumbnail a' for image 505, thumbnail b' for image 506, thumbnail c' for image 511, and thumbnail d' for image 512 are highlighted. In response to a long press operation on image 511, as shown in Figure 14(b), the electronic device 10 displays a selection interface 514, where the user can select images 511 and 512. Furthermore, in response to the user's click on the "Delete" button 517, as shown in Figure 14(c), the electronic device 10 displays a prompt box 518; in response to the user's click on the "Delete" button in the prompt box 518, the selected images 511 and 512 on the selection interface 514 are deleted from the electronic device 10, i.e., Q = 2. Referring to Figure 7A, in the image selection interface 503, thumbnails a, b, c, d, e, and f have been selected, i.e., the number of images participating in the image comparison is 6 (N = 6). After images 511 (corresponding to thumbnail c) and 512 (corresponding to thumbnail d) are deleted, the remaining number of images selected for the image comparison is 4, and the corresponding thumbnails are thumbnail a, b, e, and f, respectively. The remaining number of images selected for the image comparison is equal to P, so the updated image comparison interface displays P images, i.e., the updated image comparison interface includes 4 images. For example, as shown in Figure 14(d), the electronic device 10 displays an image comparison interface 519, which includes images 505, 506, 520, and 521. In the comparison list, thumbnails a' corresponding to image 505, b' corresponding to image 506, e' corresponding to image 520, and f' corresponding to image 521 are highlighted. Among them, image 520 corresponds to thumbnail e in Figure 7A, and image 521 corresponds to thumbnail f in Figure 7A. That is to say, after the images corresponding to thumbnails c and d in Figure 7A (images 511 and 512 in Figure 14) are deleted, image 520 corresponding to thumbnail e in Figure 7A and image 521 corresponding to thumbnail f in Figure 7A are automatically added to the image comparison interface, so that the number of images included in the updated image comparison interface remains unchanged.

在一种示例中,P=3。示例性的,如图15的(a)所示,电子设备10显示图片对比界面513,图片对比界面513包括3张图片(P=3),分别为图片505、图片506和图片511,对比列表中显示了5张图片的缩略图,分别为缩略图a’、缩略图b’、缩略图c’、缩略图d’和缩略图e’,其中,图片505对应的缩略图a’、图片506对应的缩略图b’和图片511对应的缩略图c’突出显示。如图15的(b)所示,响应于用户对图片511上“删除”图标的点击操作,电子设备10显示提示框515,响应于用户对提示框515中“删除”按钮的点击操作,图片511被从电子设备10上删除,相应的,对比列表中图片511对应的缩略图c’也被删除。结合图7A,在图片选择界面503,缩略图a、缩略图b、缩略图c、缩略图d、缩略图e和缩略图f已被选中,即参与图片对比的图片数量是6(N=6),图片511(对应缩略图c)被删除后,剩余已被选中参与图片对比的图片数量是5,对应的缩略图分别为缩略图a、缩略图b、缩略图d、缩略图e和 缩略图f,剩余已被选中参与图片对比的图片数量大于P,则更新后的图片对比界面显示P张图片,即更新后的图片对比界面包括3张图片。如图15的(c)所示,电子设备10显示图片对比界面522,图片对比界面522包括图片505、图片506和图片512,对比列表中图片505对应的缩略图a’、图片506对应的缩略图b’以及图片512对应的缩略图d’突出显示;其中,图片512对应图7A中缩略图d,也就是说,图7A中缩略图c对应的图片(图15中图片511)被删除后,自动将图7A中缩略图d对应的图片512补充显示于图片对比界面,使得更新后图片对比界面包括的图片数量不变。In one example, P = 3. For instance, as shown in Figure 15(a), the electronic device 10 displays an image comparison interface 513, which includes three images (P = 3): image 505, image 506, and image 511. A comparison list displays thumbnails of five images: thumbnail a', thumbnail b', thumbnail c', thumbnail d', and thumbnail e'. Thumbnail a' for image 505, thumbnail b' for image 506, and thumbnail c' for image 511 are highlighted. As shown in Figure 15(b), in response to a user clicking the "Delete" icon on image 511, the electronic device 10 displays a prompt box 515. In response to a user clicking the "Delete" button in prompt box 515, image 511 is deleted from the electronic device 10, and correspondingly, thumbnail c' for image 511 is also deleted from the comparison list. Referring to Figure 7A, in the image selection interface 503, thumbnails a, b, c, d, e, and f have been selected, meaning the number of images participating in the comparison is 6 (N=6). After image 511 (corresponding to thumbnail c) is deleted, the remaining number of selected images participating in the comparison is 5, corresponding to thumbnails a, b, d, e, and f respectively. If the number of remaining selected images for comparison is greater than P, then the updated image comparison interface displays P images, meaning the updated image comparison interface includes 3 images. As shown in Figure 15(c), the electronic device 10 displays an image comparison interface 522, which includes images 505, 506, and 512. Thumbnails a' corresponding to image 505, b' corresponding to image 506, and d' corresponding to image 512 are highlighted in the comparison list. Among them, image 512 corresponds to thumbnail d in Figure 7A. That is to say, after the image corresponding to thumbnail c in Figure 7A (image 511 in Figure 15) is deleted, image 512 corresponding to thumbnail d in Figure 7A is automatically added to the image comparison interface, so that the number of images included in the updated image comparison interface remains unchanged.

需要说明的是,在图14-图15的示例中,电子设备10接收到用户删除一张或多张图片的操作后,显示提示框,提示框包括提示信息,用于提示用户确认删除图片。在接收到用户确认删除图片的操作后,例如,接收到用户对提示框中“删除”按钮的点击操作后,从电子设备上删除对应图片。在另一些实现方式中,电子设备10接收到用户删除一张或多张图片的操作后,可以不显示提示信息,而是直接从电子设备上删除对应图片。例如,参考图14,电子设备10接收到用户对“删除”按钮517的点击操作,响应于对“删除”按钮517的点击操作,电子设备10显示图片对比界面519;例如,参考图15,电子设备10响应于用户对图片511上“删除”图标的点击操作,显示图片对比界面522。It should be noted that in the examples of Figures 14 and 15, after receiving a user's operation to delete one or more images, the electronic device 10 displays a prompt box containing information to prompt the user to confirm the deletion. Upon receiving confirmation from the user, for example, upon receiving a click on the "Delete" button in the prompt box, the corresponding image is deleted from the electronic device. In other implementations, after receiving a user's operation to delete one or more images, the electronic device 10 may not display a prompt message but directly delete the corresponding image from the electronic device. For example, referring to Figure 14, upon receiving a user's click on the "Delete" button 517, the electronic device 10 displays an image comparison interface 519 in response to the click on the "Delete" button 517; for example, referring to Figure 15, the electronic device 10 displays an image comparison interface 522 in response to a user's click on the "Delete" icon on image 511.

在一种示例中,P=2。当图片对比界面包括2张图片,响应于用户操作,其中1张图片被从电子设备10删除,在剩余已被选中参与图片对比的图片数量大于或等于2的情况,更新后图片对比界面包括2张图片;即1张之前未被显示于图片对比界面的图片被显示于更新后的图片对比界面。In one example, P = 2. When the image comparison interface includes 2 images, in response to a user action, one image is deleted from the electronic device 10. If the number of remaining images selected for image comparison is greater than or equal to 2, the updated image comparison interface includes 2 images; that is, one image that was not previously displayed on the image comparison interface is displayed on the updated image comparison interface.

在上述实施例中,在将之前未被显示于图片对比界面的一张或多张图片补充至更新后的图片对比界面时,可以按照预设规则确定被补充至更新后的图片对比界面的图片。In the above embodiments, when one or more images that were not previously displayed on the image comparison interface are added to the updated image comparison interface, the images added to the updated image comparison interface can be determined according to preset rules.

下面以P等于2的情况为例,对按照预设规则将对比列表包括的图片补充至更新后的图片对比界面的具体实现方式进行介绍。在P大于2的情况,预设规则与P等于2的情况类似,可以参考P等于2时的具体实现,本申请实施例中不再一一进行示例。The following example, using the case where P equals 2, describes the specific implementation method for supplementing the images included in the comparison list to the updated image comparison interface according to preset rules. When P is greater than 2, the preset rules are similar to those for the case where P equals 2; the specific implementation for P equals 2 can be referred to, and will not be illustrated in detail in this embodiment.

在一种实现方式中,预设规则包括:按照就近选择原则、优先向后选择原则确定被补充至更新后图片对比界面的图片。In one implementation, the preset rules include: determining the images to be added to the updated image comparison interface according to the principle of selecting the nearest image and the principle of selecting images from the back.

例如,按照图片在电子设备内的存储顺序,选择在基准图片之后,与基准图片最近的一张图片;其中,基准图片是图片对比界面包括的两张图片中存储顺序靠后的图片。例如,对比列表包括7张图片,按照存储顺序依次为图片1-图片7,图片对比界面显示的是图片2和图片5,即基准图片为图片5;在图片2被删除后,图片5之后最近的一张图片是图片6,图片6被自动补充至更新后图片对比界面,更新后图片对比界面包括图片5和图片6。之后,图片6被删除,基准图片为图片6,图片6之后最近的一张图片是图片7;在图片6被删除后,图片7被自动补充至更新后图片对比界面,更新后图片对比界面包括图片5和图片7。For example, based on the storage order of images within the electronic device, the image closest to the reference image is selected after the reference image. The reference image is the image stored later in the storage order among the two images included in the image comparison interface. For instance, if the comparison list includes 7 images, numbered 1-7 in storage order, and the image comparison interface displays images 2 and 5 (i.e., image 5 is the reference image), after image 2 is deleted, the closest image after image 5 is image 6, which is automatically added to the updated image comparison interface, which then includes images 5 and 6. Subsequently, image 6 is deleted, and the reference image becomes image 6, with image 7 being the closest image after it. After image 6 is deleted, image 7 is automatically added to the updated image comparison interface, which then includes images 5 and 7.

这样的话,对比列表中的图片按照从前向后的顺序依次在图片对比界面中显示,每次用户删除一张图片后,自动补充至更新后图片对比界面的图片都是还未对比的,方便用户按照顺序依次对比图片,避免用户手动选择图片的重复操作,节省用户操作 步骤。In this way, the images in the comparison list are displayed sequentially in the image comparison interface from front to back. Each time the user deletes an image, the images automatically added to the updated image comparison interface are all those that have not yet been compared. This allows users to compare images in order, avoiding repetitive manual image selection and saving user time. step.

可选的,如果基准图片之后不存在图片,选择基准图片之前,与基准图片最近的一张图片。例如,对比列表包括7张图片,按照存储顺序依次为图片1-图片7,图片对比界面显示的是图片2和图片7,即基准图片为图片7,图片7之后不存在图片,图片7之前最近的一张图片是图片6;如果删除图片2,在图片2被删除后,图片6被自动补充至更新后图片对比界面,更新后图片对比界面包括图片6和图片7;如果删除图片7,在图片7被删除后,图片6被自动补充至更新后图片对比界面,更新后图片对比界面包括图片2和图片6。Optionally, if no image follows the baseline image, the image closest to the baseline image is selected. For example, if the comparison list includes 7 images, stored in order from image 1 to image 7, the image comparison interface displays images 2 and 7. This means the baseline image is image 7, and there are no images after it. The closest image before image 7 is image 6. If image 2 is deleted, image 6 is automatically added to the updated image comparison interface, which then includes both images 6 and 7. Similarly, if image 7 is deleted, image 6 is automatically added to the updated image comparison interface, which then includes both images 2 and 6.

图16和图17示出了采用就近选择原则、优先向后选择原则自动补充图片的一种示例。Figures 16 and 17 show an example of automatically supplementing images using the principle of selecting the nearest image and the principle of prioritizing backward selection.

示例性的,如图16的(a)所示,电子设备10显示图片对比界面901,图片对比界面901包括图片902和图片903,对比列表包括缩略图a’、缩略图b’、缩略图c’和缩略图d’,其中图片902对应的缩略图b’以及图片903对应的缩略图c’突出显示。可选的,图片对比界面901包括“图片对比”按钮,如图16的(b)所示,响应于用户对图片对比界面901中“图片对比”按钮的点击操作,电子设备10显示图片选择界面904,图片选择界面904包括多张图片,其中缩略图a’对应的缩略图a、缩略图b’对应的缩略图b、缩略图c’对应的缩略图c和缩略图d’对应的缩略图d是已被选中的。For example, as shown in Figure 16(a), the electronic device 10 displays an image comparison interface 901, which includes images 902 and 903. The comparison list includes thumbnails a', b', c', and d', with thumbnail b' corresponding to image 902 and thumbnail c' corresponding to image 903 highlighted. Optionally, the image comparison interface 901 includes an "Image Comparison" button, as shown in Figure 16(b). In response to a user clicking the "Image Comparison" button in the image comparison interface 901, the electronic device 10 displays an image selection interface 904, which includes multiple images, where thumbnail a', thumbnail b', thumbnail c', and thumbnail d' are selected.

结合图16的(a)和图16的(b),已被选中参与对比的图片数量是4,也就是说,对比列表包括4张图片;在图片对比界面显示的图片数量是2,其中基准图片为图片903(缩略图c’对应的图片)。Combining Figure 16(a) and Figure 16(b), the number of images selected for comparison is 4, meaning the comparison list includes 4 images; the number of images displayed on the image comparison interface is 2, of which the baseline image is image 903 (the image corresponding to thumbnail c').

用户可以在图片对比界面删除图片。示例性的,如图16的(c)所示,响应于用户对图片902上“删除”图标的点击操作,图片902被从电子设备10删除,电子设备10显示图片对比界面905,图片对比界面905包括图片903和图片906;其中图片906是电子设备10上存储的位于图片903之后的第1张图片,如图16的(a)所示,图片906对应的缩略图d’是图片903对应的缩略图c’之后的第1个。图片902被删除后,图片902对应的缩略图b’也被删除,如图16的(c)所示,对比列表包括缩略图a’、缩略图c’和缩略图d’,其中图片903对应的缩略图c’以及图片906对应的缩略图d’突出显示。在一种实现方式中,图片对比界面中图片按照其存储在电子设备10内的顺序显示,如图16的(c),图片903在电子设备10内存储的顺序在图片906之前,相应的,图片对比界面905中图片903显示于图片906之上,相比图片对比界面901,图片903的显示位置向上移动了。Users can delete images in the image comparison interface. For example, as shown in Figure 16(c), in response to a user clicking the "delete" icon on image 902, image 902 is deleted from electronic device 10. Electronic device 10 then displays an image comparison interface 905, which includes images 903 and 906. Image 906 is the first image stored on electronic device 10 after image 903, as shown in Figure 16(a). The thumbnail d' corresponding to image 906 is the first image after the thumbnail c' corresponding to image 903. After image 902 is deleted, the thumbnail b' corresponding to image 902 is also deleted, as shown in Figure 16(c). The comparison list includes thumbnails a', c', and d', with thumbnails c' corresponding to image 903 and d' corresponding to image 906 highlighted. In one implementation, the images in the image comparison interface are displayed in the order in which they are stored in the electronic device 10, as shown in Figure 16(c). Image 903 is stored in the electronic device 10 before image 906. Accordingly, in the image comparison interface 905, image 903 is displayed above image 906. Compared to the image comparison interface 901, the display position of image 903 has been moved upward.

可选的,图片对比界面905包括“图片对比”按钮,如图16的(d)所示,响应于用户对图片对比界面905中“图片对比”按钮的点击操作,电子设备10显示图片选择界面907,图片选择界面907包括多张图片,其中缩略图a’对应的缩略图a、缩略图c’对应的缩略图c和缩略图d’对应的缩略图d是已被选中的。Optionally, the image comparison interface 905 includes an "Image Comparison" button, as shown in Figure 16(d). In response to the user's click on the "Image Comparison" button in the image comparison interface 905, the electronic device 10 displays an image selection interface 907, which includes multiple images, among which thumbnail a' corresponding to thumbnail a, thumbnail c' corresponding to thumbnail c, and thumbnail d' corresponding to thumbnail d are selected.

结合图16的(c)和图16的(d),已被选中参与对比的图片数量是3,在图片对比界面显示的图片数量是2。Combining Figure 16(c) and Figure 16(d), the number of images selected for comparison is 3, and the number of images displayed on the image comparison interface is 2.

进一步的,如图17的(a)所示,在电子设备10显示图片对比界面905时,已被选中参与对比的图片数量是3,也就是说,对比列表包括3张图片;在图片对比界面 显示的图片数量是2,其中基准图片为图片906(缩略图d’对应的图片)。可选的,图片对比界面905包括“图片对比”按钮,如图17的(b)所示,响应于用户对图片对比界面905中“图片对比”按钮的点击操作,电子设备10显示图片选择界面907。Furthermore, as shown in Figure 17(a), when the electronic device 10 displays the image comparison interface 905, the number of images selected for comparison is 3, meaning the comparison list includes 3 images; in the image comparison interface... The number of images displayed is 2, with the base image being image 906 (the image corresponding to thumbnail d'). Optionally, the image comparison interface 905 includes an "Image Comparison" button, as shown in Figure 17(b). In response to the user's click on the "Image Comparison" button in the image comparison interface 905, the electronic device 10 displays an image selection interface 907.

示例性的,图片906被从电子设备10删除,图片906对应的缩略图d’之后不存在图片,缩略图d’之前最近的一张图片是缩略图a’对应的图片909。如图17的(c)所示,响应于用户对图片906上“删除”图标的点击操作,电子设备10显示图片对比界面908,图片对比界面908包括图片909和图片903。图片906被删除后,图片906对应的缩略图d’也被删除,如图17的(c)所示,对比列表包括缩略图a’和缩略图c’。For example, image 906 is deleted from electronic device 10. No image follows the thumbnail d' corresponding to image 906, and the most recent image before thumbnail d' is image 909 corresponding to thumbnail a'. As shown in Figure 17(c), in response to the user's click on the "delete" icon on image 906, electronic device 10 displays an image comparison interface 908, which includes images 909 and 903. After image 906 is deleted, the thumbnail d' corresponding to image 906 is also deleted. As shown in Figure 17(c), the comparison list includes thumbnails a' and c'.

可选的,图片对比界面908包括“图片对比”按钮,如图17的(d)所示,响应于用户对图片对比界面908中“图片对比”按钮的点击操作,电子设备10显示图片选择界面910,图片选择界面910包括多张图片,其中缩略图a’对应的缩略图a和缩略图c’对应的缩略图c是已被选中的。Optionally, the image comparison interface 908 includes an "image comparison" button, as shown in Figure 17(d). In response to the user's click on the "image comparison" button in the image comparison interface 908, the electronic device 10 displays an image selection interface 910, which includes multiple images, among which thumbnail a' and thumbnail c' are selected.

在另一种实现方式中,预设规则包括:按照就近选择原则、优先向前选择原则确定被补充至更新后图片对比界面的图片。例如,按照图片在电子设备内的存储顺序,选择在标定图片之前,与标定图片最近的一张图片;其中,标定图片是图片对比界面包括的两张图片中存储顺序靠前的图片。如果标定图片之前不存在图片,选择标定图片之后,与标定图片最近的一张图片。这样的话,方便用户对已经查看过的图片进行再一次详细对比。In another implementation, the preset rules include: selecting images to be added to the updated image comparison interface based on the principles of proximity and forward selection. For example, according to the storage order of images in the electronic device, the image closest to the calibrated image is selected, where the calibrated image is the one stored earlier in the two images included in the image comparison interface. If no image exists before the calibrated image, the image closest to the calibrated image is selected after it. This allows users to perform a more detailed comparison of images they have already viewed.

在另一种实现方式中,预设规则包括:选择对比列表中,与图片对比界面中被保留的图片的拍摄时间(或者获取时间)最接近的图片。一般来说,拍摄时间(或获取时间)接近的图片的图像内容可能更接近,这样的话,方便用户查看图像内容比较相似的图片。本申请实施例中,对比列表中缩略图对应的图片也称为对比列表中图片。In another implementation, the preset rules include: selecting the image from the comparison list whose shooting time (or acquisition time) is closest to that of the images retained in the image comparison interface. Generally, images with similar shooting times (or acquisition times) are likely to have similar image content, making it easier for users to view images with similar content. In this embodiment, the images corresponding to the thumbnails in the comparison list are also referred to as images in the comparison list.

在另一种实现方式中,预设规则包括:选择对比列表中,与图片对比界面中被保留的图片的拍摄地点相同的图片。一般来说,拍摄地点相同的图片的图像内容可能比较相似,这样的话,方便用户查看图像内容比较相似的图片。In another implementation, the preset rules include: selecting images from the comparison list that were taken at the same location as the images retained in the image comparison interface. Generally, images taken at the same location are likely to have similar image content, making it easier for users to view images with similar content.

在另一种实现方式中,电子设备可以对对比列表中全部图片进行图像分析,获取各个图片之间的图像相似度。预设规则包括:选择对比列表中,与图片对比界面中被保留的图片的图像相似度最高的图片。这样的话,方便用户查看图像内容比较相似的图片。In another implementation, the electronic device can perform image analysis on all images in the comparison list to obtain the image similarity between each image. Preset rules include selecting the image with the highest similarity to the images retained in the image comparison interface from the comparison list. This makes it easier for users to view images with similar content.

在另一种实现方式中,预设规则包括:按照用户在多张图片中选择对比图片的选择顺序从先到后进行选择。这样的话,方便用户优先查看先选择的图片。In another implementation, the preset rules include: selecting images from multiple images in the order they were chosen for comparison. This allows users to prioritize viewing the first image they selected.

可以理解的,可以根据需要设置其他预设规则,本申请实施例中不再一一示例。It is understandable that other preset rules can be set as needed, but they will not be exemplified one by one in this application embodiment.

在一些实施例中,如果对比列表中包括2张图片,即已被选中参与图片对比的图片数量等于2,接收到用户对其中1张图片的删除操作后,剩余的已被选中参与图片对比的图片数量等于1,则退出图片对比。示例性的,如图18所示,电子设备10显示图片对比界面908,图片对比界面908包括图片909和图片903,对比列表包括缩略图a’和缩略图c’,其中,缩略图a’对应图片909,缩略图c’对应图片903。响应于用户对图片903上“删除”图标的点击操作,电子设备10显示图片选择界面911,图片选择界面911包括多张图片,其中缩略图a’(图片909)对应的缩略图a是已被选中 的。In some embodiments, if the comparison list includes two images, meaning the number of images selected for comparison is two, and after receiving a user's deletion operation on one of the images, the remaining number of images selected for comparison is one, then the image comparison process exits. For example, as shown in FIG18, the electronic device 10 displays an image comparison interface 908, which includes images 909 and 903. The comparison list includes thumbnails a' and c', where thumbnail a' corresponds to image 909 and thumbnail c' corresponds to image 903. In response to a user's click on the "delete" icon on image 903, the electronic device 10 displays an image selection interface 911, which includes multiple images, where thumbnail a' (image 909) is the selected thumbnail. of.

上述实施例以电子设备10处于折叠状态,电子设备10的外屏102显示用户界面为例介绍了本申请实施例提供的图片显示方法。需要说明的是,当电子设备10处于支架状态或展开状态时,上述实施例提供的图片显示方法同样适用。当电子设备10处于支架状态或展开状态时,电子设备10显示图片对比界面、增加或减少图片对比界面中图片数量、增加或减少参与对比的图片数量、从电子设备10上删除图片等过程的具体实现,可以参考电子设备10处于折叠状态的实现,本申请实施例中不再一一示例。The above embodiments illustrate the image display method provided in this application embodiment, taking the electronic device 10 in a folded state and the external screen 102 of the electronic device 10 displaying a user interface as an example. It should be noted that the image display method provided in the above embodiments is also applicable when the electronic device 10 is in a stand state or an unfolded state. When the electronic device 10 is in a stand state or an unfolded state, the specific implementation of processes such as displaying an image comparison interface, increasing or decreasing the number of images in the image comparison interface, increasing or decreasing the number of images participating in the comparison, and deleting images from the electronic device 10 can be referred to the implementation when the electronic device 10 is in a folded state, and will not be exemplified one by one in this application embodiment.

在一些实施例中,电子设备的显示区域的四条边长度接近,电子设备显示的用户界面呈近似正方形。例如,参考图1,当电子设备10为展开状态,电子设备10的内屏101显示用户界面,内屏101的四条边长度接近,近似正方形;例如,参考图3,当电子设备20为展开状态,电子设备20的屏幕201的D屏和E屏显示用户界面,屏幕201的四条边长度接近,近似正方形;例如,参考图4,当电子设备30处于支架状态或折叠状态时,电子设备30的H屏显示用户界面,H屏的四条边长度接近,近似正方形。In some embodiments, the four sides of the display area of the electronic device are of similar length, and the user interface displayed by the electronic device is approximately square. For example, referring to FIG1, when the electronic device 10 is in the unfolded state, the inner screen 101 of the electronic device 10 displays the user interface, and the four sides of the inner screen 101 are of similar length, approximating a square. For example, referring to FIG3, when the electronic device 20 is in the unfolded state, the D screen and E screen of the screen 201 of the electronic device 20 display the user interface, and the four sides of the screen 201 are of similar length, approximating a square. For example, referring to FIG4, when the electronic device 30 is in the stand state or folded state, the H screen of the electronic device 30 displays the user interface, and the four sides of the H screen are of similar length, approximating a square.

本申请实施例提供的图片显示方法,当电子设备的显示区域呈近似正方形,电子设备显示的用户界面呈近似正方形。示例性的,用户界面为图片对比界面。下面仍然以电子设备10为例,当电子设备10为展开状态,电子设备10的内屏101显示用户界面,用户界面(图片对比界面)呈近似正方形。The image display method provided in this application embodiment is such that when the display area of the electronic device is approximately square, the user interface displayed by the electronic device is also approximately square. For example, the user interface is an image comparison interface. Taking the electronic device 10 as an example again, when the electronic device 10 is in an unfolded state, the inner screen 101 of the electronic device 10 displays the user interface (image comparison interface), which is approximately square.

图片对比界面包括的多张图片的布局包括横向布局和纵向布局。示例性的,如图19的(a)所示,当图片对比界面包括2张图片,在横向布局时,2张图片上下排列,其中显示每张图片的横向长度大于纵向长度。如图19的(b)所示,当图片对比界面包括2张图片,在纵向布局时,2张图片左右排列,其中显示每张图片的纵向长度大于横向长度。如图19的(c)所示,当图片对比界面包括3张图片,在横向布局时,3张图片上下排列,其中显示每张图片的横向长度大于纵向长度。如图19的(d)所示,当图片对比界面包括3张图片,在纵向布局时,3张图片左右排列,其中显示每张图片的纵向长度大于横向长度。The image comparison interface includes multiple images arranged in both horizontal and vertical layouts. For example, as shown in Figure 19(a), when the image comparison interface includes two images, in a horizontal layout, the two images are arranged vertically, with the horizontal length of each image greater than its vertical length. As shown in Figure 19(b), when the image comparison interface includes two images, in a vertical layout, the two images are arranged horizontally, with the vertical length of each image greater than its horizontal length. As shown in Figure 19(c), when the image comparison interface includes three images, in a horizontal layout, the three images are arranged vertically, with the horizontal length of each image greater than its vertical length. As shown in Figure 19(d), when the image comparison interface includes three images, in a vertical layout, the three images are arranged horizontally, with the vertical length of each image greater than its horizontal length.

另外,在一种实现方式中,当图片对比界面包括4张图片,采用固定布局。示例性的,如图20所示,当图片对比界面包括4张图片,该4张图片布局为2行2列。In another implementation, when the image comparison interface includes four images, a fixed layout is used. For example, as shown in Figure 20, when the image comparison interface includes four images, the four images are arranged in a 2x2 grid.

图片对比界面包括多张图片,每张图片的画幅方向包括竖向画幅和横向画幅。在一种实现方式中,参考图21,如果图片的纵向长度大于横向长度,图片的画幅方向为竖向画幅;如果图片的纵向长度等于横向长度,图片的画幅方向为竖向画幅;如果图片的纵向长度小于横向长度,图片的画幅方向为横向画幅。The image comparison interface includes multiple images, each with both vertical and horizontal aspect ratios. In one implementation, referring to Figure 21, if the vertical length of the image is greater than its horizontal length, the image is displayed vertically; if the vertical length is equal to the horizontal length, the image is displayed vertically; and if the vertical length is less than the horizontal length, the image is displayed horizontally.

在一种示例中,如图22所示,电子设备10显示图片对比界面1001,图片对比界面1001包括2张图片,分别为图片1002和图片1003。当图片对比界面1001横向布局,而参与对比的2张图片的原图为竖向画幅,原图会被放大、上下被裁剪后进行显示。示例性的,如图22所示,图片1002和图片1003中图像未被完整显示,给用户带来较差体验。In one example, as shown in Figure 22, the electronic device 10 displays an image comparison interface 1001, which includes two images, image 1002 and image 1003. When the image comparison interface 1001 is laid out horizontally, but the original images of the two images being compared are in portrait orientation, the original images are enlarged and cropped vertically before display. For example, as shown in Figure 22, the images in images 1002 and 1003 are not fully displayed, resulting in a poor user experience.

本申请实施例提供一种图片显示方法,当图片对比界面包括2张或3张图片时,图片对比界面的布局与已被选中参与对比的图片的画幅方向相关。在一种实现方式中, 根据已被选中参与对比的图片中前W张图片的画幅方向确定图片对比界面的布局,其中,W为预设值,例如W为4。示例性的,当W张图片中大于或等于一半数量的图片为竖向画幅,则图片对比界面的布局为纵向布局;当W张图片中小于一半数量的图片为竖向画幅,则图片对比界面的布局为横向布局。这样的话,当已被选中参与对比的图片中大部分为竖向画幅时,图片对比界面也为纵向布局,图片对比界面中显示的图片的图像能更多地被展示,显示效果较好。This application provides an image display method. When the image comparison interface includes two or three images, the layout of the image comparison interface is related to the aspect ratio of the selected images for comparison. In one implementation, The layout of the image comparison interface is determined based on the orientation of the first W images selected for comparison, where W is a preset value, for example, W = 4. For instance, if more than half of the W images are portrait-oriented, the image comparison interface will be vertically oriented; if less than half of the W images are portrait-oriented, the interface will be horizontally oriented. This ensures that when most of the selected images are portrait-oriented, the image comparison interface will also be vertically oriented, allowing more images to be displayed and resulting in a better display effect.

在一些实施例中,当首次进入图片对比界面时,根据已被选中参与图片对比的图片中前W张图片的画幅方向确定图片对比界面的布局。In some embodiments, when the image comparison interface is entered for the first time, the layout of the image comparison interface is determined according to the aspect ratio of the first W images selected for comparison.

以图片对比界面包括2张图片为例。在一种示例中,如图23的(a)所示,电子设备10显示图片对比界面1004,图片对比界面1004包括多张图片的缩略图,其中,6张图片已被选中。在一种示例中,电子设备10接收到用户对图片对比界面1004中“对比”控件的点击操作,根据已被选中的6张图片中前W张图片的画幅方向确定图片对比界面的布局。例如,W=4,前4张被选中的图片中竖向画幅的图片数量大于或等于2,则确定图片对比界面为纵向布局。响应于用户对图片对比界面1004中“对比”控件的点击操作,电子设备10显示图片对比界面1005,图片对比界面1005为纵向布局。在另一种示例中,如图23的(b)所示,电子设备10显示图片对比界面1006,图片对比界面1006包括多张图片的缩略图,其中,6张图片已被选中。在一种示例中,电子设备10接收到用户对图片对比界面1006中“对比”控件的点击操作,根据已被选中的6张图片中前W张图片的画幅方向确定图片对比界面的布局。例如,W=4,前4张被选中的图片中竖向画幅的图片数量小于2,则确定图片对比界面为横向布局。响应于用户对图片对比界面1006中“对比”控件的点击操作,电子设备10显示图片对比界面1007,图片对比界面1007为横向布局。Taking an image comparison interface comprising two images as an example. In one example, as shown in Figure 23(a), the electronic device 10 displays an image comparison interface 1004, which includes thumbnails of multiple images, of which 6 images have been selected. In another example, the electronic device 10 receives a user's click operation on the "Compare" control in the image comparison interface 1004 and determines the layout of the image comparison interface based on the aspect ratio of the first W images among the 6 selected images. For example, if W=4, and the number of vertically oriented images among the first 4 selected images is greater than or equal to 2, then the image comparison interface is determined to be a vertical layout. In response to the user's click operation on the "Compare" control in the image comparison interface 1004, the electronic device 10 displays an image comparison interface 1005, which is also a vertical layout. In another example, as shown in Figure 23(b), the electronic device 10 displays an image comparison interface 1006, which includes thumbnails of multiple images, of which 6 images have been selected. In one example, electronic device 10 receives a user's click on the "Compare" control in image comparison interface 1006 and determines the layout of the image comparison interface based on the orientation of the first W images out of the six selected images. For example, if W = 4, and the number of vertically oriented images in the first four selected images is less than two, then the image comparison interface is determined to be in landscape layout. In response to the user's click on the "Compare" control in image comparison interface 1006, electronic device 10 displays image comparison interface 1007, which is also in landscape layout.

在一些实施例中,电子设备显示图片对比界面时,已被选中参与图片对比的图片数量可能发生变化。例如,在显示图片对比界面时,一张或多张图片被删除,已被选中参与图片对比的图片数量发生变化;例如,根据用户操作增加或减少被选中的图片的数量(比如,如图9B所示场景)。In some embodiments, the number of images selected for comparison may change when the electronic device displays an image comparison interface. For example, if one or more images are deleted while the image comparison interface is displayed, the number of images selected for comparison may change; or the number of selected images may be increased or decreased based on user actions (e.g., as shown in the scenario in Figure 9B).

当已被选中参与图片对比的图片数量变化后,根据变化后的已被选中参与图片对比的图片中前W张图片的画幅方向重新确定图片对比界面的布局。When the number of images selected for comparison changes, the layout of the image comparison interface is redefined based on the orientation of the first W images among the selected images.

下面以图片对比界面包括2张图片为例介绍,可以理解的,图片对比界面包括3张图片或更多图片的实现方式可以参考图片对比界面包括2张图片的实现,本申请实施例中不再一一示例。The following example uses an image comparison interface with two images. It is understood that the implementation of an image comparison interface with three or more images can refer to the implementation of an image comparison interface with two images. In this application embodiment, they will not be illustrated one by one.

在一种示例中,如图24所示,电子设备10显示图片对比界面1005,图片对比界面1005包括图片1008和图片1009,图片1008和图片1009左右排列,即图片对比界面1005为纵向布局。示例性的,对比列表包括6个缩略图,即已被选中参与图片对比的图片为6项,例如Q=4,图片对比界面1005为纵向布局是根据已选中的6张图片中前4张的画幅方向确定的;例如,第1张图片为竖向画幅,第2张图片为竖向画幅,第3张图片为横向画幅,第4张图片为横向画幅,竖向画幅的数量与横向画幅的数量相等,则图片对比界面纵向布局。In one example, as shown in Figure 24, the electronic device 10 displays an image comparison interface 1005, which includes images 1008 and 1009 arranged horizontally, i.e., the image comparison interface 1005 is a vertical layout. For example, the comparison list includes six thumbnails, meaning six images have been selected for comparison, for example, Q=4. The vertical layout of the image comparison interface 1005 is determined based on the orientation of the first four selected images; for example, the first image is vertical, the second image is vertical, the third image is horizontal, and the fourth image is horizontal. The number of vertical images is equal to the number of horizontal images, thus the image comparison interface is vertically laid out.

示例性的,响应于用户对图片1009上“删除”图标的点击操作,图片1009被从 电子设备10删除,电子设备10显示图片对比界面1010,对比界面1010包括图片1008和图片1011,图片1008和图片1011上下排列,即图片对比界面1010为横向布局。在一种实现方式中,在接收到用户对图片1009上“删除”图标的点击操作后,电子设备10根据已选中的5张图片中前4张的画幅方向确定更新后图片对比界面的布局;例如,第1张图片为竖向画幅,原第2张图片已被删除,变化后的第2张图片(原第3张图片)为横向画幅,变化后的第3张图片(原第4张图片)为横向画幅,变化后的第4张图片为横向画幅,竖向画幅的数量小于横向画幅的数量,则图片对比界面为横向布局。For example, in response to a user's click on the "Delete" icon on image 1009, image 1009 is removed from... When an electronic device 10 deletes an image, it displays an image comparison interface 1010. This interface includes images 1008 and 1011, arranged vertically, meaning the image comparison interface 1010 has a horizontal layout. In one implementation, after receiving a user's click on the "delete" icon on image 1009, the electronic device 10 determines the updated layout of the image comparison interface based on the orientation of the first four selected images. For example, if the first image is vertical, the original second image has been deleted, the changed second image (originally the third image) is horizontal, the changed third image (originally the fourth image) is horizontal, and the changed fourth image is horizontal, and the number of vertical images is less than the number of horizontal images, then the image comparison interface has a horizontal layout.

在另一种示例中,如图25所示,电子设备10显示图片对比界面1007,图片对比界面1007包括图片1011和图片1012,图片1011和图片1012上下排列,即图片对比界面1007为横向布局。响应于用户对图片1012上“删除”图标的点击操作,图片1012被从电子设备10删除,电子设备10显示图片对比界面1013,对比界面1013包括图片1011和图片1008,图片1011和图片1008左右排列,即图片对比界面1013为纵向布局。In another example, as shown in Figure 25, the electronic device 10 displays an image comparison interface 1007, which includes images 1011 and 1012. Images 1011 and 1012 are arranged vertically, i.e., the image comparison interface 1007 has a horizontal layout. In response to the user's click on the "delete" icon on image 1012, image 1012 is deleted from the electronic device 10, and the electronic device 10 displays an image comparison interface 1013. The comparison interface 1013 includes images 1011 and 1008, which are arranged horizontally, i.e., the image comparison interface 1013 has a vertical layout.

在一些实施例中,电子设备10分屏显示图片对比界面与另一应用的界面时,由分屏显示变为全屏显示,在确定由分屏显示变为全屏显示后,根据已被选中参与图片对比的图片中前W张图片的画幅方向确定全屏显示时图片对比界面的布局。In some embodiments, when the electronic device 10 displays the image comparison interface and the interface of another application in a split-screen manner, it changes from split-screen display to full-screen display. After determining the change from split-screen display to full-screen display, the layout of the image comparison interface in full-screen display is determined according to the aspect ratio of the first W images selected for image comparison.

示例性的,如图26所示,电子设备10分屏显示应用窗口1014和应用窗口1015,例如,应用窗口1014是计算器应用的应用窗口,显示计算器界面;应用窗口1015是图库应用的应用窗口,显示图片对比界面1016,图片对比界面1016包括图片1017和图片1018,图片1017和图片1018上下排列。For example, as shown in Figure 26, the electronic device 10 displays application window 1014 and application window 1015 in a split screen. For instance, application window 1014 is the application window of the calculator application, displaying the calculator interface; application window 1015 is the application window of the gallery application, displaying the image comparison interface 1016, which includes image 1017 and image 1018, arranged vertically.

响应于关闭应用窗口1014的操作,电子设备10全屏显示图库应用的应用窗口。例如,计算器界面包括退出控件10141,电子设备10接收到用户对退出控件10141的点击操作即接收到关闭应用窗口1014的操作。示例性的,响应于用户关闭应用窗口1014的操作,电子设备10显示图片对比界面1019,图片对比界面1019包括图片1017和图片1018,图片1017和图片1018左右排列,即图片对比界面1019纵向布局。In response to the operation of closing application window 1014, electronic device 10 displays the application window of the gallery application in full screen. For example, the calculator interface includes an exit control 10141, and electronic device 10 receives the user's click operation on the exit control 10141, which is equivalent to receiving the operation of closing application window 1014. For example, in response to the user's operation of closing application window 1014, electronic device 10 displays an image comparison interface 1019, which includes image 1017 and image 1018, arranged horizontally, i.e., the image comparison interface 1019 has a vertical layout.

在一种实现方式中,当电子设备10接收到用户对退出控件10141的点击操作时,根据已被选中参与图片对比的图片中前W张图片的画幅方向确定全屏显示时图片对比界面的布局为纵向布局。In one implementation, when the electronic device 10 receives a user's click operation on the exit control 10141, the layout of the image comparison interface for full-screen display is determined to be a vertical layout based on the aspect ratio of the first W images selected for image comparison.

可选的,在电子设备10全屏显示图片对比界面1019时,如果接收到分屏显示的操作,电子设备10分屏显示,在应用窗口1015显示图片对比界面1016,图片对比界面1016中图片1017和图片1018上下排列。Optionally, when the electronic device 10 displays the image comparison interface 1019 in full screen, if a split-screen display operation is received, the electronic device 10 displays the image comparison interface 1016 in the application window 1015, in which images 1017 and 1018 are arranged vertically.

在一些实施例中,当电子设备10由折叠状态或支架状态被展开为展开状态时,根据已被选中参与图片对比的图片中前W张图片的画幅方向确定展开状态时图片对比界面的布局。In some embodiments, when the electronic device 10 is unfolded from a folded state or a stand state to an unfolded state, the layout of the image comparison interface in the unfolded state is determined according to the aspect ratio of the first W images among the selected images for image comparison.

示例性的,如图27所示,电子设备10为折叠状态,电子设备10的外屏102显示图片对比界面1020,图片对比界面1020包括图片1021和图片1022,图片1021和图片1022为上下排列。For example, as shown in Figure 27, the electronic device 10 is in a folded state, and the outer screen 102 of the electronic device 10 displays an image comparison interface 1020. The image comparison interface 1020 includes image 1021 and image 1022, which are arranged vertically.

电子设备10被从折叠状态展开为展开状态,电子设备10确定被展开为展开状态 时,根据已被选中参与图片对比的图片中前W张图片的画幅方向确定展开状态时图片对比界面的布局;示例性的,已被选中参与图片对比的图片数量为4,Q的值为4,根据已被选中参与图片对比的前4张图片的画幅方向确定图片对比界面的布局为纵向布局。The electronic device 10 is unfolded from a folded state to an unfolded state, and the electronic device 10 is determined to be unfolded. When the image comparison interface is unfolded, the layout is determined based on the aspect ratio of the first W images selected for comparison. For example, if the number of images selected for comparison is 4 and the value of Q is 4, the layout of the image comparison interface is determined to be a vertical layout based on the aspect ratio of the first 4 images selected for comparison.

示例性的,响应于电子设备10被展开为展开状态,电子设备10的内屏101显示图片对比界面1023,图片对比界面1023包括图片1021和图片1022;在电子设备10的展开状态,图片1021和图片1022左右排列,即图片对比界面1023纵向布局。For example, in response to the electronic device 10 being unfolded, the inner screen 101 of the electronic device 10 displays an image comparison interface 1023, which includes image 1021 and image 1022. In the unfolded state of the electronic device 10, image 1021 and image 1022 are arranged horizontally, that is, the image comparison interface 1023 is arranged vertically.

需要说明的是,本申请实施例提供的上述各个实施例可以进行任意组合;例如,图27所示场景中电子设备10在折叠状态显示的用户界面,可以是前述各个实施例中电子设备10在折叠状态显示的用户界面,比如图7A和图13中图片对比界面504、图16中图片对比界面901、图17中图片对比界面905、图18中图片对比界面908等;再例如,图26中分屏显示的应用窗口1015中图片对比界面1016可以是由图22-图25中任意一个图片对比界面分屏显示后得到的;又例如,图24中图片对比界面1005可以是图27中图片对比界面1023。It should be noted that the various embodiments provided in this application can be combined in any way; for example, the user interface displayed by the electronic device 10 in the folded state in the scenario shown in FIG27 can be the user interface displayed by the electronic device 10 in the folded state in the aforementioned embodiments, such as the image comparison interface 504 in FIG7A and FIG13, the image comparison interface 901 in FIG16, the image comparison interface 905 in FIG17, the image comparison interface 908 in FIG18, etc.; as another example, the image comparison interface 1016 in the application window 1015 displayed in the split screen in FIG26 can be obtained by splitting any one of the image comparison interfaces in FIG22-FIG25; as yet another example, the image comparison interface 1005 in FIG24 can be the image comparison interface 1023 in FIG27.

本申请实施例提供的图片显示方法可以应用于配置了折叠屏的电子设备。The image display method provided in this application embodiment can be applied to electronic devices configured with foldable screens.

示例性的,图28示出了上述电子设备的一种硬件结构示意图。For example, Figure 28 shows a schematic diagram of a hardware structure of the above-mentioned electronic device.

电子设备100可以包括:处理器110,存储器120,天线1,天线2,移动通信模块130,无线通信模块140,音频模块150,摄像头160,显示屏170,传感器模块180等。其中传感器模块180可以包括压力传感器,触摸传感器,陀螺仪传感器,加速度传感器等。Electronic device 100 may include: processor 110, memory 120, antenna 1, antenna 2, mobile communication module 130, wireless communication module 140, audio module 150, camera 160, display screen 170, sensor module 180, etc. Sensor module 180 may include pressure sensor, touch sensor, gyroscope sensor, accelerometer sensor, etc.

可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收 发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous receiver. Universal Asynchronous Receiver/Transmitter (UART) interface, Mobile Industry Processor Interface (MIPI) interface, General-Purpose Input/Output (GPIO) interface, Subscriber Identity Module (SIM) interface, and/or Universal Serial Bus (USB) interface, etc.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块130,无线通信模块140,调制解调处理器以及基带处理器等实现。The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 130, wireless communication module 140, modem processor, and baseband processor.

移动通信模块130可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。在一些实施例中,移动通信模块130的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块130的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 130 can provide wireless communication solutions, including 2G/3G/4G/5G, for use on the electronic device 100. In some embodiments, at least some functional modules of the mobile communication module 130 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 130 and at least some modules of the processor 110 may be housed in the same device.

无线通信模块140可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如Wi-Fi网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信(near field communication,NFC),红外(infrared,IR)等无线通信的解决方案。The wireless communication module 140 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as Wi-Fi networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR).

本申请实施例中,电子设备100可以通过移动通信模块130或无线通信模块140从其他设备接收图片,并将接收的图片保存至图库中。In this embodiment, the electronic device 100 can receive images from other devices via the mobile communication module 130 or the wireless communication module 140, and save the received images to the image library.

电子设备100通过GPU,显示屏170,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏170和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。Electronic device 100 implements display functions through a GPU, a display screen 170, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 170 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

显示屏170用于显示图像,视频等。该显示屏170包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini-LED,Micro-OLED,Micro-OLED,量子点发光二极管(quantum dot light emitting diodes,QLED)等。The display screen 170 is used to display images, videos, etc. The display screen 170 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.

本申请实施例中,显示屏170可以用于显示电子设备100的用户界面,例如图库的图片对比界面等。本申请实施例中,电子设备100可以包括多个显示屏,例如内屏、外屏。In this embodiment, the display screen 170 can be used to display the user interface of the electronic device 100, such as an image comparison interface in a gallery. In this embodiment, the electronic device 100 may include multiple display screens, such as an inner screen and an outer screen.

电子设备100可以通过ISP,摄像头160,视频编解码器,GPU,显示屏170以及应用处理器等实现拍摄功能。Electronic device 100 can perform shooting functions through ISP, camera 160, video codec, GPU, display 170 and application processor.

摄像头160用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备可以包括1个或N个摄像头160,N为大于1的正整数。本申请实施例中,摄像头160采集的静态图可以保存至图库。 Camera 160 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through a lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to an ISP (Internet Service Provider) for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP (Digital Signal Processor) for processing. The DSP converts the digital image signal into image signals in standard formats such as RGB and YUV. In some embodiments, the electronic device may include one or N cameras 160, where N is a positive integer greater than 1. In this embodiment, the still images captured by the camera 160 can be saved to a gallery.

音频模块150用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块150还可以用于对音频信号编码和解码。在一些实施例中,音频模块150可以设置于处理器110中,或将音频模块150的部分功能模块设置于处理器110中。The audio module 150 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. The audio module 150 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 150 may be located in the processor 110, or some functional modules of the audio module 150 may be located in the processor 110.

存储器120可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在存储器120的指令,从而执行电子设备的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在存储器120中的指令,存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序。存储数据区可存储电子设备使用过程中所创建的数据(比如图片或视频文件)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The memory 120 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 120. For example, in this embodiment, the processor 110 can execute instructions stored in the memory 120, which may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application required for a function. The data storage area may store data created during the use of the electronic device (such as image or video files). Furthermore, the memory 120 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

压力传感器用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器可以设置于显示屏170。压力传感器的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏170,电子设备100根据压力传感器检测所述触摸操作强度。电子设备100也可以根据压力传感器的检测信号计算触摸的位置。A pressure sensor is used to sense pressure signals and converts them into electrical signals. In some embodiments, the pressure sensor may be disposed on the display screen 170. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen 170, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor. The electronic device 100 may also calculate the touch location based on the detection signal from the pressure sensor.

触摸传感器,也称“触控面板”。触摸传感器可以设置于显示屏170,由触摸传感器与显示屏170组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏170提供与触摸操作相关的视觉输出。在一种示例中,可以通过触摸事件确定接收到用户在内屏或外屏上的触摸操作(例如点击操作、双击操作等),还可以根据触摸事件确定接收到用户在内屏或外屏上的手势。A touch sensor, also known as a "touch panel," can be located on the display screen 170. The touch sensor and the display screen 170 together form a touchscreen, also called a "touch screen." The touch sensor detects touch operations applied to or near it. The touch sensor can then transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 170. In one example, the touch event can determine whether a user's touch operation (e.g., tap, double-tap, etc.) on the inner or outer screen has been received, and it can also determine whether a gesture on the inner or outer screen has been received.

陀螺仪传感器可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。A gyroscope sensor can be used to determine the motion attitude of an electronic device 100. In some embodiments, the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor.

加速度传感器可以用于检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。An accelerometer can be used to detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). When electronic device 100 is stationary, the magnitude and direction of gravity can be detected.

在一种示例中,可以通过陀螺仪传感器和加速度传感器获取电子设备100的朝向,例如确定电子设备100被横向放置或纵向放置。In one example, the orientation of the electronic device 100 can be obtained using a gyroscope sensor and an accelerometer sensor, for example, to determine whether the electronic device 100 is placed horizontally or vertically.

示例性的,可以在电子设备100设置多组传感器。比如,在电子设备的A屏和B屏分别设置传感器模块。示例性的,A屏设置陀螺仪传感器1和加速度传感器1,B屏设置陀螺仪传感器2和加速度传感器2。通过读取陀螺仪传感器1和加速度传感器1的输出数据可以获取A屏的运动速度和方向,通过读取陀螺仪传感器2和加速度传感器2的输出数据可以获取B屏的运动速度和方向,从而可以确定电子设备100被展开或被折叠。通过读取陀螺仪传感器1、加速度传感器1、陀螺仪传感器2和加速度传感器2的输出数据,电子设备100可以获取A屏与B屏之间的夹角等参数,从而确定电子设备100的姿态,例如展开状态、支架状态或折叠状态。 For example, multiple sets of sensors can be set in the electronic device 100. For instance, sensor modules can be set on screen A and screen B of the electronic device. For example, screen A can be equipped with gyroscope sensor 1 and accelerometer sensor 1, and screen B can be equipped with gyroscope sensor 2 and accelerometer sensor 2. By reading the output data of gyroscope sensor 1 and accelerometer sensor 1, the movement speed and direction of screen A can be obtained; by reading the output data of gyroscope sensor 2 and accelerometer sensor 2, the movement speed and direction of screen B can be obtained, thereby determining whether the electronic device 100 is unfolded or folded. By reading the output data of gyroscope sensor 1, accelerometer sensor 1, gyroscope sensor 2, and accelerometer sensor 2, the electronic device 100 can obtain parameters such as the angle between screen A and screen B, thereby determining the attitude of the electronic device 100, such as unfolded state, supported state, or folded state.

可以理解的是,本申请实施例提供的电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。It is understood that the electronic device provided in this application embodiment includes hardware structures and/or software modules corresponding to perform each function in order to achieve the above-mentioned functions. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.

本申请实施例可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。This application embodiment can divide the above-described electronic device into functional modules based on the method example described above. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

在一种示例中,请参考图29,其示出了上述实施例中所涉及的电子设备的一种可能的结构示意图。该电子设备2900包括:处理单元2910、存储单元2920和显示单元2930。In one example, please refer to Figure 29, which shows a possible structural schematic diagram of the electronic device involved in the above embodiments. The electronic device 2900 includes: a processing unit 2910, a storage unit 2920, and a display unit 2930.

其中,处理单元2910,用于对电子设备2900的动作进行控制管理。The processing unit 2910 is used to control and manage the operation of the electronic device 2900.

存储单元2920用于保存电子设备2900的程序代码和数据。Storage unit 2920 is used to store program code and data of electronic device 2900.

显示单元2930用于显示电子设备2900的用户界面。Display unit 2930 is used to display the user interface of electronic device 2900.

当然,上述电子设备2900中的单元模块包括但不限于上述处理单元2910、存储单元2920和显示单元2930。Of course, the unit modules in the above-mentioned electronic device 2900 include, but are not limited to, the processing unit 2910, the storage unit 2920 and the display unit 2930.

可选的,电子设备2900中还可以包括图像采集单元2940。图像采集单元2940用于采集图片。Optionally, the electronic device 2900 may also include an image acquisition unit 2940. The image acquisition unit 2940 is used to acquire images.

可选的,电子设备2900中还可以包括通信单元2950。通信单元2950用于支持电子设备2900与其他设备进行通信。例如,从其他设备获取图片等。Optionally, the electronic device 2900 may also include a communication unit 2950. The communication unit 2950 is used to support communication between the electronic device 2900 and other devices, such as acquiring images from other devices.

其中,处理单元2910可以是处理器或控制器,例如可以是中央处理器(central processing unit,CPU),数字信号处理器(digital signal processor,DSP),专用集成电路(application-specific integrated circuit,ASIC),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。存储单元2920可以是存储器。显示单元2930可以是显示屏等。图像采集单元2940可以是摄像头等。通信单元2950可以包括移动通信单元和/或无线通信单元。The processing unit 2910 can be a processor or controller, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The storage unit 2920 can be a memory. The display unit 2930 can be a display screen, etc. The image acquisition unit 2940 can be a camera, etc. The communication unit 2950 can include a mobile communication unit and/or a wireless communication unit.

例如,处理单元2910为处理器(如图28所示的处理器110),存储单元2920可以为存储器(如图28所示的存储器120),显示单元2930可以为显示屏(如图28所示的显示屏170)。图像采集单元2940可以为摄像头(如图28所示的摄像头160)。通信单元2950可以包括移动通信单元(如图28所示的移动通信模块130)和无线通信单元(如图28所示的无线通信模块140)。本申请实施例所提供的电子设备2900可以为图28所示的电子设备100。其中,上述处理器、存储器、显示屏、摄像头、移动通信单元、无线通信单元等可以连接在一起,例如通过总线连接。For example, processing unit 2910 is a processor (processor 110 as shown in FIG. 28), storage unit 2920 is a memory (memory 120 as shown in FIG. 28), and display unit 2930 is a display screen (display screen 170 as shown in FIG. 28). Image acquisition unit 2940 is a camera (camera 160 as shown in FIG. 28). Communication unit 2950 may include a mobile communication unit (mobile communication module 130 as shown in FIG. 28) and a wireless communication unit (wireless communication module 140 as shown in FIG. 28). The electronic device 2900 provided in this application embodiment can be the electronic device 100 shown in FIG. 28. The processor, memory, display screen, camera, mobile communication unit, and wireless communication unit described above can be connected together, for example, via a bus.

本申请实施例还提供一种芯片系统,该芯片系统包括至少一个处理器和至少一个 接口电路。处理器和接口电路可通过线路互联。例如,接口电路可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路可用于向其它装置(例如处理器)发送信号。示例性的,接口电路可读取存储器中存储的指令,并将该指令发送给处理器。当所述指令被处理器执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。This application also provides a chip system, which includes at least one processor and at least one... Interface circuitry. The processor and interface circuitry can be interconnected via lines. For example, the interface circuitry can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuitry can be used to send signals to other devices (e.g., the processor). Exemplarily, the interface circuitry can read instructions stored in memory and send those instructions to the processor. When the instructions are executed by the processor, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete components, and this application embodiment does not specifically limit this.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。This application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform various functions or steps performed by the mobile phone in the above method embodiments.

本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the mobile phone in the above method embodiments.

通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims (21)

一种图片显示方法,其特征在于,应用于电子设备,所述方法包括:A method for displaying images, characterized in that it is applied to an electronic device, the method comprising: 显示第一界面,所述第一界面包括多张缩略图和第一控件;Display a first interface, which includes multiple thumbnails and a first control; 在所述多张缩略图中第一数量的缩略图被选中后,响应于对所述第一控件的第一操作,显示第二界面;其中,所述第一数量的缩略图包括第一缩略图、第二缩略图和第三缩略图,所述第二界面包括第一图片和第二图片,所述第一图片是所述第一缩略图对应的图片,所述第二图片是所述第二缩略图对应的图片;After a first number of thumbnails in the plurality of thumbnails are selected, in response to a first operation on the first control, a second interface is displayed; wherein, the first number of thumbnails includes a first thumbnail, a second thumbnail and a third thumbnail, and the second interface includes a first image and a second image, wherein the first image is the image corresponding to the first thumbnail and the second image is the image corresponding to the second thumbnail. 接收对所述第二图片的第二操作,将所述第二图片从所述电子设备删除并显示第三界面,所述第三界面包括所述第一图片和第三图片,所述第三图片是所述第三缩略图对应的图片。The system receives a second operation on the second image, which deletes the second image from the electronic device and displays a third interface. The third interface includes the first image and the third image, and the third image is the image corresponding to the third thumbnail. 根据权利要求1所述的方法,其特征在于,所述第一数量的缩略图对应第一数量的图片,所述方法还包括:According to the method of claim 1, wherein the first number of thumbnails corresponds to the first number of images, and the method further includes: 所述电子设备为折叠状态时,以第一布局显示所述第二界面中第一图片和第二图片;When the electronic device is in a folded state, the first image and the second image in the second interface are displayed in a first layout. 所述电子设备由折叠状态为展开状态时,从所述第一布局切换为以第二布局显示所述第一图片和所述第二图片;所述第二布局与所述第一数量的图片中第二数量的图片的画幅方向相关。When the electronic device changes from a folded state to an unfolded state, it switches from the first layout to displaying the first image and the second image in a second layout; the second layout is related to the aspect ratio of the second number of images out of the first number of images. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that, 当显示所述第二界面时,所述第二界面中所述第一图片和所述第二图片以第三布局显示;When the second interface is displayed, the first image and the second image in the second interface are displayed in a third layout; 当显示所述第三界面时,所述第三界面中所述第一图片和所述第三图片以第四布局显示。When the third interface is displayed, the first image and the third image in the third interface are displayed in a fourth layout. 根据权利要求3所述的方法,其特征在于,所述第一数量的缩略图对应第一数量的图片,所述第三布局及所述第四布局与所述第一数量的图片中第二数量的图片的画幅方向相关。According to the method of claim 3, the first number of thumbnails corresponds to the first number of images, and the third layout and the fourth layout are related to the aspect ratio of the second number of images in the first number of images. 根据权利要求2或4所述的方法,其特征在于,所述第二数量的图片在所述第一数量的图片中按预设排序在前;According to the method of claim 2 or 4, the second number of images are arranged first in a preset order among the first number of images; 其中,当所述第二数量的图片中大于或等于一半数量的图片的画幅方向为竖向画幅,布局为纵向布局;Wherein, when more than half or more of the images in the second number of images are in a vertical orientation, the layout is a vertical layout; 当所述第二数量的图片中小于一半数量的图片的画幅方向为竖向画幅,布局为横向布局。When less than half of the images in the second number are in portrait orientation, the layout is horizontal. 根据权利要求4所述的方法,其特征在于,所述第二数量的图片在所述第一数量的图片中按预设排序在前;According to the method of claim 4, the second number of images are arranged first in a preset order among the first number of images; 当显示所述第二界面时,所述第二数量的图片中大于或等于一半数量的图片的画幅方向为竖向画幅,所述第三布局为纵向布局;当显示所述第三界面时,所述第二数量的图片中小于一半数量的图片的画幅方向为竖向画幅,所述第四布局为横向布局;When the second interface is displayed, if more than half of the images in the second number of images are in a vertical orientation, the third layout is a vertical layout; when the third interface is displayed, if less than half of the images in the second number of images are in a vertical orientation, the fourth layout is a horizontal layout. 或者,or, 当显示所述第二界面时,所述第二数量的图片中小于一半数量的图片的画幅方向 为竖向画幅,所述第三布局为横向布局;当显示所述第三界面时,所述第二数量的图片中大于或等于一半数量的图片的画幅方向为竖向画幅,所述第四布局为纵向布局。When the second interface is displayed, the aspect ratio of less than half of the images in the second number of images is... The third layout is a horizontal layout, and the fourth layout is a vertical layout. When the third interface is displayed, the image orientation of more than or equal to half of the images in the second number of images is a vertical layout. 根据权利要求1-6任意一项所述的方法,其特征在于,所述第二界面和所述第三界面还包括第一区域;The method according to any one of claims 1-6, wherein the second interface and the third interface further include a first region; 所述第二界面的所述第一区域包括所述第一图片的副缩略图、所述第二图片的副缩略图和所述第三图片的副缩略图,所述第一图片的副缩略图、第二图片的副缩略图突出显示;The first area of the second interface includes a sub-thumbnail of the first image, a sub-thumbnail of the second image, and a sub-thumbnail of the third image, with the sub-thumbnail of the first image and the sub-thumbnail of the second image highlighted. 所述第三界面的所述第一区域包括所述第一图片的副缩略图和所述第三图片的副缩略图,不包括所述第二图片的副缩略图。The first area of the third interface includes a sub-thumbnail of the first image and a sub-thumbnail of the third image, but does not include a sub-thumbnail of the second image. 根据权利要求7所述的方法,其特征在于,所述第二界面的所述第一区域中,所述第三图片的副缩略图排序在所述第二图片的副缩略图之后。According to the method of claim 7, the sub-thumbnail of the third image is sorted after the sub-thumbnail of the second image in the first area of the second interface. 根据权利要求7所述的方法,其特征在于,所述第二界面的所述第一区域包括第二控件,所述方法还包括:According to the method of claim 7, the first area of the second interface includes a second control, and the method further includes: 响应于对所述第二控件的第三操作,显示第四界面,所述第四界面包括多张缩略图;In response to a third operation on the second control, a fourth interface is displayed, the fourth interface including multiple thumbnails; 在所述多张缩略图中第一数量的缩略图被选中,所述第一数量的缩略图包括所述第一缩略图、所述第二缩略图和所述第三缩略图。A first number of thumbnails is selected from the plurality of thumbnails, the first number of thumbnails including the first thumbnail, the second thumbnail and the third thumbnail. 根据权利要求7所述的方法,其特征在于,所述第二界面的所述第一区域包括第四图片的副缩略图,所述方法还包括:According to the method of claim 7, the first area of the second interface includes a sub-thumbnail of the fourth image, and the method further includes: 响应于对所述第四图片的副缩略图的第四操作,显示第五界面,所述第五界面包括所述第一图片、所述第二图片以及第四图片,所述第五界面的第一区域中所述第四图片的副缩略图突出显示。In response to a fourth operation on the sub-thumbnail of the fourth image, a fifth interface is displayed, the fifth interface including the first image, the second image, and the fourth image, wherein the sub-thumbnail of the fourth image is highlighted in a first area of the fifth interface. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method according to claim 10, characterized in that the method further comprises: 响应于对突出显示的所述第四图片的副缩略图的第四操作,显示所述第二界面,所述第二界面的第一区域中所述第四图片的副缩略图未突出显示。In response to a fourth operation on the sub-thumbnail of the highlighted fourth image, the second interface is displayed, wherein the sub-thumbnail of the fourth image is not highlighted in the first area of the second interface. 根据权利要求1-6任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, characterized in that the method further comprises: 响应于对所述第二界面中所述第一图片的第五操作,所述第一图片和所述第二图片被以相同比例放大显示。In response to the fifth operation on the first image in the second interface, the first image and the second image are enlarged and displayed at the same scale. 根据权利要求1所述的方法,其特征在于,当所述电子设备显示第一应用窗口和第二应用窗口时,所述第一应用窗口内以第五布局显示所述第二界面中的第一图片和第二图片,所述方法还包括:According to the method of claim 1, when the electronic device displays a first application window and a second application window, the first application window displays a first image and a second image from the second interface in a fifth layout, and the method further includes: 响应于对所述第二应用窗口的第六操作,关闭所述第二应用窗口并全屏显示第一应用窗口;全屏显示的第一应用窗口内,以第六布局显示所述第一图片和第二图片。In response to the sixth operation on the second application window, the second application window is closed and the first application window is displayed in full screen; within the full-screen first application window, the first image and the second image are displayed in the sixth layout. 根据权利要求1-13任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-13, characterized in that the method further comprises: 响应于对所述第二界面中第一图片的第七操作,所述第一图片被选中;In response to the seventh operation on the first image in the second interface, the first image is selected; 在所述第二界面中第一图片被选中之后,响应于对所述第一图片的第七操作,显示所述第一图片对应的悬浮图片;After the first image is selected in the second interface, in response to the seventh operation on the first image, the floating image corresponding to the first image is displayed; 响应于所述悬浮图片被拖动至预设热区,在第二区域显示至少一个应用的应用图标; In response to the floating image being dragged to a preset hot zone, an application icon of at least one application is displayed in the second area; 响应于所述悬浮图片被拖动至第一应用图标,向所述第一应用图标对应的应用发送所述第一图片。In response to the floating image being dragged to the first application icon, the first image is sent to the application corresponding to the first application icon. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method according to claim 14, characterized in that the method further comprises: 在所述第二界面中第一图片被选中之后,响应于对所述第二界面中第二图片的第七操作,显示所述第二图片对应的悬浮图片;After the first image is selected in the second interface, in response to the seventh operation on the second image in the second interface, the floating image corresponding to the second image is displayed; 响应于所述第二图片对应的悬浮图片被拖动至预设热区,在第二区域显示至少一个应用的应用图标;In response to the floating image corresponding to the second image being dragged to a preset hot zone, at least one application icon is displayed in the second area; 响应于所述第二图片对应的悬浮图片被拖动至第一应用图标,向所述第一应用图标对应的应用发送所述第二图片。In response to the floating image corresponding to the second image being dragged to the first application icon, the second image is sent to the application corresponding to the first application icon. 根据权利要求1-13任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-13, characterized in that the method further comprises: 响应于对所述第二界面中第一图片的第七操作,所述第一图片被选中并显示第三控件;In response to the seventh operation on the first image in the second interface, the first image is selected and the third control is displayed; 响应于对所述第二界面中第二图片的第八操作,所述第二图片被选中;In response to the eighth operation on the second image in the second interface, the second image is selected; 响应于对所述第三控件的第九操作,将所述第一图片和所述第二图片从所述电子设备删除。In response to a ninth operation on the third control, the first image and the second image are deleted from the electronic device. 根据权利要求16所述的方法,其特征在于,所述第一数量的缩略图包括第五缩略图和第六缩略图,所述方法还包括:The method according to claim 16, wherein the first number of thumbnails includes a fifth thumbnail and a sixth thumbnail, and the method further includes: 响应于对所述第三控件的第九操作,显示第六界面,所述第六界面包括第五图片和第六图片,所述第五图片是所述第五缩略图对应的图片,所述第六图片是所述第六缩略图对应的图片。In response to the ninth operation on the third control, a sixth interface is displayed, the sixth interface including a fifth image and a sixth image, the fifth image being the image corresponding to the fifth thumbnail, and the sixth image being the image corresponding to the sixth thumbnail. 根据权利要求1-17任意一项所述的方法,其特征在于,第一数量的缩略图对应第一数量的图片;The method according to any one of claims 1-17, wherein the first number of thumbnails corresponds to the first number of images; 所述第三图片在所述第一数量的图片中排序在基准图片之后第1个,所述基准图片为所述第一图片和所述第二图片中排序靠后的图片;或者,The third image is the first image in the first number of images, following the reference image, which is the later image in the sequence between the first and second images; or... 所述第三图片在所述第一数量的图片中排序在基准图片之前的最后1个,所述基准图片为所述第一图片和所述第二图片中排序靠后的图片,所述基准图片是所述第一数量的图片中排序最后的1个;或者,The third image is the last one in the first number of images, ordered before the reference image. The reference image is the image that appears later in the order between the first and second images, and is the last one in the first number of images; or... 所述第三图片是所述第一数量的图片中与所述第二图片的获取时间最接近的图片;或者,The third image is the image among the first number of images whose acquisition time is closest to that of the second image; or, 所述第三图片是所述第一数量的图片中与所述第二图片的图像相似度最高的图片。The third image is the image with the highest image similarity to the second image among the first number of images. 一种电子设备,其特征在于,包括存储器、处理器和显示屏;所述显示屏用于显示界面,所述存储器与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述处理器调用所述计算机指令以使得所述电子设备执行如权利要求1-18任意一项所述的方法。An electronic device, characterized in that it includes a memory, a processor, and a display screen; the display screen is used to display an interface, the memory is coupled to the processor, the memory is used to store computer program code, the computer program code including computer instructions, and the processor calls the computer instructions to cause the electronic device to perform the method as described in any one of claims 1-18. 一种计算机可读存储介质,其上存储有计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现权利要求1-18任意一项所述的方法。A computer-readable storage medium having a computer program/instructions stored thereon, characterized in that the computer program/instructions, when executed by a processor, implement the method described in any one of claims 1-18. 一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现权利要求1-18任意一项所述的方法。 A computer program product comprising a computer program/instructions, characterized in that, when executed by a processor, the computer program/instructions implement the method described in any one of claims 1-18.
PCT/CN2024/105364 2024-07-12 2024-07-12 Picture display method and electronic device Pending WO2026011465A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2024/105364 WO2026011465A1 (en) 2024-07-12 2024-07-12 Picture display method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2024/105364 WO2026011465A1 (en) 2024-07-12 2024-07-12 Picture display method and electronic device

Publications (1)

Publication Number Publication Date
WO2026011465A1 true WO2026011465A1 (en) 2026-01-15

Family

ID=98385732

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/105364 Pending WO2026011465A1 (en) 2024-07-12 2024-07-12 Picture display method and electronic device

Country Status (1)

Country Link
WO (1) WO2026011465A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731717A (en) * 2012-10-10 2014-04-16 华为终端有限公司 Multiple-image displaying method and device, home network system and mobile terminal
CN109429005A (en) * 2017-08-31 2019-03-05 中兴通讯股份有限公司 Image capturing method and device, terminal
CN109635143A (en) * 2018-12-24 2019-04-16 维沃移动通信有限公司 Image processing method and terminal device
CN110401766A (en) * 2019-05-22 2019-11-01 华为技术有限公司 A shooting method and terminal
CN112162814A (en) * 2020-09-27 2021-01-01 维沃移动通信有限公司 Image display method, device and electronic device
WO2023142731A1 (en) * 2022-01-27 2023-08-03 华为技术有限公司 Method for sharing multimedia file, sending end device, and receiving end device
CN117014543A (en) * 2022-04-27 2023-11-07 荣耀终端有限公司 Image display method and related device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731717A (en) * 2012-10-10 2014-04-16 华为终端有限公司 Multiple-image displaying method and device, home network system and mobile terminal
CN109429005A (en) * 2017-08-31 2019-03-05 中兴通讯股份有限公司 Image capturing method and device, terminal
CN109635143A (en) * 2018-12-24 2019-04-16 维沃移动通信有限公司 Image processing method and terminal device
CN110401766A (en) * 2019-05-22 2019-11-01 华为技术有限公司 A shooting method and terminal
CN112162814A (en) * 2020-09-27 2021-01-01 维沃移动通信有限公司 Image display method, device and electronic device
WO2023142731A1 (en) * 2022-01-27 2023-08-03 华为技术有限公司 Method for sharing multimedia file, sending end device, and receiving end device
CN117014543A (en) * 2022-04-27 2023-11-07 荣耀终端有限公司 Image display method and related device

Similar Documents

Publication Publication Date Title
US12360435B2 (en) Mobile zoom using multiple prime cameras
US8964091B2 (en) Digital device and method for controlling the same
CN104284064B (en) Method and apparatus for preview twin-lens image
CN109862267B (en) Shooting method and terminal equipment
CN103729055B (en) Multi-display equipment, input pen, more display control methods and multidisplay system
US10628010B2 (en) Quick review of captured image data
CN109683761B (en) Content collection method, device and storage medium
US20100058254A1 (en) Information Processing Apparatus and Information Processing Method
JP2011210138A (en) Electronic apparatus, image output method and program
CN106998428A (en) The image pickup method and mobile terminal of a kind of mobile terminal
CN110069181B (en) File processing method, device, equipment and storage medium crossing folders
CN109471692B (en) A display control method and terminal device
JP2015041271A (en) Information processor, storage medium and control method
CN111597370B (en) A shooting method and electronic device
CN113079316B (en) Image processing method, image processing device and electronic equipment
WO2021115479A1 (en) Display control method and electronic device
WO2024007703A1 (en) Display method for task display area, window display method, and electronic device
WO2022257655A1 (en) Video photographing method and electronic device
CN107888723A (en) Method and device for image taking and processing
US8803919B2 (en) Display apparatus and image display method thereof
WO2026011465A1 (en) Picture display method and electronic device
CN111752464A (en) Response method, device and storage medium for gesture operation
CN112689822A (en) Mirror image display method, flexible display device and computer readable storage medium
CN118689570A (en) A screen splitting method and related device
CN116700574A (en) Image display method, device, electronic device and readable storage medium