CN110633038A - Screen capturing method and electronic equipment - Google Patents

Screen capturing method and electronic equipment Download PDF

Info

Publication number
CN110633038A
CN110633038A CN201910806626.4A CN201910806626A CN110633038A CN 110633038 A CN110633038 A CN 110633038A CN 201910806626 A CN201910806626 A CN 201910806626A CN 110633038 A CN110633038 A CN 110633038A
Authority
CN
China
Prior art keywords
screen
display information
target display
input
display
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
CN201910806626.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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910806626.4A priority Critical patent/CN110633038A/en
Publication of CN110633038A publication Critical patent/CN110633038A/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/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/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

Landscapes

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

Abstract

The invention provides a screen capture method and electronic equipment, wherein the method comprises the following steps: receiving a first input, and acquiring target display information, wherein the target display information is information displayed by a display screen of the electronic equipment when a display page displayed by the display screen slides from a first screen to an Nth screen, and N is a positive integer greater than 1; displaying the display information of the first screen in the target display information; and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information. According to the method provided by the invention, when the user selects the target display information through the second input, the obtained long screenshot picture can be consistent on the display content because the content included in the target display information does not change along with the change of time.

Description

Screen capturing method and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a screen capturing method and electronic equipment.
Background
The screen capture function can capture contents displayed on a screen of the electronic device, and as the technology matures, a plurality of display contents which cannot be accommodated in one screen can be captured into one image, namely, the screen capture function is long.
At present, when a user triggers a long screen capture function, an electronic device first obtains a plurality of screen capture pictures, and then splices the screen capture pictures to construct a long screen capture picture. However, if the content displayed on the screen is dynamically changed during the screen capture, for example, a dynamically changing list is captured, and the list cannot be displayed on one screen. If the list content is obtained through multiple screen shots, due to a time difference between the multiple screen shots, the content of the subsequent screen shots may change, so that the display content in the long screen shot picture is inconsistent.
Disclosure of Invention
The embodiment of the invention provides a screen capturing method and electronic equipment, and aims to solve the problem that when dynamic changing information on a display screen is captured for multiple times, the content of a later screen capturing may change, so that the display content in a long screen capturing picture is inconsistent.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a screen capture method applied to an electronic device, including:
receiving a first input, and acquiring target display information, wherein the target display information is information displayed by a display screen of the electronic equipment when a display page displayed by the display screen slides from a first screen to an Nth screen, and N is a positive integer greater than 1;
displaying the display information of the first screen in the target display information;
and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the first receiving module is used for receiving a first input and acquiring target display information, wherein the target display information is information displayed by a display screen of the electronic equipment when a display page displayed by the display screen slides from a first screen to an Nth screen, and N is a positive integer greater than 1;
the first display module is used for displaying the display information of the first screen in the target display information;
and the second receiving module is used for receiving a second input and obtaining the long screenshot picture according to part or all of the content of the target display information.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the screen capturing method described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the screen capturing method are implemented.
In the embodiment of the invention, a first input is received, and target display information is obtained, wherein the target display information is information displayed by a display screen of the electronic equipment when a display page displayed by the display screen slides from a first screen to an Nth screen, and N is a positive integer greater than 1; displaying the display information of the first screen in the target display information; and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information. Therefore, when the user selects the target display information through the second input, the obtained long screen capture pictures can be consistent on the display content because the content included in the target display information does not change along with the change of time.
Drawings
FIG. 1 is a flowchart of a screen capture method provided by an embodiment of the invention;
FIG. 2 is a second flowchart of a screen capture method according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a screen capture method provided by the embodiment of the present invention;
FIG. 4 is a block diagram of an electronic device according to an embodiment of the present invention;
FIG. 5 is a second block diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a third structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a screen capturing method according to an embodiment of the present invention, and as shown in fig. 1, the embodiment provides a screen capturing method applied to an electronic device, including the following steps:
step 101, receiving a first input, and acquiring target display information, where the target display information is information displayed by a display screen of the electronic device when a display page displayed by the display screen slides from a first screen to an Nth screen, and N is a positive integer greater than 1.
Specifically, the first input may be an input that a user triggers the long screenshot mode, and the first input may be a click input, a voice input, a slide input, or an input that a function button is pressed, which is not limited herein. The electronic device may provide an option or switch for the user to trigger the electronic device to enter the long screenshot mode via the first input. For example, when the user selects an option (i.e., an option to enter the long screenshot mode) or turns on a switch function key (i.e., turns on the long screenshot mode), the electronic device enters the long screenshot mode provided by the embodiment of the present invention, i.e., performs screenshot by using the screenshot method provided by the embodiment of the present invention.
After receiving the first input, the electronic device starts an instant cache mechanism of the display page, that is, information (target display information) of the display page from the first screen to the nth screen is acquired, and the information can be cached in a buffer area, and the cached information of the display page of the N screen can be regarded as the information of the display page of the N screen acquired within a preset time after the electronic device receives the first input. The shorter the preset time is, the closer the acquisition time of each screen in the N-screen display page is, so that the higher the consistency of the display content of each screen is, that is, the display content of each screen can be regarded as the display content displayed at the same time. In addition, the cached information of the display page of the N screens can also be cached in a screen capture mode.
The page currently displayed on the display screen may be used as the first screen, and the position of the first screen may also be specified, for example, the page currently displayed on the display screen is used as a reference point, and a page that is distant from the currently displayed page by M (M is a positive integer) is used as the first screen, which may be specifically set according to an actual situation.
The value of N is not greater than the maximum screen depth that the long screenshot picture can include, and N may be 20, or may be other numerical values, and may be specifically set according to an actual situation, and is not limited herein.
And 102, displaying the display information of the first screen in the target display information.
After the electronic equipment acquires the target display information, the display information of a first screen in the target display information is displayed on the display screen, so that a user can conveniently perform long screen capture operation from the first screen.
And 103, receiving a second input, and obtaining a long screenshot picture according to part or all of the content of the target display information.
The second input may be one or more of a press input, a click input, or a slide input, which is not limited herein. After step 102, target display information is displayed on the display screen, that is, display information acquired by the electronic device in advance is displayed on the display screen. The user may select some or all of the content of the target display information via a second input.
When the electronic equipment acquires the target display information, if the acquired screenshot of the target display information is acquired, the selection process is a process of selecting part or all of the content of the screenshot of the target display information; if the electronic device obtains data of the target display information itself (i.e. not in the form of a screenshot), the selection process may be regarded as a process of selecting and screenshot part or all of the content of the target display information.
Because the electronic equipment acquires the information of the display page of the N screens which can be included in the long screenshot picture in advance, when the user selects the target display information through the second input, the content included in the target display information does not change along with the change of time, and therefore the acquired long screenshot picture is consistent in the display content.
In an embodiment of the present invention, the electronic Device may be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The screen capture method of the embodiment of the invention receives a first input, and acquires target display information, wherein the target display information is information displayed by a display screen of an electronic device when a display page displayed by the display screen slides from a first screen to an Nth screen, and N is a positive integer greater than 1; displaying the display information of the first screen in the target display information; and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information. Therefore, when the user selects the target display information through the second input, the obtained long screen capture pictures can be consistent on the display content because the content included in the target display information does not change along with the change of time.
Further, after step 101 and before step 102, the screen capture method further includes:
storing the target display information in a cache of the electronic device;
after the step 103 of obtaining the long screenshot picture according to the partial or whole content of the target display information, the method further includes:
and clearing the target display information in the cache.
Specifically, the target display information is stored in the cache, the instantaneity of the electronic equipment for displaying the target display information can be improved, the information displayed on the display screen is quickly replaced by the first screen information of the target display information, the faster the electronic equipment processes the process, the more the user cannot perceive the change process, the change process is not perceptible to the user, and the user experience can be improved. In addition, after the long screenshot picture is acquired, the target display information is used completely, and at the moment, the target display information can be cleared from the cache, so that the cache space is saved.
Referring to fig. 2, fig. 2 is a second flowchart of a screen capturing method according to an embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step 201, receiving the first input, and controlling the display page to slide from the first screen to the nth screen within a preset time.
The preset time can be set according to actual conditions, the smaller the preset time is, the closer the acquisition time of each screen in the N-screen display page is, and thus, the higher the consistency of the display content of each screen is, that is, the display content of each screen can be regarded as the display content displayed at the same time.
Step 202, determining the display information of the first screen to the Nth screen as the target display information.
In the process that the electronic equipment controls the display page to slide from the first screen to the Nth screen, the content displayed on the display screen can be loaded, and the electronic equipment can store the display information from the first screen to the Nth screen and cache the display information into the buffer area. The display information of the first screen to the Nth screen is target display information.
Step 201-step 202 are a specific implementation manner of step 101. The process of the electronic device obtaining the target display information is fast and is not perceptible to the user.
And 203, displaying the display information of the first screen in the target display information.
After the electronic equipment acquires the target display information, the display information of a first screen in the target display information is displayed on the display screen, so that a user can conveniently perform long screen capture operation from the first screen.
And 204, receiving a second input, and controlling the display screen to slide and display the target display information by taking the display information of the first screen as a starting point.
The second input may be one or more of a press input, a click input, or a slide input. And receiving a second input of the user to control the display page on the display screen to slide. The display page loads the content in the target display information, for example, if the display page slides to the second screen, the electronic device loads the information of the second screen in the target display information. In response to the second input, the display page may slide from the first screen up to the Nth screen.
And step 205, determining the display information of the last screen according to the sliding end position.
According to the second input, the display page is controlled to slide, for example, the user slides on the display page by using a finger, and the display page slides along with the sliding of the finger. At the end position of the sliding of the display page, that is, the position where the sliding of the display page finally stops, the last screen of the display page may be determined, and at this time, the display information of the last screen may be determined.
Furthermore, in the process of sliding the display page, the user can also perform trigger input on the function keys on the display page, and the display page responds to the trigger input, so that in the long screenshot picture, the screenshot of the screenshot picture of the screen can be the information displayed after the display page responds to the trigger input.
When the sliding of the display page is judged to be finished, the judgment can be carried out according to whether the sliding stop of the display page exceeds the preset time length. If the sliding stop duration of the display page exceeds the preset duration, judging that the sliding of the display page is finished, wherein the display page does not respond to the sliding input of a user, and the second input comprises the sliding input; if the sliding stop duration of the display page does not exceed the preset duration, it is judged that the sliding of the display page is not finished, and at the moment, the user can still slide the display page, namely, the display page responds to the sliding input of the user.
And step 206, generating the long screenshot picture according to the display information from the first screen to the last screen.
In the sliding display process of the display page, the electronic equipment can capture the display page, and the capture screens from the first screen to the last screen are spliced to generate a long capture screen picture.
Step 204-step 206 are a specific implementation manner of step 103.
And step 207, displaying the updated display information of the display page on the first screen.
And after the long screenshot picture is generated, refreshing the display page and displaying the refreshed (or updated) display information of the first screen so that the user can continuously view the content displayed on the display screen in real time before the first input.
The screen capture method of the embodiment of the invention receives the first input and controls the display page to slide from the first screen to the Nth screen within the preset time; determining the display information of the first screen to the Nth screen as the target display information; displaying the display information of the first screen in the target display information; receiving a second input, and controlling the display screen to slide and display the target display information by taking the display information of the first screen as a starting point; determining display information of the last screen according to the sliding end position; and generating the long screen capture picture according to the display information from the first screen to the last screen. Therefore, the user can select the target display information through the second input, and the obtained long screen capture pictures can be consistent on the display content because the content included in the target display information does not change along with the change of time.
The screen capture method provided by the embodiment of the invention is explained in detail below.
As shown in fig. 3, the screen capture method provided in this embodiment includes the following steps:
step 301, the user triggers a safe long screen capture function of the long screen capture.
When the user triggers the long screen capture (i.e. the user triggers the long screen capture mode), the long screen capture function can be turned on through an option or a switch provided by the electronic device. And when the user selects an option or turns on a switch, the user defaults to enter the safe long screen capture and starts to execute the step 302, otherwise, the user performs the operation according to the existing long screen capture mode.
Step 302, start the instant cache mechanism of the complete page, start to cache the content to the buffer area from the current screen.
In this step, an instant cache mechanism of the complete page is started, that is, the page state content is cached in the buffer area from the current screen, the cached page state content is the content including all the state information currently displayed by the page in the instant static state, and step 303 is executed to expand the page cache range.
And 303, automatically sliding the page downwards in a short time until the depth of the N screens is maximized, and continuously caching in the whole process, namely automatically caching the page state content sliding the screen downwards to the depth of the N screens in the short time.
And automatically sliding the page downwards within a short time (namely preset time) until the depth of the maximum N screens is reached, continuously caching the page state content in the whole process, wherein the content is consistent with the description information in the step 202. The depth of N screen means the maximum screen depth of the long screen shot, and is generally about 20, and the value may be increased or decreased as appropriate. After the cache touches the maximum depth N screen, the caching process is automatically ended, and then step 304 is executed.
And step 304, after the cache is finished, automatically rolling back the page state to the state when the user triggers the long screen capture, namely, automatically rolling back the page state to the state when the user triggers the long screen capture after the cache is finished.
After the cache is finished, the page display content is automatically rolled back to a state when the user triggers the long screen capture (namely the user triggers the long screen capture mode), so that the user can conveniently start the long screen capture content processing operation. This step functions to restore the display position of the display page on the display screen to the original position. The entire page instant caching process described above, i.e., beginning with step 302, is not perceptible to the user.
And 305, automatically extracting cache contents from the buffer area for the long screen capture of the user in the long screen capture process of the user.
In this step, the screen capturing operation in the prior art can be adopted for screen capturing. When the user selects the next screen, the screen content of the next screen is automatically extracted from the buffer area and displayed in the screen capture preview, and the screen content is stored simultaneously, so that the subsequent screen capture pictures can be spliced conveniently. When the user continues to select the next screen, the electronic device extracts the cache content of the corresponding screen from the buffer area until the user finishes long screen capture, and when the user selects to save, step 306 is executed.
And step 306, after the long screen capture is finished, splicing and combining the contents of all screens in the long screen capture process of the user into a final long screen capture for storage.
And when the long screen capture is finished, if the user selects to store the long screen capture picture, splicing the screen capture pictures acquired in the previous step to generate a complete long screen capture picture. Finally, step 307 is performed.
And 307, emptying the page instant cache of the buffer area, and recovering the page real-time refreshing.
In this step, the page state content stored in the buffer area for the long screen capture process can be emptied, and the real-time update state of the page displayed when the receiving user triggers the long screen capture mode is displayed.
The embodiment of the invention can keep the complete state of the instantaneous page for the long screenshot of the user when the page dynamically changes, thereby ensuring the content consistency of the result finally obtained by the long screenshot, and avoiding the situation that the content of the finally integrated long screenshot picture is disordered due to the dynamic change of the page in each screen long screenshot process when the page dynamically changes, such as a running list or a flow consumption list and the like.
Referring to fig. 4, fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device 400 includes:
a first receiving module 401, configured to receive a first input, and acquire target display information, where the target display information is information displayed by a display screen of the electronic device when a display page displayed by the display screen slides from a first screen to an nth screen, and N is a positive integer greater than 1;
a first display module 402, configured to display information of the first screen in the target display information;
and a second receiving module 403, configured to receive a second input, and obtain a long screenshot picture according to a part or all of the content of the target display information.
Further, the first receiving module 401 includes:
the first receiving submodule is used for receiving the first input and controlling the display page to slide from the first screen to the Nth screen within preset time;
and the first determining submodule is used for determining the display information of the first screen to the Nth screen as the target display information.
Further, the second receiving module 403 includes:
the second receiving submodule is used for receiving a second input and controlling the display screen to slide and display the target display information by taking the display information of the first screen as a starting point;
the second determining submodule is used for determining the display information of the last screen according to the sliding end position;
and the generation submodule is used for generating the long screenshot picture according to the display information from the first screen to the last screen.
Further, the electronic device 400 further includes:
and the second display module is used for displaying the display information of the first screen after the display page is updated.
Further, the electronic device 400 further includes:
the storage module is used for storing the target display information in a cache of the electronic equipment;
and the clearing module is used for clearing the target display information in the cache. The electronic device 400 can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 3, and details are not repeated here to avoid repetition.
The electronic device 400 of the embodiment of the present invention receives a first input, and obtains target display information, where the target display information is information displayed by a display screen of the electronic device when a display page displayed by the display screen slides from a first screen to an nth screen, and N is a positive integer greater than 1; displaying the display information of the first screen in the target display information; and receiving a second input, and obtaining the long screenshot picture according to part or all of the content of the target display information, so that when the user selects the target display information through the second input, the obtained long screenshot picture can be consistent in the display content because the content included in the target display information does not change along with the change of time.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, and as shown in fig. 5, the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to receive a first input, and acquire target display information, where the target display information is information displayed by a display screen of the electronic device when a display page displayed by the display screen slides from a first screen to an nth screen, and N is a positive integer greater than 1;
displaying the display information of the first screen in the target display information;
and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information.
Further, the processor 510 is further configured to receive the first input, and control the display page to slide from the first screen to the nth screen within a preset time;
and determining the display information of the first screen to the Nth screen as the target display information.
Further, the processor 510 is further configured to receive a second input, and control the display screen to slide and display the target display information with the display information of the first screen as a starting point;
determining display information of the last screen according to the sliding end position;
and generating the long screen capture picture according to the display information from the first screen to the last screen.
Further, the processor 510 is further configured to display the updated display information of the display page on the first screen.
Further, the processor 510 is further configured to store the target display information in a cache of the electronic device;
and after the long screenshot picture is obtained according to part or all of the content of the target display information, the target display information in the cache is emptied. The electronic device 500 can implement the processes implemented by the electronic device in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here.
The electronic device 500 of the embodiment of the present invention receives a first input, and obtains target display information, where the target display information is information displayed by a display screen of the electronic device when a display page displayed by the display screen slides from a first screen to an nth screen, and N is a positive integer greater than 1; displaying the display information of the first screen in the target display information; and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information. Therefore, when the user selects the target display information through the second input, the obtained long screen capture pictures can be consistent on the display content because the content included in the target display information does not change along with the change of time.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the screen capturing method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present invention, and as shown in fig. 6, an electronic device 600 includes: a processor 601, a memory 602 and a computer program stored on and executable on said memory 602, the various components in the server 600 being coupled together by a bus system 603. It will be appreciated that the bus system 603 is used to enable communications for connections between these components.
The processor 601 is configured to receive a first input, and acquire target display information, where the target display information is information displayed by a display screen of the electronic device when a display page displayed by the display screen slides from a first screen to an nth screen, and N is a positive integer greater than 1;
displaying the display information of the first screen in the target display information;
and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information.
Further, the processor 601 is further configured to receive the first input, and control the display page to slide from the first screen to the nth screen within a preset time;
and determining the display information of the first screen to the Nth screen as the target display information.
Further, the processor 601 is further configured to receive a second input, and control the display screen to slide and display the target display information with the display information of the first screen as a starting point;
determining display information of the last screen according to the sliding end position;
and generating the long screen capture picture according to the display information from the first screen to the last screen.
Further, the processor 601 is further configured to display the updated display information of the display page on the first screen.
Further, the processor 601 is further configured to store the target display information in a cache of the electronic device;
and after the long screenshot picture is obtained according to the partial or all content of the target display information, the target display information in the cache is emptied.
The electronic device 600 can implement the processes implemented by the electronic device in the foregoing embodiments, and in order to avoid repetition, the details are not described here.
The electronic device 600 of the embodiment of the present invention receives a first input, and obtains target display information, where the target display information is information displayed by a display screen of the electronic device when a display page displayed by the display screen slides from a first screen to an nth screen, and N is a positive integer greater than 1; displaying the display information of the first screen in the target display information; and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information. Therefore, when the user selects the target display information through the second input, the obtained long screen capture pictures can be consistent on the display content because the content included in the target display information does not change along with the change of time.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the screen capturing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A screen capture method is applied to electronic equipment and is characterized by comprising the following steps:
receiving a first input, and acquiring target display information, wherein the target display information is information displayed by a display screen of the electronic equipment when a display page displayed by the display screen slides from a first screen to an Nth screen, and N is a positive integer greater than 1;
displaying the display information of the first screen in the target display information;
and receiving a second input, and obtaining a long screen capture picture according to part or all of the content of the target display information.
2. The method of claim 1, wherein receiving the first input to obtain the target display information comprises:
receiving the first input, and controlling the display page to slide from the first screen to the Nth screen within preset time;
and determining the display information of the first screen to the Nth screen as the target display information.
3. The method of claim 1, wherein receiving a second input to obtain a long screenshot according to some or all of the content of the target display information comprises:
receiving a second input, and controlling the display screen to slide and display the target display information by taking the display information of the first screen as a starting point;
determining display information of the last screen according to the sliding end position;
and generating the long screen capture picture according to the display information from the first screen to the last screen.
4. The method according to claim 1, wherein after the receiving the second input and obtaining the long screenshot picture according to part or all of the content of the target display information, further comprising:
and displaying the updated display information of the display page on the first screen.
5. The method according to claim 1, wherein after the obtaining of the target display information and before the displaying of the display information of the first screen in the target display information, further comprising:
storing the target display information in a cache of the electronic device;
after the long screenshot picture is obtained according to the partial or whole content of the target display information, the method further comprises the following steps:
and clearing the target display information in the cache.
6. An electronic device, comprising:
the first receiving module is used for receiving a first input and acquiring target display information, wherein the target display information is information displayed by a display screen of the electronic equipment when a display page displayed by the display screen slides from a first screen to an Nth screen, and N is a positive integer greater than 1;
the first display module is used for displaying the display information of the first screen in the target display information;
and the second receiving module is used for receiving a second input and obtaining the long screenshot picture according to part or all of the content of the target display information.
7. The electronic device of claim 6, wherein the first receiving module comprises:
the first receiving submodule is used for receiving the first input and controlling the display page to slide from the first screen to the Nth screen within preset time;
and the first determining submodule is used for determining the display information of the first screen to the Nth screen as the target display information.
8. The electronic device of claim 6, wherein the second receiving module comprises:
the second receiving submodule is used for receiving a second input and controlling the display screen to slide and display the target display information by taking the display information of the first screen as a starting point;
the second determining submodule is used for determining the display information of the last screen according to the sliding end position;
and the generation submodule is used for generating the long screenshot picture according to the display information from the first screen to the last screen.
9. The electronic device of claim 6, further comprising:
and the second display module is used for displaying the display information of the first screen after the display page is updated.
10. The electronic device of claim 6, further comprising:
the storage module is used for storing the target display information in a cache of the electronic equipment;
and the clearing module is used for clearing the target display information in the cache.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the screen capturing method as claimed in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the screen capturing method as claimed in one of claims 1 to 5.
CN201910806626.4A 2019-08-29 2019-08-29 Screen capturing method and electronic equipment Pending CN110633038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910806626.4A CN110633038A (en) 2019-08-29 2019-08-29 Screen capturing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910806626.4A CN110633038A (en) 2019-08-29 2019-08-29 Screen capturing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN110633038A true CN110633038A (en) 2019-12-31

Family

ID=68969461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910806626.4A Pending CN110633038A (en) 2019-08-29 2019-08-29 Screen capturing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110633038A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521284A (en) * 2011-11-28 2012-06-27 优视科技有限公司 Page screenshot processing method and device based on mobile terminal browser
CN105955604A (en) * 2016-04-20 2016-09-21 乐视控股(北京)有限公司 Method and device for screen capture
CN106802758A (en) * 2017-01-05 2017-06-06 青岛海信移动通信技术股份有限公司 For the treating method and apparatus of screen interception
CN107678640A (en) * 2017-09-07 2018-02-09 深圳天珑无线科技有限公司 A kind of long screenshotss method, apparatus, mobile terminal and computer-readable recording medium
US20180046341A1 (en) * 2016-08-10 2018-02-15 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN107957841A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 Roll screenshotss method and device
CN108279966A (en) * 2018-02-13 2018-07-13 广东欧珀移动通信有限公司 Webpage capture method, apparatus, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521284A (en) * 2011-11-28 2012-06-27 优视科技有限公司 Page screenshot processing method and device based on mobile terminal browser
CN105955604A (en) * 2016-04-20 2016-09-21 乐视控股(北京)有限公司 Method and device for screen capture
US20180046341A1 (en) * 2016-08-10 2018-02-15 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN107957841A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 Roll screenshotss method and device
CN106802758A (en) * 2017-01-05 2017-06-06 青岛海信移动通信技术股份有限公司 For the treating method and apparatus of screen interception
CN107678640A (en) * 2017-09-07 2018-02-09 深圳天珑无线科技有限公司 A kind of long screenshotss method, apparatus, mobile terminal and computer-readable recording medium
CN108279966A (en) * 2018-02-13 2018-07-13 广东欧珀移动通信有限公司 Webpage capture method, apparatus, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CROODS: "滚屏截图 多屏截图的简单实现", 《电脑迷》 *

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN110557566B (en) Video shooting method and electronic equipment
CN108471498B (en) Shooting preview method and terminal
CN109388304B (en) Screen capturing method and terminal equipment
CN110096326B (en) Screen capturing method, terminal equipment and computer readable storage medium
CN110213440B (en) Image sharing method and terminal
CN108897473B (en) Interface display method and terminal
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN111090408A (en) Display method and electronic equipment
CN110753201B (en) Video recording method and device, electronic equipment and storage medium
CN109683802B (en) Icon moving method and terminal
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN108196753B (en) Interface switching method and mobile terminal
CN107741814B (en) Display control method and mobile terminal
CN109542321B (en) Control method and device for screen display content
CN109683768B (en) Application operation method and mobile terminal
CN109710130B (en) Display method and terminal
CN109669656B (en) Information display method and terminal equipment
CN111124223A (en) Application interface switching method and electronic equipment
CN108132749B (en) Image editing method and mobile terminal
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN110308769B (en) Information display method and terminal
CN110333803B (en) Multimedia object selection method and terminal equipment
CN108924413B (en) Shooting method and mobile terminal
CN108021315B (en) Control method and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191231

RJ01 Rejection of invention patent application after publication