Screenshot method and apparatus, electronic device, and readable storage medium

By receiving screenshot input in the screenshot method and displaying screenshots containing content before and after the change of content on the screen, the problem of unrelated messages being saved in the screenshot in the prior art is solved, and the flexibility of screenshots is improved.

WO2025040061A1PCT designated stage expired Publication Date: 2025-02-27VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/113185
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-24
Filing Date
2024-08-19
Publication Date
2025-02-27

AI Technical Summary

Technical Problem

When the existing screenshot method is performed by the user in the process of screenshot input, if the electronic device receives and displays irrelevant messages, it may cause irrelevant messages to be saved in the screenshot, which has less flexibility.

Method used

A screenshot method is provided, by receiving screenshot input and displaying a first screenshot containing the screen display content before the change and a second screenshot containing the screen display content after the change are displayed, thereby obtaining the required screenshot.

Benefits of technology

Improve the flexibility of screenshots, and users can select appropriate screenshot content to save or share after obtaining screenshots that include before and after the change, reducing the need for manual editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024113185_27022025_PF_FP_ABST
    Figure CN2024113185_27022025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing, and discloses a screenshot method and apparatus, an electronic device, and a readable storage medium. The method comprises: receiving a screenshot input; and in response to the screenshot input, displaying a first screenshot when the display content of a screen is changed, wherein the first screenshot comprises a first content, and the first content is the display content of the screen before the change.
Need to check novelty before this filing date? Find Prior Art

Description

Screenshot method, device, electronic device and readable storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 24, 2023, with application number 202311078523.3 and invention name “Screenshot method, device, electronic device and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application belongs to the field of image processing, and specifically relates to a screenshot method, device, electronic device and readable storage medium. Background Art

[0003] In daily life, when users use electronic devices to browse and process various types of information, they can obtain information displayed on the screen of the electronic device by taking screenshots, so that the users can save or share the information in the form of screenshots.

[0004] However, if the electronic device receives and displays an unrelated new message while the user is taking a screenshot or the electronic device is taking a screenshot, the unrelated message may also be saved in the screenshot. After taking the screenshot, the user typically needs to edit it, such as cropping out the unrelated message or re-triggering the electronic device to take the screenshot, in order to obtain the desired screenshot. As such, existing screenshot methods lack flexibility.

[0005] Summary of the Invention

[0006] The purpose of the embodiments of the present application is to provide a screenshot method, device, electronic device and readable storage medium, which can improve the flexibility of screenshots.

[0007] In a first aspect, an embodiment of the present application provides a screenshot method, the method comprising: receiving a screenshot input; in response to the screenshot input, displaying a first screenshot when the display content of the screen changes, the first screenshot comprising first content, the first content being the display content of the screen before the change.

[0008] In a second aspect, an embodiment of the present application provides a screenshot device, which includes: a receiving module and a display module; the receiving module is used to receive a screenshot input; the display module is used to display a first screenshot in response to the screenshot input received by the receiving module when the display content of the screen changes, the first screenshot including a first content, which is the display content of the screen before the change.

[0009] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

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

[0011] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0012] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.

[0013] In an embodiment of the present application, a screenshot input is received; in response to the screenshot input, a first screenshot is displayed when the displayed content of the screen changes. The first screenshot includes first content, and the first content is the displayed content of the screen before the change. Through this solution, even if the displayed content of the screen changes before the electronic device completes the screenshot, the required screenshot can be obtained by obtaining a screenshot containing the displayed content of the screen before the change. This improves the flexibility of screenshot taking. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] FIG1 is a flowchart of a screenshot method provided in an embodiment of the present application;

[0015] FIG2A is a schematic diagram of a screenshot interface provided in an embodiment of the present application;

[0016] FIG2B is a schematic diagram of an interface including a screenshot of display content before a screen change, provided by an embodiment of the present application;

[0017] FIG2C is a schematic diagram of an interface including a screenshot of displayed content after a screen change, provided by an embodiment of the present application;

[0018] FIG3 is a schematic diagram of a screenshot interface including screenshot content that meets screenshot requirements, provided by an embodiment of the present application;

[0019] FIG4 is a schematic diagram of an interface for determining whether to crop a screenshot, provided in an embodiment of the present application;

[0020] FIG5 is a schematic diagram of an interface for determining whether to retain the screenshot content provided by an embodiment of the present application;

[0021] FIG6 is a schematic diagram of an interface displaying a first screenshot and a second screenshot provided by an embodiment of the present application;

[0022] FIG7 is a schematic diagram of an interface displaying a first screenshot, a second screenshot, and a fifth screenshot provided by an embodiment of the present application;

[0023] FIG8 is a second flowchart of a screenshot method provided in an embodiment of the present application;

[0024] FIG9 is a flowchart of an example of a screenshot method provided in an embodiment of the present application;

[0025] FIG10 is a schematic structural diagram of a screenshot device provided in an embodiment of the present application;

[0026] FIG11 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;

[0027] FIG12 is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described 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 are within the scope of protection of this application.

[0029] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0030] The terms "at least one" and "at least one of" in the specification and claims of this application refer to any one, any two, or a combination of more than two of the objects included. For example, at least one of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two" means two or more, and its meaning is similar to "at least one".

[0031] The screenshot method, device, electronic device, and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0032] The screenshot method, device, electronic device, and readable storage medium provided in the embodiments of the present application can be applied to scenarios where screenshots of displayed content on a screen are taken.

[0033] With the popularization of electronic devices, the screenshot function of electronic devices is being used more and more frequently. Generally, when a user wants to take a screenshot of the current display content on the electronic device screen, he or she can trigger the electronic device to take a screenshot through a special gesture or a specific key combination, such as a three-finger swipe gesture or a power button and volume down button combination to trigger the electronic device to take a screenshot.

[0034] However, if the electronic device happens to display an unrelated new message while the user is inputting a screenshot input or while the electronic device is taking a screenshot, such as during a three-finger swipe, the electronic device will also save the unrelated message in the screenshot. Therefore, the user usually needs to edit the screenshot after taking it, such as cropping out the unrelated message in the screenshot, or re-triggering the electronic device to take a screenshot, in order to obtain the desired screenshot. The above screenshot method has low flexibility.

[0035] In the screenshot method, device, electronic device, and readable storage medium provided in the embodiments of the present application, even if the displayed content of the screen changes during the screenshot input process, the desired screenshot can be obtained by obtaining a screenshot containing the displayed content before the change and a screenshot containing the displayed content after the change. In this way, the screenshot method provided in the embodiments of the present application can improve the flexibility of screenshots.

[0036] The execution subject of the screenshot method provided in the embodiment of the present application can be a screenshot device. For example, the screenshot device can be an electronic device, or a component of the electronic device, such as an integrated circuit or chip. The screenshot method provided in the embodiment of the present application will be exemplified below using an electronic device as an example.

[0037] The present application provides a screenshot method. FIG1 shows a flowchart of the screenshot method provided by the present application embodiment. The method can be applied to electronic devices. As shown in FIG1 , the screenshot method provided by the present application embodiment may include the following steps 101 and 102.

[0038] Step 101: The electronic device receives a screenshot input.

[0039] In some embodiments of the present application, the screenshot input is used to trigger the electronic device to take a screenshot of the displayed content on the screen. The screenshot input can be a screenshot operation.

[0040] Exemplarily, the above-mentioned screenshot input includes but is not limited to: touch input of the user to the electronic device screen through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined according to actual use requirements, and is not limited in the embodiment of this application. The specific gesture in the embodiment of this application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of this application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. In actual implementation, it can be determined according to actual use requirements, and is not limited in the embodiment of this application.

[0041] For example, the screenshot input may be a single-click input by the user on a screenshot control displayed on the screen of the electronic device, so as to trigger the electronic device to take a screenshot of the content displayed on the screen.

[0042] For example, the screenshot input may be a three-finger swipe down input by the user on the screen of the electronic device to trigger the electronic device to take a screenshot of the content displayed on the screen.

[0043] For example, the screenshot input may be a combination of a power button and a volume down button of the electronic device input by the user to trigger the electronic device to take a screenshot of the content displayed on the screen.

[0044] For example, the screenshot input may be a user's voice input to the electronic device. For example, the voice content of the voice input may be "screenshot." The electronic device may receive the voice input and take a screenshot of the content displayed on the screen.

[0045] Step 102: In response to the screenshot input, the electronic device displays a first screenshot when the display content of the screen changes.

[0046] The first screenshot includes first content, which is the display content of the screen before the change.

[0047] In some embodiments of this application, "a change in the display content of a screen" can be understood as: an addition, reduction, or update of the display content on the electronic device screen, where the display content of the screen before the change is different from the display content of the screen after the change. The display content of the screen before the change refers to the content displayed on the screen before the change.

[0048] For example, if the screen display content before the display content changes is a desktop page, when the screen display content changes, if the electronic device receives a notification message, the electronic device will add a floating window containing the notification message to the screen, that is, after the display content changes, the screen display content includes the floating window containing the notification message.

[0049] For example, if the screen display content is a desktop page before the display content is changed, and if the electronic device receives multiple different notification messages, the electronic device can add multiple floating windows containing the notification messages to the desktop page displayed on the screen, that is, the screen display content after the display content is changed includes the multiple floating windows.

[0050] For example, if the screen display content before the display content is changed is a conversation interface, when the screen display content is changed, if the conversation partner withdraws a conversation message, the electronic device can cancel the conversation message of the conversation interface displayed on the screen. That is, the screen display content after the display content is changed includes the display content after the conversation message is canceled.

[0051] For example, if the screen display content is the desktop page before the display content is changed, when the screen display content is changed, if the electronic device receives an incoming call, the electronic device can jump to the incoming call page, that is, the screen display content is the incoming call page after the display content is changed.

[0052] In some embodiments of the present application, the change in the display content of the above-mentioned screen may occur during the input process of the screenshot input, that is, it may occur during the process from the moment the screenshot input starts to the moment the screenshot input ends; the change in the display content of the above-mentioned screen may also occur during the process of the electronic device responding to the screenshot input, that is, it may occur during the process from the moment the electronic device starts to take a screenshot of the screen in response to the screenshot input to the moment the electronic device completes the screenshot.

[0053] For example, taking the screenshot input as the user's three-finger swipe down input on the electronic device screen as an example, the change in the screen display content can occur from the moment the three fingers begin to contact the electronic device screen to the moment the three fingers leave the electronic device screen.

[0054] For example, taking the screenshot input as a combination of the power button and the volume down button of the electronic device, the change of the screen display content can occur from the moment the electronic device takes a screenshot to the moment the electronic device completes the screenshot.

[0055] The electronic device may detect whether the content displayed on the screen changes from the moment the screenshot input starts to the process of responding to the screenshot input.

[0056] In some embodiments of the present application, the first content may include the display content of the screen before the display content is changed.

[0057] For example, taking the screen of the electronic device displaying a desktop page as an example, the first content may include all application icons in the desktop page.

[0058] For example, taking the electronic device screen displaying a conversation interface as an example, the first content may include a conversation message of the conversation interface.

[0059] In the screenshot method provided by the present application, before the electronic device completes the screenshot of the screen, even if the display content of the screen changes, the required screenshot can be obtained by obtaining a screenshot containing the display content of the screen before the change. In this way, the flexibility of screenshots is improved.

[0060] In some embodiments of the present application, after the above step 101, the screenshot method provided by the embodiment of the present application may further include the following step 103.

[0061] Step 103: The electronic device displays the first screenshot and the second screenshot in response to the screenshot input.

[0062] The second screenshot includes second content, which is the display content of the changed screen.

[0063] In some embodiments of the present application, the second content may be part or all of the content displayed on the screen after the change. It is understandable that the first content is different from the second content.

[0064] In some embodiments of the present application, a user can trigger the electronic device to take a screenshot while the electronic device is displaying first content, i.e., the electronic device receives a screenshot input. Then, before the electronic device completes the screenshot of the first content, if the display content of the electronic device screen changes and the electronic device screen displays second content, the electronic device can take screenshots of the display content of the screen before the change and the display content of the screen after the change, respectively, to obtain a first screenshot including the first content and a second screenshot including the second content.

[0065] For example, let's take the case where the display content of the screen changes to the electronic device receiving a notification message. As shown in FIG2A , the desktop page 21 displayed on the screen of the electronic device contains the application icon of APP1. The electronic device can receive a screenshot input of the user pressing the combination of the power button 22 and the volume down button 23. If the electronic device receives a notification message 24, the notification message 24 is displayed in the form of a floating box on the desktop page 21. The electronic device can determine that the display content of the screen has changed. At this time, as shown in FIG2B , the electronic device can obtain a screenshot containing only the desktop page 21, that is, the screenshot includes the display content of the screen before the change; as shown in FIG2C , the electronic device can also obtain a screenshot containing the desktop page 21 and the notification message 24, that is, the screenshot includes the display content of the screen after the change.

[0066] It can be understood that the electronic device responds to the screenshot input, and when the displayed content on the screen changes, after obtaining the first screenshot and the second screenshot, the first screenshot and the second screenshot can be saved or shared respectively; the screenshot that meets the screenshot requirements can be selected from the first screenshot and the second screenshot to be saved and shared; and a screenshot that meets the screenshot requirements can be generated based on the first screenshot and the second screenshot, and the generated screenshot can be saved and shared.

[0067] In this way, even when the display content of the screen changes, the required screenshots can be obtained by obtaining a screenshot containing the display content of the screen before the change and a screenshot containing the display content of the screen after the change. In this way, the flexibility of screenshots can be improved.

[0068] In some embodiments of the present application, after the above step 103, the screenshot method provided by the embodiment of the present application may further include the following steps 104 and 105.

[0069] Step 104: The electronic device receives a first input for taking a target screenshot.

[0070] The target screenshot may include the first screenshot or the second screenshot.

[0071] Step 105: The electronic device obtains a third screenshot based on the target screenshot in response to the first input.

[0072] In some embodiments of the present application, the target screenshot may be a screenshot containing screenshot content that meets the screenshot requirements, which may be the first screenshot or the second screenshot. It is understood that the screenshot content that meets the screenshot requirements is the screenshot content that the user wants to obtain, that is, the screenshot content that should be included in the final screenshot.

[0073] In some embodiments of the present application, the third screenshot may be a screenshot that only contains screenshot content that meets the screenshot requirements. It is understood that after the electronic device receives the user's first input for the target screenshot, it can select screenshot content that meets the screenshot requirements from the target screenshot based on the first input. Therefore, the third screenshot obtained only contains screenshot content that meets the screenshot requirements.

[0074] In some embodiments of the present application, after obtaining the first screenshot and the second screenshot, the electronic device can display at least one of the first screenshot and the second screenshot on the screen to receive the user's first input for the target screenshot among the first screenshot and the second screenshot, and obtain a third screenshot based on the target screenshot.

[0075] For example, after obtaining the first screenshot and the second screenshot, the electronic device can display both the first screenshot and the second screenshot on the screen to receive the user's first input for the target screenshot among the first screenshot and the second screenshot, thereby facilitating the user to select one of the screenshots or select the screenshot content in the target screenshot to obtain a third screenshot.

[0076] For example, after obtaining the first screenshot and the second screenshot, the electronic device may display the second screenshot on the screen to receive the user's first input on the second screenshot, thereby facilitating the user to select the screenshot content in the second screenshot to obtain the third screenshot.

[0077] In some embodiments of the present application, when the electronic device displays at least one of the first screenshot and the second screenshot on the screen, it may directly display the first screenshot and the second screenshot on the screen, or may display thumbnails of the first screenshot and the second screenshot on the screen, or may display screenshot identifiers of the first screenshot and the second screenshot on the screen. This is not specifically limited in the embodiments of the present application. In some embodiments of the present application, the above-mentioned first input is used to trigger the electronic device to select screenshot content that meets the screenshot requirements from the target screenshot, that is, the above-mentioned first input can be a selection input for the screenshot content.

[0078] Exemplarily, the above-mentioned first input includes but is not limited to: touch input of the user to the electronic device screen through a touch device such as a finger or a stylus, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs, which can be determined based on actual usage requirements and are not limited in the embodiments of this application.

[0079] For example, the first input may be a single-click input by the user on a screenshot content in the target screenshot, so as to trigger the electronic device to generate a third screenshot based on the screenshot content.

[0080] For example, the first input may be a user's selection input of a screenshot content in the target screenshot, so as to trigger the electronic device to generate a third screenshot based on the screenshot content.

[0081] For example, the first input may be a click input by the user on the target screenshot, so as to trigger the electronic device to determine the target screenshot as the third screenshot.

[0082] In some embodiments of the present application, the above-mentioned "obtaining a third screenshot based on the target screenshot" can be understood as: the electronic device determines the screenshot content to be included in the screenshot that meets the screenshot requirements based on the user's input of the target screenshot, and generates a third screenshot based on the screenshot content.

[0083] For example, taking the screenshot shown in FIG2C as the target screenshot, the electronic device can receive the user's input of a notification message 24 in the screenshot, and use the notification message 24 as the screenshot content that meets the screenshot requirement. As shown in FIG3 , the electronic device can obtain a screenshot 30 containing only the notification message 24, i.e., the third screenshot.

[0084] In this way, since the electronic device can determine the screenshot containing the screenshot content that meets the screenshot requirement from the first screenshot or the second screenshot, when the display content of the screen changes, the required screenshot can be quickly selected by obtaining the screenshot containing the display content of the screen before the change and the screenshot containing the display content of the screen after the change, without having to manually crop the obtained screenshot or retake the screenshot, thereby improving the efficiency and flexibility of screenshot taking.

[0085] In some embodiments of the present application, the first content may include a first sub-content, and the second content may include a first sub-content and a second sub-content.

[0086] In some embodiments of the present application, the above step 104 may include the following step 104a; the above step 105 may include the following step 105a.

[0087] Step 104a: While displaying the second screenshot, the electronic device receives a first input for the second screenshot.

[0088] The first input may be used to select target content in the second screenshot, and the target content may include at least one of a first sub-content and a second sub-content. It is understood that the first sub-content is different from the second sub-content.

[0089] Step 105a: The electronic device obtains a third screenshot including target content based on the second screenshot in response to the first input.

[0090] In some embodiments of the present application, the third screenshot at least includes target content.

[0091] In some embodiments of the present application, the phrase "the second content may include a first sub-content and a second sub-content" can be understood as meaning that, when the displayed content on the screen changes, the electronic device additionally displays the second sub-content. In other words, when the displayed content on the screen changes, the electronic device overlays the second sub-content on top of the first sub-content; alternatively, the electronic device displays the second sub-content in an area outside the first sub-content.

[0092] For example, if the first sub-content is a desktop page displayed on the electronic device screen and the second sub-content is a floating box containing a notification message, when the display content of the screen changes, the electronic device can add a floating box containing a notification message to the desktop page.

[0093] For example, if the first sub-content is a conversation interface displayed on the electronic device screen and the second sub-content is a communication message identifier, when the screen display content changes, the electronic device may display the communication message identifier in an area other than the conversation interface.

[0094] In some embodiments of the present application, the target content may be screenshot content that meets the screenshot requirements. In other words, the target content may be the screenshot content that the user needs to obtain, that is, the screenshot content to be included in the third screenshot.

[0095] In some embodiments of the present application, after the electronic device receives input from the user selecting target content in the second screenshot, it can generate a third screenshot based on the target content in the second screenshot.

[0096] For example, taking the second screenshot as shown in Figure 2C as an example, the electronic device can receive a click input from the user on the notification message 24 in the screenshot, as shown in Figure 3, to obtain a screenshot 30 including the notification message 24, i.e., the third screenshot.

[0097] In some embodiments of the present application, the electronic device may display prompt information when displaying the second screenshot to prompt the user to select the screenshot content in the second screenshot.

[0098] For example, as shown in FIG4 , the electronic device may receive a user input regarding a notification message 41 while displaying screenshot 40, and display prompt information such as "Do you want to take a screenshot of this content?", "Yes," and "No." If the electronic device receives a user selection of "Yes," the electronic device may crop the notification message 41 and use the resulting screenshot containing only the notification message 41 as the third screenshot. If the electronic device receives a user selection of "No," the electronic device may not process the screenshot 40 and directly determine the screenshot 40 as the third screenshot.

[0099] For example, as shown in FIG5 , the electronic device may receive a user click input on notification message 51 while displaying screenshot 50, and display prompt information such as "Do you want to keep this content?", "Yes," and "No." If the electronic device receives a user selection of "Yes," the electronic device may not process screenshot 50 and directly determine screenshot 50 as the third screenshot. If the electronic device receives a user selection of "No," the electronic device may delete notification message 51 from screenshot 50 and determine screenshot 50 without notification message 51 as the third screenshot.

[0100] In some embodiments of the present application, when displaying the second screenshot, the electronic device determines the target content in the second screenshot according to the input position of the first input, thereby obtaining a third screenshot.

[0101] For example, take the second screenshot as shown in Figure 2C as an example. As shown in Figure 2C, the screenshot includes the desktop page 21 and the notification message 24. If the input position of the first input is the location of the desktop page 21, the electronic device can determine the screenshot containing the desktop page 21 as the third screenshot; if the input position of the first input is the location of the notification message 24, the electronic device can determine the screenshot containing the notification message 24 as the third screenshot; if the input position of the first input is the location of the desktop page 21 and the notification message 24, such as the first input is a sliding input, and its sliding track passes through the location of the desktop page 21 and the notification message 24, the electronic device can determine the screenshot containing the desktop page 21 and the notification message 24 as the third screenshot.

[0102] In this way, since the electronic device can determine the target content to be included in the screenshot according to the user's selection of the screenshot content in the screenshot, the flexibility of the screenshot content of the obtained screenshot can be improved.

[0103] In some embodiments of the present application, the first content may include a first sub-content, and the second content may include a second sub-content. It is understood that "changing the displayed content on the screen" may include displaying the second sub-content on the screen and canceling the display of the first sub-content. In this case, the third screenshot is the target screenshot. The first input may be a selection input for selecting the target screenshot from the first screenshot and the second screenshot.

[0104] In some embodiments of the present application, the above-mentioned "displaying the second sub-content on the screen and canceling the display of the first sub-content" can be understood as: when the display content of the screen changes, the display content of the electronic device screen is replaced, resulting in an overall change.

[0105] For example, if the first sub-content is a desktop page displayed on the electronic device screen and the second sub-content is an incoming call page, when the displayed content of the screen changes, the electronic device can jump from the displayed desktop page to the incoming call page when receiving an incoming call.

[0106] For example, if the first sub-content is a video playback page displayed on the electronic device screen and the second sub-content is an indicator that the video playback content is lost, when the screen display content changes, if the network is disconnected or the remote video is lost, the electronic device can change the displayed video playback page to an indicator that the video playback content is lost.

[0107] In some embodiments of the present application, the electronic device can display the second sub-content on the screen and cancel the display of the first sub-content, and then obtain a first screenshot containing the first sub-content and a second screenshot containing the second sub-content. The electronic device can then determine the target screenshot as the third screenshot based on the user's input of the target screenshot in the first screenshot and the second screenshot.

[0108] In some embodiments of the present application, after obtaining a first screenshot containing a first sub-content and a second screenshot containing a second sub-content, the electronic device can display the first screenshot and the second screenshot on the screen to receive user input for a target screenshot between the first screenshot and the second screenshot.

[0109] In some embodiments of the present application, the above-mentioned “the third screenshot is the target screenshot” can be understood as: the electronic device can receive the user's input of the target screenshot among the first screenshot and the second screenshot, and directly determine the target screenshot as the third screenshot.

[0110] 6 , the electronic device may display screenshots 61 and 62 on the screen. The electronic device may receive a user input on the screenshot 61 and determine the screenshot 61 as the third screenshot.

[0111] In some embodiments of the present application, when the electronic device displays the first screenshot and the second screenshot on the screen, it may directly display the first screenshot and the second screenshot on the screen, or it may display thumbnails of the first screenshot and the second screenshot on the screen, or it may display screenshot identifiers of the first screenshot and the second screenshot on the screen. This embodiment of the present application is not specifically limited.

[0112] In this way, since the electronic device can directly use the screenshot selected by the user from the multiple screenshots obtained as the final screenshot, the flexibility of the screenshot content of the obtained screenshots can be improved.

[0113] In some embodiments of the present application, before step 101, the screenshot method provided in the embodiment of the present application may further include step 106. The step 102 of "displaying the first screenshot when the displayed content of the screen changes" may include steps a and b.

[0114] Step 106: The electronic device displays the first content.

[0115] In some embodiments of the present application, the electronic device may receive a screenshot input from a user while displaying the first content, to obtain a screenshot containing the first content.

[0116] For example, taking the first content as a desktop page as an example, the electronic device may receive a screenshot input from the user while displaying the desktop page, to obtain a screenshot containing the desktop page.

[0117] For example, taking the first content as a news push interface as an example, the electronic device can receive a screenshot input from the user while displaying the news push interface to obtain a screenshot containing the news push interface.

[0118] Step a: The electronic device receives a first message.

[0119] After receiving the first message, the electronic device may change the display content on the screen from the first content to the second content. It is understood that the second content may include the first message.

[0120] In some embodiments of the present application, the first message may be a prompt message of the electronic device, or a message obtained from another device, which is not specifically limited in the embodiments of the present application.

[0121] Exemplarily, the first message may be a conversation message received by the electronic device.

[0122] Exemplarily, the first message may also be a weather reminder message received by the electronic device.

[0123] In some embodiments of the present application, after receiving a first message, the electronic device changes the display content on its screen from the first content to the second content. That is, the display content on the screen before the change is the first content, and the display content on the screen after the change is the second content. It is understood that the display content on the screen after the change includes the first message, i.e., the second content includes the first message.

[0124] Step b: The electronic device takes a screenshot of the first content and displays the first screenshot.

[0125] In some embodiments of the present application, the electronic device may take a screenshot of only the first content and display the first screenshot when the displayed content on the screen changes.

[0126] Optionally, the first screenshot and the second screenshot may be displayed, wherein the second screenshot includes the first message. That is, screenshots are taken of the screen before and after the display content is changed.

[0127] For other descriptions of how the electronic device displays the first screenshot when the displayed content on the screen changes, please refer to the relevant description in the above step 102. To avoid repetition, it will not be described here.

[0128] In this way, since the electronic device can receive a user's screenshot input while displaying the first content, if the displayed content on the screen changes, it can only take a screenshot of the first content and display the first screenshot. Therefore, the electronic device can obtain the required screenshot by obtaining a screenshot that includes the displayed content on the screen before the change. This improves the flexibility of screenshot taking.

[0129] In some embodiments of the present application, after the above step 103, the screenshot method provided by the embodiment of the present application may further include the following steps 106 and 107.

[0130] Step 106: The electronic device compares the screenshot contents in the first screenshot and the second screenshot.

[0131] In some embodiments of the present application, the electronic device finds different screenshot contents between the first screenshot and the second screenshot by comparing the screenshot contents in the first screenshot and the second screenshot.

[0132] For example, the electronic device may identify the screenshot contents in the first screenshot and the second screenshot to compare the screenshot contents in the first screenshot and the second screenshot to find the different screenshot contents between the first screenshot and the second screenshot.

[0133] Exemplarily, the electronic device may also find different screenshot contents between the first screenshot and the second screenshot by comparing feature points of the screenshot contents in the first screenshot and the second screenshot.

[0134] Step 107 : When the electronic device determines based on the comparison result that the first screenshot and the second screenshot have different screenshot contents, the electronic device generates a fifth screenshot based on the first screenshot and the second screenshot.

[0135] The fifth screenshot includes at least partially different screenshot content.

[0136] In some embodiments of the present application, the electronic device may generate a fifth screenshot including at least partially different screenshot contents when the first screenshot and the second screenshot have different screenshot contents.

[0137] For example, if the first screenshot is the screenshot shown in FIG2B and the second screenshot is the screenshot shown in FIG2C , the electronic device can compare the screenshot contents of FIG2B and FIG2C and determine that the different screenshot contents are notification message 24. Then, based on notification message 24, the electronic device can obtain screenshot 30, i.e., the fifth screenshot, as shown in FIG3 .

[0138] In some embodiments of the present application, after obtaining the fifth screenshot, the electronic device may display the first screenshot, the second screenshot, and the fifth screenshot on the screen for the user to select the desired target screenshot.

[0139] For example, as shown in FIG7 , the electronic device may display screenshots 71, 72, and 73 on the screen. Screenshot 71 includes a desktop page 74; screenshot 72 includes a desktop page 74 and a notification message 75; and screenshot 73 includes a notification message 75. The electronic device may receive user input regarding screenshot 73 and directly determine screenshot 73 as the third screenshot.

[0140] It should be noted that the above steps 106 and 107 may be performed before the above step 105, or after the above step 104, or simultaneously with the above steps 104 and 105. This embodiment of the present application does not impose any specific limitation.

[0141] In this way, since the electronic device can generate a new screenshot based on the different screenshot contents of the obtained multiple screenshots, the user can directly obtain a screenshot containing at least part of the different screenshot contents. Therefore, the efficiency and flexibility of the screenshot contents obtained can be improved.

[0142] In some embodiments of the present application, in combination with FIG1 , as shown in FIG8 , after the above step 102 , the screenshot method provided in the embodiment of the present application may further include the following steps 108 and 109 .

[0143] Step 108: The electronic device receives a second input for sending a third screenshot in the first conversation.

[0144] The third screenshot may include the first conversation message of the second conversation.

[0145] In some embodiments of the present application, the first conversation may be a conversation content between an application program having a communication function and at least one conversation object.

[0146] Exemplarily, the first conversation may be the conversation content with conversation object A in a chat application.

[0147] Exemplarily, the first conversation may be a group chat conversation content with conversation object B and conversation object C in a chat application.

[0148] Exemplarily, the first conversation may be the conversation content with the conversation object D in a short video application.

[0149] In some embodiments of the present application, the first conversation may be a private chat conversation or a group chat conversation.

[0150] In some embodiments of the present application, the first conversation message may be a conversation message related to the user in the first conversation. It is understood that since the first conversation message is related to the user, the electronic device may prompt the user of the existence of the first conversation message by displaying the message content or identifier of the first conversation message.

[0151] For example, taking the first conversation message as a new message in the first conversation as an example, the electronic device may display the first conversation message in the form of a floating window.

[0152] For example, taking the first conversation message as a new message in the first conversation as an example, the electronic device may display the first conversation message in a pop-up window.

[0153] It is understandable that when the display content of the electronic device screen changes, the first conversation message of the first conversation is additionally displayed, so that the third screenshot finally obtained by the electronic device includes the first conversation message of the first conversation.

[0154] In some embodiments of the present application, the second session may be a different session from the first session. It is understood that the session object of the second session is at least partially different from the session object of the first session.

[0155] Exemplarily, assuming that the session object of the first session is session object A, the session object of the second session may be session object B.

[0156] Exemplarily, assuming that the session objects of the first session are session object A and session object C, the session objects of the second session may be session object B and session object C.

[0157] In some embodiments of the present application, the second input is used to trigger the electronic device to send a third screenshot in the second session. The second input can be a second operation.

[0158] Exemplarily, the above-mentioned second input includes but is not limited to: touch input of the user to the electronic device screen through a touch device such as a finger or a stylus, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific ones can be determined according to actual usage requirements and are not limited in the embodiments of this application.

[0159] For example, the second input may be a single-click input by the user on a send control displayed on the screen of the electronic device, so as to trigger the electronic device to send the third screenshot in the first session.

[0160] For example, the second input may be an upward swipe input by the user on the screen of the electronic device, so as to trigger the electronic device to send the third screenshot in the first conversation.

[0161] For example, the second input may be a double-click input by the user on the screen of the electronic device, so as to trigger the electronic device to send the third screenshot in the first session.

[0162] For example, the second input may be a voice input of the user to the electronic device. For example, the voice content of the voice input may be: "Send the third screenshot". The electronic device may receive the voice input and send the third screenshot in the first conversation.

[0163] Step 109: In response to the second input, the electronic device removes the second conversation message contained in the third screenshot to obtain a fourth screenshot, and sends the fourth screenshot in the first conversation.

[0164] In some embodiments of the present application, when the third screenshot contains the first conversation message of the second conversation, after receiving the input to send the third screenshot in the first conversation, the electronic device can remove the second conversation message contained in the third screenshot, obtain the fourth screenshot, and send the fourth screenshot in the first conversation.

[0165] In this way, since the electronic device can remove the conversation message of other conversations from the screenshot to be sent before sending it, the privacy of the conversation content can be protected.

[0166] In some embodiments of the present application, after the above step 105, the screenshot method provided by the embodiment of the present application may further include the following step 107.

[0167] Step 107: When displaying the conversation interface of the first conversation, the electronic device displays prompt information on the conversation interface.

[0168] The prompt information is used to prompt the user whether to send the third screenshot in the first conversation.

[0169] In some embodiments of the present application, the first conversation may be a conversation content between an application program having a communication function and at least one conversation object.

[0170] Exemplarily, the first conversation may be the conversation content with conversation object A in a chat application.

[0171] Exemplarily, the first conversation may be a group chat conversation content with conversation object B and conversation object C in a chat application.

[0172] Exemplarily, the first conversation may be the conversation content with the conversation object D in a short video application.

[0173] In some embodiments of the present application, the first conversation may be a private chat conversation or a group chat conversation.

[0174] In some embodiments of the present application, the first conversation message may be a conversation message related to the user in the first conversation. It is understood that since the first conversation message is related to the user, the electronic device may prompt the user of the existence of the first conversation message by displaying the message content or identifier of the first conversation message.

[0175] For example, taking the first conversation message as a new message in the first conversation as an example, the electronic device may display the first conversation message in the form of a floating window.

[0176] For example, taking the first conversation message as a new message in the first conversation as an example, the electronic device may display the first conversation message in a pop-up window.

[0177] It is understandable that when the display content of the electronic device screen changes, the first conversation message of the first conversation is additionally displayed, so that the third screenshot finally obtained by the electronic device includes the first conversation message of the first conversation.

[0178] In some embodiments of the present application, the phrase "displaying the conversation interface of the first conversation" may be understood as: the electronic device screen displaying the conversation interface of the first conversation; or the electronic device displaying a window containing the conversation interface of the first conversation on the screen. This is not specifically limited in the embodiments of the present application.

[0179] In some embodiments of the present application, the electronic device may receive input from a user triggering display of a session interface of the first session, and display the session interface of the first session.

[0180] Exemplarily, the electronic device may receive a click input from the user on the notification identifier of the first conversation message and display the conversation interface of the first conversation.

[0181] Exemplarily, the electronic device may receive input from a user to open a first conversation and display a conversation interface of the first conversation.

[0182] In some embodiments of the present application, the electronic device displays a prompt message on the conversation interface to prompt the user whether to send the third screenshot in the first conversation. This eliminates the need for the user to go to the album to find the third screenshot and then send it when they want to send the third screenshot in the first conversation, thereby simplifying the convenience of sending screenshots to other devices.

[0183] For example, let's take the first conversation as an example, between a user and conversation partner A. While displaying the conversation interface for the first conversation, the electronic device may display prompt information on the conversation interface, including: "Do you want to send the third screenshot to conversation partner A?", "Yes," and "No." If the electronic device receives a "Yes" selection from the user, the electronic device may send the third screenshot in the first conversation. If the electronic device receives a "No" selection from the user, the electronic device may not send the third screenshot in the first conversation.

[0184] In this way, since the electronic device can automatically display a prompt message to prompt the user whether to send the screenshot in the conversation, the user can avoid entering the album to find the screenshot and then sending it when he wants to send the screenshot in the conversation, thereby simplifying the convenience of sending screenshots to other devices.

[0185] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of this application do not limit this.

[0186] The following is an illustrative example of the screenshot method provided in the embodiment of the present application.

[0187] As shown in FIG. 9 , the screenshot method may include the following steps 201 to 204 .

[0188] Step 201: The electronic device receives a screenshot input when the screen displays first content.

[0189] Step 202: In response to the screenshot input, the electronic device displays a first screenshot and a second screenshot when the display content of the screen changes.

[0190] Step 203: The electronic device compares the screenshot contents in the first screenshot and the second screenshot.

[0191] Step 204 : When the electronic device determines based on the comparison result that the first screenshot and the second screenshot have different screenshot contents, the electronic device generates a fifth screenshot based on the first screenshot and the second screenshot.

[0192] Step 205: The electronic device receives a first input for taking a target screenshot.

[0193] The target screenshot may be the first screenshot, the second screenshot, or the fifth screenshot.

[0194] Step 206: The electronic device obtains a third screenshot based on the target screenshot in response to the first input.

[0195] Step 207: The electronic device receives a second input for sending a third screenshot in the first conversation.

[0196] Step 208: In response to the second input, the electronic device removes the second conversation message contained in the third screenshot to obtain a fourth screenshot, and sends the fourth screenshot in the first conversation.

[0197] In this way, even if the screen content of the electronic device changes, the required screenshot can be obtained by obtaining a screenshot containing the screen content before the change and a screenshot containing the screen content after the change. Furthermore, if the screenshot to be sent contains a conversation message from another conversation, the conversation message can be removed before sending. Therefore, the screenshot method provided in the embodiments of the present application can improve the flexibility of screenshots while protecting the privacy of conversation content.

[0198] The screenshot method provided in the embodiment of the present application can be executed by a screenshot device. In the embodiment of the present application, the screenshot device provided in the embodiment of the present application is described by taking the screenshot method executed by the screenshot device as an example.

[0199] FIG10 shows a possible structural diagram of a screenshot device involved in an embodiment of the present application. As shown in FIG10 , the screenshot device 100 may include: a receiving module 101 and a display module 102 .

[0200] Among them, the receiving module 101 is used to receive screenshot input; the display module 102 is used to respond to the screenshot input received by the receiving module 101 and display a first screenshot when the display content of the screen changes. The first screenshot includes a first content, and the first content is the display content of the screen before the change.

[0201] In a possible implementation, the display module 102 is further configured to display the first screenshot and the second screenshot in response to the screenshot input after the receiving module 101 receives the screenshot input;

[0202] The second screenshot includes second content, and the second content is the display content of the screen after the change.

[0203] In a possible implementation, the apparatus further includes: an acquisition module;

[0204] The receiving module 101 is further configured to receive a first input for a target screenshot after the display module 102 displays the first screenshot and the second screenshot, where the target screenshot includes the first screenshot or the second screenshot;

[0205] The acquisition module is configured to acquire a third screenshot based on the target screenshot in response to the first input received by the receiving module 101 .

[0206] In a possible implementation, the first content includes a first sub-content, and the second content includes a first sub-content and a second sub-content;

[0207] The receiving module 101 is specifically configured to receive a first input for the second screenshot when the display module 102 displays the second screenshot, the first input being configured to select target content in the second screenshot, the target content including at least one of a first sub-content and a second sub-content;

[0208] The above acquisition module is specifically used for:

[0209] In response to the first input, a third screenshot including target content is acquired based on the second screenshot.

[0210] In a possible implementation, the apparatus further includes: a processing module;

[0211] The display module 102 is further configured to display the first content before the receiving module 101 receives the screenshot input;

[0212] The receiving module 101 is further configured to receive a first message, and the display content of the screen is changed from the first content to a second content, where the second content includes the first message;

[0213] The processing module is used to take a screenshot of the first content;

[0214] The display module 102 is further configured to display the first screenshot obtained by the processing module.

[0215] In a possible implementation, the receiving module 101 is further configured to receive a second input of sending a third screenshot in the first conversation after the display module 102 displays the first screenshot, where the third screenshot includes the first conversation message of the second conversation;

[0216] The processing module is configured to remove the second conversation message contained in the third screenshot in response to the second input received by the receiving module 101, obtain a fourth screenshot, and send the fourth screenshot in the first conversation.

[0217] In one possible implementation, the processing module is configured to compare the screenshot contents of the first screenshot and the second screenshot after the display module 102 displays the first screenshot; and to generate a fifth screenshot based on the first screenshot and the second screenshot when it is determined based on the comparison result that there are different screenshot contents between the first screenshot and the second screenshot, the fifth screenshot including at least partially different screenshot contents.

[0218] The embodiment of the present application provides a screenshot device that can obtain a desired screenshot by obtaining a screenshot containing the display content of the screen before the electronic device completes the screenshot, even if the display content of the screen changes. This improves the flexibility of screenshots.

[0219] The screenshot device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

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

[0221] The screenshot device provided in the embodiment of the present application can implement the various processes implemented in the above-mentioned screenshot method embodiment and achieve the same technical effect. To avoid repetition, it will not be described here.

[0222] Optionally, as shown in Figure 11, an embodiment of the present application also provides an electronic device 1100, including a processor 1101 and a memory 1102, and the memory 1102 stores a program or instruction that can be run on the processor 1101. When the program or instruction is executed by the processor 1101, the various steps of the above-mentioned screenshot method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0224] FIG12 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0225] The electronic device 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210.

[0226] Those skilled in the art will appreciate that the electronic device 1200 may further include a power source (such as a battery) for powering various components. The power source may be logically connected to the processor 1210 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG12 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.

[0227] Among them, the user input unit 1207 is used to receive screenshot input; the display unit 1206 is used to respond to the screenshot input received by the user input unit 1207, and display a first screenshot when the display content of the screen changes. The first screenshot includes first content, and the first content is the display content of the screen before the change.

[0228] In a possible implementation, the display unit 1206 is further configured to display the first screenshot and the second screenshot in response to the screenshot input after the user input unit 1207 receives the screenshot input;

[0229] The second screenshot includes second content, and the second content is the display content of the screen after the change.

[0230] In a possible implementation, the user input unit 1207 is further configured to receive a first input for a target screenshot after the display unit 1206 displays the first screenshot and the second screenshot, where the target screenshot includes the first screenshot or the second screenshot;

[0231] The processor 1210 is configured to obtain a third screenshot based on the target screenshot in response to the first input received by the user input unit 1207 .

[0232] In a possible implementation, the first content includes a first sub-content, and the second content includes a first sub-content and a second sub-content;

[0233] The user input unit 1207 is specifically configured to receive a first input for the second screenshot when the display unit 1206 displays the second screenshot, the first input being configured to select target content in the second screenshot, the target content including at least one of the first sub-content and the second sub-content;

[0234] The processor 1210 is specifically configured to:

[0235] In response to the first input, a third screenshot including target content is acquired based on the second screenshot.

[0236] In a possible implementation, the display unit 1206 is further configured to display the first content before the user input unit 1207 receives the screenshot input;

[0237] The user input unit 1207 is further configured to receive a first message, and the display content of the screen is changed from the first content to a second content, where the second content includes the first message;

[0238] The processor 1210 is configured to take a screenshot of the first content;

[0239] The display unit 1206 is further configured to display the first screenshot obtained by the processor 1210 .

[0240] In a possible implementation, the user input unit 1207 is further configured to receive, after the display unit 1206 displays the first screenshot, a second input for sending a third screenshot in the first conversation, where the third screenshot includes the first conversation message of the second conversation;

[0241] The processor 1210 is configured to remove the second conversation message contained in the third screenshot in response to the second input received by the user input unit 1207 , obtain a fourth screenshot, and send the fourth screenshot in the first conversation.

[0242] In one possible implementation, the processor 1210 is configured to compare the screenshot contents in the first screenshot and the second screenshot after the display unit 1206 displays the first screenshot; and to generate a fifth screenshot based on the first screenshot and the second screenshot when it is determined based on the comparison result that there are different screenshot contents in the first screenshot and the second screenshot, the fifth screenshot including at least partially different screenshot contents.

[0243] The embodiment of the present application provides an electronic device that can obtain a desired screenshot by obtaining a screenshot containing the display content of the screen before the electronic device completes the screenshot, even if the display content of the screen changes. This improves the flexibility of screenshots.

[0244] It should be understood that in an embodiment of the present application, the input unit 1204 may include a graphics processing unit (GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and at least one of other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0245] The memory 1209 can be used to store software programs and various data. The memory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1209 may include a volatile memory or a non-volatile memory, or the memory 1209 may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 1209 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0246] Processor 1210 may include one or more processing units. Optionally, processor 1210 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1210.

[0247] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned screenshot method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0248] The processor is the 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.

[0249] 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 above-mentioned screenshot method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

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

[0251] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned screenshot method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0252] The processors mentioned in the embodiments of the present application may include general-purpose processors, special-purpose processors, etc., such as a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), an artificial intelligence (AI) processor, a graphics processing unit (GPU), an application-specific integrated circuit (ASIC), a network processor (NP), a field programmable gate array (FPGA), or other programmable logic devices, gate circuits, transistors, discrete hardware components, etc.

[0253] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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 statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0254] 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 the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0255] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A screenshot method, wherein: The method comprises: Receive screenshot input; In response to the screenshot input, when the displayed content of the screen is changed, a first screenshot is displayed, wherein the first screenshot includes first content, and the first content is the displayed content of the screen before the change.

2. The method according to claim 1, wherein: After receiving the screenshot input, the method further includes: In response to the screenshot input, displaying the first screenshot and the second screenshot; The second screenshot includes second content, and the second content is the display content of the screen after the change.

3. The method according to claim 2, wherein: After displaying the first screenshot and the second screenshot, the method further includes: receiving a first input of a target screenshot, wherein the target screenshot includes the first screenshot or the second screenshot; In response to the first input, a third screenshot is acquired based on the target screenshot.

4. The method according to claim 3, wherein: The first content includes a first sub-content, and the second content includes the first sub-content and a second sub-content; The receiving a first input of a target screenshot includes: In a case where the second screenshot is displayed, receiving a first input for the second screenshot, the first input being used to select target content in the second screenshot, the target content including at least one of the first sub-content and the second sub-content; The step of acquiring a third screenshot based on the target screenshot in response to the first input includes: In response to the first input, based on the second screenshot, the third screenshot including the target content is acquired.

5. The method according to claim 1, wherein: The receiving of the screenshot input includes: Display the first content; The step of displaying the first screenshot when the displayed content of the screen changes includes: A first message is received, and the display content of the screen is changed from the first content to a second content, where the second content includes the first message; A screenshot is taken of the first content and the first screenshot is displayed.

6. The method according to claim 1, wherein: After displaying the first screenshot, the method further includes: receiving a second input of sending a third screenshot in the first conversation, wherein the third screenshot includes a first conversation message of the second conversation; In response to the second input, the second conversation message included in the third screenshot is removed to obtain a fourth screenshot, and the fourth screenshot is sent in the first conversation.

7. The method according to claim 2, wherein: After displaying the first screenshot and the second screenshot, the method further includes: Comparing the screenshot contents in the first screenshot and the second screenshot; In the case where it is determined based on the comparison result that there are different screenshot contents between the first screenshot and the second screenshot, a fifth screenshot is generated based on the first screenshot and the second screenshot, wherein the fifth screenshot includes at least part of the screenshot contents. Describe the different screenshot contents.

8. A screenshot device, wherein: The device comprises: a receiving module and a display module; The receiving module is used to receive the screenshot input; The display module is used to display a first screenshot in response to the screenshot input received by the receiving module when the display content of the screen changes, wherein the first screenshot includes a first content, and the first content is the display content of the screen before the change.

9. The device according to claim 8, wherein: The display module is also used for: After the receiving module receives the screenshot input, in response to the screenshot input, displaying the first screenshot and the second screenshot; The second screenshot includes second content, and the second content is the display content of the screen after the change.

10. The device according to claim 9, wherein: The device also includes: an acquisition module; The receiving module is further configured to receive a first input of a target screenshot after the display module displays the first screenshot and the second screenshot, where the target screenshot includes the first screenshot or the second screenshot; The acquisition module is used to acquire a third screenshot based on the target screenshot in response to the first input received by the receiving module.

11. The device according to claim 10, wherein: The first content includes a first sub-content, and the second content includes a first sub-content and a second sub-content; The receiving module is specifically configured to receive a first input on the second screenshot when the display module displays the second screenshot, the first input being used to select target content in the second screenshot, the target content including at least one of the first sub-content and the second sub-content; The acquisition module is specifically used for: In response to the first input, a third screenshot including target content is acquired based on the second screenshot.

12. The device according to claim 8, wherein: The device further comprises: a processing module; The display module is further configured to display the first content before the receiving module receives the screenshot input; The receiving module is further configured to receive a first message, and the display content of the screen is changed from the first content to a second content, wherein the second content includes the first message; The processing module is used to take a screenshot of the first content; The display module is also used to display the first screenshot obtained by the processing module.

13. The device according to claim 8, wherein: The device further comprises: a processing module; The receiving module is further configured to receive a second input of sending a third screenshot in the first conversation after the display module displays the first screenshot, wherein the third screenshot includes the first conversation message of the second conversation; The processing module is used for removing the second session message contained in the third screenshot in response to the second input received by the receiving module, obtaining a fourth screenshot, and sending the fourth screenshot in the first session.

14. The device according to claim 9, wherein: The device further comprises: a processing module; The processing module is used to compare the screenshot contents in the first screenshot and the second screenshot after the display module displays the first screenshot; and to generate a fifth screenshot based on the first screenshot and the second screenshot when it is determined based on the comparison result that there are different screenshot contents in the first screenshot and the second screenshot. The five screenshots include at least partially different screenshot contents.

15. An electronic device, wherein: It comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, 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 7 are implemented.

16. A readable storage medium, wherein: 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 7 are implemented.

17. A chip, wherein: The chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method according to any one of claims 1-7.

18. A computer program product, wherein: The computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Screen capture processing method and apparatus

    CN106970754A

  • Screen capture method, electronic equipment and computer storage medium

    CN113641286A

  • Screen capture method, screen capture device, electronic equipment and readable storage medium

    CN115756275A

  • Screenshot method and device, electronic equipment and readable storage medium

    CN117111811A