CN115145457A - Method and device for scrolling screen capture - Google Patents

Method and device for scrolling screen capture Download PDF

Info

Publication number
CN115145457A
CN115145457A CN202110350586.4A CN202110350586A CN115145457A CN 115145457 A CN115145457 A CN 115145457A CN 202110350586 A CN202110350586 A CN 202110350586A CN 115145457 A CN115145457 A CN 115145457A
Authority
CN
China
Prior art keywords
page
electronic device
image
display
window
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110350586.4A
Other languages
Chinese (zh)
Inventor
段云
唐吴全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110350586.4A priority Critical patent/CN115145457A/en
Priority to PCT/CN2022/083234 priority patent/WO2022206645A1/en
Priority to EP22778827.0A priority patent/EP4296840A1/en
Publication of CN115145457A publication Critical patent/CN115145457A/en
Pending legal-status Critical Current

Links

Images

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/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/0485Scrolling or panning
    • 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/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
    • G06F3/04817Interaction 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 using icons
    • 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/04842Selection of displayed objects or displayed text elements
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Abstract

The application discloses a method for scrolling a screen shot. When the electronic equipment displays the multi-column interface, the operation of triggering the scrolling screen capture by a user can be received, and in response to the operation, the electronic equipment can respectively scroll and screen capture a plurality of display areas simultaneously/sequentially to obtain the column-divided screen capture images of the display areas. The electronic device may compare the lengths of the columnar screenshot images to obtain a long columnar screenshot image and a short columnar screenshot image. And the electronic equipment fills the short subfield screenshot images to be as long as the long subfield screenshot images by taking the length of the long subfield screenshot images as a standard, and splices the short subfield screenshot images together to obtain the screenshot long images. In this way it is possible to obtain, a screen shot image with complete content can be obtained.

Description

Method and device for scrolling screen capture
Technical Field
The application relates to the field of terminals, in particular to a method and a device for scrolling and screen capturing.
Background
Currently, most electronic devices provide a scrolling screen capture function, and a user can obtain a long screen capture image of a current display interface of the electronic device through the scrolling screen capture function. However, when the electronic device performs a scrolling screenshot of the multi-column interface, the multi-column interface may be, for example, interface 10 shown in FIG. 1A. The screenshot image obtained by the electronic device may have a repeated portion, or the electronic device may only obtain an image of a display area (for example, the display area 11 shown in fig. 1A) of the currently displayed multi-column interface.
Disclosure of Invention
The application provides a method and a related device for scrolling screen capture, which can be used for capturing all page contents of a multi-column interface when the multi-column interface is displayed on an electronic device, and obtaining and displaying a long screen capture image. In this way, the electronic device may obtain a long screenshot of all content including the displayed page without duplication, facilitating user screenshot and sharing.
In a first aspect, the present application provides a scrolling screen capture method, including: the electronic device displays a first interface, the first interface including a first scrolling window and a second scrolling window, the first scrolling window displaying a first portion of a first page, the second scrolling window displaying a second portion of a second page.
The electronic device controls the first scrolling window to display the third portion of the first page in response to the first input after receiving the first input for screen capturing. The electronic device controls the second scrolling window to display a fourth portion of the second page.
The electronic device synthesizes and displays a first screen length image, wherein the first screen length image comprises a first part and a third part of a first page and a second part and a fourth part of a second page, and the first part, the second part, the third part and the fourth part are different.
According to the scrolling screen capture method, when the electronic equipment displays the multi-column interface, interface elements of the multi-column interface are recognized, the multi-column interface is divided into a plurality of display areas, scrolling screen capture operation is respectively carried out on each display area, images obtained in each display area are spliced together, and a screen capture long image comprising all contents of all pages in the multi-column interface is obtained. In this way, a full screen shot of the content may be provided to the user.
In one possible implementation, after the electronic device controls the first scrolling window to display the third portion of the first page, the method further includes: the electronic device receives a second input of the user for the first interface. The electronic device controls the second scroll window to display a fourth portion of the second page, and the method specifically includes: after receiving the second input, the electronic device controls the second scroll window to display a fourth portion of the second page in response to the second input. In this way, the electronic device may end the electronic device scrolling other parts of the first page in advance, for example, the fifth part (which is located below the third part), and discard the page content that is not needed by the user.
In a possible implementation manner, the controlling, by the electronic device, the second scrolling window to display a fourth portion of the second page specifically includes: and after the electronic equipment detects that the first scroll window displays the bottommost part of the first page, the electronic equipment controls the second scroll window to display a fourth part of the second page.
In one possible implementation manner, after the electronic device controls the second scroll window to display the fourth portion of the second page, the method further includes: the electronic device receives a third input for the first interface. The electronic equipment synthesizes and displays the first long screen image, and the method specifically comprises the following steps: in response to a third input, the electronic device synthesizes and displays the first screen-length image. In this way, the electronic device may end the electronic device scrolling through other portions of the second page in advance, for example, the sixth portion (which is located below the fourth portion), leaving away the page content that is not needed by the user.
In a possible implementation manner, the electronic device synthesizes and displays the first long-screen image, and specifically includes: and after the electronic equipment detects that the second scroll window displays the bottommost part of the second page, the electronic equipment synthesizes and displays the first long screen image.
In one possible implementation manner, before the electronic device controls the first scrolling window to display the third portion of the first page, the method further includes: the electronic equipment receives a first dragging operation of a user dragging the first page upwards. The electronic device controls the first scroll window to display the third part of the first page, and specifically includes: in response to the first drag operation, the electronic device controls the first scrolling window to display the third portion of the first page.
In one possible implementation, after the electronic device controls the first scrolling window to display the third portion of the first page, the method further includes: the electronic device controls the first scrolling window to display a fifth portion of the first page, the fifth portion being below the third portion in the first page. The first screen shot image further comprises a fifth part of the first page.
In one possible implementation manner, after the electronic device controls the first scroll window to display the third portion of the first page in response to the first drag operation, the method further includes: when the electronic equipment responds to the first dragging operation and controls the duration of the third part of the first page displayed in the first scroll window to be larger than a first preset time threshold, the electronic equipment controls the first scroll window to display the first part of the first page. And the electronic equipment controls the first scrolling window to automatically scroll and display to the third part of the first page.
In a possible implementation manner, the controlling, by the electronic device, the second scrolling window to display a fourth portion of the second page specifically includes: and after receiving the first dragging operation, the electronic equipment controls the second scroll window to display a fourth part of the second page.
In one possible implementation, after the electronic device controls the first scrolling window to display the third portion of the first page, the method further includes: the electronic device controls the first scrolling window to display a fifth portion of the first page, the fifth portion being below the third portion in the first page. The electronic equipment receives a second dragging operation of dragging the first page downwards by the user. In response to the second drag operation, the electronic device controls the first scroll window to display a third portion of the first page.
In one possible implementation manner, after the electronic device controls the first scroll window to display the third portion of the first page in response to the second drag operation, the method further includes: the electronic equipment controls the first scroll window to display the fifth part of the first page, and the first screen-shot image further comprises the fifth part of the first page.
In one possible implementation manner, after the electronic device controls the first scroll window to display the third portion of the first page in response to the second drag operation, the method further includes: and when the electronic equipment responds to the second dragging operation and controls the duration of the first part of the first page displayed by the first scroll window to be greater than a second preset time threshold, the electronic equipment controls the first scroll window to display a fifth part of the first page. And the electronic equipment controls the first scroll window to automatically scroll and display to a seventh part of the first page, wherein the seventh part is below the fifth part in the first page. The first screen shot image further comprises a fifth part of the first page and a seventh part of the first page.
In a possible implementation manner, the controlling, by the electronic device, the second scrolling window to display a fourth portion of the second page specifically includes: after receiving the second dragging operation, the electronic device controls the second scroll window to display a fourth portion of the second page.
In one possible implementation, before the electronic device controls the second scroll window to display the fourth portion of the second page, the method further includes: the electronic equipment receives a third dragging operation of dragging the second page upwards by the user. The electronic device controls the second scroll window to display a fourth part of the second page, and the method specifically includes: in response to the third drag operation, the electronic device controls the second scrolling window to display a fourth portion of the second page.
In one possible implementation, after the electronic device controls the second scroll window to display the fourth portion of the second page, the method further includes: the electronic device controls the second scrolling window to display a sixth portion of the second page, the sixth portion being below the fourth portion in the second page. The first screen shot image further comprises a sixth part of the second page.
In one possible implementation manner, after the electronic device controls the second scroll window to display the fourth portion of the second page in response to the third drag operation, the method further includes: and when the electronic equipment responds to the third dragging operation and controls the second scroll window to display the fourth part of the second page for a time duration longer than a third preset time threshold, the electronic equipment controls the second scroll window to display the second part of the second page. And the electronic equipment controls the second scroll window to automatically scroll and display to the fourth part of the second page.
In a possible implementation manner, the controlling, by the electronic device, the second scrolling window to display a fourth portion of the second page specifically includes: and after the electronic equipment receives the first dragging operation, the electronic equipment synthesizes and displays the first screen-cut long image.
In one possible implementation, after the electronic device controls the second scroll window to display the fourth portion of the second page, the method further includes: the electronic device controls the second scrolling window to display a sixth portion of the second page, the sixth portion being below the fourth portion in the second page. The electronic device receives a fourth drag operation of dragging the second page downward. In response to the fourth drag operation, the electronic device controls the second scroll window to display a fourth portion of the second page.
In one possible implementation manner, after the electronic device controls the second scroll window to display the fourth portion of the second page in response to the second drag operation, the method further includes: and the electronic equipment controls the second scroll window to display the sixth part of the second page, and the first screen-shot image also comprises the sixth part of the second page.
In one possible implementation manner, after the electronic device controls the second scroll window to display the fourth portion of the second page in response to the second drag operation, the method further includes: and when the electronic equipment responds to the second dragging operation and controls the second scroll window to display the second part of the second page for a time duration which is greater than a fourth preset time threshold, the electronic equipment controls the second scroll window to display a sixth part of the second page.
And the electronic equipment controls the second scroll window to automatically scroll and display to an eighth part of the second page, wherein the eighth part is positioned below the sixth part in the second page. The first screen shot long image further comprises a sixth part of the second page and an eighth part of the second page.
In a possible implementation manner, the controlling, by the electronic device, the second scrolling window to display a fourth portion of the second page specifically includes: and after receiving the second dragging operation, the electronic equipment synthesizes and displays the first screen-cut long image.
In a possible implementation manner, after receiving a first input for screen capture, the electronic device controls the first scroll window to display a third portion of the first page, which specifically includes: and the electronic equipment starts to control the first scroll window to scroll and display to the third part of the first page at a preset speed at a first moment after receiving the first input.
The electronic device controls the second scroll window to display a fourth portion of the second page, and the method specifically includes: and the electronic equipment starts to control the second scrolling window to be displayed to the fourth part of the second page in a scrolling manner at a preset speed at a first moment after receiving the first input.
Specifically, the electronic device may control two scrolling windows to scroll and display two pages at the same time. Optionally, the preset speed for controlling the first page to scroll by the electronic device may be the same as or different from the preset speed for controlling the second page to scroll by the electronic device. In this way, the time required for scrolling the screen shot can be reduced, and the screen shot long image can be obtained more quickly.
Optionally, the electronic device may receive an input from a user for the first scrolling window, and stop the first scrolling window from scrolling and displaying the content below the first page. The electronic device may receive user input directed to the second scrolling window, and cease the second scrolling window from scrolling content beneath the second page.
In one possible implementation, after the electronic device displays the third portion of the first page in the first scrolling window and the fourth portion of the second page in the second scrolling window, the method further includes: the electronic device receives a fourth input from the user for the first interface. The electronic equipment synthesizes and displays the first screen-length image, and specifically comprises: in response to a fourth input, the electronic device synthesizes and displays the first screen-length image.
In this way, the electronic device can stop the two scroll windows from scrolling the content below the corresponding page in advance, resulting in a screenshot long image including all the content of the page that has been displayed before the input operation.
In one possible implementation, the method further includes: the electronic device receives a fifth input by the user for the first interface. And the electronic equipment responds to a fifth input and controls and changes the preset speed of the scrolling display of the first scrolling window. Therefore, the electronic equipment can accelerate or decelerate the preset speed, and the time for scrolling the screen shot is saved.
In one possible implementation, the method further includes: in response to a first input, the electronic device intercepts a first portion of a first page displayed in a first scrolling window, resulting in a first image. When the electronic equipment controls the first scroll window to display the third part of the first page, the electronic equipment intercepts the third part of the first page displayed in the first scroll window to obtain a third image. The electronic equipment synthesizes to obtain a first column screenshot image, and the first column screenshot image comprises a first image and a third image. And the electronic equipment intercepts a second part of the second page in the two rolling windows to obtain a second image. And when the electronic equipment controls the first scroll window to display the fourth part of the second page, the electronic equipment intercepts the fourth part of the second page displayed in the second scroll window to obtain a fourth image. And the electronic equipment synthesizes to obtain a second subfield screenshot image, wherein the second subfield screenshot image comprises a second image and a fourth image. The electronic equipment synthesizes and displays the first long screen image, and the method specifically comprises the following steps: the electronic equipment synthesizes the first subfield screenshot image and the second subfield screenshot image to obtain a first subfield long image and displays the first subfield long image.
In a possible implementation manner, the electronic device synthesizes, based on the first subfield screenshot image and the second subfield screenshot image, the first subfield long image, and specifically includes: and the electronic equipment splices the second subfield screenshot image to the first direction of the first subfield screenshot image to obtain a first subfield long image, wherein the second rolling window is in the first direction of the first rolling window.
In a possible implementation manner, the electronic device splices the second subfield screenshot image to the first direction of the first subfield screenshot image to obtain the first long screenshot image, and specifically includes: when the length of the first subfield screenshot image in the second direction is larger than the length of the second subfield screenshot image in the second direction, the electronic device splices the second subfield screenshot image in the first direction of the first subfield screenshot image and splices the preset background image in the first direction of the first subfield screenshot image and the second direction of the second subfield screenshot image.
The first direction is perpendicular to the second direction, the width of the preset background image in the first direction is the same as the width of the second subfield screenshot image in the first direction, and the sum of the length of the preset background image in the second direction and the length of the second subfield screenshot image in the second direction is the same as the length of the first subfield screenshot image in the second direction.
In a possible implementation manner, the splicing, by the electronic device, the second subfield screenshot image to the first direction of the first subfield screenshot image to obtain the first subfield long image specifically includes: when the length of the first subfield screenshot image in the second direction is smaller than the length of the second subfield screenshot image in the second direction, the electronic device splices the second subfield screenshot image in the first direction of the first subfield screenshot image and splices the preset image in the second direction of the first subfield screenshot image and the third direction of the second subfield screenshot image.
The first direction is perpendicular to the second direction, the third direction is opposite to the first direction, the width of the preset background image in the first direction is the same as the width of the first subfield screenshot image in the first direction, and the sum of the length of the preset background image in the second direction and the length of the first subfield screenshot image in the second direction is the same as the length of the second subfield screenshot image in the second direction.
In a possible implementation manner, the presetting of the background image specifically includes: the preset background image may include a solid image or a pattern image, and the pattern of the preset background image may be obtained by cutting from the first split screen image or the second split screen image.
In one possible implementation, the method further includes: the first interface also includes a third scrolling window that displays a ninth portion of the third page. After the electronic device receives the first input for screen capture, the electronic device controls the third scrolling window to display a tenth portion of the third page.
The first screen length image further includes a ninth portion and a tenth portion of the third page, wherein the first portion, the second portion, the third portion, the fourth portion, the ninth portion, and the tenth portion are all different. Similarly, the first interface may also include more scroll windows.
In a second aspect, the present application provides another scrolling method, including: the electronic device displays a second interface. The second interface includes a first display area and a second display area. The first display area displays a fourth page. The second display region includes a fourth scrolling window that displays an eleventh portion of the fifth page.
After the electronic equipment receives a sixth input for screen capture by the user, the electronic equipment captures a fourth page displayed in the first display area to obtain a third subfield screen capture image, and captures an eleventh part of a fifth page displayed in a fourth scroll window to obtain an eleventh image. And the electronic equipment controls the fourth scrolling window to display the twelfth part of the fifth page, and intercepts the twelfth part displayed in the fourth scrolling window to obtain a twelfth image.
The electronic equipment synthesizes to obtain a fourth column screen capture image, and the fourth column screen capture image comprises an eleventh image and a twelfth image. And the electronic equipment splices the third subfield screenshot image and the fourth subfield screenshot image to obtain a second screenshot length image.
In this way, the electronic device may obtain the same screen shot as the displayed page.
In a third aspect, the present application provides an electronic device, comprising: one or more processors, a display screen, one or more memories. Wherein the display screen, the one or more memories, and the one or more processors are coupled. Wherein the one or more memories are configured to store computer program code comprising computer instructions. The computer instructions, when executed by one or more processors, cause an electronic device to perform a scrolling screen capture method in any of the possible implementations of any of the above aspects.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions, and when the computer instructions are executed on an electronic device provided in the present application, the electronic device is caused to perform a scrolling screen capture method in any possible implementation manner of any one of the above aspects.
In a fifth aspect, the present application provides a computer program product, which when run on the above electronic device, causes the electronic device to execute the scrolling screen capture method in any one of the possible implementations of the above aspects.
Drawings
1A-1C illustrate a scrolling scenario provided by an embodiment of the present application;
fig. 2A is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure;
fig. 2B is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present disclosure;
FIG. 3 is a schematic view of an interface provided by an embodiment of the present application;
FIGS. 4A-4L are schematic diagrams of a set of interfaces provided by embodiments of the present application;
FIGS. 5A-5G are schematic views of another set of interfaces provided by embodiments of the present application;
FIGS. 6A-6E are schematic views of another set of interfaces provided by embodiments of the present application;
FIGS. 7A-7D are another set of schematic interfaces provided by embodiments of the present application;
FIGS. 8A-8C are schematic views of another set of interfaces provided by embodiments of the present application;
FIGS. 9A-9B are schematic views of another set of interfaces provided by embodiments of the present application;
FIG. 10 is a flowchart of a scrolling method provided by an embodiment of the present application;
11A-11C are schematic diagrams illustrating the steps of a scrolling method according to an embodiment of the present application;
12A-12B are schematic diagrams illustrating identification steps of a scrolling screen capture method according to an embodiment of the application;
fig. 13 is a schematic diagram illustrating a stitching step of a scrolling screen capture method according to an embodiment of the present application;
FIGS. 14A-14C are schematic diagrams illustrating steps of identifying a fixed bar of a scrolling method according to an embodiment of the present application;
15A-15E are schematic diagrams illustrating the stitching steps of a scrolling method according to an embodiment of the present application;
FIGS. 16A-16C are schematic diagrams illustrating a stitching step of another scrolling method according to an embodiment of the present application;
FIG. 17 is a schematic view of another set of interfaces provided by embodiments of the present application;
FIG. 18 is a schematic view of another set of interfaces provided by embodiments of the present application;
fig. 19 is a flowchart illustrating a scrolling screen capture method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described in detail and clearly with reference to the accompanying drawings. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; the "and/or" in the text is only an association relation describing the association object, and indicates that three relations may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
Wherein the multi-column interface includes at least one scrolling window that displays only a portion of the long page at a time. When the electronic device receives a sliding operation of the user on the scroll window, the electronic device may display another portion of the long page. Other interface elements are also included in the multi-column interface in the first direction of the position of the scroll window. The first direction is a direction perpendicular to the long page scrolling direction. Other interface elements may include non-scrolling display elements and/or other scrolling windows. For example, the setting application interface 10 shown in fig. 1A, the memo application interface 420 shown in fig. 4B, the setting application interface 1700 shown in fig. 17, and the split screen interface 1800 shown in fig. 18 are multi-column interfaces.
Fig. 1A-1C illustrate a scenario of a scrolling screenshot provided by an embodiment of the present application.
Illustratively, the multi-column interface may be the settings application interface 10 as shown in FIG. 1A. As shown in fig. 1A, the setup application interface 10 may include a primary setup bar area 11 (also referred to as a display area 11), a secondary setup bar area 12. The main level setting bar area 11 includes a scroll window 13 therein, and a part of the main setting long page 14 may be displayed in the scroll window 13. The main settings long page 14 includes a plurality of main settings options, such as a user settings option, a WLAN settings option, a bluetooth settings option, a mobile network settings option, a more connections settings option, a desktop and wallpaper settings option, a display and brightness settings option, a sound and vibration settings option, and a notification settings option.
As shown in fig. 1A, only the user setting option, the WLAN setting option, the bluetooth setting option, the mobile network setting option, and the more links setting option are displayed in the currently scrolling window. Among them, desktop and wallpaper setting options, display and brightness setting options, sound and vibration setting options, and notification setting options are not currently displayed in the scroll window 13. The secondary settings bar area 12 includes a plurality of secondary settings options (e.g., flight mode settings options, SIM card management options, etc.).
When the electronic device scrolls the setting application interface 10 shown in fig. 1A for screenshot, the electronic device may control the long page 14 to scroll and screenshot, and when the long page 14 scrolls to the bottom, the electronic device splices the multiple screenshot images into a screenshot long image, where when the electronic device splices the multiple screenshot images, display contents of the secondary setting bar region 12 in the multiple screenshot images are spliced together with splicing of display contents of the scrolling window 13, and display contents of the secondary setting bar region 12 in the screenshot long image are overlapped. As shown in fig. 1B, the screen shot image includes the contents of the repeated secondary setting bar region 12. Repeated content in the screenshot long image is shown in dashed box 20.
When the electronic device scrolls the setting application interface 10 shown in fig. 1A for screen capture, the long page 14 may be controlled to scroll and screen capture, and after the long page 14 has scrolled to the bottom, the electronic device splices multiple screen capture images into a screen capture long image, where when splicing multiple screen capture images, the electronic device first clips the display content of the secondary setting bar region 12 in the multiple screen capture images. The final spliced screenshot image can be seen in fig. 1C. Since the resulting screen shot image includes only the contents of the main-level setting bar region 11, the screen shot image does not display the contents completely.
Accordingly, the embodiment of the application provides a method for scrolling a screen shot. When the electronic equipment displays the multi-column interface, the operation that a user triggers the scrolling screen capture can be received. In response to the operation, the electronic device may scroll and screen-capture the plurality of display areas divided by the actual division lines, respectively, simultaneously/sequentially, to obtain the division screen-capture images of the respective display areas. The electronic device can compare the lengths of the frame-split screen shots to obtain a long frame-split screen shot image and a short frame-split screen shot image. And the electronic equipment fills the short subfield screenshot images to be as long as the long subfield screenshot images by taking the length of the long subfield screenshot images as a standard, and splices the short subfield screenshot images together to obtain the screenshot long images. Therefore, the problem of repeated scrolling screen capture content can be solved, and a screen capture long image with complete content is obtained.
The following describes an electronic device provided in an embodiment of the present application.
The electronic device 100 may be a cell phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone, a personal digital assistant (personal digital assistant, PDA), augmented Reality (AR) devices, virtual Reality (VR) devices, artificial intelligence (intellectual interaction, AI) device, wearable device, vehicle-mounted device, smart home device, and/or smart city device, and the specific type of the electronic device is not particularly limited in the embodiments of the present application.
Fig. 2A shows a schematic structural diagram of the electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide Wireless Local Area Networks (WLANs), such as wireless fidelity (Wi-Fi) networks, bluetooth (BT), solutions for wireless communication such as Global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external nonvolatile memory to extend the storage capability of the electronic device 100. The external nonvolatile memory communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are saved in an external nonvolatile memory.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 810 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a Universal Flash Storage (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into analog audio signals for output, and also used to convert analog audio inputs into digital audio signals.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals.
When the pressure sensor 180A is used to sense a pressure signal, the pressure signal can be converted into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor, and the opening and closing of the flip holster can be detected by the magnetic sensor 180D. The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). A distance sensor 180F for measuring a distance. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen. The ambient light sensor 180L is used to sense the ambient light level. The fingerprint sensor 180H is used to collect a fingerprint. The temperature sensor 180J is used to detect temperature. The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operations may be provided via the display 894. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194. Bone conduction sensor 180M a vibration signal may be acquired. The keys 190 include a power-on key, a volume key, and the like. The motor 198 may generate a vibration cue. Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc. The SIM card interface 195 is used to connect a SIM card.
A schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application is described below.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 100.
Fig. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in FIG. 2B, the application package may include gallery, call, setup, memo, scrolling screen capture, and the like applications.
The scrolling screenshot application can call some general interface functions to control the long page scrolling in the multi-column interface and to capture the picture of the interface currently displayed by the electronic device 100. The scrolling screen capture application can also splice the obtained screen capture pictures to obtain a long screen capture image. The scrolling screenshot application may generate an interface that presents the screenshot long image, including a plurality of controls for editing the screenshot long image.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
The application framework layer may include a window manager, a content provider, a resource manager, a view system, an image stitching module, an interface parsing module, an image filling module, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The interface parsing module may obtain an actual separation line in the multi-column interface currently displayed by the electronic device 100. The interface analysis module can also acquire all interface elements of the interface to obtain a suspected separation line and a rolling window capable of rolling. The interface parsing module may also determine the actual fence line.
The image stitching module may control the scrolling of long pages in the currently displayed interface. The image stitching module can also intercept a screen shot image of the currently displayed interface. The image stitching module can obtain the same area and different areas of the two images by comparing the pixels of the two images. The image stitching module can stitch a plurality of images. Namely, the image stitching module can remove the repeated area from the multiple screen-captured images and then stitch the multiple screen-captured images together to obtain the column-divided screen-captured images. The image screenshot module can also splice the filled screenshot image and the long subfield screenshot image into a screenshot long image.
The image population module can populate a short columnar screenshot image. The image filling module can compare the lengths of the column-divided screen images, wherein the column-divided screen image with the longest length is the long column-divided screen image, and other column-divided screen images are the short column-divided screen images. The image filling module can also calculate the difference value of the lengths of the long column-divided screen capture image and the short column-divided screen capture image to obtain the size of the area to be filled of the short column-divided screen capture image. The image filling module may further generate a preset background image, and the size of the preset background image is the same as the size of the region to be filled. The image filling module can splice a preset background image at the bottom of the short column screenshot image to obtain a filled screenshot image. The image filling module can splice the long column screenshot image and the filling screenshot image to obtain the screenshot long image.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following specifically describes a scrolling screen capture method provided in an embodiment of the present application with reference to an application scenario.
In order to better describe the application scene diagrams of fig. 4A to 4L, the following describes the layout of interface elements of a multi-column interface by taking the forgetting application interface as an example in conjunction with fig. 3.
Illustratively, the multi-column interface may be a memo application interface 300 as shown in FIG. 3. Wherein the actual separation line may separate the scroll window in the multi-column interface from other interface elements in the multi-column interface in the first direction where the scroll window is located. As shown in fig. 3, the memo application interface 300 may include, but is not limited to, a status bar 301, a display area 311, and a display area 312. Wherein the display area 311 and the display area 312 are separated by the actual fencing line 301. Status bar 302 may include, but is not limited to, a network signal identification icon, a time identification icon, a power identification icon, and the like.
The display area 311 may include a scroll window 312 and a fixed bar 313. The fixed bar 313 may include a note icon and a to-do icon, and the like, and the user may switch between the note function and the to-do function through the two icons. The scroll window 312 may display a portion of the contents of the page 314. The page 314 may include a search box, a note list, and a new note control, among others. The electronic device 100 may receive an input operation from a user (e.g., sliding the page 314) and display the content of different portions of the page 314 in the scroll window 312.
The display area 321 may include a scroll window 322 and a fixed bar 323. The fixed bar 323 may include a share icon, a favorites icon, and more icons, among others. The scroll window 322 may display a portion of the contents of the page 324. The page 324 may include a note title, note content, note retention time, etc. The electronic device 100 may receive an input operation from a user (e.g., sliding the long page 324) and display the contents of different portions of the page 324 in the scroll window 322. As shown in fig. 3, the relative positions of the top, bottom, left side, and right side of the interface are identified. These locations may be used to illustrate locations on a touch screen of the electronic device, or locations on an interface displayed by the electronic device. Downward means from top to bottom, upward means from bottom to top, rightward means from left to right, and leftward means from right to left. The description of the position also applies in the description of the subsequent figures.
In some application scenarios, the electronic device 100 may obtain a screenshot long image that includes a full long page when a certain interface is screenshot through a scrolling screenshot application. The electronic apparatus 100 may start performing a scroll screen capture operation on the current interface in response to an input operation (e.g., three fingers sliding down) by the user. The electronic device 100 may sequentially perform a scrolling screen capture operation on the plurality of display regions (e.g., scroll the left long page first, and then scroll the right long page), respectively, to obtain a column-wise screen capture image of each display region. The electronic device 100 may compare the lengths of the frame-split screenshot images to obtain a long frame-split screenshot image and a short frame-split screenshot image. The electronic device 100 may fill the short subfield screenshot image to be as long as the long subfield screenshot image, taking the length of the long subfield screenshot image as an example, to obtain a filled screenshot image. The long-column screenshot image and the fill-in screenshot image are the result images of the display areas of the interface currently displayed by the electronic device 100 (the result image of a display area includes all contents of the long page of the display area). The electronic device 100 may stitch (e.g. stitch left and right) the long-striped screenshot image with the filler screenshot image to obtain a screenshot long image (the screenshot long image is obtained by the electronic device 100 performing a scrolling screenshot operation on the currently displayed interface, the screenshot includes the contents of all the long pages of the currently displayed interface).
Illustratively, as shown in FIG. 4A, the electronic device 100 may display an interface 410 with a home screen, where the interface 410 includes a page with application icons placed therein, and the page includes a plurality of application icons. For example, a weather application icon, a date application icon, a gallery application icon, a memo application icon 411, and the like. Optionally, a status bar including icons such as an electric quantity identification icon may be displayed above the plurality of application icons.
The electronic apparatus 100 may receive an input operation (e.g., a single click) of the memo application icon 411 by the user, and in response to the input operation, the electronic apparatus 100 may display a memo application interface 420 as shown in fig. 4B.
As shown in fig. 4B, the memo application interface 420 may include a display area 421 and a display area 431. The display area 421 may include a scroll window 422 and a fixed bar 423, among other things. The scroll window 422 may scroll through portions of the content of the display page 424. The display area 431 may include a scroll window 432 and a fixed bar 433. The scroll window 432 may scroll through portions of the content of the display page 424. The detailed description of the memo application interface 420 can be found in the above description of the memo application interface 300 in fig. 3, and will not be repeated here.
The electronic apparatus 100 may receive an input operation (e.g., simultaneously pressing a volume "-" key and a power key) by a user, and in response to the input operation, the electronic apparatus 100 may intercept an image of a currently displayed interface of the electronic apparatus 100. Electronic device 100 may also display a hover window 441 on memo application interface 420.
As shown in fig. 4C, electronic device 100 displays a hover window 441 on memo application interface 420, where hover window 441 may include a screenshot image of memo application interface 420 by electronic device 100. When the electronic device 100 receives different input operations of the user for the floating window 441, functions of sharing pictures, editing pictures and scrolling a screen shot can be triggered. For example, when electronic device 100 receives a single-click operation of the user with respect to hover window 441, electronic device 100 may display an interface for editing a screenshot in response to the operation.
Electronic device 100 may receive an input operation (e.g., a slide-down) by the user with respect to hover window 441, in response to which electronic device 100 may display scrolling screenshot 430 as shown in fig. 4E. Optionally, when electronic device 100 receives the input operation, electronic device 100 may control floating window 441 to display the text message "scroll screenshot" (as shown in fig. 4D), the text message may prompt the user that electronic device 100 initiate a scrolling screen capture operation. The electronic device 100 may retrieve the actual dividing line of the memo application interface 420 and scroll the screen shots to the display area 421 and the display area 431 in turn.
Illustratively, as shown in FIG. 4E, the electronic device 100 displays a scrolling screen capture interface 450. The scrolling screenshot 450 includes a prompt 451, a display area 421 and a display area 431. The prompt message 451 may prompt the user to scroll the screen shot or may prompt the user to control the range of the screen shot through a clicking operation, for example, the prompt message 451 may include a prompt word "scrolling the screen shot, clicking the left scroll area may switch to the right scroll area, and clicking the right scroll area again may complete the screen shot".
After receiving an input operation of the user for the hover control 441, the electronic device 100 may intercept an interface displayed on the electronic device 100. Then, the electronic device 100 controls the page 424 to scroll for a preset length each time, and intercepts an interface displayed on the electronic device 100 after the electronic device 100 controls the page 424 to scroll for the preset length each time.
Illustratively, as shown in FIG. 4E, the electronic device 100 may intercept the currently displayed scrolling screen capture interface 450. In the scrolling screenshot 450, a scrolling window 422 displays the beginning of a page 424. That is, the scroll window 422 displays the all notes icon, search box, notes 5 option, notes 4 option, and notes 3 option of the page 424. Thereafter, the electronic device 100 may control the page 424 to scroll upward by a preset length, and the electronic device 100 displays a scrolling screenshot 455 shown in FIG. 4F.
For example, as shown in FIG. 4F, the electronic device 100 may intercept the currently displayed scrolling screenshot 455. In this scrolling screenshot 451, a scrolling window 422 displays a middle portion of the page 424. That is, the scroll window 422 displays the note 4 option, note 3 option, note 2 option, and note 1 option of the page 424. Thereafter, the electronic device 100 may control the page 424 to continue scrolling upward by a preset length.
Optionally, when the electronic device 100 scrolls up in the control page 424, the preset length is larger than the length of the remaining pages of the page 424 that are not displayed in the scroll window. Electronic device 100 may control the bottom edge of page 424 to leave the bottom border of scrolling window 422 and continue to scroll upward until page 424 scrolls a distance equal to a preset length (as shown in fig. 4G, scrolling window 422 displays note 3 option, note 2 option, note 1 option, and bottom blank area), where the preset length is the distance that electronic device 100 controls page 424 to scroll each time. Thereafter, the electronic device 100 controls the page 424 to scroll downward until the bottom edge of the page 424 and the bottom border of the scroll window 422 coincide (as shown in FIG. 4H, the scroll window 422 displays the end portion of the page 424, including the Note 4 option, the Note 3 option, the Note 2 option, and the Note 1 option). The electronic device 100 may intercept the currently displayed scrolling screen shot 465.
When the electronic device 100 detects that the page 424 has scrolled to the bottom, the electronic device 100 stops scrolling the screenshot in the display area 421 and starts scrolling the screenshot in the display area 431.
Illustratively, as shown in FIG. 4I, the electronic device 100 may intercept a scrolling screenshot 470 that is currently displayed by the electronic device 100. In the scrolling screenshot 470, a scrolling window 432 displays the beginning of a page 434. That is, the scroll window 432 displays the note 5 icon, the time stamp, and a portion of the note 5 content of the page 434. Thereafter, the electronic device 100 may control the page 434 to scroll upward by a preset length. The electronic device 100 may control the page 434 to scroll by a preset length each time, and intercept an interface displayed on the electronic device 100 after the electronic device 100 controls the page 434 to scroll by the preset length each time.
Optionally, when the electronic device 100 scrolls up in the control page 434, the preset length is greater than the length of the remaining pages of the page 434 that are not displayed in the scroll window. Electronic device 100 may control the bottom edge of page 434 to leave the bottom border of scrolling window 432 and continue to scroll upward until page 434 is scrolled a distance equal to a preset length, which is the distance that electronic device 100 controls page 434 to scroll each time. Thereafter, the electronic device 100 controls the page 434 to scroll downward (as shown in FIG. 4J, the scrolling window 432 displays the end portion and the bottom blank area of the page 434) until the bottom edge of the page 434 and the bottom border of the scrolling window 432 coincide. The electronic device 100 may intercept the currently displayed interface.
After the operation of the electronic device 100 to control the page 434 to scroll the screen shots is completed, the electronic device 100 may display a scroll completion interface 480 as shown in fig. 4K. Scroll completion interface 460 may include prompt information 461, display area 421, and display area 431. Prompt 461 may prompt the user that electronic device 100 is processing the screenshot, e.g., the prompt may display a prompt text of "splicing 8230;". As shown in fig. 4K, the current scroll window 422 may display a portion of the content at the bottom most in the page 424. The scrolling window 432 may display a portion of the content at the very bottom of the page 434.
The step of displaying the scroll completion interface by the electronic device 100 is optional, and after the electronic device 100 scrolls the display area 431 for screen capture, the electronic device 100 may directly save the obtained screen capture long image to the gallery, or the electronic device 100 may also display a screen capture display interface 490 shown in fig. 4L.
After the electronic device 100 scrolls the display area 431 for screenshot, the electronic device 100 may remove overlapping portions of the multiple screenshot images of the display area 421 and stitch the multiple screenshot images (in the following description of the embodiment of the present application, this process may be briefly described as deduplication stitching, and the implementation steps of the deduplication stitching may be described in detail in fig. 13 below), so as to obtain the frame-by-frame screenshot image 1 of the display area 421. The electronic device 100 deduplicates and splices the multiple screen shots of the display area 431 to obtain a frame-by-frame screen shot image 2 of the display area 431. The electronic device 100 compares the lengths of the frame-divided screen captured image 1 and the frame-divided screen captured image 2, determines the longest image of the two frame-divided screen captured images as a long frame-divided screen captured image, and determines the shorter image of the two frame-divided screen captured images as a short frame-divided screen captured image. The electronic device 100 may stitch the preset background image at the bottom of the short subfield screenshot image to the same length as the long subfield screenshot image to obtain a filled screenshot image (wherein, the step of obtaining the filled screenshot image may be described in detail with reference to fig. 15A to 15D). The electronic device 100 stitches (e.g., left-right stitches) the long-columnar screenshot image and the filler screenshot image to obtain a screenshot long image. The screenshot may include the entire contents of page 424 and page 434 as described above in connection with FIG. 4B. After the electronic device 100 obtains the screenshot length image, the electronic device 100 may display a screenshot presentation interface 490 as shown in fig. 4L.
Illustratively, as shown in FIG. 4L, the electronic device 100 displays a screenshot presentation interface 490. The screenshot presentation interface 490 includes a return control, a back one step control, a front one step control, a delete control, a save control, a bottom action bar 491, a screenshot long image 492, and the like. The bottom operating bar 491 includes pen icons, color icons, thickness icons, share icons, graffiti icons, mosaic icons, eraser icons, and scroll screen shot icons, among others. The electronic apparatus 100 may perform a corresponding operation on the screen shot image 492 in response to the user's operation on the icon provided in the bottom operation bar 491. The screen shot long image 492 is a screen shot long image resulting from the electronic device 100 scrolling the screen shot for the memo application interface.
Optionally, after the electronic device 100 obtains the screenshot long image, the electronic device 100 may not display the screenshot showing interface. The electronic device 100 may directly save the resulting screenshot image to the gallery.
The following describes a method for scrolling a screen shot according to an embodiment of the present application with reference to a specific scenario.
In one possible implementation manner, when the electronic device 100 performs the scroll screenshot on a certain display area of a certain multi-column interface, the electronic device 100 may stop performing the scroll screenshot on the current display area in advance and switch to a next display area to perform the scroll screenshot operation in response to an input operation (e.g., a single click) of the user.
For example, the electronic device 100 may display the scrolling screenshot interface 500 as shown in fig. 5A when controlling the page 424 of the scrolling screenshot interface 455 shown in the previous embodiment of fig. 4F to scroll upward by a preset length.
As shown in fig. 5A, the electronic device 100 may display a scrolling screen capture interface 500. The scrolling screenshot 500 may include a prompt 501, a display area 511, a display area 521, and the like. The display area 511 may include, but is not limited to, a scroll window 512 and a fixed bar 513, and the scroll window 512 may display a portion of the contents of the page 514 (including the note 4 option, note 3 option, note 2 option, and note 1 option of the page 514 in the area of the scroll window 512). The display area 521 may include, but is not limited to, a scroll window 522 and a fixed bar 523, the scroll window 522 may display the beginning of a page 524. The description of the scrolling screenshot 500 can refer to the description of the scrolling screenshot 455 of fig. 4F, which is not described herein again.
The electronic apparatus 100 may detect an input operation (e.g., a single click) to the display region 511 by the user, in response to which the electronic apparatus 100 stops scrolling the display region 511 in advance, and intercept the scrolling screen capture interface 500 currently displayed by the electronic apparatus 100. At the same time, the electronic device 100 may begin scrolling through the display area 521.
Illustratively, as shown in FIG. 5B, the electronic device 100 can display a scrolling screenshot 530 as shown in FIG. 5B. The electronic device 100 can intercept the scrolling screen capture interface 530 currently displayed by the electronic device 100. In the scrolling screenshot 530, a scrolling window 522 displays the beginning of a page 524. That is, the scroll window 522 displays the note 5 icon, the time stamp, and a portion of the note 5 content of the page 524. Thereafter, the electronic device 100 may control the page 524 to scroll up by a preset length. The electronic device 100 controls the page 524 to scroll for a preset length each time, and intercepts an interface displayed on the electronic device 100 after the electronic device 100 controls the page 524 to scroll for the preset length each time.
In one possible implementation, when the electronic device 100 scrolls and captures a screen of a display area of a multi-column interface, the electronic device 100 may stop the scrolling and capturing operation of the currently displayed interface in advance in response to an input operation (e.g., a single click) of a user on the currently displayed interface (e.g., the scrolling and capturing interface 455 shown in fig. 4F), so as to obtain a long-screen-capture image.
In one possible implementation, when the electronic device 100 scrolls and captures a screen of a display area of a multi-column interface, the electronic device 100 may, in response to an input operation (e.g., a single click) by a user for specifying the display area of a current display interface, stop an operation for scrolling and capturing the screen of the currently displayed interface in advance, and perform a scroll and screen capture operation for a scroll window of the specified display area.
In one possible implementation, the electronic device 100 has performed a scrolling screen capture operation on the display area other than the current display area, and when the electronic device 100 detects an input operation (e.g., a single click) by the user, the scrolling screen capture may be stopped and a screen capture long image may be generated.
Illustratively, as shown in FIG. 5C, the electronic device 100 is currently controlling the last long page to scroll. After electronic device 100 controls page 524 as shown in FIG. 5B to scroll upward a distance, electronic device 100 may display a scrolling screenshot 540.
The electronic apparatus 100 may receive an input operation (e.g., a single click) by the user with respect to the display area 511, and in response to the operation, the electronic apparatus 100 may display a scroll completion interface 550 as shown in fig. 5D.
As shown in fig. 5D, the scroll completion interface 550 includes a prompt message 551, a display area 511, a display area 521, and the like. Prompt 551 may prompt the user that electronic device 100 is processing the screenshot, e.g., the prompt may display a prompt text of "splicing 8230;". The scroll window 511 displays a part of the content of the page 514, where the scroll window 512 is displaying when the electronic device 100 receives an input operation from the user with respect to the display area 511. The scrolling window 521 displays a part of the content of the page 524, where the scrolling window 522 is currently displayed when the electronic device 100 receives an input operation from the user with respect to the display area 521.
The step of displaying the scroll completion interface 550 by the electronic device 100 is optional, and after the electronic device 100 scrolls the display area 521 for screen capture, the electronic device 100 may directly store the obtained screen capture long image in a gallery, or the electronic device 100 may also display the screen capture display interface 560 shown in fig. 5E.
After the electronic device 100 receives an input operation of the user for the display area 521, the electronic device 100 may perform de-duplication and stitching on the multiple screenshot images of the display area 511 to obtain the frame-by-frame screenshot image 3 of the display area 511. The electronic device 100 performs de-duplication and splicing on the multiple screenshots in the display area 521 to obtain a column-by-column screenshot image 4 of the display area 521. The electronic apparatus 100 may compare the lengths of the hurdle screen image 3 and the hurdle screen image 4, and determine the longest image of the two hurdle screen images as a long hurdle screen image. And splicing the preset background image at the bottom of the other screenshot images to obtain a filled screenshot image with the same length as the long subfield screenshot image (wherein the step of obtaining the filled screenshot image can be described in detail with reference to fig. 15A to 15D). The electronic device 100 stitches (e.g., stitches left and right) the long-bar screenshot image and the filler screenshot image to obtain a screenshot long image. The screenshot may include portions of the contents of page 514 and page 524 shown in FIG. 5D, discussed above. After the electronic device 100 obtains the screenshot length image, the electronic device 100 may display a screenshot presentation interface 560 as shown in fig. 5E.
Illustratively, as shown in fig. 5E, the electronic device 100 displays a screenshot presentation interface 560. The screenshot presentation interface 560 includes a bottom bar 561, a screenshot 562, and the like. The electronic apparatus 100 can perform a corresponding operation on the screen shot image 562 in response to the user's operation on the icon provided in the bottom operation bar 561. The screen shot image 562 is a screen shot image obtained by the electronic device 100 scrolling the screen shot for the memo application interface. In this way, a screenshot may be obtained that includes all of the page content within the user's selection.
Optionally, after the electronic device 100 obtains the screenshot-length image, the electronic device 100 may not display the screenshot presentation interface. The electronic device 100 may directly save the resulting screenshot image to the gallery.
In a possible implementation manner, when the electronic device 100 performs a scrolling screenshot on a specified display area of a certain multi-column interface, the electronic device 100 may intercept the current display interface of the electronic device 100 and stop the scrolling screenshot on the specified display area in advance in response to an input operation (e.g., sliding down or sliding up) of a user, and switch to a next display area to perform the scrolling screenshot operation. When the electronic device 100 detects that the currently designated display area is the display area of the last scrolling screenshot, the scrolling screenshot operation is stopped.
For example, in the process of scrolling the screenshot by the electronic device 100, after the electronic device 100 receives an operation (e.g., sliding down) from the user, the electronic device 100 may intercept the interface currently displayed by the electronic device 100 to obtain a frame of screenshot image 5. The electronic device 100 may compare the resulting screenshot 5 with the previous screenshot. The electronic device 100 may obtain the same portion of the previous screenshot image as screenshot image 5. The electronic device 100 may stitch together the top of the screenshot 5 and the bottom of the cropped previous screenshot image by cropping off the same portion of the previous screenshot image and the portion of the image below the same portion.
For example, the electronic device 100 may display the scrolling screenshot interface 500 as shown in fig. 5A when controlling the page 424 of the scrolling screenshot interface 455 shown in the previous embodiment of fig. 4F to scroll upward by a preset length.
As shown in fig. 5A, the electronic device 100 may display a scrolling screen capture interface 500. The scrolling screenshot 500 may include a prompt 501, a display area 511, a display area 521, and the like. The display area 511 may include, but is not limited to, a scroll window 512 and a fixed bar 513, and the scroll window 512 may display a portion of the contents of the page 514 (including the note 4 option, note 3 option, note 2 option, and note 1 option of the page 514 in the area of the scroll window 512). The display area 521 may include, but is not limited to, a scroll window 522 and a fixed bar 523, the scroll window 522 may display the beginning of a page 524. The description of the scrolling screenshot 500 can refer to the description of the scrolling screenshot 455 of fig. 4F, which is not described herein again.
The electronic device 100 may detect an input operation (e.g., a slide-up) by the user with respect to the scroll screen capture interface 500, and in response to the input operation, the electronic device 100 displays the scroll screen capture interface 570. The electronic device 100 may stop scrolling the display area 511 in advance and intercept the scrolling screen capture interface 570 currently displayed by the electronic device 100. At the same time, the electronic device 100 may begin scrolling through the display area 521.
Illustratively, as shown in FIG. 5F, the electronic device 100 may display a scrolling screen capture interface 570 as shown in FIG. 5F. The electronic device 100 may intercept the scrolling screen capture interface 570 currently displayed by the electronic device 100. In the scrolling screenshot 570, the scrolling window 512 displays a portion of the contents of the page 514. That is, the scroll window 512 displays the note 5 icon, note 4 icon, note 3 icon, and note 2 icon of the page 514.
The electronic device 100 may intercept the current display interface to obtain a frame of screenshot image. And then controls page 524 to scroll up a preset length. The electronic device 100 controls the page 524 to scroll for a preset length each time, and intercepts an interface displayed on the electronic device 100 after the electronic device 100 controls the page 524 to scroll for the preset length each time.
After electronic device 100 controls page 524 of display area 521 to scroll to the bottom, electronic device 100 may save the obtained screenshot to a gallery, or electronic device 100 may also display screenshot presentation interface 580 shown in fig. 5G.
For example, after the electronic device 100 receives an input operation of the user on the display area 521, the electronic device 100 may de-stitch the multiple screenshot images of the display area 511 to obtain the subfield screenshot image 5 of the display area 511 (since the electronic device 100 receives the operation of the user in the above step, the obtained subfield screenshot image 5 does not include the note 1 icon). The electronic device 100 performs de-duplication and splicing on the multiple screenshots of the display area 521 to obtain the frame-by-frame screenshot image 6 of the display area 521. The electronic apparatus 100 may compare the lengths of the frame-divided screen capture image 5 and the frame-divided screen capture image 6, and determine the image having the longest length of the two frame-divided screen capture images as the long frame-divided screen capture image. And splicing the preset background image at the bottom of the other screenshot images to obtain a filled screenshot image with the same length as the long subfield screenshot image (wherein the step of obtaining the filled screenshot image can be described in detail with reference to fig. 15A to 15D). The electronic device 100 stitches (e.g., stitches left and right) the long-bar screenshot image and the filler screenshot image to obtain a screenshot long image. The screenshot may include portions of the contents of page 514 and page 524 shown in FIG. 5D, discussed above. After the electronic device 100 obtains the screenshot length image, the electronic device 100 may display a screenshot presentation interface 580 as shown in fig. 5G.
Illustratively, as shown in fig. 5G, electronic device 100 displays a screenshot presentation interface 580. The screenshot presentation interface 580 includes a bottom handle bar 581, a screenshot 582, and the like. The electronic device 100 may perform a corresponding operation on the screen shot image 582 in response to a user operation on an icon provided in the bottom operation bar 481. The screen shot length image 582 is a screen shot length image that the electronic device 100 has scrolled through for the memo application interface. The screenshot length image 582 does not include the note 1 icon.
In one possible implementation, when the electronic device 100 scrolls and captures a screen of a designated display area of a multi-column interface, the electronic device 100 may display a part of content of a page of the designated display area in response to an input operation (e.g., sliding up or sliding down) by a user with respect to a current display interface (not limited to the designated display area, such as the scrolling capture interface 455 shown in fig. 4F). The electronic apparatus 100 may continue to perform the operation of scrolling the screen shot with respect to the designated display area until the electronic apparatus 100 controls the page of the designated display area to scroll to the bottom.
Optionally, when the electronic device 100 receives an operation (e.g., a single click) from the user during the page scrolling process of the designated display area controlled by the electronic device 100, the electronic device 100 stops the scrolling screen capturing operation on the designated display area in response to the operation, and switches to the next display area without performing the scrolling screen capturing operation to perform the scrolling screen capturing operation. Or when the electronic device 100 receives an operation (e.g., a single click) by the user, the electronic device 100 stops the scrolling screen capture operation on the interface currently displayed by the electronic device 100 in response to the operation, and obtains a screen capture long image.
Optionally, after the duration of displaying the partial content of the dragged page is greater than the preset time threshold, the electronic device 100 may return to displaying the partial content of the page before dragging, and continue to scroll and display the page in the designated display area.
In some application scenarios, the electronic device 100 may control the pages of the multiple scrolling windows to simultaneously scroll and capture a screen (for example, capture an interface currently displayed by the electronic device 100 after the left long page and the right long page are simultaneously scrolled by a preset length), and when the pages of the multiple scrolling windows are all scrolled to the bottom, complete the scrolling capture. The preset length of each rolling of the pages of the plurality of rolling windows is smaller than the length of the frame in the rolling direction in any rolling window.
For example, after the electronic device 100 receives the user operation on the floating window 411 in the embodiment shown in fig. 4D, the electronic device 100 may display the scrolling screenshot 600 shown in fig. 6A.
As shown in fig. 6A, the electronic device 100 displays a scrolling screen capture interface 600, and the scrolling screen capture interface 600 includes prompt information 601, a display area 611, a display area 621, and the like. The display area 611 may include, but is not limited to, a scroll window 612 and a fixed bar 613, the scroll window 612 may display a portion of the content of the page 614. The display area 621 may include, but is not limited to, a scroll window 622 and a fixed bar 623, the scroll window 622 may display a portion of the content of a page 624. The prompt message 451 may prompt the user to scroll the screen shot or may prompt the user to control the range of the screen shot through a clicking operation, for example, the prompt message 451 may include a prompt word "scrolling the screen shot, clicking the left scroll area may switch to the right scroll area, and clicking the right scroll area again may complete the screen shot". For a detailed description of the display area 611, refer to the description of the display area 311 in fig. 3, and for a detailed description of the display area 621, refer to the description of the display area 321 in fig. 3, which is not repeated herein.
After the electronic device 100 receives the user operation on the floating window 411 in the embodiment shown in fig. 4D, the electronic device 100 may further intercept the scrolling screenshot interface 600 displayed on the electronic device 100. Then, the electronic device 100 controls the page 614 and the page 624 to scroll for a preset length each time, and intercepts an interface displayed on the electronic device 100 after the electronic device 100 controls the page 614 and the page 624 to scroll for the preset length each time. After electronic device 100 has controlled page 614 and page 624 to scroll upward by a predetermined length, electronic device 100 displays a scrolling screenshot 630 shown in FIG. 6B.
Illustratively, as shown in FIG. 6B, the electronic device 100 displays a scrolling screenshot 630 as shown in FIG. 6B. In the scrolling screenshot interface 630, the scrolling window 612 displays a middle portion of the page 614. That is, scroll window 612 displays the note 4 option, note 3 option, note 2 option, and note 1 option of page 614. The scroll window 622 displays the bottom portion of the page 624. That is, scroll window 612 displays a portion of the contents of note 5 and a bottom blank area of page 614. The electronic device 100 may intercept the currently displayed scrolling screen capture interface 630. Thereafter, the electronic device 100 may control the page 614 to continue scrolling upward by a preset length.
Optionally, when the electronic device 100 scrolls up the control page 624, the preset length is greater than the length of the remaining pages of the page 624 that are not displayed in the scroll window. The electronic device 100 may control the bottom edge of the page 624 to leave the bottom border of the scrolling window 622 and continue to scroll upward until the page 624 scrolls a distance equal to a preset length, which is the distance that the electronic device 100 controls the page 624 to scroll each time. The electronic device 100 then controls the page 624 to scroll downward (as shown in FIG. 6B, the scrolling window 622 displays the end portion of the page 624) until the bottom edge of the page 624 coincides with the bottom border of the scrolling window 622. The electronic device 100 may intercept the currently displayed interface.
When device 100 detects that page 624 has scrolled to the bottom, page 614 has not scrolled to the bottom. Device 100 stops controlling page 624 to scroll, and device 100 may control page 614 to continue scrolling and intercept the interface currently displayed by device 100 after page 614 has scrolled. When the electronic device 100 detects that the page 614 has scrolled to the bottom, the interface currently displayed by the electronic device 100 is intercepted, and a screenshot long image is generated.
Optionally, when the electronic device 100 scrolls up in the control page 614, the preset length is greater than the length of the remaining pages of the page 614 that are not displayed in the scroll window. The electronic device 100 may control the bottom edge of the page 614 to leave the bottom border of the scrolling window 612 and continue to scroll upward (as shown in fig. 6C, the scrolling window 612 displays the end portion and the bottom blank area of the page 614) until the page 614 has scrolled a distance equal to a preset length, which is the distance that the electronic device 100 scrolls each time the page 614 is controlled. Electronic device 100 then controls page 614 to scroll downward until the bottom edge of page 614 and the bottom border of scrolling window 612 coincide (scrolling window 622 displays the end portion of page 624, as shown in FIG. 6D). The electronic device 100 may intercept the currently displayed interface.
When the operation of the electronic device 100 scrolling the screen shots with respect to the display area 611 and the display area 621 is completed, the electronic device 100 may display a scroll completion interface 660 as shown in fig. 6E. Scroll completion interface 660 may include prompt information 661, display area 611, and display area 621. Prompt 661 may prompt the user that electronic device 100 is processing the screenshot, for example, the prompt may display a prompt text of "splicing" \8230; ". As shown in fig. 6E, the current scroll window 612 may display a portion of the content at the bottom-most portion of the page 614. The scroll window 622 may be displayed in the bottom most portion of the content in page 624.
The step of displaying the scroll completion interface by the electronic device 100 is optional, and after the electronic device 100 scrolls the display area 611 for screen capture, the electronic device 100 may directly store the obtained screen capture long image in the gallery, or the electronic device 100 may also display the screen capture display interface 490 shown in fig. 4L. The description of the screenshot displaying interface 490 can refer to the related text mentioned above, and is not repeated herein.
In a possible implementation manner, when the electronic device 100 controls the long page to scroll and intercept the interface currently displayed by the electronic device 100 (that is, when the long page with a certain display area has not been scrolled to the bottom), after the electronic device 100 receives an input operation (for example, a click) from a user, in response to the operation, the electronic device 100 may end the scrolling screen capture in advance, so as to obtain a screen capture long image. The screenshot long image does not include a portion of the content of the long page that is not already displayed in the scrolling window.
In one possible implementation, the electronic device 100 may perform the scroll screen shot for multiple display regions simultaneously. When none of the long pages of the plurality of scroll windows has scrolled to the bottom, the electronic device 100 may receive an input operation (e.g., a single click) from the user with respect to a certain display region, and stop the scroll screen capture operation for the display region. The other display areas are not affected, the electronic device 100 continues to control the long pages of the display areas to scroll and intercept the interface displayed by the electronic device 100 after scrolling until the display areas all scroll to the bottom, so as to obtain the screenshot long image.
For example, after the electronic device 100 receives a user operation on the floating window 411 in the embodiment shown in fig. 4D, the electronic device 100 may control all the long pages to scroll and intercept the interface currently displayed by the electronic device 100. After the electronic device 100 controls all long pages to scroll, the electronic device 100 may display a scrolling screenshot interface 700 as shown in FIG. 7A.
As shown in fig. 7A, the electronic device 100 may display a scrolling screen capture interface 700, where the scrolling interface 700 may include a prompt message 701, a display area 711, and a display area 721, among others. Display area 711 may include a scroll window 712 and a fixed bar 713, and scroll window 712 may display a portion of the content of page 714. The display area 721 may include a scroll window 722 and a fixed bar 723, the scroll window 722 may display a portion of the content of the page 724. The description of the scrolling screenshot 700 can refer to the scrolling screenshot 630 of fig. 6B, which is not described herein again.
The electronic device 100 may receive an input operation (e.g., a single click) by the user with respect to the display area 711, in response to which the electronic device 100 stops scrolling the display area 711 in advance, and intercept the scrolling screen capture interface 730 currently displayed by the electronic device 100. Meanwhile, the electronic device 100 continues to scroll the screen shots with respect to the display area 621.
Optionally, when the electronic device 100 scrolls up in the control page 724, the preset length is greater than the length of the remaining pages of the page 724 that are not displayed in the scroll window. The electronic device 100 may control the bottom edge of the page 724 to leave the bottom border of the scrolling window 722 and continue to scroll upward until the page 724 scrolls a distance equal to a preset length (as shown in fig. 7A, the scrolling window 722 displays the end portion and the bottom blank area of the page 724), which is the distance that the electronic device 100 controls the page 724 to scroll each time. The electronic device 100 then controls the page 724 to scroll downward (as shown in FIG. 7B, the scroll window 722 displays the end portion of the page 724) until the bottom edge of the page 724 coincides with the bottom border of the scroll window 722. The electronic device 100 may intercept the currently displayed interface.
After the electronic device 100 receives an input operation (e.g., a single click) of the display area 711 from the user and stops scrolling the display area 711 in advance in response to the input operation, the electronic device 100 detects that the page 624 is scrolled to the bottom, and the electronic device 100 stops the scrolling operation, so that a long screenshot image is obtained.
Alternatively, the electronic device 100 may display a scroll completion interface 740 as shown in FIG. 7C. The scroll completion interface 740 may include a prompt 741, a display area 711, and a display area 721. Prompt 741 may prompt the user that the electronic device 100 is processing the screenshot, for example, the prompt may display a prompt text of "splicing" \8230; ". As shown in fig. 7C, the currently scrolled window 712 may display a portion of the content of the page 714 in the scrolled window 712 when the user operation is received by the electronic device 100. The scroll window 722 may display the end portion of the page 724.
The step of displaying the scroll completion interface by the electronic device 100 is optional, and after the electronic device 100 scrolls the display area 721 for screen capture, the electronic device 100 may directly store the obtained screen capture long image in the gallery, or the electronic device 100 may also display a screen capture display interface 750 shown in fig. 7D. The description of the screenshot presenting interface 750 can refer to the screenshot presenting interface 560 shown in fig. 5E, which is not described herein again.
In one possible implementation, the electronic device 100 scrolls the screen shots for multiple display regions simultaneously. When the electronic device 100 detects that the long page with only one display area has not been scrolled to the bottom, after the electronic device 100 receives an input operation (e.g., a single click) of the user for the display area, in response to the operation, the electronic device 100 stops the scrolling screen capture operation in advance, and a screen capture long image is obtained.
In one possible implementation, the electronic device 100 scrolls the screen shots for multiple display regions simultaneously. When there is no operation of scrolling and capturing a screen in a certain scrolling area, and when the pages of any other scrolling window are scrolled to the bottom, the electronic device 100 may fill a preset background image in the bottom of the page, and allow the page to continue to scroll upwards until all display areas have completed the operation of scrolling and capturing a screen.
For example, after the electronic device 100 receives the user operation on the floating window 411 in the embodiment shown in fig. 4D, the electronic device 100 may control all the long pages to scroll and intercept the interface currently displayed by the electronic device 100. After the electronic device 100 controls all long pages to scroll, the electronic device 100 may display a scrolling screenshot interface 800 as shown in FIG. 8A.
As shown in fig. 8A, the electronic device 100 displays a scrolling screen capture interface 800. The scrolling screenshot 800 includes a prompt 801, a display area 811, and a display area 821, among other things. The display area 811 may include a scroll window 812 and a fixed bar 813, and the scroll window 812 may display a portion of the content of the page 814. Display area 821 may include a scroll window 822 and a fixed bar 823, where scroll window 822 may display a portion of the contents of a page 824. The scroll screenshot interface 800 can be described with reference to the scroll screenshot interface 630 in FIG. 6B, which is not described herein again.
Electronic device 100 has controlled the bottom edge of page 824 to exit the bottom border of scrolling window 822 before electronic device 100 displays scrolling screenshot interface 800. At this time, the electronic device 100 may synchronously stitch the preset background image at the bottom of the page 824 to lengthen the page 824. Having page 824 not yet complete the scrolling screenshot before display area 811, electronic device 100 may continue to control page 824 to scroll upward.
Optionally, when the electronic device 100 scrolls up in the control page 814, the preset length is greater than the length of the remaining pages of the page 814 that are not displayed in the scroll window. The electronic device 100 can control the bottom edge of the page 814 to leave the bottom border of the scrolling window 812 and continue to scroll upward (as shown in fig. 8A, the scrolling window 812 displays the end portion of the page 814) until the page 814 scrolls a distance equal to a preset length, which is the distance that the electronic device 100 controls the page 814 to scroll each time. The electronic device 100 then controls the page 814 to scroll downward (as shown in FIG. 8B, the scroll window 812 displays the end portion and the bottom blank area of the page 814) until the bottom edge of the page 724 coincides with the bottom border of the scroll window 722. The electronic device 100 may intercept the currently displayed interface.
When the electronic device 100 detects that the page 814 has scrolled to the bottom, the filling of the preset background image at the bottom of the page 824 is stopped. The electronic apparatus 100 stops the scroll screen capture operation to obtain a screen capture long image. Electronic device 100 may display a scroll completion interface 840 as shown in FIG. 8C. The scroll completion interface 840 may include a prompt 841, a display area 811, and a display area 821. Prompt 841 may prompt the user that electronic device 100 is processing the screenshot, for example, the prompt may display a prompt text of "splicing 8230;". As shown in FIG. 8C, currently scrolling window 812 may display a portion of the contents of page 814 in scrolling window 812 when user operations are received by electronic device 100. The scroll window 822 may display the end portion of the page 824 and the filled-in preset background image.
The step of displaying the scrolling completion interface by the electronic device 100 is optional, and after the electronic device 100 scrolls the display area 811 for screen capture, the electronic device 100 may directly store the obtained screen capture long image in the gallery, or the electronic device 100 may also display a screen capture display interface 490 shown in fig. 4L. The description of the screenshot presentation interface 490 can be found above, and is not repeated here.
In one possible implementation, when the electronic device 100 scrolls and captures a screen of a certain display area of a certain multi-column interface, the electronic device 100 may respond to a user input operation (e.g., sliding up, pressing long on a lower half of the display area) on a current display interface (not limited to a certain display area, such as the scrolling screen capture interface 455 shown in fig. 4F), and the electronic device 100 may increase a scrolling speed of a long page of the current display area.
In one possible implementation, when electronic device 100 scrolls and captures a screen of a display area of a multi-column interface, electronic device 100 may reduce the scrolling speed of a long page of the current display area in response to a user input operation (e.g., slide down, long press on the top half of the display area) with respect to the current display interface (not limited to a display area, such as scroll screenshot interface 455 shown in fig. 4F).
In one possible implementation manner, the electronic device 100 may scroll through the multiple display areas to obtain the respective column-divided screen shots of the multiple display areas. The electronic device 100 may compare the lengths of the plurality of frame-split screen shots to obtain a long frame-split screen shot and a short frame-split screen shot. The electronic device 100 splices a preset background image at the bottom of the short frame screenshot image to obtain a filled image. Wherein the long columnar screenshot image and the filler screenshot image may be collectively referred to as a result image. The electronic device 100 may display the plurality of result images and provide a selection button. The user may select a desired result image by an input operation (e.g., a checkup). When electronic device 100 detects that a user selected a result image, electronic device 100 may save the result image. When the electronic device 100 detects that the user selects multiple result images, the electronic device 100 may splice the multiple result images into a screenshot image, and store the screenshot image.
For example, as shown in fig. 9A, after the electronic device 100 performs the operation of scrolling the screen shot on the memo application interface, the electronic device 100 may display an interface 900. The interface 900 may include, but is not limited to, a result image 901, a result image 903, a check control 902, a check control 904, a determine control 905, and a cancel control 906. The result image 901 is a result image of the display area on the left side of the memo application interface. The tick control 902 may include an enabled state and a disabled state, with the tick control 902 being in the disabled state by default. When electronic device 100 detects that the user selects result image 901, check control 902 can switch from the non-enabled state to the enabled state. When electronic device 100 again detects user selection of result image 901, check control 902 can switch from the enabled state to the disabled state. The result image 903 is a result image of the display area on the right side of the memo application interface. The check control 904 may include an enabled state and a disabled state, with the check control 904 being in the disabled state by default. When electronic device 100 detects that the user selected result image 903, check control 904 can switch from a non-enabled state to an enabled state. When electronic device 100 again detects that the user selected result image 903, check control 904 can switch from the enabled state to the disabled state. A determination control 905 may be used to determine the selected result image. The cancel control 906 may be used to delete the results of this screen capture, returning to the memo application interface 420 shown in FIG. 4B, discussed above.
After the electronic device 100 receives the result image 901 selected by the user, the check control 902 is in an enabled state. Thereafter, when the electronic device 100 receives an input operation (e.g., a single click) by the user with respect to the determination control 905, in response to the operation, the electronic device 100 may save the result image 901 to the gallery or the electronic device 100 may display a screenshot presentation interface 910 as shown in fig. 9B.
Illustratively, as shown in fig. 9B, the screenshot presentation interface 910 may include a screenshot length image 912 and a bottom bar 911. The screen shot image 912 is the result image 901 shown in fig. 9A.
Optionally, after the electronic device 100 receives the result image 901 and the result image 902 selected by the user, both the check control 902 and the check control 904 are in the enabled state. When the electronic device 100 receives an input operation (e.g., a single click) from the user with respect to the determination control 905, in response to the operation, the electronic device 100 may stitch the two result images left and right into one screen shot image. The electronic device 100 may save the screenshot to a gallery or the electronic device 100 may display a screenshot presentation interface 490 as shown in fig. 4L.
In one possible implementation, the electronic device 100 may also detect an operation of sliding a page by the user, and perform a scrolling screen shot. Specifically, when the electronic apparatus 100 scrolls and captures a screen of a display area of a multi-column interface, an input operation (e.g., a slide-up/slide-down) for a specific long page by the user may be received, and in response to the input operation, the electronic apparatus 100 may scroll the long page. When the electronic device 100 detects that the long page scrolling distance reaches a preset distance (the preset distance is the frame length of the scrolling window in the scrolling direction)/the electronic device 100 detects that the user stops sliding, the electronic device 100 may stop the screen capturing operation to obtain the long captured image. Optionally, the electronic device 100 may display a prompt (e.g., a downward arrow) that may be used to prompt the user to drag a long page of a certain display area.
The scrolling screen capture method provided in the embodiment of the present application will be specifically described below with reference to some of the modules in the software architecture diagram shown in fig. 2B.
Fig. 10 is a flowchart illustrating a scrolling screen capture method provided in an embodiment of the present application. The electronic device 100 may complete the scroll screenshot operation by mutually cooperating a plurality of software modules, which may include, but are not limited to, a page parsing module, an image stitching module, and an image filling module.
Illustratively, as shown in FIG. 10, the internal execution steps of the scrolling screenshot may be described in the following four sections. These four parts are, respectively, the first part: and obtaining a suspected separation line. A second part: and determining an actual separation line. And a third part: and obtaining the column screen capture image. The fourth part: a long graph is obtained. Where each section includes several steps, the execution of each section requires the cooperation of one or more software modules.
A first part: and obtaining a suspected separation line.
The first part includes steps S1001 to S1002. Wherein all steps of the first part may be performed by a page resolution module on the electronic device 100. The page analysis module is mainly used for acquiring page elements, solving suspected hurdle lines, acquiring page elements capable of rolling and the like.
S1001, the electronic device 100 obtains all page elements of the currently displayed interface, and traverses the outer borders of all page elements to obtain a target rectangular frame. At the same time, electronic device 100 may obtain page elements that can be scrolled.
The electronic device 100 may obtain all page elements of the current interface and obtain the outer borders of the page elements at the same time. And traversing the outer borders of all the page elements, and removing the outer border of one page element when the outer border of the page element is inside the outer border of another page element. And traversing the outer frames of all the page elements and leaving the outer frame without other outer frames inside. These remaining outer borders are referred to as destination rectangular boxes.
For example, the process of obtaining the destination rectangular frame in step S1001 may be as shown in fig. 11A to 11B.
As shown in fig. 11A, the electronic device 100 may acquire all page elements of the memo application interface 1100 and its outer frame. Electronic device 100 may mark the outer border of the following page elements in memo application interface 1100. The outer border may include a text border 1101, a control border 1102, a text border 1103, a text border 1104, a text border 1105, a text border 1106, a text border 1107, a control border 1108, an icon border 1109, a text border 1110, a text border 1121, a text border 1122, a text border 1123, an icon border 1124, a text border 1125, an icon border 1126, a text border 1127, an icon border 1128, a text border 1129, a control border 1131, a control border 1132, a control border 1133, a title border 1134, a control border 1135, a control border 1136, a control border 1137, a control border 1138, and a control border 1139.
Electronic device 100 may traverse the outer borders of these page elements, removing the outer borders within the boundaries of the other outer borders, leaving the destination rectangular boxes that do not overlap with each other. For example, text border 1103 and text border 1104 are within the range of control border 1131, and electronic device 100 leaves control border 1131 and removes text border 1103 and text border 1104.
Illustratively, as shown in fig. 11B, the electronic device 100 leaves a text border 1101, a control border 1102, a text border 1123, a control border 1131, a control border 1132, a control border 1133, a title border 1134, a control border 1135, a control border 1136, a control border 1137, a control border 1138, and a control border 1139.
When acquiring all page elements of the current interface, the electronic device 100 may determine whether a certain page element is scrollable. The electronic device 100 may determine whether a page element is scrollable in the following several ways.
(1) The electronic device 100 may determine whether the page element is scrollable by determining whether the name of the page element includes a specific field, where the specific field may be a field that is usually included in names of scrollable page elements such as "webview", "scrollview", "listview", "recycleview", "contentview", and the like. If a page element includes a particular field in its name, the page element is considered scrollable. If a certain page element does not include a specific field in the name, the page element is determined not to be scrollable. For example, the name of the page 424 in the interface 420 shown in fig. 4B is "scrollview _ page", and the electronic device 100 may determine that the page 424 is a scrollable page element.
(2) Electronic device 100 may create a list of scrolling elements, electronic device 100 may maintain this list, and when electronic device 100 parses the interface, query the list of scrolling elements for the interface to obtain elements that can be scrolled.
Illustratively, as shown in table 1, table 1 is a list of scrolling elements of the memo application interface 420 shown in fig. 4B.
Table 1: scrolling list of memos application interface
Page element name Whether or not it can scroll
scrollview_page Is that
display_area Whether or not
…… ……
Table 1 above may be a list of two columns, the first column showing the name of a certain page element and the second column showing whether the page element can be scrolled or not. When the value of the second column of a page element is "yes", the page element can be scrolled. When the value of the second column of a certain page element is "no", the page element may not be scrolled. For example, the first row in table 1 shows whether page 424 of memo application interface 420 shown in fig. 4B can be scrolled. Here, the name of the page 424 is "scrollview _ page", and the value of whether the page 424 can be scrolled is "yes". When the electronic device 100 queries table 1, it can be concluded that the page 424 can be scrolled.
(3) The electronic device 100 may add a scrollable attribute to a parent of the page element and obtain the scrollable attribute, and the electronic device 100 may determine whether the page content displayed by the parent element exceeds the size of the border of the parent element, and when the electronic device 100 determines that the page exceeds the border, the electronic device 100 assigns the scrollable attribute to true. When the electronic device 100 determines that the page does not exceed the bounding box, the electronic device 100 assigns a false value to the scrollable attribute. The electronic device 100 may invoke a method of obtaining a scrollable attribute when parsing the current page, and the method may return a result of whether the current parent element is a scroll area. Of course, electronic device 100 may obtain page elements that may be scrolled using several methods including, but not limited to, those listed above.
S1002, the electronic device 100 obtains a suspected separation line according to left and right borders of the target rectangular frame.
The electronic device 100 may record the abscissa of the left and right border lines of the destination rectangular box, traversing the horizontal coordinates, and connecting the frames with the same horizontal coordinates by using vertical lines. The electronic device 100 may measure the lengths of these lines and determine the lines that have a standard length (i.e., a length that is a certain percentage, e.g., 40%, of the length of the vertical border line of the interface) or the lines that have a length N bits before the ranking (N is any positive integer, e.g., the lines that have a length 2 bits before the ranking).
The electronic device 100 may detect the position of the line with the length reaching the standard or the line with the length N bits before the rank, and determine that the line located in the middle area (the area where the middle axis of the interface extends to the left and right at the same time by a certain proportion (e.g., 40%) of the length of the lateral frame) or not located in the edge area (the area where the left and right frames of the interface extend to the middle axis at the same time by a certain proportion (e.g., 5%) of the length of the lateral frame) is a suspected bar separating line.
Illustratively, as shown in FIG. 11C. The electronic device 100 obtains a line 1151 according to the control border 1131, the control border 1132 and the left border of the control border 1133; the electronic device 100 obtains a line 1152 according to the control border 1131, the control border 1132 and a right border of the control border 1133; the electronic device 100 obtains a line 1153 from the left frame of the title frame 1134, the left frame of the text frame 1123, and the right frame of the control frame 1136; the electronic device 100 has drawn a line 1154 from the text border 1123 and the right box of the control border 1139. The electronic device 100 may measure the lengths of the lines 1151, 1152, 1153, and 1154. For example, electronic device 100 requires lines that are more than 25% of the length of the interfacing vertical border, then all four lines may remain. The electronic device 100 requires lines in the middle region (the region where the central axis extends 30% of the length to both sides). Electronic device 100 detects that lines 1151 and 1154 are not in the middle region and electronic device 100 detects that lines 1152 and 1153 are in the middle region. The electronic device 100 marks the line 1152 and the line 1153 as suspect fence lines.
In one possible implementation, the electronic device 100 marks an actual separation line of a current interface when generating a certain multi-column interface (for example, an interface in which a plurality of applications share the same screen). When the electronic device 100 performs the scrolling screen capture operation on the interface, the electronic device 100 may directly obtain the actual barrier line without parsing the interface.
In one possible implementation, when the electronic device 100 generates a certain multi-column interface, the electronic device 100 may mark the border of the scrolling window. Or the electronic device 100 may obtain the border of the scrolling window by performing page parsing on a certain multi-column interface. The electronic device 100 may detect the frame line in the center area (see above) and determine that it is an actual dividing line, or detect the frame line not in the edge area (see above) and determine that it is an actual dividing line. Thus, the electronic device 100 may skip the steps of the second part and directly execute the steps of the third part, i.e., go from step S1002 to step S1006.
A second part: and determining an actual separation line.
Wherein the second part comprises steps S1003 to S1005, wherein the steps S1003 to S1004 are executable by the image stitching module on the electronic device 100. This step S1005 may be performed by a page resolution module on the electronic device.
S1003, the electronic device 100 controls the first side scrolling window of the suspected bar line to scroll and intercepts a currently displayed interface of the electronic device 100.
The electronic device 100 may intercept the interface currently displayed by the electronic device 100 to obtain the screenshot image 1. After the electronic device 100 controls the long page on the first side of the suspected bar line to roll for a certain distance, the currently displayed interface of the electronic device 100 is captured again, and a screenshot image 2 is obtained.
For example, the electronic device 100 may display a memo application interface 420 as shown in fig. 4B. Electronic device 100 may intercept memo application interface 420 resulting in a screenshot image as shown in fig. 12A. The screen shot image is the screen shot image 1 obtained by the electronic device 100. After the electronic device 100 controls the page 424 to scroll upward for a certain distance, the currently displayed interface of the electronic device 100 is intercepted again, and the screenshot image shown in fig. 12B is obtained. The screen shot image is the screen shot image 2 obtained by the electronic device 100.
S1004, the electronic device 100 performs pixel comparison on the multiple screen shots column by column to obtain a change boundary coordinate.
The electronic device 100 may compare the screenshot image before scrolling with the screenshot image after scrolling to obtain the range of the picture change. When the electronic device 100 performs the operation of image comparison, pixel comparison may be performed column by column starting from the first side to the other side. When the electronic device 100 detects that a pixel point (also referred to as a pixel column) of a column has changed, the abscissa of the column is recorded. After the image comparison of the electronic device 100 is completed, the abscissa of the column where all the pixel points have changed can be obtained.
The electronic device 100 may determine the leftmost abscissa of the abscissas of the columns in which all the pixel points have changed as the left boundary coordinate. The electronic device 100 may determine the rightmost abscissa of the abscissas of the columns in which all the pixel points have changed as the right boundary coordinate. The change boundary coordinates include left boundary coordinates and right boundary coordinates.
Illustratively, in the example of step S1003, the electronic device 100 may obtain a screenshot 1 (shown in fig. 12A) and a screenshot 2 (shown in fig. 12B). The electronic device 100 may perform pixel comparison on two screen captured images line by line from left to right. The electronic device 100 may record the abscissa of the column of the screenshot image 2 where the pixel points vary. Finally, the leftmost and rightmost ones of these abscissas are left. For example, line 1232 marks the column with the changed leftmost pixel, and line 1231 marks the column with the changed rightmost pixel in fig. 12B. The abscissa (e.g., x 1) of the line 1231 and the abscissa (e.g., x 2) of the line 1232 are collectively referred to as the variation boundary coordinates.
S1005, the electronic device 100 obtains the actual fencing line.
The electronic device 100 may detect whether all of the changed boundary coordinates fall on the first side of the suspected fence line. When the electronic device 100 detects that the coordinates of the changed boundary are all on the first side of the suspected separation line, the suspected separation line can be determined as an actual separation line; when the electronic device 100 detects that some of the change boundary coordinates are on the first side of the suspected fence line and some are on the second side, the electronic device 100 may determine that the suspected fence line is not the actual fence line.
When the electronic device 100 determines that all the suspected separation lines are not actual separation lines, it is determined that the interface is not a multi-column interface but a single-column interface. The electronic device 100 may scroll through screenshots directly to the single bar interface.
For example, as shown in fig. 12B, in the example of step S1004, the electronic device 100 may obtain the abscissa of the line 1231 and the abscissa of the line 1232, which are collectively referred to as the change boundary coordinates. Both lines 1201 and 1202 are suspected fence lines obtained by the electronic device 100 performing the above-described first part (the line 1202 in fig. 12B is the line 1152 in fig. 11C, the line 1201 in fig. 12B is the line 1153 in fig. 11C, and the lines 1152 and 1153 in fig. 11C are suspected fence lines). The electronic device 100 detects that the abscissa (e.g., x 3) of the line 1202 is between the change boundary coordinate (e.g., x 1) and the change boundary coordinate (e.g., x 2), and the electronic device 100 determines that the line 1202 is not an actual separator line. The electronic device 100 detects that the abscissa (e.g., x 4) of the line 1201 is to the right of the variation boundary coordinate (e.g., x 1) and the variation boundary coordinate (e.g., x 2), and the electronic device 100 determines that the line 1201 is an actual separator line.
After determining the actual split line, the electronic device 100 may restore the displayed interface to the display state before determining the split line. Optionally, when the electronic device 100 executes steps S1001 to S1005, a mask may be covered on the current display interface (the mask may be used to block the current interface, that is, the above operations may be made invisible to the user), and a prompt message (for example, "scrolling screen capture is being turned on") may be displayed.
In one possible implementation, for some specific interfaces, the electronic device 100 may directly obtain the actual separation lines of the interfaces. For example, some of the particular interfaces may be split screen interfaces (interfaces where electronic device 100 split screen displays multiple applications on a display screen of electronic device 100 in response to some operation by a user).
And a third part: and obtaining the column screen capture image.
The third part includes steps S1006 to S1007, where steps S1006 to S1007 may be executed by an image stitching module on the electronic device 100.
S1006, the electronic device 100 controls the long pages in the multiple display areas to scroll and capture a currently displayed interface of the electronic device 100 (called "screen capture" for short), and the electronic device 100 may splice the multiple screen capture images into one image after removing the repeated area (called "de-duplication splicing" for short).
The electronic device 100 may sequentially control the plurality of display areas to scroll and intercept the interface displayed by the electronic device 100 at the time (the interface intercepted by the electronic device 100 at the time may be referred to as a screen capture for short), and the electronic device 100 may control the distance of each scroll of the long page not to exceed a certain ratio (e.g., 60%) of the length of the vertical border of the scroll window. When the electronic device 100 scrolls the long page in the designated display area, the electronic device 100 may capture a screen first, obtain a first captured image, control the long page to scroll for a certain distance, and capture the screen again to obtain a second captured image.
The electronic device 100 cuts out image content in the first screenshot image that does not belong to the designated display area, so as to obtain an area screenshot image a. The electronic device 100 may crop out image content in the second screenshot image that does not belong to the designated display area, resulting in an area screenshot image B. The size of the area screenshot image A is the same as that of the area screenshot image B.
The electronic device 100 may determine an overlap region from the region screenshot image a with the image content in the region screenshot image B. The electronic device 100 may determine whether a size ratio of the repeated region in the region screenshot image a to the region screenshot image a exceeds a preset threshold (e.g., 90%).
When the electronic device 100 determines that the size ratio of the repeated region in the region screenshot image a to the region screenshot image a is smaller than the preset threshold, the electronic device 100 may crop and remove the repeated region in the region screenshot image a to obtain a cropped screenshot image 1. The electronic device 100 may stitch the bottom of the cropped screenshot image 1 with the top of the region screenshot image B to obtain the region stitched image 1. The electronic device 100 may record the position of the region screenshot image B in the region stitched image 1.
After obtaining the second screenshot image, the electronic device 100 may control the long page in the designated display area to continue to scroll for a certain distance, and capture the interface image currently displayed on the screen of the electronic device 100 to obtain a third screenshot image. The electronic device 100 may crop out image content in the third screenshot image that does not belong to the designated display area, resulting in an area screenshot image C. The size of the region screenshot image a, the region screenshot image B and the region screenshot image C is the same. The electronic device 100 may determine the region from the region-stitched image 1 that overlaps with the image content in the region screenshot image C. The electronic device 100 may crop out the overlapping region in the region-stitched image 1 to obtain the cropped screenshot image 2. The electronic device 100 may stitch the bottom of the region-stitched image 1 with the top of the cropped screenshot image 2 to obtain the region-stitched image 2. And repeating the steps until the page is scrolled to the bottom of the long page in the designated display area, and obtaining the column-divided screenshot image of the designated display area.
When the electronic device 100 determines that the size ratio of the repeated region in the region screenshot image a to the region screenshot image a exceeds a preset threshold (for example, 90%), the electronic device 100 may stop scrolling the long page in the designated display region, and crop out the repeated region in the region screenshot image a to obtain the cropped screenshot image 1. The electronic device 100 may stitch the bottom of the cropped screenshot image with the top of the region screenshot image B to obtain a column-wise screenshot image of the designated display region.
In a specific implementation, the electronic device 100 performs pixel comparison on the region screenshot image a and the region screenshot image B to obtain a repeated region. The electronic device 100 may compare the first row of pixels of the region screenshot image B with the region screenshot image a row by row from bottom to top until the first row of pixels of the region screenshot image B is consistent with the certain row of pixels of the region screenshot image a, which may be called as a suspected alignment row. And then, performing pixel comparison on the second line of the area screenshot image B and the next line of the suspected alignment line of the area screenshot image a, and when the electronic device 100 detects that the pixels of the two lines are consistent, performing pixel comparison on the third line of the area screenshot image B and the next line of the suspected alignment line of the area screenshot image a again, and so on.
After the suspected alignment line, the electronic device 100 detects that the length of the multiple lines of the area screenshot image a and the area screenshot image B is not equal to a certain ratio (for example, 10%) of the length of the area screenshot image a, and then determines that the suspected alignment line is not an actual alignment line, and the actual alignment line is a first line of the repeat area in the area screenshot image a (the repeat area refers to a continuous area included in both the area screenshot image a and the area screenshot image B). The electronic device 100 continues to use the first row of pixels of the region screenshot image B and the portion of the region screenshot image a above the suspected alignment of the non-actual alignment row to perform pixel comparison line by line until the actual alignment row is determined. That is, after a newly found suspected alignment line, the length of the repeated lines of the area screenshot image a and the area screenshot image B reaches a certain ratio (for example, 10%) of the screenshot length, and it is determined that the suspected alignment line is actually aligned.
After finding the actual alignment line, the electronic device 100 will continue to compare the area screenshot image a and the area screenshot image B until a complete repeat area is obtained.
Optionally, the electronic device 100 may also perform the line-by-line pixel comparison on the area screenshot image a and the area screenshot image B from top to bottom.
For example, the process of the electronic device 100 performing the de-double stitching operation can be described with reference to fig. 4B and 13. The electronic device 100 may display a memo application interface 420 as shown in fig. 4B. The electronic device 100 can intercept the memo application interface 420 resulting in a first screenshot image. After the electronic device 100 controls the page 424 to scroll upward for a certain distance, the currently displayed interface of the electronic device 100 is captured again, and a second screenshot image is obtained. The electronic device 100 cuts out image content in the first screenshot image that does not belong to the designated display area, resulting in an area screenshot image a. The electronic device 100 may crop out image content in the second screenshot image that does not belong to the designated display area, resulting in an area screenshot image B. As shown in fig. 13, the area screenshot image 1301 of the electronic device 100 is the area screenshot image a, and the area screenshot image 1302 is the area screenshot image B. The electronic device 100 may compare the region screenshot image 1301 and the region screenshot image 1302 to obtain the repeated region of the two images, which may be shown as the region marked by the dashed box in fig. 13. The electronic device 100 may cut out an image of a repeated region of the region screenshot image 1301, and then splice the top of the region screenshot image 1302 to the bottom of the cut region screenshot image 1301 to obtain the region spliced image 1303.
S1007, the electronic device 100 may determine that the long page in a certain display area scrolls to the bottom, and obtain a frame-by-frame screenshot image of the display area.
When the electronic device 100 detects that the repeated area in the captured images of the two areas before and after the long page in the designated display area is scrolled to a preset ratio (for example, 90%), the electronic device 100 may determine that the page in the scrolled area is scrolled to the bottom. The electronic device 100 may stop scrolling the long page in the designated display area.
In one possible implementation, electronic device 100 may specify a designated page element of a long page in the display area by marking. Electronic device 100 may obtain the display position of the specified page element both before and after scrolling the long page. When electronic device 100 detects that the display positions of the designated page element are the same before and after the long page is scrolled, electronic device 100 can determine that the long page has scrolled to the bottom. When the electronic device 100 detects that the display positions of the designated page element are different before and after the long page is scrolled, the electronic device 100 may determine that the long page is not scrolled to the bottom.
In one possible implementation, the electronic device 100 may obtain a scroll control and determine that the long page scrolls to the bottom when a new scroll control no longer appears in the scroll area.
In one possible implementation, when the electronic device 100 detects that the interface includes a status bar (e.g., the status bar 302 in the embodiment illustrated in fig. 3 described above), the electronic device 100 may identify the status bar during the scrolling of the screenshot. The electronic device 100 may cut off some of the pictures of the status bar in all of the screenshots, until the scrolling screenshot operation is finished, the electronic device 100 splices the pictures of the status bar at the top of the spliced screenshot long image to obtain the screenshot long image including the status bar. Alternatively, the electronic device 100 may retain the status bar of the first captured image and cut out the status bar of the subsequent captured images when scrolling the captured images for the designated display area. After the electronic device 100 de-re-splices the multiple screenshot images of the designated display area, a column screenshot image including the status bar can be obtained.
In a possible implementation manner, when the electronic device 100 detects that the designated display area does not have the scroll window, the current display interface of the electronic device 100 is directly intercepted, so as to obtain a screenshot image. The electronic apparatus 100 may retain a partial image of the specified display region in the screenshot image, that is, a columnar screenshot image of the specified display region.
In a possible implementation manner, the electronic device 100 may first scroll all the display areas to capture the screen shots of all the display areas, and then the electronic device 100 performs de-stitching on the screen shots of different display areas to obtain the column-divided screen shots of each display area.
In a possible implementation manner, when the electronic device 100 scrolls and captures a screen of the designated display area, the electronic device 100 may capture a current display interface of the electronic device 100 to obtain a screen capture image, and then cut out image content in the screen capture image that does not belong to the designated display area to obtain an area screen capture image 3. After the electronic device 100 controls the long page of the designated display area to roll by a fixed length (for example, the fixed length is 20 pixel values), the current display interface of the electronic device 100 is captured to obtain a screenshot image, and then the image content in the screenshot image that does not belong to the designated display area is cut off to obtain an area screenshot image 4. The electronic apparatus 100 may crop the region screen image 3 from a picture of a remaining length (e.g., 10 pixel value) from the bottom up, the remaining length being a difference between the length of the region screen image and a fixed length, e.g., the length of the region screen image is 30 pixel value, the fixed length is 20 pixel value, and the remaining length is 10 pixel value. The region screenshot image 4 and the region screenshot image 3 are stitched together. When the electronic device 100 controls the length of the long page scroll of the designated display area not to reach the fixed length, the electronic device 100 may stitch the last screenshot image by using an image comparison method.
In one possible implementation, when the electronic device 100 detects that a fixed bar is included within the designated display area, the electronic device 100 may identify the fixed bar during scrolling of the screenshot of the designated display area. The electronic device 100 may cut out a part of the fixed-bar pictures in all the obtained screenshot images until the electronic device 100 splices all the screenshot images in the designated display area into one image after removing the repeated area, and the electronic device 100 splices the fixed-bar pictures at the bottom of the image to obtain the frame-by-frame screenshot image including the fixed bar. Or, the electronic device 100 may only reserve a fixed column of the last screenshot image obtained by the electronic device 100 after the long page of the designated display area is scrolled to the bottom, and the electronic device 100 may obtain a columnar screenshot image including the fixed column after all the screenshot images of the designated display area are spliced together. Meanwhile, the electronic apparatus 100 may record position information of the fixed bar in the frame-split screenshot image.
The embodiment of the present application may provide the following ways to obtain the fixed bar of the current display interface of the electronic device 100.
In one possible implementation, the electronic device 100 may obtain the top frame of the fixed bar through page parsing. Specifically, the electronic device 100 may obtain the outer borders of all the page elements of the current interface. All non-overlapping destination rectangular frames are obtained. And acquiring vertical coordinates of upper and lower frames of all the target rectangular frames, and connecting the frames with the same vertical coordinates by using transverse lines. Transverse lines within a certain distance (for example, the distance of 5 pixels) from the bottom border are discarded. The electronic device 100 may determine the horizontal line closest to the bottom of the remaining lines as the top border of the fixed bar.
Illustratively, as shown in fig. 14A, (a) the electronic device 100 acquires an element frame 1401 to an element frame 1407, and an element frame 1411 to an element frame 1413 of the current interface. (b) Electronic device 100 traverses these borders, leaving non-overlapping destination rectangular boxes, namely element border 1411, element border 1412, and element border 1413. (c) The electronic device 100 connects the lower border of the element border 1411, the upper border of the element border 1412, and the upper border of the element border 1413 to obtain a line 1432; the electronic device 100 connects the top border of the element border 1411 resulting in line 1431. The electronic device 100 determines that the line 1432 is closer to the bottom of the interface than the line 1431, and determines that the line 1432 is the top border of the taskbar. That is, the area under line 1432 is the anchor bar.
In one possible implementation, the electronic device 100 may obtain the go-to bar through image comparison. Specifically, when the electronic device 100 scrolls to capture a screen of the designated display area, the electronic device 100 may obtain two area capture images before and after a certain scroll of the long page of the designated display area. The electronic device 100 may perform pixel comparison on the two region screenshot images line by line from bottom to top. The electronic device 100 may determine the repeated region at the bottom of the two region screenshot images as a fixed bar.
For example, as shown in fig. 14B, the electronic device 100 obtains two area screenshot images, namely, an area screenshot image 1421 before a certain scroll of the long page and an area screenshot image 1422 after a certain scroll of the long page. The electronic device 100 may pixel-compare the two region screenshots line by line from bottom to top as shown by the illustrated arrows. Resulting in a repeating region within the dashed box as shown. The repeat region is the anchor bar.
In a possible implementation manner, after the electronic device 100 may obtain the top frame of the stable bar through the page parsing, the top frame of the stable bar obtained through the page parsing is verified by using the image comparison method, so that the accuracy of identifying the stable bar is increased.
In a possible implementation manner, the electronic device 100 may record position information of each control in the designated display area, and the electronic device 100 controls the long page in the designated display area to scroll for a certain distance. The electronic device 100 may mark the control whose position information has not changed. The electronic device 100 may include the control whose position information has not changed with a specific rectangular frame, an upper border of the specific rectangular frame being an upper border of a topmost control of the control that has not changed, and a left border, a right border, and a lower border of the specific rectangular frame being a left border, a right border, and a lower border of the designated display area. The specific rectangular frame is the frame of the fixed column.
Illustratively, as shown in fig. 14C, electronic device 100 displays an interface 1430, which interface 1430 may include, but is not limited to, a form 1451, a newly created icon 1452, a notes icon 1453, and a to-do icon 1454. The electronic device 100 may control the form 1451 to scroll up a distance. The electronic device 100 detects that the positions of the form 1451, the newly created icon 1452, the note icon 1453 and the to-do icon 1454 are not changed. The electronic device 100 can have the top border of the new icon 1452 as the top border of the particular rectangular frame. The dashed box is the border of the specific rectangular box, i.e. the fixed bar, obtained by the electronic device 100.
The fourth part: and obtaining a screen shot long image.
The fourth step includes steps S1008 to S1011, wherein the steps S1008 to S1010 may be executed by an image filling module on the electronic device 100. This step S1011 may be performed by the image stitching module on the electronic device 100.
S1008, the electronic device 100 may compare the lengths of the frame-by-frame screenshot images to obtain the size of the long frame-by-frame screenshot image, the size of the short frame-by-frame screenshot image, and the size of the area to be filled.
After the electronic device 100 obtains the subfield screenshot images of all the display areas, the electronic device 100 may compare the lengths of all the subfield screenshot images, mark one or more subfield screenshot images with the longest length as long subfield screenshot images, and mark the other subfield screenshot images as short subfield screenshot images.
When the electronic apparatus 100 detects that there is no short subfield screenshot image, the electronic apparatus 100 may skip step S1009 and step S1010 and directly perform step S1011. The electronic device 100 splices the plurality of long frame-divided screen capture images to obtain a screen capture long image.
Illustratively, as shown in FIG. 15A, FIG. 15A shows three cases of a resulting frame-wise screenshot image in a two-frame interface. (a) The frame-by-frame screenshot image of the left display area is longer than the frame-by-frame screenshot image of the right display area; (b) The columnar screen capture image of the left display area is shorter than that of the right display area; (c) The sectioned screenshot image of the display area on the left side is as long as the sectioned screenshot image of the display area on the right side.
For case (a) in fig. 15A, the electronic apparatus 100 may mark the subfield shot image on the left side as a long subfield shot image and the subfield shot image on the right side as a short subfield shot image. The electronic device 100 may align the tops of the two pictures to determine the region to be filled in the short frame screenshot image.
For case (c) in fig. 15A, the electronic device 100 may mark the sectioned screenshot image on the left as a long sectioned screenshot image and the sectioned screenshot image on the right as a long sectioned screenshot image. The electronic apparatus 100 detects that there is no short subfield screenshot image, and may skip step S1009 and step S1010 and directly perform step S1011. The electronic device 100 may stitch the two long frame-split screen capture images left and right to obtain a screen capture long image.
After the electronic device 100 obtains the long-subfield screenshot image and the short-subfield screenshot image, the electronic device 100 may calculate a difference value between the lengths of the long-subfield screenshot image and the designated short-subfield screenshot image. The electronic device 100 may use the difference as the length and then use the width of the designated short-frame screenshot image as the width to obtain the size of the region to be filled in the designated short-frame screenshot image.
Illustratively, as shown in fig. 15B, the electronic device 100 obtains a long subfield screenshot image and a short subfield screenshot image. The electronic device 100 may measure the length of the long-subfield screenshot image (e.g., 80 pixel values) and the length of the short-subfield screenshot image (e.g., 50 pixel values). The electronic device 100 may calculate the difference between the lengths of the two screen shots, and take the difference as the length of the region to be filled. The electronic device 100 further uses the width of the short subfield screenshot image as the width of the region to be filled, to obtain the size of the region to be filled of the illustrated short subfield screenshot image, as shown by the dashed box region in the figure.
S1009, the electronic device 100 generates a preset background image of the short subfield screenshot image.
The electronic device 100 may obtain the preset background image by the following methods.
(1) The electronic device 100 can classify all the pixels in the short frame screenshot image, and count the number of each type of pixels, where the pixels having the same color value are of the same type. The electronic device 100 may generate a preset background image by using the color values of the most numerous class of pixel points;
(2) The electronic device 100 may calculate an average value of color values of all pixel points of the short frame screenshot image, and generate a preset background image using the average value;
(3) The electronic device 100 may randomly acquire some pixel points of the short subfield screenshot image. Then, the average value of the color values of the pixel points is calculated, and the average value is used for generating a preset background image;
(4) The electronic device 100 may detect a portion of the font in the short-frame screenshot image after removing the font area. Generating a preset background image by using any one of the three methods;
(5) The electronic device 100 may generate the preset background image using a fixed color (e.g., white, transparent);
(6) The electronic device 100 may generate the preset background image in one color (for example, black) at random;
(7) The electronic device 100 may generate a background color table (which may include white, gray, etc.), the electronic device 100 randomly uses one color in the background color table to generate the preset background image, or the electronic device 100 may display the background color table, and the user selects the color for generating the preset background image;
(8) The electronic device 100 may detect a font area of the short subfield screenshot image, the electronic device 100 may fill the font area according to the texture around the font area to obtain a background image of the short subfield screenshot image, and the electronic device 100 may cut or stitch the background image to obtain a picture having a size consistent with that of the area to be filled as a preset background image.
The sizes of the preset background images generated by the methods (1) to (8) are the same as the size of the region to be filled.
And S1010, splicing a preset background image at the bottom of the short column screenshot image on the electronic device 100 to obtain a filling screenshot image.
The electronic apparatus 100 may obtain the preset background images of all the short subfield screenshot images through steps S1008 and S1009. The electronic device 100 may splice a preset background image corresponding to the short subfield screenshot image at the bottom of the short subfield screenshot image to obtain a filling screenshot image having a length consistent with that of the long subfield screenshot image.
In one possible implementation, after the electronic device 100 detects that the designated display area has the fixed bar, the electronic device 100 may remove the fixed bar portion from all the screenshot images in the de-double stitching process. After the electronic device 100 obtains the filled screenshot image, the electronic device 100 splices the picture of the fixed bar portion corresponding to the long-bar screenshot image at the bottom of the long-bar screenshot image to obtain the long-bar screenshot image including the fixed bar. Splicing the picture of the fixed column part corresponding to the short subfield screenshot image at the bottom of the filled screenshot image obtained after the short subfield screenshot image is spliced with the preset background image to obtain the filled screenshot image comprising the fixed column.
Illustratively, after the electronic device 100 stitches the preset background image at the bottom of the short-frame screenshot image in fig. 15B, a filled screenshot image as shown in fig. 15C can be obtained. The fill-in screenshot image and the long columnar screenshot image are of the same length. The electronic device 100 may stitch the fixed bar 313 shown in fig. 3 at the bottom of the long-subfield screenshot image, resulting in the long-subfield screenshot image including the fixed bar as shown in fig. 15D. The electronic device 100 may stitch the anchor bar 323 as shown in fig. 3 at the bottom of the short-cropped screenshot image, resulting in a padded screenshot image including the anchor bar as shown in fig. 15D.
In a possible implementation manner, the electronic device 100 detects that the display area has a fixed bar, and the electronic device 100 may first separate the fixed bar portion from other portions of all the split screenshot images to obtain an individual fixed bar image and an individual non-fixed bar image, and record a corresponding relationship between the fixed bar image and the non-fixed bar image. And then, taking the longest image in the non-fixed column images as a standard, and splicing and presetting the background image at the bottoms of other non-fixed column images to be as long as the longest image. Finally, the electronic device 100 stitches the corresponding fixed column image at the bottom of the longest image in the non-fixed column images to obtain a long subfield screenshot image, and the electronic device 100 stitches the corresponding fixed column image at the bottom of the non-fixed column image on which the preset background image is stitched to obtain a filled screenshot image.
In a possible implementation manner, the electronic device 100 detects that the designated display area has a fixed bar, and the electronic device 100 may first separate the fixed bar portion from other portions of all the short-bar screenshot images to obtain an individual fixed bar image and an individual non-fixed bar image, and record a corresponding relationship between the fixed bar image and the non-fixed bar image. The electronic device 100 splices a preset background image between the corresponding fixed column image and the non-fixed column image with the long subfield screenshot image as a standard to obtain a filled screenshot image with the same length as the long subfield screenshot image.
In a possible implementation manner, the electronic device 100 detects that the designated display area has a fixed bar, the electronic device 100 may compare lengths of the columnar screenshot images including a fixed bar portion, refer to the longest columnar screenshot image as a long columnar screenshot image, refer to the other columnar screenshot images as short columnar screenshot images, and splice a preset background image at the bottom of the short columnar screenshot images to obtain a filled screenshot image.
Illustratively, as shown in fig. 16A, after the electronic apparatus 100 executes the above steps S1001 to S1009, two frame-divided screen captured images including a fixed frame, a long frame-divided screen captured image 1601 and a short frame-divided screen captured image 1605 are obtained. The long-subfield screenshot image 1601 includes a fixed-field partial image 1602. The short subfield screenshot image 1605 includes a fixed field partial image 1606. The electronic device 100 may stitch the preset background image at the bottom of the short frame screenshot image 1605 to obtain a filled screenshot image, as shown in fig. 16B.
In a possible implementation manner, the electronic device 100 detects that the multi-column interface includes the status column, and the electronic device 100 may process the status column by referring to the processing manner of the electronic device 100 for the fixed column in the foregoing embodiment. Alternatively, after obtaining the filled screenshot image and the long-subfield screenshot image, the electronic device 100 may stitch the picture of the partial status bar at the top of the filled screenshot image on the top of the filled screenshot image and stitch the picture of the partial status bar at the top of the long-subfield screenshot image on the top of the long-subfield screenshot image.
S1011, the electronic device 100 splices the long column-by-column screenshot image and the filling screenshot image to obtain a screenshot long image.
The electronic device 100 may stitch the long-subfield screenshot image and the filler screenshot image into one screenshot long image according to the relative position of the display area.
In a possible implementation manner, the electronic device 100 detects that the multi-column interface includes the status column, and the electronic device 100 may stitch the picture of the complete status column on top of the stitched filled screenshot image and the long subfield screenshot image after stitching the filled screenshot image and the long subfield screenshot image together.
Illustratively, as shown in fig. 15E, when the electronic apparatus 100 executes the above steps S1001 to S1010, the long subfield screenshot image and the fill screenshot image shown in fig. 15D are obtained. The electronic device 100 may stitch the long-frame screenshot image and the filler screenshot image left and right, and stitch the status bar 302 shown in fig. 3 on top of the image resulting from stitching the long-frame screenshot image and the filler screenshot image left and right, so as to obtain the screenshot long image shown in fig. 15E.
Illustratively, as shown in fig. 16C, when the electronic apparatus 100 executes the above steps S1001 to S1010, the long subfield screenshot image and the fill screenshot image shown in fig. 16B are obtained. The electronic device 100 may stitch the long-frame screenshot image and the filled-in screenshot image left and right, and stitch the status bar 302 shown in fig. 3 on top of the image resulting from stitching the long-frame screenshot image and the filled-in screenshot image left and right, so as to obtain the screenshot long image shown in fig. 16C.
The electronic device 100 may perform a scroll screen capture operation on an interface currently displayed by the electronic device 100 in response to some operation (e.g., three-finger sliding) of the user by using the scroll screen capture method provided by the embodiment of the present application. The electronic device 100 may find the suspected section lines and the scrollable page elements of the currently displayed interface. After that, the electronic device 100 may verify that the actual separation line is obtained, and determine whether the current display interface is a multi-column interface. After the electronic device 100 determines that the current interface is a multi-column interface, the electronic device 100 may respectively scroll and capture the screen of each display area of the multi-column interface, and perform de-duplication and splicing on the obtained multiple captured images to obtain a final long captured image. The screenshot is complete in content and does not include regions that are repeatedly displayed.
In one possible application scenario, when the electronic device 100 detects multiple suspected fence lines on the multi-bar interface. When determining whether the designated suspected section line is an actual section line, the electronic device 100 will scroll the long pages of all the scrolling windows on the first side of the designated suspected section line for a certain distance. And then obtaining the coordinate of the changed boundary by comparing the pixels column by column. Optionally, in order to increase the accuracy of the changed boundary coordinates obtained by the electronic device 100, the electronic device 100 may control all long pages on the first side of the suspected splitting line to scroll for multiple times and capture the currently displayed interface of the electronic device 100 before and after scrolling, so as to obtain multiple screenshot images, and compare the multiple screenshot images in pairs to obtain multiple changed boundary coordinates. The electronic apparatus 100 further takes the leftmost and rightmost changed boundary coordinates among all the changed boundary coordinates as the final changed boundary coordinates.
In one possible application scenario, the electronic device 100 displays a first interface that includes a first scrolling window, a second scrolling window, and a third scrolling window. Wherein the first scrolling window displays a first portion of the first page, the second scrolling window displays a second portion of the second page, and the third scrolling window displays a ninth portion of the third page. After the electronic device 100 receives the first input for screen capturing, the electronic device 100 controls the first scroll window to display the third portion of the first page, the second scroll window to display the fourth portion of the second page, and the third scroll window to display the tenth portion of the third page. The electronic device 100 obtains a first screen shot image that includes the first and third portions of the first page, the second and fourth portions of the second page, and the ninth and tenth portions of the third page. Wherein the first portion, the second portion, the third portion, the fourth portion, the ninth portion, and the tenth portion are all different.
For example, when the electronic device 100 detects that the displayed interface is a three-column interface (e.g., the interface 1700 shown in fig. 17) or an M-column interface (M is a positive integer greater than 3, e.g., M is 4), the electronic device 100 may perform a scrolling screenshot on the multi-column interface using the method of the embodiment of the present application.
For example, the electronic device 100 may perform a scrolling screen capture operation on a page in three display areas, resulting in three column-captured images. The electronic device 100 may then stitch together the three columnar screenshot images according to the relative positions of the scrolling windows to obtain a screenshot length image.
In one possible application scenario, the electronic device 100 displays a second interface that includes a first display area and a second display area. Wherein the first display area displays a fourth page, the second display area includes a fourth scroll window, and the fourth scroll window displays an eleventh portion of the fifth page. After the electronic device 100 receives a sixth input for screen capture by the user, the electronic device 100 captures a fourth page displayed in the first display area to obtain a third subfield screen capture image, and captures an eleventh part of a fifth page displayed in a fourth scroll window to obtain an eleventh image. The electronic device 100 controls the fourth scrolling window to display the twelfth part of the fifth page, and the electronic device 100 cuts out the twelfth part displayed in the fourth scrolling window to obtain a twelfth image. The electronic device 100 synthesizes a fourth column screenshot image, which includes an eleventh image and a twelfth image. The electronic device 100 splices the third subfield screenshot image and the fourth subfield screenshot image to obtain a second screenshot-length image.
Illustratively, when the electronic device 100 detects that the displayed second interface includes a fourth scroll window, a fourth page is displayed on the left side or the right side of the fourth scroll window. The electronic device 100 may obtain a screenshot image including all contents of the fifth page and all contents of the fourth page through the method of scrolling the screenshot provided by the embodiment of the application.
In one possible application scenario, the electronic device 100 may perform a scrolling screen capture operation on a top-bottom column interface (e.g., the interface 1800 shown in fig. 18) using the method of the embodiment of the present application. When the electronic device 100 acquires a suspected fence line in the lateral direction. The electronic device 100 may connect the destination rectangular frames having the same vertical coordinate with each other by a horizontal line to obtain a suspected fence line. Similarly, the electronic device 100 may scroll the screen shots for the display area on the upper side and the display area on the lower side, respectively. Finally, the electronic device 100 may directly stitch up and down the plurality of frame-by-frame screen shots in the display area to obtain the long screen shot image. Or the electronic device 100 may also compare the lengths of multiple subfield screenshot images, stitch a preset background image at the bottom of the short subfield screenshot image to obtain a filled screenshot image, and then stitch the long subfield screenshot image/filled image corresponding to the display area from left to right according to the sequence from top to bottom of the display area to obtain a screenshot long image. Or the electronic device 100 may also compare the lengths of the multiple subfield screenshot images, splice a preset background image at the bottom of the short subfield screenshot image to obtain a filled screenshot image, and then splice the long subfield screenshot image/filled image corresponding to the display area from left to right according to the sequence from bottom to top of the display area to obtain a long screenshot image.
The following describes a flow of a method for scrolling a screen shot provided in an embodiment of the present application.
FIG. 19 shows a diagram of one provided in an embodiment of the present application A flow diagram of a method of scrolling a screenshot is provided.
S1901, the electronic device 100 displays a first interface, where the first interface includes a first scroll window and a second scroll window, the first scroll window displays a first portion of a first page, and the second scroll window displays a second portion of a second page.
Specifically, the first interface is the multi-column interface. For example, the setting application interface 10 shown in fig. 1A, the memo application interface 420 shown in fig. 4B, the setting application interface 1700 shown in fig. 17, the split screen interface 1800 shown in fig. 18, and the like.
Illustratively, the first scroll window may be obtained through the steps provided in the embodiments described in fig. 11A-11C, fig. 12A, and fig. 12B, and the first scroll window may be the scroll window 422 shown in fig. 4B.
The first page may be long page 314 as shown in FIG. 3, and page 424 as shown in FIG. 4B. The first scrolling window can only display a certain portion of the first page. The first portion may refer to a portion of the content of a page 424 displayed within a scrolling window 422 as shown in FIG. 4B.
Similarly, the second scrolling window may be obtained by the steps provided in the embodiments described in fig. 11A-11C, 12A, and 12B, and the second scrolling window may be the scrolling window 432 shown in fig. 4B. The second page may be the long page 324 as shown in FIG. 3, and the page 434 as shown in FIG. 4B. The second scrolling window can only display a certain portion of the second page. The second portion may refer to a portion of the content of a page 434 displayed within a scrolling window 432 as shown in FIG. 4B.
S1902, the electronic device 100 receives a first input for screen capturing.
S1903, in response to the first input, the electronic device 100 controls the first scrolling window to display the third portion of the first page and controls the second scrolling window to display the fourth portion of the second page.
Wherein the first input is not limited to a single click, a double click, a long press, a swipe, a voice command input, or the like. The first input may be a set of user operations. For example, the first input may be a user operation as shown in fig. 4B to 4D, that is, pressing a volume "-" key and a power key, and sliding down at the floating window 411. For example, the first input may be a three finger swipe down or a finger joint tap and draw a specified pattern on the screen, and so on.
The third portion may be a part of the content of the page 424 displayed in the scrolling window 422 as shown in fig. 4E, a part of the content of the page 424 displayed in the scrolling window 422 as shown in fig. 4F, a part of the content of the page 424 displayed in the scrolling window 422 as shown in fig. 4I, or the like. The whole process of controlling the first scroll window to display the third part of the first page by the electronic device 100 may refer to the embodiments shown in fig. 4E-4I.
The fourth portion may be a portion of the content of the page 434 displayed in the scrolling window 432 shown in fig. 4I, a portion of the content of the page 434 displayed in the scrolling window 432 shown in fig. 4J, a portion of the content of the page 434 displayed in the scrolling window 432 shown in fig. 4K, or the like. The whole process of controlling the second scrolling window to display the fourth part of the second page by the electronic device 100 can refer to the embodiments shown in fig. 4I-4K.
S1904, the electronic device 100 synthesizes and displays a first screen shot image, wherein the first screen shot image includes the first and third portions of the first page and the second and fourth portions of the second page.
Specifically, the detailed steps of the electronic device 100 synthesizing and displaying the first screen length image may refer to the embodiment 10. First, the electronic device 100 may recognize the positions of the first scrolling window and the second scrolling window on the first interface, and obtain the first and second bar-divided screenshot images, respectively. The first column screenshot image comprises all contents of the first page, and the second column screenshot image comprises all contents of the second page. The electronic device 100 may stitch the first and second subfield screenshot images according to the relative positions of the first and second scrolling windows, and meanwhile, the electronic device 100 may detect the lengths of the first and second subfield screenshot images, and stitch the preset background image at the bottom/top of the shorter image until the first and second subfield screenshot images are as long.
Optionally, when other page elements (e.g., the fixed bar and the status bar) exist in the preset direction (e.g., above and below) of the first scroll window and/or the second scroll window, the electronic device 100 may stitch the other page elements in the preset direction of the first bar-divided screenshot image and the second bar-divided screenshot image when the first bar-divided screenshot image and the second bar-divided screenshot image are synthesized. Alternatively, the electronic device 100 may stitch other page elements in the preset directions of the first and second subfield screenshot images when the first subfield screenshot image is synthesized, and the detailed description may refer to the embodiments described in fig. 15A to 15E and fig. 16A to 16C.
Wherein the first screenshot image may include the entire contents of the first page and the second page. The first screen shot long image may be the screen shot long image 492 as shown in fig. 4L. The screenshot long image 492 includes all of the contents of the page 424 and the page 434.
Optionally, the electronic device 100 receives a second input from the user, and in response to the second input, the electronic device 100 may control the second scroll window to display a fourth portion of the second page. The second input may be a drag, a single click, or the like. Illustratively, the second input may be a single-click operation on the display region 511 of fig. 5A.
Optionally, electronic device 100 receives a third input for the first interface, and in response to the third input, electronic device 100 may compose and display the first screen-length image. The third input may be a drag, a click, or the like. Illustratively, the third input may be a single click operation on the display area 521 of fig. 5C.
In one possible implementation, the first interface includes a third scrolling window that displays a third page, which may be the leftmost scrolling window as shown in fig. 17. The electronic device 100 may obtain a screenshot of the entire interface content, including the third page.
In one possible application scenario, the electronic device 100 displays an interface that includes only one scrolling window. As shown in FIG. 1A for scrolling window 13, electronic device 100 may obtain a screenshot of the entire interface content including the page shown in the scrolling window.
In this way, the electronic device 100 may obtain a screen shot image that includes the entire contents of the first page and the second page.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (34)

1. A method of scrolling a screen capture, the method comprising:
the method comprises the steps that the electronic equipment displays a first interface, wherein the first interface comprises a first scroll window and a second scroll window, the first scroll window displays a first part of a first page, and the second scroll window displays a second part of a second page;
after receiving a first input for screen capture, the electronic device controls the first scroll window to display a third part of the first page in response to the first input;
the electronic equipment controls the second scroll window to display a fourth part of the second page;
the electronic device synthesizes and displays a first screen length image, wherein the first screen length image comprises a first part and a third part of the first page and a second part and a fourth part of the second page, and the first part, the second part, the third part and the fourth part are different.
2. The method of claim 1, wherein after the electronic device controls the first scrolling window to display the third portion of the first page, the method further comprises:
the electronic equipment receives a second input of a user aiming at the first interface;
the controlling, by the electronic device, the second scroll window to display a fourth part of the second page specifically includes:
after receiving the second input, the electronic device controls the second scroll window to display a fourth portion of the second page in response to the second input.
3. The method according to claim 1, wherein the controlling, by the electronic device, the second scrolling window to display the fourth portion of the second page specifically comprises:
and after the electronic equipment detects that the first scrolling window displays the bottommost part of the first page, the electronic equipment controls the second scrolling window to display a fourth part of the second page.
4. The method according to any of claims 1-3, wherein after the electronic device controls the second scrolling window to display the fourth portion of the second page, the method further comprises:
the electronic device receiving a third input for the first interface;
the electronic equipment synthesizes and displays the first screen-cut long image, and specifically comprises:
in response to the third input, the electronic device synthesizes and displays the first screen-length image.
5. The method according to any of claims 1-3, wherein the electronic device synthesizes and displays the first screen-length image, specifically comprising:
and after the electronic equipment detects that the second scrolling window displays the bottommost part of the second page, the electronic equipment synthesizes and displays the first long screen image.
6. The method of claim 1, wherein before the electronic device controls the first scrolling window to display the third portion of the first page, the method further comprises:
the electronic equipment receives a first dragging operation that a user drags the first page upwards;
the controlling, by the electronic device, the first scroll window to display the third portion of the first page specifically includes:
in response to the first drag operation, the electronic device controls the first scrolling window to display a third portion of the first page.
7. The method of claim 6, wherein after the electronic device controls the first scrolling window to display the third portion of the first page, the method further comprises:
the electronic device controls the first scrolling window to display a fifth portion of the first page, the fifth portion being below the third portion in the first page; the first screen shot image further comprises a fifth part of the first page.
8. The method of claim 6, wherein after the electronic device controls the first scrolling window to display the third portion of the first page in response to the first drag operation, the method further comprises:
when the electronic equipment responds to the first dragging operation and controls the first scroll window to display the third part of the first page for a duration time which is greater than a first preset time threshold value, the electronic equipment controls the first scroll window to display the first part of the first page;
and the electronic equipment controls the first scrolling window to be automatically scrolled and displayed to the third part of the first page.
9. The method according to claim 6, wherein the controlling, by the electronic device, the second scrolling window to display the fourth portion of the second page specifically comprises:
and after receiving the first dragging operation, the electronic equipment controls the second scroll window to display a fourth part of the second page.
10. The method of any of claims 1, 6, or 8, wherein after the electronic device controls the first scrolling window to display the third portion of the first page, the method further comprises:
the electronic device controls the first scrolling window to display a fifth portion of the first page, the fifth portion being below the third portion in the first page;
the electronic equipment receives a second dragging operation of a user for dragging the first page downwards;
in response to the second drag operation, the electronic device controls the first scrolling window to display a third portion of the first page.
11. The method of claim 10, wherein after the electronic device controls the first scrolling window to display the third portion of the first page in response to the second drag operation, the method further comprises:
the electronic equipment controls the first scroll window to display a fifth part of the first page, and the first long screen image further comprises the fifth part of the first page.
12. The method of any of claim 10, wherein after the electronic device controls the first scrolling window to display the third portion of the first page in response to the second drag operation, the method further comprises:
when the electronic device responds to the second dragging operation and controls the first scroll window to display the first part of the first page for a duration time which is greater than a second preset time threshold, the electronic device controls the first scroll window to display a fifth part of the first page;
the electronic equipment controls the first scrolling window to automatically scroll and display a seventh part of the first page, wherein the seventh part is below the fifth part in the first page; the first screen length image further comprises a fifth part of the first page and a seventh part of the first page.
13. The method according to claim 10, wherein the controlling, by the electronic device, the second scrolling window to display the fourth portion of the second page specifically comprises:
after receiving the second drag operation, the second drag operation is performed, and the electronic equipment controls the second scroll window to display a fourth part of the second page.
14. The method of any of claims 1-3 and 6-13, wherein before the electronic device controls the second scrolling window to display the fourth portion of the second page, the method further comprises:
the electronic equipment receives a third dragging operation of dragging the second page upwards by a user;
the controlling, by the electronic device, the second scroll window to display a fourth portion of the second page specifically includes:
in response to the third dragging operation, the electronic device controls the second scrolling window to display a fourth portion of the second page.
15. The method of claim 14, wherein after the electronic device controls the second scrolling window to display the fourth portion of the second page, the method further comprises:
the electronic device controls the second scrolling window to display a sixth portion of the second page, the sixth portion being below the fourth portion in the second page; wherein the first screen shot image further comprises a sixth portion of the second page.
16. The method according to claim 14, wherein after the electronic device controls the second scrolling window to display a fourth portion of the second page in response to the third dragging operation, the method further comprises:
when the electronic device responds to the third dragging operation and controls the second scroll window to display the fourth part of the second page, the duration of the fourth part of the second page is larger than a third preset time threshold, the electronic device controls the second scroll window to display the second part of the second page;
and the electronic equipment controls the second scrolling window to automatically scroll and display to a fourth part of the second page.
17. The method according to claim 14, wherein the controlling, by the electronic device, the second scrolling window to display a fourth portion of the second page comprises:
and after the electronic equipment receives the first dragging operation, the electronic equipment synthesizes and displays a first long screen image.
18. The method of any of claims 1-3, 6-13, 14, or 16, wherein after the electronic device controls the second scrolling window to display the fourth portion of the second page, the method further comprises:
the electronic device controls the second scrolling window to display a sixth portion of the second page, the sixth portion is below the fourth portion in the second page;
the electronic equipment receives a fourth dragging operation of dragging the second page downwards by the user;
in response to the fourth dragging operation, the electronic device controls the second scroll window to display a fourth portion of the second page.
19. The method of claim 18, wherein after the electronic device controls the second scrolling window to display the fourth portion of the second page in response to the second drag operation, the method further comprises:
and the electronic equipment controls the second scroll window to display a sixth part of the second page, and the first long screen image further comprises the sixth part of the second page.
20. The method according to any one of claims 18, wherein, in said responding to said second drag operation, after the electronic device controls the second scrolling window to display the fourth portion of the second page, the method further includes:
when the electronic device responds to the second dragging operation and controls the second scroll window to display the second part of the second page for a duration time greater than a fourth preset time threshold, the electronic device controls the second scroll window to display a sixth part of the second page;
the electronic equipment controls the second scrolling window to automatically scroll and display to an eighth part of the second page, wherein the eighth part is below the sixth part in the second page; the first screen length image further comprises a sixth part of the second page and an eighth part of the second page.
21. The method according to claim 18, wherein the controlling, by the electronic device, the second scrolling window to display the fourth portion of the second page includes:
and after receiving the second dragging operation, the electronic equipment synthesizes and displays a first long screen image.
22. The method according to claim 1, wherein the electronic device, after receiving the first input for screen capture, controls the first scroll window to display the third portion of the first page, and specifically comprises:
the electronic equipment starts to control the first rolling window to be rolled and displayed to a third part of the first page at a preset speed at a first time after receiving the first input;
the controlling, by the electronic device, the second scroll window to display a fourth portion of the second page specifically includes:
and the electronic equipment starts to control the second scrolling window to be displayed to a fourth part of the second page in a scrolling manner at the preset speed at the first moment after the first input is received.
23. The method of claim 22, wherein after the electronic device displays the third portion of the first page in the first scrolling window and the fourth portion of the second page in the second scrolling window, the method further comprises:
the electronic equipment receives a fourth input of the user aiming at the first interface;
the electronic equipment synthesizes and displays the first screen-cut long image, and specifically comprises:
in response to the fourth input, the electronic device synthesizes and displays the first screen-length image.
24. The method according to any one of claims 1-23, further comprising:
the electronic equipment receives a fifth input of the user aiming at the first interface;
and the electronic equipment responds to the fifth input and controls and changes the preset speed of the scrolling display of the first scrolling window.
25. The method of any one of claims 1-24, further comprising:
responding to the first input, the electronic equipment intercepts a first part of the first page displayed in the first rolling window to obtain a first image;
when the electronic equipment controls the first scrolling window to display the third part of the first page, the electronic equipment intercepts the third part of the first page displayed in the first scrolling window to obtain a third image;
the electronic equipment synthesizes a first column screen capture image, wherein the first column screen capture image comprises the first image and the third image;
the electronic equipment intercepts a second part of the second page in the two rolling windows to obtain a second image;
when the electronic equipment controls the first scrolling window to display the fourth part of the second page, the electronic equipment intercepts the fourth part of the second page displayed in the second scrolling window to obtain a fourth image;
the electronic equipment synthesizes to obtain a second subfield screenshot image, wherein the second subfield screenshot image comprises the second image and the fourth image;
the electronic equipment synthesizes and displays a first long screen image, and specifically comprises:
the electronic equipment synthesizes and obtains the first screenshot image based on the first subfield screenshot image and the second subfield screenshot image, and displays the first screenshot image.
26. The method according to claim 25, wherein the electronic device synthesizes the first screenshot image based on the first and second screenshot images, and specifically comprises:
and the electronic equipment splices the second subfield screenshot image to the first direction of the first subfield screenshot image to obtain the first long screenshot image, wherein the second rolling window is in the first direction of the first rolling window.
27. The method according to claim 26, wherein the electronic device stitches the second subfield screenshot image into a first direction of the first subfield screenshot image to obtain the first subfield long image, and specifically comprises:
when the length of the first subfield screenshot image in the second direction is larger than the length of the second subfield screenshot image in the second direction, the electronic device splices the second subfield screenshot image in the first direction of the first subfield screenshot image and splices a preset background image in the first direction of the first subfield screenshot image and the second direction of the second subfield screenshot image;
the first direction is perpendicular to the second direction, the width of the preset background image in the first direction is the same as the width of the second subfield screenshot image in the first direction, and the sum of the length of the preset background image in the second direction and the length of the second subfield screenshot image in the second direction is the same as the length of the first subfield screenshot image in the second direction.
28. The method according to claim 26, wherein the electronic device stitches the second subfield screenshot image into a first direction of the first subfield screenshot image to obtain the first subfield long image, and specifically comprises:
when the length of the first column-cut screenshot image in the second direction is smaller than the length of the second column-cut screenshot image in the second direction, the electronic equipment splices the second column-cut screenshot image in the first direction of the first column-cut screenshot image and splices a preset image in the second direction of the first column-cut screenshot image and the third direction of the second column-cut screenshot image;
the first direction is perpendicular to the second direction, the third direction is opposite to the first direction, the width of the preset background image in the first direction is the same as the width of the first subfield screenshot image in the first direction, and the sum of the length of the preset background image in the second direction and the length of the first subfield screenshot image in the second direction is the same as the length of the second subfield screenshot image in the second direction.
29. The method according to any one of claims 27 and 28, wherein the presetting the background image specifically comprises:
the preset background image comprises a pure color image or an image with a pattern;
and the pattern of the preset background image is obtained by intercepting the first column screenshot image or the second column screenshot image.
30. The method of claim 1, further comprising:
the first interface further comprises a third scrolling window, the third scrolling window displaying a ninth portion of a third page;
after the electronic device receives a first input for screen capture, the electronic device controls the third scroll window to display a tenth part of the third page;
the first screen length image further includes a ninth portion and a tenth portion of the third page, wherein the first portion, the second portion, the third portion, the fourth portion, the ninth portion, and the tenth portion are all different.
31. A method of scrolling a screen capture, the method comprising:
the electronic equipment displays a second interface;
the second interface comprises a first display area and a second display area;
the first display area displays a fourth page;
the second display area includes a fourth scrolling window that displays an eleventh portion of a fifth page;
after the electronic equipment receives a sixth input for screen capture by a user, the electronic equipment captures the fourth page displayed in the first display area to obtain a third subfield screen capture image, and captures an eleventh part of the fifth page displayed in the fourth scroll window to obtain an eleventh image;
the electronic equipment controls the fourth scrolling window to display a twelfth part of the fifth page, and intercepts the twelfth part displayed in the fourth scrolling window to obtain a twelfth image;
the electronic equipment synthesizes a fourth column screen capture image, wherein the fourth column screen capture image comprises the eleventh image and the twelfth image;
and the electronic equipment splices the third subfield screenshot image and the fourth subfield screenshot image to obtain a second screenshot length image.
32. An electronic device, comprising: one or more processors, a display screen, one or more memories; wherein the display screen, one or more memories for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-31, are coupled with the one or more processors.
33. A computer-readable storage medium comprising instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-31.
34. A computer program product, characterized in that, when run on the electronic device, causes the electronic device to perform the method of any of claims 1-31.
CN202110350586.4A 2021-03-31 2021-03-31 Method and device for scrolling screen capture Pending CN115145457A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202110350586.4A CN115145457A (en) 2021-03-31 2021-03-31 Method and device for scrolling screen capture
PCT/CN2022/083234 WO2022206645A1 (en) 2021-03-31 2022-03-26 Method and apparatus for scrolling to capture screenshot
EP22778827.0A EP4296840A1 (en) 2021-03-31 2022-03-26 Method and apparatus for scrolling to capture screenshot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110350586.4A CN115145457A (en) 2021-03-31 2021-03-31 Method and device for scrolling screen capture

Publications (1)

Publication Number Publication Date
CN115145457A true CN115145457A (en) 2022-10-04

Family

ID=83404440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110350586.4A Pending CN115145457A (en) 2021-03-31 2021-03-31 Method and device for scrolling screen capture

Country Status (3)

Country Link
EP (1) EP4296840A1 (en)
CN (1) CN115145457A (en)
WO (1) WO2022206645A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094628A (en) * 2015-07-31 2015-11-25 联想(北京)有限公司 Screen capture method and electronic device
CN105159593A (en) * 2015-09-18 2015-12-16 华中师范大学 Multipoint touch method, virtual driver and system under multi-screen splitting mode
CN109240577A (en) * 2018-09-25 2019-01-18 维沃移动通信有限公司 A kind of screenshotss method and terminal
CN110737386A (en) * 2019-09-06 2020-01-31 华为技术有限公司 screen capturing method and related equipment
CN110780796A (en) * 2019-10-31 2020-02-11 维沃移动通信有限公司 Screen capturing method and electronic equipment
US20200348825A1 (en) * 2019-05-01 2020-11-05 Google Llc Interface for multiple simultaneous interactive views

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094628A (en) * 2015-07-31 2015-11-25 联想(北京)有限公司 Screen capture method and electronic device
CN105159593A (en) * 2015-09-18 2015-12-16 华中师范大学 Multipoint touch method, virtual driver and system under multi-screen splitting mode
CN109240577A (en) * 2018-09-25 2019-01-18 维沃移动通信有限公司 A kind of screenshotss method and terminal
US20200348825A1 (en) * 2019-05-01 2020-11-05 Google Llc Interface for multiple simultaneous interactive views
CN110737386A (en) * 2019-09-06 2020-01-31 华为技术有限公司 screen capturing method and related equipment
CN110780796A (en) * 2019-10-31 2020-02-11 维沃移动通信有限公司 Screen capturing method and electronic equipment

Also Published As

Publication number Publication date
WO2022206645A1 (en) 2022-10-06
EP4296840A1 (en) 2023-12-27

Similar Documents

Publication Publication Date Title
CN110781688B (en) Machine translation method and electronic equipment
US10366519B2 (en) Operating method for image and electronic device supporting the same
WO2021036571A1 (en) Desktop editing method and electronic device
CN110119296B (en) Method for switching parent page and child page and related device
CN110377204B (en) Method for generating user head portrait and electronic equipment
CN111669462B (en) Method and related device for displaying image
CN112114912A (en) User interface layout method and electronic equipment
CN113132526B (en) Page drawing method and related device
CN112783379A (en) Method for selecting picture and electronic equipment
CN112068907A (en) Interface display method and electronic equipment
CN113986070B (en) Quick viewing method for application card and electronic equipment
CN112529645A (en) Picture layout method and electronic equipment
CN115115679A (en) Image registration method and related equipment
CN112637477A (en) Image processing method and electronic equipment
EP4131055A1 (en) Annotation method and electronic device
CN113448658A (en) Screen capture processing method, graphical user interface and terminal
CN115484387B (en) Prompting method and electronic equipment
CN116204254A (en) Annotating page generation method, electronic equipment and storage medium
CN115145457A (en) Method and device for scrolling screen capture
WO2023274093A1 (en) Method and apparatus for scrolling to capture screenshot
CN115484391B (en) Shooting method and electronic equipment
CN116204093B (en) Page display method and electronic equipment
EP4246426A1 (en) Image processing method and electronic device
CN115878232A (en) Display method and electronic equipment
CN117348953A (en) Display method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination