Multi-window screenshot method and related devices

By saving the complete display interface image and displaying controls after a screenshot operation, allowing users to reselect the screenshot window, the problem of not being able to re-capture other windows in existing technologies is solved, thus improving the user experience.

CN119987909BActive Publication Date: 2026-01-23HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410095023.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-11-03
Filing Date
2024-01-22
Publication Date
2026-01-23
Estimated Expiration
2044-01-22

AI Technical Summary

Technical Problem

In existing technologies, the gallery only stores screenshots of a single window, preventing users from taking screenshots of other windows, resulting in a poor user experience.

Method used

After the user completes the screenshot operation, the electronic device simultaneously saves the complete display interface image and displays controls in the screenshot image, allowing the user to choose to re-capture other windows.

Benefits of technology

The screenshot function has been made more flexible, meeting users' needs for re-taking screenshots and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987909B_ABST
    Figure CN119987909B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a kind of multi-window screen capture method and related equipment, the method comprises: in response to the screen capture operation of display interface including multiple windows, determine the window corresponding to screen capture operation;First screen capture control is displayed based on the window corresponding to screen capture operation;In response to the trigger operation of user to first screen capture control, the window corresponding to screen capture operation is saved as first screen capture image;The screen capture image of display interface is saved;In response to the viewing operation of user to first screen capture image, second screen capture control is displayed;In response to the trigger operation of user to the previous sub-screen capture control of second screen capture control, the window corresponding to the triggered sub-screen capture control is saved as second screen capture image according to the saved display interface image.The embodiment of the present application saves display interface image when user completes the screen capture operation of single window, and it is convenient for user to screen capture other windows.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a multi-window screenshot method and related equipment. Background Technology

[0002] Smartphones, tablets, and other terminal devices all have screenshot functions, which allow users to quickly capture images of the device's displayed interface. For example, a full-screen image can be captured, or an image of a single window can be captured when multiple windows are displayed. These screenshots can then be stored in a gallery for the user to view. However, after capturing a single window, a user may need to capture other windows as well. However, the gallery only stores screenshots of those single windows, and the content of the displayed interface is usually dynamic. Users cannot easily capture other windows again, or the process of re-capturing is cumbersome. Therefore, the screenshot function in current technology cannot meet the user's need for repeated captures, thus impacting the user experience. Summary of the Invention

[0003] In view of the above, it is necessary to provide a multi-window screenshot method and related equipment to solve the problem that the above-mentioned image library only stores the screenshot image corresponding to a single window, which makes it impossible for users to take screenshots of other windows again.

[0004] In a first aspect, this application provides a multi-window screenshot method applied to an electronic device. The method includes: responding to a screenshot operation on a display interface comprising multiple windows, determining the window corresponding to the screenshot operation; displaying a first screenshot control based on the window corresponding to the screenshot operation; responding to a user's trigger operation on the first screenshot control, saving the window corresponding to the screenshot operation as a first screenshot image; saving the screenshot image of the display interface; responding to a user's viewing operation on the first screenshot image, displaying a second screenshot control on the display interface of the first screenshot image, the second screenshot control comprising multiple sub-screenshot controls, each sub-screenshot control of the second screenshot control corresponding to each window on the display interface when the screenshot operation is performed; responding to a user's trigger operation on a sub-screenshot control of the second screenshot control, saving the window corresponding to the triggered sub-screenshot control as a second screenshot image based on the saved screenshot image of the display interface.

[0005] The above technical solution saves the complete display image after the user completes the screenshot operation. When the user views the screenshot, corresponding controls are displayed for the user to operate and select the screenshot window again, thus meeting the user's need to take a screenshot again and improving the flexibility of the screenshot function.

[0006] In one possible implementation, the multiple windows include multiple split-screen interfaces and / or floating windows, displaying the interfaces of multiple applications.

[0007] Through the above technical solution, the display interface of the electronic device adopts a multi-window approach to simultaneously display the interfaces of multiple applications, which facilitates user interaction with the applications.

[0008] In one possible implementation, the method further includes: if no triggering operation on the first screenshot control is detected, saving the display interface as the first screenshot image; in response to the user's viewing operation on the first screenshot image, displaying a second screenshot control on the display interface of the first screenshot image; in response to the user's triggering operation on a sub-screenshot control above the second screenshot control, saving the window corresponding to the triggered sub-screenshot control as the second screenshot image according to the saved display interface image.

[0009] The above technical solution automatically takes a screenshot of the display interface when the user does not trigger the first screenshot control. The user can then edit the screenshot to obtain the desired image.

[0010] In one possible implementation, the method further includes: when the display screen receives a user's touch operation, if the touch operation is a preset touch operation, determining that the touch operation is a screenshot operation; or if the touch operation is not the preset touch operation, determining that the touch operation is not the screenshot operation.

[0011] The above technical solution can accurately determine whether a user's touch operation is a screenshot operation, thereby determining whether the user has a screenshot requirement.

[0012] In one possible implementation, the preset touch operation is a knuckle touch operation, a click on an icon that provides a screenshot function, or a preset physical button operation.

[0013] The above technical solutions can provide a variety of screenshot operations, making it convenient for users to take screenshots.

[0014] In one possible implementation, determining the window corresponding to the screenshot operation includes: if the coordinates of the touch point corresponding to the screenshot operation fall within the display coordinate range of any window on the display interface, determining the window corresponding to the display coordinate range into which the touch point coordinates fall as the window corresponding to the screenshot operation.

[0015] The above technical solution can accurately determine the window to be captured based on the screenshot operation.

[0016] In one possible implementation, the first screenshot control displays a preset prompt to prompt the user to take a screenshot of the window corresponding to the screenshot operation.

[0017] The above technical solution allows users to easily identify the window to be captured and thus determine whether to take a screenshot.

[0018] In one possible implementation, the step of responding to a user's trigger operation on the first screenshot control and saving the window corresponding to the screenshot operation as a first screenshot image includes: if a user's trigger operation on the first screenshot control is received within a preset time, responding to the user's trigger operation on the first screenshot control, saving the window corresponding to the screenshot operation as a first screenshot image, and storing the first screenshot image in the gallery application.

[0019] By using the above technical solution, the time when the user triggers the first screenshot control is limited to a preset time, which can improve screenshot efficiency and avoid being in a state of waiting for screenshot for a long time.

[0020] In one possible implementation, the method further includes: responding to a user's trigger operation on the first screenshot control, displaying a preview image of the window corresponding to the screenshot operation; and responding to a user's confirmation operation on the preview image, saving the preview image as the first screenshot image.

[0021] The above technical solution displays a preview image of the corresponding window after the user performs a screenshot operation, allowing the user to preview the screenshot and confirm it.

[0022] Secondly, embodiments of this application provide a multi-window screenshot method applied to an electronic device. The method includes: responding to a screenshot operation on a display interface including multiple windows, displaying a first screenshot control, the first screenshot control including multiple sub-screenshot controls, each sub-screenshot control corresponding to a window; responding to a user's trigger operation on a sub-screenshot control of the first screenshot control, saving the window corresponding to the triggered sub-screenshot control as a first screenshot image; saving the screenshot image of the display interface; responding to a user's viewing operation on the first screenshot image, displaying a second screenshot control on the display interface of the first screenshot image, the second screenshot control including multiple sub-screenshot controls, each sub-screenshot control of the second screenshot control corresponding to each window on the display interface when the screenshot operation is performed; responding to a user's trigger operation on a sub-screenshot control of the second screenshot control, saving the window corresponding to the triggered sub-screenshot control of the second screenshot control as a second screenshot image based on the saved screenshot image of the display interface.

[0023] The above technical solution detects a user's screenshot action, displaying a screenshot control that includes sub-screenshot controls for each window. When the user triggers a sub-screenshot control, the corresponding window is captured, thus improving screenshot efficiency. Simultaneously, the complete displayed interface image is saved, allowing the user to view the screenshot and interact with the corresponding controls to reselect the screenshot window, satisfying the user's need for repeated screenshots and enhancing the flexibility of the screenshot function.

[0024] In one possible implementation, the method further includes: if no triggering operation on the screenshot control is detected, saving the display interface as the first screenshot image; in response to the user's viewing operation on the first screenshot image, displaying a second screenshot control on the display interface of the first screenshot image; and in response to the user's triggering operation on a child screenshot control on the second screenshot control, saving the window corresponding to the triggered child screenshot control on the second screenshot control as the second screenshot image according to the saved display interface image.

[0025] The above technical solution automatically takes a screenshot of the displayed interface when the user does not trigger the screenshot control. The user can then edit the screenshot to obtain the desired image.

[0026] In one possible implementation, the step of responding to a user's triggering operation on a child screenshot control above the first screenshot control and saving the window corresponding to the triggered child screenshot control as a first screenshot image includes: responding to a user's triggering operation on a child screenshot control above the first screenshot control and displaying a preview image of the window corresponding to the triggered child screenshot control; and responding to a user's confirmation operation on the preview image and saving the preview image as the first screenshot image.

[0027] The above technical solution displays a preview image of the window corresponding to the triggered sub-screenshot control after the user performs a screenshot operation, allowing the user to preview the screenshot image and confirm it.

[0028] In one possible implementation, the screenshot operation is a knuckle touch operation, a physical button triggering operation, or a virtual button triggering operation performed on the display screen of the electronic device.

[0029] The above technical solutions can provide a variety of screenshot operations, making it convenient for users to take screenshots.

[0030] In one possible implementation, the method further includes: drawing and displaying a plurality of screenshot controls that correspond one-to-one with the plurality of windows and the display interface, based on the layout of the plurality of windows in the display interface.

[0031] Using the above technical solution, users can quickly trigger the screenshot control corresponding to the window they want to screenshot based on the layout of the screenshot control, effectively improving screenshot efficiency.

[0032] In one possible implementation, the method further includes: responding to a screenshot operation on a display interface comprising multiple windows, determining whether the screenshot operation is a normal screenshot operation or a scrolling screenshot operation; if the screenshot operation is a scrolling screenshot operation, displaying a third screenshot control, the third screenshot control comprising multiple sub-screenshot controls, each sub-screenshot control corresponding to a window; responding to a user's triggering operation on a sub-screenshot control of the third screenshot control, performing a scrolling screenshot of the window corresponding to the triggered sub-screenshot control, and saving the scrolling screenshot image as the third screenshot image.

[0033] The above technical solution can respond to the user's scrolling screenshot operation and perform scrolling screenshot of the display interface window, thus enriching the screenshot function of electronic devices.

[0034] In one possible implementation, determining whether a screenshot operation is a normal screenshot operation or a scrolling screenshot operation includes: determining whether the movement trajectory of the screenshot operation is a preset trajectory; if the movement trajectory of the screenshot operation is a preset trajectory, determining that the screenshot operation is a scrolling screenshot operation; or if the movement trajectory of the screenshot operation is not a preset trajectory, determining that the screenshot operation is not a scrolling screenshot operation.

[0035] The above technical solution can accurately determine whether a screenshot operation is a scrolling screenshot operation or a normal screenshot operation.

[0036] In one possible implementation, the step of performing a scrolling screenshot on the window corresponding to the triggered screenshot control includes: controlling the window corresponding to the triggered screenshot control to scroll along a preset direction; taking a screenshot of the display area after each scrolling to obtain multiple sub-screenshot images; and combining the multiple sub-screenshot images into a scrolling screenshot image.

[0037] The above technical solution allows for simultaneous screenshotting of the window during its scrolling display, resulting in multiple screenshot images. These multiple screenshot images are then combined into a final scrolling screenshot image, effectively improving the efficiency of scrolling screenshots.

[0038] In one possible implementation, the method further includes: responding to a screenshot operation on a display interface comprising multiple windows, displaying the first screenshot control and the scrolling screenshot control; determining whether a user trigger operation is received on a child screenshot control above the first screenshot control, and determining whether a user trigger operation is received on the scrolling screenshot control; if a user trigger operation is received on a child screenshot control above the first screenshot control, and a user trigger operation is received on the scrolling screenshot control, performing a scrolling screenshot on the window corresponding to the triggered child screenshot control, and saving the scrolling screenshot image as a third screenshot image.

[0039] The above technical solution can respond to the user's scrolling screenshot operation and perform scrolling screenshot of the display interface window, thus enriching the screenshot function of electronic devices.

[0040] Thirdly, this application provides an electronic device, which includes a memory and a processor: wherein the memory is used to store program instructions; the processor is used to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, the electronic device performs the above-described multi-window screenshot method.

[0041] Fourthly, this application provides a chip coupled to a memory in an electronic device, the chip being used to control the processor of the electronic device to execute the above-described multi-window screenshot method.

[0042] Fifthly, this application provides a computer storage medium storing program instructions that, when executed on an electronic device, cause the processor of the electronic device to perform the aforementioned multi-window screenshot method.

[0043] Furthermore, the technical effects brought about by the third to fifth aspects can be found in the descriptions of the methods in the above-mentioned method section, and will not be repeated here. Attached Figure Description

[0044] Figure 1 This is a first schematic diagram of a multi-window scenario of an electronic device provided in an embodiment of this application.

[0045] Figure 2 This is a second schematic diagram of a multi-window scenario of an electronic device provided in an embodiment of this application.

[0046] Figure 3 This is a third schematic diagram of a multi-window scenario of an electronic device provided in an embodiment of this application.

[0047] Figure 4 This is a software architecture diagram of an electronic device provided in an embodiment of this application.

[0048] Figure 5 This is a flowchart of a multi-window screenshot method provided in an embodiment of this application.

[0049] Figure 6 This is a schematic diagram of the display interface of an electronic device provided in an embodiment of this application.

[0050] Figure 7 This is a schematic diagram of the gallery application interface of an electronic device provided in an embodiment of this application.

[0051] Figure 8 This is a schematic diagram of another gallery application interface of an electronic device provided in one embodiment of this application.

[0052] Figure 9 This is a schematic diagram of another display interface of an electronic device provided in one embodiment of this application.

[0053] Figure 10 This is a flowchart of a multi-window screenshot method provided in another embodiment of this application.

[0054] Figure 11 This is a schematic diagram of another display interface of an electronic device provided in one embodiment of this application.

[0055] Figure 12 This is a schematic diagram of another display interface of an electronic device provided in one embodiment of this application.

[0056] Figure 13 This is a schematic diagram of another display interface of an electronic device provided in one embodiment of this application.

[0057] Figure 14 This is a schematic diagram of another display interface of an electronic device provided in one embodiment of this application.

[0058] Figure 15 This is a schematic diagram of another display interface of an electronic device provided in one embodiment of this application.

[0059] Figure 16 This is a schematic diagram of another display interface of an electronic device provided in one embodiment of this application.

[0060] Figure 17 This is a schematic diagram of the interface during a full-screen scrolling screenshot provided in one embodiment of this application.

[0061] Figure 18 This is a schematic diagram of the interface during a split-screen scrolling screenshot provided in one embodiment of this application.

[0062] Figure 19 This is a schematic diagram of a scrolling screenshot editing interface provided in an embodiment of this application.

[0063] Figure 20This is a schematic diagram of another scrolling screenshot editing interface provided in one embodiment of this application.

[0064] Figure 21 This is a schematic diagram of another display interface of an electronic device provided in one embodiment of this application.

[0065] Figure 22 This is a hardware architecture diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0066] In one embodiment of this application, the terms "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 indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in one embodiment of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0067] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used in this application's specification is for the purpose of describing particular embodiments only and is not intended to limit the application. It should be understood that, unless otherwise stated, " / " in this application means "or". For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. "At least one" refers to one or more. "More than one" refers to two or more. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, and a, b, and c. Where there is no conflict, the following embodiments and features described herein can be combined with each other.

[0068] Smartphones, tablets, and other terminal devices all have screenshot functions, which allow users to quickly capture images of the device's displayed interface. For example, a full-screen image can be captured, or an image of a single window can be captured when multiple windows are displayed. These screenshots can be stored in a gallery for users to view. However, after capturing a single window, a user may need to capture other windows. However, the gallery only stores screenshots of those single windows, and the content of the displayed interface is usually dynamic. Users cannot recapture other windows in the same window at the time of the initial screenshot, or recapturing other windows is cumbersome. Therefore, the screenshot function in this technology cannot meet users' needs for recapturing, thus affecting the user experience.

[0069] See Figure 1 The diagram shown is a first schematic diagram of a multi-window scenario for an electronic device according to an embodiment of this application. Figure 1 In the middle, the multi-window configuration includes a display interface 1a and a floating window 1b. (See also...) Figure 2 The diagram shown is a second schematic representation of a multi-window scenario in an electronic device according to an embodiment of this application. Figure 2 In this context, a multi-window application includes multiple split-screen interfaces that display the interfaces of multiple applications. For example, a multi-window application includes a split-screen interface 2a corresponding to application A and a split-screen interface 2b corresponding to application B. Figure 2 When applied to single-screen electronic devices, multiple split-screen interfaces are displayed on the same display screen; Figure 2 When applied to multi-screen electronic devices, such as foldable screen electronic devices, the foldable screen electronic devices include inner and outer screens. The inner screen is a foldable display screen, and the outer screen is a non-foldable display screen. Multiple split-screen interfaces can be displayed on the inner screen and the outer screen respectively, or they can be displayed on the foldable inner screen.

[0070] See Figure 3 The diagram shown is a third schematic representation of a multi-window scenario in an electronic device according to an embodiment of this application. Figure 3 In this context, multiple windows include floating windows and multiple split-screen interfaces. For example, multiple windows include split-screen interface 3a corresponding to application A, split-screen interface 3b corresponding to application B, and floating window 3c.

[0071] Figure 2 and Figure 3 The multi-window scenario shown is just a simple example; in actual applications, it is not limited to the content illustrated. For example, for Figure 2 and Figure 3 The split-screen interface shown can be further subdivided into more split-screen interfaces, for example, ... Figure 3 The split-screen interface 3a is divided into two screens to display more applications, enabling data interaction or synchronous operation between multiple applications.

[0072] In multi-window display scenarios on electronic devices, after a user takes a screenshot of a single window, the corresponding screenshot image is stored in the gallery for viewing or subsequent editing, sharing, and other processing. Users may accidentally capture an unwanted window image, or want to capture screenshots of other windows within the previously captured window. Therefore, there may be a need to capture other windows. However, the gallery only stores screenshots of a single window, and the content of the displayed interface is usually dynamically changing. The current displayed interface content differs from the content of the previously captured window, preventing users from re-capturing other windows from the previous capture process. Thus, the screenshot function in related technologies cannot meet the user's need to re-capture.

[0073] For example, in Figure 3 In the multi-window scenario shown, when a user takes a screenshot of split-screen interface 3a, the corresponding screenshot image is stored in the gallery. If the user subsequently wants to take a screenshot of split-screen interface 3b from the previously captured interface, the content displayed on split-screen interface 3b will be different from the content displayed in the previous screenshot. For example, if split-screen interface 3b is displaying a live video, the content displayed is dynamically changing and cannot be replayed. Therefore, the user cannot retake a screenshot of split-screen interface 3b from the previous screenshot.

[0074] To meet users' needs for taking screenshots again, this application provides a multi-window screenshot method. In a multi-window scenario, after a user completes the screenshot operation of a single window, the complete display interface image is saved at the same time. When the user views the screenshot image of a single window, a screenshot control is displayed for the user to take screenshots of other windows, making it convenient for the user to take screenshots of other windows again, effectively optimizing the user experience.

[0075] See Figure 4 The diagram shown is a software architecture diagram of an electronic device provided in an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. For example, the Android system, from top to bottom, consists of the application layer 101, framework layer 102, Android runtime and system libraries 103, hardware abstraction layer 104, kernel layer 105, and hardware layer 106.

[0076] Application layer 101 may include a series of application packages. For example, application packages may include applications such as camera, gallery, calendar, calling, map, navigation, WLAN, Bluetooth, music, video, SMS, device control services, etc.

[0077] The framework layer 102 provides an Application Programming Interface (API) and programming framework for applications in the application layer. The application framework layer includes predefined functions. For example, it may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0078] The window manager manages window programs. It can obtain screen size, determine the presence of a status bar, lock the screen, and capture screenshots. The content provider stores and retrieves data, making it accessible to applications. This data can include videos, images, audio, made and received calls, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon can include views for displaying text and views for displaying images. The phone manager provides communication functionality for electronic devices, such as managing call status (including connection and disconnection). The resource manager provides applications with various resources, such as localized strings, icons, images, layout files, and video files. The notification manager allows applications to display notifications in the status bar, conveying informational messages that disappear automatically after a short pause without user interaction. For example, the notification manager is used to notify of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, causing electronic devices to vibrate, and flashing indicator lights.

[0079] The Android Runtime consists of the core libraries and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core libraries consist of two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core Android libraries.

[0080] Application layer 101 and framework layer 102 run in a virtual machine. The virtual machine executes the Java files of the application layer and framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0081] System library 103 may include multiple functional modules. For example, a surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0082] The Surface Manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The Media Library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D Graphics Processing Library implements 3D graphics drawing, image rendering, compositing, and layer processing. The 2D Graphics Engine is the drawing engine for 2D graphics.

[0083] Hardware Abstraction Layer 104 runs in user space, encapsulates kernel-level drivers, and provides calling interfaces to the upper layers.

[0084] Kernel layer 105 is the layer between hardware and software. Kernel layer 105 contains at least the display driver, touch driver, audio driver, and sensor driver.

[0085] The kernel layer (105) is the core of the operating system for electronic devices. It is the first layer of software extension based on the hardware, providing the most basic functions of the operating system. It is the foundation for the operation of the operating system, responsible for managing system processes, memory, device drivers, files, and network systems, and determining the system's performance and stability. For example, the kernel layer can determine the timing of an application's operation on a certain part of the hardware.

[0086] Kernel layer 105 includes hardware-dependent programs such as interrupt handlers and device drivers, as well as basic, common, and frequently running modules such as clock management and process scheduling modules, and critical data structures. The kernel layer can be located within the processor or embedded in internal memory.

[0087] Hardware layer 106 includes the hardware of electronic devices, such as displays, buttons, cameras, etc.

[0088] For a detailed description of the multi-window screenshot method, please refer to the descriptions in the various embodiments below.

[0089] See Figure 5 The diagram shown is a flowchart of a multi-window screenshot method provided in an embodiment of this application. The method is applied in an electronic device, and the multi-window screenshot method includes:

[0090] S101, respond to a screenshot operation on a display interface that includes multiple windows, and determine the window corresponding to the screenshot operation.

[0091] In one embodiment of this application, a user's touch operation on the display screen is received, and it is determined whether the touch operation is a screenshot operation on the display interface. If the touch operation is a screenshot operation on the display interface, the window corresponding to the screenshot operation is determined.

[0092] In one embodiment of this application, the display screen of the electronic device is a touch display screen. When the display screen receives a user's touch operation, it determines whether the touch operation is a preset touch operation. If the touch operation is a preset touch operation, it is determined that the touch operation is a screenshot operation of the display interface; if the touch operation is not a preset touch operation, it is determined that the touch operation is not a screenshot operation of the display interface. For example, the preset touch operation can be a knuckle touch operation, clicking an icon or control that provides a screenshot function, or a preset physical button operation. The actual application is not limited to the above examples. For example, if the preset touch operation is a knuckle touch operation, when the display screen receives the touch operation, the electronic device inputs the touch data corresponding to the touch operation into the knuckle model. The knuckle model identifies whether the touch operation is a knuckle touch operation based on the touch data.

[0093] In one embodiment of this application, the touch data of the touch operation includes the coordinates of the touch point on the display screen. Each window on the display interface has a display coordinate range on the display screen. If the touch operation is a screenshot operation of the display interface, it is determined whether the coordinates of the touch point corresponding to the touch operation fall within the display coordinate range of any window on the display interface. If the coordinates of the touch point corresponding to the touch operation fall within the display coordinate range of any window on the display interface, the window corresponding to the display coordinate range into which the touch point coordinates fall is determined as the window corresponding to the screenshot operation.

[0094] For example, see Figure 6 The diagram shown is a schematic representation of the display interface of an electronic device according to an embodiment of this application. The display interface 10 includes a split-screen window 11 and a split-screen window 12. The split-screen window 11 can be the interface of application A, and the split-screen window 12 can be the interface of application B. If the coordinates of the touch point corresponding to the touch operation fall within the display coordinate range of the split-screen window 11, the window corresponding to the screenshot operation is determined to be the split-screen window 11.

[0095] S102, based on the window corresponding to the screenshot operation, display the first screenshot control.

[0096] In one embodiment of this application, after determining the window corresponding to the screenshot operation, a first screenshot control is displayed. The first screenshot control is used to prompt the user to take a screenshot of the window corresponding to the screenshot operation. A preset prompt can be displayed on the first screenshot control to prompt the user to take a screenshot of the window corresponding to the screenshot operation. The preset prompt may include the position of the window to be screenshotted. For example, if the window corresponding to the screenshot operation is a split-screen window on the left (e.g., ...), ... Figure 6 The split-screen window 11 shown in the image has a preset prompt message that says "Save the left split screen", or the preset prompt message includes the application name corresponding to the window to be captured, for example, the preset prompt message says "Save the interface of application A".

[0097] S103, determine whether a user trigger operation on the first screenshot control has been received (e.g., clicking the first screenshot control). If a user trigger operation on the first screenshot control has been received, execute S104-S107; if no user trigger operation on the first screenshot control has been received, execute S108-S110.

[0098] In one embodiment of this application, it is determined whether the display screen receives a user's trigger operation on the first screenshot control within a preset time. If the display screen receives the user's trigger operation on the first screenshot control within the preset time, step S104 is executed; if the display screen does not receive the user's trigger operation on the first screenshot control within the preset time, step S105 is executed. The preset time can be 10 seconds, 15 seconds, 20 seconds, or other times.

[0099] S104, responding to the user's trigger operation on the first screenshot control, saves the window corresponding to the screenshot operation as the first screenshot image.

[0100] In one embodiment of this application, if a user triggers a screenshot control within a preset time, the system responds to the user's triggering of the first screenshot control by saving the window corresponding to the screenshot operation as a first screenshot image and storing the first screenshot image in the gallery application.

[0101] S105, save the screenshot of the displayed interface.

[0102] In one embodiment of this application, after saving the window corresponding to the screenshot operation as the first screenshot image, a screenshot image of the complete display interface is saved, for example, to the memory of the electronic device.

[0103] S106, in response to the user's viewing operation of the first screenshot image, a second screenshot control is displayed on the display interface of the first screenshot image. The second screenshot control includes multiple sub-screenshot controls, and each sub-screenshot control of the second screenshot control corresponds to each window on the display interface when the screenshot operation is performed.

[0104] In one embodiment of this application, after saving the window corresponding to the screenshot operation as a first screenshot image and storing it in the gallery application, the system responds to the user's viewing operation of the first screenshot image, displays the first screenshot image, and displays a second screenshot control on the display interface of the first screenshot image.

[0105] In another embodiment of this application, after obtaining the first screenshot image, the first screenshot image can be displayed in the form of a pop-up window. For example, a thumbnail or small image of the first screenshot image can be displayed at a preset position (e.g., the lower right corner, upper left corner, etc.) on the current display interface of the electronic device. The user can click on the image in the pop-up window to display the first screenshot image on the display interface. Then, a second screenshot control is displayed on the first screenshot image. According to the number of windows displayed on the interface when the user performs the screenshot operation, a sub-screenshot control corresponding to each window is displayed on the second screenshot control. The user can trigger the sub-screenshot control to reselect the corresponding screenshot window.

[0106] In another embodiment of this application, the user can directly view the first screenshot image in a gallery application. For example, see [link to relevant documentation]. Figure 7 As shown, the first screenshot is displayed as a thumbnail in the Gallery app interface. See also Figure 8 As shown, when a user selects a first screenshot image to view in the gallery application, the electronic device displays the first screenshot image and a second screenshot control 20 is displayed on the display interface of the first screenshot image. The second screenshot control 20 includes a first sub-screenshot control 21, a second sub-screenshot control 22, and a third sub-screenshot control 23. The first sub-screenshot control 21 is correspondingly obtained... Figure 6 The first sub-screenshot control captures a complete screenshot of the display interface 10. The second sub-screenshot control 22 captures a screenshot of the split-screen window 11, and the third sub-screenshot control 23 captures a screenshot of the split-screen window 12. Since the screenshot of the split-screen window 11 was saved previously, the second sub-screenshot control 22 is selected.

[0107] S107, responding to the user's trigger operation on the child screenshot control above the second screenshot control, save the window corresponding to the triggered child screenshot control as the second screenshot image based on the saved screenshot image of the display interface.

[0108] In one embodiment of this application, combined with Figure 6 and Figure 8 To clarify, if the user triggers the first child screenshot control 21, it will... Figure 6 The complete display interface 10 is saved as a second screenshot image; if the user triggers the second sub-screenshot control 22, it will... Figure 6 The split-screen window 11 is saved as the second screenshot image; if the user triggers the third sub-screenshot control 23, it will... Figure 6 Save the split-screen window 12 in the middle as the second screenshot image.

[0109] In one embodiment of this application, the second screenshot image can be saved by replacing the first screenshot image with the second screenshot image. That is, after saving the window corresponding to the triggered child screenshot control as the second screenshot image, the first screenshot image is deleted, thereby replacing the first screenshot image with the second screenshot image. In other embodiments of this application, the second screenshot image can also be saved as a different image. That is, after saving the window corresponding to the triggered child screenshot control as the second screenshot image, the first screenshot image is not deleted.

[0110] S108, save the display interface as the first screenshot image.

[0111] In one embodiment of this application, if no user trigger operation on the first screenshot control is received within a preset time, it is determined that no trigger operation on the first screenshot control has been detected. The image of the complete display interface captured by the electronic device is saved as the first screenshot image, and the first screenshot image is stored in the gallery application.

[0112] S109, in response to the user's viewing operation of the first screenshot image, a second screenshot control is displayed on the display interface of the first screenshot image. The second screenshot control includes multiple sub-screenshot controls, and each sub-screenshot control of the second screenshot control corresponds to each window on the display interface when the screenshot operation is performed.

[0113] S110, responding to the user's trigger operation on the child screenshot control above the second screenshot control, saves the window corresponding to the triggered child screenshot control as the second screenshot image based on the saved screenshot image of the display interface.

[0114] The specific implementation methods of S109 and S110 are the same as those of S106 to S107, and will not be described in detail here.

[0115] Through the above embodiments of this application, after the user completes the screenshot operation, the complete display interface image is saved at the same time, so that when the user views the screenshot image, the corresponding controls can be displayed for the user to operate, so as to reselect the screenshot window, satisfy the user's need to take a screenshot again, thereby improving the flexibility of the screenshot function.

[0116] In another embodiment of this application, S104 can be replaced by: responding to the user's trigger operation on the first screenshot control, displaying a preview image of the window corresponding to the screenshot operation; responding to the user's confirmation operation on the preview image, saving the preview image as the first screenshot image.

[0117] In another embodiment of this application, such as Figure 6 As shown, while displaying the first screenshot control, a preview image of the complete display interface is displayed on the display interface (e.g., below the first screenshot control). See [link / reference]. Figure 9As shown, after the user triggers the first screenshot control, a preview image of the window corresponding to the screenshot operation is displayed on the screen. If the user triggers the first screenshot control within a preset time, the system responds by displaying a preview image of the window corresponding to the screenshot operation.

[0118] In another embodiment of this application, it is detected whether the user clicks on the preview image. If the user clicks on the preview image, it is determined that the user's confirmation operation on the preview image has been received, the preview image is saved as a first screenshot image, and the first screenshot image is stored in the gallery application. Alternatively, a confirmation save control can be set. If the user triggers the confirmation save control, the electronic device saves the preview image. Alternatively, if no user operation is detected within a certain period of time, the preview image is saved as the first screenshot image.

[0119] Through the above embodiments of this application, after the user performs a screenshot operation, a preview image of the window corresponding to the screenshot operation is displayed, allowing the user to preview the screenshot image and confirm it.

[0120] See Figure 10 The diagram shown is a flowchart of a multi-window screenshot method provided in another embodiment of this application. The method is applied in an electronic device, and the multi-window screenshot method includes:

[0121] S301, in response to a screenshot operation on a display interface including multiple windows, a third screenshot control is displayed, the third screenshot control including multiple sub-screenshot controls, each sub-screenshot control of the third screenshot control corresponding to a window.

[0122] In one embodiment of this application, the screenshot operation includes, but is not limited to: knuckle touch operation performed on the display screen, operation of triggering a physical button, and operation of triggering a virtual button. The knuckle touch operation is as described in the above embodiments; the operation of triggering a physical button can be an operation of triggering a combination key, which may include a power button and volume control keys; the virtual button may be an icon displayed in the user interface, which is a control in the control center of the electronic device used to trigger the screenshot function.

[0123] In one embodiment of this application, a third screenshot control is drawn and displayed, comprising multiple sub-screenshot controls corresponding one-to-one with the multiple windows and the display interface, based on the layout of multiple windows in the display interface. For example, see [link to relevant documentation]. Figure 11As shown, the multiple windows in the display interface 30 include a first window 31, a second window 32, and a third window 33. The first window 31 is a full-screen window, the second window 32 is a floating window, and the third window 33 is a display interface window without a floating window. The third screenshot control 34 includes a sub-screenshot control 341 corresponding to the first window 31, a sub-screenshot control 342 corresponding to the second window 32, and a sub-screenshot control 343 corresponding to the third window 33.

[0124] For example, see Figure 12 As shown, the multiple windows in the display interface 40 include a first window 41, a second window 42, a third window 43, and a fourth window 44. The first window 41 is a full-screen window, the second window 42 is a split-screen window on the left excluding the floating window, the third window 43 is a split-screen window on the right including the floating window, and the fourth window 44 is a floating window that floats above the right-hand split-screen window. The third screenshot control 45 includes a sub-screenshot control 451 corresponding to the first window 41, a sub-screenshot control 452 corresponding to the second window 42, a sub-screenshot control 453 corresponding to the third window 43, and a sub-screenshot control 454 corresponding to the fourth window 44.

[0125] For example, see Figure 13 As shown, the multiple windows in the display interface 50 include a first window 51, a second window 52, ​​a third window 53, and a fourth window 54. The first window 51 is a full-screen window, the second window 52 is a split-screen window on the left (excluding the floating window), the third window 53 is a split-screen window on the right (excluding the floating window), and the fourth window 54 is a floating window positioned between the left and right split-screen windows. The third screenshot control 55 includes a sub-screenshot control 551 corresponding to the first window 51, a sub-screenshot control 552 corresponding to the second window 52, ​​a sub-screenshot control 553 corresponding to the third window 53, and a sub-screenshot control 554 corresponding to the fourth window 54.

[0126] For example, see Figure 14 As shown, the multiple windows in the display interface 60 include a first window 61, a second window 62, a third window 63, a fourth window 64, and a fifth window 65. The first window 61 is a full-screen window; the second window 62 is a split-screen window with a floating window on the left; the third window 63 is a split-screen window with a floating window on the right; the fourth window 64 is a floating window on the left; and the fifth window 65 is a floating window on the right. The two floating windows are respectively positioned above the left and right split-screen windows. The third screenshot control 66 includes a sub-screenshot control 661 corresponding to the first window 61, a sub-screenshot control 662 corresponding to the second window 62, a sub-screenshot control 663 corresponding to the third window 63, a sub-screenshot control 664 corresponding to the fourth window 64, and a sub-screenshot control 665 corresponding to the fifth window 65.

[0127] S302, determine whether a user trigger operation has been received on the child screenshot control above the third screenshot control. If a user trigger operation has been received on the child screenshot control above the third screenshot control, execute S303-S306; if no user trigger operation has been received on the child screenshot control above the third screenshot control, execute S307-S309.

[0128] S303, responding to the user's trigger operation on the child screenshot control above the third screenshot control, saves the window corresponding to the triggered child screenshot control as the third screenshot image.

[0129] In one embodiment of this application, in response to a user's triggering operation on any sub-screenshot control of the third screenshot control, the window corresponding to the triggered sub-screenshot control is saved as the third screenshot image, and the third screenshot image is stored in the gallery application.

[0130] In one embodiment of this application, during the process of a user triggering any sub-screenshot control on the third screenshot control, when the user touches a sub-screenshot control, a preview image of the complete display interface is displayed. In the preview image of the complete display interface, the display brightness of the window corresponding to the touched sub-screenshot control is higher than the display brightness of other windows, thereby highlighting the window to be screenshotted for the user to confirm. Then, when the user no longer touches the sub-screenshot control, a preview image of the window corresponding to the touched sub-screenshot control is displayed as a preview image of the screenshot image.

[0131] S304 saves a screenshot of the displayed interface.

[0132] S305, in response to the user's viewing operation of the third screenshot image, displays a fourth screenshot control on the display interface of the third screenshot image. The fourth screenshot control includes multiple sub-screenshot controls, and each sub-screenshot control of the fourth screenshot control corresponds to each window on the display interface when the screenshot operation is performed.

[0133] S306, responding to the user's trigger operation on the child screenshot control above the fourth screenshot control, saves the window corresponding to the triggered child screenshot control as the fourth screenshot image based on the saved screenshot image of the display interface.

[0134] S307, save the display interface as a third screenshot image.

[0135] In one embodiment of this application, if no user trigger operation on the sub-screenshot control of the third screenshot control is received within a preset time, it is determined that no trigger operation on the sub-screenshot control of the third screenshot control has been detected. The image of the complete display interface captured by the electronic device is saved as the third screenshot image, and the third screenshot image is stored in the gallery application.

[0136] S308, in response to the user's viewing operation of the third screenshot image, displays a fourth screenshot control on the display interface of the third screenshot image. The fourth screenshot control includes multiple sub-screenshot controls, and each sub-screenshot control of the fourth screenshot control corresponds to each window on the display interface when the screenshot operation is performed.

[0137] S309, responding to the user's trigger operation on the child screenshot control above the fourth screenshot control, saves the window corresponding to the triggered child screenshot control as the fourth screenshot image based on the saved screenshot image of the display interface.

[0138] The specific implementation methods of S304 to S309 are the same as those of S105 to S110, and will not be described in detail here.

[0139] Through the above embodiments of this application, when a user's screenshot operation is detected, the displayed screenshot control includes a sub-screenshot control corresponding to each window, and a screenshot is taken of the corresponding window when the user triggers the sub-screenshot control, thereby improving screenshot efficiency. Simultaneously, the complete displayed interface image is saved, so that when the user views the screenshot image, the corresponding controls can be displayed for the user to operate, allowing them to reselect the screenshot window and satisfying the user's need for re-screenshotting, thus improving the flexibility of the screenshot function.

[0140] In another embodiment of this application, S303 can be replaced by: responding to the user's triggering operation on a sub-screenshot control above the third screenshot control, displaying a preview image of the window corresponding to the triggered sub-screenshot control; and responding to the user's confirmation operation on the preview image, saving the preview image as the third screenshot image.

[0141] In another embodiment of this application, in response to a user's triggering operation on a sub-screenshot control of the third screenshot control, a screenshot is taken of the window corresponding to the user-triggered sub-screenshot control, a preview image of the window corresponding to the user-triggered sub-screenshot control is obtained, and the preview image is displayed, thereby providing a screenshot image to the user for preview. In response to the user's confirmation operation on the preview image, the preview image is saved as the third screenshot image.

[0142] In another embodiment of this application, it is detected whether the user clicks on the preview image. If the user clicks on the preview image, it is determined that the user's confirmation operation on the preview image has been received, and the preview image is saved as a third screenshot image.

[0143] In another embodiment of this application, the method further includes: responding to a screenshot operation on a display interface comprising multiple windows, determining whether the screenshot operation is a normal screenshot operation or a scrolling screenshot operation; if the screenshot operation is a scrolling screenshot operation, displaying a fifth screenshot control, the fifth screenshot control comprising multiple sub-screenshot controls, each sub-screenshot control corresponding to a window. Responding to a user's trigger operation on a sub-screenshot control of the fifth screenshot control, performing a scrolling screenshot of the window corresponding to the triggered sub-screenshot control, and saving the scrolling screenshot image as the fifth screenshot image. If the screenshot operation is a normal screenshot operation, then according to... Figure 10 A screenshot of the example shown is taken.

[0144] In another embodiment of this application, assuming the preset screenshot operation is a knuckle touch operation, it is determined whether the movement trajectory of the knuckle touch operation is a preset trajectory. If the movement trajectory of the knuckle touch operation is the preset trajectory, the screenshot operation is determined to be a scrolling screenshot operation; if the movement trajectory of the knuckle touch operation is not the preset trajectory, the screenshot operation is determined to be not a scrolling screenshot operation. The preset trajectory can be an S-shaped trajectory, but is not limited to this in practical applications. See also... Figure 15 The image shows a diagram illustrating a user performing a scrolling screenshot operation on a display interface that includes multiple windows. (See also...) Figure 16 As shown, in response to the user's scrolling screenshot operation, a fifth screenshot control is displayed. The fifth screenshot control includes multiple sub-screenshot controls, and each sub-screenshot control corresponds to a window. The multiple windows in the display interface 70 include a first window 71, a second window 72, and a third window 73. Among them, the first window 71 is a full-screen window, the second window 72 is a split-screen window on the left, and the third window is a split-screen window on the right. The fifth screenshot control 74 includes a sub-screenshot control 741 corresponding to the first window 71, a sub-screenshot control 742 corresponding to the second window 72, and a sub-screenshot control 743 corresponding to the third window 73.

[0145] In another embodiment of this application, if the screenshot operation is a scrolling screenshot operation, in response to the user's triggering operation on a sub-screenshot control above the fifth screenshot control, a scrolling screenshot is performed on the window corresponding to the user-triggered sub-screenshot control. This includes: taking a screenshot of the first area of ​​the window corresponding to the user-triggered sub-screenshot control to obtain a first sub-screenshot image; controlling the display interface to scroll along a preset direction (e.g., downward); and taking a screenshot of the second area of ​​the window corresponding to the user-triggered sub-screenshot control to obtain a second sub-screenshot image. The above process is repeated until the display interface scrolls to the bottom, and all sub-screenshot images are combined into a scrolling screenshot image. Here, the first area, the second area, ... are all window areas actually displayed on the screen, each area is adjacent, and each has the same size as the screen.

[0146] See Figure 17As shown, if triggered Figure 16 The sub-screenshot control 741 in the device performs scrolling screenshots of a full-screen window. The electronic device controls the full-screen window to scroll along a preset direction (e.g., downwards), with the scrolling step being the full-screen window corresponding to the display screen. It automatically captures a sub-screenshot image for each scrolled section of the full-screen window until the full-screen window can no longer be scrolled. Then, the multiple sub-screenshot images are merged into a complete scrolling screenshot image, which is saved as the fifth screenshot image. It is understandable that the scrolling screenshot can be stopped in response to user touch input.

[0147] In other embodiments of this application, the electronic device may also respond to the user's swiping operation, control the full-screen window to scroll, the direction of scrolling is consistent with the direction of swiping operation, the step size of scrolling is the full-screen window corresponding to the display screen, and automatically take a screenshot of each scrolling full-screen window to obtain a sub-screenshot image until the user's swiping operation stops, then merge multiple sub-screenshot images into a complete scrolling screenshot image, and save the scrolling screenshot image as the fifth screenshot image.

[0148] See Figure 18 As shown, if triggered Figure 16 The sub-screenshot control 742 in the device performs scrolling screenshots of a split-screen window on the display interface. The electronic device controls the split-screen window to scroll along a preset direction (e.g., downwards), with the scrolling step being the display area corresponding to the split-screen window. It automatically captures a screenshot of each scrolling split-screen window, obtaining a sub-screenshot image, until the split-screen window scrolls to the bottom and can no longer scroll. Then, multiple sub-screenshot images are merged into a complete scrolling screenshot image, which is saved as the fifth screenshot image. It is understandable that the scrolling screenshot can be stopped in response to user touch input.

[0149] In another embodiment of this application, the electronic device can also respond to the user's swiping operation, control the split-screen window to scroll, the scrolling direction is consistent with the swiping direction, the scrolling step is the display area corresponding to the split-screen interface, and automatically take a screenshot of each scrolling split-screen window to obtain a sub-screenshot image until the user's swiping operation stops, then merge multiple sub-screenshot images into a complete screenshot image, and save the scrolling screenshot image as the fifth screenshot image.

[0150] See Figure 19 and Figure 20 As shown, after a scrolling screenshot is completed, an editing interface for the scrolling screenshot image is automatically displayed, allowing users to edit the image. Users can perform editing operations such as cropping, rotating, and annotating the scrolling screenshot image in the editing interface.

[0151] Through the above embodiments of this application, scrolling screenshots of multiple windows can be performed, allowing the screenshot image to include more window areas, thereby increasing the scalability of the screenshot function.

[0152] In another embodiment of this application, the method further includes: responding to a screenshot operation on a display interface including multiple windows, displaying a fifth screenshot control and a scrolling screenshot control, the fifth screenshot control including multiple sub-screenshot controls, each sub-screenshot control corresponding to a window. Determining whether a user trigger operation on a sub-screenshot control of the fifth screenshot control and whether a user trigger operation on the scrolling screenshot control is received. If a user trigger operation on a sub-screenshot control of the fifth screenshot control and a user trigger operation on the scrolling screenshot control are received, a scrolling screenshot is performed on the window corresponding to the triggered sub-screenshot control, and the scrolling screenshot image is saved as a sixth screenshot image. If a user trigger operation on a sub-screenshot control of the fifth screenshot control is received, or no user trigger operation on any sub-screenshot control of the fifth screenshot control is received, then according to... Figure 10 A screenshot of the example shown is taken.

[0153] See Figure 21 As shown, the multiple windows in the display interface 80 include a first window 81, a second window 82, and a third window 83. The first window 81 is a full-screen window, the second window 82 is a split-screen window on the left, and the third window 83 is a split-screen window on the right. The fifth screenshot control 84 includes a sub-screenshot control 841 corresponding to the first window 81, a sub-screenshot control 842 corresponding to the second window 82, and a sub-screenshot control 843 corresponding to the third window 83. A scrolling screenshot control 85 is displayed below the fifth screenshot control 84. In another embodiment of this application, in response to the user triggering a sub-screenshot control and a scrolling screenshot control above the fifth screenshot control (e.g., simultaneously or sequentially), a scrolling screenshot is performed on the window corresponding to the triggered sub-screenshot control. The scrolling screenshot method is the same as in the above embodiments and will not be described again here.

[0154] This application also provides an electronic device 100, see reference. Figure 22As shown, the electronic device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device and / or smart city device. The specific type of electronic device 100 is not specifically limited in the embodiments of this application.

[0155] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, Universal Serial Bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0156] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, 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.

[0157] 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, 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.

[0158] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0159] The processor 110 may also include a memory for storing instructions and data. In one embodiment of this application, the memory in the processor 110 is a cache memory. The 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 instructions or data again, it can directly retrieve them from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0160] In one embodiment of this application, 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, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI) interface, a General-Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and / or a Universal Serial Bus (USB) interface, etc.

[0161] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In one embodiment of this application, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0162] The I2S interface can be used for audio communication. In one embodiment of this application, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to realize communication between the processor 110 and the audio module 170. In one embodiment of this application, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to realize the function of answering phone calls through a Bluetooth headset.

[0163] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In one embodiment of this application, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In another embodiment of this application, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0164] The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In one embodiment of this application, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In one embodiment of this application, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback via Bluetooth headphones.

[0165] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a Camera Serial Interface (CSI) and a Display Serial Interface (DSI). In one embodiment of this application, the processor 110 and the camera 193 communicate via the CSI interface to realize the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the electronic device 100.

[0166] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In one embodiment of this application, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0167] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. Furthermore, the interface can be used to connect other electronic devices 100, such as AR devices.

[0168] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0169] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via a USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 100 via the power management module 141.

[0170] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0171] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0172] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0173] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In one embodiment of this application, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In another embodiment of this application, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0174] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In one embodiment of this application, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and housed within the same device as the mobile communication module 150 or other functional modules.

[0175] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including Wireless Local Area Networks (WLANs) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and Infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0176] In one embodiment of this application, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the Beidou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0177] Electronic device 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for multi-window screenshotting, connected to the display screen 194 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.

[0178] The display screen 194 is used to display images, videos, etc. The display screen 194 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 Minied, Microled, Micro-OLED, or a Quantum Dot Light-Emitting Diode (QLED), etc. In one embodiment of this application, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0179] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0180] The ISP is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In one embodiment of this application, the ISP can be set in the camera 193.

[0181] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the 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 for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In one embodiment of this application, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0182] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0183] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0184] NPU stands for Neural Network (NN) computing processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0185] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).

[0186] Random access memory can include static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous dynamic random-access memory (SDRAM), and double data rate synchronous dynamic random-access memory (DDR SDRAM, such as fifth-generation DDR SDRAM, which is generally called DDR5 SDRAM).

[0187] Non-volatile memory can include disk storage devices and flash memory.

[0188] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multi-media card (eMMC), etc.

[0189] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0190] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0191] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0192] Internal memory 121 or external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by processor 110. The one or more computer programs include multiple instructions, which, when executed by processor 110, can implement the screen display detection method executed on electronic device 100 in the above embodiments, so as to realize the screen display detection function of electronic device 100.

[0193] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0194] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In one embodiment of this application, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0195] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0196] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0197] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0198] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0199] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0200] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0201] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0202] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In one embodiment of this application, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100. This application also provides a computer storage medium storing computer instructions. When the computer instructions are executed on the electronic device 100, the electronic device 100 performs the above-mentioned related method steps to implement the multi-window screenshot method in the above embodiments.

[0203] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the multi-window screenshot method described in the above embodiments.

[0204] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory; wherein, the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the multi-window screenshot method in the above method embodiments.

[0205] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0206] 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.

[0207] 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.

[0208] 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.

[0209] 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.

[0210] 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 the embodiments of this application, essentially or in other words, 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. The 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 of 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.

[0211] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.

Claims

1. A multi-window screenshot method, applied to electronic devices, characterized in that, The method includes: In response to a screenshot operation on a display interface comprising multiple windows, if the coordinates of the touch point corresponding to the screenshot operation fall within the display coordinate range of any window on the display interface, the window corresponding to the display coordinate range into which the touch point coordinates fall is determined as the window corresponding to the screenshot operation. Based on the window corresponding to the screenshot operation, display the first screenshot control; In response to the user's trigger operation on the first screenshot control, the window corresponding to the screenshot operation is saved as the first screenshot image; Save a screenshot of the displayed interface; In response to the user's viewing operation of the first screenshot image, a second screenshot control is displayed on the display interface of the first screenshot image. The second screenshot control includes multiple sub-screenshot controls, and each sub-screenshot control of the second screenshot control corresponds to each window on the display interface when the screenshot operation is performed. In response to the user's triggering operation on the child screenshot control above the second screenshot control, the window corresponding to the triggered child screenshot control is saved as the second screenshot image based on the saved screenshot image of the display interface.

2. The multi-window screenshot method as described in claim 1, characterized in that, The multiple windows include multiple split-screen interfaces and / or floating windows, used to display the interfaces of multiple applications.

3. The multi-window screenshot method as described in claim 1, characterized in that, The method further includes: If no trigger operation on the first screenshot control is detected, the display interface is saved as the first screenshot image; In response to the user's viewing operation of the first screenshot image, the second screenshot control is displayed on the display interface of the first screenshot image; In response to the user's trigger operation on the child screenshot control above the second screenshot control, the window corresponding to the triggered child screenshot control is saved as the second screenshot image based on the saved display interface image.

4. The multi-window screenshot method as described in claim 1, characterized in that, The method further includes: When the display screen of the electronic device receives a user's touch operation, if the touch operation is a preset touch operation, the touch operation is determined to be a screenshot operation; or If the touch operation is not the preset touch operation, it is determined that the touch operation is not the screenshot operation.

5. The multi-window screenshot method as described in claim 4, characterized in that, The preset touch operations are knuckle touch operations, clicking on icons that provide screenshot functionality, or preset physical button operations.

6. The multi-window screenshot method as described in claim 1, characterized in that, The first screenshot control displays a preset prompt to prompt the user to take a screenshot of the window corresponding to the screenshot operation.

7. The multi-window screenshot method as described in claim 1, characterized in that, The step of responding to the user's trigger operation on the first screenshot control and saving the window corresponding to the screenshot operation as the first screenshot image includes: If a user triggers the first screenshot control within a preset time, the system responds to the user's triggering operation by saving the window corresponding to the screenshot operation as the first screenshot image and storing the first screenshot image in the gallery application of the electronic device.

8. The multi-window screenshot method as described in claim 1, characterized in that, The method further includes: In response to the user's trigger operation on the first screenshot control, a preview image of the window corresponding to the screenshot operation is displayed; In response to the user's confirmation of the preview image, the preview image is saved as the first screenshot image.

9. A multi-window screenshot method, applied to electronic devices, characterized in that, The method includes: In response to a screenshot operation on a display interface comprising multiple windows, a first screenshot control is displayed, the first screenshot control comprising multiple sub-screenshot controls, each sub-screenshot control corresponding to a window; In response to the user's trigger operation on the child screenshot control above the first screenshot control, the window corresponding to the triggered child screenshot control is saved as the first screenshot image; Save a screenshot of the displayed interface; In response to the user's viewing operation of the first screenshot image, a second screenshot control is displayed on the display interface of the first screenshot image. The second screenshot control includes multiple sub-screenshot controls, and each sub-screenshot control of the second screenshot control corresponds to each window on the display interface when the screenshot operation is performed. In response to the user's trigger operation on a child screenshot control on the second screenshot control, the window corresponding to the child screenshot control on the triggered second screenshot control is saved as the second screenshot image based on the saved screenshot image of the display interface.

10. The multi-window screenshot method as described in claim 9, characterized in that, The method further includes: If no trigger operation on the screenshot control is detected, the display interface is saved as the first screenshot image; In response to the user's viewing operation of the first screenshot image, the second screenshot control is displayed on the display interface of the first screenshot image; In response to the user's trigger operation on a child screenshot control above the second screenshot control, the window corresponding to the child screenshot control above the triggered second screenshot control is saved as the second screenshot image based on the saved display interface image.

11. The multi-window screenshot method as described in claim 9, characterized in that, The step of responding to a user's trigger operation on a child screenshot control above the first screenshot control, and saving the window corresponding to the triggered child screenshot control as the first screenshot image, includes: In response to a user's triggering operation on a child screenshot control above the first screenshot control, display a preview image of the window corresponding to the triggered child screenshot control; In response to the user's confirmation of the preview image, the preview image is saved as the first screenshot image.

12. The multi-window screenshot method as described in claim 9, characterized in that, The screenshot operation is a knuckle touch operation, a physical button triggering operation, or a virtual button triggering operation performed on the display screen of the electronic device.

13. The multi-window screenshot method as described in claim 9, characterized in that, The method further includes: Based on the layout of multiple windows in the display interface, draw and display multiple sub-screenshot controls of the first screenshot control that correspond one-to-one with the multiple windows and the display interface.

14. The multi-window screenshot method as described in claim 9, characterized in that, The method further includes: In response to a screenshot operation on the display interface comprising multiple windows, determine whether the screenshot operation is a normal screenshot operation or a scrolling screenshot operation; If the screenshot operation is a scrolling screenshot operation, a third screenshot control is displayed. The third screenshot control includes multiple sub-screenshot controls, and each sub-screenshot control on the third screenshot control corresponds to a window. In response to a user's trigger operation on a child screenshot control above the third screenshot control, a scrolling screenshot is performed on the window corresponding to the triggered child screenshot control, and the scrolling screenshot image is saved as the third screenshot image.

15. The multi-window screenshot method as described in claim 14, characterized in that, The determination of whether the screenshot operation is a normal screenshot operation or a scrolling screenshot operation includes: Determine whether the movement trajectory of the screenshot operation is a preset trajectory; If the movement trajectory of the screenshot operation is a preset trajectory, the screenshot operation is determined to be a scrolling screenshot operation; or If the movement trajectory of the screenshot operation is not a preset trajectory, it is determined that the screenshot operation is not a scrolling screenshot operation.

16. The multi-window screenshot method as described in claim 14, characterized in that, The step of performing a scrolling screenshot of the window corresponding to the triggered child screenshot control includes: Controls the window corresponding to the triggered child screenshot control to scroll and display along a preset direction; Take a screenshot of the display area after each scrolling display to obtain multiple sub-screenshot images; Multiple sub-screenshot images are combined into the scrolling screenshot image, and the scrolling screenshot image is saved as the third screenshot image.

17. The multi-window screenshot method as described in claim 9, characterized in that, The method further includes: In response to a screenshot operation on the display interface comprising multiple windows, the first screenshot control and the scrolling screenshot control are displayed; Determine whether a user trigger operation is received on a child screenshot control above the first screenshot control, and determine whether a user trigger operation is received on the scrolling screenshot control; If a user triggers a sub-screenshot control on the first screenshot control, and a user triggers a scrolling screenshot control, the window corresponding to the triggered sub-screenshot control is scrolled and screenshotted, and the scrolling screenshot image is saved as the third screenshot image.

18. An electronic device, characterized in that, The electronic device includes a memory and a processor: The memory is used to store program instructions; The processor is configured to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, the electronic device performs the multi-window screenshot method as described in any one of claims 1 to 17.

19. A chip coupled to a memory in an electronic device, characterized in that, The chip is used to control the electronic device to perform the multi-window screenshot method as described in any one of claims 1 to 17.

20. A computer storage medium, characterized in that, The computer storage medium stores program instructions that, when executed on the electronic device, cause the processor of the electronic device to perform the multi-window screenshot method as described in any one of claims 1 to 17.

Citation Information

Patent Citations

  • Screen capture method and system for electronic device

    CN106527892A

  • Multi-window screen capture method and device and terminal equipment

    CN113552986A