Screen capture method, device, electronic device and computer readable medium
By detecting the specified touch operation gestures and determining the target display area, the screenshot operation is directly executed, and the complex screenshot operation is solved in the multi-display area mode, and the rapid and simple screenshot operation is achieved, which improves the user experience.
Patent Information
- Application Number
- CN202210434949.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-24
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-04-24
AI Technical Summary
In the prior art, the screenshot operation in the multi-display area mode is too complicated, and it is necessary to take a full screen first and then cut it, which is complicated.
By detecting the specified touch operation gesture, the target display area is determined in multiple display areas, and the screenshot operation is directly performed, simplifying the user's operation process.
It realizes that in multi-display area mode, users can quickly take screenshots through simple touch gestures, which is simple to operate and has a high user experience, reducing operation time.
Smart Images

Figure CN114779976B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile terminal technology, and more specifically, to a screenshot method, device, electronic device and computer-readable medium. Background Art
[0002] With the development of science and technology, electronic devices are used more and more widely and have more and more functions, and have become one of the necessities in people's daily life. However, the current screenshot operation for electronic devices is too complicated, resulting in poor user experience. Summary of the invention
[0003] The present application proposes a screenshot method, device, electronic device and computer-readable medium to improve the above-mentioned defects.
[0004] In a first aspect, an embodiment of the present application provides a screenshot method, which is applied to an electronic device, and the method comprises: when the electronic device is in a target display state, detecting a specified touch operation gesture, wherein the display interface of the electronic device in the target display state comprises multiple display areas; determining one or more target display areas selected from the multiple display areas according to the specified touch operation gesture; and performing a screenshot operation on the display content within the target display area.
[0005] In a second aspect, an embodiment of the present application further provides a screenshot device, which is applied to an electronic device, and the device includes: a detection unit, a determination unit, and a screenshot unit. The detection unit is used to detect a specified touch operation gesture when the electronic device is in a target display state, wherein the display interface of the electronic device in the target display state includes multiple display areas. The determination unit is used to determine one or more target display areas selected from the multiple display areas according to the specified touch operation gesture. The screenshot unit is used to perform a screenshot operation on the display content in the target display area.
[0006] In a third aspect, an embodiment of the present application also provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the above method.
[0007] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.
[0008] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program / instructions, which implement the above method when executed by a processor.
[0009] The screenshot method, device, electronic device and computer-readable medium provided by the present application are as follows: when the electronic device is in a target display state, the screen of the electronic device includes multiple display areas. Then, when the electronic device detects a specified touch operation gesture, it determines the target display area corresponding to the specified touch operation gesture from the multiple display areas, and performs a screenshot operation on the target display area. Therefore, when targeting multiple display areas, the user can input a specified touch operation gesture to trigger the electronic device to determine the target display area from the multiple display areas and perform a screenshot operation on it. The operation is simple and the user experience is high.
[0010] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or can be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 A schematic diagram showing multiple display areas of a single-screen terminal provided in an embodiment of the present application is shown;
[0013] Figure 2 A schematic diagram showing multiple display areas of a single-screen terminal provided in another embodiment of the present application is shown;
[0014] Figure 3 A schematic diagram showing a folded state of a foldable screen terminal provided by an embodiment of the present application is shown;
[0015] Figure 4 A schematic diagram showing an unfolded state of a foldable screen terminal provided by an embodiment of the present application is shown;
[0016] Figure 5 A schematic diagram showing multiple display areas of a foldable screen terminal provided by an embodiment of the present application;
[0017] Figure 6 A schematic diagram showing multiple display areas of a foldable screen terminal provided by another embodiment of the present application;
[0018] Figure 7 A method flow chart of a screenshot method provided by an embodiment of the present application is shown;
[0019] Figure 8 A method flow chart of a screenshot method provided by another embodiment of the present application is shown;
[0020] Fig. 9 A schematic diagram of a touch operation gesture provided by an embodiment of the present application is shown;
[0021] Fig.10 A schematic diagram of a touch operation gesture provided by another embodiment of the present application is shown;
[0022] Fig.11 A schematic diagram of a touch operation gesture provided by another embodiment of the present application is shown;
[0023] Fig.12 A schematic diagram showing the sliding end position of a touch operation gesture provided in an embodiment of the present application;
[0024] Fig.13 A schematic diagram of a screenshot image provided by an embodiment of the present application is shown;
[0025] Fig.14 A schematic diagram of a screenshot editing interface provided by an embodiment of the present application is shown;
[0026] Fig.15 A schematic diagram showing a sliding end position of a touch operation gesture provided by another embodiment of the present application is shown;
[0027] Fig.16 A schematic diagram of a screenshot frame provided in an embodiment of the present application is shown;
[0028] Fig.17 A schematic diagram of a preset control provided by an embodiment of the present application is shown;
[0029] Fig.18 A schematic diagram showing a preset operation for a preset control provided in an embodiment of the present application is shown;
[0030] Fig.19 A schematic diagram showing a first designated operation for a preset control provided by another embodiment of the present application is shown;
[0031] Fig. 20 A schematic diagram of operations for preset controls and a screenshot frame provided by another embodiment of the present application is shown;
[0032] Fig.21 A schematic diagram showing a second designated operation for a preset control provided by another embodiment of the present application is shown;
[0033] Fig. 22 A method flow chart of a screenshot method provided by another embodiment of the present application is shown;
[0034] Fig.23 A schematic diagram of a screenshot image provided by another embodiment of the present application is shown;
[0035] Fig.24 A schematic diagram showing a user's dragging operation on a thumbnail provided by an embodiment of the present application is shown;
[0036] Fig.25 A schematic diagram showing content displayed in a designated display area after a user performs a drag operation on a thumbnail provided by an embodiment of the present application is shown;
[0037] Fig.26 A schematic diagram showing a user's dragging operation on a thumbnail provided by another embodiment of the present application is shown;
[0038] Fig. 27 A schematic diagram showing display content in a designated display area after a user performs a drag operation on a thumbnail provided by another embodiment of the present application is shown;
[0039] Fig.28 A module block diagram of a screen capture device provided by an embodiment of the present application is shown;
[0040] Fig.29 A module block diagram of an electronic device provided in an embodiment of the present application is shown;
[0041] Fig.30 A module block diagram of a computer-readable medium provided in an embodiment of the present application is shown;
[0042] Fig.31 A module block diagram of a computer product provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0043] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0044] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0045] With the development of science and technology, electronic devices are used more and more widely, with more and more functions, and have become one of the necessities in people's daily life. Electronic devices are usually provided with a screen, which can be a touch screen, for displaying content and receiving touch operation gestures input by the user. Based on the different materials and structures of the screen, electronic devices can be divided into single-sided screen terminals, double-sided screen terminals and folding screen terminals. Among them, the screen of the folding screen terminal can be a flexible display screen, and the screen shape can be switched from unfolded to folded through hardware structures such as hinges. In the related art, an electronic device with a folding screen can be in a folded state or an unfolded state. When in the unfolded state, the folding screen can have multiple display areas, and display content through multiple display areas. At this time, the size of the entire touch screen is larger.
[0046] Regardless of the type of terminal, the screen of the terminal can display one content through the entire display area of the screen, or different content can be displayed in different display areas of the screen. That is to say, the terminal can be divided into a single-area display mode and a multi-area display mode. In the single-area display mode, the entire screen is used as a display area to display an interface, while in the multi-area display mode, the entire screen is divided into multiple display areas, and each display area independently displays the content used to display the area. Each display area can be set as an independent operation area. When the display area receives a touch operation, it is determined that the touch operation is used to operate the area where the touch operation acts.
[0047] Multiple display areas are shown below for different types of terminals. It should be noted that the interface diagram shown in this application is only shown as an example and is not limited to the type of terminal shown. It corresponds to any type of terminal, whether it is a folding screen, a single-sided screen, a double-sided screen or other types of screens, as long as the terminal has a touch screen and the touch screen can be divided into multiple display areas to independently display content, it is applicable to the methods and devices mentioned in the embodiments of this application.
[0048] like Figure 1 As shown, Figure 1 The electronic device 10 shown is a single-screen terminal. The electronic device 10 is in a split-screen mode. In the split-screen mode, the electronic device is divided into a plurality of display areas, wherein the plurality refers to at least 2, and the plurality of display areas do not overlap each other. Figure 1As shown, two interfaces are displayed on the electronic device 10, namely, a first interface 11 and a second interface 12, the two interfaces correspond to two different display areas, the two display areas of the first interface 11 and the second interface 12 do not overlap each other, and the first interface 11 and the second interface 12 each independently display the content to be displayed. Exemplarily, the first interface 11 and the second interface 12 may correspond to interfaces of different applications, for example, the first interface 11 is a video playback interface of a video application, and the second interface 12 is an interface of a social application. Specifically, both the first interface 11 and the second interface 12 may be in an activated state, or one of the interfaces may be in an activated state. For example, when the first interface 11 is playing a video, the first interface 11 is in an activated state and the second interface 12 is in a paused state.
[0049] like Figure 2 As shown, Figure 1 The screen of the electronic device 10 shown also includes multiple display areas, and the multiple display areas are not mutually non-overlapping. At least two display areas in each display area overlap with each other. For the overlapping area, the operation gesture obtained in the overlapping area can be determined to be used to operate the interface in the topmost area of the overlapping area, such as Figure 2 As shown, the multiple display areas include a third area 13 and a fourth area 14, wherein the interface displayed in the third area 13 is a video playback interface, and the interface displayed in the fourth area 14 is a chat interface, and the fourth area 14 overlaps with the third area 13. When the user inputs an operation gesture to act on the fourth area 14, since the layer of the fourth area 14 is higher than the third area 13, the operation gesture will be determined by the system as a gesture acting on the chat interface displayed in the fourth area 14. Exemplarily, the fourth area 14 can be a floating window, specifically, the floating window can be dragged, that is, the fourth area 14 can be changed to another display position.
[0050] In addition, with the development of technology, in order to allow users to experience a larger operating area and display area when splitting the screen, the electronic device can be a foldable screen mobile phone, so that when the electronic device is unfolded, the display area of the entire screen is larger than the display area of a single or dual screen, and, in the multi-display area mode, the maximum area that can be used for each window display area of the foldable screen is also larger than that of a single or dual screen.
[0051] like Figure 3As shown, the electronic device 20 is a folding screen terminal, which may include a foldable housing assembly 110, a flexible display screen 120, and an electronic component (not shown in the figure), the electronic component is arranged in the foldable housing assembly 110, and the flexible display screen 120 is laid on the foldable housing assembly 110. The foldable housing assembly 110 is used to carry the flexible display screen 120 and protect the electronic component. The electronic component may include, but is not limited to, a central processing unit, a memory, a camera, a receiver, a fingerprint module, etc., and the specific electronic component may not be limited in the embodiment of the present application.
[0052] The foldable housing assembly 110 includes a first housing 111, a second housing 112 and a hinge mechanism 113, wherein the first housing 111 and the second housing 112 are respectively connected to the two sides of the hinge mechanism 113. The second housing 112 can be folded or unfolded relative to the first housing 111 through the hinge mechanism 113, so that the foldable housing assembly 110 drives the flexible display screen 120 to fold or unfold. When the foldable housing assembly 110 and the flexible display screen 120 are in a folded state, the volume of the electronic device 100 is relatively small, which is convenient for storage and carrying. When the foldable housing assembly 110 and the flexible display screen 120 are in an unfolded state, the volume of the electronic device 100 is relatively large, which is convenient for displaying information.
[0053] See also Figure 4In this embodiment, the flexible display screen 120 includes a first display portion 121 connected to the first shell 111, a second display portion 122 connected to the second shell 112, and a bent display portion 123 connected to the first display portion 121 and the second display portion 122. The first display portion 121, the second display portion 122, and the bent display portion 123 can form a plurality of display areas (for example, two display areas, three display areas, four display areas...N display areas) correspondingly. The first display portion 121 and the second display portion 122 are folded or unfolded relative to the first shell 111 and the second shell 112, respectively. The bent display portion 123 is bent or flattened as the first display portion 121 and the second display portion 122 are folded or unfolded. In some embodiments, the first display portion 121, the second display portion 122 and the bending display portion 123 may be an integral structure, so that the flexible display screen 120 is a whole-piece flexible display screen; or, in some other embodiments, the bending display portion 123 is a bendable flexible portion, and the first display portion 121 and the second display portion 122 may be non-flexible portions, and the first display portion 121 and the second display portion 122 are relatively folded or unfolded through the bending display portion 123. In this embodiment, when the first housing 111 and the second housing 112 are in a superimposed state, the first display portion 121 and the second display portion 122 are separated, so that the electronic device 100 presents a structure of an outward folding screen, so that the user can also observe the display content of the flexible display screen 120 when folded, thereby improving the convenience of using the electronic device 100. In some other embodiments, when the first shell 111 and the second shell 112 are overlapped, the first display portion 121 and the second display portion 122 are close to each other, so that the electronic device 100 presents an inward folding screen structure to prevent the flexible display screen 120 from being scratched and damaged.
[0054] It should be understood that the naming of the above-mentioned first display portion 121, the second display portion 122 and the bent display portion 123 is only provided for the convenience of description and does not serve as a structural limitation of the flexible display screen 120. In actual application scenarios, the first display portion 121, the second display portion 122 and the bent display portion 123 may have no obvious boundaries, or the flexible display screen 120 may appear in other division structures. For example, the flexible display screen 120 includes a first display portion 121 and a second display portion 122 connected to the first display portion 121, and the first display portion 121 and the second display portion 122 can rotate relative to each other to be folded or unfolded.
[0055] See also Figure 5 , Figure 5 A schematic diagram of a multi-display area mode of a folding screen terminal is shown, such as Figure 5As shown, the electronic device 20 is in split-screen mode, and the screen is divided into a first display area 21 and a second display area 22. Exemplarily, the first display area 21 and the second display area 22 respectively display interfaces of different applications, so that the user can use different applications or different interfaces in the two different display areas. Figure 5 The displayed area is Figure 1 The display areas shown are similar, the display areas do not overlap each other, and the display areas are adjacent to each other, and the display areas constitute the entire display area of the screen. Figure 6 As shown, relative to Figure 5 In the multi-display area mode of the electronic device 20, a plurality of floating windows are displayed on the screen, such as Figure 6 As shown, the multiple floating windows include a first window 23, a second window 24, a fifth window 25 and a sixth interface 26. The first window 23, the second window 24 and the fifth window 25 do not overlap with each other, but the first window 23, the second window 24 and the fifth window 25 all overlap with the sixth interface 26, that is, the first window 23, the second window 24 and the fifth window 25 all float above the sixth interface 26.
[0056] The display screen of an electronic device can display the interface that the user needs to operate or display the content that the user is interested in. In order to record the display content of the page, the user usually uses the electronic device to perform a screenshot operation, that is, to save the content displayed on the screen of the electronic device as a picture.
[0057] However, the inventors have found in their research that there are currently some common defects in the screenshots in the multi-display area mode, specifically, the operation method is too complicated. For example, in the multi-display area mode, if you want to take a screenshot of a certain area, a common practice is to first take a full-screen screenshot, and a screenshot preview option will appear. Click the preview image to enter the screenshot cropping interface, where you can freely crop the image, and crop the display content corresponding to the required display area from the full-screen image. It can be seen that this method requires taking a full screenshot first and then cropping, and the operation is too complicated. Another way is to first take a full-screen screenshot, and a screenshot preview option will appear. Click the crop function to enter the screenshot cropping interface, and click the split-screen screenshot to quickly crop to the split-screen interface. Compared with the previous method, this method can quickly cut the display content of a split-screen interface, but it still requires taking a full screenshot first and then cropping, and the operation is still too complicated.
[0058] Therefore, in order to overcome the above-mentioned defects, an embodiment of the present application provides a screenshot method, which can simply and quickly complete the screenshot of the display area to be screenshotted by performing a gesture on the display area to be screenshotted.
[0059] Specifically, see Figure 7 , Figure 7A screenshot method provided in an embodiment of the present application is shown, which is applied to the above-mentioned electronic device. The method may include: S701 to S703.
[0060] S701: When the electronic device is in a target display state, a designated touch operation gesture is detected.
[0061] Wherein, when the electronic device is in a target display state, the display interface of the screen of the electronic device includes multiple display areas.
[0062] As an implementation, the target display state may be the aforementioned multi-display area mode, for example, the aforementioned split screen mode or at least one floating window mode. In this target display state, the screen of the electronic device is divided into multiple display areas, and each display area can independently display the content to be displayed. Figure 5 The first display area 21 and the second display area 22 in the split screen mode are taken as an example, but it should be noted that the present application is not limited to Figure 5 The split-screen mode shown here is only used to illustrate the technical solution of the present application through an example.
[0063] When the electronic device is in the target display state, the electronic device can detect the operation gesture acting on the screen, for example, it can detect whether the screen is touched through the onTouchEvent class function of the operating system, so as to detect the specified touch operation gesture, and the specified touch operation gesture can be a touch operation gesture belonging to the specified gesture. Exemplarily, the specified gesture can be set according to the user's usage requirements, and can be a specified sliding track, a specified sliding direction, a specified pressing force, a specified touch duration, a specified touch mode (for example, single click, double click, sliding), a specified number of touch points or a specified number of sliding tracks, etc. Specifically, it is not limited here. By setting the specified gesture, the gesture can be distinguished from other gestures, so that the gesture can be used as a special gesture for taking screenshots of a certain display area to avoid confusion with other gestures, and can also avoid the user's accidental touch operation.
[0064] S702: Determine one or more target display areas selected from the multiple display areas according to the designated touch operation gesture.
[0065] As an implementation method, the implementation method of selecting one or more target display areas from the multiple display areas according to the specified touch operation gesture may be to determine the operation area of the specified touch operation gesture on the screen, and use all display areas that intersect with the operation area as the target area. In the embodiment of the present application, the number of target display areas may be one or more, and the plurality is at least two, which is not limited here.
[0066] After detecting the specified touch operation gesture acting on the screen, determine the action position of the specified touch operation gesture. For example, the horizontal and vertical coordinates of the touch position of the specified touch operation gesture can be obtained through the event.getX() and event.getY() functions under the onTouchEvent class of the operating system, and then determine the action position of the specified touch operation gesture, that is, the operation area of the specified touch operation gesture on the screen.
[0067] For example, Figure 5 The first display area 21 and the second display area 22 are shown. It is assumed that the position area corresponding to the first display area 21 on the screen is the first position area, and the position area corresponding to the second display area 22 on the screen is the second position area.
[0068] Then determine the position area to which the action position belongs, for example, determine whether the action position belongs to the first position area or the second position area, so as to determine the display area corresponding to the position area to which the touch position of the specified touch operation gesture belongs, that is, the target display area. Figure 5 A specified touch operation gesture is input into the first display area 21 in the display area, thereby determining that the target display area is the first display area 21.
[0069] S703: Execute a screenshot operation on the display content in the target display area.
[0070] As an implementation, the screenshot operation can be a regional screenshot, a full screenshot, and a scrolling screenshot, which are not specifically limited here. It should be noted that a full screenshot of a target display area refers to a screenshot of all the contents currently displayed in the target display area and saving it as an image, rather than a screenshot of all the displayed contents on the screen of the electronic device.
[0071] Therefore, in the method provided by the embodiment of the present application, when the electronic device is in a target display state, the screen of the electronic device includes multiple display areas. Then, when the electronic device detects a specified touch operation gesture, it determines the target display area corresponding to the specified touch operation gesture from the multiple display areas, and performs a screenshot operation on the target display area. Therefore, when targeting multiple display areas, the user can input a specified touch operation gesture to trigger the electronic device to determine the target display area from the multiple display areas and perform a screenshot operation on it. The operation is simple and the user experience is high.
[0072] See also Figure 8 , Figure 8 A screenshot method provided in another embodiment of the present application is shown, which is applied to the above-mentioned electronic device. The method may include: S801 to S810.
[0073] S801: When the electronic device is in a target display state, detecting a specified touch operation gesture.
[0074] S802: If the designated touch operation gesture is detected, determine one or more target display areas selected from the multiple display areas according to the designated touch operation gesture.
[0075] As an implementation manner, the electronic device is in a target display state, and the screen of the electronic device includes multiple display areas, and the multiple display areas may include floating windows or split-screen windows, such as Figure 1 , 2 As shown in Figures 5 and 6, the multiple display areas are not limited to the type of windows, and the target display area is also not limited to the type of windows. It should be noted that even if the target display area is located under a floating window, the target display area still has and displays an area where touch operations can be detected.
[0076] As an implementation mode, the target display area corresponding to the specified touch operation gesture can be determined by all touch points of the specified touch operation gesture being located within the target display area, or by the starting point and end point of the touch operation gesture being located within the target display area. That is to say, from all display areas, an area including the starting point position and the end point position is determined as the target display area. Thus, when the user operates some display areas with smaller areas, it is sufficient to ensure that the starting point and the end point are within the area. Then, the specified touch operation gesture can be completed with the help of other display areas of the screen. For example, the specified touch operation gesture is to slide out a specified trajectory. Therefore, the sliding of the specified trajectory is completed with the help of the display area outside the target display area of the screen. Then, the starting point and the end point of the specified trajectory are located in the target display area. Thus, the sliding of the specified trajectory can be completed and the sliding gesture can be corresponded to the target display area.
[0077] On this basis, if a preset percentage of touch points among all touch points of the specified touch operation gesture are located within the target display area, the specified touch operation gesture is determined to correspond to the target display area. Specifically, the total number of all touch points of the specified touch operation gesture is determined as the first number, and the second number of touch points acting on each display area is determined. Based on the first number and the second number corresponding to each display area, the specified percentage of each display area is determined. For example, the ratio of the second number to the first number is used as the specified percentage, and the display area with the preset percentage is used as the target display area. The preset percentage can be set according to actual usage requirements. For example, it can be 80%. If the touch points corresponding to the specified touch operation gesture are detected according to the preset sampling interval, a total of 10 touch points are collected, of which at least 8 touch points are located within the target display area, it can be determined that the specified touch operation gesture corresponds to the target display area.
[0078] In an embodiment of the present application, the specified touch operation gesture can be a specified sliding trajectory, a specified sliding direction, a specified pressing force, a specified touch duration, a specified touch method (for example, single-click, double-click, or sliding), a specified number of touch points, or a specified number of sliding trajectories, etc. Specifically, the gesture can be distinguished from other gestures so that the gesture can be used as a special gesture for taking a screenshot of a certain display area, avoiding confusion with other gestures and avoiding accidental touch operations by users.
[0079] As an implementation method, after detecting a specified touch operation gesture and determining the target display area corresponding to the specified touch operation gesture, it is determined whether the specified touch operation gesture belongs to a specified gesture. Only if it belongs to a specified gesture is it eligible to perform a screenshot operation on the target display area, wherein the specified gesture may be a gesture that satisfies a specified condition, and the specified condition may be a condition determined based on the target display area, for example, the specified condition characterizes that the action position of the specified touch operation gesture is within a preset area within the target display area.
[0080] like Fig. 9 As shown, the designated touch operation gesture may be a double-click operation, and the designated gesture may be a continuous double-click operation within a first designated area of the target display area. Specifically, the first designated area may be a corner area of the target display area, and the corner area may be a preset range area with a corner point of the target display area. Exemplarily, the corner area may be a lower left corner area, that is, a preset range area with a corner point of the lower left corner of the target display area. The electronic device detects a continuous double-click by the user within the corner area, and determines that the detected touch operation gesture belongs to the designated gesture.
[0081] like Fig.10As shown, the designated touch operation gesture may be a long press operation, and the designated gesture may be a designated long press operation in a second designated area of the target display area, and the duration of the designated long press operation is greater than the first reference duration, wherein the second designated area may be the same as the first designated area, or may be the same, and may be set in the same manner as the first designated area, which will not be described in detail here. Exemplarily, the second designated area is the lower left corner area of the target display area, such as Fig.10 As shown, the electronic device detects that the user long presses the lower left corner of the target display area, and the duration of the long press is greater than the first reference duration, and determines that the detected touch operation gesture belongs to the specified gesture.
[0082] like Fig.11 As shown, in the embodiment of the present application, the designated touch operation gesture may be a sliding gesture, and the designated gesture is an operation gesture for designating a sliding direction, specifically, as Figure 8 As shown, determine the target display area corresponding to the specified touch operation gesture and execute S803.
[0083] S803: Obtain the sliding direction of the specified touch operation gesture.
[0084] S804: If the sliding direction is from the first designated area of the target display area toward the second designated area of the target display area, determine that the touch operation gesture is a designated gesture.
[0085] Obtain the sliding direction of the specified touch operation gesture. The sliding direction may be a sliding trajectory fitted based on the position information of each touch point during the sliding process, and the sliding direction is determined based on the sliding trajectory. Alternatively, the starting position and the end position of the touch operation gesture are obtained, and the direction from the starting position to the end position is used as the sliding direction. If the sliding direction is the same as the specified direction, it is determined that the specified touch operation gesture belongs to the specified gesture. The specified direction may be set according to actual usage requirements. For example, it may be a direction from the bottom to the top of the screen, or it may be a direction from the left to the right of the screen. In an embodiment of the present application, the specified direction may be a direction from a first specified area of the target display area toward a second specified area of the target display area. For example, the first specified area may be a corner area, and the second specified area may be a center area. Specifically, please refer to the aforementioned description, which will not be repeated here. Then the specified direction may be Fig.11 Therefore, if the sliding direction is from the corner area of the target display area toward the center area of the target display area, it is determined that the designated touch operation gesture belongs to the designated gesture. The center area of the target display area may be the area where the center point of the target display area is located.
[0086] As an implementation mode, the starting point of the sliding gesture is located in the corner area of the target display area, and the sliding direction of the sliding gesture is from the corner area of the target display area toward the center area of the target display area. Even if the sliding end position of the sliding gesture is not in the center area of the target display area, the sliding direction of the sliding gesture still satisfies from the corner area of the target display area toward the center area of the target display area. In this case, the sliding gesture can be determined to be a designated gesture, so that the user does not need to input a sliding gesture that is too long. As long as the sliding direction satisfies the designated direction (i.e., from the corner area of the target display area toward the center area of the target display area), it can be determined that the user has input the designated gesture, thereby simplifying the user's operation.
[0087] As another implementation, when the sliding direction of the sliding gesture satisfies the specified direction, it is also possible to determine whether the sliding end position of the sliding gesture is located in the center area. If the sliding direction is from the corner area of the target display area toward the center area of the target display area and the sliding end position of the specified touch operation gesture is located in the center area, then it is determined that the specified touch operation gesture belongs to the specified gesture. Based on this, false triggering can be avoided, because the user needs to operate the sliding gesture to slide from the corner area to the center area, which can effectively prevent the user's accidental touch gesture on the screen from being misjudged as a specified gesture.
[0088] It should be noted that the designated gesture may include multiple preset gestures, i.e., the multiple gestures mentioned above, for example, a continuous double-click operation in a first designated area of the target display area, a designated long press operation in a second designated area of the target display area, and a sliding operation in a designated direction in the target display area. Then, if the designated touch operation gesture matches at least one of the multiple preset gestures, it is determined that the designated touch operation gesture belongs to the designated gesture. In addition, the designated gesture may also be other operation gestures, which are not limited here.
[0089] S805: If the designated touch operation gesture belongs to a designated gesture, obtain the dwell time of the designated touch operation gesture at the sliding end position.
[0090] It should be noted that after determining the target display area corresponding to the designated touch operation gesture and the designated touch operation gesture belongs to the designated gesture, the electronic device can perform a screenshot operation on the display content in the target display area. The screenshot operation includes partial screenshot, full screenshot or scrolling screenshot, etc. In some embodiments, the screenshot image can be directly displayed, and the user can operate the image, for example, save, edit or share the image. Of course, the designated interface for the screenshot image can also be directly displayed, and the designated interface can be a screenshot editing interface, a sending interface, etc., which can perform designated operations on the screenshot image.
[0091] In an embodiment of the present application, the two different operations mentioned above can be distinguished by the duration of the specified touch operation gesture staying at the sliding end position. Specifically, if the specified touch operation gesture belongs to a specified gesture, the specified touch operation gesture is monitored, and the sliding end position of the specified touch operation gesture is determined. The duration of the specified touch operation gesture staying at the sliding end position is obtained.
[0092] S806: Determine whether the stay time is less than a preset time.
[0093] If the dwell time is less than the preset time, the screenshot operation is directly performed; if the dwell time is not less than the preset time, a full screenshot operation is performed on all display contents in the target display area to obtain an image to be processed, and then a screenshot image is obtained based on an editing operation on the image to be processed. As an implementation, the method for obtaining the editing operation on the image to be processed may be to display a screenshot editing interface on the display interface of the screen, and the user may input the screenshot editing operation in the screenshot editing interface, or the screenshot operation may be input by the user based on other instructions, for example, a screenshot instruction input by voice.
[0094] Of course, the trigger conditions of the two can also be interchanged, which is not limited here. In the embodiment of the present application, considering that when a user adds an operation based on the current trigger operation, he may want to trigger more functions through an additional trigger operation, so the screenshot editing interface can be triggered to display when the dwell time is not less than the preset time. That is to say, when the sliding ends, the user can keep pressing the position of the sliding end for a certain length of time while maintaining the touch state.
[0095] S807: Performing a screenshot operation on the display content in the target display area to obtain a screenshot image.
[0096] When the stay time is less than the preset time, the electronic device directly executes S807, that is, performs a screenshot operation on the display content in the target display area to obtain a screenshot image. Fig.12 As shown, combined Fig.11 and Fig.15It can be seen that when the user inputs a sliding gesture, when the sliding gesture reaches the center area of the target display area, the sliding end position 1201 is located in the center area of the target display area, and the touch operation ends. For example, when the user releases his finger from the screen, the electronic device directly performs a screenshot operation on the display content in the target display area. The screenshot operation can be a full screenshot, a regional screenshot, and a scrolling screenshot. Specifically, it can be set according to actual usage requirements. Exemplarily, different screenshot operations can be performed by the sliding trajectory of the sliding gesture. Specifically, when the sliding gesture keeps the sliding direction in the specified direction, the sliding trajectory of the input sliding gesture may be different, for example, it can be a straight line or a curve. As an implementation method, different sliding tracks can be defined to correspond to different screenshot operations. For example, if the sliding track is a straight line, the corresponding screenshot operation is a full screenshot of the target display area, that is, a screenshot of all displayed content in the target display area. If the sliding track is a semi-ellipse, the corresponding screenshot operation is a long screenshot. After the electronic device determines that the specified touch operation gesture belongs to the specified gesture or determines that the dwell time is less than the preset time, it enters the long screenshot interface and performs the long screenshot operation based on the page selected by the user in the scrolling screenshot interface. Furthermore, if the sliding track is a wavy line, the corresponding screenshot operation is an area screenshot. The electronic device can display a selection box on the display interface of the target display area. The user operates the selection box to select the area to be screenshotted. After inputting an instruction to confirm the screenshot, the electronic device performs an area screenshot operation based on the content selected by the selection box.
[0097] It should be noted that the aforementioned screenshot operation or the screenshot operation based on the sliding track can be performed when the specified touch operation gesture belongs to the specified gesture, or when it is determined that the dwell time is less than the preset time, which is not limited here. Afterwards, the screenshot image corresponding to the screenshot operation can be displayed in the target display area. Fig.13 As described, exemplarily, assuming that the dwell time is less than a preset time, the electronic device performs a full screenshot operation on all displayed contents in the target display area to obtain a screenshot image, and displays a thumbnail 1301 of the screenshot image in the target display area. For example, the thumbnail 1301 of the screenshot image is displayed in the lower right corner area of the target display area. As an embodiment, the screenshot is performed as a full screenshot operation, and the obtained screenshot image includes all displayed contents in the target display area. If the user operates the thumbnail 1301 of the screenshot image at this time, for example, by clicking or double-clicking, a screenshot editing interface of the screenshot image can be displayed in the target display area, such as Fig.14 As shown, a screenshot editing control can be displayed in the screenshot editing interface, and the user operates the screenshot editing button to edit the screenshot image, obtains the edited screenshot image and saves it.
[0098] S808: Perform a full screen capture operation on all display contents in the target display area to obtain an image to be processed.
[0099] S809: Displaying a screenshot editing interface in the target display area, wherein the image to be processed is displayed in the screenshot editing interface.
[0100] S810: Acquire a screenshot editing operation input by a user based on the screenshot editing interface for the image to be processed to obtain a screenshot image.
[0101] If the dwell time is greater than or equal to the preset time, the screenshot editing interface can be displayed directly, or the screenshot editing interface can be displayed after the preset controls are displayed. Fig.14 The interface shown may also be other interfaces.
[0102] Specifically, in some embodiments, if the dwell time is greater than or equal to a preset time, a full screenshot operation is performed on all display contents in the target display area, and the screenshot image obtained by the full screenshot operation is named as an image to be processed. Then, a screenshot editing interface is displayed in the target display area, and the image to be processed is displayed in the screenshot editing interface, such as Fig.16 As shown, the screenshot editing interface displays an image to be processed and at least one screenshot editing control, and the screenshot editing control may include a screenshot box 1602, through which the user can modify the size of the image to be processed, that is, the area to be cropped can be selected on the image to be processed through the screenshot box, and the cropping operation can be performed to obtain the image of the area to be cropped. In addition, a preset control can also be displayed in the target display area so that the user can perform a cropping operation or other operations based on the preset control. Therefore, when it is determined that the dwell time is greater than or equal to the preset time, the screenshot editing interface can be directly displayed in the target display area, and the preset control 1601 can be displayed in at least one display area outside the target display area in the multiple display areas. Specifically, at least one display area outside the target display area in the multiple display areas can be named a third display area, and the third display area can be one or more. In the embodiment of the present application, considering the size of the screen and the convenience of the user's operation as much as possible, the third display area can be one, and the third display area is adjacent to the target display area, that is, the third display area is a neighboring area of the target display area.
[0103] In some other embodiments, the user may select and determine whether to display the screenshot editing interface in the target display area based on the preset control. Fig.17As shown, after the user inputs a sliding gesture of sliding from a corner area of the target display area to the center area of the target display area, after sliding to and staying in the center area of the target display area, the duration of staying at the sliding stay position is greater than or equal to a preset duration, and then, a preset control is displayed in at least one display area outside the target display area among the multiple display areas.
[0104] As an implementation method, Fig.17 As shown, assuming that there are two display areas displayed on the screen, one of which is the target display area and the other is the third display area, after the dwell time is greater than or equal to the preset time, the preset control 1601 is displayed in the third display area, and at this time the target display area has not yet displayed the screenshot editing interface. Then, as Fig.18 As shown, after detecting the preset operation input by the user for the preset control 1601, the screenshot editing interface is displayed in the target display area. Specifically, the preset operation can be a single-click, double-click, etc., for example, it can be a single-click operation.
[0105] Therefore, in an embodiment of the present application, after the user inputs a sliding gesture from a corner area of the target display area to a central area of the target display area, after sliding to the central area of the target display area and staying there, the duration of staying at the sliding stop position is greater than or equal to a preset duration, and the screenshot editing interface can be directly displayed in the target display area, and a preset control can be displayed in at least one display area outside the target display area in multiple display areas at the same time. Alternatively, a preset control can be first displayed in at least one display area outside the target display area in multiple display areas, and then, after a preset operation acting on the preset control is detected, the screenshot editing interface can be displayed in the target display area. Therefore, no matter which method is used, the screenshot editing interface will be displayed. Fig.16 The interface shown is that when the screenshot editing interface is displayed in the target display area, the preset controls are displayed in another display area.
[0106] As an implementation mode, the preset control may be displayed at any position of the third display area, and in order to facilitate the user's operation of the preset control, the preset control 1601 is displayed at the bottom of the third display area, specifically, it may be displayed in the right corner area of the third display area. The user may control the target display area to display a screenshot editing interface through the preset control so as to edit the image obtained by the screenshot operation. Specifically, when a first designated touch operation input by the user based on the preset control is detected, a screenshot auxiliary tool is displayed on the screenshot editing interface, and a screenshot area determined by the user on the image to be processed based on the screenshot auxiliary tool displayed on the screenshot editing interface is obtained to obtain a screenshot image corresponding to the screenshot area.
[0107] Among them, the first designated touch operation may be a single click, double click or long press operation. It should be noted that, in the case where the screenshot editing interface is displayed in the target display area after the preset operation based on the user input for the preset control, the first designated touch operation may be different from the preset operation. Exemplarily, the preset operation may be a single click, and the first designated touch operation may be a long press operation. Specifically, the first designated touch operation is a long press operation with a pressing time greater than a specified time. Then, in the case where the screenshot editing interface is displayed in the target display area, if the user long presses the preset control and the continuous pressing time is greater than the specified time, a screenshot auxiliary tool may be displayed in the screenshot editing interface. The screenshot auxiliary tool may be a function that provides guidance for the user for the screenshot operation, for example, it may be an operation instruction or an operation prompt information. Exemplarily, the screenshot auxiliary tool may be a screenshot auxiliary line, which divides the screenshot frame into a first area and a second area, such as Fig.19 As shown, the screenshot auxiliary line 1603 may be located in the central area of the target display area. Specifically, the screenshot auxiliary line 1603 may be parallel to the bottom edge or the top edge of the electronic device, and the screenshot auxiliary line 1603 passes through the center point of the target display area. The screenshot auxiliary line 1603 may divide the screenshot frame 1602 into two areas, namely, the first area 1901 and the second area 1902, i.e., the two areas filled with oblique lines in the figure. The user may adjust the size of the first area 1901 and the second area 1902 by operating at least one of the four edges of the screenshot frame 1602. Specifically, an adjustment operation based on the first area input by the user is obtained, and the adjustment operation is used to adjust the area of the first area; the area of the first area and the second area is adjusted based on the adjustment operation; the adjusted first area and the adjusted second area are used together as the screenshot area; and the image corresponding to the screenshot area on the image to be processed is used as the screenshot image. That is, the first area 1901 and the second area 1902 jointly determine the selected area of the screenshot operation on the image to be processed, so that when the screenshot operation is performed, the image in the screenshot area jointly determined by the first area 1901 and the second area 1902 can be used as the screenshot image.
[0108] As an implementation, the screenshot auxiliary line 1603 can be used as an indicator line of the screenshot, so that the user can determine the size difference between the first area 1901 and the second area 1902 through the screenshot auxiliary line 1603. As another implementation, the user can also use the screenshot auxiliary line 1603 as the center line of the entire screenshot frame, and then symmetrical cropping can be achieved, that is, after the first area 1901 is adjusted, the area of the adjusted first area 1901 is the same as the area of the adjusted second area 1902. The specific implementation method is that two of the multiple edges of the screenshot frame that are parallel to the screenshot auxiliary line can be named as the first edge line and the second edge line. For example, the screenshot frame can be a rectangular frame, the edge of the rectangular frame close to the bottom of the screen is the first edge line, and the edge of the rectangular frame close to the top of the screen is the second edge line. The first edge line and the second edge line are both parallel to the screenshot auxiliary line, and when the user operates the first edge line to move, the second edge line also moves with it, and the moving distances of the first edge line and the second edge line are the same. That is, the first side line moves a distance of X pixels toward the screenshot auxiliary line, and the second side line also moves X pixels toward the screenshot auxiliary line.
[0109] When the user needs to adjust the screenshot area, the user operates to move the first designated sideline of the designated screenshot frame toward the screenshot auxiliary line. Specifically, the first designated sideline may be one of the first sideline and the second sideline, and the second designated sideline may be another sideline of the first sideline and the second sideline except the first designated sideline. For example, the first designated sideline is the first sideline, and the second designated sideline is the second sideline.
[0110] The electronic device can detect the current position of the first designated sideline, and can detect that the user touches and presses the first designated sideline, and drags the first designated sideline toward the position of the screenshot auxiliary line. The electronic device detects the position change of the first designated sideline, and based on the position change, can collect the moving distance of the first designated sideline in real time. Then, according to the moving distance monitored in real time, the second designated sideline is controlled to move toward the screenshot auxiliary line by the moving distance. The user can see that as the first designated sideline is dragged toward the position of the screenshot auxiliary line, the second designated sideline also automatically moves toward the position of the screenshot auxiliary line, and the moving distance of the first designated sideline and the second designated sideline is the same. When the dragging of the first designated sideline ends, within the range surrounded by the screenshot frame, the area between the first sideline and the screenshot auxiliary line is recorded as the adjusted first area, and the area between the second sideline and the screenshot auxiliary line is recorded as the adjusted second area, and the areas of the adjusted first area and the second area are the same.
[0111] It should be noted that, in order to avoid false triggering, a preset control can be used to implement symmetrical cropping. Specifically, when the preset control is continuously touched, the first area and the second area are adjusted based on the adjustment operation. Specifically, when the electronic device detects that the first sideline or the second sideline of the screenshot frame is touched, it detects whether the preset control is touched. If so, when it detects that the preset control is continuously touched while the first sideline or the second sideline of the screenshot frame is dragged, a symmetrical cropping operation is performed. The specific implementation of the symmetrical cropping operation can refer to the above description. Fig. 20 As shown, when the user continues to press the preset control, the first side line of the screenshot frame 1602 is dragged and dragged toward the screenshot auxiliary line. Of course, it can also be dragged away from the screenshot auxiliary line. The dragging direction is not limited here. As the first side line is dragged toward the screenshot auxiliary line, the second side line also moves toward the screenshot auxiliary line, and the distances between the two sides and the screenshot auxiliary line are the same, as shown in FIG. Fig. 20 As shown, the distance between the first sideline and the screenshot auxiliary line is named the first distance D1, and the distance between the second sideline and the screenshot auxiliary line is named the second distance D2. The first distance D1 and the second distance D2 are the same, and when the first distance D1 changes, the second distance D2 also changes, and the changes of the two are consistent.
[0112] Regardless of which of the above-mentioned screenshot editing interfaces is used to perform the screenshot editing operation on the image to be processed, after completing the screenshot editing, the user can use the image after the screenshot editing as the screenshot image by operating the electronic device. For example, the screenshot editing operation is completed through the above-mentioned screenshot frame, or the screenshot editing operation is completed using the screenshot frame and the screenshot auxiliary line at the same time, or based on Fig.14 The screenshot editing operation completed in the screenshot editing interface shown can use the image after the screenshot editing as the screenshot image through the user's designated confirmation operation on the electronic device.
[0113] In some embodiments, the designated confirmation operation may be a confirmation instruction input into the electronic device, and after detecting the confirmation instruction, the electronic device uses the edited screenshot image as the screenshot image.
[0114] Specifically, in some embodiments, when the electronic device detects a voice instruction, if the voice instruction includes the specified keyword, and the specified keyword corresponds to the specified confirmation operation, it is determined that the confirmation instruction is obtained. In other embodiments, a confirmation control is displayed in the target display area, and the electronic device determines that the confirmation instruction is obtained when it detects that the confirmation control is triggered.
[0115] In some other embodiments, the preset control can also be used to input a confirmation instruction. Specifically, the aforementioned method of obtaining the screenshot area determined by the user on the image to be processed based on the screenshot auxiliary tool displayed on the screenshot editing interface to obtain the screenshot image corresponding to the screenshot area is as follows: obtaining the screenshot area determined by the user on the image to be processed based on the screenshot auxiliary tool displayed on the screenshot editing interface; when a second designated touch operation input by the user based on the preset control is detected, the image corresponding to the screenshot area on the image to be processed is used as the screenshot image. The method for determining the screenshot area can refer to the aforementioned description. Then, after determining the screenshot area, the electronic device detects whether the preset control is input with the second designated touch operation. If so, it is determined that a confirmation instruction is obtained, and the image corresponding to the screenshot area on the image to be processed is used as the screenshot image. The second designated touch operation may be a single click, double click, or long press operation. However, in order to distinguish the second designated touch operation from the preset operation and the first designated touch operation, the second designated touch operation may be different from both the preset operation and the first designated touch operation. For example, the preset operation is a single click operation, the first designated touch operation is a long press operation, and the second designated touch operation may be a double click operation. Fig.21 As shown, after the user completes the screenshot editing operation and determines the screenshot area, the user can double-click the preset control, and the electronic device uses the image corresponding to the screenshot area on the image to be processed as the screenshot image.
[0116] Therefore, through the above method, the screenshot operation and the screenshot editing interface operation can be directly executed by different staying time at the sliding end position of the specified touch operation gesture, and the user's screenshot operation can be assisted by the preset control.
[0117] In addition, considering that the screen of an electronic device can display multiple display areas, each display area can display a corresponding interface, after the user performs a screenshot operation in the target display area, the screenshot image corresponding to the screenshot operation can be dragged to other display areas, and the other display areas can process the image. Fig. 22 , Fig. 22 A screenshot method provided in another embodiment of the present application is shown, which is applied to the above-mentioned electronic device. The method may include: S2201 to S2206.
[0118] S2201: When the electronic device is in a target display state, detecting a specified touch operation gesture.
[0119] S2202: If the designated touch operation gesture is detected, determine one or more target display areas selected from the multiple display areas according to the designated touch operation gesture.
[0120] S2203: Execute a screenshot operation on the display content in the target display area.
[0121] S2204: Obtain a screenshot image corresponding to the screenshot operation.
[0122] It should be noted that the method of obtaining the screenshot image can refer to the aforementioned embodiment and will not be described in detail here.
[0123] S2205: Display a thumbnail of the screenshot image in the target display area.
[0124] It should be noted that the thumbnail can be displayed at a specified position in the target display area. The specified position can be any position in the target display area. Specifically, it can be displayed at a specified position in the target display area. Fig.13 The thumbnail is displayed in the lower right corner of the target display area as shown. Fig.23 , a thumbnail of the screenshot image can be displayed in the target display area, and Fig.13 The difference from the method shown is that Fig.23 The thumbnail in the content is a screenshot image obtained by the aforementioned screenshot editing operation. As an implementation, assuming that the multiple display areas are the first display area and the second display area, and the electronic device is in split-screen mode, the target display area is the first display area, and the user slides from the lower left corner area to the center area in the target display area, and after the sliding ends and stays in the center area for a certain period of time, the preset control is displayed in the second display area, and the user completes the cropping of the screenshot image by operating the preset control, and obtains the screenshot image after the cropping operation or the uncropped screenshot image, and then displays the thumbnail of the screenshot image in the target display area.
[0125] S2206: When it is detected that the thumbnail is dragged to the designated display area, a designated operation is performed.
[0126] After the thumbnail of the screenshot image is displayed in the target display area, the user can drag the thumbnail to the designated display area, which can be a display area outside the target display area among the multiple display areas on the screen. In the embodiment of the present application, the designated display area can be the same display area as the area for displaying the preset controls. For example, Fig.23 In the interface shown, the designated display area may be a second display area. The electronic device can detect that the touch point of the user's touch gesture is located at the display position of the thumbnail in the target display area, and detect that the user slides to the display position range of the designated display area based on the touch gesture. It can then be determined that the thumbnail is dragged to the designated display area, and then the designated operation is performed.
[0127] As an implementation, the designated operation is related to the interface displayed in the designated display area and is used to perform a preset process on the screenshot image. That is, the designated operation is performed by the application corresponding to the interface in the designated display area, and is specifically related to the function of the interface currently displayed by the application in the designated display area. Fig.24 As shown, the application is an album application, and the interface displayed in the designated display area is an album list interface, which is used to display images stored in the electronic device. When it is detected that the thumbnail is dragged to the designated display area, the screenshot image can be saved and displayed in the interface. Fig.24 As shown, the screenshot image is displayed in the album list interface in the designated display area and is saved in the storage space corresponding to the album application. In other embodiments, the interface displayed in the designated display area may also be a document editing interface. After the electronic device detects that the thumbnail is dragged into the designated display area, it determines the insertion position of the thumbnail in the document editing interface, then displays the thumbnail at the insertion position, and adjusts the content arrangement in the document editing interface.
[0128] In some other embodiments, the designated display area displays a chat interface, and when it is detected that the thumbnail is dragged into the chat interface, the screenshot image is sent to the user terminal of the chat object of the chat interface. Fig.26 As shown, the designated display area is the right display area in the figure, the target display area is the left display area of the screen shown in the figure, the application corresponding to the chat interface is the chat application, and the chat interface is used to display the chat content of the first user and the second user of the electronic device, wherein the first user is the user account of the application currently logged in to the electronic device installed, and the second user is the user account corresponding to the chat of the chat interface, and the interface can display the content sent by the first user to the second user, the content sent by the second user to the first user, and the content editing area. The first user can enter content in the content editing area and send it to the chat object (i.e., the second user).
[0129] When it is detected that the thumbnail is dragged into the chat interface, the chat application is controlled to send the screenshot image corresponding to the thumbnail to the second user, and at the same time, the display content is updated in the chat interface, such as Fig. 27As shown, after the first user sends the screenshot image, the screenshot image is displayed in the chat content display area of the chat interface. As an implementation, as long as it is detected that the thumbnail is dragged into the chat interface, the screenshot image is sent to the user terminal of the chat object of the chat interface. As another implementation, it is also possible to determine the drag end position of the drag operation after detecting that the thumbnail is dragged into the chat interface, and then determine whether the drag end position is located in the content editing area. If it is located in the content editing area, the screenshot image is sent to the user terminal of the chat object of the chat interface.
[0130] Therefore, by displaying multiple display areas on the screen, a screenshot image obtained after performing a screenshot operation on the display content of one of the display areas can be dragged to other display areas, and the corresponding operation of the display area can be performed. For example, dragging it to a chat interface and sending the screenshot image to the user terminal of the chat object of the chat interface can realize a quick and convenient sharing operation of the screenshot image.
[0131] See also Fig.28 , which shows a structural block diagram of a screenshot device 2800 provided in an embodiment of the present application. The device may include: a detection unit 2801, a determination unit 2802 and a screenshot unit 2803.
[0132] The detection unit 2801 is used to detect a specified touch operation gesture when the electronic device is in a target display state, wherein the electronic device is in the target display state and the screen of the electronic device includes multiple display areas.
[0133] The determining unit 2802 is configured to determine one or more target display areas selected from the multiple display areas according to the designated touch operation gesture.
[0134] The screenshot unit 2803 is used to perform a screenshot operation on the display content in the target display area.
[0135] Furthermore, the designated touch operation gesture is a sliding gesture, and the screenshot unit 2803 is also used to obtain the duration of the stay of the designated touch operation gesture at the sliding end position; if the stay duration is less than the preset duration, a screenshot operation is performed on the display content in the target display area to obtain a screenshot image.
[0136] Furthermore, the screenshot unit 2803 is also used to perform a full screenshot operation on all display contents in the target display area to obtain an image to be processed if the dwell time is greater than or equal to a preset time; display a screenshot editing interface in the target display area, wherein the image to be processed is displayed in the screenshot editing interface; and obtain a screenshot editing operation input by the user based on the screenshot editing interface for the image to be processed to obtain a screenshot image.
[0137] Furthermore, the screenshot unit 2803 is also used to display a preset control in at least one display area outside the target display area among the multiple display areas; when a first specified touch operation input by the user based on the preset control is detected, a screenshot auxiliary tool is displayed in the screenshot editing interface; and a screenshot area determined by the user on the image to be processed based on the screenshot auxiliary tool displayed on the screenshot editing interface is obtained to obtain a screenshot image corresponding to the screenshot area.
[0138] Furthermore, the first designated touch operation is a long press operation with a pressing time greater than a designated time.
[0139] Furthermore, a screenshot box is displayed in the screenshot editing interface, and the screenshot box is displayed on the image to be processed. The screenshot auxiliary tool includes screenshot auxiliary lines, and the screenshot auxiliary lines divide the screenshot box into a first area and a second area. The screenshot unit 2803 is also used to obtain an adjustment operation based on the first area input by the user, and the adjustment operation is used to adjust the area of the first area; adjust the area of the first area and the second area based on the adjustment operation; use the adjusted first area and the adjusted second area together as the screenshot area; and use the image corresponding to the screenshot area on the image to be processed as the screenshot image.
[0140] Further, the adjusted area of the first region and the adjusted area of the second region.
[0141] Furthermore, the screenshot unit 2803 is also used to adjust the area of the first region and the second region based on the adjustment operation when the preset control is continuously touched.
[0142] Furthermore, the screenshot unit 2803 is also used to obtain the screenshot area determined by the user on the image to be processed based on the screenshot auxiliary tool displayed on the screenshot editing interface; when a second designated touch operation input by the user based on the preset control is detected, the image corresponding to the screenshot area on the image to be processed is used as the screenshot image.
[0143] Furthermore, the second designated touch operation is a double-click operation.
[0144] Furthermore, the screenshot device 2800 also includes a judgment unit for obtaining the sliding direction of the specified touch operation gesture; if the sliding direction is from the first specified area of the target display area toward the second specified area of the target display area, a screenshot operation is performed on the display content in the target display area.
[0145] Furthermore, the judgment unit is also used to perform a screenshot operation on the display content in the target display area if the sliding direction is from the first designated area of the target display area toward the second designated area of the target display area and the sliding end position of the designated touch operation gesture is located in the second designated area.
[0146] Furthermore, the screenshot device 2800 also includes a sharing unit, which is used to obtain a screenshot image corresponding to the screenshot operation; display a thumbnail of the screenshot image in the target display area; and execute a specified operation when it is detected that the thumbnail is dragged to a designated display area, wherein the designated display area is a display area outside the target display area among multiple display areas, and the specified operation is related to an interface displayed in the designated display area, and is used to execute preset processing on the screenshot image.
[0147] Furthermore, the sharing unit is also used to send the screenshot image to the user terminal of the chat object in the chat interface when it is detected that the thumbnail is dragged into the chat interface.
[0148] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0149] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0150] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0151] Please refer to Fig.29 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 2900 may be an electronic device capable of running an application, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 2900 in the present application may be the aforementioned Figure 29 to Figure 5As shown in the terminal, the electronic device 2900 may include one or more of the following components: a processor 2910, a memory 2920, a screen 2930, and one or more applications, wherein the one or more applications may be stored in the memory 2920 and configured to be executed by one or more processors 2910, and the one or more programs are configured to execute the method as described in the aforementioned method embodiment.
[0152] The processor 2910 may include one or more processing cores. The processor 2910 uses various interfaces and lines to connect the various parts of the entire electronic device 2900, and executes various functions and processes data of the electronic device 2900 by running or executing instructions, programs, code sets or instruction sets stored in the memory 2920, and calling data stored in the memory 2920. Optionally, the processor 2910 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 2910 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 2910, but may be implemented separately through a communication chip.
[0153] The memory 2920 may include a random access memory (RAM) or a read-only memory (ROM). The memory 2920 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 2920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 2900 during use.
[0154] Please refer to Fig.30, which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 3000 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0155] The computer readable storage medium 3000 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 3000 includes a non-transitory computer-readable storage medium. The computer readable storage medium 3000 has storage space for program code 3010 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 3010 can be compressed, for example, in an appropriate form.
[0156] Please refer to Fig.31 , which shows a structural block diagram of a computer readable product 3100 provided in an embodiment of the present application. The computer program product includes a computer program / instruction 3110, characterized in that the computer program / instruction implements the above method when executed by a processor.
[0157] To summarize, when the electronic device is in the target display state, the screen of the electronic device includes multiple display areas. Then, when the electronic device detects an operation gesture, it determines the display area corresponding to the operation gesture as the target display area, and when it is determined that the operation gesture belongs to a specified gesture, it performs a screenshot operation on the target display area. Therefore, for multiple display areas, the user can use the method of inputting a specified gesture in the display area to be screenshotted to implement a quick screenshot operation on the display area. The operation is simple and the user experience is high. Split-screen screenshots have become a new screenshot mode independent of full-screen screenshots, which reduces the operation time for users to use split-screen pictures independently and improves the user's operating experience. The introduction of symmetrical cropping adds a new image processing method for screenshot cropping under split screen, simplifies the cropping steps, and improves the efficiency of image editing. Screenshot sharing in split-screen mode is a quick sharing method that provides users with more immersive possibilities in scenarios where they can do two things at once.
[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A screenshot method, characterized in that: Applied to electronic equipment, the method comprises: When the electronic device is in a target display state, a specified touch operation gesture is detected, wherein the display interface of the electronic device in the target display state includes multiple display areas; Determine one or more target display areas selected from the multiple display areas according to the specified touch operation gesture, wherein the specified touch operation gesture is a sliding gesture; Obtaining the dwell time of the specified touch operation gesture at the sliding end position; If the dwell time is greater than or equal to the preset time, a full screen capture operation is performed on all display contents in the target display area to obtain an image to be processed; Displaying a screenshot editing interface in the target display area, wherein the image to be processed, a screenshot frame and a screenshot auxiliary tool are displayed in the screenshot editing interface, wherein the screenshot frame is displayed on the image to be processed, and the screenshot auxiliary tool includes a screenshot auxiliary line, wherein the screenshot auxiliary line divides the screenshot frame into a first area and a second area; Acquire an adjustment operation based on the first region input by a user, where the adjustment operation is used to adjust the area of the first region; adjusting the first region and the second region based on the adjustment operation, wherein after the first region is adjusted, an area of the adjusted first region is the same as an area of the adjusted second region; using the adjusted first area and the adjusted second area together as a screenshot area; The image corresponding to the screenshot area on the image to be processed is used as a screenshot image.
2. The method according to claim 1, characterized in that Also includes: If the dwell time is less than a preset time, a screenshot operation is performed on the display content in the target display area to obtain a screenshot image.
3. The method according to claim 1, characterized in that After the screenshot editing interface is displayed in the target display area, the method further includes: Displaying a preset control in at least one display area other than the target display area in the plurality of display areas; When a first designated touch operation input by the user based on the preset control is detected, a screenshot auxiliary tool is displayed on the screenshot editing interface.
4. The method according to claim 3, characterized in that The first designated touch operation is a long press operation with a pressing time greater than a designated time.
5. The method according to claim 3, characterized in that: The adjusting the area of the first region and the second region based on the adjustment operation includes: When the preset control is continuously touched, the area of the first area and the second area are adjusted based on the adjustment operation.
6. The method according to claim 3, characterized in that The step of taking the image corresponding to the screenshot area on the image to be processed as the screenshot image includes: When a second designated touch operation input by the user based on the preset control is detected, an image corresponding to the screenshot area on the image to be processed is used as the screenshot image.
7. The method according to claim 6, characterized in that The second designated touch operation is a double-click operation.
8. The method according to any one of claims 1 to 7, characterized in that: The step of obtaining the dwell time of the specified touch operation gesture at the sliding end position includes: Obtaining the sliding direction of the specified touch operation gesture; If the sliding direction is from the first designated area of the target display area toward the second designated area of the target display area, then the dwell time of the designated touch operation gesture at the sliding end position is acquired.
9. The method according to claim 8, characterized in that If the sliding direction is from the first designated area of the target display area toward the second designated area of the target display area, obtaining the dwell time of the designated touch operation gesture at the sliding end position includes: If the sliding direction is from the first designated area of the target display area toward the second designated area of the target display area and the sliding end position of the designated touch operation gesture is located in the second designated area, then the residence time of the designated touch operation gesture at the sliding end position is obtained.
10. The method according to any one of claims 1 to 7, characterized in that: After taking the image corresponding to the screenshot area on the image to be processed as the screenshot image, the method further includes: Displaying a thumbnail of the screenshot image in the target display area; When it is detected that the thumbnail is dragged to a designated display area, a designated operation is performed. The designated display area is at least one display area outside the target display area among multiple display areas. The designated operation is related to an interface displayed in the designated display area and is used to perform preset processing on the screenshot image.
11. The method according to claim 10, characterized in that The designated display area displays a chat interface, and when it is detected that the thumbnail is dragged to the designated display area, performing a designated operation includes: When it is detected that the thumbnail is dragged into the chat interface, the screenshot image is sent to the user terminal of the chat object of the chat interface.
12. The method according to any one of claims 1 to 7, characterized in that: The target display state is a split-screen display state, and in the split-screen display state, the multiple display areas do not overlap each other.
13. A screen capture device, characterized in that: Applied to electronic equipment, the device comprises: A detection unit, configured to detect a specified touch operation gesture when the electronic device is in a target display state, wherein the display interface of the electronic device in the target display state includes a plurality of display areas; a determining unit, configured to determine one or more target display areas selected from the plurality of display areas according to the designated touch operation gesture, wherein the designated touch operation gesture is a sliding gesture; A screenshot unit is used to obtain the duration of the specified touch operation gesture staying at the sliding end position; if the duration is greater than or equal to the preset duration, perform a full screenshot operation on all displayed contents in the target display area to obtain an image to be processed; display a screenshot editing interface in the target display area, wherein the image to be processed, a screenshot frame and a screenshot auxiliary tool are displayed in the screenshot editing interface, the screenshot frame is displayed on the image to be processed, and the screenshot auxiliary tool includes a screenshot auxiliary line, which divides the screenshot frame into a first area and a second area; obtain an adjustment operation based on the first area input by a user, the adjustment operation is used to adjust the area of the first area; adjust the first area and the second area based on the adjustment operation, wherein after the first area is adjusted, the area of the adjusted first area is the same as the area of the adjusted second area; use the adjusted first area and the adjusted second area together as a screenshot area; use the image corresponding to the screenshot area on the image to be processed as a screenshot image.
14. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-12.
15. A computer readable medium, characterized in that The computer-readable medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 12.
16. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Screen capture processing method and device for mobile terminal as well as mobile terminal
CN107896279A
Screen capturing method and related equipment
CN110737386A
Screen capture method, terminal and non-volatile computer readable storage medium
CN111641750A
Screen capture method and device, electronic equipment and readable storage medium
CN113126862A
Device, Method, and Graphical User Interface for Editing Screenshot Images
US20190147026A1
