WO2021082772A1 - Screenshot method and electronic device - Google Patents

Screenshot method and electronic device Download PDF

Info

Publication number
WO2021082772A1
WO2021082772A1 PCT/CN2020/115316 CN2020115316W WO2021082772A1 WO 2021082772 A1 WO2021082772 A1 WO 2021082772A1 CN 2020115316 W CN2020115316 W CN 2020115316W WO 2021082772 A1 WO2021082772 A1 WO 2021082772A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
screenshot
application
input
target
Prior art date
Application number
PCT/CN2020/115316
Other languages
French (fr)
Chinese (zh)
Inventor
王超
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021082772A1 publication Critical patent/WO2021082772A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a screenshot method and electronic equipment.
  • the user can take a screenshot of the display screen of the electronic device through the screenshot function of the electronic device to obtain a screenshot picture.
  • the user can first trigger the electronic device to display the screenshot picture, and then edit and input the screenshot picture to trigger the electronic device to edit the screenshot picture, and then trigger the electronic device to save the edited screenshot picture to get the user’s feedback The required screenshots.
  • the embodiments of the present application provide a screenshot method and electronic device, which can solve the problem of cumbersome and time-consuming user operations during the screenshot process.
  • a screenshot method is provided, which is applied to an electronic device, and the screenshot method includes: receiving a first input from a user in a case where windows of at least two application programs are displayed, wherein each window They are respectively used to indicate an application to run; in response to the first input, the window of the target application to be screened is captured to obtain a target screenshot picture, and the window of the target application is a window of at least two application windows.
  • an electronic device in a second aspect of the embodiments of the present application, includes: a receiving module and a screenshot module.
  • the receiving module is configured to receive the first input of the user when the windows of at least two application programs are displayed, and each window is respectively used to indicate an application program to be run.
  • the screen capture module is configured to, in response to the first input received by the receiving module, take a screenshot of the window of the target application to be screened to obtain a target screenshot picture, and the window of the target application is a window of at least two application windows.
  • an electronic device in a third aspect of the embodiments of the present application, includes a processor, a memory, and a computer program stored on the memory and running on the processor.
  • the computer program When the computer program is executed by the processor, the computer program On the one hand, the steps of the screenshot method.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the screenshot method described in the first aspect are implemented.
  • the electronic device may take a screenshot of the window of the target application according to the first input of the user to obtain the target screenshot picture. Since the user can trigger the electronic device to take a screenshot of the window of the target application through the first input, there is no need for the user to trigger the electronic device to take a screenshot of the windows of all applications, and then take a screenshot of the obtained windows including all applications.
  • the screenshot image of the content is entered multiple times to obtain the target screenshot image, which can simplify the user's operation and save time.
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the application
  • FIG. 2 is one of the schematic diagrams of a screenshot method provided by an embodiment of the application
  • FIG. 3 is a second schematic diagram of a screenshot method provided by an embodiment of this application.
  • FIG. 4 is one of the schematic diagrams of an example of an interface of a mobile phone provided by an embodiment of this application;
  • FIG. 5 is the third schematic diagram of a screenshot method provided by an embodiment of this application.
  • FIG. 6 is a second schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the application.
  • FIG. 7 is a fourth schematic diagram of a screenshot method provided by an embodiment of this application.
  • FIG. 8 is the third schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the application.
  • FIG. 9 is one of the schematic structural diagrams of an electronic device provided by an embodiment of this application.
  • FIG. 10 is the second structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 11 is the third structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 12 is the fourth structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 13 is a schematic diagram of hardware of an electronic device provided by an embodiment of the application.
  • first and second in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
  • plural means two or more.
  • a plurality of elements refers to two elements or more than two elements.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • the embodiments of the present application provide a screenshot method and electronic device.
  • the electronic device can screenshot the window of the target application program according to the first input of the user to obtain the target screenshot picture. Since the user can trigger the electronic device to take a screenshot of the window of the target application through the first input, there is no need for the user to trigger the electronic device to take a screenshot of the windows of all applications, and then take a screenshot of the obtained windows including all applications.
  • the screenshot image of the content is entered multiple times to obtain the target screenshot image, which can simplify the user's operation and save time.
  • the screenshot method and electronic device provided by the embodiments of the present application can be applied to the process of the electronic device taking screenshot of the window of the application program.
  • the electronic device in the embodiment of the present application may be an electronic device with 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.
  • the following takes the Android operating system as an example to introduce the software environment to which the screenshot method provided in the embodiments of the present application is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application.
  • the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop a software program that implements the screenshot method provided by the embodiment of the application based on the system architecture of the Android operating system as shown in FIG. It can be run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the screenshot method provided in the embodiment of the present application by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present application may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc.
  • the non-mobile electronic device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present application.
  • FIG. 2 shows a flowchart of a screenshot method provided by an embodiment of the present application.
  • the method can be applied to an electronic device having an Android operating system as shown in FIG. 1.
  • the screenshot method provided by the embodiment of the present application may include the following steps 201 and 202.
  • Step 201 In a case where the windows of at least two application programs are displayed, the electronic device receives the first input of the user.
  • the above-mentioned at least two application programs correspond to at least two windows, and each window of the at least two windows is used to indicate a running application program.
  • the electronic device when at least two application programs are running in the foreground of the electronic device, the electronic device may display the corresponding windows of the at least two application programs on the display screen.
  • the display screen of the electronic device may be a full screen.
  • the application indicated by the windows of the at least two application programs may be any application in the electronic device, such as a chat application, a video application, a web application, and a game. Applications, etc.
  • the above-mentioned first input is used to trigger the electronic device to take a screenshot.
  • the above-mentioned first input may be a screenshot input of the user on the electronic device.
  • the display screen of the electronic device is a flexible screen
  • the above-mentioned first input may specifically be a user's folding input to the display screen of the electronic device.
  • the electronic device may be a foldable electronic device, and the aforementioned first input may specifically be a user's folding input to the electronic device.
  • the aforementioned folding input may be an input for the user to fold the display screen of the electronic device to a first preset curvature; or, the aforementioned folding input may be an input for the user to fold the electronic device to a second preset curvature. input of.
  • the above-mentioned first input may specifically be a user's pressing input on a screenshot control displayed on the electronic device.
  • first input may be any form of screenshot input, which is not limited in the embodiment of the present application.
  • the above-mentioned first input may be a user's screen capture input to the electronic device to trigger the electronic device to display a control (for example, the target control in the following embodiment) or a window identifier (for example, At least two window identifiers in the following embodiments).
  • a control for example, the target control in the following embodiment
  • a window identifier for example, At least two window identifiers in the following embodiments.
  • the above-mentioned first input may specifically be a screenshot input of the user on the display screen of the electronic device (for example, the user's pressing input on the screenshot control displayed on the display screen); or, the above-mentioned first input Specifically, it may be a user's input to a physical key or a combination of physical keys of the electronic device.
  • Step 202 In response to the first input, the electronic device takes a screenshot of the window of the target application program to be screenshotted to obtain the target screenshot picture.
  • the window of the target application program mentioned above is a window of at least two application program windows (that is, at least two windows).
  • the above-mentioned target application is an application of at least two applications.
  • the window of the above-mentioned target application may be the window of one application or the windows of multiple applications.
  • the above target screenshot picture includes the content of the window of the target application, but does not include the windows of other applications (that is, the windows of the at least two application programs other than the window of the target application) Content.
  • the screenshot method provided by the embodiment of the present application may further include the following step 301 And step 302.
  • Step 301 The electronic device receives a second input from the user.
  • the above-mentioned second input is used to trigger the electronic device to determine the window of the target application.
  • the above-mentioned second input may be a user's selection input on the window of the target application among the windows of the at least two application programs on the first interface.
  • the above-mentioned second input may specifically be a user's pressing input (for example, a long press input) or a click input (for example, a single click input, a double click input, or a preset number of input Etc.), etc., the embodiments of the present application are not limited here.
  • the user can perform a second input on the display screen, so that the electronic device displays the application window in the area corresponding to the second input Determine the window of the target application.
  • the user may also perform the second input and the first input at the same time.
  • the user may perform the second input first, and if the second input is continuously performed, then perform the first input, that is, the second input and the first input are two consecutive inputs.
  • Step 302 In response to the second input, the electronic device determines the window of the target application to be screenshotted from the windows of the at least two application programs.
  • the electronic device may obtain the position information of the window of the target application on the display screen of the electronic device, and according to the position information, the window of the target application Take a screenshot.
  • the electronic device may display the identifier of the target screenshot picture (for example, the thumbnail corresponding to the target screenshot picture).
  • the electronic device is a mobile phone as an example for description.
  • at least two application windows are displayed on the display screen 10 of the mobile phone;
  • the user can perform a second input to the window of the target application (for example, the application A window) on the display screen 10, and perform the first input to the mobile phone (for example, the folding input to the mobile phone) , So that the mobile phone will determine the application A window as the window of the target application to be screened according to the second input, and take a screenshot of the application A window.
  • the user can make a second input to make the electronic device determine the window of the target application to be screened, and the user can make the first input to make the electronic device take a screenshot of the window of the target application, and After triggering the electronic device to take screenshots of all application windows, the user does not need to input multiple times the obtained screenshots including the contents of the windows of all applications to obtain the target screenshot image, which simplifies the user's operation.
  • this The screenshot method provided by the application embodiment may further include the following step 401 and step 402, and the above step 202 can be specifically implemented by the following step 202a.
  • Step 401 In response to the first input, the electronic device displays the target control.
  • the above-mentioned target control is used to take screenshots of windows in the windows of at least two application programs.
  • the user when the display screen of the electronic device displays at least two application windows, the user can make a first input to make the electronic device display the target control, so that the user can input the target control.
  • This allows the electronic device to take a screenshot of the displayed windows of at least two application programs.
  • the above-mentioned first input may specifically be a user's screen capture input to the electronic device (for example, the user's pressing input on the screen capture control displayed on the display screen, or the user's physical button or input of the electronic device). Physical key combination input) to trigger the electronic device to display the target control.
  • Step 402 The electronic device receives the third input of the user.
  • the above-mentioned third input is the user's input to the target control.
  • the above-mentioned third input is used to trigger the electronic device to determine the window of the target application and take a screenshot of the window of the target application.
  • the above-mentioned third input may specifically be a drag input of the target control by the user on the display screen.
  • the above-mentioned third input may specifically be an input of a user dragging a target control to a window of an application program among the windows of at least two application programs.
  • dragging the target control to the window of an application program can be understood as: dragging the target control to the area where the window of an application program is located on the display screen.
  • Step 202a In response to the third input, the electronic device determines the window of the target application, and takes a screenshot of the window of the target application to obtain the target screenshot picture.
  • the electronic device may determine the window of the target application according to the end position of the third input of the user, and then take a screenshot of the window of the target application.
  • the electronic device may determine the window of the application program displayed in the area where the end position of the third input (for example, drag input) is located as the window of the target application program, which is the target control after moving
  • the window of the application displayed in the area where the location is located is determined as the window of the target application.
  • the electronic device may obtain position information of the window of the target application program on the display screen of the electronic device, and according to the position information, Take a screenshot of the window of the target application.
  • the mobile phone may display a target control (for example, control 11) on the display screen 10;
  • the user can make a third input (for example, drag input 12) to the control 11, so that the mobile phone can move the control 11 to the position 13, so that the mobile phone can be located in the area where the position 13 is located.
  • the window of the displayed application (for example, the window of application A) is determined to be the window of the target application, and a screenshot of the window of the target application is taken.
  • the user can make a first input to make the electronic device display the target control, and then the user can make a third input to the target control, so that the electronic device can take a screenshot of the window of the target application without the user being
  • the electronic device is triggered to take screenshots of the windows of all applications, the obtained screenshots including the contents of the windows of all applications are inputted multiple times to obtain the target screenshots, which can simplify the user's operation.
  • this The screenshot method provided by the application embodiment may further include the following step 501 and step 502, and the above step 202 can be specifically implemented by the following step 202b.
  • Step 501 In response to the first input, the electronic device displays at least two window identifiers.
  • each of the above at least two window identifiers is used to indicate a window of an application program, and the windows of the application program indicated by each window identifier are different.
  • the user when the display screen of the electronic device displays at least two application windows, the user can perform the first input to cause the electronic device to display at least two window identifiers, so that the user can display the at least two window identifiers. Inputting a window identifier, so that the electronic device can take a screenshot of the displayed windows of at least two application programs.
  • one window identifier in each window identifier may specifically be: a thumbnail of the window of the application program corresponding to the one window identifier, or the window of the application program corresponding to the one window identifier The name.
  • the above-mentioned first input may specifically be a user's screen capture input to the electronic device (for example, the user's pressing input on the screen capture control displayed on the display screen, or the user's physical button or input of the electronic device). Physical key combination input) to trigger the electronic device to display at least two window identifiers.
  • Step 502 The electronic device receives the fourth input of the user.
  • the above-mentioned fourth input is the user's input of the target window identifier among the at least two window identifiers.
  • the above-mentioned fourth input is used to trigger the electronic device to determine the window of the target application and take a screenshot of the window of the target application.
  • the aforementioned fourth input may specifically be a click input or a press input (for example, a long press input) of the user on the display screen of the target window identification.
  • the aforementioned target window identifier may include one window identifier or multiple window identifiers.
  • Step 202b In response to the fourth input, the electronic device determines the window of the target application, and takes a screenshot of the window of the target application to obtain the target screenshot picture.
  • the window of the target application program mentioned above is the window of the application program indicated by the target window identifier.
  • the electronic device may search for the window of the application program corresponding to the target window identifier from a list of windows prestored in the electronic device to determine the window of the application program as the window of the target application program.
  • the window list includes at least two correspondences, and each correspondence is a correspondence between a window identifier and a window of an application program.
  • the electronic device may obtain position information of the window of the target application program on the display screen of the electronic device, and according to the position information, Take a screenshot of the window of the target application.
  • the mobile phone may display at least two window identifiers (such as application The thumbnail of the application A window, the thumbnail of the application B window, the thumbnail of the application C window, and the thumbnail of the application D window).
  • window identifier corresponds to the window of an application (ie, the window of application A).
  • the thumbnail corresponds to the application A window
  • the thumbnail of the application B window corresponds to the application B window
  • the thumbnail of the application C window corresponds to the application C window
  • the thumbnail of the application D window corresponds to the application D window
  • the user can perform a fourth input on the target window identifier (for example, the thumbnail of the application A window) in the at least two window identifiers, so that the mobile phone will correspond to the thumbnail of the application A window
  • the application A window is determined as the target application window, and a screenshot of the application A window is taken.
  • the user can perform the first input so that the electronic device displays at least two window identifiers, and then the user can perform the fourth input on the target window identifier among the at least two window identifiers, so that the electronic device can Take screenshots of application windows, without the user having to trigger the electronic device to take screenshots of all application windows, and then enter the obtained screenshots including the contents of all application windows multiple times to obtain the target screenshot image , This can simplify the user's operation.
  • the embodiment of the present application provides a screenshot method.
  • the electronic device can screenshot the window of the target application program according to the first input of the user to obtain the target screenshot picture. Since the user can trigger the electronic device to take a screenshot of the window of the target application through the first input, there is no need for the user to trigger the electronic device to take a screenshot of the windows of all applications, and then take a screenshot of the obtained windows including all applications.
  • the screenshot image of the content is entered multiple times to obtain the target screenshot image, which can simplify the user's operation and save time.
  • the screenshot method provided in the embodiment of the present application may further include the following step 601, and the above steps 202 can be specifically implemented by the following step 202c.
  • Step 601 The electronic device acquires target location information in response to the first input.
  • the foregoing target location information is used to indicate the location of the window of the target application on the display screen of the electronic device.
  • the above-mentioned target location information may be coordinate information of the window of the target application on the display screen, and the coordinate information may be the coordinates of the window of the target application in the default coordinate system on the display screen. value.
  • the aforementioned coordinate information may specifically be the coordinate value of at least one contour point of the window of the target application, and each contour point in the at least one contour point is the contour line of the window of the target application. On the point.
  • the points on the outline of the window of the target application can be understood as: some pixels of the window of the target application on the display screen, and these pixels can reflect the outline of the window of the target application.
  • Step 202c The electronic device takes a screenshot of the window of the target application program according to the target location information to obtain the target screenshot picture.
  • the electronic device may determine the screenshot area (the screenshot area is the area where the window of the target application program is located on the display screen) according to the target location information, and perform a screenshot of the screenshot area to obtain the target screenshot picture.
  • the electronic device when an application window is displayed on the display screen of the electronic device, the electronic device may directly take a screenshot of the display screen of the electronic device according to the first input of the user to obtain the target screenshot picture .
  • FIG. 9 shows a schematic diagram of a possible structure of an electronic device involved in an embodiment of the present application.
  • the electronic device 90 may include: a receiving module 91 and a screenshot module 92.
  • the receiving module 91 is configured to receive the first input of the user when the windows of at least two application programs are displayed, wherein each window is respectively used to indicate an application program to be run.
  • the screenshot module 92 is configured to, in response to the first input received by the receiving module 91, take a screenshot of the window of the target application to be screenshotted to obtain a target screenshot picture, and the window of the target application is a window of at least two application windows .
  • the above-mentioned receiving module 91 is further configured to receive the user's second input before receiving the user's first input.
  • the electronic device 90 provided in the embodiment of the present application further includes: a determining module 93.
  • the determining module 93 is configured to determine, from the windows of at least two application programs, the window of the target application program to be screened in response to the second input received by the receiving module 91.
  • the electronic device 90 provided in the embodiment of the present application further includes a display module 94.
  • the display module 94 is configured to display a target control before the screenshot module 92 takes a screenshot of the window of the target application, and the target control is used to take a screenshot of the windows of the windows of at least two applications.
  • the above-mentioned receiving module 91 is also configured to receive a third input of the user, and the third input is the input of the user to the target control.
  • the above-mentioned screenshot module 92 is specifically configured to determine the window of the target application in response to the third input received by the receiving module 91, and take a screenshot of the window of the target application.
  • the above-mentioned display module 94 is configured to display at least two window identifiers before the screenshot module 92 takes a screenshot of the window of the target application, and each window identifier is used to indicate a window of an application. .
  • the above-mentioned receiving module 91 is further configured to receive a fourth input of the user, and the fourth input is the user's input to the target window identifier among the at least two window identifiers.
  • the above-mentioned screenshot module 92 is specifically configured to determine the window of the target application in response to the fourth input received by the receiving module 91, and take a screenshot of the window of the target application, where the window of the target application is the application indicated by the target window identifier Window.
  • the electronic device 90 provided in the embodiment of the present application further includes: an acquisition module 95.
  • the acquiring module 95 is configured to acquire target location information before the screenshot module 92 takes a screenshot of the window of the target application, and the target location information is used to indicate the position of the window of the target application on the display screen of the electronic device.
  • the aforementioned screenshot module 92 is specifically configured to take a screenshot of the window of the target application program according to the target location information acquired by the acquisition module 95.
  • the electronic device provided in the embodiment of the present application can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, the detailed description will not be repeated here.
  • the embodiment of the present application provides an electronic device. Since the user can trigger the electronic device to take screenshots of the windows of the target application through the first input, the user does not need to trigger the electronic device to take screenshots of all application windows and then The obtained screenshot pictures including the contents of the windows of all the application programs are inputted multiple times to obtain the target screenshot pictures, which can simplify the user's operation and save time.
  • FIG. 13 is a schematic diagram of hardware of an electronic device that implements each embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, The processor 110, and the power supply 111 and other components.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the user input unit 107 is configured to receive the first input of the user when the windows of at least two application programs are displayed, and each window is respectively used to indicate an application program to be run.
  • the processor 110 is configured to, in response to the first input, take a screenshot of a window of a target application to be screenshotted to obtain a target screenshot picture, and the window of the target application is a window of at least two application windows.
  • the embodiment of the present application provides an electronic device. Since the user can trigger the electronic device to take screenshots of the windows of the target application through the first input, the user does not need to trigger the electronic device to take screenshots of all application windows and then The obtained screenshot pictures including the contents of the windows of all the application programs are inputted multiple times to obtain the target screenshot pictures, which can simplify the user's operation and save time.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device and the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present application further provides an electronic device, including a processor 110 as shown in FIG. 13, a memory 109, a computer program stored in the memory 109 and running on the processor 110, the computer
  • the program is executed by the processor 110, each process of the foregoing method embodiment is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored.
  • the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.

Landscapes

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

Abstract

Disclosed in embodiments of the present application are a screenshot method and an electronic device. The method comprises: in a case of displaying windows of at least two applications, receiving a first input of a user, each window being separately used for indicating one running application; and in response to the first input, capturing a screenshot of the window of a target application to be screenshotted to obtain a target screenshot picture. The window of the target application is a window in the windows of the at least two applications. Embodiments of the present application are applied to a process in which an electronic device captures a screenshot of a window of an application.

Description

截屏方法及电子设备Screen capture method and electronic equipment
本申请要求于2019年10月28日提交国家知识产权局、申请号为201911032785.X、申请名称为“一种截屏方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on October 28, 2019, the application number is 201911032785.X, and the application name is "a screen capture method and electronic equipment", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请实施例涉及通信技术领域,尤其涉及一种截屏方法及电子设备。The embodiments of the present application relate to the field of communication technologies, and in particular, to a screenshot method and electronic equipment.
背景技术Background technique
通常,用户可以通过电子设备的截图功能,对电子设备的显示屏进行截屏,以得到截屏图片。Generally, the user can take a screenshot of the display screen of the electronic device through the screenshot function of the electronic device to obtain a screenshot picture.
一般地,用户可以先触发电子设备显示截屏图片,然后对该截屏图片进行编辑输入,以触发电子设备对该截屏图片进行编辑处理,再触发电子设备保存编辑处理后的截屏图片,以得到用户所需的截屏图片。Generally, the user can first trigger the electronic device to display the screenshot picture, and then edit and input the screenshot picture to trigger the electronic device to edit the screenshot picture, and then trigger the electronic device to save the edited screenshot picture to get the user’s feedback The required screenshots.
但是,上述方法中,由于用户需要对截屏得到的截屏图片进行多次输入,才能得到用户所需的截屏图片,因此截屏过程中用户的操作比较繁琐且耗时。However, in the above method, since the user needs to input the screenshot image obtained by the screenshot multiple times to obtain the screenshot image required by the user, the user's operation during the screenshot process is cumbersome and time-consuming.
发明内容Summary of the invention
本申请实施例提供一种截屏方法及电子设备,可以解决截屏过程中用户的操作比较繁琐且耗时的问题。The embodiments of the present application provide a screenshot method and electronic device, which can solve the problem of cumbersome and time-consuming user operations during the screenshot process.
为了解决上述技术问题,本申请实施例采用如下技术方案:In order to solve the above technical problems, the following technical solutions are adopted in the embodiments of the present application:
本申请实施例的第一方面,提供一种截屏方法,应用于电子设备,该截屏方法包括:在显示至少两个应用程序的窗口的情况下,接收用户的第一输入,其中,每个窗口分别用于指示运行的一个应用程序;响应于第一输入,对待截屏的目标应用程序的窗口进行截屏,得到目标截屏图片,该目标应用程序的窗口为至少两个应用程序的窗口中的窗口。In the first aspect of the embodiments of the present application, a screenshot method is provided, which is applied to an electronic device, and the screenshot method includes: receiving a first input from a user in a case where windows of at least two application programs are displayed, wherein each window They are respectively used to indicate an application to run; in response to the first input, the window of the target application to be screened is captured to obtain a target screenshot picture, and the window of the target application is a window of at least two application windows.
本申请实施例的第二方面,提供一种电子设备,该电子设备包括:接收模和截屏模块。其中,接收模块,用于在显示至少两个应用程序的窗口的情况下,接收用户的第一输入,每个窗口分别用于指示运行的一个应用程序。截屏模块,用于响应于接收模块接收的第一输入,对待截屏的目标应用程序的窗口进行截屏,得到目标截屏图片,该目标应用程序的窗口为至少两个应用程序的窗口中的窗口。In a second aspect of the embodiments of the present application, an electronic device is provided. The electronic device includes: a receiving module and a screenshot module. Wherein, the receiving module is configured to receive the first input of the user when the windows of at least two application programs are displayed, and each window is respectively used to indicate an application program to be run. The screen capture module is configured to, in response to the first input received by the receiving module, take a screenshot of the window of the target application to be screened to obtain a target screenshot picture, and the window of the target application is a window of at least two application windows.
本申请实施例的第三方面,提供一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现如第一方面所述的截屏方法的步骤。In a third aspect of the embodiments of the present application, an electronic device is provided. The electronic device includes a processor, a memory, and a computer program stored on the memory and running on the processor. When the computer program is executed by the processor, the computer program On the one hand, the steps of the screenshot method.
本申请实施例的第四方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的截屏方法的步骤。In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the screenshot method described in the first aspect are implemented.
在本申请实施例中,在显示至少两个应用程序的窗口的情况下,电子设备可以根据用户的第一输入,对目标应用程序的窗口进行截屏,得到目标截屏图片。由于用户 可以通过第一输入,以触发电子设备对目标应用程序的窗口进行截屏,而无需用户在触发电子设备对所有应用程序的窗口进行截屏之后,再对得到的包括该所有应用程序的窗口的内容的截屏图片进行多次输入,才得到目标截屏图片,如此可以简化用户的操作且节约耗时。In the embodiment of the present application, in the case of displaying the windows of at least two applications, the electronic device may take a screenshot of the window of the target application according to the first input of the user to obtain the target screenshot picture. Since the user can trigger the electronic device to take a screenshot of the window of the target application through the first input, there is no need for the user to trigger the electronic device to take a screenshot of the windows of all applications, and then take a screenshot of the obtained windows including all applications. The screenshot image of the content is entered multiple times to obtain the target screenshot image, which can simplify the user's operation and save time.
附图说明Description of the drawings
图1为本申请实施例提供的一种安卓操作系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the application;
图2为本申请实施例提供的一种截屏方法的示意图之一;FIG. 2 is one of the schematic diagrams of a screenshot method provided by an embodiment of the application;
图3为本申请实施例提供的一种截屏方法的示意图之二;FIG. 3 is a second schematic diagram of a screenshot method provided by an embodiment of this application;
图4为本申请实施例提供的一种手机的界面的实例示意图之一;FIG. 4 is one of the schematic diagrams of an example of an interface of a mobile phone provided by an embodiment of this application;
图5为本申请实施例提供的一种截屏方法的示意图之三;FIG. 5 is the third schematic diagram of a screenshot method provided by an embodiment of this application;
图6为本申请实施例提供的一种手机的界面的实例示意图之二;FIG. 6 is a second schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the application;
图7为本申请实施例提供的一种截屏方法的示意图之四;FIG. 7 is a fourth schematic diagram of a screenshot method provided by an embodiment of this application;
图8为本申请实施例提供的一种手机的界面的实例示意图之三;FIG. 8 is the third schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the application; FIG.
图9为本申请实施例提供的一种电子设备的结构示意图之一;FIG. 9 is one of the schematic structural diagrams of an electronic device provided by an embodiment of this application;
图10为本申请实施例提供的一种电子设备的结构示意图之二;FIG. 10 is the second structural diagram of an electronic device provided by an embodiment of this application;
图11为本申请实施例提供的一种电子设备的结构示意图之三;FIG. 11 is the third structural diagram of an electronic device provided by an embodiment of this application;
图12为本申请实施例提供的一种电子设备的结构示意图之四;FIG. 12 is the fourth structural diagram of an electronic device provided by an embodiment of this application;
图13为本申请实施例提供的一种电子设备的硬件示意图。FIG. 13 is a schematic diagram of hardware of an electronic device provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个元件是指两个元件或两个以上元件。In the description of the embodiments of the present application, unless otherwise specified, the meaning of "plurality" means two or more. For example, a plurality of elements refers to two elements or more than two elements.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,显示面板和/或背光,可以表示:单独存在显示面板,同时存在显示面板和背光,单独存在背光这三种情况。本文中符号“/”表示关联对象是或者的关系,例如输入/输出表示输入或者输出。The term "and/or" in this article refers to an association relationship that describes associated objects, which means that there can be three relationships, for example, a display panel and/or backlight, which can mean that there is a display panel alone, and a display panel and a backlight exist at the same time. There are three cases of backlight alone. The symbol "/" in this document indicates the relationship that the associated object is or, for example, input/output indicates input or output.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
本申请实施例提供一种截屏方法及电子设备,在显示至少两个应用程序的窗口的情况下,电子设备可以根据用户的第一输入,对目标应用程序的窗口进行截屏,得到目标截屏图片。由于用户可以通过第一输入,以触发电子设备对目标应用程序的窗口 进行截屏,而无需用户在触发电子设备对所有应用程序的窗口进行截屏之后,再对得到的包括该所有应用程序的窗口的内容的截屏图片进行多次输入,才得到目标截屏图片,如此可以简化用户的操作且节约耗时。The embodiments of the present application provide a screenshot method and electronic device. In the case of displaying the windows of at least two application programs, the electronic device can screenshot the window of the target application program according to the first input of the user to obtain the target screenshot picture. Since the user can trigger the electronic device to take a screenshot of the window of the target application through the first input, there is no need for the user to trigger the electronic device to take a screenshot of the windows of all applications, and then take a screenshot of the obtained windows including all applications. The screenshot image of the content is entered multiple times to obtain the target screenshot image, which can simplify the user's operation and save time.
本申请实施例提供的截屏方法及电子设备,可以应用于电子设备对应用程序的窗口进行截屏的过程。The screenshot method and electronic device provided by the embodiments of the present application can be applied to the process of the electronic device taking screenshot of the window of the application program.
本申请实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The electronic device in the embodiment of the present application may be an electronic device with 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.
下面以安卓操作系统为例,介绍一下本申请实施例提供的截屏方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the screenshot method provided in the embodiments of the present application is applied.
如图1所示,为本申请实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application. In Figure 1, the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本申请实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本申请实施例提供的截屏方法的软件程序,从而使得该截屏方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本申请实施例提供的截屏方法。Taking the Android operating system as an example, in this embodiment of the application, developers can develop a software program that implements the screenshot method provided by the embodiment of the application based on the system architecture of the Android operating system as shown in FIG. It can be run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the screenshot method provided in the embodiment of the present application by running the software program in the Android operating system.
本申请实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The electronic device in the embodiment of the present application may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc. The non-mobile electronic device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present application.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的一种截屏方法及电子设备进行详细地说明。The following describes in detail a screenshot method and electronic device provided by the embodiments of the present application through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请实施例提供的一种截屏方法,图2示出了本申请实施例提供的一种截屏方法的流程图,该方法可以应用于具有如图1所示的安卓操作系统的电子设备。如图2所示,本申请实施例提供的截屏方法可以包括下述的步骤201和步骤202。An embodiment of the present application provides a screenshot method. FIG. 2 shows a flowchart of a screenshot method provided by an embodiment of the present application. The method can be applied to an electronic device having an Android operating system as shown in FIG. 1. As shown in FIG. 2, the screenshot method provided by the embodiment of the present application may include the following steps 201 and 202.
步骤201、在显示至少两个应用程序的窗口的情况下,电子设备接收用户的第一输入。Step 201: In a case where the windows of at least two application programs are displayed, the electronic device receives the first input of the user.
本申请实施例中,上述至少两个应用程序对应至少两个窗口,该至少两个窗口中的每个窗口分别用于指示运行的一个应用程序。In the embodiment of the present application, the above-mentioned at least two application programs correspond to at least two windows, and each window of the at least two windows is used to indicate a running application program.
本申请实施例中,在电子设备前台运行至少两个应用程序的情况下,电子设备可以在显示屏上显示对应的至少两个应用程序的窗口。In the embodiment of the present application, when at least two application programs are running in the foreground of the electronic device, the electronic device may display the corresponding windows of the at least two application programs on the display screen.
可选地,本申请实施例中,电子设备的显示屏可以为全面屏。Optionally, in this embodiment of the present application, the display screen of the electronic device may be a full screen.
可选地,本申请实施例中,上述至少两个应用程序的窗口指示的应用程序可以为电子设备中的任何应用程序,例如聊天类应用程序、视频类应用程序、网页类应用程序以及游戏类应用程序等。Optionally, in the embodiment of the present application, the application indicated by the windows of the at least two application programs may be any application in the electronic device, such as a chat application, a video application, a web application, and a game. Applications, etc.
可选地,本申请实施例中,上述第一输入用于触发电子设备进行截屏。Optionally, in this embodiment of the present application, the above-mentioned first input is used to trigger the electronic device to take a screenshot.
可选地,本申请实施例中,上述第一输入可以为用户对电子设备的截屏输入。Optionally, in this embodiment of the present application, the above-mentioned first input may be a screenshot input of the user on the electronic device.
可选地,本申请实施例中,电子设备的显示屏为柔性屏,上述第一输入具体可以为用户对电子设备的显示屏的折叠输入。Optionally, in this embodiment of the present application, the display screen of the electronic device is a flexible screen, and the above-mentioned first input may specifically be a user's folding input to the display screen of the electronic device.
可选地,本申请实施例中,电子设备可以为可折叠电子设备,上述第一输入具体可以为用户对电子设备的折叠输入。Optionally, in this embodiment of the present application, the electronic device may be a foldable electronic device, and the aforementioned first input may specifically be a user's folding input to the electronic device.
可选地,本申请实施例中,上述折叠输入可以为用户将电子设备的显示屏折叠至第一预设曲率的输入;或者,上述折叠输入可以为用户将电子设备折叠至第二预设曲率的输入。Optionally, in the embodiment of the present application, the aforementioned folding input may be an input for the user to fold the display screen of the electronic device to a first preset curvature; or, the aforementioned folding input may be an input for the user to fold the electronic device to a second preset curvature. input of.
可选地,本申请实施例中,上述第一输入具体可以为用户对电子设备显示的截屏控件的按压输入。Optionally, in this embodiment of the present application, the above-mentioned first input may specifically be a user's pressing input on a screenshot control displayed on the electronic device.
需要说明的是,上述第一输入可以为任何形式的截屏输入,本申请实施例在此不做限制。It should be noted that the above-mentioned first input may be any form of screenshot input, which is not limited in the embodiment of the present application.
可选地,本申请实施例中,上述第一输入可以为用户对电子设备的截屏输入,以触发电子设备显示用于截屏的控件(例如下述实施例中的目标控件)或窗口标识(例如下述实施例中的至少两个窗口标识)。Optionally, in this embodiment of the present application, the above-mentioned first input may be a user's screen capture input to the electronic device to trigger the electronic device to display a control (for example, the target control in the following embodiment) or a window identifier (for example, At least two window identifiers in the following embodiments).
可选地,本申请实施例中,上述第一输入具体可以为用户在电子设备的显示屏上的截屏输入(例如用户对显示屏上显示的截屏控件的按压输入);或者,上述第一输入具体可以为用户对电子设备的物理按键或物理按键组合的输入。Optionally, in this embodiment of the present application, the above-mentioned first input may specifically be a screenshot input of the user on the display screen of the electronic device (for example, the user's pressing input on the screenshot control displayed on the display screen); or, the above-mentioned first input Specifically, it may be a user's input to a physical key or a combination of physical keys of the electronic device.
步骤202、电子设备响应于第一输入,对待截屏的目标应用程序的窗口进行截屏,得到目标截屏图片。Step 202: In response to the first input, the electronic device takes a screenshot of the window of the target application program to be screenshotted to obtain the target screenshot picture.
本申请实施例中,上述目标应用程序的窗口为至少两个应用程序的窗口(即至少两个窗口)中的窗口。In the embodiment of the present application, the window of the target application program mentioned above is a window of at least two application program windows (that is, at least two windows).
本申请实施例中,上述目标应用程序为至少两个应用程序中的应用程序。In the embodiment of the present application, the above-mentioned target application is an application of at least two applications.
可选地,本申请实施例中,上述目标应用程序的窗口可以为一个应用程序的窗口或多个应用程序的窗口。Optionally, in this embodiment of the present application, the window of the above-mentioned target application may be the window of one application or the windows of multiple applications.
可以理解,上述目标截屏图片中包括目标应用程序的窗口的内容,而并没有包括其他应用程序的窗口(即至少两个应用程序的窗口中除目标应用程序的窗口之外的应用程序的窗口)的内容。It can be understood that the above target screenshot picture includes the content of the window of the target application, but does not include the windows of other applications (that is, the windows of the at least two application programs other than the window of the target application) Content.
可选地,在本申请实施例的一种可能的实现方式中,结合图2,如图3所示,在上述步骤201之前,本申请实施例提供的截屏方法还可以包括下述的步骤301和步骤 302。Optionally, in a possible implementation of the embodiment of the present application, with reference to FIG. 2, as shown in FIG. 3, before the above step 201, the screenshot method provided by the embodiment of the present application may further include the following step 301 And step 302.
步骤301、电子设备接收用户的第二输入。Step 301: The electronic device receives a second input from the user.
本申请实施例中,上述第二输入用于触发电子设备确定目标应用程序的窗口。In the embodiment of the present application, the above-mentioned second input is used to trigger the electronic device to determine the window of the target application.
可选地,本申请实施例中,上述第二输入可以为用户在第一界面上对至少两个应用程序的窗口中的目标应用程序的窗口的选择输入。Optionally, in this embodiment of the present application, the above-mentioned second input may be a user's selection input on the window of the target application among the windows of the at least two application programs on the first interface.
可选地,本申请实施例中,上述第二输入具体可以为用户对目标应用程序的窗口的按压输入(例如长按输入)或点击输入(例如单击输入、双击输入或预设次数的输入等)等,本申请实施例在此不做限制。Optionally, in this embodiment of the present application, the above-mentioned second input may specifically be a user's pressing input (for example, a long press input) or a click input (for example, a single click input, a double click input, or a preset number of input Etc.), etc., the embodiments of the present application are not limited here.
可以理解,在电子设备的显示屏显示至少两个应用程序的窗口的情况下,用户可以在该显示屏上进行第二输入,以使得电子设备将第二输入对应的区域显示的应用程序的窗口确定为目标应用程序的窗口。It can be understood that in the case where the display screen of the electronic device displays at least two application windows, the user can perform a second input on the display screen, so that the electronic device displays the application window in the area corresponding to the second input Determine the window of the target application.
可选地,本申请实施例中,用户也可以同时进行第二输入和第一输入。Optionally, in this embodiment of the application, the user may also perform the second input and the first input at the same time.
可选地,本申请实施例中,用户可以先进行第二输入,并在持续进行第二输入的情况下,再进行第一输入,即第二输入和第一输入为两个连续的输入。Optionally, in this embodiment of the present application, the user may perform the second input first, and if the second input is continuously performed, then perform the first input, that is, the second input and the first input are two consecutive inputs.
步骤302、电子设备响应于第二输入,从至少两个应用程序的窗口中确定待截屏的目标应用程序的窗口。Step 302: In response to the second input, the electronic device determines the window of the target application to be screenshotted from the windows of the at least two application programs.
可选地,本申请实施例中,电子设备在接收到第一输入之后,可以获取目标应用程序的窗口在电子设备的显示屏中的位置信息,并根据该位置信息,对目标应用程序的窗口进行截屏。Optionally, in this embodiment of the present application, after receiving the first input, the electronic device may obtain the position information of the window of the target application on the display screen of the electronic device, and according to the position information, the window of the target application Take a screenshot.
可选地,本申请实施例中,电子设备在截屏得到目标截屏图片之后,可以显示目标截屏图片的标识(例如目标截屏图片对应的缩略图)。Optionally, in the embodiment of the present application, after the electronic device obtains the target screenshot picture by taking the screenshot, it may display the identifier of the target screenshot picture (for example, the thumbnail corresponding to the target screenshot picture).
示例性的,以电子设备为手机为例进行说明。如图4中的(A)所示,手机的显示屏10中显示有至少两个应用程序的窗口(例如应用程序A窗口、应用程序B窗口、应用程序C窗口以及应用程序D窗口);如图4中的(B)所示,用户可以在显示屏10上对目标应用程序的窗口(例如应用程序A窗口)进行第二输入,且对手机进行第一输入(例如对手机的折叠输入),以使得手机将根据第二输入将应用程序A窗口确定为待截屏的目标应用程序的窗口,并对该应用程序A窗口进行截屏。Illustratively, the electronic device is a mobile phone as an example for description. As shown in (A) in Figure 4, at least two application windows (for example, application A window, application B window, application C window, and application D window) are displayed on the display screen 10 of the mobile phone; As shown in (B) in FIG. 4, the user can perform a second input to the window of the target application (for example, the application A window) on the display screen 10, and perform the first input to the mobile phone (for example, the folding input to the mobile phone) , So that the mobile phone will determine the application A window as the window of the target application to be screened according to the second input, and take a screenshot of the application A window.
本申请实施例中,用户可以进行第二输入,以使得电子设备确定待截屏的目标应用程序的窗口,并且用户可以进行第一输入,以使得电子设备对该目标应用程序的窗口进行截屏,而无需用户在触发电子设备对所有应用程序的窗口进行截屏之后,再对得到的包括该所有应用程序的窗口的内容的截屏图片进行多次输入,才得到目标截屏图片,如此可以简化用户的操作。In the embodiment of the present application, the user can make a second input to make the electronic device determine the window of the target application to be screened, and the user can make the first input to make the electronic device take a screenshot of the window of the target application, and After triggering the electronic device to take screenshots of all application windows, the user does not need to input multiple times the obtained screenshots including the contents of the windows of all applications to obtain the target screenshot image, which simplifies the user's operation.
可选地,在本申请实施例的另一种可能的实现方式中,结合图2,如图5所示,在上述步骤202中的“对待截屏的目标应用程序的窗口进行截屏”之前,本申请实施例提供的截屏方法还可以包括下述的步骤401和步骤402,并且上述步骤202具体可以通过下述步骤202a实现。Optionally, in another possible implementation manner of the embodiment of the present application, in conjunction with FIG. 2, as shown in FIG. 5, before "taking a screenshot of the window of the target application to be screenshot" in step 202, this The screenshot method provided by the application embodiment may further include the following step 401 and step 402, and the above step 202 can be specifically implemented by the following step 202a.
步骤401、电子设备响应于第一输入,显示目标控件。Step 401: In response to the first input, the electronic device displays the target control.
本申请实施例中,上述目标控件用于对至少两个应用程序的窗口中的窗口进行截屏。In the embodiment of the present application, the above-mentioned target control is used to take screenshots of windows in the windows of at least two application programs.
本申请实施例中,在电子设备的显示屏显示至少两个应用程序的窗口的情况下,用户可以通过进行第一输入,以使得电子设备显示目标控件,从而用户可以对该目标控件进行输入,以使得电子设备对显示的至少两个应用程序的窗口进行截屏。In the embodiment of the present application, when the display screen of the electronic device displays at least two application windows, the user can make a first input to make the electronic device display the target control, so that the user can input the target control. This allows the electronic device to take a screenshot of the displayed windows of at least two application programs.
可选地,本申请实施例中,上述第一输入具体可以为用户对电子设备的截屏输入(例如,用户对显示屏上显示的截屏控件的按压输入,或者,用户对电子设备的物理按键或物理按键组合的输入),以触发电子设备显示目标控件。Optionally, in this embodiment of the present application, the above-mentioned first input may specifically be a user's screen capture input to the electronic device (for example, the user's pressing input on the screen capture control displayed on the display screen, or the user's physical button or input of the electronic device). Physical key combination input) to trigger the electronic device to display the target control.
步骤402、电子设备接收用户的第三输入。Step 402: The electronic device receives the third input of the user.
本申请实施例中,上述第三输入为用户对目标控件的输入。In the embodiment of the present application, the above-mentioned third input is the user's input to the target control.
本申请实施例中,上述第三输入用于触发电子设备确定目标应用程序的窗口,并对该目标应用程序的窗口进行截屏。In the embodiment of the present application, the above-mentioned third input is used to trigger the electronic device to determine the window of the target application and take a screenshot of the window of the target application.
可选地,本申请实施例中,上述第三输入具体可以为用户在显示屏上对目标控件的拖动输入。Optionally, in this embodiment of the present application, the above-mentioned third input may specifically be a drag input of the target control by the user on the display screen.
可选地,本申请实施例中,上述第三输入具体可以为用户将目标控件拖动到至少两个应用程序的窗口中的一个应用程序的窗口的输入。Optionally, in this embodiment of the present application, the above-mentioned third input may specifically be an input of a user dragging a target control to a window of an application program among the windows of at least two application programs.
需要说明的是,将目标控件拖动到一个应用程序的窗口可以理解为:将目标控件拖动到一个应用程序的窗口在显示屏上所处的区域内。It should be noted that dragging the target control to the window of an application program can be understood as: dragging the target control to the area where the window of an application program is located on the display screen.
步骤202a、电子设备响应于第三输入,确定目标应用程序的窗口,并对该目标应用程序的窗口进行截屏,得到目标截屏图片。 Step 202a: In response to the third input, the electronic device determines the window of the target application, and takes a screenshot of the window of the target application to obtain the target screenshot picture.
本申请实施例中,电子设备可以根据用户的第三输入的结束位置,确定目标应用程序的窗口,然后对该目标应用程序的窗口进行截屏。In the embodiment of the present application, the electronic device may determine the window of the target application according to the end position of the third input of the user, and then take a screenshot of the window of the target application.
可选地,本申请实施例中,电子设备可以将第三输入(例如拖动输入)的结束位置所在的区域显示的应用程序的窗口,确定为目标应用程序的窗口,即将移动之后的目标控件所处的位置所在的区域显示的应用程序的窗口,确定为目标应用程序的窗口。Optionally, in the embodiment of the present application, the electronic device may determine the window of the application program displayed in the area where the end position of the third input (for example, drag input) is located as the window of the target application program, which is the target control after moving The window of the application displayed in the area where the location is located is determined as the window of the target application.
可选地,本申请实施例中,电子设备在根据第三输入确定目标应用程序的窗口之后,可以获取该目标应用程序的窗口在电子设备的显示屏中的位置信息,并根据该位置信息,对目标应用程序的窗口进行截屏。Optionally, in this embodiment of the present application, after determining the window of the target application program according to the third input, the electronic device may obtain position information of the window of the target application program on the display screen of the electronic device, and according to the position information, Take a screenshot of the window of the target application.
示例性的,结合图4中的(A),用户在对手机进行第一输入之后,如图6中的(A)所示,手机可以在显示屏10上显示目标控件(例如控件11);如图6中的(B)所示,用户可以对该控件11进行第三输入(例如拖动输入12),以使得手机将控件11移动至位置13,从而手机可以将该位置13所在的区域显示的应用程序的窗口(例如应用程序A窗口)确定为目标应用程序的窗口,并对该目标应用程序的窗口进行截屏。Exemplarily, in conjunction with (A) in FIG. 4, after the user performs the first input to the mobile phone, as shown in (A) in FIG. 6, the mobile phone may display a target control (for example, control 11) on the display screen 10; As shown in Figure 6(B), the user can make a third input (for example, drag input 12) to the control 11, so that the mobile phone can move the control 11 to the position 13, so that the mobile phone can be located in the area where the position 13 is located. The window of the displayed application (for example, the window of application A) is determined to be the window of the target application, and a screenshot of the window of the target application is taken.
本申请实施例中,用户可以进行第一输入,以使得电子设备显示目标控件,然后用户可以对该目标控件进行第三输入,以使得电子设备对目标应用程序的窗口进行截屏,而无需用户在触发电子设备对所有应用程序的窗口进行截屏之后,再对得到的包括该所有应用程序的窗口的内容的截屏图片进行多次输入,才得到目标截屏图片,如此可以简化用户的操作。In the embodiment of the present application, the user can make a first input to make the electronic device display the target control, and then the user can make a third input to the target control, so that the electronic device can take a screenshot of the window of the target application without the user being After the electronic device is triggered to take screenshots of the windows of all applications, the obtained screenshots including the contents of the windows of all applications are inputted multiple times to obtain the target screenshots, which can simplify the user's operation.
可选地,在本申请实施例的又一种可能的实现方式中,结合图2,如图7所示,在上述步骤202中的“对待截屏的目标应用程序的窗口进行截屏”之前,本申请实施 例提供的截屏方法还可以包括下述的步骤501和步骤502,并且上述步骤202具体可以通过下述步骤202b实现。Optionally, in another possible implementation manner of the embodiment of the present application, in conjunction with FIG. 2, as shown in FIG. 7, before the “screenshot of the window of the target application to be screened” in step 202, this The screenshot method provided by the application embodiment may further include the following step 501 and step 502, and the above step 202 can be specifically implemented by the following step 202b.
步骤501、电子设备响应于第一输入,显示至少两个窗口标识。Step 501: In response to the first input, the electronic device displays at least two window identifiers.
本申请实施例中,上述至少两个窗口标识中的每个窗口标识分别用于指示一个应用程序的窗口,且每个窗口标识指示的应用程序的窗口不同。In the embodiment of the present application, each of the above at least two window identifiers is used to indicate a window of an application program, and the windows of the application program indicated by each window identifier are different.
本申请实施例中,在电子设备的显示屏显示至少两个应用程序的窗口的情况下,用户可以通过进行第一输入,以使得电子设备显示至少两个窗口标识,从而用户可以对该至少两个窗口标识进行输入,以使得电子设备对显示的至少两个应用程序的窗口进行截屏。In the embodiment of the present application, when the display screen of the electronic device displays at least two application windows, the user can perform the first input to cause the electronic device to display at least two window identifiers, so that the user can display the at least two window identifiers. Inputting a window identifier, so that the electronic device can take a screenshot of the displayed windows of at least two application programs.
可选地,本申请实施例中,每个窗口标识中的一个窗口标识具体可以为:与该一个窗口标识对应的应用程序的窗口的缩略图,或者与该一个窗口标识对应的应用程序的窗口的名称。Optionally, in this embodiment of the present application, one window identifier in each window identifier may specifically be: a thumbnail of the window of the application program corresponding to the one window identifier, or the window of the application program corresponding to the one window identifier The name.
可选地,本申请实施例中,上述第一输入具体可以为用户对电子设备的截屏输入(例如,用户对显示屏上显示的截屏控件的按压输入,或者,用户对电子设备的物理按键或物理按键组合的输入),以触发电子设备显示至少两个窗口标识。Optionally, in this embodiment of the present application, the above-mentioned first input may specifically be a user's screen capture input to the electronic device (for example, the user's pressing input on the screen capture control displayed on the display screen, or the user's physical button or input of the electronic device). Physical key combination input) to trigger the electronic device to display at least two window identifiers.
步骤502、电子设备接收用户的第四输入。Step 502: The electronic device receives the fourth input of the user.
本申请实施例中,上述第四输入为用户对至少两个窗口标识中的目标窗口标识的输入。In the embodiment of the present application, the above-mentioned fourth input is the user's input of the target window identifier among the at least two window identifiers.
本申请实施例中,上述第四输入用于触发电子设备确定目标应用程序的窗口,并对该目标应用程序的窗口进行截屏。In the embodiment of the present application, the above-mentioned fourth input is used to trigger the electronic device to determine the window of the target application and take a screenshot of the window of the target application.
可选地,本申请实施例中,上述第四输入具体可以为用户在显示屏上对目标窗口标识的点击输入或按压输入(例如长按输入)。Optionally, in this embodiment of the present application, the aforementioned fourth input may specifically be a click input or a press input (for example, a long press input) of the user on the display screen of the target window identification.
可选地,本申请实施例中,上述目标窗口标识可以包括一个窗口标识或者多个窗口标识。Optionally, in this embodiment of the present application, the aforementioned target window identifier may include one window identifier or multiple window identifiers.
步骤202b、电子设备响应于第四输入,确定目标应用程序的窗口,并对目标应用程序的窗口进行截屏,得到目标截屏图片。 Step 202b: In response to the fourth input, the electronic device determines the window of the target application, and takes a screenshot of the window of the target application to obtain the target screenshot picture.
本申请实施例中,上述目标应用程序的窗口为目标窗口标识指示的应用程序的窗口。In the embodiment of the present application, the window of the target application program mentioned above is the window of the application program indicated by the target window identifier.
可选地,本申请实施例中,电子设备可以从电子设备中预存的窗口列表中查找与目标窗口标识对应的应用程序的窗口,以将该应用程序的窗口确定为目标应用程序的窗口。其中,该窗口列表中包括至少两个对应关系,每个对应关系分别为一个窗口标识与一个应用程序的窗口的对应关系。Optionally, in this embodiment of the present application, the electronic device may search for the window of the application program corresponding to the target window identifier from a list of windows prestored in the electronic device to determine the window of the application program as the window of the target application program. Wherein, the window list includes at least two correspondences, and each correspondence is a correspondence between a window identifier and a window of an application program.
可选地,本申请实施例中,电子设备在根据第四输入确定目标应用程序的窗口之后,可以获取该目标应用程序的窗口在电子设备的显示屏中的位置信息,并根据该位置信息,对目标应用程序的窗口进行截屏。Optionally, in this embodiment of the present application, after determining the window of the target application program according to the fourth input, the electronic device may obtain position information of the window of the target application program on the display screen of the electronic device, and according to the position information, Take a screenshot of the window of the target application.
示例性的,结合图4中的(A),用户在对手机进行第一输入之后,如图8中的(A)所示,手机可以在显示屏10上显示至少两个窗口标识(例如应用程序A窗口的缩略图、应用程序B窗口的缩略图、应用程序C窗口的缩略图以及应用程序D窗口的缩略图),每个窗口标识分别对应一个应用程序的窗口(即应用程序A窗口的缩略图 对应应用程序A窗口,应用程序B窗口的缩略图对应应用程序B窗口,应用程序C窗口的缩略图对应应用程序C窗口,应用程序D窗口的缩略图对应应用程序D窗口);如图8中的(B)所示,用户可以对至少两个窗口标识中的目标窗口标识(例如应用程序A窗口的缩略图)进行第四输入,以使得手机将应用程序A窗口的缩略图对应的应用程序A窗口确定为目标应用程序的窗口,并对该应用程序A窗口进行截屏。Exemplarily, in conjunction with (A) in FIG. 4, after the user performs the first input to the mobile phone, as shown in (A) in FIG. 8, the mobile phone may display at least two window identifiers (such as application The thumbnail of the application A window, the thumbnail of the application B window, the thumbnail of the application C window, and the thumbnail of the application D window). Each window identifier corresponds to the window of an application (ie, the window of application A). The thumbnail corresponds to the application A window, the thumbnail of the application B window corresponds to the application B window, the thumbnail of the application C window corresponds to the application C window, and the thumbnail of the application D window corresponds to the application D window); As shown in (B) in 8, the user can perform a fourth input on the target window identifier (for example, the thumbnail of the application A window) in the at least two window identifiers, so that the mobile phone will correspond to the thumbnail of the application A window The application A window is determined as the target application window, and a screenshot of the application A window is taken.
本申请实施例中,用户可以进行第一输入,以使得电子设备显示至少两个窗口标识,然后用户可以对该至少两个窗口标识中的目标窗口标识进行第四输入,以使得电子设备对目标应用程序的窗口进行截屏,而无需用户在触发电子设备对所有应用程序的窗口进行截屏之后,再对得到的包括该所有应用程序的窗口的内容的截屏图片进行多次输入,才得到目标截屏图片,如此可以简化用户的操作。In the embodiment of the present application, the user can perform the first input so that the electronic device displays at least two window identifiers, and then the user can perform the fourth input on the target window identifier among the at least two window identifiers, so that the electronic device can Take screenshots of application windows, without the user having to trigger the electronic device to take screenshots of all application windows, and then enter the obtained screenshots including the contents of all application windows multiple times to obtain the target screenshot image , This can simplify the user's operation.
本申请实施例提供一种截屏方法,在显示至少两个应用程序的窗口的情况下,电子设备可以根据用户的第一输入,对目标应用程序的窗口进行截屏,得到目标截屏图片。由于用户可以通过第一输入,以触发电子设备对目标应用程序的窗口进行截屏,而无需用户在触发电子设备对所有应用程序的窗口进行截屏之后,再对得到的包括该所有应用程序的窗口的内容的截屏图片进行多次输入,才得到目标截屏图片,如此可以简化用户的操作且节约耗时。The embodiment of the present application provides a screenshot method. In the case of displaying the windows of at least two application programs, the electronic device can screenshot the window of the target application program according to the first input of the user to obtain the target screenshot picture. Since the user can trigger the electronic device to take a screenshot of the window of the target application through the first input, there is no need for the user to trigger the electronic device to take a screenshot of the windows of all applications, and then take a screenshot of the obtained windows including all applications. The screenshot image of the content is entered multiple times to obtain the target screenshot image, which can simplify the user's operation and save time.
可选地,本申请实施例中,在上述步骤202中的“对待截屏的目标应用程序的窗口进行截屏”之前,本申请实施例提供的截屏方法还可以包括下述的步骤601,并且上述步骤202具体可以通过下述步骤202c实现。Optionally, in this embodiment of the present application, before "taking a screenshot of the window of the target application to be screened" in the above step 202, the screenshot method provided in the embodiment of the present application may further include the following step 601, and the above steps 202 can be specifically implemented by the following step 202c.
步骤601、电子设备响应于第一输入,获取目标位置信息。Step 601: The electronic device acquires target location information in response to the first input.
本申请实施例中,上述目标位置信息用于指示目标应用程序的窗口在电子设备的显示屏中所处的位置。In the embodiment of the present application, the foregoing target location information is used to indicate the location of the window of the target application on the display screen of the electronic device.
可选地,本申请实施例中,上述目标位置信息可以为目标应用程序的窗口在显示屏中的坐标信息,该坐标信息可以为目标应用程序的窗口在显示屏上的默认坐标系中的坐标值。Optionally, in this embodiment of the present application, the above-mentioned target location information may be coordinate information of the window of the target application on the display screen, and the coordinate information may be the coordinates of the window of the target application in the default coordinate system on the display screen. value.
可选地,本申请实施例中,上述坐标信息具体可以为目标应用程序的窗口的至少一个轮廓点的坐标值,该至少一个轮廓点中的每个轮廓点为目标应用程序的窗口的轮廓线上的点。Optionally, in the embodiment of the present application, the aforementioned coordinate information may specifically be the coordinate value of at least one contour point of the window of the target application, and each contour point in the at least one contour point is the contour line of the window of the target application. On the point.
需要说明的是,上述目标应用程序的窗口的轮廓线上的点可以理解为:目标应用程序的窗口在显示屏上的一些像素点,且这些像素点可以反映目标应用程序的窗口的轮廓。It should be noted that the points on the outline of the window of the target application can be understood as: some pixels of the window of the target application on the display screen, and these pixels can reflect the outline of the window of the target application.
步骤202c、电子设备根据目标位置信息,对目标应用程序的窗口进行截屏,得到目标截屏图片。Step 202c: The electronic device takes a screenshot of the window of the target application program according to the target location information to obtain the target screenshot picture.
本申请实施例中,电子设备可以根据目标位置信息,确定截屏区域(该截屏区域为目标应用程序的窗口在显示屏上所处的区域),并对该截屏区域进行截屏,得到目标截屏图片。In the embodiment of the present application, the electronic device may determine the screenshot area (the screenshot area is the area where the window of the target application program is located on the display screen) according to the target location information, and perform a screenshot of the screenshot area to obtain the target screenshot picture.
可选地,本申请实施例中,在电子设备显示屏上显示一个应用程序的窗口的情况下,电子设备可以根据用户的第一输入,直接对电子设备的显示屏进行截屏,得到目标截屏图片。Optionally, in the embodiment of the present application, when an application window is displayed on the display screen of the electronic device, the electronic device may directly take a screenshot of the display screen of the electronic device according to the first input of the user to obtain the target screenshot picture .
图9示出了本申请实施例中涉及的电子设备的一种可能的结构示意图。如图9所示,电子设备90可以包括:接收模块91和截屏模块92。FIG. 9 shows a schematic diagram of a possible structure of an electronic device involved in an embodiment of the present application. As shown in FIG. 9, the electronic device 90 may include: a receiving module 91 and a screenshot module 92.
其中,接收模块91,用于在显示至少两个应用程序的窗口的情况下,接收用户的第一输入,其中,每个窗口分别用于指示运行的一个应用程序。截屏模块92,用于响应于接收模块91接收的第一输入,对待截屏的目标应用程序的窗口进行截屏,得到目标截屏图片,该目标应用程序的窗口为至少两个应用程序的窗口中的窗口。Wherein, the receiving module 91 is configured to receive the first input of the user when the windows of at least two application programs are displayed, wherein each window is respectively used to indicate an application program to be run. The screenshot module 92 is configured to, in response to the first input received by the receiving module 91, take a screenshot of the window of the target application to be screenshotted to obtain a target screenshot picture, and the window of the target application is a window of at least two application windows .
在一种可能的实现方式中,上述接收模块91,还用于在接收用户的第一输入之前,接收用户的第二输入。结合图9,如图10所示,本申请实施例提供的电子设备90还包括:确定模块93。确定模块93,用于响应于接收模块91接收的第二输入,从至少两个应用程序的窗口中确定待截屏的目标应用程序的窗口。In a possible implementation manner, the above-mentioned receiving module 91 is further configured to receive the user's second input before receiving the user's first input. With reference to FIG. 9, as shown in FIG. 10, the electronic device 90 provided in the embodiment of the present application further includes: a determining module 93. The determining module 93 is configured to determine, from the windows of at least two application programs, the window of the target application program to be screened in response to the second input received by the receiving module 91.
在一种可能的实现方式中,结合图9,如图11所示,本申请实施例提供的电子设备90还包括:显示模块94。其中,显示模块94,用于在截屏模块92对目标应用程序的窗口进行截屏之前,显示目标控件,该目标控件用于对至少两个应用程序的窗口中的窗口进行截屏。上述接收模块91,还用于接收用户的第三输入,该第三输入为用户对目标控件的输入。上述截屏模块92,具体用于响应于接收模块91接收的第三输入,确定目标应用程序的窗口,并对目标应用程序的窗口进行截屏。In a possible implementation manner, with reference to FIG. 9, as shown in FIG. 11, the electronic device 90 provided in the embodiment of the present application further includes a display module 94. The display module 94 is configured to display a target control before the screenshot module 92 takes a screenshot of the window of the target application, and the target control is used to take a screenshot of the windows of the windows of at least two applications. The above-mentioned receiving module 91 is also configured to receive a third input of the user, and the third input is the input of the user to the target control. The above-mentioned screenshot module 92 is specifically configured to determine the window of the target application in response to the third input received by the receiving module 91, and take a screenshot of the window of the target application.
在一种可能的实现方式中,上述显示模块94,用于在截屏模块92对目标应用程序的窗口进行截屏之前,显示至少两个窗口标识,每个窗口标识分别用于指示一个应用程序的窗口。上述接收模块91,还用于接收用户的第四输入,该第四输入为用户对至少两个窗口标识中的目标窗口标识的输入。上述截屏模块92,具体用于响应于接收模块91接收的第四输入,确定目标应用程序的窗口,并对目标应用程序的窗口进行截屏,该目标应用程序的窗口为目标窗口标识指示的应用程序的窗口。In a possible implementation manner, the above-mentioned display module 94 is configured to display at least two window identifiers before the screenshot module 92 takes a screenshot of the window of the target application, and each window identifier is used to indicate a window of an application. . The above-mentioned receiving module 91 is further configured to receive a fourth input of the user, and the fourth input is the user's input to the target window identifier among the at least two window identifiers. The above-mentioned screenshot module 92 is specifically configured to determine the window of the target application in response to the fourth input received by the receiving module 91, and take a screenshot of the window of the target application, where the window of the target application is the application indicated by the target window identifier Window.
在一种可能的实现方式中,结合图9,如图12所示,本申请实施例提供的电子设备90还包括:获取模块95。其中,获取模块95,用于在截屏模块92对目标应用程序的窗口进行截屏之前,获取目标位置信息,该目标位置信息用于指示目标应用程序的窗口在电子设备的显示屏中所处的位置。上述截屏模块92,具体用于根据获取模块95获取的目标位置信息,对目标应用程序的窗口进行截屏。In a possible implementation manner, with reference to FIG. 9, as shown in FIG. 12, the electronic device 90 provided in the embodiment of the present application further includes: an acquisition module 95. Wherein, the acquiring module 95 is configured to acquire target location information before the screenshot module 92 takes a screenshot of the window of the target application, and the target location information is used to indicate the position of the window of the target application on the display screen of the electronic device. . The aforementioned screenshot module 92 is specifically configured to take a screenshot of the window of the target application program according to the target location information acquired by the acquisition module 95.
本申请实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,详细描述这里不再赘述。The electronic device provided in the embodiment of the present application can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, the detailed description will not be repeated here.
本申请实施例提供一种电子设备,由于用户可以通过第一输入,以触发电子设备对目标应用程序的窗口进行截屏,而无需用户在触发电子设备对所有应用程序的窗口进行截屏之后,再对得到的包括该所有应用程序的窗口的内容的截屏图片进行多次输入,才得到目标截屏图片,如此可以简化用户的操作且节约耗时。The embodiment of the present application provides an electronic device. Since the user can trigger the electronic device to take screenshots of the windows of the target application through the first input, the user does not need to trigger the electronic device to take screenshots of all application windows and then The obtained screenshot pictures including the contents of the windows of all the application programs are inputted multiple times to obtain the target screenshot pictures, which can simplify the user's operation and save time.
图13为实现本申请各个实施例的一种电子设备的硬件示意图。如图13所示,电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。FIG. 13 is a schematic diagram of hardware of an electronic device that implements each embodiment of the present application. As shown in FIG. 13, the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, The processor 110, and the power supply 111 and other components.
需要说明的是,本领域技术人员可以理解,图13中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图13所示更多或更少的部件,或者组合某些 部件,或者不同的部件布置。在本申请实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。It should be noted that those skilled in the art can understand that the structure of the electronic device shown in FIG. 13 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in FIG. Some components, or different component arrangements. In the embodiments of the present application, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,用户输入单元107,用于在显示至少两个应用程序的窗口的情况下,接收用户的第一输入,每个窗口分别用于指示运行的一个应用程序。Wherein, the user input unit 107 is configured to receive the first input of the user when the windows of at least two application programs are displayed, and each window is respectively used to indicate an application program to be run.
处理器110,用于响应于第一输入,对待截屏的目标应用程序的窗口进行截屏,得到目标截屏图片,该目标应用程序的窗口为至少两个应用程序的窗口中的窗口。The processor 110 is configured to, in response to the first input, take a screenshot of a window of a target application to be screenshotted to obtain a target screenshot picture, and the window of the target application is a window of at least two application windows.
本申请实施例提供一种电子设备,由于用户可以通过第一输入,以触发电子设备对目标应用程序的窗口进行截屏,而无需用户在触发电子设备对所有应用程序的窗口进行截屏之后,再对得到的包括该所有应用程序的窗口的内容的截屏图片进行多次输入,才得到目标截屏图片,如此可以简化用户的操作且节约耗时。The embodiment of the present application provides an electronic device. Since the user can trigger the electronic device to take screenshots of the windows of the target application through the first input, the user does not need to trigger the electronic device to take screenshots of all application windows and then The obtained screenshot pictures including the contents of the windows of all the application programs are inputted multiple times to obtain the target screenshot pictures, which can simplify the user's operation and save time.
应理解的是,本申请实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present application, the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可 包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图13中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 13, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device and the electronic device 100. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;可选地,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选地,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components. Optionally, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 100 includes some functional modules not shown, which will not be repeated here.
可选地,本申请实施例还提供一种电子设备,包括如图13所示的处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present application further provides an electronic device, including a processor 110 as shown in FIG. 13, a memory 109, a computer program stored in the memory 109 and running on the processor 110, the computer When the program is executed by the processor 110, each process of the foregoing method embodiment is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) ) Includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (12)

  1. 一种截屏方法,应用于电子设备,所述方法包括:A screenshot method applied to an electronic device, and the method includes:
    在显示至少两个应用程序的窗口的情况下,接收用户的第一输入,其中,每个窗口分别用于指示运行的一个应用程序;In the case of displaying windows of at least two applications, receiving a first input from the user, where each window is used to indicate a running application;
    响应于所述第一输入,对待截屏的目标应用程序的窗口进行截屏,得到目标截屏图片,所述目标应用程序的窗口为所述至少两个应用程序的窗口中的窗口。In response to the first input, a screenshot is taken of the window of the target application to be screenshotted to obtain the target screenshot picture, and the window of the target application is a window of the windows of the at least two application programs.
  2. 根据权利要求1所述的方法,其中,所述接收用户的第一输入之前,所述方法还包括:The method according to claim 1, wherein, before the receiving the first input from the user, the method further comprises:
    接收用户的第二输入;Receiving a second input from the user;
    响应于所述第二输入,从所述至少两个应用程序的窗口中确定待截屏的目标应用程序的窗口。In response to the second input, the window of the target application to be screened is determined from the windows of the at least two application programs.
  3. 根据权利要求1所述的方法,其中,所述对待截屏的目标应用程序的窗口进行截屏之前,所述方法还包括:The method according to claim 1, wherein before the screenshot is taken of the window of the target application to be screenshot, the method further comprises:
    显示目标控件,所述目标控件用于对所述至少两个应用程序的窗口中的窗口进行截屏;Displaying a target control, the target control being used to take a screenshot of a window in the windows of the at least two application programs;
    接收用户的第三输入,所述第三输入为用户对所述目标控件的输入;Receiving a user's third input, where the third input is the user's input to the target control;
    所述对待截屏的目标应用程序的窗口进行截屏,包括:The screenshot of the window of the target application to be screenshotted includes:
    响应于所述第三输入,确定所述目标应用程序的窗口,并对所述目标应用程序的窗口进行截屏。In response to the third input, determine the window of the target application, and take a screenshot of the window of the target application.
  4. 根据权利要求1所述的方法,其中,所述对待截屏的目标应用程序的窗口进行截屏之前,所述方法还包括:The method according to claim 1, wherein before the screenshot is taken of the window of the target application to be screenshot, the method further comprises:
    显示至少两个窗口标识,每个窗口标识分别用于指示一个应用程序的窗口;At least two window identifiers are displayed, and each window identifier is used to indicate a window of an application;
    接收用户的第四输入,所述第四输入为用户对所述至少两个窗口标识中的目标窗口标识的输入;Receiving a fourth input from the user, where the fourth input is the user's input to the target window identifier of the at least two window identifiers;
    所述对待截屏的目标应用程序的窗口进行截屏,包括:The screenshot of the window of the target application to be screenshotted includes:
    响应于所述第四输入,确定所述目标应用程序的窗口,并对所述目标应用程序的窗口进行截屏,所述目标应用程序的窗口为所述目标窗口标识指示的应用程序的窗口。In response to the fourth input, determine the window of the target application, and take a screenshot of the window of the target application, where the window of the target application is a window of the application indicated by the target window identifier.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述对待截屏的目标应用程序的窗口进行截屏之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein before the screenshot of the window of the target application to be screenshotted, the method further comprises:
    获取目标位置信息,所述目标位置信息用于指示所述目标应用程序的窗口在所述电子设备的显示屏中所处的位置;Acquiring target location information, where the target location information is used to indicate the location of the window of the target application on the display screen of the electronic device;
    所述对待截屏的目标应用程序的窗口进行截屏,包括:The screenshot of the window of the target application to be screenshotted includes:
    根据所述目标位置信息,对所述目标应用程序的窗口进行截屏。Taking a screenshot of the window of the target application program according to the target location information.
  6. 一种电子设备,所述电子设备包括:接收模块和截屏模块;An electronic device, the electronic device comprising: a receiving module and a screenshot module;
    所述接收模块,用于在显示至少两个应用程序的窗口的情况下,接收用户的第一输入,其中,每个窗口分别用于指示运行的一个应用程序;The receiving module is configured to receive a user's first input when the windows of at least two application programs are displayed, wherein each window is used to indicate a running application program;
    所述截屏模块,用于响应于所述接收模块接收的所述第一输入,对待截屏的目标应用程序的窗口进行截屏,得到目标截屏图片,所述目标应用程序的窗口为所述至少两个应用程序的窗口中的窗口。The screenshot module is configured to, in response to the first input received by the receiving module, take a screenshot of the window of the target application to be screenshotted to obtain a target screenshot picture, and the windows of the target application are the at least two The window in the window of the application.
  7. 根据权利要求6所述的电子设备,其中,所述接收模块,还用于在所述接收用户的第一输入之前,接收用户的第二输入;The electronic device according to claim 6, wherein the receiving module is further configured to receive a second input of the user before the first input of the user is received;
    所述电子设备还包括:确定模块;The electronic device further includes: a determining module;
    所述确定模块,用于响应于所述接收模块接收的所述第二输入,从所述至少两个应用程序的窗口中确定待截屏的目标应用程序的窗口。The determining module is configured to determine, from the windows of the at least two application programs, the window of the target application program to be screened in response to the second input received by the receiving module.
  8. 根据权利要求6所述的电子设备,其中,所述电子设备还包括:显示模块;The electronic device according to claim 6, wherein the electronic device further comprises: a display module;
    所述显示模块,用于在所述截屏模块对所述目标应用程序的窗口进行截屏之前,显示目标控件,所述目标控件用于对所述至少两个应用程序的窗口中的窗口进行截屏;The display module is configured to display a target control before the screenshot module takes a screenshot of the window of the target application, and the target control is used to take a screenshot of the windows of the at least two application windows;
    所述接收模块,还用于接收用户的第三输入,所述第三输入为用户对所述目标控件的输入;The receiving module is further configured to receive a user's third input, where the third input is the user's input to the target control;
    所述截屏模块,具体用于响应于所述接收模块接收的所述第三输入,确定所述目标应用程序的窗口,并对所述目标应用程序的窗口进行截屏。The screenshot module is specifically configured to determine the window of the target application in response to the third input received by the receiving module, and take a screenshot of the window of the target application.
  9. 根据权利要求6所述的电子设备,其中,所述电子设备还包括:显示模块;The electronic device according to claim 6, wherein the electronic device further comprises: a display module;
    所述显示模块,用于在所述截屏模块对所述目标应用程序的窗口进行截屏之前,显示至少两个窗口标识,每个窗口标识分别用于指示一个应用程序的窗口;The display module is configured to display at least two window identifiers before the screenshot module takes a screenshot of the window of the target application, and each window identifier is used to indicate a window of an application;
    所述接收模块,还用于接收用户的第四输入,所述第四输入为用户对所述至少两个窗口标识中的目标窗口标识的输入;The receiving module is further configured to receive a user's fourth input, where the fourth input is the user's input to the target window identifier of the at least two window identifiers;
    所述截屏模块,具体用于响应于所述接收模块接收的所述第四输入,确定所述目标应用程序的窗口,并对所述目标应用程序的窗口进行截屏,所述目标应用程序的窗口为所述目标窗口标识指示的应用程序的窗口。The screenshot module is specifically configured to determine the window of the target application in response to the fourth input received by the receiving module, and take a screenshot of the window of the target application, the window of the target application Identifies the window of the indicated application for the target window.
  10. 根据权利要求6至9中任一项所述的电子设备,其中,所述电子设备还包括:获取模块;The electronic device according to any one of claims 6 to 9, wherein the electronic device further comprises: an acquisition module;
    所述获取模块,用于在所述截屏模块对所述目标应用程序的窗口进行截屏之前,获取目标位置信息,所述目标位置信息用于指示所述目标应用程序的窗口在所述电子设备的显示屏中所处的位置;The acquisition module is configured to acquire target location information before the screenshot module takes a screenshot of the window of the target application, where the target location information is used to indicate that the window of the target application is in the electronic device The position in the display;
    所述截屏模块,具体用于根据所述获取模块获取的所述目标位置信息,对所述目标应用程序的窗口进行截屏。The screenshot module is specifically configured to take a screenshot of the window of the target application program according to the target location information acquired by the acquisition module.
  11. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的截屏方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 5 One of the steps of the screenshot method.
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的截屏方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the screenshot method according to any one of claims 1 to 5 are realized.
PCT/CN2020/115316 2019-10-28 2020-09-15 Screenshot method and electronic device WO2021082772A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911032785.XA CN110908750B (en) 2019-10-28 2019-10-28 Screen capturing method and electronic equipment
CN201911032785.X 2019-10-28

Publications (1)

Publication Number Publication Date
WO2021082772A1 true WO2021082772A1 (en) 2021-05-06

Family

ID=69815979

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/115316 WO2021082772A1 (en) 2019-10-28 2020-09-15 Screenshot method and electronic device

Country Status (2)

Country Link
CN (1) CN110908750B (en)
WO (1) WO2021082772A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546229A (en) * 2022-01-14 2022-05-27 阿里巴巴(中国)有限公司 Information processing method, screen capturing method and electronic equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908750B (en) * 2019-10-28 2021-10-26 维沃移动通信有限公司 Screen capturing method and electronic equipment
CN116777740A (en) * 2022-03-10 2023-09-19 华为技术有限公司 Screen capturing method, electronic equipment and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015121777A1 (en) * 2014-02-13 2015-08-20 Nokia Technologies Oy An apparatus and associated methods for controlling content on a display user interface
CN106371725A (en) * 2016-08-26 2017-02-01 乐视控股(北京)有限公司 Intelligent image capture method and apparatus, and terminal device
CN107301013A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 Terminal screenshotss method and device
CN107977144A (en) * 2017-12-15 2018-05-01 维沃移动通信有限公司 A kind of screenshotss processing method and mobile terminal
CN109976655A (en) * 2019-03-22 2019-07-05 Oppo广东移动通信有限公司 Long screenshotss method, apparatus, terminal and storage medium
CN110096326A (en) * 2019-04-30 2019-08-06 维沃移动通信有限公司 A kind of screenshotss method, terminal device and computer readable storage medium
CN110658971A (en) * 2019-08-26 2020-01-07 维沃移动通信有限公司 Screen capturing method and terminal equipment
CN110908750A (en) * 2019-10-28 2020-03-24 维沃移动通信有限公司 Screen capturing method and electronic equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115064A1 (en) * 2006-11-15 2008-05-15 Roach William V Systems, methods, and computer-readable media related to presentation software
CN103034390B (en) * 2011-09-30 2016-09-21 汉王科技股份有限公司 The method and device of mobile applications between multiple split screens of mobile terminal
CN102799347B (en) * 2012-06-05 2017-01-04 北京小米科技有限责任公司 User interface interaction method and device applied to touch screen equipment and touch screen equipment
CN104536648A (en) * 2014-01-28 2015-04-22 深圳市中兴移动通信有限公司 Intelligent terminal, mobile terminal and operating method of mobile terminal
KR102255830B1 (en) * 2014-02-05 2021-05-25 삼성전자주식회사 Apparatus and Method for displaying plural windows
US10126846B2 (en) * 2015-04-09 2018-11-13 Blackberry Limited Portable electronic device including touch-sensitive display and method of controlling selection of information
CN109407936B (en) * 2018-09-21 2021-07-16 Oppo(重庆)智能科技有限公司 Screenshot method and related device
CN109460177A (en) * 2018-09-27 2019-03-12 维沃移动通信有限公司 A kind of image processing method and terminal device
CN109388304B (en) * 2018-09-28 2021-05-11 维沃移动通信有限公司 Screen capturing method and terminal equipment
CN110231905B (en) * 2019-05-07 2021-02-09 华为技术有限公司 Screen capturing method and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015121777A1 (en) * 2014-02-13 2015-08-20 Nokia Technologies Oy An apparatus and associated methods for controlling content on a display user interface
CN106371725A (en) * 2016-08-26 2017-02-01 乐视控股(北京)有限公司 Intelligent image capture method and apparatus, and terminal device
CN107301013A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 Terminal screenshotss method and device
CN107977144A (en) * 2017-12-15 2018-05-01 维沃移动通信有限公司 A kind of screenshotss processing method and mobile terminal
CN109976655A (en) * 2019-03-22 2019-07-05 Oppo广东移动通信有限公司 Long screenshotss method, apparatus, terminal and storage medium
CN110096326A (en) * 2019-04-30 2019-08-06 维沃移动通信有限公司 A kind of screenshotss method, terminal device and computer readable storage medium
CN110658971A (en) * 2019-08-26 2020-01-07 维沃移动通信有限公司 Screen capturing method and terminal equipment
CN110908750A (en) * 2019-10-28 2020-03-24 维沃移动通信有限公司 Screen capturing method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546229A (en) * 2022-01-14 2022-05-27 阿里巴巴(中国)有限公司 Information processing method, screen capturing method and electronic equipment
CN114546229B (en) * 2022-01-14 2023-09-22 阿里巴巴(中国)有限公司 Information processing method, screen capturing method and electronic equipment

Also Published As

Publication number Publication date
CN110908750A (en) 2020-03-24
CN110908750B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
WO2021098678A1 (en) Screencast control method and electronic device
WO2021104195A1 (en) Image display method and electronic device
CN110913132B (en) Object tracking method and electronic equipment
WO2021057267A1 (en) Image processing method and terminal device
CN109078319B (en) Game interface display method and terminal
CN110062105B (en) Interface display method and terminal equipment
CN110109593B (en) Screen capturing method and terminal equipment
WO2020151525A1 (en) Message sending method, and terminal device
WO2020238497A1 (en) Icon moving method and terminal device
CN109032486B (en) Display control method and terminal equipment
WO2021082772A1 (en) Screenshot method and electronic device
WO2021129536A1 (en) Icon moving method and electronic device
WO2020182035A1 (en) Image processing method and terminal device
WO2021057290A1 (en) Information control method and electronic device
WO2021115172A1 (en) Display method and electronic device
WO2021121398A1 (en) Video recording method and electronic device
WO2021121265A1 (en) Camera starting method and electronic device
CN110865745A (en) Screen capturing method and terminal equipment
WO2020215967A1 (en) Content selection method and terminal device
WO2020220893A1 (en) Screenshot method and mobile terminal
WO2021104266A1 (en) Object display method and electronic device
WO2021109960A1 (en) Image processing method, electronic device, and storage medium
WO2021083114A1 (en) Photo viewing method and electronic device
WO2020151490A1 (en) Application control method and terminal device
CN109117037B (en) Image processing method and terminal equipment

Legal Events

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

Ref document number: 20882976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20882976

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20882976

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20882976

Country of ref document: EP

Kind code of ref document: A1