Screenshot method and device, electronic device and readable storage medium

By identifying and generating screenshots of multiple display windows on the mobile terminal, the problem that the screenshot function in the existing technology cannot meet user needs in multi-tasking scenarios is solved, and the accuracy of screenshots and user experience are improved.

CN112306607BActive Publication Date: 2024-09-24VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011199890.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-09-24
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

At this stage, the screenshot function of mobile terminals cannot effectively handle multi-tasking scenarios, which may leak users' private information and affect the user experience. In particular, it cannot accurately capture the required content during video calls or live video broadcasts.

Method used

Provide a screenshot method and device that can identify multiple display windows on the display screen of a mobile terminal and generate corresponding screenshot images, ensuring that the content of each window is independently screenshotted and simplifying the screenshot operation of multiple application processes.

Benefits of technology

It realizes accurate screenshots of multiple task windows on the mobile terminal desktop, improves user experience, avoids leakage of private information, and completes screenshots without affecting other application processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112306607B
    Figure CN112306607B
Patent Text Reader

Abstract

The present application discloses a screenshot method and device, an electronic device and a readable storage medium, which belongs to the field of terminal technology. The method includes: receiving a first input for taking a screenshot of an electronic device; in response to the first input, generating multiple screenshot images when the number of display windows in the display screen of the electronic device is greater than 1. The method provided by the embodiment of the present invention can take corresponding screenshots of multiple task windows in the desktop of the mobile terminal, simplifying the operation of taking screenshots of multiple application processes and improving the user's screenshot experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of terminal technology, and specifically relates to a screenshot method and device, an electronic device, and a readable storage medium. Background Art

[0002] Nowadays, the processing performance of mobile terminals is getting more and more powerful. When using mobile terminals, users are not satisfied with using only one function at the same time, and will present multiple task operation interfaces on the graphical user interface of the mobile terminal. For example, when a user is making an instant messaging video / voice call, he opens a certain video live broadcast software and displays the video live broadcast software floating window. At the same time, in order to check information or communicate with other users in text, he will open a browser or other communication tools. At this time, the small mobile phone screen will appear at the same time: instant messaging video floating window + video live broadcast software floating window + browser web page / communication tool page. In another example, the common split-screen scenario will also present multiple task interfaces on the display screen of the mobile terminal.

[0003] The screenshot function of the current mobile terminal simply takes a screenshot of the graphical user interface presented on the display screen of the current mobile terminal. The screenshot function can specify the position and shape of the screenshot when taking the screenshot. However, for the scenario of multi-tasking of the mobile terminal, the screenshot function in the current mobile terminal is not very friendly and may even leak the user's privacy information. For example, when the user is making a video call, you need to take a screenshot of the content on the mobile terminal screen to share it with others. In order not to leak privacy information, either the other party in the video call needs to cover the camera, or take a screenshot after the video call ends, and then continue the video call after the screenshot is completed; in addition, when the user is watching the live video on the mobile terminal, if he browses the web page data and wants to take a screenshot of the web page screen to share, the floating window of the live video will cover the content of the web page screen, so that the web page screen content is missing and affects the sharing of web page information. At the same time, if you close the floating window of the live video and take a screenshot, you may miss the wonderful live content when you open the live broadcast software after the screenshot is completed, and the user experience is very poor. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a screenshot method and device, an electronic device and a readable storage medium, which can solve the problem in the related art that the screenshot method in the mobile terminal is single and the corresponding screenshot cannot be performed based on the application process in the mobile terminal, and cannot meet the user needs.

[0005] In a first aspect, an embodiment of the present application provides a screenshot method, the method comprising: receiving a first input for taking a screenshot of an electronic device; in response to the first input, generating a plurality of screenshot images when the number of display windows in the display screen of the electronic device is greater than 1, wherein the plurality of screenshot images respectively correspond to the plurality of display windows, and each of the screenshot images is generated based on the first content of the display window corresponding thereto.

[0006] In a second aspect, an embodiment of the present application provides a screenshot device, comprising: a receiving unit, for receiving a first input for taking a screenshot of an electronic device; a screenshot unit, for generating a plurality of screenshot images in response to the first input when the number of display windows in the display screen of the electronic device is greater than 1, wherein the plurality of screenshot images respectively correspond to the plurality of display windows, and each of the screenshot images is generated based on the first content of the display window corresponding thereto.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the screenshot method described in the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the screenshot method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the screenshot method as described in the first aspect.

[0010] In an embodiment of the present application, a first input for taking a screenshot of an electronic device is received; in response to the first input, when the number of display windows in the display screen of the electronic device is greater than 1, multiple screenshot images are generated, wherein the multiple screenshot images correspond to the multiple display windows respectively, and each screenshot image is generated based on the first content of the corresponding display window. The method provided in the embodiment of the present invention can take corresponding screenshots of multiple task windows in the desktop of the mobile terminal, simplifying the operation of taking screenshots of multiple application processes and improving the user's screenshot experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a flowchart of an optional screenshot method in this embodiment;

[0012] Figure 2is a schematic diagram of an optional graphical user interface in this embodiment;

[0013] Figure 2a is a schematic diagram of an optional screenshot of a picture in this embodiment;

[0014] Figure 3 is a schematic diagram of an optional screenshot control in this embodiment;

[0015] Figure 4a is a schematic diagram of another optional graphical user interface in this embodiment;

[0016] Figure 4b is a schematic diagram of another optional screenshot of the picture in this embodiment;

[0017] Figure 5a is a schematic diagram of another optional graphical user interface in this embodiment;

[0018] Figure 5b is a schematic diagram of another optional screenshot of the picture in this embodiment;

[0019] Figure 6a is a schematic diagram of another optional graphical user interface in this embodiment;

[0020] Figure 6b is a schematic diagram of another optional screenshot of the picture in this embodiment;

[0021] Figure 7 is a structural schematic diagram of another optional screenshot device in this embodiment;

[0022] Figure 8 It is a schematic diagram of the structure of an optional electronic device in this embodiment. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0025] The screenshot method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0026] According to one aspect of the embodiments of the present application, a screenshot method is proposed, such as Figure 1 As shown, the method may specifically include the following steps:

[0027] S101, receiving a first input for taking a screenshot of an electronic device;

[0028] S102, in response to a first input, when the number of display windows in the display screen of the electronic device is greater than 1, generating multiple screenshot images, wherein the multiple screenshot images respectively correspond to the multiple display windows, and each screenshot image is generated based on the first content of the corresponding display window.

[0029] In this embodiment, the mobile terminal includes but is not limited to a smart phone with multiple application functions, a tablet computer, a wearable electronic device, a microcomputer, etc. At the same time, the terminal system of the mobile terminal includes but is not limited to Windows, iOS, Android and other systems, and in this embodiment, there is no limitation on the terminal system.

[0030] The display control in this embodiment is an application in the mobile terminal, which is a window on the display screen of the mobile terminal for displaying the application content. The size of the display control is set by the mobile terminal and the application itself. In this embodiment, the type of application and the size of the display control are not limited.

[0031] As an optional technical solution in this embodiment, receiving the first input for taking a screenshot of the electronic device includes but is not limited to receiving a selection operation of a preset physical key or a preset physical key combination acting on the mobile terminal, a selection operation of a preset virtual key or a virtual control acting on the graphical user interface of the mobile terminal, and a preset gesture operation acting on the graphical user interface, etc. Among them, the preset gestures include but are not limited to multiple tapping operations, multi-finger sliding, tapping at a preset position, multi-finger sliding at a preset position, and a pressing operation based on pressure sensing of the display screen, etc. on the touch screen of the mobile terminal.

[0032] In this embodiment, after receiving the first input, the number of display windows on the graphical user interface is obtained. If the number of display windows is greater than 1, it means that there are multiple windows corresponding to application processes on the current graphical user interface of the mobile terminal. The application process corresponding to the display window is obtained through the system framework of the mobile terminal. The application process includes the application process ID corresponding to the display window and the position of the display window in the graphical user interface, and then the first content corresponding to the application process is obtained, and then a screenshot image corresponding to the display window is generated according to the first content.

[0033] In an example, Figure 2 As shown, the main task interface of the graphical user interface displays a display window 20 corresponding to the news reading application. The display window 20 mainly displays the reading interface of the news article. There are floating windows 22 and 24 in the reading interface. The application processes corresponding to the display window 20, the floating window 22 and the floating window 24 are determined, the first content corresponding to the application processes is obtained, and then the screenshots corresponding to the display window 20, the floating window 22 and the floating window 24 are generated. Figure 2a As shown, the screenshot image of display window 20 is a screenshot image 220 of a news reading application, and the screenshot image 220 does not include the screen of the floating window; the floating window 22 and the floating window 24 are respectively screenshot images 222 and 224 of the corresponding application processes, and the screenshot images 222 and 224 do not include the screen content corresponding to other display windows.

[0034] As an optional technical solution in this embodiment, after obtaining multiple first contents respectively corresponding to the multiple display windows, multiple corresponding screenshot images are generated according to the display content in the graphical user interface and the multiple first contents, wherein the multiple screenshot images include screenshot images corresponding to the display windows, screenshot images corresponding to the graphical user interface, and screenshot images of the combination of the display content in the graphical user interface and the first content of the display windows.

[0035] In one example, Figure 2 Taking the graphical user interface shown in as an example, the main task interface in the graphical user interface 200 displays the display window 20 corresponding to the news reading application, and the reading interface of the display window 20 also displays the floating window 22 and the floating window 24. After taking screenshots of the display window 20, the floating window 22 and the floating window 24 in the graphical user interface, multiple screenshots are obtained. Figure 2aAs shown, screenshot image 220 corresponding to display window 20, screenshot image 222 corresponding to floating window 22, screenshot image 224 corresponding to floating window 24, screenshot image 226 corresponding to the display content of graphical user interface 200, screenshot image 228 corresponding to the combination of the display content of graphical user interface and floating window 22, and screenshot image 230 corresponding to the combination of the display content of graphical user interface and floating window 24 are obtained respectively.

[0036] It should be noted that, through this embodiment, a screenshot instruction acting on a mobile terminal is received; in response to the screenshot instruction, the number of display windows in the graphical user interface in the mobile terminal is obtained; when the number of display windows is greater than 1, information of multiple application processes corresponding to the multiple display windows is obtained; first contents corresponding to the multiple display windows are obtained according to the multiple application processes; and multiple screenshot images corresponding to the multiple display windows are generated according to the first contents. This realizes corresponding screenshots of multiple task windows on the desktop of the mobile terminal, simplifies the operation of screenshots of multiple application processes, and improves the screenshot experience of users.

[0037] Optionally, in this embodiment, after obtaining the number of display windows, it also includes but is not limited to: when the number of display windows is equal to 1, generating a screenshot image corresponding to the graphical user interface according to the display content displayed in the graphical user interface.

[0038] In a specific application scenario, when the number of display windows is equal to 1, that is, the graphical user interface displays the desktop process of the mobile terminal system or the display window corresponding to the application process. At this time, the graphical user interface of the mobile terminal can be directly screenshoted, that is, a screenshot image is generated based on the display content displayed in the graphical user interface.

[0039] Through the above embodiment, the number of display windows in the graphical user interface is determined. When the number of display windows is equal to 1, a screenshot image is directly generated based on the display content displayed in the graphical user interface to improve the response speed of the screenshot operation.

[0040] Optionally, in this embodiment, before obtaining multiple first contents corresponding to multiple application processes, it also includes but is not limited to: determining multiple application icons of multiple application programs corresponding to the multiple application processes; rendering a screenshot window in a graphical user interface corresponding to the electronic device, wherein the screenshot window includes multiple application icons; receiving a first selection operation acting on the multiple application icons to determine a target application process corresponding to the target application icon, wherein the target application icon is the application icon selected by the first selection operation; and generating a screenshot image corresponding to the target application process.

[0041] Specifically, when a first input for taking a screenshot of an electronic device is received and there are multiple display windows in the graphical user interface of the mobile terminal, in response to the first input, application icons corresponding to the multiple display windows are displayed in the graphical user interface of the mobile terminal for the user to select, and then the display window selected by the user is determined based on the application icon selected by the user, the first content of the corresponding display window is obtained, and the corresponding screenshot image is generated.

[0042] Still with the above Figure 2 Taking the graphical user interface shown in FIG. 200 as an example, the main task interface in the graphical user interface 200 displays a display window 20 corresponding to a news reading application, and the reading interface of the display window 20 includes a floating window 22 and a floating window 24. After detecting a screenshot instruction acting on the mobile terminal, multiple application icons corresponding to the display window 20, the floating window 22 and the floating window 24 are obtained, such as Figure 3 As shown, a screenshot window 30 is rendered in the graphical user interface 200, and the screenshot window 30 displays an application icon 320 corresponding to the display window 20, an application icon 322 corresponding to the floating window 22, and an application icon 324 corresponding to the floating window 24. Then, a selection operation acting on the screenshot window 30 is detected, and in response to the operation acting on the screenshot window 30, the selected application icon is obtained as the application icon of the news reading application process, that is, the second application process is the news application process, and the information flow corresponding to the news application process is obtained through the system framework of the mobile terminal, and then a screenshot image corresponding to the news reading application is generated according to the information flow.

[0043] In addition, in this embodiment, the first input can select multiple application icons to perform a screenshot of the combination of the first application processes corresponding to the multiple application icons, and obtain multiple screenshot images corresponding to the multiple application processes corresponding to the multiple application icons, and a single screenshot image of the first application process combination.

[0044] As an optional technical solution in this embodiment, a first selection operation applied to multiple first application icons is detected; in response to the first selection operation, a third application process is determined according to the first selection operation; a screenshot image corresponding to the third application process is generated according to a third content corresponding to the third application process, wherein the third application process is an application process corresponding to other application icons among the multiple first application icons except the second application icon, and the second application icon is the application icon selected by the first selection operation.

[0045] Specifically, Figure 3For example, a screenshot window 30 is rendered in the graphical user interface 200, and the screenshot window 30 displays an application icon 320 corresponding to the display window 20, an application icon 322 corresponding to the floating window 22, and an application icon 324 corresponding to the floating window 24. Then, a selection operation applied to the screenshot window 30 is detected, and in response to the selection operation applied to the screenshot window 30, the application icon selected by the selection operation is obtained as the application icon corresponding to the news reading application process, and then the two application processes corresponding to the floating window 22 and the floating window 24 are determined, and the information flow of the application processes corresponding to the floating window 22 and the floating window 24 is obtained through the system framework of the mobile terminal, and then the screenshot images corresponding to the floating window 22 and the floating window 24 are generated according to the information flow.

[0046] Through the above embodiment, when a screenshot instruction acting on a mobile terminal is detected and the display window in the graphical user interface is greater than 1, a screenshot window including an application icon corresponding to the display window is rendered in the graphical user interface, and a corresponding screenshot image is obtained according to the first selection operation acting on the screenshot window, thereby ensuring the security and privacy of some display windows in the graphical user interface.

[0047] Optionally, in this embodiment, obtaining multiple first contents corresponding to multiple application processes includes but is not limited to: obtaining a first information stream corresponding to a first application process through a system framework of the electronic device; and determining the first content according to the first information stream.

[0048] In a specific application scenario, the application process ID corresponding to the display window is obtained, and then the first information flow corresponding to the first application process is obtained through the system framework of the electronic device according to the application process ID, and the first content of the application process corresponding to the display window is determined according to the first information flow. The information flow refers to the transmission data between the application process and the remote server or the local server, which is used to construct the display content corresponding to the application process.

[0049] Optionally, in this embodiment, the display window includes a floating window, wherein the size of the floating window is less than or equal to a first preset size threshold, and the floating window includes a third content, wherein multiple screenshot images are generated based on multiple first contents, including but not limited to: enlarging and displaying the third content to obtain a fourth content, wherein the size of the display window of the fourth content is the same as the size of the display screen; and generating a screenshot image corresponding to the floating window based on the fourth content.

[0050] In a specific application scenario, when there are multiple display windows in a graphical user interface, and the display windows include one or more floating windows, if a screenshot of the floating window is taken with the content displayed in the current graphical user interface, the content of the screenshot of the floating window will be blurred. When the application process corresponding to the floating window is switched to the main task view, and the screenshot is taken with the application corresponding to the floating window in the original size of the main view, other floating windows may be lost or the content of other application processes may be interrupted.

[0051] To solve this problem, in this embodiment, when taking a screenshot of a floating window among multiple display windows, the third content corresponding to the floating window is obtained, the third content is enlarged and displayed according to the display screen size of the electronic device, and the fourth content with the same size as the screen size is obtained, and then a screenshot image corresponding to the floating window is generated based on the fourth content.

[0052] In an example, Figure 4a The graphical user interface 400 shown includes window 40, window 42 and window 44, wherein window 42 and window 44 are floating windows. To take a screenshot of window 42, firstly, the information stream displayed in window 42 is obtained through the mobile terminal system framework, and the third content corresponding to window 42 is obtained according to the information stream. After the third content is enlarged and displayed according to the ratio of the mobile terminal screen, the fourth content is obtained and then a screenshot is taken and saved, and the result is as shown in FIG. Figure 4b The screenshots shown, Figure 4b The screenshots in the image are the same size as the screen of the mobile terminal.

[0053] Through the above embodiment, by enlarging the content displayed in the floating window according to the screen size of the mobile terminal and saving the screenshot, it is possible to take a screenshot of the floating window without switching the floating window to the main task view, without affecting other application processes.

[0054] Optionally, in this embodiment, the display window includes a split-screen window, wherein the size of the split-screen window is greater than a second preset size threshold and smaller than the screen size of the electronic device, wherein multiple screenshot images are generated based on multiple first contents, including: enlarging and displaying a fifth content corresponding to the split-screen window according to a preset ratio to obtain a sixth content, wherein the display size of the sixth content is smaller than the screen size; generating a screenshot image corresponding to the split-screen window based on the sixth content, wherein the screenshot image corresponding to the split-screen window includes the sixth content and a filling part, and the filling part is a preset background.

[0055] In a specific application scenario, the display window includes a split-screen window in a split-screen state, and the size of the split-screen window is relatively large, such as a video application, which will occupy half of the screen of the mobile terminal to display the video content in the split-screen state. For such applications, the actual application requirement is to enlarge and display them according to a certain ratio. Therefore, in this embodiment, the fifth content of the split-screen window is enlarged and displayed according to a preset ratio to obtain the sixth content, wherein the preset ratio is a ratio allowed by the screen size of a mobile terminal, so that the size of the sixth content is smaller than the screen size of the mobile terminal. A screenshot is taken according to the sixth content, and the filled part in the screenshot is filled according to the preset background.

[0056] In an example, Figure 5a The graphical user interface 500 shown includes a split-screen window 50 and a split-screen window 52. In the process of taking a screenshot of the split-screen window 50, the application process information corresponding to the split-screen window 50 is obtained. Based on the application process corresponding to the split-screen window 50, the corresponding information stream is obtained through the system framework of the mobile terminal. According to the ratio allowed by the screen of the mobile terminal, the information stream is proportionally enlarged and presented on the screenshot image content. The screenshot image content is filled with a preset black background to obtain the following image: Figure 5b The screenshots shown, Figure 5b The content corresponding to the split-screen window 50 is included, and the other parts are filled with a black background.

[0057] Through the above embodiment, the fifth content corresponding to the split-screen window is enlarged and displayed according to a preset ratio, and a screenshot image is generated according to the sixth content obtained by the enlarged display. The floating window can be screenshoted without switching the split-screen window to the main task view, and the screenshot image corresponding to the split-screen window can better reflect the state of the split-screen window in the graphical user interface.

[0058] As an optional technical solution in this embodiment, when the electronic device is in a portrait mode, the fifth content of the split-screen window is enlarged according to a preset ratio to obtain a sixth content, and the size of the sixth content is smaller than the screen size. When the electronic device is in a landscape mode, the fifth content is enlarged according to the screen size to obtain the sixth content, and the size of the sixth content is the same as the screen size, and the sixth content displayed on the display screen of the electronic device is in a landscape mode.

[0059] Optionally, in this embodiment, the display window includes a communication window, wherein the third application process corresponding to the communication window is an application process of a preset type, wherein multiple screenshot images are generated based on multiple first contents, including but not limited to: obtaining communication records corresponding to the application process of the preset type; generating a seventh content based on the communication records, wherein the display size of the seventh content is the same as the screen size; and generating a screenshot image corresponding to the communication window based on the seventh content.

[0060] In specific application scenarios, for the communication window corresponding to the chat consultation application, the content displayed in the communication window is limited. If the content displayed in the communication window is simply enlarged according to the screen size or the preset ratio, a large area of ​​blank information will be displayed, affecting the user's viewing experience.

[0061] In order to solve the above problem, in this embodiment, the information flow of the preset type of application process corresponding to the communication window is obtained through the system framework. The preset type of application process generally includes communication application processes, such as real-time communication and non-real-time communication application processes. The communication record of the communication window is obtained according to the information flow of the communication application process. The communication record includes context information, such as text messages, picture notes, audio / video messages, etc. in the chat record. The seventh content is established based on the communication record, and then the screenshot image corresponding to the communication window is generated according to the seventh content.

[0062] In an example, Figure 6a The graphical user interface 600 shown includes a communication window 60 and a display window 62. In the process of taking a screenshot of the communication window 60, the communication application process corresponding to the communication window 60 is determined, the information flow corresponding to the communication process is obtained through the system framework, and the seventh content is established based on the communication record in the information flow, such as Figure 6b As shown, a screenshot image 610 corresponding to the communication window 60 is generated according to the seventh content. The content of the screenshot image 610 is composed of the communication record in the communication window 60, and the communication record includes the display content 612 and the supplementary content 614 in the communication window 60, simulating the screenshot in the full-screen interface of the third application process, thereby realizing the screenshot of the full-screen content of the communication window without exiting the split-screen state.

[0063] Through the above embodiment, the communication record corresponding to the preset type of application process is obtained through the system architecture; the seventh content is established according to the communication record, and the screenshot image corresponding to the communication window is generated according to the seventh content, thereby realizing the screenshot of the communication window without switching the communication window to the main task view.

[0064] Optionally, in this embodiment, after generating multiple screenshot images based on multiple first contents, it also includes but is not limited to: displaying multiple screenshot images according to preset rules; receiving a second selection operation acting on the multiple screenshot images; and in response to the second selection operation, saving the screenshot image selected by the second selection operation.

[0065] Specifically, Figure 2aTaking the graphical user interface shown in as an example, the graphical user interface 200 displays multiple screenshots: a screenshot 220 corresponding to the display window 20, a screenshot 222 corresponding to the floating window 22, a screenshot 224 corresponding to the floating window 24, a screenshot 226 corresponding to the display content of the graphical user interface 200, a screenshot 228 corresponding to the combination of the display content of the graphical user interface and the floating window 22, and a screenshot 230 corresponding to the combination of the display content of the graphical user interface and the floating window 24. Figure 2a In the graphical user interface, the screenshot images are arranged and displayed in a preset order in a thumbnail format of the screenshot images. Click the screenshot image to preview the screenshot image, then detect the second selection operation acting on the screenshot image, and save or share the second selection operation.

[0066] Through the above embodiment, multiple screenshot images are displayed on the graphical user interface according to preset rules, and the screenshot images are saved according to the second selection operation performed on the screenshot images, so that users can quickly and accurately obtain screenshot results, thereby improving the user's screenshot experience.

[0067] Optionally, in this embodiment, multiple screenshot images are displayed according to preset rules, including but not limited to: sorting and displaying the multiple screenshot images according to the number of display windows in the screenshot images; or sorting and displaying the multiple screenshot images according to the area ratio of the display windows; or sorting and displaying the multiple screenshot images according to the usage frequency of multiple application processes; or displaying the first screenshot image at a preset position, wherein the first screenshot image is a screenshot image corresponding to the application process currently executed by the electronic device.

[0068] In a specific application scenario, multiple screenshots are displayed on a graphical user interface according to preset rules, which may include the following methods:

[0069] (1) The number of windows displayed in the screenshot;

[0070] Specifically, multiple screenshots are sorted and displayed according to the number of display windows in the screenshots. Figure 2a As shown in the screenshot pictures shown in , the screenshot picture 226 is displayed first, followed by the connected picture 228 and the screenshot picture 230.

[0071] (2) The area ratio of the display window;

[0072] Specifically, multiple screenshots are sorted and displayed according to the area ratio of the display window. Figure 2a As shown in the screenshot images shown in , the screenshot image 220 is displayed first, followed by the screenshot image 224, and then the screenshot image 222.

[0073] (3) displaying the usage frequency of the first application process corresponding to the window;

[0074] Specifically, the usage frequency of the first application process may be obtained based on the startup record of the application program in the mobile terminal, or may be obtained based on the statistical data of the server, which is not limited in this embodiment.

[0075] (4) Usage scenarios of graphical user interfaces;

[0076] Specifically, the screenshot image corresponding to the currently executed first application process is preferentially displayed at the preset position. Among them, the first application process of the main task interface of the graphical user interface is the currently executed first application process, such as Figure 2a For example, the screenshot image 220 is displayed preferentially at the preset position.

[0077] Through the above-mentioned embodiment, multiple screenshot images are displayed on the graphical user interface according to preset rules, so that a quick browsing of the screenshot results can be achieved, making the display of the screenshot images more intuitive.

[0078] Through the embodiment of the present application, a first input for taking a screenshot of an electronic device is received; in response to the first input, when the number of display windows in the display screen of the electronic device is greater than 1, multiple screenshot images are generated, wherein the multiple screenshot images correspond to the multiple display windows respectively, and each screenshot image is generated based on the first content of the corresponding display window. The corresponding screenshots are taken for multiple task windows on the desktop of the mobile terminal, simplifying the operation of taking screenshots of multiple application processes, so as to improve the user's screenshot experience.

[0079] It should be noted that the screenshot method provided in the embodiment of the present application can be executed by a screenshot device or a control module in the screenshot device for executing the loading screenshot method. In the embodiment of the present application, the screenshot method provided in the embodiment of the present application is described by taking the screenshot device executing the loading screenshot method as an example.

[0080] According to another aspect of this embodiment, a screenshot device is provided. Figure 7 As shown, the device may specifically include:

[0081] 1) A receiving unit 70, configured to receive a first input for taking a screenshot of an electronic device;

[0082] 2) a screenshot unit 72, configured to generate a plurality of screenshot images in response to the first input when the number of display windows in the display screen of the electronic device is greater than 1,

[0083] The multiple screenshot images respectively correspond to the multiple display windows, and each of the screenshot images is generated based on the first content of the display window corresponding thereto.

[0084] Optionally, in this embodiment, the screenshot unit 72 includes:

[0085] 1) a first acquisition module, configured to acquire a plurality of the first contents corresponding to a plurality of application processes, wherein the plurality of application processes correspond to the plurality of display windows;

[0086] 2) A first processing module, configured to generate the plurality of screenshot images according to the plurality of first contents.

[0087] Optionally, in this embodiment, the method further includes:

[0088] 1) a first determining module, configured to determine a plurality of application icons of a plurality of application programs corresponding to a plurality of application processes before acquiring a plurality of the first contents corresponding to the plurality of application processes;

[0089] 2) a rendering module, configured to render a screenshot window in a graphical user interface corresponding to the electronic device, wherein the screenshot window includes the multiple application icons;

[0090] 3) a receiving module, configured to receive a first selection operation acting on the plurality of application icons to determine a target application process corresponding to a target application icon, wherein the target application icon is the application icon selected by the first selection operation;

[0091] 4) A second processing module, used to generate a screenshot image corresponding to the target application process.

[0092] Optionally, in this embodiment, the display window includes a floating window, wherein a window size of the floating window is less than or equal to a first preset size threshold, and the floating window includes third content, wherein the first processing module includes:

[0093] 1) a first display submodule, configured to enlarge and display the third content to obtain a fourth content, wherein the size of the display window of the fourth content is the same as the size of the display screen;

[0094] 2) A first processing submodule, configured to generate a screenshot image corresponding to the floating window according to the fourth content.

[0095] Optionally, in this embodiment, the display window includes a split-screen window, wherein the size of the split-screen window is greater than a second preset size threshold and smaller than a screen size of the electronic device, wherein the first processing module includes:

[0096] 1) a second display submodule, configured to enlarge and display the fifth content corresponding to the split-screen window according to a preset ratio to obtain a sixth content, wherein the display size of the sixth content is smaller than the screen size;

[0097] 2) A second processing submodule, used to generate a screenshot image corresponding to the split-screen window based on the sixth content, wherein the screenshot image corresponding to the split-screen window includes the sixth content and a filling part, and the filling part is a preset background.

[0098] Optionally, in this embodiment, the display window includes a communication window, wherein the application process corresponding to the communication window is an application process of a preset type, and wherein the first processing module includes:

[0099] 1) an acquisition submodule, used to acquire communication records corresponding to the application process of the preset type;

[0100] 2) a third processing submodule, configured to generate seventh content according to the communication record, wherein a display size of the seventh content is the same as a screen size;

[0101] 3) A fourth processing submodule, configured to generate a screenshot image corresponding to the communication window according to the seventh content.

[0102] Optionally, in this embodiment, the method further includes:

[0103] 1) a display module, configured to display the plurality of screenshot images according to a preset rule after the plurality of screenshot images are generated according to the plurality of first contents;

[0104] 2) a receiving module, configured to receive a second selection operation on the plurality of screenshot images;

[0105] 3) A storage module, used for saving the screenshot image selected by the second selection operation in response to the second selection operation.

[0106] Optionally, in this embodiment, the display module includes:

[0107] 1) a third display submodule, used to sort the plurality of screenshot images according to the number of display windows in the screenshot images and then display them; or,

[0108] 2) a fourth display submodule, used to sort and display the plurality of screenshot images according to the area ratio of the display window; or,

[0109] 3) a fifth display submodule, configured to display the plurality of screenshot images after sorting them according to the usage frequencies of the plurality of application processes; or,

[0110] 4) A sixth display submodule, configured to display a first screenshot image at a preset position, wherein the first screenshot image is a screenshot image corresponding to an application process currently executed by the electronic device.

[0111] The screenshot device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0112] The screenshot device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0113] The screenshot device provided in the embodiment of the present application can achieve Figures 1 to 6b The various processes implemented by the screenshot device in the method embodiment will not be described again here to avoid repetition.

[0114] Through the screenshot device of the present application, a first input for taking a screenshot of an electronic device is received; in response to the first input, when the number of display windows in the display screen of the electronic device is greater than 1, multiple screenshot images are generated, wherein the multiple screenshot images correspond to the multiple display windows respectively, and each screenshot image is generated based on the first content of the corresponding display window. The corresponding screenshots are taken for multiple task windows on the desktop of the mobile terminal, simplifying the operation of taking screenshots of multiple application processes, so as to improve the user's screenshot experience.

[0115] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a processor 810, a memory 809, and a program or instruction stored in the memory 809 and executable on the processor 810. When the program or instruction is executed by the processor 810, each process of the method embodiment of the above-mentioned screenshot method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0116] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0117] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0118] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 110 and other components.

[0119] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption through the power management system. 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0120] The input unit 804 is used to receive a first input for taking a screenshot of the electronic device;

[0121] The processor 110 is used to generate a plurality of screenshot images in response to the first input when the number of display windows in the display screen of the electronic device is greater than one, wherein the plurality of screenshot images respectively correspond to the plurality of display windows, and each of the screenshot images is generated based on the first content of the display window corresponding thereto.

[0122] Through the embodiment of the present application, a first input for taking a screenshot of an electronic device is received; in response to the first input, when the number of display windows in the display screen of the electronic device is greater than 1, multiple screenshot images are generated, wherein the multiple screenshot images correspond to the multiple display windows respectively, and each screenshot image is generated based on the first content of the corresponding display window. The corresponding screenshots are taken for multiple task windows on the desktop of the mobile terminal, simplifying the operation of taking screenshots of multiple application processes, so as to improve the user's screenshot experience.

[0123] According to another aspect of the embodiments of the present application, a readable storage medium is also provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the method embodiment of the above-mentioned screenshot method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0124] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0125] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the method embodiment of the above-mentioned screenshot method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0126] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0127] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0129] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A screenshot method, characterized in that: The method comprises: Receiving a first input for taking a screenshot of an electronic device; In response to the first input, when the number of display windows in the display screen of the electronic device is greater than 1, generating a plurality of screenshot images, the plurality of display windows corresponding to a plurality of application processes; and the plurality of application processes corresponding to a plurality of first contents; The plurality of screenshot images respectively correspond to the plurality of display windows, and each of the screenshot images is generated based on the first content of the display window corresponding thereto; In response to the first input, when the number of display windows in the display screen of the electronic device is greater than 1, generating a plurality of screenshot images, including: Acquire a plurality of the first contents corresponding to a plurality of application processes, wherein the plurality of application processes correspond to the plurality of display windows; Generate the multiple screenshot images according to the multiple first contents; Before acquiring the plurality of first contents corresponding to the plurality of application processes, the method further includes: Determining a plurality of application icons of a plurality of application programs corresponding to the plurality of application processes; Rendering a screenshot window in a graphical user interface corresponding to the electronic device, wherein the screenshot window includes the multiple application icons; receiving a first selection operation acting on the plurality of application icons to determine a target application process corresponding to a target application icon, wherein the target application icon is an application icon selected by the first selection operation; Generate a screenshot image corresponding to the target application process.

2. The method according to claim 1, characterized in that The display window includes a floating window, wherein a window size of the floating window is less than or equal to a first preset size threshold, and the floating window includes third content, wherein: Generating the plurality of screenshot images according to the plurality of first contents includes: Enlarging and displaying the third content to obtain fourth content, wherein the size of the display window of the fourth content is the same as the size of the display screen; A screenshot image corresponding to the floating window is generated according to the fourth content.

3. The method according to claim 1, characterized in that: The display window includes a split-screen window, wherein the size of the split-screen window is greater than a second preset size threshold and smaller than the screen size of the electronic device, wherein: Generating the plurality of screenshot images according to the plurality of first contents includes: Amplifying and displaying the fifth content corresponding to the split-screen window according to a preset ratio to obtain a sixth content, wherein the display size of the sixth content is smaller than the screen size; A screenshot image corresponding to the split-screen window is generated according to the sixth content, wherein the screenshot image corresponding to the split-screen window includes the sixth content and a filling part, and the filling part is a preset background.

4. The method according to claim 1, characterized in that: The display window includes a communication window, wherein the application process corresponding to the communication window is an application process of a preset type, wherein: Generating the plurality of screenshot images according to the plurality of first contents includes: Obtaining communication records corresponding to the application process of the preset type; generating a seventh content according to the communication record, wherein a display size of the seventh content is the same as a screen size; A screenshot image corresponding to the communication window is generated according to the seventh content.

5. The method according to claim 1, characterized in that After generating the plurality of screenshot images according to the plurality of first contents, the method further includes: Displaying the multiple screenshot images according to preset rules; receiving a second selection operation acting on the plurality of screenshot images; In response to the second selection operation, the screenshot image selected by the second selection operation is saved.

6. The method according to claim 1, characterized in that Displaying the plurality of screenshot images according to a preset rule includes: The plurality of screenshot images are sorted and displayed according to the number of display windows in the screenshot images; or, sorting the plurality of screenshot images according to the area ratio of the display window and then displaying them; or, Sort the multiple screenshots according to the usage frequencies of the multiple application processes and then display them; or, A first screenshot image is displayed at a preset position, wherein the first screenshot image is a screenshot image corresponding to an application process currently executed by the electronic device.

7. A screenshot device, characterized in that: The device comprises: A receiving unit, configured to receive a first input for taking a screenshot of an electronic device; a screenshot unit, configured to generate a plurality of screenshot images in response to the first input when the number of display windows in the display screen of the electronic device is greater than 1, wherein the plurality of display windows correspond to a plurality of application processes; and the plurality of application processes correspond to a plurality of first contents; The plurality of screenshot images respectively correspond to the plurality of display windows, and each of the screenshot images is generated based on the first content of the display window corresponding thereto; The screenshot unit comprises: A first acquisition module, configured to acquire a plurality of the first contents corresponding to a plurality of application processes, wherein the plurality of application processes correspond to the plurality of display windows; A first processing module, configured to generate the plurality of screenshot images according to the plurality of first contents; A first determining module, configured to determine a plurality of application icons of a plurality of application programs corresponding to the plurality of application processes before acquiring the plurality of first contents corresponding to the plurality of application processes; A rendering module, configured to render a screenshot window in a graphical user interface corresponding to the electronic device, wherein the screenshot window includes the multiple application icons; a receiving module, configured to receive a first selection operation acting on the plurality of application icons to determine a target application process corresponding to a target application icon, wherein the target application icon is the application icon selected by the first selection operation; The second processing module is used to generate a screenshot image corresponding to the target application process.

8. The device according to claim 7, characterized in that The display window includes a floating window, wherein a window size of the floating window is less than or equal to a first preset size threshold, and the floating window includes third content, wherein: The first processing module comprises: a first display submodule, configured to enlarge and display the third content to obtain fourth content, wherein the size of the display window of the fourth content is the same as the size of the display screen; The first processing submodule is used to generate a screenshot image corresponding to the floating window according to the fourth content.

9. The device according to claim 7, characterized in that The display window includes a split-screen window, wherein the size of the split-screen window is greater than a second preset size threshold and smaller than the screen size of the electronic device, wherein: The first processing module comprises: a second display submodule, configured to amplify and display the fifth content corresponding to the split-screen window according to a preset ratio to obtain a sixth content, wherein the display size of the sixth content is smaller than the screen size; The second processing submodule is used to generate a screenshot image corresponding to the split-screen window according to the sixth content, wherein the screenshot image corresponding to the split-screen window includes the sixth content and a filling part, and the filling part is a preset background.

10. The device according to claim 7, characterized in that The display window includes a communication window, wherein the application process corresponding to the communication window is an application process of a preset type, wherein: The first processing module comprises: An acquisition submodule, used to acquire communication records corresponding to the application process of the preset type; a third processing submodule, configured to generate seventh content according to the communication record, wherein a display size of the seventh content is the same as a screen size; The fourth processing submodule is used to generate a screenshot image corresponding to the communication window according to the seventh content.

11. The device according to claim 7, characterized in that Also includes: A display module, configured to display the plurality of screenshot images according to a preset rule after the plurality of screenshot images are generated according to the plurality of first contents; A receiving module, configured to receive a second selection operation on the plurality of screenshot images; The storage module is used to save the screenshot image selected by the second selection operation in response to the second selection operation.

12. The device according to claim 11, characterized in that The display module comprises: A third display submodule is used to sort and display the plurality of screenshot images according to the number of display windows in the screenshot images; or, A fourth display submodule, used for displaying the plurality of screenshot images after sorting them according to the area ratio of the display window; or, a fifth display submodule, configured to display the plurality of screenshot images after sorting them according to the usage frequencies of the plurality of application processes; or The sixth display submodule is used to display a first screenshot image at a preset position, wherein the first screenshot image is a screenshot image corresponding to an application process currently executed by the electronic device.

13. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the screenshot method according to any one of claims 1 to 6.

14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the screenshot method according to any one of claims 1 to 6 are implemented.