Patent Description:
The present disclosure relates to the field of communications technologies, and in particular, to a screen capturing method and a terminal device.

In a scenario in which a terminal device performs a screen capturing function, a user may trigger the terminal device to capture an interface displayed on a screen of the terminal device by using a screen capturing method such as full screen capturing, long screen capturing, or screen capturing of a specific shape, that is, perform a screen capturing operation on the interface.

Specifically, in a case where the terminal device has a screen of a relatively large size, such as a foldable screen including a plurality of screens, the terminal device may display interfaces of a plurality of applications on the foldable screen. However, the terminal device generally performs screen capturing operations on all the interfaces displayed on the plurality of screens of the foldable screen, or performs a screen capturing operation on an interface displayed on one screen of the foldable screen, but cannot simultaneously perform screen capturing operations on interfaces displayed on several non-adjacent screens of the foldable screen. In this way, the flexibility for the terminal device to perform a screen capturing operation is poor.

<CIT> discloses a screen shooting method and a terminal, wherein, the screen shooting method is applied to the terminal. The terminal comprises a first display screen and a second display screen. The screen shooting method comprises the following steps of: receiving a first operation acting on the terminal; acquiring touch information of the first operation, and determining a screenshot form according to the touch information to obtain screenshot pictures of the first display screen and the second display screen, wherein the touch information includes at least one of a touch area, a number of touch points, a touch pressure, a sliding direction, a sliding track, and fingerprint information.

<CIT> discloses a screenshot processing method and mobile terminals. The method includes: receiving screenshot input of a user under a split-screen state; in response to the screenshot input, respectively intercepting and acquiring display pictures of target split-screen areas selected by the user, and generating a screenshot picture corresponding to each split-screen area in the target split-screen areas, wherein the target split-screen areas include the at least one split-screen area; and saving the screenshot picture according to a preset manner.

<CIT> discloses a screen shooting method and a terminal device. The method includes that a first operation of a user is received; When the screen display state of the terminal device is the split screen display state, the content in the display window operated by the user is shoot. Wherein, if the first operation is a multi-fingered sliding operation on the display screen, the display window operated by the user is a display window in which the first operation is located; if the first operation is an operation of a physical key of the terminal device, the display window operated by the user is a display window in which the second operation is located, and the second operation is the last received operation of the display screen prior to receiving the first operation.

<CIT> discloses an electronic device, a screen capturing method and related products. The electronic device comprises: a shell, a circuit board, a battery and a cover plate, wherein the circuit board, the battery and the cover plate are arranged on the shell; the cover plate comprises a first area and a second area except the first area; a display screen is arranged on the inner surface of the first area; a circuit which is connected with the display screen is arranged on the circuit board; the display screen is used for displaying reference contents; and the circuit is used for acquiring the reference contents which are currently displayed on the display screen when a screen capturing instruction aiming at the display screen is detected, determining target contents for supplementing the second area according to the reference contents, combining the reference contents with the target contents and saving the combined contents.

Embodiments of the present disclosure provide a screen capturing method and a terminal device, to resolve a problem that a terminal device has poor flexibility of screen capturing.

To resolve the foregoing technical problem, the embodiments of the present disclosure are implemented as follows:.

According to a first aspect, an embodiment of the present disclosure provides a screen capturing method, which is defined in claim <NUM>.

According to a second aspect, an embodiment of the present disclosure provides a terminal device, which is defined in claim <NUM>.

According to a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which is defined in claim <NUM>.

The following clearly and completely describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are merely some rather than all of the embodiments of the present disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

It should be noted that "/" in this specification represents or. For example, A/B may represent A or B. "and/or" in this specification merely describes an association relationship between associated objects, and indicates that there may be three relationships. For example, A and/or B may represent that there are three cases: There is only A, there are both A and B, and there is only B. The term "a plurality of" refers to two or more.

It should be noted that in this embodiment of the present disclosure, the term such as "exemplary" or "for example" is used for representing an example, an illustration, or a description. Any embodiment or design scheme described as an "example" or "for example" in the embodiments of the present disclosure should not be explained as being more preferred or having more advantages than another embodiment or design scheme. To be precise, the use of the term such as "exemplary" or "for example" is intended to present a related concept in a specific manner.

In the specification and claims of the present disclosure, the terms "first", "second", and so on are intended to distinguish between different objects but do not describe a particular order of the objects. For example, a first interface, a second interface, and the like are intended to distinguish between different interfaces, instead of describing a particular order of the interfaces.

In the embodiments of the present disclosure, an example in which a clockwise direction, a counterclockwise direction, up, down, left, and right are inputs performed by a user on a display screen of a terminal device is used for description, that is, the clockwise direction, the counterclockwise direction, up, down, left, and right are inputs performed by the user on the display screen of the terminal device relative to the terminal device or the display screen of the terminal device.

For example, user's sliding inputs in various directions are used for description. As shown in <FIG>, on a display screen of a terminal device, <NUM> indicates a user's clockwise sliding input, <NUM> indicates a user's counterclockwise sliding input, <NUM> indicates a user's upward sliding input, <NUM> indicates a user's downward sliding input, <NUM> indicates a user's left sliding input, and <NUM> indicates a user's right sliding input.

According to a screen capturing method and a terminal device provided in the embodiments of the present disclosure, in a case that M interfaces are displayed on a screen of a terminal device, a first input of a user on K interfaces in the M interfaces may be received. In response to the first input, screen capturing operations are performed on N interfaces that are in the M interfaces and corresponding to a parameter of the first input, to obtain N first images. Thus, the N first images may be synthesized to obtain a target screenshot. In this way, the user does not need to trigger the terminal device to enter an input of a screen capturing mode first, and then perform an input of selecting one or more interfaces to be captured. Instead, the user can trigger the terminal device by using the first input to select one or more interfaces and perform screen capturing operations. Therefore, the user's operation in a screen capturing process can be simplified, so that the terminal device can quickly and flexibly perform the screen capturing operation.

The terminal device in the embodiments of the present disclosure may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), or the like. The non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine, a self-service machine, or the like. This is not specifically limited in the embodiments of the present disclosure.

It should be noted that, in the screen capturing method provided in the embodiments of the present disclosure, an execution body may be a terminal device, a central processing unit (Central Processing Unit, CPU) of the terminal device, or a control module configured to perform the screen capturing method in the terminal device. In the embodiments of the present disclosure, an example in which the terminal device performs the screen capturing method is used to describe the screen capturing method provided in the embodiments of the present disclosure.

The terminal device in the embodiments of the present disclosure may be a terminal device with an operating system. The operating system may be an Android (Android) operating system, or may be an iOS operating system, or may be another possible operating system, which is not specifically limited in the embodiments of the present disclosure.

The following uses the Android operating system as an example to describe a software environment to which the screen capturing method provided in the embodiments of the present disclosure is applied.

<FIG> is a schematic diagram of a possible architecture of an Android operating system according to an embodiment of the present disclosure. In <FIG>, the architecture of the Android operating system includes four layers, which are an application layer, an application framework layer, a system runtime library layer, and a kernel layer (which may specifically be a Linux kernel layer).

The application layer includes various application programs in the Android operating system (including system application programs and third-party application programs).

The application program framework layer is an application program framework, and the developer may develop some application programs based on the application program framework layer when following a development rule of the application program framework, for example, application programs such as a system setting application, a system chat application, and a system camera application; or application programs such as a third-party setting application, a third-party camera application, and a third-party chat application.

The system runtime library layer includes a library (also referred to as a system library) and an Android operating system runtime environment. The library mainly provides various resources required for the Android operating system. The running environment of the Android operating system is configured to provide a software environment for the Android operating system.

The kernel layer is an operating system layer of the Android operating system, and is the lowest layer in software layers of the Android operating system. Based on the Linux kernel, the kernel layer provides core system services and hardware-related drivers for the Android operating system.

The Android operating system is used as an example. In the embodiments of the present invention, a developer may develop, based on the system architecture of the Android operating system shown in <FIG>, a software program to implement the screen capturing method provided in the embodiments of the present disclosure, so that the screen capturing method can be performed based on the Android operating system shown in <FIG>. That is, a processor or the terminal device may run the software program in the Android operating system to implement the screen capturing method provided in the embodiments of the present disclosure.

The following describes in detail the screen capturing method provided in the embodiments of the present disclosure with reference to a flowchart of a screen capturing method illustrated in <FIG>. Although a logical sequence of the screen capturing method provided in the embodiments of the present invention is shown in the method flowchart, in some cases, the shown or described steps may be performed in a sequence different from the sequence herein. For example, the screen capturing method illustrated in <FIG> may include S301 to S303.

S301: In a case that M interfaces are displayed on a screen of a terminal device, the terminal device receives a first input of a user on K interfaces in the M interfaces.

A parameter of the first input parameter includes at least one of the following: a number of input touch points, a position of an input touch point, an input track, an input direction, an input pressure value, an input area, an input length, an input fingerprint, and an input duration, and M and K are both positive integers.

It can be understood that, the parameter of the first input provided in this embodiment of the present disclosure may include but not limited to the parameters enumerated above, and may also be another parameter that can be implemented. Details are not described herein again in this embodiment of the present disclosure.

It should be noted that the screen of the terminal device provided in this embodiment of the present disclosure may be a touchscreen. The touchscreen may be configured to receive an input of a user, and display content corresponding to the input to the user in response to the input.

Specifically, the terminal device may have a fingerprint recognition module, such as an under-screen fingerprint recognition module, to support the user in performing fingerprint input on the screen, such as a first input whose parameter includes an input fingerprint.

It may be understood that, the first input may be used to select one or more interfaces, namely, K interfaces in the M interfaces, from the M interfaces to perform screen capturing operations.

It should be emphasized that, the user does not need to trigger the terminal device to enter an input (for example, an input such that various interfaces displayed on the screen of the terminal device are in a to-be-selected state) of a screen capturing mode first, and then perform an input of selecting one or more interfaces to be captured, to trigger the terminal device to perform screen capturing operations on the one or more interfaces. Instead, a convenient first input may be used to trigger the terminal device to select one or more interfaces and perform screen capturing operations.

An interface in the M interfaces may be an interface of an application or a desktop. Specifically, different interfaces in the M interfaces are different interfaces in a same application, or different interfaces in different applications.

Optionally, in this embodiment of the present disclosure, the terminal device may include one or more screens.

In the case where the terminal device includes one screen, the terminal device may display the M interfaces on the screen by using a split-screen technology. That is, the terminal device splits the screen into M regions, and displays one interface on each of the M regions.

In the case where the terminal includes a plurality of screens, the terminal device may display the M interfaces on the screen in any one of the following manners <NUM> to <NUM>.

Manner <NUM>: The terminal device displays one interface on each of the plurality of screens.

Manner <NUM>: The terminal device displays one interface on each of some screens of the plurality of screens, and displays a plurality of interfaces on each of the other screens of the plurality of screens by using the split-screen technology.

Manner <NUM>: The terminal device displays a plurality of interfaces on each of the plurality of screens by the split-screen technology.

Optionally, the plurality of screens included in the terminal device may be collapsible screens, that is, the terminal device is a collapsible terminal device. Specifically, the plurality of screens of the terminal device may be folded into different angles, that is, different screens are located on a same plane or different planes.

In the following part of this embodiment of the present disclosure, the screen capturing method provided in this embodiment of the present disclosure will be described with an example in which the terminal device includes a plurality of screens and displays the M interfaces according to Manner <NUM>, and the plurality of screens are located on the same plane.

S302: In response to the first input, the terminal device performs screen capturing operations on N interfaces that are corresponding to a parameter of the first input, to obtain N first images.

The N interfaces are interfaces in the M interfaces. Each first image is a screenshot of one of the N interfaces, and N is a positive integer.

Specifically, the K interfaces are completely or partially the same as the N interfaces in quantity, for example, the K interfaces are one of the N interfaces.

It may be understood that the terminal device may perform a screen capturing operation on each of the N interfaces to obtain a screenshot of each interface.

It should be noted that the terminal device provided in this embodiment of the present disclosure can distinguish between different screens, and distinguish between different interfaces displayed on each screen. Specifically, the terminal device may mark each of the screens, such as numbering, in ascending order, a plurality of screens sequentially arranged from left to right (and/or from top to bottom).

It may be understood that the terminal device may determine a position of one screen in the terminal device based on the number of the screen, that is, defining a specific screen in the plurality of screens of the terminal device. In addition, the terminal device may determine the position of the interface in the terminal device based on the number of the interface, for example, defining a specific interface displayed on one or more screens.

Optionally, a number of each interface on the screen is kept unchanged or a number of each interface changes with running of the terminal device, which is not specifically limited in the embodiment of the present disclosure. Generally, the number of each screen of the terminal device is kept unchanged.

It may be understood that the N interfaces may include adjacent interfaces and/or non-adjacent interfaces.

S303: The terminal device synthesizes the N first images to obtain a target screenshot.

It may be understood that the terminal device may synthesize the N first images to obtain one image, namely, the target screenshot.

Specifically, the terminal device may save the target screenshot, for example, save the target screenshot to a preset storage area, for example, a storage area in the terminal device or a storage area in a cloud, which is not specifically limited in this embodiment of the present disclosure. In addition, the terminal device may further save the N first images, for example, save the N first images to a preset storage area.

It should be noted that, according to the screen capturing method provided in this embodiment of the present disclosure, in a case that M interfaces are displayed on a screen of a terminal device, a first input of a user on K interfaces in the M interfaces may be received. In response to the first input, screen capturing operations are performed on N interfaces that are in the M interfaces and corresponding to a parameter of the first input, to obtain N first images. Thus, the N first images may be synthesized to obtain a target screenshot. In this way, the user does not need to trigger the terminal device to enter an input of a screen capturing mode first, and then perform an input of selecting one or more interfaces to be captured. Instead, the user can trigger the terminal device by using the first input to select one or more interfaces and perform screen capturing operations. Therefore, the user's operation in a screen capturing process can be simplified, so that the terminal device can quickly and flexibly perform the screen capturing operation.

Optionally, in a possible implementation, this embodiment of the present disclosure may be applied to any one of the following scenarios <NUM> to <NUM>.

Scenario <NUM>: The terminal device performs a screen capturing operation on one interface displayed on the screen.

Scenario <NUM>: The terminal device performs screen capturing operations on a plurality of adjacent interfaces displayed on the screen.

Scenario <NUM>: The terminal device performs screen capturing operations on a plurality of non-adjacent interfaces displayed on the screen.

Optionally, in Scenario <NUM>, the first input may be an input of pressing an interface by a user with two fingers for more than a specific period of time (for example, <NUM>) and moving the two fingers downward simultaneously. The parameter of the first input is used to indicate the following: an input location of the first input is on the screen A2, there are two initial input touch points, input duration is greater than or equal to <NUM> seconds, and an input direction is a downward direction.

<FIG> is a schematic diagram of content displayed on a terminal device according to an embodiment of the present disclosure. The terminal device shown in <FIG> includes four screens: A1, A2, A3, and A4, and interfaces L1, L2, L3, and L4 are respectively displayed on the four screens. When the user performs an input of pressing the screen A2 with two fingers for more than <NUM> and controlling the two fingers to slide downward simultaneously (that is, performs the first input), the terminal device may determine that the interface L2 is an interface on which a screen capturing operation needs to be performed, and performs a screen capturing operation on the interface L2. Further, the terminal device may obtain and save a target screenshot, and the target screenshot is a screenshot of the interface L2 (recorded as an image S2).

In this way, a user may control, through a quick and convenient first input, a terminal device to quickly perform a screen capturing operation on an interface displayed on a screen, to obtain a screenshot of the interface.

For example, the K interfaces are one interface of the N interfaces, that is, K is equal to <NUM>. For example, the first input may be an input of pressing an interface, that needs to be screen captured, with two fingers for more than a specific period of time (for example, <NUM>), and moving the two fingers to slide leftward and rightward, respectively. For example, if a selected interface is the leftmost interface, only the left finger needs to be moved; or if the selected interface is the rightmost interface, only the right finger needs to be moved. In this case, a parameter of the first input indicates the following: an input location of the first input is on the screen A2, there are two initial input touch points, input duration is greater than or equal to <NUM>, and an input direction is a leftward and/or rightward direction.

<FIG> is a schematic diagram of content displayed on a terminal device according to an embodiment of the present disclosure. As shown in <FIG> and <FIG>, the user may press the screen A2 with two fingers for more than <NUM>, and move the two fingers to slide leftward and rightward, respectively, to select, depending on a displacement distance of the fingers of the user, an interface that needs to be screen captured by the user. After the fingers are lifted off the screen, the terminal device reads the interface selected by the user, further performs a screen capturing operation on the interface, and generates a target screenshot.

In this way, a user may control, through a quick and convenient first input, a terminal device to quickly perform screen capturing operations on a plurality of adjacent interfaces displayed on screens, to quickly obtain screenshots of the plurality of adjacent interfaces, that is, quickly obtain a target screenshot.

Optionally, in a first example of Scenario <NUM>, the first input is used for performing screen capturing on a plurality of non-adjacent applications. In this case, a multiple-finger pressing and downward-sliding manner may be used, for example, a plurality of interfaces are pressed with a plurality of fingers for more than a period of time (for example, <NUM>) and the plurality of fingers are dragged downward simultaneously, so as to read the display interfaces, pressed by the plurality of fingers, of the applications. In this case, the interfaces on which the user performs the operations are interfaces on which the user needs to perform screen capturing operations, and the terminal device may perform screen capturing operations on these interfaces.

<FIG> is a schematic diagram of content displayed on a terminal device according to an embodiment of the present disclosure. As shown in <FIG> and <FIG>, the user may press the screen A1, the screen A2, and the screen A4 with three fingers respectively for more than a period of time (for example, <NUM>), and move the three fingers to slide downward. In this case, a parameter of the first input is used to indicate the following: input locations of the first input are on the screens A1, A2, and A4, there are three initial input touch points, input duration is greater than or equal to <NUM>, and an input direction is a downward direction. Specifically, the terminal device may determine that the interfaces L1, L2, and L4 are interfaces on which screen capturing operations need to be performed, and perform screen capturing operations on these interfaces. Further, the terminal device may obtain and save a target screenshot, and the target screenshot is an image obtained by synthesizing a screenshot of the interface L1 (recorded as an image S1), a screenshot of the interface L2 (namely, the image S2), and a screenshot of the interface L4 (recorded as an image S4).

In this way, a user may control, through a quick and convenient first input, a terminal device to quickly perform screen capturing operations on a plurality of non-adjacent interfaces displayed on screens, to quickly obtain screenshots of the plurality of non-adjacent interfaces, that is, quickly obtain a target screenshot.

Optionally, in a second example of Scenario <NUM>, the N interfaces include a first interface and a second interface that are adjacent to each other. The first input includes a sliding input from the first interface to the second interface. An input track of the first input includes a first sliding track on the first interface and a second sliding track on the second interface. A difference between first coordinates and second coordinates is within a preset value range (for example, <NUM> - <NUM>). The first coordinates are coordinates of a last touch point of the first slide track in a first direction, the second coordinates are coordinates of a first touch point of the second sliding track in the first direction, the first direction is perpendicular to the second direction, and the second direction is a direction from the first interface to the second interface. For example, the first direction is a positive direction of the Y axis, the second direction is a positive direction of the X axis, that is, the first coordinates and the second coordinates are coordinates in a direction of the Y axis.

Specifically, when the user performs screen capturing operations on a plurality of non-adjacent interfaces, screen capturing may be performed based on a finger motion track. The user presses an interface, that needs to be screen captured, on the leftmost side of the interface with two fingers for more than a period of time (for example, for more than <NUM>), and moves the two fingers to slide rightward (or, the user presses an interface of an application, for which screen capturing needs to be performed, on the rightmost side of the application with two fingers for more than a period of time, and moves the two fingers to slide leftward). When the fingers slide to an interface, an application corresponding to the interface is selected if the coordinates on the Y axis have no obvious deviation, or the application corresponding to the interface is not selected if a downward deviation of the coordinates on the Y axis is greater than a target threshold. After the fingers slide to a next interface subsequently, an application corresponding to the interface is selected if an upward deviation of the coordinates is greater than the target threshold, or the application corresponding to the interface is not selected if the upward deviation of the coordinates is not greater than the target threshold.

<FIG> is a schematic diagram of content displayed on a terminal device according to an embodiment of the present disclosure. As shown in <FIG> and <FIG>, the user may press the screen A1 with two fingers for more than a period of time (for example, <NUM>), and move the two fingers to slide rightward. A last touch point of the user's finger on the screen A1 is a touch point P1, a first touch point of the user's finger on the screen A2 is a touch point P2, and a last touch point of the user's finger on the screen A2 is a touch point P3; a first touch point of the user's finger on the screen A3 is a touch point P4, and a last touch point of the user's finger on the screen A3 is a touch point P5; and a first touch point of the user's finger on the screen A4 is a touch point P6, and a last touch point of the user's finger on the screen A4 is a touch point P7. Specifically, a difference between a coordinate y1 of the touch point P1 on the Y axis and a coordinate y2 of the touch point P2 on the Y axis is less than a target threshold (for example, <NUM>). A difference between a coordinate y3 of the touch point P3 on the Y axis and a coordinate y4 of the touch point P4 on the Y axis is greater than the target threshold. A difference between a coordinate y5 of the touch point P5 on the Y axis and a coordinate y6 of the touch point P6 on the Y axis is less than the target threshold. In this case, the terminal device may determine that the interfaces L1, L2, and L4 are interfaces on which screen capturing operations need to be performed, and perform screen capturing operations on these interfaces. Further, the terminal device may obtain and save a target screenshot, and the target screenshot is an image obtained by synthesizing a screenshot of the interface L1 (namely, an image S1), a screenshot of the interface L2 (namely, the image S2), and a screenshot of the interface L4 (namely, an image S4).

Specifically, a parameter of the first input is used to indicate the following: input locations of the first input are on all the screens, there are two initial input touch points, initial input duration is greater than or equal to <NUM>, and an input direction is a direction in which the interfaces are arranged (for example, a direction from the first interface to the second interface).

It may be understood that, when the first interface is the interface L1 and the second interface is the interface L2, a first coordinate is the coordinate y1, and a second coordinate is the coordinate y2. A value obtained by subtracting y2 from y1 is less than the target threshold (that is, a difference between the first coordinate and the second coordinate is in a preset value range). In this case, the terminal device may determine that the interfaces L1 and L2 are interfaces on which screen capturing operations need to be performed.

In a possible implementation, in the screen capturing method provided in this embodiment of the present disclosure, step S304 may alternatively be performed after the foregoing step S302.

S304: When a first control is displayed on a screen, the terminal device performs screen capturing operations on the N interfaces corresponding to the parameter of the first input.

The first control is used to prompt the user that the foregoing N interfaces are interfaces on which screen capturing operations are to be performed.

Optionally, the first control is a text box. In this case, when the user controls, through a first input, the terminal device to select an interface to be screen captured, the terminal device may display text information, for example, "A first interface, a second interface, and a fourth interface are selected as interfaces to be screen captured. " on the first control.

Optionally, the first control includes M sub-controls, and each sub-control corresponds to one interface in the M interfaces displayed on the screens of the terminal device. Specifically, if a sub-control is in a selected state, it indicates that the interface corresponding to the sub-control is in the selected state, and the terminal device may perform a screen capturing operation on the interface. Otherwise, if a sub-control is in an unselected state, it indicates that the interface corresponding to the sub-control is in the unselected state, and the terminal device may not perform a screen capturing operation on the interface.

It should be noted that, the terminal device may display a selected sub-control with a preset effect, to indicate to the user that the interface corresponding to the sub-control is in the selected state. The foregoing preset effect may include at least one of the following: magnified display, display according to preset transparency (for example, the transparency is <NUM>%), filling display, and the like. Certainly, the preset effect includes but is not limited to the effects listed in the foregoing example, and may alternatively be any other effects that can be implemented, which is not described again in this embodiment of the present disclosure.

For example, with reference to <FIG>, <FIG> is a schematic diagram of content displayed on a terminal device according to an embodiment of the present disclosure. In <FIG>, the terminal device may alternatively display a first control F1 on a screen. The first control F1 includes a sub-control F11, a sub-control F12, a sub-control F13, and a sub-control F14. The sub-controls F11 to F14 correspond to the interfaces L1 to L4, respectively. For example, <FIG> shows the sub-controls F11 to F13 displayed in a filling effect, that is, the sub-controls F11 to F13 are in a selected state, but the sub-control F14 is in an unselected state, which indicates that the interfaces L1 to L3 are interfaces on which screen capturing operations need to be performed.

It should be noted that, in this embodiment of the present disclosure, when the terminal device performs screen capturing operations on the N interfaces corresponding to the parameter of the first input, the terminal device may prompt, through the first control, the user of interfaces, on which the user is about to perform the screen capturing operations, of the foregoing N interfaces, that is, prompt the user of specific interfaces on which the user is about to perform the screen capturing operations. In this way, the user may intuitively learn on which interfaces the terminal device is about to perform screen capturing operations, which helps reduce misoperations of a user caused when selecting an interface on which a screen capturing operation needs to be performed.

In a possible implementation, step S203 in the foregoing embodiment may be implemented by S203a.

S203a: The terminal device synthesizes, according to a target template, the N first images to obtain the target screenshot.

The target template is predefined or selected from a set of preset templates. The predefined target template may be a default template in the terminal device.

Optionally, the target template is used to instruct the terminal device to synthesize the N first images in a stitching manner, stacking manner, or fusion manner to obtain the target screenshot, which is not described in detail in this embodiment of the present disclosure.

For example, the stitching manner may be a manner of stitching in sequence from left to right, or stitching in sequence from top to bottom, or stitching in sequence from bottom to top. The stacking manner may include a manner of stacking in sequence from top to bottom, stacking in sequence from bottom to top, and the like. The foregoing fusion manner may indicate fusion of a plurality of images based on information such as brightness, color, temperature, distance, and other scenery characteristics, which is not specifically limited in this embodiment of the present disclosure.

It should be noted that, in this embodiment of the present disclosure, because a user may trigger a terminal device to synthesize, according to a target template, N first images to obtain a target screenshot, it is avoided that the terminal device combines the N first images disorderly, so that a pattern of the target screenshot can meet requirements of the user.

Further, in a possible implementation, the foregoing step S303a may be implemented by step S303b and S303c in this embodiment of the present disclosure.

S303b: The terminal device arranges the N first images according to the target template, and adds a target object on a target image, where the target image is an image in the N first images. N is greater than or equal to <NUM>.

Optionally, the target object may be files such as text and pictures (such as pictures of emoticons).

S303C: The terminal device synthesizes the N first images and the target image to obtain the target screenshot.

Specifically, the terminal device may stack the target object on the target image to obtain the target screenshot obtained by synthesizing the N first images and the target object. The target object is input by the user or determined based on information of the target image.

For example, the target object added by the terminal device is text "I am very happy today!" or an emoticons indicating "Come on!". The target image is an image S2.

Optionally, the information about the target image includes at least one of the following: content of the target image and an application to which target image belongs.

For example, the interface L1 is a balance interface in a payment application <NUM>, and the interface L2 is a balance interface in a payment application <NUM>. Based on content of the interfaces L1 and L2, the terminal device determines the target object as custom text "Living on dirt". The target image includes the image S1 and the image S2, part of the text "Living on dirt" may be stacked on the image S1 for display, and the other part is stacked on the image S2 for display.

It should be noted that, in the screen capturing method provided in this embodiment of the present disclosure, because a terminal device may add a target object such as user-defined text or picture on a target screenshot obtained through a screen capturing operation, the screen capturing operation process becomes more interesting.

<FIG> is a structural schematic diagram of a terminal device according to an embodiment of the present disclosure. The terminal device <NUM> shown in <FIG> includes a receiving module <NUM>, a screen capturing module <NUM>, and a synthesis module <NUM>. The receiving module <NUM> is configured to: in a case that M interfaces are displayed on a screen of the terminal device, receive a first input of a user on K interfaces in the M interfaces. The screen capturing module <NUM> is configured to: in response to the first input received by the receiving module <NUM>, perform screen capturing operations on N interfaces that are corresponding to a parameter of the first input, to obtain N first images. The synthesis module <NUM> is configured to synthesize the N first images obtained by the screen capturing module <NUM> to obtain a target screenshot. The N interfaces are interfaces in the M interfaces, and M, N, and K are positive integers.

Optionally, the N interfaces includes a first interface and a second interface that are adjacent to each other, and the first input includes a sliding input from the first interface to the second interface. An input track of the first input includes a first sliding track on the first interface and a second sliding track on the second interface. A difference between first coordinates and second coordinates is within a preset value range, the first coordinates are coordinates of the last touch point of the first sliding track in a first direction, and the second coordinates are coordinates of the first touch point of the second sliding track in the first direction. The first direction is perpendicular to a second direction, and the second direction is a direction from the first interface to the second interface.

Optionally, a first control is further displayed on the screen. The screen capturing module <NUM> is specifically configured to perform screen capturing operations on the N interfaces in a case that the first control indicates that the N interfaces are in a selected state.

Optionally, the synthesis module <NUM> is specifically configured to synthesize, according to a target template, the N first images to obtain the target screenshot. The target template is predefined or selected from a set of preset templates.

Optionally, N is greater than <NUM>. The synthesis module <NUM> is specifically configured to: arrange the N first images according to the target template, and add a target object on a target image, where the target image is an image in the N first images; and synthesize the N first images and the target object to obtain the target screenshot. The target object is input by the user or determined based on information about the target image.

The terminal device <NUM> provided in this embodiment of the present disclosure can implement processes implemented by the terminal device in the foregoing method embodiments. To avoid repetition, details are not described herein again.

According to the terminal device provided in this embodiment of the present disclosure, in a case that M interfaces are displayed on a screen of a terminal device, a first input of a user on K interfaces in the M interfaces may be received. In response to the first input, screen capturing operations are performed on N interfaces that are in the M interfaces and corresponding to a parameter of the first input, to obtain N first images. Thus, the N first images may be synthesized to obtain a target screenshot. In this way, the user does not need to trigger the terminal device to enter an input of a screen capturing mode first, and then perform an input of selecting one or more interfaces to be captured. Instead, the user can trigger the terminal device by using the first input to select one or more interfaces and perform screen capturing operations. Therefore, the user's operation in a screen capturing process can be simplified, so that the terminal device can quickly and flexibly perform the screen capturing operation.

<FIG> is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present disclosure. The terminal device <NUM> includes but is not limited to components such as a radio frequency unit <NUM>, a network module <NUM>, an audio output unit <NUM>, an input unit <NUM>, a sensor <NUM>, a display unit <NUM>, a user input unit <NUM>, an interface unit <NUM>, a memory <NUM>, a processor <NUM>, and a power supply <NUM>. It can be understood by a person skilled in the art that, the terminal device structure shown in <FIG> does not constitute any limitation on the terminal device, and the terminal device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements. In this embodiment of the present disclosure, the terminal device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

The processor <NUM> is configured to: in a case that M interfaces are displayed on a screen of the terminal device, receive a first input of a user on K interfaces in the M interfaces. The processor <NUM> is configured to: in response to the first input received by a receiving module <NUM>, perform screen capturing operations on N interfaces that are corresponding to a parameter of the first input, to obtain N first images; and synthesize the N first images to obtain a target screenshot. The N interfaces are interfaces in the M interfaces, and M, N, and K are positive integers.

According to the terminal device provided in this embodiment of the present disclosure, in a case that M interfaces are displayed on a screen of a terminal device, a first input of a user on K interfaces in the M interfaces may be received. In response to the first input, screen capturing operation are performed on N interfaces that are in the M interfaces and corresponding to a parameter of the first input, to obtain N first images. Thus, the N first images may be synthesized to obtain a target screenshot. In this way, the user does not need to trigger the terminal device to enter an input of a screen capturing mode first, and then perform an input of selecting one or more interfaces to be captured. Instead, the user can trigger the terminal device by using the first input to select one or more interfaces and perform screen capturing operations. Therefore, the user's operation in a screen capturing process can be simplified, so that the terminal device can quickly and flexibly perform the screen capturing operation.

It should be understood that in this embodiment of the present disclosure, the radio frequency unit <NUM> may be configured to receive and transmit information, or receive and transmit a signal during a call. Specifically, the radio frequency unit <NUM> receives downlink data from a base station, and then transmits the downlink data to the processor <NUM> for processing; and in addition, transmits uplink data to the base station. Generally, the radio frequency unit <NUM> includes but is not limited to: an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, and a duplexer, and the like. In addition, the radio frequency unit <NUM> may further communicate with another communications device through a wireless communication system and network.

The terminal device provides wireless broadband Internet access for the user by using the network module <NUM>, for example, helping the user to send and receive an email, browse a web page, and access streaming media.

The audio output unit <NUM> may convert audio data received by the radio frequency unit <NUM> or the network module <NUM> or stored in the memory <NUM> into an audio signal, and output the audio signal as sound. In addition, the audio output unit <NUM> may further provide an audio output (for example, a call signal receiving sound and a message receiving sound) related to a specific function performed by the terminal device <NUM>. The audio output unit <NUM> includes a speaker, a buzzer, a telephone receiver, and the like.

The input unit <NUM> is configured to receive audio or video signals. The input unit <NUM> may include a graphics processing unit (Graphics Processing Unit, GPU) <NUM> and a microphone <NUM>. The graphics processing unit <NUM> processes image data of a static picture or a video obtained by an image capturing apparatus (for example, a camera) in an image capturing mode or a video capturing mode. A processed image frame may be displayed on the display unit <NUM>. The image frame processed by the graphics processing unit <NUM> may be stored in the memory <NUM> (or another storage medium) or sent via the radio frequency unit <NUM> or the network module <NUM>. The microphone <NUM> may receive sound and can process such sound into audio data. The processed audio data may be converted, in a call mode, into a format that may be transmitted to a mobile communication base station by using the radio frequency unit <NUM> for output.

The terminal device <NUM> further includes at least one sensor <NUM>, for example, an optical sensor, a motion sensor, and other sensors. Specifically, the optical sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of a display panel <NUM> based on brightness of an ambient light. The proximity sensor may turn off the display panel <NUM> and/or a backlight when the terminal device <NUM> approaches an ear. As a type of motion sensor, an accelerometer sensor can detect magnitudes of accelerations in all directions (usually three axes), can detect a magnitude and a direction of gravity in a static state, and can be configured to recognize a terminal device posture (such as screen switching between portrait and landscape, related games, and magnetometer posture calibration), functions related to vibration recognition (such as pedometer and tapping), and the like. The sensor <NUM> may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like.

The display unit <NUM> is configured to display information inputted by a user or information provided to a user. The display unit <NUM> may include the display panel <NUM>, and the display panel <NUM> may be configured in a form of a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED), or the like.

The user input unit <NUM> may be configured to receive inputted digit or character information, and generate key signal input related to user setting and function control of the terminal device. Specifically, the user input unit <NUM> includes a touch panel <NUM> and another input device <NUM>. The touch panel <NUM> is also referred to as a touchscreen, and may collect a touch operation performed by a user on or near the touch panel <NUM> (such as an operation performed by a user on the touch panel <NUM> or near the touch panel <NUM> by using any proper object or accessory, such as a finger or a stylus). The touch panel <NUM> may include two parts: a touch detection apparatus and a touch controller. The touch detection device detects a touch position of the user, detects a signal brought by the touch operation, and sends the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor <NUM>, and receives and executes a command sent by the processor <NUM>. In addition, the touch panel <NUM> may be implemented in a plurality of types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit <NUM> may include the another input device <NUM> in addition to the touch panel <NUM>. Specifically, the another input device <NUM> may include, but is not limited to, a physical keyboard, a function key (for example, a volume control key or a switch key), a trackball, a mouse, and a joystick.

Further, the touch panel <NUM> can cover the display panel <NUM>. When detecting a touch operation on or near the touch panel <NUM>, the touch panel <NUM> transmits the touch operation to the processor <NUM> to determine a type of a touch event. Then, the processor <NUM> provides corresponding visual output on the display panel <NUM> based on the type of the touch event. Although the touch panel <NUM> and the display panel <NUM> are used as two separate components to implement input and output functions of the terminal device in <FIG>, in some embodiments, the touch panel <NUM> and the display panel <NUM> may be integrated to implement the input and output functions of the terminal device. This is not specifically limited herein.

The interface unit <NUM> is an interface for connecting an external apparatus with the terminal device <NUM>. For example, the external apparatus may include a wired or wireless headset port, an external power supply (or a battery charger) port, a wired or wireless data port, a memory card port, a port for connecting an apparatus having an identification module, an audio input/output (I/O) port, a video I/O port, a headset port, and the like. The interface unit <NUM> may be configured to receive an input (for example, data information or power) from an external apparatus and transmit the received input to one or more elements in the terminal device <NUM>, or transmit data between the terminal device <NUM> and the external apparatus.

The memory <NUM> may be configured to store a software program and various data. The memory <NUM> may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application (for example, a sound play function or an image play function) required for at least one function, and the like. The data storage area may store data created based on use of the mobile phone (for example, audio data and a phone book), and the like. In addition, the memory <NUM> may include a high-speed random access memory, and may further include a nonvolatile memory, for example, at least one disk storage device, a flash memory, or another volatile solid-state storage device.

The processor <NUM> is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and circuits, and performs various functions of the terminal device and processes data by running or executing the software programs and/or the modules stored in the memory <NUM> and invoking data stored in the memory <NUM>, so as to monitor the terminal device as a whole. The processor <NUM> may include one or more processing units. Optionally, the processor <NUM> may be integrated with an application processor and a modem processor. The application processor mainly processes an operating system, a user interface, an application, and the like, and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated in the processor <NUM>.

The terminal device <NUM> may further include the power supply <NUM> (such as a battery) that supplies power to each component. Optionally, the power supply <NUM> may be logically connected to the processor <NUM> by using a power management system, to implement functions such as charging, discharging, and power consumption management by using the power management system.

In addition, the terminal device <NUM> includes some function modules not shown, and details are not described herein.

Optionally, an embodiment of the present disclosure further provides a terminal device, including a processor <NUM>, a memory <NUM>, and a computer program that is stored in the memory <NUM> and executable on the processor <NUM>. When the computer program is executed by the processor <NUM>, the processes of the screen capturing method embodiments are implemented, with the same technical effects achieved. To avoid repetition, details are not described herein again.

An embodiment of the present disclosure further provides a computer-readable storage medium, and a computer program is stored in the computer readable storage medium. When the computer program is executed by a processor, the processes of the foregoing screen capturing method embodiments are implemented, with the same technical effects achieved. To avoid repetition, details are not described herein again. The computer-readable storage medium may be, for example, a read-only memory (Read-only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disc.

It should be noted that, in this specification, the terms "include", "comprise", or any of their variants are intended to cover a non-exclusive inclusion, such that a process, a method, an article, or an apparatus that includes a list of elements not only includes those elements but also includes other elements that are not expressly listed, or further includes elements inherent to such process, method, article, or apparatus. An element limited by "includes a. " does not, without more constraints, preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

Claim 1:
A screen capturing method, wherein the method comprises:
in a case that M interfaces (L1, L2, L3, L4) are displayed on a screen (A1, A2, A3, A4) of a terminal device, receiving (S301) a first input of a user on K interfaces in the M interfaces (L1, L2, L3, L4); an interface in the M interfaces (L1, L2, L3, L4) is an interface of an application or a desktop;
in response to the first input, performing (S302) screen capturing operations on N interfaces that are corresponding to a parameter of the first input, to obtain N first images; and
synthesizing (S303) the N first images to obtain a target screenshot, wherein
the N interfaces are interfaces in the K interfaces, M and K are positive integers greater than <NUM>, and N is a positive integer greater than <NUM>;
characterized in that
the N interfaces comprise a first interface and a second interface that are adjacent to each other, and the first input comprises a sliding input from the first interface to the second interface, wherein
an input track of the first input comprises a first sliding track on the first interface and a second sliding track on the second interface; a difference between first coordinates and second coordinates is within a preset value range, the first coordinates are coordinates, in a first direction, of a last touch point of the first sliding track, and the second coordinates are coordinates, in the first direction, of a first touch point of the second sliding track; and the first direction is perpendicular to a second direction, and the second direction is a direction from the first interface to the second interface.