WO2024021813A1 - Screenshot taking method and apparatus, electronic device and storage medium - Google Patents

Screenshot taking method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2024021813A1
WO2024021813A1 PCT/CN2023/096051 CN2023096051W WO2024021813A1 WO 2024021813 A1 WO2024021813 A1 WO 2024021813A1 CN 2023096051 W CN2023096051 W CN 2023096051W WO 2024021813 A1 WO2024021813 A1 WO 2024021813A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
display content
sub
display
target
Prior art date
Application number
PCT/CN2023/096051
Other languages
French (fr)
Chinese (zh)
Inventor
刘梦戎
秦晓东
游苏英
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024021813A1 publication Critical patent/WO2024021813A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present application relates to the technical field of electronic equipment, and more specifically, to a screen capture method, device, electronic equipment and storage medium.
  • electronic devices are used more and more widely and have more and more functions, and they have become one of the necessities in people's daily life.
  • electronic devices generally support split-screen display.
  • this application proposes a screenshot method, device, electronic device and storage medium to solve the above problems.
  • embodiments of the present application provide a method for taking screenshots, which is applied to an electronic device.
  • the method includes: displaying a target interface, wherein the target interface includes a first window and a screen superimposed on the first window. a second window, the first window is divided into at least two sub-windows; in response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation; determine the plurality of sliding starting positions corresponding to the multi-finger sliding operation.
  • the positional relationship between the sliding starting position and the at least two sub-windows is used as the first positional relationship, and the positional relationship between the second window and the at least two sub-windows is determined as the second positional relationship; based on the first positional relationship and the second position relationship, intercepting the display content of the target interface.
  • inventions of the present application provide a screen capture device for use in electronic equipment.
  • the device includes: a target interface display module for displaying a target interface, wherein the target interface includes a first window and a superimposed display on a second window on the first window, where the first window is divided into at least two sub-windows; a sliding starting position acquisition module configured to acquire the multi-finger sliding operation in response to a multi-finger sliding operation acting on the target interface Multiple sliding starting positions corresponding to the sliding operation; a positional relationship determination module, used to determine the positional relationship between the multiple sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the second window The positional relationship with the at least two sub-windows is used as the second positional relationship; a display content interception module is configured to intercept the display content of the target interface based on the first positional relationship and the second positional relationship.
  • embodiments of the present application provide an electronic device, including a memory and a processor.
  • the memory is coupled to the processor, and the memory stores instructions that are executed when the instructions are executed by the processor.
  • the processor executes the above method.
  • embodiments of the present application provide a computer-readable storage medium, the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the above method.
  • Figure 1 shows a schematic structural diagram of an electronic device in a folded state that can be used for a toolbar display method provided by an embodiment of the present application
  • Figure 2 shows a schematic structural diagram of an electronic device in an expanded state that can be used for a toolbar display method provided by an embodiment of the present application
  • Figure 3 shows a schematic structural diagram of another electronic device that can be used for the toolbar display method provided by the embodiment of the present application
  • Figure 4 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application
  • Figure 5 shows a first interface schematic diagram of an electronic device provided by an embodiment of the present application
  • Figure 6 shows a first interaction schematic diagram of an electronic device provided by an embodiment of the present application
  • Figure 7 shows a second interface schematic diagram of the electronic device provided by the embodiment of the present application.
  • Figure 8 shows a second interaction schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 9 shows a third interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 10 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application
  • FIG 11 shows a schematic flowchart of step S240 of the screenshot method shown in Figure 10 of the present application
  • Figure 12 shows a schematic flow chart of step S241 of the screenshot method shown in Figure 11 of the present application
  • Figure 13 shows a schematic flow chart of step S2412 of the screenshot method shown in Figure 12 of the present application
  • Figure 14 shows a schematic flowchart of step S24121 of the screenshot method shown in Figure 13 of the present application
  • Figure 15 shows a fourth interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 16 shows a third interaction schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 17 shows a fifth interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 18 shows a fourth interaction schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 19 shows a sixth interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 20 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application
  • Figure 21 shows a seventh interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 22 shows a fifth interaction schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 23 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application.
  • Figure 24 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application.
  • Figure 25 shows a schematic framework diagram that can be used for the screenshot method provided by the embodiment of the present application.
  • Figure 26 shows a module block diagram of a screenshot device provided by an embodiment of the present application.
  • Figure 27 shows a block diagram of an electronic device used to perform a screenshot method according to an embodiment of the present application
  • Figure 28 shows a storage unit used to save or carry the program code for implementing the screenshot method according to the embodiment of the present application.
  • the inventor discovered after long-term research and proposed a screenshot method, device, electronic device and storage medium provided by the embodiment of the present application, which determines the object of the screenshot through multiple sliding starting positions based on multi-finger sliding operations.
  • a screenshot method, device, electronic device and storage medium provided by the embodiment of the present application, which determines the object of the screenshot through multiple sliding starting positions based on multi-finger sliding operations.
  • the electronic device 100 may be, but is not limited to, a mobile phone, a tablet computer, a game console, a smart wearable device, a vehicle-mounted device and other electronic devices.
  • the electronic device 100 in this embodiment will be described taking a mobile phone as an example.
  • the electronic device 100 includes a foldable case assembly 110, a flexible display screen 120 and electronic components (not shown in the figure).
  • the electronic components are arranged in the foldable case assembly 110.
  • the flexible display screen 120 is laid on the foldable case assembly 110.
  • the foldable case assembly 110 is used to carry the flexible display screen 120 and protect electronic components at the same time.
  • Electronic components may include, but are not limited to, a central processing unit, a memory, a camera, a receiver, a fingerprint module, etc. Specific electronic components may not be limited in the embodiments of this application.
  • the foldable housing assembly 110 includes a first housing 111 , a second housing 112 and a rotating shaft mechanism 113 .
  • the first housing 111 and the second housing 112 are respectively connected to both sides of the rotating shaft mechanism 113 .
  • the second housing 112 can be folded or unfolded relative to the first housing 111 through the rotating shaft mechanism 113, so that the foldable housing assembly 110 drives the flexible display screen 120 to fold or unfold, and the foldable housing assembly 110 and the flexible display screen 120 are overlapped.
  • the electronic device 100 has a relatively large volume, which is convenient for displaying information.
  • the flexible display screen 120 includes a first display part 121 connected to the first housing 111 , a second display part 122 connected to the second housing 112 , and a first display part 121 connected to the second housing 112 . and the bent display portion 123 of the second display portion 122 .
  • the first display part 121, the second display part 122 pair and the bent display part 123 can form multiple display areas (for example, form two display areas, form three display areas, form four display areas... form N display areas).
  • the first display part 121 and the second display part 122 are folded or unfolded relative to the first housing 111 and the second housing 112 respectively.
  • the bending display part 123 is bent or flattened as the first display part 121 and the second display part 122 are folded or unfolded.
  • the first display part 121 , the second display part 122 and the bending display part 123 may be an integrated structure, so that the flexible display screen 120 is a one-piece flexible display screen; or, in some other embodiments, , the bending display part 123 is a bendable flexible part, and the first display part 121 and the second display part 122 may be non-flexible parts.
  • the first display part 121 and the second display part 122 are connected through the bending display part 123 Fold or unfold relative to each other.
  • the first display part 121 and the second display part 122 are separated from each other, so that the electronic device 100 presents an outward-folding screen structure.
  • the user can also observe the display content of the flexible display screen 120 when it is folded, which improves the convenience of using the electronic device 100 .
  • the first housing 111 and the second When the casing 112 is in a stacked shape, the first display part 121 and the second display part 122 are close to each other, so that the electronic device 100 has an inward folded screen structure, so that the flexible display screen 120 is protected from scratches and damage.
  • the above-mentioned naming of the first display part 121 , the second display part 122 and the bending display part 123 is only provided for the convenience of description and does not serve as a structural limitation of the flexible display screen 120 .
  • the first display part 121, the second display part 122 and the bending display part 123 may not have obvious boundaries, or the flexible display screen 120 may appear in other divided structures, for example, the flexible display screen 120 includes the first display part 121 And a second display part 122 connected to the first display part 121.
  • the first display part 121 and the second display part 122 can rotate relatively to fold or unfold.
  • the electronic device 100 may also be a non-folding screen electronic device. It should be noted that in this embodiment, the shape and structure of the electronic device 100 are not limited, as long as this solution can be applied.
  • FIG. 4 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application.
  • This method is used to determine the screenshot object for taking screenshots through multiple sliding starting positions based on multi-finger sliding operations. It eliminates the need for tedious cropping and dragging, and does not need to worry about floating window coverage, improving the speed and accuracy of screenshots.
  • the method is applied to the screen capture device 200 shown in FIG. 8 and the electronic device 100 configured with the screen capture device 200 ( FIG. 9 ).
  • the following will take an electronic device as an example to illustrate the specific process of this embodiment.
  • the electronic devices applied in this embodiment may include smart phones, tablet computers, wearable electronic devices, etc., which are not limited here.
  • the process shown in Figure 4 will be described in detail below.
  • the screenshot method may specifically include the following steps:
  • Step S110 Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
  • the electronic device may display a target interface, where the target interface may include a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
  • the first window can be understood as a lower window in the target interface
  • the second window can be understood as an upper window in the target interface, where the second window is superposed and displayed on the first window, that is, the upper window Displayed overlay on the lower window.
  • the size of the second window may be smaller than the size of the first window, that is, when the second window is superposed and displayed on the first window, it will cover part of the first window.
  • the superimposed position of the second window on the first window when the second window is superposed and displayed on the first window, the superimposed position of the second window on the first window can be fixed, or the superimposed position of the second window on the first window can be Varies according to needs. For example, if the overlay position of the second window on the first window is fixed and changes, the overlay position of the second window on the first window may remain unchanged by default, or may remain unchanged after the user selects the position; The superimposed position of the second window on the first window changes according to needs, then the superimposed position of the second window on the first window can be changed according to the drag operation acting on the second window, or can be changed according to the rotation of the electronic device. Changes, etc. are not limited here. As a method, overlaying and displaying the second window on the first window may include: the second window may be suspended and displayed on the first window.
  • the first window is divided into at least two sub-windows.
  • the first window when the first window is a dual-screen, the first window can be divided into two sub-windows, such as a first sub-window and a second sub-window; when the first window is a three-screen, then The first window can be divided into three sub-windows, such as a first sub-window, a second sub-window and a third sub-window.
  • the first window can also be divided into other more windows, which will not be described again here.
  • the content displayed in the first window and the second window may be the same or different.
  • the content displayed in the first window and the content displayed in the second window may be provided by the same application program, or they may be different. Can be provided by different applications.
  • the content displayed by the at least two sub-windows may be the same or different.
  • the content displayed by the at least two sub-windows may be provided by the same application program or may be provided by different application programs, etc., which is not limited here.
  • FIG. 5 shows a first interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device displays a target interface, which includes a first window and a second window 20 superimposed on the first window.
  • the first window includes a first sub-window 11 and a second window 20.
  • Child window 12 includes a first sub-window 11 and a second window 20.
  • Step S120 In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
  • the touch operation on the target interface can be detected.
  • the touch operation can include a single-finger click operation, a multi-finger click operation, a single-finger press operation, and a multi-finger press operation.
  • Finger press operation, single finger sliding operation, multi-finger sliding operation, single finger long press operation, multi-finger long press operation, etc. are not limited here.
  • multiple sliding starting positions corresponding to the multi-finger sliding operation can be obtained in response to the multi-finger sliding operation acting on the target interface.
  • a touch operation acting on the target interface may be detected.
  • the multiple finger sliding operations may be detected. Refers to whether the sliding direction of the sliding operation meets the preset sliding direction, and whether the sliding distance of the detected multi-finger sliding operation satisfies the preset sliding distance. Wherein, when it is determined that the sliding direction of the multi-finger sliding operation satisfies the preset sliding direction and the sliding distance of the multi-finger sliding operation satisfies the preset sliding distance, then multiple sliding starting positions corresponding to the multi-finger sliding operation can be obtained.
  • the preset sliding direction includes slide down.
  • the multi-finger sliding operation acting on the target interface may refer to the sliding operation acting on multiple touch points of the target interface. Therefore, in this embodiment, during the process of displaying the target interface, the sliding operation may be performed on the target interface. Whether there is a sliding operation with multiple touch points is detected. When a sliding operation with multiple touch points is detected, it can be determined that a multi-finger sliding operation acting on the target interface is detected. For example, when it is detected that multiple touch points acting on the target interface slide down a preset sliding distance, multiple sliding starting positions corresponding to the multi-finger sliding operation can be obtained.
  • a coordinate system can be established with the center point of the electronic device as the origin, and the horizontal axis direction and the vertical axis direction of the electronic device as the coordinate axis directions.
  • a certain vertex of the electronic device can be used as the origin point, with the electronic device as the origin.
  • the horizontal and vertical directions and vertical axis of the device establish a coordinate system for the coordinate axis direction.
  • obtaining the multiple sliding starting positions corresponding to the multi-finger sliding operation may include: obtaining the coordinate information in the coordinate system of the multiple starting positions corresponding to the multi-finger sliding operation. For example, assuming that the multi-finger sliding operation is a three-finger sliding operation, the coordinate information in the coordinate system of each of the three starting positions corresponding to the three-finger sliding operation can be obtained.
  • the plurality of sliding starting positions corresponding to multiple sliding operations may include: multiple initial landing point positions corresponding to the multi-finger sliding operation on the target interface. Therefore, multiple sliding starting positions corresponding to the multi-finger sliding operation can be obtained by obtaining multiple initial landing point positions corresponding to the multi-finger sliding operation on the target interface.
  • the positions of the at least two sub-windows, the position of the second window, and the position of the first window may also be obtained.
  • the coordinate information of each of the at least two sub-windows in the coordinate system can also be obtained, the coordinate information of the second window in the coordinate system can be obtained, and/or the third window can be obtained.
  • the coordinate information of a window in this coordinate system is not limited here.
  • Step S130 Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship.
  • the positional relationship between the plurality of sliding starting positions and the at least two sub-windows may be determined, and the positional relationship between the plurality of sliding starting positions and the at least two sub-windows may be used as the first positional relationship, and may The positional relationship between the second window and the at least two sub-windows is determined, and the positional relationship between the second window and the at least two sub-windows is used as the second positional relationship.
  • the multiple sliding starting positions may be determined based on the multiple sliding starting positions and the respective positions of at least two sub-windows.
  • the positional relationship between the starting position and at least two sub-windows is used as the first positional relationship; in the case of obtaining the position of the second window and the respective positions of at least two sub-windows, it can be based on the position of the second window and the respective positions of at least two sub-windows. position, and determine the positional relationship between the second window and at least two sub-windows as the second positional relationship.
  • the coordinate information of the multi-finger sliding operation and the coordinate information of each of at least two sub-windows can be obtained.
  • the coordinate information of the window and the coordinate information of each of the at least two sub-windows determine the position relationship between the second window and the at least two sub-windows as the second position relationship.
  • the first position relationship may include: the plurality of sliding starting positions are all located within one of the at least two sub-windows; or the plurality of sliding starting positions are not located in one of the at least two sub-windows.
  • the multiple sliding start positions are not all located within one of at least two sub-windows. This may include: multiple sliding start positions located within two sub-windows; multiple sliding start positions located within three sub-windows. within; multiple sliding starting positions located within four sub-windows; multiple sliding starting positions located within five sub-windows, etc., which are not limited here.
  • the second position relationship may include: the second window is completely overlapped within one of the at least two sub-windows; or the second window is not completely overlapped within one of the at least two sub-windows.
  • the unfinished superposition of the second window in one of the at least two sub-windows may include: a larger area of the second window is superimposed in one sub-window and the remaining area is superimposed in other sub-windows; The half area is superimposed on one sub-window and the remaining area is superimposed on other sub-windows; the smaller area of the second window is superimposed on one sub-window and the remaining area is superimposed on other sub-windows, etc., which are not limited here.
  • Step S140 Based on the first position relationship and the second position relationship, intercept the display content of the target interface.
  • the display content of the target interface can be intercepted based on the first position relationship and the second position relationship.
  • intercepting the display content of the target interface may include: intercepting the display content of the second window and the display content in the first window that is not covered by the second window; intercepting the display content of the second window and the display content of a certain sub-window that is not covered by the second window.
  • Display content covered by the second window; interception of the display content of a certain sub-window; interception of part of the display content of the second window and display content in a certain sub-window that is not covered by the second window, etc. are not limited here.
  • FIG. 6 shows a first interaction diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device displays a target interface.
  • the target interface includes a first window and a second window 20 superimposed on the first window.
  • the first window includes a first sub-window 11 and a second window 20 .
  • Child window 12 When multiple sliding starting positions are located in the first sub-window 11, the display content of the second window 20 located in the first sub-window 11 is intercepted, and the first sub-window 11 is not covered by the second window 20. display content.
  • FIG. 7 shows a second interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • the first screenshot 30 can be obtained, wherein the first screenshot 30 can be displayed suspended on the first sub-window 11 .
  • FIG. 8 shows a second interaction schematic diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device displays a target interface.
  • the target interface includes a first window 10 and a second window 20 superimposed on the first window 10 .
  • the first window includes a first sub-window 11 and a second window 20 .
  • the display content of the second window 20 is intercepted, and the first sub-window 11 and the second sub-window 12 are not
  • the second window 20 covers the display content.
  • FIG. 9 shows a third interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • the second screenshot 40 can be obtained, wherein the first screenshot 40 can be displayed suspended on the first sub-window 11 .
  • a screenshot method provided by an embodiment of the present application displays a target interface, wherein the target interface includes a first window and a second window superimposed on the first window.
  • the first window is divided into at least two sub-windows.
  • For a multi-finger sliding operation on the target interface obtain multiple sliding starting positions corresponding to the multi-finger sliding operation, determine the positional relationship between the multiple sliding starting positions and at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and at least two sub-windows.
  • the positional relationship of the two sub-windows is used as the second positional relationship.
  • the display content of the target interface is intercepted, so that the object of the screenshot is determined through multiple sliding starting positions based on the multi-finger sliding operation.
  • FIG. 10 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic devices. The process shown in Figure 10 will be described in detail below.
  • the screenshot method may specifically include the following steps:
  • Step S210 Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
  • Step S220 In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
  • Step S230 Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship.
  • step S210 to step S230 please refer to step S110 to step S130, which will not be described again here.
  • Step S240 If it is determined based on the first position relationship that the plurality of sliding starting positions are located within the target sub-window of the at least two sub-windows, intercept the second window based on the second position relationship. and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows.
  • the first position relationship when the first position relationship is obtained, it can be determined based on the first position relationship whether the plurality of sliding starting positions are located in any one of at least two sub-windows (target sub-window ), if the multiple sliding starting positions are all located in the target sub-window in the at least two sub-windows, it can be considered that the user triggers a split-screen screenshot, and then based on the second position relationship, the second window can be intercepted Display content and display content within the target subwindow.
  • target sub-window the plurality of sliding starting positions are located in any one of at least two sub-windows
  • the coordinate information of each of the plurality of sliding starting positions can be obtained, and the coordinate areas of each of the at least two sub-windows can be obtained. Based on this, the coordinate information of each of the plurality of sliding starting positions can be compared with the respective coordinate areas of at least two sub-windows to determine whether the coordinate information of the plurality of sliding starting positions are all located in the target in the plurality of sub-windows. Within the coordinate area of the subwindow.
  • the coordinate information of the multiple sliding start positions is located in the coordinate area of the target sub-window, then it can be determined that the multiple sliding starting positions are located in the target sub-window; if it is determined that the multiple sliding start positions are located in the target sub-window; If the coordinate information of the position is not all located in the target sub-window (one of the sub-windows), it can be determined that the plurality of sliding starting positions are not all located in the target sub-window.
  • At least two sub-windows include a first sub-window and a second sub-window
  • the multi-finger sliding operation includes a three-finger sliding operation. Then, it can be determined whether the three sliding starting positions are all located in the first sub-window or whether they are all located in the second sub-window.
  • the multiple sliding starting positions are located within the target sub-window, if two sliding starting positions are located within the first sub-window and one sliding starting position is located within the second sub-window , or, if one sliding start position is located in the first sub-window and two sliding start positions are located in the second sub-window, it can be determined that the multiple sliding start positions are not all located in the target sub-window.
  • intercepting the display content in the second window and the display content in the target sub-window may include: if the second position relationship indicates that the second window is not located in the target sub-window, then The display content in the target sub-window can be intercepted; if the second position relationship indicates that the second window is completely located within the target sub-window, the display content in the second window and the target sub-window that is not the second window can be intercepted The covered display content; if the second position relationship indicates that the area of the second window within the target sub-window satisfies the first preset condition, then the display content in the second window and the target sub-window not covered by the second window can be intercepted.
  • the display content covered by the window if the second position relationship indicates that the area of the second window located in the target sub-window satisfies the second preset condition, then the area located in the second window can be intercepted.
  • the display content of the target subwindow if the second position relationship indicates that the area of the second window located in the target sub-window satisfies the second preset condition, then the area located in the second window can be intercepted.
  • FIG. 11 is a schematic flowchart of step S240 of the screenshot method shown in FIG. 10 of the present application.
  • the process shown in Figure 11 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S241 If it is determined based on the second position relationship that the second window and the target sub-window have an overlapping area, intercept the display content in the second window and the target sub-window based on the overlapping area. display content within.
  • the first position relationship and the second position relationship when the first position relationship and the second position relationship are obtained, it can be determined based on the first position relationship whether the plurality of sliding starting positions are all located in the target sub-window in at least two sub-windows. , if the plurality of sliding starting positions are all located within the target sub-window in the at least two sub-windows, it can be determined based on the second position relationship whether there is an overlapping area between the second window and the target sub-window.
  • the coordinate area of the target sub-window can be obtained, and the coordinate area of the second window can be obtained. Based on this, the coordinate area of the target sub-window and the coordinate area of the second window can be compared to determine whether the coordinate area of the target sub-window and the coordinate area of the second window have the same coordinate area. Among them, if it is determined that the coordinate area of the target sub-window and the coordinate area of the second window have the same coordinate area, it can be determined that the second window and the target sub-window have an overlapping area; if it is determined that the coordinate area of the target sub-window and the coordinate area of the second window are the same. If the coordinate areas of the two windows do not have the same coordinate area, it can be determined that there is no overlapping area between the second window and the target sub-window.
  • the display content in the second window and the display content in the target sub-window can be intercepted based on the overlapping area.
  • the size of the overlapping area can be obtained, and based on the size of the overlapping area, the display content in the second window is intercepted and the display content within the target subwindow.
  • the proportion of the overlapping area and the second window can be obtained, and based on the proportion, the second window is intercepted
  • the display content within and the display content within the target sub-window are not limited here.
  • FIG. 12 is a schematic flowchart of step S241 of the screenshot method shown in FIG. 11 of the present application.
  • the process shown in Figure 12 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S2411 If it is determined based on the second position relationship that the second window and the target sub-window have an overlapping area, obtain the area between the second window located in the target sub-window and the second window. The ratio between regions.
  • the ratio between the area of the second window within the target sub-window and the area of the second window can be obtained. For example, assuming that the area of the second window located within the target sub-window is S1 and the area of the second window is S2, then the ratio between the area of the second window located within the target sub-window and the area of the second window For: S1/S2.
  • the abscissa length and ordinate length of the second window under the coordinate system can be obtained based on the abscissa length of the second window under the coordinate system. and the ordinate length to determine the area size of the second window under the coordinate system; in addition, the abscissa length and ordinate length of the overlapping area under the coordinate system can be obtained, based on the length of the overlapping area under the coordinate system The length of the abscissa and the length of the ordinate determine the size of the overlapping area in this coordinate system. Based on this, the ratio between the area of the second window within the target sub-window and the area of the second window can be determined based on the area size of the second window under the coordinate system and the area size of the overlapping area under the coordinate system. .
  • Step S2412 Based on the ratio, intercept the display content in the second window and the display content in the target sub-window.
  • the display in the second window and the target sub-window can be intercepted based on the ratio.
  • the content displayed in the window Among them, if the ratio is different, the intercepted display content can be different.
  • FIG. 13 is a schematic flowchart of step S2412 of the screenshot method shown in FIG. 12 of the present application.
  • the process shown in Figure 13 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S24121 If the ratio is greater than the first ratio threshold, intercept all the display content in the second window and the display content in the target sub-window that is not covered by the second window.
  • the electronic device may be preset and stored with a first proportion threshold and a second proportion threshold, wherein the first proportion threshold is greater than the second proportion threshold.
  • the first ratio threshold is used as a basis for judging the ratio between the area of the second window located within the target sub-window and the area of the second window
  • the second ratio threshold is used as a basis for determining the ratio of the second window located within the target sub-window. The basis for judging the ratio between the area within the sub-window and the area of the second window. Therefore, in this embodiment, when the ratio is obtained, the ratio can be compared with the first ratio threshold and the second ratio threshold respectively to determine whether the ratio is consistent with the first ratio threshold and the second ratio threshold. size relationship.
  • the ratio is greater than the first ratio threshold, it can be determined that the proportion of the area of the second window located within the target sub-window is relatively high, that is, it is determined that most of the area of the second window is located in the target sub-window. At this time, it can be considered that when taking a screenshot, the user is more likely to expect to capture all the displayed content in the second window, then all the displayed content in the second window and the target sub-window not included in the second window can be captured Overlay display content.
  • the second window can be controlled to automatically move toward the target sub-window. direction, and when it is determined that the second window has moved completely within the target sub-window, all display content in the second window and display content in the target sub-window that is not covered by the second window can be intercepted.
  • the second window can be reduced proportionally, and When it is determined that the second window is reduced to be completely located within the target sub-window, all display content in the second window and display content in the target sub-window that is not covered by the second window can be intercepted.
  • the display position and display of the second window can be maintained.
  • the size remains unchanged, and the displayed content in the second window is reduced proportionally, and when it is determined that the displayed content in the second window is reduced to completely within the target sub-window, all the displayed content in the second window can be intercepted Content and display content within the target subwindow that is not covered by the second window.
  • FIG. 14 is a schematic flowchart of step S24121 of the screenshot method shown in FIG. 13 of the present application.
  • the process shown in Figure 14 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S241211 If the ratio is greater than the first ratio threshold, scale the second window to be consistent with the size of the overlapping area.
  • the second window may be scaled down to be consistent with the size of the overlapping area. For example, assuming that the size of the area of the second window is S1 and the size of the overlapping area is S2, the size of the area of the second window can be reduced proportionally from S1 to S2. It can be understood that, through the above method, all the display content of the second window can be located in the target sub-window, and the coverage of the target sub-window by the second window can remain unchanged.
  • Step S241212 intercept all the displayed content in the second window after scaling down and the displayed content in the target sub-window that is not covered by the second window.
  • the second window when the second window is scaled down to be consistent with the size of the overlapping area, all the displayed content in the scaled-down second window and the target sub-window that are not displayed in the second window can be intercepted.
  • the display content covered by the window is to ensure the integrity of the displayed content in the intercepted second window and avoid impact on the displayed content in the intercepted target sub-window.
  • Step S24122 If the proportion is greater than the second proportion threshold and less than or equal to the first proportion threshold, intercept the display content covering the target sub-window in the second window and the display content in the target sub-window that is not displayed. The display content covered by the second window.
  • the ratio is greater than the second ratio threshold and less than or equal to the first ratio threshold, it can be determined that the area of the second window located within the target sub-window has a moderate proportion, that is, a partial area of the second window is determined. is located within the target sub-window, and part of the area is located outside the target sub-window.
  • the second window can be intercepted. The display content of the target sub-window is covered in the window, and the display content of the target window is not covered by the second window.
  • Step S24123 If the ratio is less than or equal to the second ratio threshold, intercept the display content in the target sub-window.
  • the ratio is less than or equal to the second ratio threshold, it can be determined that the proportion of the area of the second window located within the target sub-window is relatively low, that is, it is determined that most of the area of the second window is located within the target sub-window. Outside the sub-window, at this time, it can be considered that when the user takes a screenshot, there is a high possibility that the user does not expect to capture the display content in the second window, so the display content in the target sub-window can be captured.
  • the second window can be controlled to automatically move away from the target sub-window.
  • the direction of the window moves, and when it is determined that the second window has moved completely outside the target sub-window, the display content in the target sub-window can be intercepted.
  • the second window can be reduced proportionally, And when it is determined that the second window is shrunk to a point that it is not located in the target sub-window at all, the display content in the target sub-window can be intercepted.
  • the display position and position of the second window can be maintained.
  • the display size remains unchanged, and the displayed content in the second window is reduced proportionally, and when it is determined that the displayed content in the second window is reduced to not located in the target sub-window at all, then the content in the target sub-window can be intercepted Display content.
  • Step S242 If it is determined based on the second position relationship that there is no overlapping area between the second window and the target sub-window, intercept the display content in the target sub-window.
  • the display content in the target sub-window can be intercepted.
  • the intercepted The object is the display content in the target sub-window and the display content superimposed on the target sub-window. If it is determined based on the second position relationship that there is no overlapping area between the second window and the target sub-window, it can be determined that the target sub-window has If there is other content that is not superimposed, you can directly intercept the display content in the target sub-window.
  • Step S250 If it is determined based on the first position relationship that the plurality of sliding starting positions are not located within the target sub-window of the at least two sub-windows, intercept the display content in the second window and the Display content in the first window that is not covered by the second window.
  • the first position relationship when the first position relationship is obtained, it can be determined based on the first position relationship whether the plurality of sliding starting positions are located in any one of the at least two sub-windows (target sub-window). window), if the multiple sliding starting positions are not all located in the target sub-window in the at least two sub-windows, it can be considered that the user triggers a full screen capture, and the display content in the second window and the first screen can be directly captured Display content within the window that is not covered by the second window.
  • the interception object is related to the split-screen window, and the multiple sliding starting positions of the multi-finger sliding operation do not all fall in a certain split-screen area. within the screen area, the interception object is related to the full-screen window.
  • the content related to the target sub-window can be used as the interception object, That is, the display content of the second window located in the target sub-window and the display content in the target sub-window not covered by the second window are intercepted.
  • the content related to the first window can be used as the interception object, that is, the display content of the second window and Display content in the first window that is not covered by the second window.
  • the second window when the second window is not superimposed on the first window, it can be detected whether the multiple sliding starting positions corresponding to the multi-finger sliding operation are all located within the target sub-window. If the multiple sliding starting positions are If the starting positions are all located in the target sub-window, the display content in the target sub-window can be intercepted. If the multiple sliding starting positions are not all located in the target sub-window, the display content in the first window can be intercepted.
  • FIG. 15 shows a fourth interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device displays a target interface, which includes a first window 10 , where the first window 10 includes a first sub-window 11 and a second sub-window 12 .
  • FIG. 16 shows a third interaction diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device displays a target interface, which includes a first window 10 , where the first window includes a first sub-window 11 and a second sub-window 12 .
  • the display content in the first sub-window 11 is intercepted.
  • FIG. 17 shows a fifth interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • a third screenshot 50 can be obtained, wherein the third screenshot 50 can be displayed in a floating position on the first sub-window 11. on subwindow 11.
  • FIG. 18 shows a fourth interaction schematic diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device displays a target interface, which includes a first window 10 , where the first window includes a first sub-window 11 and a second sub-window 12 .
  • the display content of the first window 10 will be displayed.
  • FIG. 19 shows a sixth interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • a fourth screenshot 60 can be obtained, wherein the first screenshot 60 can be displayed suspended in the first sub-window. 11 on.
  • this embodiment also determines that multiple sliding starting positions are located within the target sub-window in at least two sub-windows based on the first position relationship.
  • the display content in the second window and the display content in the target sub-window are intercepted, and based on the first position relationship, it is determined that the plurality of sliding starting positions are not all located within the target sub-window in at least two sub-windows.
  • the display content in the second window and the display content in the first window that are not covered by the second window are intercepted, so as to determine the area screenshot or the full screenshot according to the positional relationship between the multiple sliding starting positions and the sub-windows, so as to improve the screenshot Diversity and speed.
  • FIG. 20 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic equipment. The process shown in Figure 20 will be described in detail below.
  • the screenshot method shown may specifically include the following steps:
  • Step S310 Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
  • Step S320 In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
  • Step S330 Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship.
  • step S310 to step S330 please refer to step S110 to step S130, which will not be described again here.
  • Step S340 If it is determined based on the first position relationship that the plurality of sliding starting positions are located within the target sub-window of the at least two sub-windows, intercept the second window based on the second position relationship. and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows.
  • Step S350 If it is determined based on the first position relationship that the plurality of sliding starting positions are not located within the target sub-window of the at least two sub-windows, intercept the display content in the second window and the Display content in the first window that is not covered by the second window.
  • steps S340 to S350 please refer to steps S240 to S250, which will not be described again here.
  • Step S360 In response to the screenshot editing instruction, display the screenshot to be edited and display a cropping frame on the screenshot to be edited.
  • the electronic device may include a screenshot to be edited, wherein the screenshot to be edited may be obtained by intercepting the display content in the second window and the display content in the first window that is not covered by the second window, or may be It is previously obtained and stored locally on the electronic device, or it can be obtained from the server through the network, which is not limited here.
  • the electronic device may respond to the screenshot editing instruction by displaying the screenshot to be edited and displaying a cropping box on the screenshot to be edited, where the cropping box is used to crop the screenshot to be edited.
  • the electronic device when the electronic device obtains a screenshot to be edited, it can detect whether a screenshot editing instruction is received. If it is determined that a screenshot editing instruction is received, the electronic device can respond to the screenshot editing instruction and enter the screenshot editing page. , and display the screenshot to be edited on the screenshot editing page and display a cropping box on the screenshot to be edited.
  • FIG. 21 shows a seventh interface schematic diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device can display the screenshot 60 to be edited, and display the cropping frame 70 on the screenshot 60 to be edited, where the screenshot 60 to be edited includes a target dividing line 61 .
  • Step S370 In response to the drag operation acting on the cropping frame or the dragging operation acting on the screenshot to be edited, change the display position of the cropping frame on the screenshot to be edited.
  • operations acting on the screenshot to be edited and the cropping frame may be detected.
  • the display position of the cropping frame on the screenshot to be edited can be changed based on the dragging operation acting on the cropping frame.
  • the display position of the cropping frame on the screenshot to be edited can be changed based on the drag operation on the screenshot to be edited.
  • changing the display position of the cropping frame on the screenshot to be edited may include: the display position of the cropping frame gradually approaching the middle position of the screenshot to be edited, the display position of the cropping frame gradually approaching the edge of the screenshot to be edited, etc., which are not limited here. .
  • changing the display position of the cropping frame on the screenshot to be edited may include: changing the display position of the screenshot to be edited and keeping the display position of the cropping frame unchanged; or, changing the display position of the cropping frame and keeping the screenshot to be edited. The display position remains unchanged.
  • Step S380 When the display position of the cropping frame on the screenshot to be edited moves to a distance less than a distance threshold from the target dividing line, control the cropping frame to automatically move to overlap with the target dividing line. s position.
  • the screenshot to be edited is a screenshot of a split-screen interface, that is, the screenshot to be edited includes a screenshot of the display content of at least two sub-windows, and every two adjacent sub-windows in the at least two sub-windows pass through the target dividing line. Separate.
  • the electronic device may be preset and stored with a distance threshold, which is used as a basis for judging the distance between the cropping frame and the target dividing line. Therefore, in this embodiment, during the process of changing the display position of the cropping frame on the screenshot to be edited, the distance between the cropping frame and the target dividing line can be obtained, and the distance can be compared with a distance threshold to determine Determine whether the distance is less than the distance threshold. If it is determined that the distance is less than the distance threshold, it means that the display position of the cropping frame on the screenshot to be edited will be moved closer to the target segmentation line, that is, the user expects to move the cropping frame to the target segmentation.
  • Figure 22 shows a fifth interaction schematic diagram of an electronic device provided by an embodiment of the present application.
  • the user can drag the cropping frame 70 to move on the screenshot 60 to be edited, when the distance between the display position of the cropping frame 70 and the display position of the target dividing line 61 on the screenshot 60 to be edited is less than the distance threshold. , then the cropping frame 70 is automatically attracted to the target dividing line 61 .
  • Step S390 When it is determined that the cropping frame overlaps the target dividing line, output prompt information, where the prompt information is used to prompt for cropping.
  • prompt information for prompting cropping may be output.
  • the prompt information may include text prompt information, vibration prompt information, highlight prompt information, voice prompt information, etc., which is not limited here.
  • this embodiment also determines that multiple sliding starting positions are located within the target sub-window in at least two sub-windows based on the first position relationship.
  • the display content in the second window and the display content in the target sub-window are intercepted, and based on the first position relationship, it is determined that the plurality of sliding starting positions are not all located within the target sub-window in at least two sub-windows.
  • the drag operation on the frame or the drag operation on the screenshot to be edited changes the display position of the cropping frame on the screenshot to be edited.
  • the display position of the cropping frame on the screenshot to be edited moves to the distance between it and the target dividing line.
  • the cropping frame is controlled to automatically move to a position that overlaps the target dividing line.
  • output Prompt information used to prompt for cropping.
  • Figure 23 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic equipment. The process shown in Figure 23 will be described in detail below.
  • the screenshot method may specifically include the following steps:
  • Step S410 Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
  • Step S420 In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
  • Step S430 Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship.
  • Step S440 Based on the first position relationship and the second position relationship, intercept the display content of the target interface.
  • steps S410 to S440 please refer to steps S110 to S140, which will not be described again here.
  • Step S450 Display the captured screenshot in a floating manner on the target interface.
  • the screenshot obtained by the interception can be displayed in a floating manner on the target interface for the user to obtain the screenshot.
  • the screenshots are processed in the next step, for example, sharing the screenshots obtained, taking long screenshots, etc., which are not limited here.
  • the screenshot method provided by an embodiment of the present application is compared to the screenshot method shown in Figure 1.
  • This embodiment also intercepts the display content of the display interface to obtain the screenshot, and displays the screenshot obtained by floating the screenshot on the target interface, which can be provided to the user in a timely manner. Process screenshots to improve the user's screenshot experience.
  • FIG. 24 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. The process shown in Figure 24 will be described in detail below.
  • the screenshot method may specifically include the following steps:
  • Step S510 Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
  • step S510 For the specific description of step S510, please refer to step S110, which will not be described again here.
  • Step S520 In response to the multi-finger sliding operation on the target interface, obtain the display area corresponding to the target interface.
  • the display area corresponding to the target interface can be obtained.
  • the display area of the displayable area can be obtained as the display area corresponding to the target interface.
  • the coordinate area corresponding to the target interface in the coordinate system can be obtained, and the target interface is determined based on the corresponding coordinate area of the target interface in the coordinate system. display area.
  • Step S530 If the display area is greater than the area threshold, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
  • the electronic device may have an area threshold set and stored in advance, and the area threshold is used as a basis for judging the display area corresponding to the target interface. Therefore, in this embodiment, when the display area is obtained, the display area can be compared with an area threshold to determine whether the display area is greater than the area threshold. Wherein, if it is determined that the display area is greater than the area threshold, it can be considered that the display area of the display interface meets the requirements for split-screen screenshots, and subsequent steps can be continued.
  • Step S540 Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship.
  • Step S550 Based on the first position relationship and the second position relationship, intercept the display content of the target interface.
  • steps S540 to S550 please refer to steps S130 to S140, which will not be described again here.
  • the screenshot method provided by an embodiment of the present application also supports the function of multi-finger screenshots when the display area corresponding to the target interface is greater than the area threshold, thereby adapting to large-scale applications. electronic devices with different screens to enhance the screen capture experience.
  • Figure 25 shows a schematic framework diagram that can be used for the screenshot method provided by the embodiment of the present application.
  • the electronic device to which this embodiment is applied may include a system gesture module, a system UI framework module, a screenshot module, and a system display service module, and the system gesture module, the system UI framework module, the screenshot module, and the system display service module interact with each other. Cooperate and provide their respective abilities.
  • the system gesture module provides multi-finger gesture judgment and finger coordinate point collection capabilities
  • the system UI framework module provides information such as the area size of the left and right windows in split-screen mode
  • the screenshot module implements the core split-screen screenshot business logic
  • the system display service module provides screen Image content to the screenshot module.
  • the user touches the screen with multiple fingers and slides down a certain distance.
  • the system gesture module determines whether the sliding direction and sliding distance meet the multi-finger screenshot triggering conditions. If so, the screenshot interface is called to take a screenshot. application process, and transmits the coordinates of multiple finger touch points when multiple fingers fall on the screen to the screenshot application through the screenshot interface.
  • the screenshot application After the screenshot application is started, it first detects whether the current screenshot that needs to be taken meets the conditions for split-screen screenshots. For example, by reading the system feature to determine whether it is currently applied to a tablet device; by reading the system attribute value to determine whether it is currently applied to a tablet device.
  • the large screen expansion state of the folding screen device determine whether the system is currently displayed in split screen by calling the system split screen interface. Among them, if it is determined that the conditions for split-screen screenshots are met, then Call the interface provided by the system UI framework to read the coordinate information of the split-screen interface (at least two sub-windows), and then compare the coordinate information of multiple sliding starting positions obtained from the gesture module with the coordinate information of the split-screen interface. If the coordinate information of multiple sliding starting positions is within the coordinate range of one of the split-screen interfaces, the split-screen screenshot logic is triggered; otherwise, the full-screen screenshot logic is triggered.
  • the screenshot application determines that the user is taking a split-screen screenshot, and then passes the obtained coordinate information of the split-screen interface to the display service screenshot interface to obtain the screen image content of the corresponding area.
  • the screenshot application then displays the image content in the form of a screenshot for the user to preview. .
  • the initial touch point coordinates of the user's multiple fingers are used to determine.
  • the subsequent displacement of the user's fingers on the screen does not affect this judgment. That is, if the initial landing point of the user's multiple fingers is on the left half of the screen and a finger has moved to the right half of the screen when sliding down to trigger the screenshot function, it will also be considered This user triggered the left half-screen split-screen screenshot function.
  • the user's operation is a split-screen gesture, the screen content on the current split-screen will be captured. , that is, what you see is what you get.
  • FIG. 26 shows a module block diagram of a screenshot device provided by an embodiment of the present application.
  • the screen capture device 200 is applied to the above-mentioned electronic equipment. The following will be explained with reference to the block diagram shown in FIG. 26.
  • the screen capture device 200 includes: a target interface display module 210, a sliding starting position acquisition module 220, a position relationship determination module 230 and a display module.
  • Content interception module 240 wherein:
  • the target interface display module 210 is used to display a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
  • the sliding starting position acquisition module 220 is configured to obtain multiple sliding starting positions corresponding to the multi-finger sliding operation in response to the multi-finger sliding operation on the target interface.
  • the sliding start position acquisition module 220 includes: a display area acquisition submodule and a sliding start position acquisition submodule, wherein:
  • the display area acquisition submodule is used to acquire the display area corresponding to the target interface in response to a multi-finger sliding operation acting on the target interface.
  • the sliding starting position acquisition submodule is used to acquire multiple sliding starting positions corresponding to the multi-finger sliding operation when the display area is greater than an area threshold.
  • the position relationship determination module 230 is used to determine the position relationship between the plurality of sliding starting positions and the at least two sub-windows as the first position relationship, and determine the position relationship between the second window and the at least two sub-windows. as a second position relationship.
  • the display content interception module 240 is configured to intercept the display content of the target interface based on the first position relationship and the second position relationship.
  • the display content interception module 240 includes: a first display content interception sub-module and a second display content interception sub-module, wherein:
  • a first display content interception submodule configured to, if it is determined based on the first position relationship that the plurality of sliding starting positions are located within the target sub-window in the at least two sub-windows, based on the second position relationship , intercept the display content in the second window and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows.
  • the first display content interception sub-module includes: a first display content interception unit and a second display content interception unit, wherein:
  • a first display content interception unit configured to intercept the display content in the second window based on the overlapping area if it is determined based on the second position relationship that there is an overlapping area between the second window and the target sub-window. and the display content within the target sub-window.
  • the first display content interception unit includes: a proportion acquisition subunit and a display content interception subunit, wherein:
  • a proportion acquisition subunit configured to acquire an area of the second window located within the target sub-window and the area of the target sub-window if it is determined based on the second position relationship that there is an overlapping area between the second window and the target sub-window. The ratio between the areas of the second window.
  • the display content interception subunit is used to intercept the display content in the second window and the display content in the target sub-window based on the ratio.
  • the display content interception sub-unit includes: a first display content interception sub-module, a second display content interception sub-module and a third display content interception sub-module, wherein:
  • the first display content interception sub-module is used to intercept all the display content in the second window and the display in the target sub-window that is not covered by the second window if the ratio is greater than the first proportion threshold. content.
  • the first display content interception sub-module includes: a reduction sub-unit and a display content interception sub-unit, wherein:
  • a reduction sub-subunit configured to scale down the second window to be consistent with the size of the overlapping area if the scale is greater than the first scale threshold.
  • the display content interception sub-unit is used to intercept all the display content in the second window after scaling down and the display content in the target sub-window that is not covered by the second window.
  • the second display content interception sub-module is used to intercept the display content covering the target sub-window in the second window and all the contents if the proportion is greater than the second proportion threshold and less than or equal to the first proportion threshold.
  • the third display content interception sub-module is used to intercept the display content in the target sub-window if the proportion is less than or equal to the second proportion threshold.
  • the second display content interception unit is configured to intercept the display content in the target sub-window if it is determined based on the second position relationship that there is no overlapping area between the second window and the target sub-window.
  • the second display content interception sub-module is used to intercept the second window if it is determined based on the first position relationship that the plurality of sliding starting positions are not all located within the target sub-window in the at least two sub-windows.
  • the display content within the first window and the display content within the first window that is not covered by the second window are used to intercept the second window if it is determined based on the first position relationship that the plurality of sliding starting positions are not all located within the target sub-window in the at least two sub-windows.
  • the display content interception module 240 also includes: a cropping frame display sub-module, a display position changing sub-module and a movement control sub-module, wherein:
  • the cropping box display submodule is used to respond to the screenshot editing instruction, display the screenshot to be edited, and display the cropping box on the screenshot to be edited.
  • the display position changing submodule is configured to change the display position of the cropping frame on the screenshot to be edited in response to a drag operation acting on the cropping frame or a dragging operation acting on the screenshot to be edited.
  • a movement control submodule configured to control the automatic movement of the cropping frame to the target dividing line when the display position of the cropping frame on the screenshot to be edited moves to a distance less than a distance threshold. The position where the target dividing lines overlap.
  • the display content interception module 240 also includes:
  • a prompt information output submodule is configured to output prompt information when it is determined that the cropping frame overlaps the target dividing line, where the prompt information is used to prompt for cropping.
  • the screen capture device 200 also includes:
  • a screenshot display module is used to display the screenshot obtained by floating on the target interface.
  • the coupling between modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, 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 function modules.
  • FIG. 27 shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may be a smart phone, a tablet computer, an e-book, or other electronic device capable of running applications.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be Or multiple processors 110 execute, and one or more programs are configured to execute the method as described in the foregoing method embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the electronic device 100 may use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA field-programmable gate array
  • PLA programmable logic array
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem etc.
  • the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented solely through a communication chip.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc.
  • the storage data area can also store data created during use of the electronic device 100 (such as phone book, audio and video data, chat record data), etc.
  • Figure 28 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program code is stored in the computer-readable medium 300, and the program code can be called by the processor to execute the method described in the above method embodiment.
  • Computer-readable storage medium 300 may be electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 300 includes non-transitory computer-readable storage medium.
  • the computer-readable storage medium 300 has storage space for the program code 310 that performs any method steps in the above-mentioned methods. These program codes may be obtained from one or more computer program products Read from or write to the one or more computer program products.
  • Program code 310 may, for example, be compressed in a suitable form.
  • the screenshot method, device, electronic device and storage medium displayed a target interface, wherein the target interface includes a first window and a second window superimposed on the first window.
  • the third window A window is divided into at least two sub-windows, in response to a multi-finger sliding operation acting on the target interface, multiple sliding starting positions corresponding to the multi-finger sliding operation are obtained, and the positional relationship between the multiple sliding starting positions and the at least two sub-windows is determined as The first positional relationship is determined, and the positional relationship between the second window and at least two sub-windows is determined as the second positional relationship.
  • the display content of the target interface is intercepted, so that the display content of the target interface is intercepted based on the multi-finger sliding operation.
  • Multiple sliding starting positions can be used to determine the screenshot object to take screenshots without tedious cropping and dragging, and there is no need to worry about floating window coverage, which improves the speed and accuracy of screenshots.

Landscapes

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

Abstract

The present application relates to the technical field of electronic devices. Disclosed are a screenshot taking method and apparatus, an electronic device and a storage medium. The method comprises: displaying a target interface, the target interface comprising a first window and a second window displayed in a superimposed manner on the first window, and the first window being partitioned into at least two sub-windows; in response to a multi-finger sliding operation acting on the target interface, acquiring a plurality of sliding starting positions corresponding to the multi-finger sliding operation; determining the position relationship between the plurality of sliding starting positions and the at least two sub-windows as a first position relationship, and determining the position relationship between the second window and the at least two sub-windows as a second position relationship; and on the basis of the first position relationship and the second position relationship, capturing display content of the target interface. In the present invention, by means of the plurality of sliding starting positions based on the multi-finger sliding operation, an object to be subjected to screenshot taking is determined and then screenshot taking is performed, so that complicated cropping and dragging are no needed, and there is no need to worry about covering of a floating window, thus improving the rapidity and accuracy of screenshot taking.

Description

截屏方法、装置、电子设备以及存储介质Screen capture method, device, electronic device and storage medium
相关申请的交叉引用Cross-references to related applications
本申请要求于2022年07月25日提交的申请号为CN202210878190.1的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from the Chinese application with application number CN202210878190.1 filed on July 25, 2022, the entire content of which is hereby incorporated by reference for all purposes.
技术领域Technical field
本申请涉及电子设备技术领域,更具体地,涉及一种截屏方法、装置、电子设备以及存储介质。The present application relates to the technical field of electronic equipment, and more specifically, to a screen capture method, device, electronic equipment and storage medium.
背景技术Background technique
随着科学技术的发展,电子设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。目前,电子设备一般可以支持分屏显示。With the development of science and technology, electronic devices are used more and more widely and have more and more functions, and they have become one of the necessities in people's daily life. Currently, electronic devices generally support split-screen display.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种截屏方法、装置、电子设备以及存储介质,以解决上述问题。In view of the above problems, this application proposes a screenshot method, device, electronic device and storage medium to solve the above problems.
第一方面,本申请实施例提供了一种截屏方法,应用于电子设备,所述方法包括:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口;响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置;确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系;基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。In a first aspect, embodiments of the present application provide a method for taking screenshots, which is applied to an electronic device. The method includes: displaying a target interface, wherein the target interface includes a first window and a screen superimposed on the first window. a second window, the first window is divided into at least two sub-windows; in response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation; determine the plurality of sliding starting positions corresponding to the multi-finger sliding operation. The positional relationship between the sliding starting position and the at least two sub-windows is used as the first positional relationship, and the positional relationship between the second window and the at least two sub-windows is determined as the second positional relationship; based on the first positional relationship and the second position relationship, intercepting the display content of the target interface.
第二方面,本申请实施例提供了一种截屏装置,应用于电子设备,所述装置包括:目标界面显示模块,用于显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口;滑动起始位置获取模块,用于响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置;位置关系确定模块,用于确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系;显示内容截取模块,用于基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。In a second aspect, embodiments of the present application provide a screen capture device for use in electronic equipment. The device includes: a target interface display module for displaying a target interface, wherein the target interface includes a first window and a superimposed display on a second window on the first window, where the first window is divided into at least two sub-windows; a sliding starting position acquisition module configured to acquire the multi-finger sliding operation in response to a multi-finger sliding operation acting on the target interface Multiple sliding starting positions corresponding to the sliding operation; a positional relationship determination module, used to determine the positional relationship between the multiple sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the second window The positional relationship with the at least two sub-windows is used as the second positional relationship; a display content interception module is configured to intercept the display content of the target interface based on the first positional relationship and the second positional relationship.
第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, embodiments of the present application provide an electronic device, including a memory and a processor. The memory is coupled to the processor, and the memory stores instructions that are executed when the instructions are executed by the processor. The processor executes the above method.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the above method.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1示出了可用于本申请实施例提供的工具栏的显示方法的一种电子设备的折叠状态的结构示意图;Figure 1 shows a schematic structural diagram of an electronic device in a folded state that can be used for a toolbar display method provided by an embodiment of the present application;
图2示出了可用于本申请实施例提供的工具栏的显示方法的一种的电子设备的展开状态的结构示意图;Figure 2 shows a schematic structural diagram of an electronic device in an expanded state that can be used for a toolbar display method provided by an embodiment of the present application;
图3示出了可用于本申请实施例提供的工具栏的显示方法的另一种的电子设备的结构示意图;Figure 3 shows a schematic structural diagram of another electronic device that can be used for the toolbar display method provided by the embodiment of the present application;
图4示出了本申请一实施例提供的截屏方法的流程示意图;Figure 4 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application;
图5示出了本申请实施例提供的电子设备的第一种界面示意图;Figure 5 shows a first interface schematic diagram of an electronic device provided by an embodiment of the present application;
图6示出了本申请实施例提供的电子设备的第一种交互示意图;Figure 6 shows a first interaction schematic diagram of an electronic device provided by an embodiment of the present application;
图7示出了本申请实施例提供的电子设备第二种界面示意图;Figure 7 shows a second interface schematic diagram of the electronic device provided by the embodiment of the present application;
图8示出了本申请实施例提供的电子设备的第二种交互示意图;Figure 8 shows a second interaction schematic diagram of an electronic device provided by an embodiment of the present application;
图9示出了本申请实施例提供的电子设备第三种界面示意图;Figure 9 shows a third interface schematic diagram of an electronic device provided by an embodiment of the present application;
图10示出了本申请一实施例提供的截屏方法的流程示意图;Figure 10 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application;
图11示出了本申请的图10所示的截屏方法的步骤S240的流程示意图;Figure 11 shows a schematic flowchart of step S240 of the screenshot method shown in Figure 10 of the present application;
图12示出了本申请的图11所示的截屏方法的步骤S241的流程示意图;Figure 12 shows a schematic flow chart of step S241 of the screenshot method shown in Figure 11 of the present application;
图13示出了本申请的图12所示的截屏方法的步骤S2412的流程示意图;Figure 13 shows a schematic flow chart of step S2412 of the screenshot method shown in Figure 12 of the present application;
图14示出了本申请的图13所示的截屏方法的步骤S24121的流程示意图;Figure 14 shows a schematic flowchart of step S24121 of the screenshot method shown in Figure 13 of the present application;
图15示出了本申请实施例提供的电子设备的第四种界面示意图;Figure 15 shows a fourth interface schematic diagram of an electronic device provided by an embodiment of the present application;
图16示出了本申请实施例提供的电子设备的第三种交互示意图; Figure 16 shows a third interaction schematic diagram of an electronic device provided by an embodiment of the present application;
图17示出了本申请实施例提供的电子设备第五种界面示意图;Figure 17 shows a fifth interface schematic diagram of an electronic device provided by an embodiment of the present application;
图18示出了本申请实施例提供的电子设备的第四种交互示意图;Figure 18 shows a fourth interaction schematic diagram of an electronic device provided by an embodiment of the present application;
图19示出了本申请实施例提供的电子设备第六种界面示意图;Figure 19 shows a sixth interface schematic diagram of an electronic device provided by an embodiment of the present application;
图20示出了本申请一实施例提供的截屏方法的流程示意图;Figure 20 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application;
图21示出了本申请实施例提供的电子设备的第七种界面示意图;Figure 21 shows a seventh interface schematic diagram of an electronic device provided by an embodiment of the present application;
图22示出了本申请实施例提供的电子设备的第五种交互示意图;Figure 22 shows a fifth interaction schematic diagram of an electronic device provided by an embodiment of the present application;
图23示出了本申请一实施例提供的截屏方法的流程示意图;Figure 23 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application;
图24示出了本申请一实施例提供的截屏方法的流程示意图;Figure 24 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application;
图25示出了可用于本申请实施例提供的截屏方法的框架示意图;Figure 25 shows a schematic framework diagram that can be used for the screenshot method provided by the embodiment of the present application;
图26示出了本申请一实施例提供的截屏装置的模块框图;Figure 26 shows a module block diagram of a screenshot device provided by an embodiment of the present application;
图27示出了本申请实施例用于执行根据本申请实施例的截屏方法的电子设备的框图;Figure 27 shows a block diagram of an electronic device used to perform a screenshot method according to an embodiment of the present application;
图28示出了本申请实施例的用于保存或者携带实现根据本申请实施例的截屏方法的程序代码的存储单元。Figure 28 shows a storage unit used to save or carry the program code for implementing the screenshot method according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those in the technical field to better understand the solution of the present application, the technical solution in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application.
当人们使用电子设备浏览信息时,若查看到感兴趣的内容,用户可以将感兴趣的内容以图片形式快速保存,于是截屏技术应运而生。目前,截屏通常是针对屏幕为单个窗口进行的,而对于折叠屏幕的电子设备或者其他较大屏幕的电子设备,若电子设备在多个窗口上均显示内容时接收到用户的截屏操作,则可能存在截屏对象不明确是某个窗口还是所有窗口,导致截屏不准确且截屏操作复杂的问题。目前,针对分屏显示模式下,接收到用户的截屏操作时,会在截图浮窗上出现两个气泡浮窗,预览着分屏区域的截图,用户点击气泡后进入编辑页,裁剪框自动选中被点击的分片区域图像范围以供用户进行裁剪获得分屏截图,导致截屏操作繁琐。When people use electronic devices to browse information, if they view content of interest, users can quickly save the content of interest in the form of pictures, so screenshot technology emerged as the times require. Currently, screenshots are usually taken when the screen is a single window. For electronic devices with folding screens or other electronic devices with larger screens, if the electronic device receives a user's screenshot operation while displaying content on multiple windows, it may There is a problem that it is not clear whether the screenshot object is a certain window or all windows, resulting in inaccurate screenshots and complicated screenshot operations. Currently, in the split-screen display mode, when receiving the user's screenshot operation, two bubble floating windows will appear on the screenshot floating window, previewing the screenshot of the split-screen area. The user clicks the bubble to enter the editing page, and the cropping box is automatically selected. The image range of the clicked slice area is available for users to crop to obtain split-screen screenshots, which makes the screenshot operation cumbersome.
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的截屏方法、装置、电子设备以及存储介质,通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。其中,具体的截屏方法在后续的实施例中进行详细的说明。In response to the above problems, the inventor discovered after long-term research and proposed a screenshot method, device, electronic device and storage medium provided by the embodiment of the present application, which determines the object of the screenshot through multiple sliding starting positions based on multi-finger sliding operations. When taking screenshots, there is no need to perform tedious cropping and dragging, and there is no need to worry about floating window coverage, which improves the speed and accuracy of screenshots. The specific screenshot method will be described in detail in subsequent embodiments.
下面将针对可用于本申请实施例提供的截屏方法的应用环境进行说明。The following will describe the application environment that can be used for the screenshot method provided by the embodiment of the present application.
请参阅图1,电子设备100可以但不限于为手机、平板电脑、游戏机、智能穿戴设备、车载设备等电子装置。本实施方式的电子设备100以手机为例进行说明。Referring to FIG. 1 , the electronic device 100 may be, but is not limited to, a mobile phone, a tablet computer, a game console, a smart wearable device, a vehicle-mounted device and other electronic devices. The electronic device 100 in this embodiment will be described taking a mobile phone as an example.
电子设备100包括可折叠壳体组件110、柔性显示屏120以及电子组件(图中未示出),电子组件设置于可折叠壳体组件110内,柔性显示屏120铺设于可折叠壳体组件110上。可折叠壳体组件110用于对柔性显示屏120进行承载,同时对电子组件进行防护。电子组件可以,但不限于包括中央处理器、存储器、摄像头、受话器、指纹模组等,具体的电子组件在本申请实施例中可以不作为限定。The electronic device 100 includes a foldable case assembly 110, a flexible display screen 120 and electronic components (not shown in the figure). The electronic components are arranged in the foldable case assembly 110. The flexible display screen 120 is laid on the foldable case assembly 110. superior. The foldable case assembly 110 is used to carry the flexible display screen 120 and protect electronic components at the same time. Electronic components may include, but are not limited to, a central processing unit, a memory, a camera, a receiver, a fingerprint module, etc. Specific electronic components may not be limited in the embodiments of this application.
可折叠壳体组件110包括第一壳体111、第二壳体112以及转轴机构113,第一壳体111和第二壳体112分别连接于转轴机构113的两侧。第二壳体112能够通过转轴机构113相对第一壳体111折叠或展开,使可折叠壳体组件110带动柔性显示屏120折叠或展开,可折叠壳体组件110及柔性显示屏120呈叠合状时,电子设备100的体积相对较小,便于收纳及携带,可折叠壳体组件110及柔性显示屏120呈展开状时,电子设备100的体积相对较大,便于进行信息的展示。The foldable housing assembly 110 includes a first housing 111 , a second housing 112 and a rotating shaft mechanism 113 . The first housing 111 and the second housing 112 are respectively connected to both sides of the rotating shaft mechanism 113 . The second housing 112 can be folded or unfolded relative to the first housing 111 through the rotating shaft mechanism 113, so that the foldable housing assembly 110 drives the flexible display screen 120 to fold or unfold, and the foldable housing assembly 110 and the flexible display screen 120 are overlapped. When the foldable housing assembly 110 and the flexible display screen 120 are in the unfolded shape, the electronic device 100 has a relatively large volume, which is convenient for displaying information.
请参阅图2,本实施方式中,柔性显示屏120包括连接于第一壳体111的第一显示部121、连接于第二壳体112的第二显示部122和连接于第一显示部121和第二显示部122的弯折显示部123。其中,第一显示部121、第二显示部122对以及弯折显示部123可对应形成多个显示区域(例如,形式两个显示区域、形成三个显示区域、形成四个显示区域……形成N个显示区域)。第一显示部121和第二显示部122分别随第一壳体111和第二壳体112相对地折叠或展开。弯折显示部123随第一显示部121与第二显示部122的折叠或展开而弯折或展平。在一些实施方式中,第一显示部121、第二显示部122以及弯折显示部123可以为一体结构,使柔性显示屏120为整片式的柔性显示屏;或者,在其他的一些实施方式中,弯折显示部123为可弯折的柔性部分,而第一显示部121、第二显示部122可以为非柔性部分,第一显示部121、第二显示部122通过弯折显示部123相对地折叠或展开。在本实施方式中,第一壳体111与第二壳体112呈叠合状时,第一显示部121与第二显示部122相背离,使电子设备100呈现为外折屏幕的结构,使用户在折叠的情况下同样能够观察柔性显示屏120的显示内容,提高了电子设备100使用的便利性。在其他的一些实施方式中,第一壳体111与第二 壳体112呈叠合状时,第一显示部121与第二显示部122相靠近,使电子设备100呈现为内折屏幕的结构,以使柔性显示屏120免于刮花损坏。Please refer to FIG. 2 . In this embodiment, the flexible display screen 120 includes a first display part 121 connected to the first housing 111 , a second display part 122 connected to the second housing 112 , and a first display part 121 connected to the second housing 112 . and the bent display portion 123 of the second display portion 122 . Among them, the first display part 121, the second display part 122 pair and the bent display part 123 can form multiple display areas (for example, form two display areas, form three display areas, form four display areas... form N display areas). The first display part 121 and the second display part 122 are folded or unfolded relative to the first housing 111 and the second housing 112 respectively. The bending display part 123 is bent or flattened as the first display part 121 and the second display part 122 are folded or unfolded. In some embodiments, the first display part 121 , the second display part 122 and the bending display part 123 may be an integrated structure, so that the flexible display screen 120 is a one-piece flexible display screen; or, in some other embodiments, , the bending display part 123 is a bendable flexible part, and the first display part 121 and the second display part 122 may be non-flexible parts. The first display part 121 and the second display part 122 are connected through the bending display part 123 Fold or unfold relative to each other. In this embodiment, when the first casing 111 and the second casing 112 are overlapped, the first display part 121 and the second display part 122 are separated from each other, so that the electronic device 100 presents an outward-folding screen structure. The user can also observe the display content of the flexible display screen 120 when it is folded, which improves the convenience of using the electronic device 100 . In some other embodiments, the first housing 111 and the second When the casing 112 is in a stacked shape, the first display part 121 and the second display part 122 are close to each other, so that the electronic device 100 has an inward folded screen structure, so that the flexible display screen 120 is protected from scratches and damage.
应当理解的是,上述的第一显示部121、第二显示部122以及弯折显示部123的命名仅为便于描述而设置,并不作为柔性显示屏120的结构限制,在实际的应用场景中,第一显示部121、第二显示部122以及弯折显示部123可以没有明显的界限,或者,柔性显示屏120可以以其他的划分结构出现,例如,柔性显示屏120包括第一显示部121以及连接于该第一显示部121的第二显示部122,该第一显示部121及该第二显示部122能够相对转动以折叠或展开。It should be understood that the above-mentioned naming of the first display part 121 , the second display part 122 and the bending display part 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 part 121, the second display part 122 and the bending display part 123 may not have obvious boundaries, or the flexible display screen 120 may appear in other divided structures, for example, the flexible display screen 120 includes the first display part 121 And a second display part 122 connected to the first display part 121. The first display part 121 and the second display part 122 can rotate relatively to fold or unfold.
请参阅图3,电子设备100除了可以为上述折叠屏电子设备之外,还可以为非折叠屏电子设备。需要说明的是,在本实施例中,电子设备100的外形和结构均不作为限定,只要能适用本方案即可。Referring to FIG. 3 , in addition to the above-mentioned folding screen electronic device, the electronic device 100 may also be a non-folding screen electronic device. It should be noted that in this embodiment, the shape and structure of the electronic device 100 are not limited, as long as this solution can be applied.
请参阅图4,图4示出了本申请一实施例提供的截屏方法的流程示意图。该方法用于通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。在具体的实施例中,该方法应用于如图8所示的截屏装置200以及配置有截屏装置200的电子设备100(图9)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以包括智能手机、平板电脑、穿戴式电子设备等,在此不做限定。下面将针对图4所示的流程进行详细的阐述,所述截屏方法具体可以包括以下步骤:Please refer to FIG. 4 , which shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is used to determine the screenshot object for taking screenshots through multiple sliding starting positions based on multi-finger sliding operations. It eliminates the need for tedious cropping and dragging, and does not need to worry about floating window coverage, improving the speed and accuracy of screenshots. In a specific embodiment, the method is applied to the screen capture device 200 shown in FIG. 8 and the electronic device 100 configured with the screen capture device 200 ( FIG. 9 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic devices applied in this embodiment may include smart phones, tablet computers, wearable electronic devices, etc., which are not limited here. The process shown in Figure 4 will be described in detail below. The screenshot method may specifically include the following steps:
步骤S110:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S110: Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
在本实施例中,电子设备可以显示目标界面,其中,该目标界面可以包括第一窗口和叠加显示于该第一窗口上的第二窗口,该第一窗口划分为至少两个子窗口。In this embodiment, the electronic device may display a target interface, where the target interface may include a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
在一些实施方式中,该第一窗口可以理解为目标界面中的下层窗口,第二窗口可以理解为目标界面中的上层窗口,其中,第二窗口叠加显示于第一窗口上,即,上层窗口叠加显示于下层窗口上。作为一种可实施的方式,该第二窗口的尺寸可以小于该第一窗口的尺寸,即,第二窗口叠加显示于该第一窗口上时,会覆盖该第一窗口的部分区域。In some embodiments, the first window can be understood as a lower window in the target interface, and the second window can be understood as an upper window in the target interface, where the second window is superposed and displayed on the first window, that is, the upper window Displayed overlay on the lower window. As an implementable manner, the size of the second window may be smaller than the size of the first window, that is, when the second window is superposed and displayed on the first window, it will cover part of the first window.
在一些实施方式中,该第二窗口叠加显示于该第一窗口时,该第二窗口在第一窗口上的叠加位置可以固定不变,或者,该第二窗口在第一窗口上叠加位置可以根据需求变化。例如,若该第二窗口在第一窗口上的叠加位置固定变化,则该第二窗口在第一窗口上的叠加位置可以默认不变,也可以为用户选定位置后不变;若该第二窗口在第一窗口上的叠加位置根据需求变化,则该第二窗口在第一窗口上的叠加位置可以根据作用于第二窗口的拖动操作而改变,或者,可以根据电子设备的转动而改变等,在此不做限定。作为一种方式,该第二窗口叠加显示于该第一窗口上可以包括:该第二窗口可以悬浮显示于该第一窗口上。In some embodiments, when the second window is superposed and displayed on the first window, the superimposed position of the second window on the first window can be fixed, or the superimposed position of the second window on the first window can be Varies according to needs. For example, if the overlay position of the second window on the first window is fixed and changes, the overlay position of the second window on the first window may remain unchanged by default, or may remain unchanged after the user selects the position; The superimposed position of the second window on the first window changes according to needs, then the superimposed position of the second window on the first window can be changed according to the drag operation acting on the second window, or can be changed according to the rotation of the electronic device. Changes, etc. are not limited here. As a method, overlaying and displaying the second window on the first window may include: the second window may be suspended and displayed on the first window.
在一些实施方式中,该第一窗口划分为至少两个子窗口。例如,当该第一窗口为双分屏时,则该第一窗口可以划分为两个子窗口,如划分为第一子窗口和第二子窗口;当该第一窗口为三分屏时,则该第一窗口可以划分为三个子窗口,如划分为第一子窗口、第二子窗口以及第三子窗口。当然,在本实施例中,第一窗口还可以划分为其他更多的窗口,在此不再赘述。In some embodiments, the first window is divided into at least two sub-windows. For example, when the first window is a dual-screen, the first window can be divided into two sub-windows, such as a first sub-window and a second sub-window; when the first window is a three-screen, then The first window can be divided into three sub-windows, such as a first sub-window, a second sub-window and a third sub-window. Of course, in this embodiment, the first window can also be divided into other more windows, which will not be described again here.
在一些实施方式中,该第一窗口和第二窗口所显示的内容可以相同,也可以不同,该第一窗口所显示的内容和第二窗口所显示的内容可以由相同的应用程序提供,也可以由不同的应用程序提供。该至少两个子窗口所显示的内容可以相同,也可以不同,该至少两个子窗口所显示的内容可以由相同的应用程序提供,也可以由不同的应用程序提供等,在此不做限定。In some implementations, the content displayed in the first window and the second window may be the same or different. The content displayed in the first window and the content displayed in the second window may be provided by the same application program, or they may be different. Can be provided by different applications. The content displayed by the at least two sub-windows may be the same or different. The content displayed by the at least two sub-windows may be provided by the same application program or may be provided by different application programs, etc., which is not limited here.
请参阅图5,图5示出了本申请实施例提供的电子设备的第一种界面示意图。如图5所示,该电子设备显示目标界面,该目标界面包括第一窗口以及叠加显示于该第一窗口上的第二窗口20,其中,该第一窗口包括第一子窗口11和第二子窗口12。Please refer to FIG. 5 , which shows a first interface schematic diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 5, the electronic device displays a target interface, which includes a first window and a second window 20 superimposed on the first window. The first window includes a first sub-window 11 and a second window 20. Child window 12.
步骤S120:响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。Step S120: In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
在本实施例中,在显示目标界面的过程中,可以对作用于目标界面上的触控操作进行检测,该触控操作可以包括单指点击操作、多指点击操作、单指按压操作、多指按压操作、单指滑动操作、多指滑动操作、单指长按操作、多指长按操作等,在此不做限定。其中,当检测到作用于目标界面的多指滑动操作时,则可以响应作用于目标界面上的多指滑动操作,获取多指滑动操作对应的多个滑动起始位置。In this embodiment, during the process of displaying the target interface, the touch operation on the target interface can be detected. The touch operation can include a single-finger click operation, a multi-finger click operation, a single-finger press operation, and a multi-finger press operation. Finger press operation, single finger sliding operation, multi-finger sliding operation, single finger long press operation, multi-finger long press operation, etc. are not limited here. Wherein, when a multi-finger sliding operation acting on the target interface is detected, multiple sliding starting positions corresponding to the multi-finger sliding operation can be obtained in response to the multi-finger sliding operation acting on the target interface.
在一些实施方式中,在显示目标界面的过程中,可以对作用于该目标界面的触控操作进行检测,在检测到作用于目标界面上的多指滑动操作的情况下,则可以检测该多指滑动操作的滑动方向是否满足预设滑动方向,且检测到多指滑动操作的滑动距离是否满足预设滑动距离。其中,在确定该多指滑动操作的滑动方向满足预设滑动方向且多指滑动操作的滑动距离满足预设滑动距离的情况下,则可以获取该多指滑动操作对应的多个滑动起始位置。作为一种可实施的方式,该预设滑动方向包 括向下滑动。In some embodiments, during the process of displaying the target interface, a touch operation acting on the target interface may be detected. When a multi-finger sliding operation acting on the target interface is detected, the multiple finger sliding operations may be detected. Refers to whether the sliding direction of the sliding operation meets the preset sliding direction, and whether the sliding distance of the detected multi-finger sliding operation satisfies the preset sliding distance. Wherein, when it is determined that the sliding direction of the multi-finger sliding operation satisfies the preset sliding direction and the sliding distance of the multi-finger sliding operation satisfies the preset sliding distance, then multiple sliding starting positions corresponding to the multi-finger sliding operation can be obtained. . As an implementable method, the preset sliding direction includes slide down.
在一些实施方式中,作用于目标界面的多指滑动操作可以是指作用于目标界面的多个触控点的滑动操作,因此,在本实施例中,在显示目标界面的过程中,可以对是否存在多个触控点的滑动操作进行检测,其中,在检测到存在多个触控点的滑动操作时,可以确定检测到作用于目标界面的多指滑动操作。例如,在检测到作用于目标界面的多个触控点向下滑动预设滑动距离时,可以获取该多指滑动操作对应的多个滑动起始位置。In some embodiments, the multi-finger sliding operation acting on the target interface may refer to the sliding operation acting on multiple touch points of the target interface. Therefore, in this embodiment, during the process of displaying the target interface, the sliding operation may be performed on the target interface. Whether there is a sliding operation with multiple touch points is detected. When a sliding operation with multiple touch points is detected, it can be determined that a multi-finger sliding operation acting on the target interface is detected. For example, when it is detected that multiple touch points acting on the target interface slide down a preset sliding distance, multiple sliding starting positions corresponding to the multi-finger sliding operation can be obtained.
在一些实施方式中,可以以电子设备的中心点为原点,以电子设备的横轴方向和纵轴方向为坐标轴方向建立坐标系,或者,可以以电子设备的某个顶点为原点,以电子设备的横纵方向和纵轴方向为坐标轴方向建立坐标系。那么,获取该多指滑动操作对应的多个滑动起始位置可以包括:获取该多指滑动操作对应的多个起始位置各自在该坐标系中的坐标信息。例如,假设多指滑动操作为三指滑动操作,那么,可以获取三指滑动操作对应的三个起始位置各自在该坐标系中的坐标信息。In some embodiments, a coordinate system can be established with the center point of the electronic device as the origin, and the horizontal axis direction and the vertical axis direction of the electronic device as the coordinate axis directions. Alternatively, a certain vertex of the electronic device can be used as the origin point, with the electronic device as the origin. The horizontal and vertical directions and vertical axis of the device establish a coordinate system for the coordinate axis direction. Then, obtaining the multiple sliding starting positions corresponding to the multi-finger sliding operation may include: obtaining the coordinate information in the coordinate system of the multiple starting positions corresponding to the multi-finger sliding operation. For example, assuming that the multi-finger sliding operation is a three-finger sliding operation, the coordinate information in the coordinate system of each of the three starting positions corresponding to the three-finger sliding operation can be obtained.
作为一种可实施的方式,多个滑动操作对应的多个滑动起始位置可以包括:多指滑动操作在目标界面对应的多个初始落点位置。因此,可以通过获取多指滑动操作在目标界面对应的多个初始落点位置的方式,获得该多指滑动操作对应的多个滑动起始位置。As an implementable manner, the plurality of sliding starting positions corresponding to multiple sliding operations may include: multiple initial landing point positions corresponding to the multi-finger sliding operation on the target interface. Therefore, multiple sliding starting positions corresponding to the multi-finger sliding operation can be obtained by obtaining multiple initial landing point positions corresponding to the multi-finger sliding operation on the target interface.
在一些实施方式中,除了获取该多指滑动操作对应的多个滑动起始位置,还可以获取该至少两个子窗口的位置、该第二窗口的位置以及该第一窗口的位置。例如,在建立有坐标系的情况下,还可以获取该至少两个子窗口各自在该坐标系下的坐标信息,获取该第二窗口在该坐标系下的坐标信息,和/或,获取该第一窗口在该坐标系下的坐标信息等,在此不做限定。In some embodiments, in addition to obtaining multiple sliding starting positions corresponding to the multi-finger sliding operation, the positions of the at least two sub-windows, the position of the second window, and the position of the first window may also be obtained. For example, when a coordinate system is established, the coordinate information of each of the at least two sub-windows in the coordinate system can also be obtained, the coordinate information of the second window in the coordinate system can be obtained, and/or the third window can be obtained. The coordinate information of a window in this coordinate system is not limited here.
步骤S130:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S130: Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship. .
在本实施例中,可以确定该多个滑动起始位置与至少两个子窗口的位置关系,并将该多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系,以及,可以确定该第二窗口与至少两个子窗口的位置关系,并将该第二窗口与至少两个子窗口的位置关系作为第二位置关系。In this embodiment, the positional relationship between the plurality of sliding starting positions and the at least two sub-windows may be determined, and the positional relationship between the plurality of sliding starting positions and the at least two sub-windows may be used as the first positional relationship, and may The positional relationship between the second window and the at least two sub-windows is determined, and the positional relationship between the second window and the at least two sub-windows is used as the second positional relationship.
在一些实施方式中,在获得多个滑动起始位置和至少两个子窗口各自的位置的情况下,则可以基于多个滑动起始位置和至少两个子窗口各自的位置,确定该多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系;在获得第二窗口的位置和至少两个子窗口各自的位置的情况下,则可以基于第二窗口的位置和至少两个子窗口各自的位置,确定该第二窗口与至少两个子窗口的位置关系作为第二位置关系。In some embodiments, in the case where multiple sliding starting positions and respective positions of at least two sub-windows are obtained, the multiple sliding starting positions may be determined based on the multiple sliding starting positions and the respective positions of at least two sub-windows. The positional relationship between the starting position and at least two sub-windows is used as the first positional relationship; in the case of obtaining the position of the second window and the respective positions of at least two sub-windows, it can be based on the position of the second window and the respective positions of at least two sub-windows. position, and determine the positional relationship between the second window and at least two sub-windows as the second positional relationship.
作为一种可实施的方式,在获得多指滑动操作的坐标信息和至少两个子窗口各自的坐标信息的情况下,则可以基于多指滑动操作的坐标信息的和至少两个子窗口各自的坐标信息,确定该多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系;在获得第二窗口的坐标信息和至少两个子窗口的各自的坐标信息的情况下,则可以基于第二窗口的坐标信息和至少两个子窗口各自的坐标信息,确定该第二窗口与至少两个子窗口的位置关系作为第二位置关系。As an implementable manner, in the case where the coordinate information of the multi-finger sliding operation and the coordinate information of each of at least two sub-windows are obtained, the coordinate information of the multi-finger sliding operation and the coordinate information of each of the at least two sub-windows can be obtained. , determine the positional relationship between the plurality of sliding starting positions and at least two sub-windows as the first positional relationship; in the case of obtaining the coordinate information of the second window and the respective coordinate information of the at least two sub-windows, it can be based on the second The coordinate information of the window and the coordinate information of each of the at least two sub-windows determine the position relationship between the second window and the at least two sub-windows as the second position relationship.
在一些实施方式中,第一位置关系可以包括:多个滑动起始位置均位于至少两个子窗口中的一个子窗口内;或者,多个滑动起始位置未均位于至少两个子窗口中的一个子窗口内,其中,多个滑动起始位置未均位于至少两个子窗口中的一个子窗口内可以包括:多个滑动起始位置位于两个子窗口内;多个滑动起始位置位于三个子窗口内;多个滑动起始位置位于四个子窗口内;多个滑动起始位置位于五个子窗口内等,在此不做限定。In some embodiments, the first position relationship may include: the plurality of sliding starting positions are all located within one of the at least two sub-windows; or the plurality of sliding starting positions are not located in one of the at least two sub-windows. Within a sub-window, the multiple sliding start positions are not all located within one of at least two sub-windows. This may include: multiple sliding start positions located within two sub-windows; multiple sliding start positions located within three sub-windows. within; multiple sliding starting positions located within four sub-windows; multiple sliding starting positions located within five sub-windows, etc., which are not limited here.
在一些实施方式中,第二位置关系可以包括:第二窗口完全叠加于至少两个子窗口中的一个子窗口内;或者,第二窗口未完全叠加于至少两个子窗口中的一个子窗口内。其中,第二窗口未完成叠加于至少两个子窗口中的一个子窗口内可以包括:第二窗口的较大区域叠加于一个子窗口内且剩余区域叠加于其他子窗口内;第二窗口的近半区域叠加于一个子窗口内且剩余区域叠加于其他子窗口内;第二窗口的较小区域叠加于一个子窗口内且剩余区域叠加于其他子窗口内等,在此不做限定。In some implementations, the second position relationship may include: the second window is completely overlapped within one of the at least two sub-windows; or the second window is not completely overlapped within one of the at least two sub-windows. Wherein, the unfinished superposition of the second window in one of the at least two sub-windows may include: a larger area of the second window is superimposed in one sub-window and the remaining area is superimposed in other sub-windows; The half area is superimposed on one sub-window and the remaining area is superimposed on other sub-windows; the smaller area of the second window is superimposed on one sub-window and the remaining area is superimposed on other sub-windows, etc., which are not limited here.
步骤S140:基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。Step S140: Based on the first position relationship and the second position relationship, intercept the display content of the target interface.
在本实施例中,在获得第一位置关系和第二位置关系的情况下,则可以基于该第一位置关系和第二位置关系,截取该目标界面的显示内容。In this embodiment, when the first position relationship and the second position relationship are obtained, the display content of the target interface can be intercepted based on the first position relationship and the second position relationship.
在一些实施方式中,截取目标界面的显示内容可以包括:截取第二窗口的显示内容和第一窗口内未被第二窗口覆盖的显示内容;截取第二窗口的显示内容和某个子窗口内未被第二窗口覆盖的显示内容;截取某个子窗口的显示内容;截取第二窗口的部分显示内容和某个字窗口内未被第二窗口覆盖的显示内容等,在此不做限定。In some implementations, intercepting the display content of the target interface may include: intercepting the display content of the second window and the display content in the first window that is not covered by the second window; intercepting the display content of the second window and the display content of a certain sub-window that is not covered by the second window. Display content covered by the second window; interception of the display content of a certain sub-window; interception of part of the display content of the second window and display content in a certain sub-window that is not covered by the second window, etc. are not limited here.
请参阅图6,图6示出了本申请实施例提供的电子设备的第一种交互示意图。如图6所示,该电子设备显示目标界面,该目标界面包括第一窗口以及叠加显示于该第一窗口上的第二窗口20,其中,该第一窗口包括第一子窗口11和第二子窗口12。当多个滑动起始位置均位于第一子窗口11内时,则截取该第二窗口20位于该第一子窗口11内的显示内容,以及第一子窗口11内未被第二窗口20覆盖的显示内容。 Please refer to FIG. 6 , which shows a first interaction diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 6 , the electronic device displays a target interface. The target interface includes a first window and a second window 20 superimposed on the first window. The first window includes a first sub-window 11 and a second window 20 . Child window 12. When multiple sliding starting positions are located in the first sub-window 11, the display content of the second window 20 located in the first sub-window 11 is intercepted, and the first sub-window 11 is not covered by the second window 20. display content.
请参阅图7,图7示出了本申请实施例提供的电子设备第二种界面示意图。如图7所示,在通过图6所示的方式截取该第二窗口20位于该第一子窗口11内的显示内容,以及第一子窗口11内未被第二窗口20覆盖的显示内容的情况下,则可以获得第一截图30,其中,该第一截图30可以悬浮显示于第一子窗口11上。Please refer to FIG. 7 , which shows a second interface schematic diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 7, after intercepting the display content of the second window 20 located in the first sub-window 11 and the display content of the first sub-window 11 not covered by the second window 20 in the manner shown in Figure 6 In this case, the first screenshot 30 can be obtained, wherein the first screenshot 30 can be displayed suspended on the first sub-window 11 .
请参阅图8,图8示出了本申请实施例提供的电子设备的第二种交互示意图。如图8所示,该电子设备显示目标界面,该目标界面包括第一窗口10以及叠加显示于该第一窗口10上的第二窗口20,其中,该第一窗口包括第一子窗口11和第二子窗口12。当多个滑动起始位置同时位于第一子窗口11和第二子窗口12内时,则截取该第二窗口20的显示内容,以及第一子窗口11和第二子窗口12内未被第二窗口20覆盖的显示内容。Please refer to FIG. 8 , which shows a second interaction schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 8 , the electronic device displays a target interface. The target interface includes a first window 10 and a second window 20 superimposed on the first window 10 . The first window includes a first sub-window 11 and a second window 20 . Second sub-window 12. When multiple sliding starting positions are located in the first sub-window 11 and the second sub-window 12 at the same time, the display content of the second window 20 is intercepted, and the first sub-window 11 and the second sub-window 12 are not The second window 20 covers the display content.
请参阅图9,图9示出了本申请实施例提供的电子设备第三种界面示意图。如图9所示,在通过图8所示的方式截取该第二窗口20的显示内容,以及第一子窗口11和第二子窗口12内未被第二窗口20覆盖的显示内容的情况下,则可以获得第二截图40,其中,该第一截图40可以悬浮显示于第一子窗口11上。Please refer to FIG. 9 , which shows a third interface schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 9 , when the display content of the second window 20 and the display content in the first sub-window 11 and the second sub-window 12 that are not covered by the second window 20 are intercepted in the manner shown in FIG. 8 , then the second screenshot 40 can be obtained, wherein the first screenshot 40 can be displayed suspended on the first sub-window 11 .
本申请一实施例提供的截屏方法,显示目标界面,其中,该目标界面包括第一窗口和叠加显示于第一窗口上的第二窗口,该第一窗口划分为至少两个子窗口,响应作用于目标界面的多指滑动操作,获取多指滑动操作对应的多个滑动起始位置,确定多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系,并确定第二窗口与至少两个子窗口的位置关系作为第二位置关系,基于第一位置关系和第二位置关系,截取目标界面的显示内容,从而通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。A screenshot method provided by an embodiment of the present application displays a target interface, wherein the target interface includes a first window and a second window superimposed on the first window. The first window is divided into at least two sub-windows. For a multi-finger sliding operation on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation, determine the positional relationship between the multiple sliding starting positions and at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and at least two sub-windows. The positional relationship of the two sub-windows is used as the second positional relationship. Based on the first positional relationship and the second positional relationship, the display content of the target interface is intercepted, so that the object of the screenshot is determined through multiple sliding starting positions based on the multi-finger sliding operation. When taking screenshots, there is no need to perform tedious cropping and dragging, and there is no need to worry about floating window coverage, making screenshots faster and more accurate.
请参阅图10,图10示出了本申请一实施例提供的截屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图10所示的流程进行详细的阐述,所述截屏方法具体可以包括以下步骤:Please refer to FIG. 10 , which shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic devices. The process shown in Figure 10 will be described in detail below. The screenshot method may specifically include the following steps:
步骤S210:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S210: Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
步骤S220:响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。Step S220: In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
步骤S230:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S230: Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship. .
其中,步骤S210-步骤S230的具体描述请参阅步骤S110-步骤S130,在此不再赘述。For the detailed description of step S210 to step S230, please refer to step S110 to step S130, which will not be described again here.
步骤S240:若基于所述第一位置关系确定所述多个滑动起始位置均位于所述至少两个子窗口中的目标子窗口内,则基于所述第二位置关系,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,其中,所述目标子窗口为所述至少两个子窗口中的任意一个子窗口。Step S240: If it is determined based on the first position relationship that the plurality of sliding starting positions are located within the target sub-window of the at least two sub-windows, intercept the second window based on the second position relationship. and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows.
在本实施例中,在获得该第一位置关系的情况下,则可以基于该第一位置关系判断该多个滑动起始位置是否均位于至少两个子窗口中的任意一个子窗口(目标子窗口)内,若该多个滑动起始位置均位于该至少两个子窗口中的目标子窗口内,可以认为用户触发进行分屏截屏,则可以基于该第二位置关系,截取该第二窗口内的显示内容和目标子窗口内的显示内容。In this embodiment, when the first position relationship is obtained, it can be determined based on the first position relationship whether the plurality of sliding starting positions are located in any one of at least two sub-windows (target sub-window ), if the multiple sliding starting positions are all located in the target sub-window in the at least two sub-windows, it can be considered that the user triggers a split-screen screenshot, and then based on the second position relationship, the second window can be intercepted Display content and display content within the target subwindow.
在一些实施方式中,在建立有坐标系的情况下,可以获取该多个滑动起始位置各自的坐标信息,并获取该至少两个子窗口各自的坐标区域。基于此,可以将该多个滑动起始位置各自的坐标信息分别与至少两个子窗口各自的坐标区域进行比较,以判断该多个滑动起始位置的坐标信息是否均位于多个子窗口中的目标子窗口的坐标区域内。其中,若确定该多个滑动起始位置的坐标信息均位于目标子窗口的坐标区域内,则可以确定该多个滑动起始位置均位于该目标子窗口内;若确定该多个滑动起始位置的坐标信息未均位于目标子窗口(其中一个子窗口)内,则可以确定该多个滑动起始位置未均位于该目标子窗口内。In some embodiments, when a coordinate system is established, the coordinate information of each of the plurality of sliding starting positions can be obtained, and the coordinate areas of each of the at least two sub-windows can be obtained. Based on this, the coordinate information of each of the plurality of sliding starting positions can be compared with the respective coordinate areas of at least two sub-windows to determine whether the coordinate information of the plurality of sliding starting positions are all located in the target in the plurality of sub-windows. Within the coordinate area of the subwindow. Among them, if it is determined that the coordinate information of the multiple sliding start positions is located in the coordinate area of the target sub-window, then it can be determined that the multiple sliding starting positions are located in the target sub-window; if it is determined that the multiple sliding start positions are located in the target sub-window; If the coordinate information of the position is not all located in the target sub-window (one of the sub-windows), it can be determined that the plurality of sliding starting positions are not all located in the target sub-window.
作为一种可实施的方式,假设至少两个子窗口包括第一子窗口和第二子窗口,多指滑动操作包括三指滑动操作。那么,则可以判断该三个滑动起始位置是否均位于第一子窗口或者是否均位于第二子窗口内,其中,若确定该三个滑动起始位置均位于该第一子窗口内或者均位于该第二子窗口内,则可以确定该多个滑动起始位置均位于目标子窗口内,若两个滑动起始位置位于第一子窗口内且一个滑动起始位置位于第二子窗口内,或者,一个滑动起始位置位于第一子窗口内且两个滑动起始位置位于第二子窗口内,则可以确定该多个滑动起始位置未均位于目标子窗口内。As an implementable manner, it is assumed that at least two sub-windows include a first sub-window and a second sub-window, and the multi-finger sliding operation includes a three-finger sliding operation. Then, it can be determined whether the three sliding starting positions are all located in the first sub-window or whether they are all located in the second sub-window. Wherein, if it is determined that the three sliding starting positions are all located in the first sub-window or are all located in the first sub-window, Located within the second sub-window, it can be determined that the multiple sliding starting positions are located within the target sub-window, if two sliding starting positions are located within the first sub-window and one sliding starting position is located within the second sub-window , or, if one sliding start position is located in the first sub-window and two sliding start positions are located in the second sub-window, it can be determined that the multiple sliding start positions are not all located in the target sub-window.
在一些实施方式中,基于第二位置关系,截取第二窗口内的显示内容和目标子窗口内的显示内容可以包括:若第二位置关系表征该第二窗口未位于该目标子窗口内,则可以截取该目标子窗口内的显示内容;若第二位置关系表征该第二窗口完全位于该目标子窗口内,则可以截取该第二窗口内的显示内容和目标子窗口内未被第二窗口覆盖的显示内容;若第二位置关系表征该第二窗口位于该目标子窗口内的区域满足第一预设条件,则可以截取该第二窗口内的显示内容和目标子窗口内未被第二窗口覆盖的显示内容;若第二位置关系表征该第二窗口位于该目标子窗口内的区域满足第二预设条件,则可以截取该第二窗口内位于该 目标子窗口内的显示内容和目标子窗口内未被第二窗口覆盖的显示内容;若第二位置关系表征该第二窗口位于该目标子窗口内的区域满足第三预设条件,则可以截取该目标子窗口的显示内容。In some embodiments, based on the second position relationship, intercepting the display content in the second window and the display content in the target sub-window may include: if the second position relationship indicates that the second window is not located in the target sub-window, then The display content in the target sub-window can be intercepted; if the second position relationship indicates that the second window is completely located within the target sub-window, the display content in the second window and the target sub-window that is not the second window can be intercepted The covered display content; if the second position relationship indicates that the area of the second window within the target sub-window satisfies the first preset condition, then the display content in the second window and the target sub-window not covered by the second window can be intercepted. The display content covered by the window; if the second position relationship indicates that the area of the second window located in the target sub-window satisfies the second preset condition, then the area located in the second window can be intercepted. The display content in the target sub-window and the display content in the target sub-window that is not covered by the second window; if the second position relationship indicates that the area of the second window within the target sub-window meets the third preset condition, it can be intercepted The display content of the target subwindow.
请参阅图11,图11示出了本申请的图10所示的截屏方法的步骤S240的流程示意图。下面将针对图11所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 11 , which is a schematic flowchart of step S240 of the screenshot method shown in FIG. 10 of the present application. The process shown in Figure 11 will be described in detail below. The method may specifically include the following steps:
步骤S241:若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。Step S241: If it is determined based on the second position relationship that the second window and the target sub-window have an overlapping area, intercept the display content in the second window and the target sub-window based on the overlapping area. display content within.
在本实施例中,在获得该第一位置关系和第二位置关系的情况下,则可以基于该第一位置关系判断该多个滑动起始位置是否均位于至少两个子窗口中的目标子窗口内,若该多个滑动起始位置均位于该至少两个子窗口中的目标子窗口内,则可以基于该第二位置关系判断该第二窗口与目标子窗口是否存在重叠区域。In this embodiment, when the first position relationship and the second position relationship are obtained, it can be determined based on the first position relationship whether the plurality of sliding starting positions are all located in the target sub-window in at least two sub-windows. , if the plurality of sliding starting positions are all located within the target sub-window in the at least two sub-windows, it can be determined based on the second position relationship whether there is an overlapping area between the second window and the target sub-window.
在一些实施方式中,在建立有坐标系的情况下,可以获取该目标子窗口的坐标区域,并获取该第二窗口的坐标区域。基于此,可以将该目标子窗口的坐标区域和第二窗口的坐标区域进行比较,以判断该目标子窗口的坐标区域和第二窗口的坐标区域是否存在相同的坐标区域。其中,若确定该目标子窗口的坐标区域和第二窗口的坐标区域存在相同的坐标区域,则可以确定该第二窗口与目标子窗口存在重叠区域;若确定该目标子窗口的坐标区域和第二窗口的坐标区域不存在相同的坐标区域,则可以确定该第二窗口与目标子窗口不存在重叠区域。In some implementations, when a coordinate system is established, the coordinate area of the target sub-window can be obtained, and the coordinate area of the second window can be obtained. Based on this, the coordinate area of the target sub-window and the coordinate area of the second window can be compared to determine whether the coordinate area of the target sub-window and the coordinate area of the second window have the same coordinate area. Among them, if it is determined that the coordinate area of the target sub-window and the coordinate area of the second window have the same coordinate area, it can be determined that the second window and the target sub-window have an overlapping area; if it is determined that the coordinate area of the target sub-window and the coordinate area of the second window are the same. If the coordinate areas of the two windows do not have the same coordinate area, it can be determined that there is no overlapping area between the second window and the target sub-window.
在一些实施方式中,可以判断目标子窗口内的显示内容是否被第二窗口的显示内容遮挡。其中,在确定目标子窗口内的显示内容被第二窗口的显示内容遮挡的情况下,则可以确定第二窗口与目标子窗口存在重叠区域;在确定目标子窗口的显示内容未被第二窗口的显示内容遮挡的情况下,则可以确定第二窗口与目标子窗口不存在重叠区域。In some implementations, it can be determined whether the display content in the target sub-window is blocked by the display content of the second window. Wherein, when it is determined that the display content in the target sub-window is blocked by the display content of the second window, it can be determined that there is an overlapping area between the second window and the target sub-window; when it is determined that the display content of the target sub-window is not blocked by the second window When the display content is blocked, it can be determined that there is no overlapping area between the second window and the target sub-window.
其中,在确定该第二窗口与目标子窗口存在重叠区域的情况下,则可以基于该重叠区域,截取该第二窗口内的显示内容和目标子窗口内的显示内容。作为一种可实施的方式,在确定该第二窗口与目标子窗口存在重叠区域的情况下,则可以获取该重叠区域的大小,基于该重叠区域的大小,截取该第二窗口内的显示内容和目标子窗口内的显示内容。作为又一种可实施的方式,在确定该第二窗口与目标子窗口存在重叠区域的情况下,则可以获取该重叠区域与第二窗口的占比,基于该占比,截取该第二窗口内的显示内容和目标子窗口内的显示内容等,在此不做限定。Wherein, if it is determined that there is an overlapping area between the second window and the target sub-window, the display content in the second window and the display content in the target sub-window can be intercepted based on the overlapping area. As an implementable method, when it is determined that there is an overlapping area between the second window and the target sub-window, the size of the overlapping area can be obtained, and based on the size of the overlapping area, the display content in the second window is intercepted and the display content within the target subwindow. As another implementable method, when it is determined that there is an overlapping area between the second window and the target sub-window, the proportion of the overlapping area and the second window can be obtained, and based on the proportion, the second window is intercepted The display content within and the display content within the target sub-window are not limited here.
请参阅图12,图12示出了本申请的图11所示的截屏方法的步骤S241的流程示意图。下面将针对图12所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 12 , which is a schematic flowchart of step S241 of the screenshot method shown in FIG. 11 of the present application. The process shown in Figure 12 will be described in detail below. The method may specifically include the following steps:
步骤S2411:若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则获取所述第二窗口位于所述目标子窗口内的区域与所述第二窗口的区域之间的比例。Step S2411: If it is determined based on the second position relationship that the second window and the target sub-window have an overlapping area, obtain the area between the second window located in the target sub-window and the second window. The ratio between regions.
在本实施例中,在确定该第二窗口与目标子窗口存在重叠区域的情况下,则可以获取该第二窗口位于该目标子窗口内的区域与第二窗口的区域之间的比例。例如,假设该第二窗口位于该目标子窗口内的区域为S1,该第二窗口的区域为S2,则该第二窗口位于该目标子窗口内的区域与第二窗口的区域之间的比例为:S1/S2。In this embodiment, when it is determined that there is an overlapping area between the second window and the target sub-window, the ratio between the area of the second window within the target sub-window and the area of the second window can be obtained. For example, assuming that the area of the second window located within the target sub-window is S1 and the area of the second window is S2, then the ratio between the area of the second window located within the target sub-window and the area of the second window For: S1/S2.
在一些实施方式中,在建立有坐标系的情况下,则可以获取该第二窗口在该坐标系下的横坐标长度和纵坐标长度,基于该第二窗口在该坐标系下的横坐标长度和纵坐标长度,确定该第二窗口在该坐标系下的区域大小;另外,可以获取该重叠区域在该坐标系下的横坐标长度和纵坐标长度,基于该重叠区域在该坐标系下的横坐标长度和纵坐标长度,确定该重叠区域在该坐标系下的区域大小。基于此,可以基于该第二窗口在该坐标系下的区域大小和重叠区域在该坐标系下的区域大小,确定第二窗口位于目标子窗口内的区域与第二窗口的区域之间的比例。In some embodiments, when a coordinate system is established, the abscissa length and ordinate length of the second window under the coordinate system can be obtained based on the abscissa length of the second window under the coordinate system. and the ordinate length to determine the area size of the second window under the coordinate system; in addition, the abscissa length and ordinate length of the overlapping area under the coordinate system can be obtained, based on the length of the overlapping area under the coordinate system The length of the abscissa and the length of the ordinate determine the size of the overlapping area in this coordinate system. Based on this, the ratio between the area of the second window within the target sub-window and the area of the second window can be determined based on the area size of the second window under the coordinate system and the area size of the overlapping area under the coordinate system. .
步骤S2412:基于所述比例,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。Step S2412: Based on the ratio, intercept the display content in the second window and the display content in the target sub-window.
在本实施例中,在获得该第二窗口位于目标子窗口内的区域与第二窗口的区域之间的比例的情况下,则可以基于该比例,截取该第二窗口内的显示和目标子窗口内的显示内容。其中,比例不同,则截取的显示内容可以不同。In this embodiment, when the ratio between the area of the second window located in the target sub-window and the area of the second window is obtained, the display in the second window and the target sub-window can be intercepted based on the ratio. The content displayed in the window. Among them, if the ratio is different, the intercepted display content can be different.
请参阅图13,图13示出了本申请的图12所示的截屏方法的步骤S2412的流程示意图。下面将针对图13所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 13 , which is a schematic flowchart of step S2412 of the screenshot method shown in FIG. 12 of the present application. The process shown in Figure 13 will be described in detail below. The method may specifically include the following steps:
步骤S24121:若所述比例大于第一比例阈值,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。Step S24121: If the ratio is greater than the first ratio threshold, intercept all the display content in the second window and the display content in the target sub-window that is not covered by the second window.
在一些实施方式中,电子设备可以预先设置并存储有第一比例阈值和第二比例阈值,其中,该第一比例阈值大于第二比例阈值。该第一比例阈值用于作为该第二窗口位于该目标子窗口内的区域与第二窗口的区域之间的比例的判断依据,且该第二比例阈值用于作为该第二窗口位于该目标子窗口内的区域与第二窗口的区域之间的比例的判断依据。因此,在本实施例中,在获得该比例的情况下,则可以分别将该比例与该第一比例阈值和第二比例阈值进行比较,以确定该比例与第一比例阈值和第二比例阈值的大小关系。 In some implementations, the electronic device may be preset and stored with a first proportion threshold and a second proportion threshold, wherein the first proportion threshold is greater than the second proportion threshold. The first ratio threshold is used as a basis for judging the ratio between the area of the second window located within the target sub-window and the area of the second window, and the second ratio threshold is used as a basis for determining the ratio of the second window located within the target sub-window. The basis for judging the ratio between the area within the sub-window and the area of the second window. Therefore, in this embodiment, when the ratio is obtained, the ratio can be compared with the first ratio threshold and the second ratio threshold respectively to determine whether the ratio is consistent with the first ratio threshold and the second ratio threshold. size relationship.
在一些实施方式中,若该比例大于第一比例阈值,则可以确定该第二窗口位于目标子窗口内的区域的占比较高,即确定该第二窗口的大部分区域均位于该目标子窗口内,此时,可以认为用户在截屏时,有较大可能期望截取该第二窗口内的全部显示内容,则可以截取该第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容。In some implementations, if the ratio is greater than the first ratio threshold, it can be determined that the proportion of the area of the second window located within the target sub-window is relatively high, that is, it is determined that most of the area of the second window is located in the target sub-window. At this time, it can be considered that when taking a screenshot, the user is more likely to expect to capture all the displayed content in the second window, then all the displayed content in the second window and the target sub-window not included in the second window can be captured Overlay display content.
作为一种可实施的方式,由于第二窗口仍有一部分区域未位于该目标子窗口内,因此,在确定该比例大于第一比例的情况下,则可以控制第二窗口自动朝向目标子窗口的方向移动,并在确定该第二窗口移动至完全位于该目标子窗口内时,则可以截取该第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容。As an implementable method, since there is still a part of the second window that is not located within the target sub-window, when it is determined that the ratio is greater than the first ratio, the second window can be controlled to automatically move toward the target sub-window. direction, and when it is determined that the second window has moved completely within the target sub-window, all display content in the second window and display content in the target sub-window that is not covered by the second window can be intercepted.
作为又一种可实施的方式,由于第二窗口仍有一部分区域未位于该目标子窗口内,因此,在确定该比例大于第一比例的情况下,则可以按比例缩小该第二窗口,并在确定该第二窗口缩小至完全位于该目标子窗口内时,则可以截取该第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容。As another implementable method, since there is still a part of the area of the second window that is not located within the target sub-window, if it is determined that the ratio is greater than the first ratio, the second window can be reduced proportionally, and When it is determined that the second window is reduced to be completely located within the target sub-window, all display content in the second window and display content in the target sub-window that is not covered by the second window can be intercepted.
作为再一种可实施的方式,由于第二窗口仍有一部分区域未位于该目标子窗口内,因此,在确定该比例大于第一比例的情况下,则可以保持第二窗口的显示位置和显示大小不变,并按比例缩小该第二窗口内的显示内容,并在确定该第二窗口内的显示内容缩小至完全位于该目标子窗口内时,则可以截取该第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容。As another implementable method, since there is still a part of the second window that is not located within the target sub-window, if it is determined that the ratio is greater than the first ratio, the display position and display of the second window can be maintained. The size remains unchanged, and the displayed content in the second window is reduced proportionally, and when it is determined that the displayed content in the second window is reduced to completely within the target sub-window, all the displayed content in the second window can be intercepted Content and display content within the target subwindow that is not covered by the second window.
请参阅图14,图14示出了本申请的图13所示的截屏方法的步骤S24121的流程示意图。下面将针对图14所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 14 , which is a schematic flowchart of step S24121 of the screenshot method shown in FIG. 13 of the present application. The process shown in Figure 14 will be described in detail below. The method may specifically include the following steps:
步骤S241211:若所述比例大于所述第一比例阈值,则将所述第二窗口按比例缩小至与所述重叠区域的大小一致。Step S241211: If the ratio is greater than the first ratio threshold, scale the second window to be consistent with the size of the overlapping area.
在一些实施方式中,在确定该比例大于第一比例阈值的情况下,则可以将第二窗口按比例缩小至与重叠区域的大小一致。例如,假设第二窗口的区域的大小为S1,重叠区域的大小为S2,则可以将第二窗口的区域大小按比例从S1缩小为S2。可以理解的是,通过上述方式,则第二窗口的全部显示内容均可以位于该目标子窗口内,且第二窗口对于目标子窗口的覆盖可以保持不变。In some implementations, if it is determined that the ratio is greater than the first ratio threshold, the second window may be scaled down to be consistent with the size of the overlapping area. For example, assuming that the size of the area of the second window is S1 and the size of the overlapping area is S2, the size of the area of the second window can be reduced proportionally from S1 to S2. It can be understood that, through the above method, all the display content of the second window can be located in the target sub-window, and the coverage of the target sub-window by the second window can remain unchanged.
步骤S241212:截取按比例缩小后的所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。Step S241212: intercept all the displayed content in the second window after scaling down and the displayed content in the target sub-window that is not covered by the second window.
在一些实施方式中,在将第二窗口按比例缩小至与重叠区域的大小一致的情况下,则可以截取按比例缩小后的第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容,以保证所截取的第二窗口内的显示内容的完整性,以及避免对所截取的目标子窗口内的显示内容的影响。In some implementations, when the second window is scaled down to be consistent with the size of the overlapping area, all the displayed content in the scaled-down second window and the target sub-window that are not displayed in the second window can be intercepted. The display content covered by the window is to ensure the integrity of the displayed content in the intercepted second window and avoid impact on the displayed content in the intercepted target sub-window.
步骤S24122:若所述比例大于第二比例阈值且小于或等于所述第一比例阈值,则截取所述第二窗口内覆盖所述目标子窗口的显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。Step S24122: If the proportion is greater than the second proportion threshold and less than or equal to the first proportion threshold, intercept the display content covering the target sub-window in the second window and the display content in the target sub-window that is not displayed. The display content covered by the second window.
在一些实施方式中,若该比例大于第二比例阈值且小于或等于第一比例阈值,则可以确定该第二窗口位于目标子窗口内的区域占比适中,即确定该第二窗口的部分区域位于目标子窗口内,且部分区域位于目标子窗口外,此时,可以认为用户在截屏时,有较大可能期望截取第二窗口中位于目标子窗口内的显示内容,则可以截取该第二窗口内覆盖该目标子窗口的显示内容,以及该目标窗口内未被第二窗口覆盖的显示内容。In some embodiments, if the ratio is greater than the second ratio threshold and less than or equal to the first ratio threshold, it can be determined that the area of the second window located within the target sub-window has a moderate proportion, that is, a partial area of the second window is determined. is located within the target sub-window, and part of the area is located outside the target sub-window. At this time, it can be considered that when the user takes a screenshot, there is a high possibility that the user expects to intercept the display content located in the target sub-window in the second window, then the second window can be intercepted. The display content of the target sub-window is covered in the window, and the display content of the target window is not covered by the second window.
步骤S24123:若所述比例小于或等于所述第二比例阈值,则截取所述目标子窗口内的显示内容。Step S24123: If the ratio is less than or equal to the second ratio threshold, intercept the display content in the target sub-window.
在一些实施方式中,若该比例小于或等于第二比例阈值,则可以确定该第二窗口位于目标子窗口内的区域的占比较低,即确定该第二窗口的大部分区域均位于该目标子窗口外,此时,可以认为用户在截屏时,有较大的可能期望不截取到该第二窗口内的显示内容,则可以截取该目标子窗口内的显示内容。In some implementations, if the ratio is less than or equal to the second ratio threshold, it can be determined that the proportion of the area of the second window located within the target sub-window is relatively low, that is, it is determined that most of the area of the second window is located within the target sub-window. Outside the sub-window, at this time, it can be considered that when the user takes a screenshot, there is a high possibility that the user does not expect to capture the display content in the second window, so the display content in the target sub-window can be captured.
作为一种可实施的方式,由于第二窗口仍有一部分区域位于该目标子窗口内,因此,在确定该比例小于或等于第二比例的情况下,则可以控制第二窗口自动朝向远离目标子窗口的方向移动,并在确定该第二窗口移动至完全位于该目标子窗口外时,则可以截取该目标子窗口内的显示内容。As an implementable method, since a part of the second window is still located within the target sub-window, when it is determined that the ratio is less than or equal to the second ratio, the second window can be controlled to automatically move away from the target sub-window. The direction of the window moves, and when it is determined that the second window has moved completely outside the target sub-window, the display content in the target sub-window can be intercepted.
作为又一种可实施的方式,由于第二窗口仍有一部分区域位于该目标子窗口内,因此,在确定该比例小于或等于第二比例的情况下,则可以按比例缩小该第二窗口,并在确定该第二窗口缩小至完全不位于该目标子窗口内时,则可以截取该目标子窗口内的显示内容。As another implementable method, since a part of the second window is still located within the target sub-window, if it is determined that the ratio is less than or equal to the second ratio, the second window can be reduced proportionally, And when it is determined that the second window is shrunk to a point that it is not located in the target sub-window at all, the display content in the target sub-window can be intercepted.
作为再一种可实施的方式,由于第二窗口仍有一部分区域位于该目标子窗口内,因此,在确定该比例小于或等于第二比例的情况下,则可以保持第二窗口的显示位置和显示大小不变,并按比例缩小该第二窗口内的显示内容,并在确定该第二窗口内的显示内容缩小至完全不位于该目标子窗口内时,则可以截取该目标子窗口内的显示内容。As yet another implementable method, since a part of the second window is still located within the target sub-window, when it is determined that the ratio is less than or equal to the second ratio, the display position and position of the second window can be maintained. The display size remains unchanged, and the displayed content in the second window is reduced proportionally, and when it is determined that the displayed content in the second window is reduced to not located in the target sub-window at all, then the content in the target sub-window can be intercepted Display content.
步骤S242:若基于所述第二位置关系确定所述第二窗口与所述目标子窗口不存在重叠区域,则截取所述目标子窗口内的显示内容。Step S242: If it is determined based on the second position relationship that there is no overlapping area between the second window and the target sub-window, intercept the display content in the target sub-window.
其中,在确定该第二窗口与目标子窗口不存在重叠区域的情况下,则可以截取该目标子窗口内的显示内容。在一些实施方式中,在基于第一位置确定该多个滑动起始位置均位于目标子窗口内,则表征截取的 对象为目标子窗口内的显示内容以及叠加显示于目标子窗口上的显示内容,而若基于第二位置关系确定该第二窗口与目标子窗口不存在重叠区域,则可以确定该目标子窗口上未叠加显示有其他内容,则可以直接截取该目标子窗口内的显示内容。Wherein, if it is determined that there is no overlapping area between the second window and the target sub-window, the display content in the target sub-window can be intercepted. In some embodiments, after it is determined based on the first position that the plurality of sliding starting positions are all located within the target sub-window, then the intercepted The object is the display content in the target sub-window and the display content superimposed on the target sub-window. If it is determined based on the second position relationship that there is no overlapping area between the second window and the target sub-window, it can be determined that the target sub-window has If there is other content that is not superimposed, you can directly intercept the display content in the target sub-window.
步骤S250:若基于所述第一位置关系确定所述多个滑动起始位置未均位于所述至少两个子窗口中的目标子窗口内,则截取所述第二窗口内的显示内容和所述第一窗口内未被所述第二窗口覆盖的显示内容。Step S250: If it is determined based on the first position relationship that the plurality of sliding starting positions are not located within the target sub-window of the at least two sub-windows, intercept the display content in the second window and the Display content in the first window that is not covered by the second window.
在本实施例中,在获得该第一位置关系的情况下,则可以基于该第一位置关系判断该多个滑动起始位置是否均位于该至少两个子窗口中的任意一个子窗口(目标子窗口)内,若该多个滑动起始位置未均位于该至少两个子窗口中的目标子窗口内,可以认为用户触发进行全截屏,则可以直接截取该第二窗口内的显示内容和第一窗口内未被第二窗口覆盖的显示内容。In this embodiment, when the first position relationship is obtained, it can be determined based on the first position relationship whether the plurality of sliding starting positions are located in any one of the at least two sub-windows (target sub-window). window), if the multiple sliding starting positions are not all located in the target sub-window in the at least two sub-windows, it can be considered that the user triggers a full screen capture, and the display content in the second window and the first screen can be directly captured Display content within the window that is not covered by the second window.
基于上述方式,在多指滑动操作进行截屏的过程中,即使在第一窗口(至少两个子窗口)上还叠加显示有第二窗口,即在分屏视图上层还有悬浮窗/悬浮气泡等非全屏浮窗,仍然以至少两个子窗口(即仍然以下层分屏区域)作为判断标准。即,多指滑动操作的多个滑动起始位置均落在某个分屏区域内,则截取对象与分屏窗口相关,多指滑动操作的多个滑动起始位置未均落在某个分屏区域内,则截取对象与全屏窗口相关。Based on the above method, during the multi-finger sliding operation to take a screenshot, even if a second window is superimposed on the first window (at least two sub-windows), that is, there are floating windows/floating bubbles and other non-standard windows on the upper layer of the split-screen view. Full-screen floating windows still use at least two sub-windows (that is, still the lower-level split-screen area) as the criterion. That is, if the multiple sliding starting positions of the multi-finger sliding operation all fall within a certain split-screen area, the interception object is related to the split-screen window, and the multiple sliding starting positions of the multi-finger sliding operation do not all fall in a certain split-screen area. within the screen area, the interception object is related to the full-screen window.
其中,在基于第一位置关系确定该多个滑动起始位置均位于至少两个子窗口中的目标子窗口内的情况下,则可以将与目标子窗口(分屏)相关的内容作为截取对象,即截取第二窗口位于目标子窗口内的显示内容和目标子窗口内未被第二窗口覆盖的显示内容。在基于第一位置关系确定该多个滑动起始位置未位于目标子窗口内的情况下,则可以将与第一窗口(全屏)相关的内容作为截取对象,即截取第二窗口的显示内容和第一窗口中未被第二窗口覆盖的显示内容。Wherein, if it is determined based on the first position relationship that the plurality of sliding starting positions are located within the target sub-window of at least two sub-windows, then the content related to the target sub-window (split screen) can be used as the interception object, That is, the display content of the second window located in the target sub-window and the display content in the target sub-window not covered by the second window are intercepted. When it is determined based on the first position relationship that the plurality of sliding starting positions are not located within the target sub-window, the content related to the first window (full screen) can be used as the interception object, that is, the display content of the second window and Display content in the first window that is not covered by the second window.
在一些实施方式中,在第一窗口上未叠加显示有第二窗口的情况下,则可以检测到多指滑动操作对应的多个滑动起始位置是否均位于目标子窗口内,若多个滑动起始位置均位于目标子窗口内,则可以截取该目标子窗口内的显示内容,若多个滑动起始位置未均位于目标子窗口内,则可以截取该第一窗口内的显示内容。In some embodiments, when the second window is not superimposed on the first window, it can be detected whether the multiple sliding starting positions corresponding to the multi-finger sliding operation are all located within the target sub-window. If the multiple sliding starting positions are If the starting positions are all located in the target sub-window, the display content in the target sub-window can be intercepted. If the multiple sliding starting positions are not all located in the target sub-window, the display content in the first window can be intercepted.
请参阅图15,图15示出了本申请实施例提供的电子设备的第四种界面示意图。如图15所示,该电子设备显示目标界面,该目标界面包括第一窗口10,其中,该第一窗口10包括第一子窗口11和第二子窗口12。Please refer to FIG. 15 , which shows a fourth interface schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 15 , the electronic device displays a target interface, which includes a first window 10 , where the first window 10 includes a first sub-window 11 and a second sub-window 12 .
请参阅图16,图16示出了本申请实施例提供的电子设备的第三种交互示意图。如图16所示,该电子设备显示目标界面,该目标界面包括第一窗口10,其中,该第一窗口包括第一子窗口11和第二子窗口12。当多个滑动起始位置均位于第一子窗口11内时,则截取该第一子窗口11内的显示内容。Please refer to FIG. 16 , which shows a third interaction diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 16 , the electronic device displays a target interface, which includes a first window 10 , where the first window includes a first sub-window 11 and a second sub-window 12 . When multiple sliding starting positions are located in the first sub-window 11, the display content in the first sub-window 11 is intercepted.
请参阅图17,图17示出了本申请实施例提供的电子设备第五种界面示意图。如图17所示,在通过图16所示的方式截取该第一子窗口11内的显示内容的情况下,则可以获得第三截图50,其中,该第三截图50可以悬浮显示于第一子窗口11上。Please refer to FIG. 17 , which shows a fifth interface schematic diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 17, when the display content in the first sub-window 11 is intercepted in the manner shown in Figure 16, a third screenshot 50 can be obtained, wherein the third screenshot 50 can be displayed in a floating position on the first sub-window 11. on subwindow 11.
请参阅图18,图18示出了本申请实施例提供的电子设备的第四种交互示意图。如图18所示,该电子设备显示目标界面,该目标界面包括第一窗口10,其中,该第一窗口包括第一子窗口11和第二子窗口12。当多个滑动起始位置同时位于第一子窗口11和第二子窗口12内时,则第一窗口10的显示内容。Please refer to FIG. 18 , which shows a fourth interaction schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 18 , the electronic device displays a target interface, which includes a first window 10 , where the first window includes a first sub-window 11 and a second sub-window 12 . When multiple sliding starting positions are located in the first sub-window 11 and the second sub-window 12 at the same time, the display content of the first window 10 will be displayed.
请参阅图19,图19示出了本申请实施例提供的电子设备第六种界面示意图。如图19所示,在通过图18所示的方式截取该第一窗口10的显示内容的情况下,则可以获得第四截图60,其中,该第一截图60可以悬浮显示于第一子窗口11上。Please refer to FIG. 19 , which shows a sixth interface schematic diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 19, when the display content of the first window 10 is captured in the manner shown in Figure 18, a fourth screenshot 60 can be obtained, wherein the first screenshot 60 can be displayed suspended in the first sub-window. 11 on.
本申请一实施例提供的截屏方法,相较于图1所示的截屏方法,本实施例还在基于第一位置关系确定多个滑动起始位置均位于至少两个子窗口中的目标子窗口内时,基于第二位置关系截取第二窗口内的显示内容和目标子窗口内的显示内容,在基于第一位置关系确定多个滑动起始位置未均位于至少两个子窗口中的目标子窗口内时,则截取第二窗口内的显示内容和第一窗口内未被第二窗口覆盖的显示内容,从而根据多个滑动起始位置和子窗口的位置关系,确定区域截屏或者全截屏,以提升截屏的多样性和快捷性。In the screenshot method provided by an embodiment of the present application, compared with the screenshot method shown in Figure 1, this embodiment also determines that multiple sliding starting positions are located within the target sub-window in at least two sub-windows based on the first position relationship. When, based on the second position relationship, the display content in the second window and the display content in the target sub-window are intercepted, and based on the first position relationship, it is determined that the plurality of sliding starting positions are not all located within the target sub-window in at least two sub-windows. When, the display content in the second window and the display content in the first window that are not covered by the second window are intercepted, so as to determine the area screenshot or the full screenshot according to the positional relationship between the multiple sliding starting positions and the sub-windows, so as to improve the screenshot Diversity and speed.
请参阅图20,图20示出了本申请一实施例提供的截屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图20所示的流程进行详细的阐述,所示截屏方法具体可以包括以下步骤:Please refer to FIG. 20 , which shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic equipment. The process shown in Figure 20 will be described in detail below. The screenshot method shown may specifically include the following steps:
步骤S310:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S310: Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
步骤S320:响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。Step S320: In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
步骤S330:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S330: Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship. .
其中,步骤S310-步骤S330的具体描述请参阅步骤S110-步骤S130,在此不再赘述。 For the detailed description of step S310 to step S330, please refer to step S110 to step S130, which will not be described again here.
步骤S340:若基于所述第一位置关系确定所述多个滑动起始位置均位于所述至少两个子窗口中的目标子窗口内,则基于所述第二位置关系,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,其中,所述目标子窗口为所述至少两个子窗口中的任意一个子窗口。Step S340: If it is determined based on the first position relationship that the plurality of sliding starting positions are located within the target sub-window of the at least two sub-windows, intercept the second window based on the second position relationship. and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows.
步骤S350:若基于所述第一位置关系确定所述多个滑动起始位置未均位于所述至少两个子窗口中的目标子窗口内,则截取所述第二窗口内的显示内容和所述第一窗口内未被所述第二窗口覆盖的显示内容。Step S350: If it is determined based on the first position relationship that the plurality of sliding starting positions are not located within the target sub-window of the at least two sub-windows, intercept the display content in the second window and the Display content in the first window that is not covered by the second window.
其中,步骤S340-步骤S350的具体描述请参阅步骤S240-步骤S250,在此不再赘述。For detailed descriptions of steps S340 to S350, please refer to steps S240 to S250, which will not be described again here.
步骤S360:响应于截图编辑指令,显示待编辑截图并在所述待编辑截图上显示裁剪框。Step S360: In response to the screenshot editing instruction, display the screenshot to be edited and display a cropping frame on the screenshot to be edited.
在本实施例中,电子设备可以包括待编辑截图,其中,该待编辑截图可以是通过截取第二窗口内的显示内容和第一窗口内未被第二窗口覆盖的显示内容获得的,也可以是之前获得并存储于电子设备的本地的,还可以是通过网络从服务器获得的,在此不做限定。In this embodiment, the electronic device may include a screenshot to be edited, wherein the screenshot to be edited may be obtained by intercepting the display content in the second window and the display content in the first window that is not covered by the second window, or may be It is previously obtained and stored locally on the electronic device, or it can be obtained from the server through the network, which is not limited here.
于本实施例中,电子设备可以响应于截屏编辑指令,显示待编辑截屏并在待编辑截屏上显示裁剪框,其中,该裁剪框用于裁剪该待编辑截图。在一些实施方式中,电子设备在获得待编辑截图的情况下,可以检测是否接收到截图编辑指令,在确定接收到截图编辑指令的情况下,则可以响应于该截图编辑指令,进入截屏编辑页,并在截屏编辑页显示待编辑截图并在待编辑截图上显示裁剪框。In this embodiment, the electronic device may respond to the screenshot editing instruction by displaying the screenshot to be edited and displaying a cropping box on the screenshot to be edited, where the cropping box is used to crop the screenshot to be edited. In some embodiments, when the electronic device obtains a screenshot to be edited, it can detect whether a screenshot editing instruction is received. If it is determined that a screenshot editing instruction is received, the electronic device can respond to the screenshot editing instruction and enter the screenshot editing page. , and display the screenshot to be edited on the screenshot editing page and display a cropping box on the screenshot to be edited.
请参阅图21,图21示出了本申请实施例提供的电子设备的第七种界面示意图。如图21所示,电子设备可以显示待编辑截图60,并在待编辑截图上显示裁剪框70,其中,待编辑截图60上包括目标分割线61。Please refer to FIG. 21 , which shows a seventh interface schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 21 , the electronic device can display the screenshot 60 to be edited, and display the cropping frame 70 on the screenshot 60 to be edited, where the screenshot 60 to be edited includes a target dividing line 61 .
步骤S370:响应作用于所述裁剪框上的拖动操作或者作用于所述待编辑截图上的拖动操作,改变所述裁剪框在所述待编辑截图上的显示位置。Step S370: In response to the drag operation acting on the cropping frame or the dragging operation acting on the screenshot to be edited, change the display position of the cropping frame on the screenshot to be edited.
在一些实施方式中,在显示待编辑截图和裁剪框的过程中,可以对作用于该待编辑截图和裁剪框上的操作进行检测。作为一种方式,若检测到作用于裁剪框上的拖动操作,则可以基于作用于该裁剪框上的拖动操作,改变裁剪框在待编辑截图上的显示位置。作为又一种方式,若检测到作用于待编辑截图上的拖动操作,则可以基于作用于该待编辑截图上的拖动操作,改变裁剪框在待编辑截图上的显示位置。In some implementations, during the process of displaying the screenshot to be edited and the cropping frame, operations acting on the screenshot to be edited and the cropping frame may be detected. As a method, if a drag operation acting on the cropping frame is detected, the display position of the cropping frame on the screenshot to be edited can be changed based on the dragging operation acting on the cropping frame. As another method, if a drag operation on the screenshot to be edited is detected, the display position of the cropping frame on the screenshot to be edited can be changed based on the drag operation on the screenshot to be edited.
其中,改变裁剪框在待编辑截图上的显示位置可以包括:裁剪框的显示位置逐渐靠近待编辑截图的中间位置、裁剪框的显示位置逐渐靠近待编辑截图的边缘位置等,在此不做限定。Among them, changing the display position of the cropping frame on the screenshot to be edited may include: the display position of the cropping frame gradually approaching the middle position of the screenshot to be edited, the display position of the cropping frame gradually approaching the edge of the screenshot to be edited, etc., which are not limited here. .
在一些实施方式中,改变裁剪框在待编辑截图上的显示位置可以包括:改变待编辑截图的显示位置且保持裁剪框的显示位置不变;或者,改变裁剪框的显示位置且保持待编辑截图的显示位置不变。In some embodiments, changing the display position of the cropping frame on the screenshot to be edited may include: changing the display position of the screenshot to be edited and keeping the display position of the cropping frame unchanged; or, changing the display position of the cropping frame and keeping the screenshot to be edited. The display position remains unchanged.
步骤S380:当所述裁剪框在所述待编辑截图上的显示位置移动至与目标分割线之间的距离小于距离阈值的情况下,控制所述裁剪框自动移动至与所述目标分割线重叠的位置。Step S380: When the display position of the cropping frame on the screenshot to be edited moves to a distance less than a distance threshold from the target dividing line, control the cropping frame to automatically move to overlap with the target dividing line. s position.
在本实施例中,待编辑截图为分屏界面的截图,即,待编辑截图包括至少两个子窗口的显示内容的截图,该至少两个子窗口中的每两个相邻子窗口通过目标分割线分隔。In this embodiment, the screenshot to be edited is a screenshot of a split-screen interface, that is, the screenshot to be edited includes a screenshot of the display content of at least two sub-windows, and every two adjacent sub-windows in the at least two sub-windows pass through the target dividing line. Separate.
在一些实施方式中,电子设备可以预先设置并存储有距离阈值,该距离阈值用于作为该裁剪框与目标分割线之间的距离的判断依据。因此,在本实施例中,在改变裁剪框在待编辑截图上的显示位置的过程中,可以获取该裁剪框与该目标分割线之间的距离,并将该距离与距离阈值进行比较,以判断该距离是否小于距离阈值,其中,在确定该距离小于距离阈值的情况下,表征裁剪框在待编辑截图上的显示位置将要移动至靠近目标分割线,即用户期望将裁剪框移动至目标分割线对待编辑截图进行裁剪,则可以控制裁剪框自动移动至与目标分割线重叠的位置,即裁剪框可以自动吸附至目标分割线上,以提升裁剪的准确性和便利性。In some embodiments, the electronic device may be preset and stored with a distance threshold, which is used as a basis for judging the distance between the cropping frame and the target dividing line. Therefore, in this embodiment, during the process of changing the display position of the cropping frame on the screenshot to be edited, the distance between the cropping frame and the target dividing line can be obtained, and the distance can be compared with a distance threshold to determine Determine whether the distance is less than the distance threshold. If it is determined that the distance is less than the distance threshold, it means that the display position of the cropping frame on the screenshot to be edited will be moved closer to the target segmentation line, that is, the user expects to move the cropping frame to the target segmentation. When cropping the screenshot to be edited, you can control the cropping frame to automatically move to a position that overlaps the target dividing line. That is, the cropping frame can be automatically adsorbed to the target dividing line to improve the accuracy and convenience of cropping.
请参阅图22,图22示出了本申请实施例提供的电子设备的第五种交互示意图。如图22所示,用户可以拖动裁剪框70在待编辑截图60上移动,在裁剪框70的显示位置与待编辑截图60上的目标分割线61的显示位置的距离小于距离阈值的情况下,则该裁剪框70自动吸附到目标分割线61上。Please refer to Figure 22, which shows a fifth interaction schematic diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 22, the user can drag the cropping frame 70 to move on the screenshot 60 to be edited, when the distance between the display position of the cropping frame 70 and the display position of the target dividing line 61 on the screenshot 60 to be edited is less than the distance threshold. , then the cropping frame 70 is automatically attracted to the target dividing line 61 .
步骤S390:在确定所述裁剪框与所述目标分割线重叠的情况下,输出提示信息,其中,所述提示信息用于提示进行裁剪。Step S390: When it is determined that the cropping frame overlaps the target dividing line, output prompt information, where the prompt information is used to prompt for cropping.
在一些实施方式中,在确定该裁剪框与目标分割线重叠的情况下,则可以输出用于提示进行裁剪的提示信息。其中,该提示信息可以包括文本提示信息、振动提示信息、高亮提示信息、语音提示信息等,在此不做限定。In some embodiments, when it is determined that the cropping frame overlaps the target dividing line, prompt information for prompting cropping may be output. The prompt information may include text prompt information, vibration prompt information, highlight prompt information, voice prompt information, etc., which is not limited here.
本申请一实施例提供的截屏方法,相较于图1所示的截屏方法,本实施例还在基于第一位置关系确定多个滑动起始位置均位于至少两个子窗口中的目标子窗口内时,基于第二位置关系截取第二窗口内的显示内容和目标子窗口内的显示内容,在基于第一位置关系确定多个滑动起始位置未均位于至少两个子窗口中的目标子窗口内时,则截取第二窗口内的显示内容和第一窗口内未被第二窗口覆盖的显示内容,响应于截屏编辑指令,显示待编辑截图并在待编辑截图上显示裁剪框,响应作用于裁剪框上的拖动操作或者作用于待编辑截图上的拖动操作,改变裁剪框在待编辑截图上的显示位置,当裁剪框在待编辑截图上额显示位置移动至与目标分割线之间的距离小于距离阈值的情况下,控制裁剪框自动移动至与目标分割线重叠的位置,在确定裁剪框与目标分割线重叠的情况下,输出 用于提示进行裁剪的提示信息,从而针对截图进行裁剪时,在裁剪框快要靠近分屏分割线时,自动吸附到分割线上并输出提示,可以提高裁剪效率和操作感受。In the screenshot method provided by an embodiment of the present application, compared with the screenshot method shown in Figure 1, this embodiment also determines that multiple sliding starting positions are located within the target sub-window in at least two sub-windows based on the first position relationship. When, based on the second position relationship, the display content in the second window and the display content in the target sub-window are intercepted, and based on the first position relationship, it is determined that the plurality of sliding starting positions are not all located within the target sub-window in at least two sub-windows. , then capture the display content in the second window and the display content in the first window that is not covered by the second window, respond to the screenshot editing instruction, display the screenshot to be edited and display a cropping box on the screenshot to be edited, and respond to the cropping effect The drag operation on the frame or the drag operation on the screenshot to be edited changes the display position of the cropping frame on the screenshot to be edited. When the display position of the cropping frame on the screenshot to be edited moves to the distance between it and the target dividing line. When the distance is less than the distance threshold, the cropping frame is controlled to automatically move to a position that overlaps the target dividing line. When it is determined that the cropping frame overlaps the target dividing line, output Prompt information used to prompt for cropping. When cropping a screenshot, when the cropping frame is close to the split-screen dividing line, it will automatically adsorb to the dividing line and output a prompt, which can improve cropping efficiency and operating experience.
请参阅图23,图23示出了本申请一实施例提供的截屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图23所示的流程进行详细的阐述,所述截屏方法具体可以包括以下步骤:Please refer to Figure 23. Figure 23 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic equipment. The process shown in Figure 23 will be described in detail below. The screenshot method may specifically include the following steps:
步骤S410:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S410: Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
步骤S420:响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。Step S420: In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
步骤S430:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S430: Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship. .
步骤S440:基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。Step S440: Based on the first position relationship and the second position relationship, intercept the display content of the target interface.
其中,步骤S410-步骤S440的具体描述请参阅步骤S110-步骤S140,在此不再赘述。For detailed descriptions of steps S410 to S440, please refer to steps S110 to S140, which will not be described again here.
步骤S450:在所述目标界面悬浮显示截取获得的截图。Step S450: Display the captured screenshot in a floating manner on the target interface.
在本实施例中,在基于第一位置关系和第二位置关系,截图目标界面的显示内容获得截图的情况下,则可以在该目标界面悬浮显示截取获得的截图,以供用户对该截取获得的截图进行下一步处理,例如,对该截取获得的截图进行分享、进行长截屏等,在此不做限定。In this embodiment, when a screenshot of the display content of the screenshot target interface is obtained based on the first position relationship and the second position relationship, the screenshot obtained by the interception can be displayed in a floating manner on the target interface for the user to obtain the screenshot. The screenshots are processed in the next step, for example, sharing the screenshots obtained, taking long screenshots, etc., which are not limited here.
本申请一实施例提供的截屏方法,相较于图1所示的截屏方法,本实施例还在截取显示界面的显示内容获得截图后,在目标界面悬浮显示截图获得的截图,可以供用户及时对截图进行处理,提升用户的截图体验。The screenshot method provided by an embodiment of the present application is compared to the screenshot method shown in Figure 1. This embodiment also intercepts the display content of the display interface to obtain the screenshot, and displays the screenshot obtained by floating the screenshot on the target interface, which can be provided to the user in a timely manner. Process screenshots to improve the user's screenshot experience.
请参阅图24,图24示出了本申请一实施例提供的截屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图24所示的流程进行详细的阐述,所述截屏方法具体可以包括以下步骤:Please refer to FIG. 24 , which shows a schematic flowchart of a screenshot method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. The process shown in Figure 24 will be described in detail below. The screenshot method may specifically include the following steps:
步骤S510:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S510: Display a target interface, where the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
其中,步骤S510的具体描述请参阅步骤S110,在此不再赘述。For the specific description of step S510, please refer to step S110, which will not be described again here.
步骤S520:响应作用于所述目标界面的多指滑动操作,获取所述目标界面对应的显示面积。Step S520: In response to the multi-finger sliding operation on the target interface, obtain the display area corresponding to the target interface.
在本实施例中,可以获取该目标界面对应的显示面积。作为一种方式,假设该目标界面显示于电子设备的可显示区域,则可以获取该可显示区域的显示面积,作为该目标界面对应的显示面积。作为又一种方式,在建立有坐标系的情况下,则可以获取该目标界面在该坐标系下对应的坐标区域,基于该目标界面在该坐标系下的对应的坐标区域,确定该目标界面的显示面积。In this embodiment, the display area corresponding to the target interface can be obtained. As a method, assuming that the target interface is displayed in the displayable area of the electronic device, the display area of the displayable area can be obtained as the display area corresponding to the target interface. As another way, when a coordinate system is established, the coordinate area corresponding to the target interface in the coordinate system can be obtained, and the target interface is determined based on the corresponding coordinate area of the target interface in the coordinate system. display area.
步骤S530:在所述显示面积大于面积阈值的情况下,获取所述多指滑动操作对应的多个滑动起始位置。Step S530: If the display area is greater than the area threshold, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation.
在一些实施方式中,电子设备可以预先设置并存储有面积阈值,该面积阈值用于作为该目标界面对应的显示面积的判断依据。因此,在本实施例中,在获得该显示面积的情况下,则可以将该显示面积与面积阈值进行比较,以判断该显示面积是否大于该面积阈值。其中,在确定该显示面积大于面积阈值的情况下,则可以认为该显示界面的显示面积符合分屏截屏的要求,则可以继续执行后续的步骤。In some implementations, the electronic device may have an area threshold set and stored in advance, and the area threshold is used as a basis for judging the display area corresponding to the target interface. Therefore, in this embodiment, when the display area is obtained, the display area can be compared with an area threshold to determine whether the display area is greater than the area threshold. Wherein, if it is determined that the display area is greater than the area threshold, it can be considered that the display area of the display interface meets the requirements for split-screen screenshots, and subsequent steps can be continued.
步骤S540:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S540: Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship. .
步骤S550:基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。Step S550: Based on the first position relationship and the second position relationship, intercept the display content of the target interface.
其中,步骤S540-步骤S550的具体描述请参阅步骤S130-步骤S140,在此不再赘述。For detailed descriptions of steps S540 to S550, please refer to steps S130 to S140, which will not be described again here.
本申请一实施例提供的截屏方法,相较于图1所示的截屏方法,本实施例还在目标界面对应的显示面积大于面积阈值的情况下,支持多指截屏的功能,从而适配大屏的电子设备,提升截屏体验。Compared with the screenshot method shown in Figure 1, the screenshot method provided by an embodiment of the present application also supports the function of multi-finger screenshots when the display area corresponding to the target interface is greater than the area threshold, thereby adapting to large-scale applications. electronic devices with different screens to enhance the screen capture experience.
请参阅图25,图25示出了可用于本申请实施例提供的截屏方法的框架示意图。作为一种示例,本实施例所应用的电子设备可以包括系统手势模块、系统UI框架模块、截屏模块以及系统显示服务模块,且系统手势模块、系统UI框架模块、截屏模块以及系统显示服务模块相互配合,提供各自的能力。其中,系统手势模块提供多指手势判断以及手指坐标点收集能力,系统UI框架模块提供分屏模式下左右窗口的区域大小等信息,截屏模块实现核心分屏截图业务逻辑,系统显示服务模块提供屏幕图像内容给截图模块。Please refer to Figure 25. Figure 25 shows a schematic framework diagram that can be used for the screenshot method provided by the embodiment of the present application. As an example, the electronic device to which this embodiment is applied may include a system gesture module, a system UI framework module, a screenshot module, and a system display service module, and the system gesture module, the system UI framework module, the screenshot module, and the system display service module interact with each other. Cooperate and provide their respective abilities. Among them, the system gesture module provides multi-finger gesture judgment and finger coordinate point collection capabilities, the system UI framework module provides information such as the area size of the left and right windows in split-screen mode, the screenshot module implements the core split-screen screenshot business logic, and the system display service module provides screen Image content to the screenshot module.
在实现时,用户多指触控屏幕并下滑一定距离,系统手势模块检测到该手势动作后,判断其下滑方向以及下滑距离是否满足多指截屏触发条件,若满足,随即调用截屏接口拉起截屏应用进程,并将多个手指落在屏幕上时的多个手指触控点坐标通过截屏接口传给截屏应用。截屏应用启动后,首先检测当前需要截屏的截屏的屏幕,是否符合分屏截图条件,例如,通过读取系统feature来判断当前是否应用在平板设备;通过读取系统属性值来判断当前是否应用在折叠屏设备的大屏展开状态;通过调用系统分屏接口来判断当前是否分屏显示。其中,在确定符合分屏截图的条件的情况下,则 调用系统UI框架提供的接口去读取分屏界面(至少两个子窗口)的坐标信息,再将从手势模块获取的多个滑动起始位置的坐标信息与分屏界面的坐标信息进行对比。若多个滑动起始位置的坐标信息均在分屏界面的其中一个界面的坐标范围内,则触发分屏截图逻辑,否则,则触发全屏截图逻辑。截屏应用判断用户为分屏截屏操作,则将获取的分屏界面的坐标信息传递给显示服务截图接口,获取对应区域的屏幕图像内容,截屏应用再将该图像内容以截屏的形式显示给用户预览。During implementation, the user touches the screen with multiple fingers and slides down a certain distance. After detecting the gesture, the system gesture module determines whether the sliding direction and sliding distance meet the multi-finger screenshot triggering conditions. If so, the screenshot interface is called to take a screenshot. application process, and transmits the coordinates of multiple finger touch points when multiple fingers fall on the screen to the screenshot application through the screenshot interface. After the screenshot application is started, it first detects whether the current screenshot that needs to be taken meets the conditions for split-screen screenshots. For example, by reading the system feature to determine whether it is currently applied to a tablet device; by reading the system attribute value to determine whether it is currently applied to a tablet device. The large screen expansion state of the folding screen device; determine whether the system is currently displayed in split screen by calling the system split screen interface. Among them, if it is determined that the conditions for split-screen screenshots are met, then Call the interface provided by the system UI framework to read the coordinate information of the split-screen interface (at least two sub-windows), and then compare the coordinate information of multiple sliding starting positions obtained from the gesture module with the coordinate information of the split-screen interface. If the coordinate information of multiple sliding starting positions is within the coordinate range of one of the split-screen interfaces, the split-screen screenshot logic is triggered; otherwise, the full-screen screenshot logic is triggered. The screenshot application determines that the user is taking a split-screen screenshot, and then passes the obtained coordinate information of the split-screen interface to the display service screenshot interface to obtain the screen image content of the corresponding area. The screenshot application then displays the image content in the form of a screenshot for the user to preview. .
可以理解的是,在本示例中,对于用户的多指截屏操作是否时分屏手势,在使用多指手势判断时,以用户的多个手指的初始触控点坐标进行判断。后续的用户手指在屏幕上的位移,不影响该判断,即用户的多个手指的初始落点如果在左半屏,下滑触发截屏功能的时候某个手指已经移动到右半屏时,也认为该用户触发了左半屏分屏截图功能。另外,在分屏页面的上方存在非全屏浮窗、气泡、提示框等遮挡时,不影响分屏截屏的逻辑判断,若用户的操作为分屏手势,截取的为当前分屏上的屏幕内容,即所见即所得。It can be understood that in this example, as to whether the user's multi-finger screenshot operation is a split-screen gesture, when using the multi-finger gesture to determine, the initial touch point coordinates of the user's multiple fingers are used to determine. The subsequent displacement of the user's fingers on the screen does not affect this judgment. That is, if the initial landing point of the user's multiple fingers is on the left half of the screen and a finger has moved to the right half of the screen when sliding down to trigger the screenshot function, it will also be considered This user triggered the left half-screen split-screen screenshot function. In addition, when there are non-full-screen floating windows, bubbles, prompt boxes and other obstructions above the split-screen page, it does not affect the logical judgment of split-screen screenshots. If the user's operation is a split-screen gesture, the screen content on the current split-screen will be captured. , that is, what you see is what you get.
请参阅图26,图26示出了本申请一实施例提供的截屏装置的模块框图。该截屏装置200应用于上述电子设备,下面将针对图26所示的框图进行阐述,所述截屏装置200包括:目标界面显示模块210、滑动起始位置获取模块220、位置关系确定模块230以及显示内容截取模块240,其中:Please refer to FIG. 26 , which shows a module block diagram of a screenshot device provided by an embodiment of the present application. The screen capture device 200 is applied to the above-mentioned electronic equipment. The following will be explained with reference to the block diagram shown in FIG. 26. The screen capture device 200 includes: a target interface display module 210, a sliding starting position acquisition module 220, a position relationship determination module 230 and a display module. Content interception module 240, wherein:
目标界面显示模块210,用于显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。The target interface display module 210 is used to display a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
滑动起始位置获取模块220,用于响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。The sliding starting position acquisition module 220 is configured to obtain multiple sliding starting positions corresponding to the multi-finger sliding operation in response to the multi-finger sliding operation on the target interface.
进一步地,所述滑动起始位置获取模块220包括:显示面积获取子模块和滑动起始位置获取子模块,其中:Further, the sliding start position acquisition module 220 includes: a display area acquisition submodule and a sliding start position acquisition submodule, wherein:
显示面积获取子模块,用于响应作用于所述目标界面的多指滑动操作,获取所述目标界面对应的显示面积。The display area acquisition submodule is used to acquire the display area corresponding to the target interface in response to a multi-finger sliding operation acting on the target interface.
滑动起始位置获取子模块,用于在所述显示面积大于面积阈值的情况下,获取所述多指滑动操作对应的多个滑动起始位置。The sliding starting position acquisition submodule is used to acquire multiple sliding starting positions corresponding to the multi-finger sliding operation when the display area is greater than an area threshold.
位置关系确定模块230,用于确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。The position relationship determination module 230 is used to determine the position relationship between the plurality of sliding starting positions and the at least two sub-windows as the first position relationship, and determine the position relationship between the second window and the at least two sub-windows. as a second position relationship.
显示内容截取模块240,用于基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。The display content interception module 240 is configured to intercept the display content of the target interface based on the first position relationship and the second position relationship.
进一步地,所述显示内容截取模块240包括:第一显示内容截取子模块和第二显示内容截取子模块,其中:Further, the display content interception module 240 includes: a first display content interception sub-module and a second display content interception sub-module, wherein:
第一显示内容截取子模块,用于若基于所述第一位置关系确定所述多个滑动起始位置均位于所述至少两个子窗口中的目标子窗口内,则基于所述第二位置关系,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,其中,所述目标子窗口为所述至少两个子窗口中的任意一个子窗口。A first display content interception submodule configured to, if it is determined based on the first position relationship that the plurality of sliding starting positions are located within the target sub-window in the at least two sub-windows, based on the second position relationship , intercept the display content in the second window and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows.
进一步地,所述第一显示内容截取子模块包括:第一显示内容截取单元和第二显示内容截取单元,其中:Further, the first display content interception sub-module includes: a first display content interception unit and a second display content interception unit, wherein:
第一显示内容截取单元,用于若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。A first display content interception unit configured to intercept the display content in the second window based on the overlapping area if it is determined based on the second position relationship that there is an overlapping area between the second window and the target sub-window. and the display content within the target sub-window.
进一步地,所述第一显示内容截取单元包括:比例获取子单元和显示内容截取子单元,其中:Further, the first display content interception unit includes: a proportion acquisition subunit and a display content interception subunit, wherein:
比例获取子单元,用于若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则获取所述第二窗口位于所述目标子窗口内的区域与所述第二窗口的区域之间的比例。a proportion acquisition subunit, configured to acquire an area of the second window located within the target sub-window and the area of the target sub-window if it is determined based on the second position relationship that there is an overlapping area between the second window and the target sub-window. The ratio between the areas of the second window.
显示内容截取子单元,用于基于所述比例,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。The display content interception subunit is used to intercept the display content in the second window and the display content in the target sub-window based on the ratio.
进一步地,所述显示内容截取子单元包括:第一显示内容截取子子模块、第二显示内容截取子子模块以及第三显示内容截取子子模块,其中:Further, the display content interception sub-unit includes: a first display content interception sub-module, a second display content interception sub-module and a third display content interception sub-module, wherein:
第一显示内容截取子子模块,用于若所述比例大于第一比例阈值,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。The first display content interception sub-module is used to intercept all the display content in the second window and the display in the target sub-window that is not covered by the second window if the ratio is greater than the first proportion threshold. content.
进一步地,所述第一显示内容截取子子模块包括:缩小子子单元和显示内容截取子子单元,其中:Further, the first display content interception sub-module includes: a reduction sub-unit and a display content interception sub-unit, wherein:
缩小子子单元,用于若所述比例大于所述第一比例阈值,则将所述第二窗口按比例缩小至与所述重叠区域的大小一致。A reduction sub-subunit, configured to scale down the second window to be consistent with the size of the overlapping area if the scale is greater than the first scale threshold.
显示内容截取子子单元,用于截取按比例缩小后的所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。The display content interception sub-unit is used to intercept all the display content in the second window after scaling down and the display content in the target sub-window that is not covered by the second window.
第二显示内容截取子子模块,用于若所述比例大于第二比例阈值且小于或等于所述第一比例阈值,则截取所述第二窗口内覆盖所述目标子窗口的显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示 内容。The second display content interception sub-module is used to intercept the display content covering the target sub-window in the second window and all the contents if the proportion is greater than the second proportion threshold and less than or equal to the first proportion threshold. The display within the target sub-window that is not covered by the second window content.
第三显示内容截取子子模块,用于若所述比例小于或等于所述第二比例阈值,则截取所述目标子窗口内的显示内容。The third display content interception sub-module is used to intercept the display content in the target sub-window if the proportion is less than or equal to the second proportion threshold.
第二显示内容截取单元,用于若基于所述第二位置关系确定所述第二窗口与所述目标子窗口不存在重叠区域,则截取所述目标子窗口内的显示内容。The second display content interception unit is configured to intercept the display content in the target sub-window if it is determined based on the second position relationship that there is no overlapping area between the second window and the target sub-window.
第二显示内容截取子模块,用于若基于所述第一位置关系确定所述多个滑动起始位置未均位于所述至少两个子窗口中的目标子窗口内,则截取所述第二窗口内的显示内容和所述第一窗口内未被所述第二窗口覆盖的显示内容。The second display content interception sub-module is used to intercept the second window if it is determined based on the first position relationship that the plurality of sliding starting positions are not all located within the target sub-window in the at least two sub-windows. The display content within the first window and the display content within the first window that is not covered by the second window.
进一步地,所述显示内容截取模块240还包括:裁剪框显示子模块、显示位置改变子模块以及移动控制子模块,其中:Further, the display content interception module 240 also includes: a cropping frame display sub-module, a display position changing sub-module and a movement control sub-module, wherein:
裁剪框显示子模块,用于响应于截图编辑指令,显示待编辑截图并在所述待编辑截图上显示裁剪框。The cropping box display submodule is used to respond to the screenshot editing instruction, display the screenshot to be edited, and display the cropping box on the screenshot to be edited.
显示位置改变子模块,用于响应作用于所述裁剪框上的拖动操作或者作用于所述待编辑截图上的拖动操作,改变所述裁剪框在所述待编辑截图上的显示位置。The display position changing submodule is configured to change the display position of the cropping frame on the screenshot to be edited in response to a drag operation acting on the cropping frame or a dragging operation acting on the screenshot to be edited.
移动控制子模块,用于当所述裁剪框在所述待编辑截图上的显示位置移动至与目标分割线之间的距离小于距离阈值的情况下,控制所述裁剪框自动移动至与所述目标分割线重叠的位置。A movement control submodule, configured to control the automatic movement of the cropping frame to the target dividing line when the display position of the cropping frame on the screenshot to be edited moves to a distance less than a distance threshold. The position where the target dividing lines overlap.
进一步地,所述显示内容截取模块240还包括:Further, the display content interception module 240 also includes:
提示信息输出子模块,用于在确定所述裁剪框与所述目标分割线重叠的情况下,输出提示信息,其中,所述提示信息用于提示进行裁剪。A prompt information output submodule is configured to output prompt information when it is determined that the cropping frame overlaps the target dividing line, where the prompt information is used to prompt for cropping.
进一步地,所述截屏装置200还包括:Further, the screen capture device 200 also includes:
截图显示模块,用于在所述目标界面悬浮显示截取获得的截图。A screenshot display module is used to display the screenshot obtained by floating on the target interface.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and modules can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, 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 function modules.
请参阅图27,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 27 , which shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 may be a smart phone, a tablet computer, an e-book, or other electronic device capable of running applications. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be Or multiple processors 110 execute, and one or more programs are configured to execute the method as described in the foregoing method embodiments.
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Various functions and processing data of the electronic device 100 . Optionally, the processor 110 may use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc. Among them, the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented solely through a communication chip.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc. The storage data area can also store data created during use of the electronic device 100 (such as phone book, audio and video data, chat record data), etc.
请参阅图28,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to Figure 28, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 300, and the program code can be called by the processor to execute the method described in the above method embodiment.
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中 读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。Computer-readable storage medium 300 may be electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for the program code 310 that performs any method steps in the above-mentioned methods. These program codes may be obtained from one or more computer program products Read from or write to the one or more computer program products. Program code 310 may, for example, be compressed in a suitable form.
综上所述,本申请实施例提供的截屏方法、装置、电子设备以及存储介质,显示目标界面,其中,该目标界面包括第一窗口和叠加显示于第一窗口上的第二窗口,该第一窗口划分为至少两个子窗口,响应作用于目标界面的多指滑动操作,获取多指滑动操作对应的多个滑动起始位置,确定多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系,并确定第二窗口与至少两个子窗口的位置关系作为第二位置关系,基于第一位置关系和第二位置关系,截取目标界面的显示内容,从而通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。To sum up, the screenshot method, device, electronic device and storage medium provided by the embodiments of the present application display a target interface, wherein the target interface includes a first window and a second window superimposed on the first window. The third window A window is divided into at least two sub-windows, in response to a multi-finger sliding operation acting on the target interface, multiple sliding starting positions corresponding to the multi-finger sliding operation are obtained, and the positional relationship between the multiple sliding starting positions and the at least two sub-windows is determined as The first positional relationship is determined, and the positional relationship between the second window and at least two sub-windows is determined as the second positional relationship. Based on the first positional relationship and the second positional relationship, the display content of the target interface is intercepted, so that the display content of the target interface is intercepted based on the multi-finger sliding operation. Multiple sliding starting positions can be used to determine the screenshot object to take screenshots without tedious cropping and dragging, and there is no need to worry about floating window coverage, which improves the speed and accuracy of screenshots.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (20)

  1. 一种截屏方法,其特征在于,应用于电子设备,所述方法包括:A method for taking screenshots, characterized in that it is applied to electronic devices, and the method includes:
    显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口;Display a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows;
    响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置;In response to a multi-finger sliding operation acting on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation;
    确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系;Determine the positional relationship between the plurality of sliding starting positions and the at least two sub-windows as the first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship;
    基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。Based on the first position relationship and the second position relationship, the display content of the target interface is intercepted.
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容,包括:The method according to claim 1, characterized in that, based on the first position relationship and the second position relationship, intercepting the display content of the target interface includes:
    若基于所述第一位置关系确定所述多个滑动起始位置均位于所述至少两个子窗口中的目标子窗口内,则基于所述第二位置关系,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,其中,所述目标子窗口为所述至少两个子窗口中的任意一个子窗口;或者If it is determined based on the first position relationship that the plurality of sliding starting positions are located in the target sub-window of the at least two sub-windows, then based on the second position relationship, intercept the display in the second window content and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows; or
    若基于所述第一位置关系确定所述多个滑动起始位置未均位于所述至少两个子窗口中的目标子窗口内,则截取所述第二窗口内的显示内容和所述第一窗口内未被所述第二窗口覆盖的显示内容。If it is determined based on the first position relationship that the plurality of sliding starting positions are not all located within the target sub-window in the at least two sub-windows, intercept the display content in the second window and the first window display content not covered by the second window.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述第二位置关系,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,包括:The method according to claim 2, characterized in that, based on the second position relationship, intercepting the display content in the second window and the display content in the target sub-window includes:
    若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容;或者If it is determined based on the second position relationship that there is an overlapping area between the second window and the target sub-window, then based on the overlapping area, intercept the display content in the second window and the display in the target sub-window. content; or
    若基于所述第二位置关系确定所述第二窗口与所述目标子窗口不存在重叠区域,则截取所述目标子窗口内的显示内容。If it is determined based on the second position relationship that there is no overlapping area between the second window and the target sub-window, the display content in the target sub-window is intercepted.
  4. 根据权利要求3所述的方法,其特征在于,所述若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,包括:The method according to claim 3, characterized in that if it is determined based on the second position relationship that the second window and the target sub-window have an overlapping area, then based on the overlapping area, intercept the first The display content in the second window and the display content in the target sub-window include:
    若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则获取所述重叠区域的大小;If it is determined based on the second position relationship that there is an overlapping area between the second window and the target sub-window, obtain the size of the overlapping area;
    基于所述大小,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。Based on the size, the display content in the second window and the display content in the target sub-window are intercepted.
  5. 根据权利要求3所述的方法,其特征在于,所述若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,包括:The method according to claim 3, characterized in that if it is determined based on the second position relationship that the second window and the target sub-window have an overlapping area, then based on the overlapping area, intercept the first The display content in the second window and the display content in the target sub-window include:
    若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则获取所述第二窗口位于所述目标子窗口内的区域与所述第二窗口的区域之间的比例;If it is determined based on the second position relationship that there is an overlapping area between the second window and the target sub-window, obtain the area between the second window located within the target sub-window and the area of the second window. proportion;
    基于所述比例,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。Based on the ratio, the display content in the second window and the display content in the target sub-window are intercepted.
  6. 根据权利要求5所述的方法,其特征在于,所述基于所述比例,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,包括:The method according to claim 5, characterized in that, based on the ratio, intercepting the display content in the second window and the display content in the target sub-window includes:
    若所述比例大于第一比例阈值,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容;If the ratio is greater than the first ratio threshold, intercept all the display content in the second window and the display content in the target sub-window that is not covered by the second window;
    若所述比例大于第二比例阈值且小于或等于所述第一比例阈值,则截取所述第二窗口内覆盖所述目标子窗口的显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容;或者If the proportion is greater than the second proportion threshold and less than or equal to the first proportion threshold, intercept the display content covering the target sub-window in the second window and the display content in the target sub-window not covered by the second proportion. The display content covered by the window; or
    若所述比例小于或等于所述第二比例阈值,则截取所述目标子窗口内的显示内容。If the ratio is less than or equal to the second ratio threshold, the display content in the target sub-window is intercepted.
  7. 根据权利要求6所述的方法,其特征在于,所述若所述比例大于第一比例阈值,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容,包括:The method according to claim 6, characterized in that if the ratio is greater than a first ratio threshold, all display content in the second window and all display contents in the target sub-window that are not covered by the second ratio are intercepted. The displayed content covered by the window includes:
    若所述比例大于所述第一比例阈值,则将所述第二窗口按比例缩小至与所述重叠区域的大小一致;If the ratio is greater than the first ratio threshold, the second window is scaled down to be consistent with the size of the overlapping area;
    截取按比例缩小后的所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。All displayed content in the second window that has been scaled down and the displayed content in the target sub-window that is not covered by the second window are intercepted.
  8. 根据权利要求6所述的方法,其特征在于,所述若所述比例大于第一比例阈值,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容,包括:The method according to claim 6, characterized in that if the ratio is greater than a first ratio threshold, all display content in the second window and all display contents in the target sub-window that are not displayed by the second ratio are intercepted. The displayed content covered by the window includes:
    若所述比例大于所述第一比例阈值,则控制所述第二窗口朝向所述目标子窗口的方向移动;If the ratio is greater than the first ratio threshold, control the second window to move in the direction of the target sub-window;
    在确定所述第二窗口移动至完全位于所述目标子窗口内的情况下,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。When it is determined that the second window is moved completely within the target sub-window, all display content in the second window and the display content in the target sub-window that is not covered by the second window are intercepted. content.
  9. 根据权利要求6所述的方法,其特征在于,所述若所述比例大于第一比例阈值,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容,包括: The method according to claim 6, characterized in that if the ratio is greater than a first ratio threshold, all display content in the second window and all display contents in the target sub-window that are not covered by the second ratio are intercepted. The displayed content covered by the window includes:
    若所述比例大于所述第一比例阈值,则按比例缩小所述第二窗口内的显示内容;If the ratio is greater than the first ratio threshold, then proportionally reduce the display content in the second window;
    在确定所述第二窗口内的显示内容缩小至完全位于所述目标子窗口内的情况下,截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。When it is determined that the display content in the second window is reduced to completely within the target sub-window, intercept all the display content in the second window and the target sub-window that is not in the second window. Overlay display content.
  10. 根据权利要求3所述的方法,其特征在于,所述若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,包括:The method according to claim 3, characterized in that if it is determined based on the second position relationship that the second window and the target sub-window have an overlapping area, then based on the overlapping area, intercept the first The display content in the second window and the display content in the target sub-window include:
    若基于所述第二位置关系,确定所述第二窗口对应的坐标区域和所述目标子窗口对应的坐标区域存在相同的坐标区域,则确定所述第二窗口与所述目标子窗口存在所述重叠区域;If it is determined that the coordinate area corresponding to the second window and the coordinate area corresponding to the target sub-window have the same coordinate area based on the second position relationship, then it is determined that the coordinate area corresponding to the second window and the target sub-window has the same coordinate area. The overlapping area;
    基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。Based on the overlapping area, the display content in the second window and the display content in the target sub-window are intercepted.
  11. 根据权利要求3所述的方法,其特征在于,所述若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,包括:The method according to claim 3, characterized in that if it is determined based on the second position relationship that the second window and the target sub-window have an overlapping area, then based on the overlapping area, intercept the first The display content in the second window and the display content in the target sub-window include:
    若基于所述第二位置关系,确定所述目标子窗口内的显示内容被所述第二窗口内的显示内容遮挡,则确定所述第二窗口与所述目标子窗口存在所述重叠区域;If based on the second position relationship, it is determined that the display content in the target sub-window is blocked by the display content in the second window, then it is determined that the overlapping area exists between the second window and the target sub-window;
    基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。Based on the overlapping area, the display content in the second window and the display content in the target sub-window are intercepted.
  12. 根据权利要求2所述的方法,其特征在于,在所述截取所述第二窗口内的显示内容和所述第一窗口内未被所述第二窗口覆盖的显示内容之后,还包括:The method according to claim 2, characterized in that, after intercepting the display content in the second window and the display content in the first window that is not covered by the second window, it further includes:
    响应于截图编辑指令,显示待编辑截图并在所述待编辑截图上显示裁剪框;In response to the screenshot editing instruction, display the screenshot to be edited and display a cropping frame on the screenshot to be edited;
    响应作用于所述裁剪框上的拖动操作或者作用于所述待编辑截图上的拖动操作,改变所述裁剪框在所述待编辑截图上的显示位置;In response to a drag operation acting on the cropping frame or a dragging operation acting on the screenshot to be edited, changing the display position of the cropping frame on the screenshot to be edited;
    当所述裁剪框在所述待编辑截图上的显示位置移动至与目标分割线之间的距离小于距离阈值的情况下,控制所述裁剪框自动移动至与所述目标分割线重叠的位置。When the display position of the cropping frame on the screenshot to be edited moves to a distance less than a distance threshold from the target dividing line, the cropping frame is controlled to automatically move to a position overlapping the target dividing line.
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:The method of claim 12, further comprising:
    在确定所述裁剪框与所述目标分割线重叠的情况下,输出提示信息,其中,所述提示信息用于提示进行裁剪。When it is determined that the cropping frame overlaps the target dividing line, prompt information is output, where the prompt information is used to prompt for cropping.
  14. 根据权利要求13所述的方法,其特征在于,所述提示信息包括文本提示信息、振动提示信息、高亮提示信息以及语音提示信息中的一种或几种的组合。The method according to claim 13, wherein the prompt information includes one or a combination of text prompt information, vibration prompt information, highlight prompt information, and voice prompt information.
  15. 根据权利要求12所述的方法,其特征在于,所述改变所述裁剪框在所述待编辑截图上的显示位置,包括:The method according to claim 12, characterized in that said changing the display position of the cropping frame on the screenshot to be edited includes:
    改变所述待编辑截图的显示位置且保持所述裁剪框的显示位置不变;或者Change the display position of the screenshot to be edited and keep the display position of the cropping frame unchanged; or
    改变所述裁剪框的显示位置且保持所述待编辑截图的显示位置不变。Change the display position of the cropping frame and keep the display position of the screenshot to be edited unchanged.
  16. 根据权利要求1-15任一项所述的方法,其特征在于,在所述基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容之后,还包括:The method according to any one of claims 1 to 15, characterized in that, after intercepting the display content of the target interface based on the first position relationship and the second position relationship, it further includes:
    在所述目标界面悬浮显示截取获得的截图。The screenshot obtained is displayed in a floating manner on the target interface.
  17. 根据权利要求1-15任一项所述的方法,其特征在于,所述响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置,包括:The method according to any one of claims 1 to 15, characterized in that, in response to a multi-finger sliding operation acting on the target interface, multiple sliding starting positions corresponding to the multi-finger sliding operation are obtained, including :
    响应作用于所述目标界面的多指滑动操作,获取所述目标界面对应的显示面积;In response to a multi-finger sliding operation acting on the target interface, obtain the display area corresponding to the target interface;
    在所述显示面积大于面积阈值的情况下,获取所述多指滑动操作对应的多个滑动起始位置。When the display area is greater than the area threshold, multiple sliding starting positions corresponding to the multi-finger sliding operation are obtained.
  18. 一种截屏装置,其特征在于,应用于电子设备,所述装置包括:A screen capture device, characterized in that it is applied to electronic equipment, and the device includes:
    目标界面显示模块,用于显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口;A target interface display module, used to display a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows;
    滑动起始位置获取模块,用于响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置;A sliding starting position acquisition module, configured to respond to a multi-finger sliding operation acting on the target interface and obtain multiple sliding starting positions corresponding to the multi-finger sliding operation;
    位置关系确定模块,用于确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系;a position relationship determination module, configured to determine the position relationship between the plurality of sliding starting positions and the at least two sub-windows as a first position relationship, and determine the position relationship between the second window and the at least two sub-windows as second positional relationship;
    显示内容截取模块,用于基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。A display content interception module is configured to intercept the display content of the target interface based on the first position relationship and the second position relationship.
  19. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-17任一项所述的方法。An electronic device, characterized in that it includes a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes as claimed in the claim The method described in any one of claims 1-17.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。 A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-17 .
PCT/CN2023/096051 2022-07-25 2023-05-24 Screenshot taking method and apparatus, electronic device and storage medium WO2024021813A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210878190.1 2022-07-25
CN202210878190.1A CN115933954A (en) 2022-07-25 2022-07-25 Screen capturing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2024021813A1 true WO2024021813A1 (en) 2024-02-01

Family

ID=86652852

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/096051 WO2024021813A1 (en) 2022-07-25 2023-05-24 Screenshot taking method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN115933954A (en)
WO (1) WO2024021813A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115933954A (en) * 2022-07-25 2023-04-07 Oppo广东移动通信有限公司 Screen capturing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737386A (en) * 2019-09-06 2020-01-31 华为技术有限公司 screen capturing method and related equipment
CN111290675A (en) * 2020-03-02 2020-06-16 Oppo广东移动通信有限公司 Screenshot picture sharing method and device, terminal and storage medium
CN113552986A (en) * 2020-04-07 2021-10-26 华为技术有限公司 Multi-window screen capturing method and device and terminal equipment
CN114779976A (en) * 2022-04-24 2022-07-22 Oppo广东移动通信有限公司 Screen capture method and device, electronic equipment and computer readable medium
CN115933954A (en) * 2022-07-25 2023-04-07 Oppo广东移动通信有限公司 Screen capturing method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737386A (en) * 2019-09-06 2020-01-31 华为技术有限公司 screen capturing method and related equipment
CN111290675A (en) * 2020-03-02 2020-06-16 Oppo广东移动通信有限公司 Screenshot picture sharing method and device, terminal and storage medium
CN113552986A (en) * 2020-04-07 2021-10-26 华为技术有限公司 Multi-window screen capturing method and device and terminal equipment
CN114779976A (en) * 2022-04-24 2022-07-22 Oppo广东移动通信有限公司 Screen capture method and device, electronic equipment and computer readable medium
CN115933954A (en) * 2022-07-25 2023-04-07 Oppo广东移动通信有限公司 Screen capturing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115933954A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN107728901B (en) Interface display method and device and terminal
US10671282B2 (en) Display device including button configured according to displayed windows and control method therefor
US10310730B2 (en) Display device for controlling displaying of a window and method of controlling the same
US10067648B2 (en) User terminal device and method for displaying thereof
US20150227166A1 (en) User terminal device and displaying method thereof
JP5705863B2 (en) Method, system and computer readable storage medium for combining gesture input from a multi-touch screen into a single gesture input
US10747416B2 (en) User terminal device and method for displaying thereof
US10205873B2 (en) Electronic device and method for controlling a touch screen of the electronic device
KR102304178B1 (en) User terminal device and method for displaying thereof
US20120242599A1 (en) Device including plurality of touch screens and screen change method for the device
US11604580B2 (en) Configuration of application execution spaces and sub-spaces for sharing data on a mobile touch screen device
WO2023207145A1 (en) Screenshot capturing method and apparatus, electronic device and computer readable medium
KR20150094481A (en) User terminal device and method for displaying thereof
US10866714B2 (en) User terminal device and method for displaying thereof
WO2021203815A1 (en) Page operation method and apparatus, and terminal and storage medium
WO2016157330A1 (en) Mobile monitoring device, program, and control method
US20150063785A1 (en) Method of overlappingly displaying visual object on video, storage medium, and electronic device
WO2024021813A1 (en) Screenshot taking method and apparatus, electronic device and storage medium
WO2023061280A1 (en) Application program display method and apparatus, and electronic device
EP2778880A2 (en) Method for controlling display function and an electronic device thereof
CN113014987A (en) Screen recording method and device, electronic equipment and storage medium
CN111448534B (en) Terminal device, graphical user interface thereof and control method of graphical user interface
JP2013246658A (en) Display control device and display control method
WO2023241013A1 (en) Interface operation method and apparatus, electronic device, and storage medium
WO2024012102A1 (en) Interface display method and apparatus, electronic device and storage medium

Legal Events

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

Ref document number: 23845027

Country of ref document: EP

Kind code of ref document: A1