CN111679775B - Screen capture method and device, electronic equipment and computer readable storage medium - Google Patents

Screen capture method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111679775B
CN111679775B CN202010501305.6A CN202010501305A CN111679775B CN 111679775 B CN111679775 B CN 111679775B CN 202010501305 A CN202010501305 A CN 202010501305A CN 111679775 B CN111679775 B CN 111679775B
Authority
CN
China
Prior art keywords
screen
current
area
terminal
screen capture
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.)
Active
Application number
CN202010501305.6A
Other languages
Chinese (zh)
Other versions
CN111679775A (en
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.)
Xian Wingtech Information Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology 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 Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN202010501305.6A priority Critical patent/CN111679775B/en
Publication of CN111679775A publication Critical patent/CN111679775A/en
Application granted granted Critical
Publication of CN111679775B publication Critical patent/CN111679775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • 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

Landscapes

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

Abstract

The application relates to the technical field of electronic equipment application, and provides a screenshot method, a screenshot device, electronic equipment and a computer-readable storage medium. The method comprises the following steps: when the situation that the terminal screen is in a quick screen capture mode is monitored, acquiring a current pressing position and a current inclination state corresponding to the situation that a user continuously presses the terminal screen; determining screen capture configuration information of the terminal screen according to the current pressing position and the current inclination state; and performing screen capture and storage according to the screen capture configuration information. By adopting the method, the function of conveniently and quickly screenshot on the screen display area of the mobile phone by one hand can be realized, the screenshot configuration information can be adjusted according to the current pressing position of the user and the current inclination state of the terminal, and the screenshot is carried out on the terminal according to the user's will, so that the screenshot operation is more intelligent and convenient, and different screenshot requirements of the user are met.

Description

Screen capture method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of electronic device application technologies, and in particular, to a method and an apparatus for screenshot, an electronic device, and a computer-readable storage medium.
Background
When people use electronic equipment such as a mobile phone, if a user wants to acquire a display picture of a screen, the user needs to use a screen capture function of the electronic equipment.
Common electronic equipment in the market, such as a mobile phone, has a screen capture function, but screen capture modes all require that screen capture in a fixed area is realized through a specific key combination, such as a power-on key and a volume key, or a finger double-click mode. In view of the fact that the screen size of electronic devices such as mobile phones or tablets and the like currently circulating in the market is basically over 5 inches, a user is difficult to complete screen capture operation with one hand, and different screen capture requirements of the user cannot be met by a single fixed screen capture mode.
Disclosure of Invention
Therefore, it is necessary to provide a screenshot method, an apparatus, an electronic device, and a computer-readable storage medium for conveniently and quickly implementing screenshot of a display area of a terminal.
The embodiment of the application provides a screenshot method, which comprises the following steps:
when the situation that the terminal screen is in a quick screen capture mode is monitored, acquiring a current pressing position and a current inclination state corresponding to the situation that a user continuously presses the terminal screen;
determining screen capture configuration information of the terminal screen according to the current pressing position and the current inclination state;
and performing screen capture and storage according to the screen capture configuration information.
In one embodiment, the determining of the screen capture configuration information of the terminal screen according to the current pressing position and the current tilting state includes:
determining the interception form of the terminal screen according to a set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state;
determining a screen capture area of the terminal screen according to the capture form and the current inclination angle in the current inclination state;
and determining the interception form and the screen interception area as screen interception configuration information of the terminal screen.
In one embodiment, the set pressing regions include a first pressing region at an upper portion of the screen, a second pressing region at a middle portion of the screen, and a third pressing region at a lower portion of the screen.
In one embodiment, the determining the capturing mode of the terminal screen according to the set pressing area to which the current pressing position belongs and the current tilting direction in the current tilting state includes:
if the current pressing position belongs to the second pressing area and the current inclination direction is upward deflection, determining that the intercepting form is a circular screen intercepting form;
if the current pressing position belongs to the second pressing area and the current tilting direction is downward deflection, determining that the screen capturing form is full screen capturing;
if the current pressing position belongs to the first pressing area and the current inclination direction is downward deflection, determining that the screen capturing form is a rectangular downward screen capturing;
and if the current pressing position belongs to the third pressing area and the current inclination direction is upward deflection, determining that the screen capturing form is a rectangular upward screen capturing.
In one embodiment, the determining a screen capture area of the terminal screen according to the capturing form and the current tilt angle in the current tilt state includes:
if the screen capture form is a circular screen capture, determining a circular area which takes the center of the terminal screen as a circle center and the screen capture length corresponding to the current inclination angle as a radius as the screen capture area;
if the screen capture form is full screen capture, determining that the current display interface of the terminal screen is the screen capture area;
if the screen capture form is a rectangular downward screen capture, determining a rectangular area which takes the horizontal position of the current pressing position as a rectangular upper wide side, the width of the terminal screen as a width and the screen capture length corresponding to the current inclination angle as a length as the screen capture area;
if the screen capture form is a rectangular upward screen capture, determining that a rectangular area which takes the horizontal position of the current pressing position as a rectangular lower wide side, the width of the terminal screen as wide and the screen capture length corresponding to the current inclination angle as long is the screen capture area.
In one embodiment, the performing screen capture and saving according to the screen capture area includes:
after the fact that the user releases pressing of the terminal screen is monitored, positioning a screen capturing area in the screen capturing configuration information from a current display picture in the terminal screen;
and intercepting and storing the screen capturing area according to the screen capturing form in the screen capturing configuration information.
The embodiment of the application provides a screenshot device, the device includes:
the information acquisition module is used for acquiring a current pressing position and a current inclination state corresponding to the situation that a user continuously presses the terminal screen when the situation that the terminal screen is in the quick screen capture mode is monitored;
the configuration determining module is used for determining screen capture configuration information of the terminal screen according to the current pressing position and the current inclination state;
and the screen capture module is used for capturing and storing the screen according to the screen capture configuration information.
In one embodiment, the configuration determining module includes:
the form determining unit is used for determining the intercepting form of the terminal screen according to a set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state;
the area determining unit is used for determining a screen capturing area of the terminal screen according to the capturing form and the current inclination angle in the current inclination state;
and the configuration determining unit is used for determining the interception form and the screen interception area as screen interception configuration information of the terminal screen.
The embodiment of the application provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the electronic equipment is characterized in that the processor executes the computer program to realize the steps of the screenshot method provided by any embodiment of the application.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the screenshot method provided in any embodiment of the present application.
According to the screen capture method, the device, the electronic equipment and the computer readable storage medium, the screen capture configuration information of the terminal screen is determined according to the current pressing position and the current inclination state of the terminal corresponding to the current pressing position when the user presses the terminal screen, screen capture is performed and stored according to the screen capture configuration information, the problems that a terminal user is difficult to perform terminal screen capture operation with one hand and cannot meet different screen capture requirements of the user are solved, the function that one hand can conveniently and quickly capture the screen of the display area of the mobile phone screen is achieved, the screen capture configuration information can be adjusted according to the current pressing position and the current inclination state of the terminal of the user, and screen capture is performed on the terminal according to the user intention.
Drawings
FIG. 1 is a flow diagram that illustrates a method for screenshot in one embodiment;
FIG. 2 is a flowchart illustrating the step of determining screen capture configuration information for a terminal screen in one embodiment;
FIG. 3 is a flowchart illustrating a screenshot method according to another embodiment;
FIG. 4 is a block diagram of a screenshot device in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Detailed Description
The purpose, technical solutions and advantages of the present application will become more apparent from the following detailed description of the present application with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The screenshot method can be applied to a screenshot system of the terminal. The terminal can be, but is not limited to, various smart phones, tablet computers, portable wearable devices, personal computers, notebook computers and the like.
In one embodiment, as shown in FIG. 1, a screenshot method is provided. The embodiment is illustrated by applying the method to a terminal, and it can be understood that the method can also be applied to a server, and can also be applied to a system comprising the terminal and the server, and is implemented by interaction between the terminal and the server. In this embodiment, the method includes the steps of:
and 102, when the situation that the terminal screen is in the quick screen capture mode is monitored, acquiring a current pressing position and a current inclination state corresponding to the situation that the user continuously presses the terminal screen.
The shortcut screenshot mode may be understood as a mode in which the terminal can perform the screenshot method in this embodiment. For example, when the terminal is in the quick screen capture mode, the user can perform screen capture operation on a display picture of the terminal screen by pressing the terminal screen and the inclined terminal, and if the terminal is not in the quick screen capture mode, the user cannot perform screen capture when pressing the terminal screen and the inclined terminal. The operation of enabling the terminal to be in the shortcut screen capture mode may be to select the shortcut screen capture mode in the relevant settings of the terminal, or may be to press the screen for a long time, press the power key for a long time, press the HOME key for a long time, or shake the terminal for a short time or left and right, etc. The current pressing position can be understood as the position of the pressing point of the terminal screen by the user at the current moment on the terminal screen. The current tilt state may be understood as a tilt state of a certain direction of the terminal, and may be a tilt state of a width direction of a terminal screen, or a tilt state of a length direction of the terminal screen, where the tilt state may include a tilt direction, a tilt angle, and the like, and the current tilt state may be determined by a gyroscope chip disposed in the terminal.
Specifically, when monitoring that the user performs an operation on the terminal to enter the shortcut screen capture mode, the screen capture device enables the terminal to be in the shortcut screen capture mode, and at this time, a current pressing position corresponding to the user continuously pressing the terminal screen and a current inclination state of the terminal are obtained. The time requirement for the user to continuously press the terminal screen can be preset, and can be continuously pressed for 2s or continuously pressed for 3s, and the setting can be adjusted according to the preference of the user.
And step 104, determining screen capture configuration information of the terminal screen according to the current pressing position and the current inclination state.
The current pressing position can be understood as position information of a pressing point of the terminal screen by the user at the current moment. The current tilt state may be understood as a deflection state of the terminal in a certain direction at the current time, and may include a deflection direction and a deflection angle of the terminal in a certain direction, for example, a deflection direction and a deflection angle of the terminal in a screen width direction. The screen capture configuration information can be understood as parameter information for capturing a screen of the terminal, and can include information such as the shape, size and position of a display picture of the capture screen.
Specifically, after the current pressing position and the current tilt state are obtained, the screen capture configuration information of the terminal screen matched with the current pressing position and the current tilt state may be determined according to the preset corresponding relationship between the pressing position and the tilt state and the screen capture configuration information. The preset corresponding relation between the pressing position and the inclination state and the screen capture configuration information can be adjusted according to the operation habits of the user.
And step 106, performing screen capture and storage according to the screen capture configuration information.
The screen capture can be understood as capturing the display picture of the terminal screen.
Specifically, after the screen capture configuration information is determined, the display picture of the terminal screen is captured according to the relevant parameters in the screen capture configuration information, and the captured display picture is stored in a preset format and stored in the storage space of the terminal device.
According to the screenshot method, the screenshot configuration information of the terminal screen is determined according to the corresponding current pressing position and the current inclination state of the terminal when the user presses the terminal screen, screenshot is carried out according to the screenshot configuration information and stored, the problem that the terminal user is difficult to perform terminal screenshot operation with one hand and cannot meet different screenshot requirements of the user is solved, the screenshot function of the mobile phone screen display area, which can be conveniently and quickly performed by one hand, is realized, the screenshot configuration information can be adjusted according to the current pressing position and the current inclination state of the terminal, and screenshot is carried out on the terminal according to the user intention.
In one embodiment, as shown in fig. 2, the step 104 of determining the screen capture configuration information of the terminal screen according to the current pressing position and the current tilting state may be implemented by the following steps:
step 1042, determining the interception form of the terminal screen according to the set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state.
Wherein, setting the pressing area can be understood as dividing the terminal screen area according to the difference of the pressing position. The current tilt direction may be determined by a gyro chip within the terminal, and may be divided into an upward deflection and a downward deflection, etc. The intercepting form can be understood as the shape of the display picture intercepted when the terminal screen is intercepted, and can be an intercepting circle, a square, a triangle or any other shape.
Specifically, a set pressing region to which the current pressing position belongs and a current tilt direction in the current tilt state may be determined, and the capturing mode of the terminal screen matched with the current pressing position and the current tilt state may be determined according to a preset correspondence between the pressing region, the tilt direction, and the capturing mode. The preset corresponding relation between the pressing area and the inclination direction and the intercepting form can be adjusted according to the operation habit of the user.
And step 1044, determining a screen capturing area of the terminal screen according to the capturing form and the current inclination angle in the current inclination state.
The current tilt angle may be understood as a deflection angle of the terminal in the current tilt direction at the current moment. The screen capture area may be understood as an area where the captured display screen is located when the terminal screen is captured, and may include a position and a size of the captured display screen.
Specifically, the current inclination angle in the current inclination state can be acquired, and the screen capture area of the terminal screen matched with the capturing form and the current inclination angle is determined according to the preset capturing form and the corresponding relation between the inclination angle and the screen capture area.
And 1046, determining the intercepted form and the screenshot area as screenshot configuration information of the terminal screen.
Specifically, the capturing mode and the capturing area determined in step 1042 and step 1044 are determined as the capturing configuration information for capturing the display screen of the terminal screen.
According to the screen capture method, the capture form of the terminal screen is determined according to the set press area to which the current press position belongs and the current inclination direction in the current inclination state, the screen capture area of the terminal screen is determined according to the capture form and the current inclination angle in the current inclination state, different operations of a user are judged when the terminal is in the quick screen capture mode, the user can conveniently and quickly capture the screen display area of the mobile phone without using the form and the area by using one hand, the screen capture operation is more intelligent and convenient, and different screen capture requirements of the user are met.
In another embodiment, as shown in FIG. 3, a method of screen capture is provided, the method comprising the steps of:
step 202, when it is monitored that the terminal is currently in the shortcut screen capture mode, acquiring a current pressing position and a current inclination state corresponding to the situation that the user continuously presses the terminal screen.
Specifically, when monitoring that the user performs an operation on the terminal to enter the shortcut screen capture mode, the screen capture device enables the terminal to be in the shortcut screen capture mode, and at this time, a current pressing position corresponding to the user continuously pressing the terminal screen and a current inclination state of the terminal are obtained. The time requirement for continuously pressing the terminal screen by the user can be preset and can be continuously pressed for 2s or continuously pressed for 3s, and the setting can be adjusted according to the operation habit of the user.
And step 204, determining a set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state.
Wherein the set pressing regions may include a first pressing region at an upper portion of the screen, a second pressing region at a middle portion of the screen, and a third pressing region at a lower portion of the screen.
Specifically, the assigned set pressing region may be determined according to the current pressing position, the current tilt direction in the current tilt state may be obtained, and steps 206a to 206d may be performed according to the situation by determining the assigned set pressing region and the current tilt direction, or if there is no applicable step, the shortcut screen capture operation may be ended.
And step 206a, if the current pressing position belongs to the second pressing area and the current tilting direction is upward deflection, determining that the intercepting form is a circular screen intercepting form.
The circular screen shot can be understood as a circular area shot on the display screen of the terminal screen.
Specifically, by determining the assigned set pressing area and the current tilting direction, if the current pressing position is assigned to the second pressing area and the current tilting direction is an upward deflection, the capturing mode may be determined as a circular screen capture, and then step 208a is performed.
And step 206b, if the current pressing position belongs to the second pressing area and the current tilting direction is downward deflection, determining that the screen capturing mode is full screen capturing.
The full-screen capture can be understood as capturing the whole current display picture of the terminal screen.
Specifically, by determining the assigned set pressing area and the current tilting direction, if the current pressing position is assigned to the second pressing area and the current tilting direction is downward deflection, the capturing mode may be determined as full screen capturing, and then step 208b is performed.
And step 206c, if the current pressing position belongs to the first pressing area and the current inclination direction is downward deflection, determining that the screen capturing mode is rectangular downward screen capturing.
The downward rectangular screen capture can be understood as capturing a rectangular area of a display picture of the terminal screen, the upper wide side of the rectangle can be determined according to the current pressing position, and the lower wide side of the rectangle is adjusted to the lower side of the screen according to the current inclination angle by taking the upper wide side of the rectangle as a boundary.
Specifically, by determining the assigned set pressing area and the current tilt direction, if the current pressing position is assigned to the first pressing area and the current tilt direction is downward deflection, the clipping mode may be determined as rectangular downward screen clipping, and then step 208c is performed.
And step 206d, if the current pressing position belongs to the third pressing area and the current tilting direction is upward deflection, determining that the screen capturing form is rectangular upward screen capturing.
The upward rectangular screen capture can be understood as capturing a rectangular area of a display picture of the terminal screen, the lower wide side of the rectangle can be determined according to the current pressing position, and the upper wide side of the rectangle is adjusted to the upper side of the screen according to the current inclination angle by taking the lower wide side of the rectangle as a boundary.
Specifically, by determining the assigned set pressing area and the current tilt direction, if the current pressing position is assigned to the third pressing area and the current tilt direction is an upward deflection, the capturing mode may be determined as a rectangular upward screen capturing, and then step 208d is performed.
And 208a, determining a circular area which takes the center of the terminal screen as a circle center and the screen capture length corresponding to the current inclination angle as a radius as a screen capture area.
The screen capture length can be understood as a value of the screen capture length corresponding to the current inclination angle, and in a specific screen capture form, the screen capture length can be a radius length, a side length, a horizontal width or a vertical width, and the like.
Specifically, when the screen capture form is a circular screen capture, the current inclination angle of the terminal is obtained, and the screen capture length corresponding to the current inclination angle is determined according to the preset corresponding relation between the inclination angle and the screen capture length. And determining the circular area intercepted by the screen according to the circle center and the radius, wherein the circular area is the screenshot area.
And step 208b, determining the current display interface of the terminal screen as a screen capture area.
The current display interface can be understood as a complete display picture of the terminal screen at the current moment.
Specifically, when the screen capture mode is full screen capture, the complete display picture of the terminal screen at the current moment is determined as the screen capture area.
And step 208c, determining a rectangular area which takes the horizontal position of the current pressing position as the upper wide side of the rectangle, the width of the terminal screen as the width and the screen capturing length corresponding to the current inclination angle as the length as the screen capturing area.
Specifically, when the screen capture form is a rectangular downward screen capture, the current inclination angle of the terminal is obtained, and the screen capture length corresponding to the current inclination angle is determined according to the preset corresponding relation between the inclination angle and the screen capture length. The method comprises the steps of taking the horizontal position of a pressing point of a user on a terminal screen as the upper wide side of a cut rectangle, taking the width of the terminal screen as the width of the rectangle, taking the upper wide side of the rectangle as a starting point, and cutting the rectangle with the length of the cut screen from the lower part of the terminal screen, wherein the area where the rectangle is located is the cut screen area.
And step 208d, determining a rectangular area which takes the horizontal position of the current pressing position as the lower wide side of the rectangle, the width of the terminal screen as the width and the screen capturing length corresponding to the current inclination angle as the length as the screen capturing area.
Specifically, when the screen capture form is a rectangular upward screen capture, the current inclination angle of the terminal is obtained, and the screen capture length corresponding to the current inclination angle is determined according to the preset corresponding relation between the inclination angle and the screen capture length. The method comprises the steps of taking the horizontal position of a pressing point of a user on a terminal screen as the lower wide side of a cut rectangle, taking the width of the terminal screen as the width of the rectangle, taking the lower wide side of the rectangle as a starting point, cutting a rectangle with the length of the cut screen above the terminal screen, and taking the area where the rectangle is located as a cut screen area.
Step 210, after it is monitored that the user releases the pressing of the terminal screen, positioning a screen capture area in the screen capture configuration information from a current display picture in the terminal screen.
Specifically, when the user releases the pressing of the terminal screen, the user may consider that the user has adjusted the screen capture configuration information, and at this time, the screen capture area may be highlighted in the terminal screen.
And step 212, intercepting and storing the screen capture area according to the screen capture form in the screen capture configuration information.
Specifically, the display image of the terminal screen can be captured according to the screen capture configuration information, and the captured display image is stored in a preset format and stored in a storage space of the terminal device.
According to the screen capture method, the setting pressing area and the current inclination direction of the current pressing position attribution are divided, the capture form is determined according to the situation, the screen capture area of the terminal screen is determined according to the capture form and the current inclination angle, different operations of a user can be judged when the terminal is in the quick screen capture mode, the user can conveniently and quickly capture the screen display area of the mobile phone without using the form and the area by using one hand, the screen capture operation is more intelligent and convenient, and different screen capture requirements of the user are met.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a screen capture apparatus comprising: an information acquisition module 302, a configuration determination module 304, and a screen capture module 306, wherein:
the information obtaining module 302 is configured to, when it is monitored that the terminal is currently in the shortcut screen capture mode, obtain a current pressing position and a current tilting state corresponding to when the user continuously presses the terminal screen.
And the configuration determining module 304 is used for determining screen capture configuration information of the terminal screen according to the current pressing position and the current inclination state.
And the screen capturing module 306 is used for capturing and storing the screen according to the screen capturing configuration information.
In an embodiment, the configuration determining module 304 specifically includes:
the form determining unit is used for determining the intercepting form of the terminal screen according to the set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state;
the area determining unit is used for determining a screen capturing area of the terminal screen according to the capturing form and the current inclination angle in the current inclination state;
and the configuration determining unit is used for determining the interception form and the interception area as the screen interception configuration information of the terminal screen.
In one embodiment, the set pressing regions include a first pressing region at an upper portion of the screen, a second pressing region at a middle portion of the screen, and a third pressing region at a lower portion of the screen.
In an embodiment, the morphology determination unit is specifically configured to:
if the current pressing position belongs to the second pressing area and the current inclination direction is upward deflection, determining that the intercepting form is a circular screen intercepting form;
if the current pressing position belongs to the second pressing area and the current tilting direction is downward deflection, determining that the screen capturing mode is full screen capturing;
if the current pressing position belongs to the first pressing area and the current inclination direction is downward deflection, determining that the screen capturing mode is rectangular downward screen capturing;
and if the current pressing position belongs to the third pressing area and the current inclination direction is upward deflection, determining that the screen capturing form is rectangular upward screen capturing.
In an embodiment, the area determination unit is specifically configured to:
if the screen capture form is a circular screen capture, determining a circular area which takes the center of the terminal screen as the circle center and the screen capture length corresponding to the current inclination angle as the radius as a screen capture area;
if the screen capture form is full screen capture, determining that the current display interface of the terminal screen is a screen capture area;
if the screen capture form is a rectangular downward screen capture, determining a rectangular area which takes the horizontal position of the current pressing position as the upper wide side of the rectangle, the width of the terminal screen as the width and the screen capture length corresponding to the current inclination angle as the length as the screen capture area;
if the screen capture form is a rectangular upward screen capture, determining a rectangular area which takes the horizontal position of the current pressing position as the lower wide side of the rectangle, the width of the terminal screen as the width and the screen capture length corresponding to the current inclination angle as the length as the screen capture area.
In one embodiment, the screen capture module 306 is specifically configured to:
after the fact that the user releases pressing of the terminal screen is monitored, locating a screen capture area in screen capture configuration information from a current display picture in the terminal screen;
and intercepting and storing the screen capturing area according to the screen capturing form in the screen capturing configuration information.
In the screen capture device, the screen capture configuration information of the terminal screen is determined through the current pressing position and the current inclination state corresponding to the user when the user presses the terminal screen, and screen capture is performed and stored according to the screen capture configuration information, the problem that the terminal user difficultly performs terminal screen capture operation by using one hand and cannot meet different screen capture requirements of the user is solved, the function of conveniently and quickly capturing the screen of a mobile phone screen display area by using one hand is realized, the screen capture configuration information can be adjusted according to the current pressing position of the user and the current inclination state of the terminal, and screen capture is performed on the terminal according to the user intention.
For specific limitations of the screenshot device, reference may be made to the above limitations of the screenshot method, which will not be described herein again. The modules in the screenshot device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The electronic device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The computer program is executed by a processor to implement a screenshot method. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
In one embodiment, the screenshot device provided by the present application can be implemented in a form of a computer program, and the computer program can be run on an electronic device as shown in fig. 5. The memory of the electronic device may store various program modules that make up the screenshot device, such as the information acquisition module 302, the configuration determination module 304, and the screenshot module 306 shown in FIG. 4. The computer program of each program module makes the processor execute the steps of the screenshot method of each embodiment of the present application described in the present specification.
For example, the electronic device shown in fig. 5 may perform step 102 through the information acquisition module 302 in the screenshot device shown in fig. 4. The electronic device may perform step 104 by configuration determination module 304. The electronic device may perform step 106 via the screen capture module 306.
In one embodiment, an electronic device is provided, comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: 102, when the situation that the terminal is in a quick screen capture mode at present is monitored, acquiring a current pressing position and a current inclination state corresponding to the situation that a user continuously presses a terminal screen; 104, determining screen capture configuration information of a terminal screen according to the current pressing position and the current inclination state; and step 106, performing screen capture and storage according to the screen capture configuration information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: step 1042, determining the interception form of the terminal screen according to the set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state; step 1044 of determining a screen capture area of the terminal screen according to the capture form and the current tilt angle in the current tilt state; and 1046, determining the intercepted form and the screenshot area as screenshot configuration information of the terminal screen.
In one embodiment, the processor, when executing the computer program, further performs the steps of: step 202, when the situation that the terminal is in a quick screen capture mode is monitored, acquiring a current pressing position and a current inclination state of the terminal corresponding to the situation that a user continuously presses a terminal screen; step 204, determining a set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state; step 206a, if the current pressing position belongs to a second pressing area and the current inclination direction is upward deflection, determining that the intercepting form is a circular screen intercepting form; step 206b, if the current pressing position belongs to the second pressing area and the current tilting direction is downward deflection, determining that the screen capturing mode is full screen capturing; step 206c, if the current pressing position belongs to the first pressing area and the current inclination direction is downward deflection, determining that the screen capturing mode is rectangular downward screen capturing; step 206d, if the current pressing position belongs to the third pressing area and the current inclination direction is upward deflection, determining that the screen capturing form is a rectangular upward screen capturing; step 208a, determining a circular area which takes the center of the terminal screen as the center of a circle and the screen capture length corresponding to the current inclination angle as the radius as a screen capture area; step 208b, determining the current display interface of the terminal screen as a screen capture area; step 208c, determining a rectangular area which takes the horizontal position of the current pressing position as the upper wide side of the rectangle, the width of the terminal screen as the width and the screen capturing length corresponding to the current inclination angle as the length as the screen capturing area; step 208d, determining a rectangular area which takes the horizontal position of the current pressing position as the lower wide side of the rectangle, the width of the terminal screen as the width and the screen capturing length corresponding to the current inclination angle as the length as the screen capturing area; step 210, after monitoring that the user releases the pressing of the terminal screen, positioning a screen capture area in the screen capture configuration information from a current display picture in the terminal screen; and step 212, intercepting and storing the screen capture area according to the screen capture form in the screen capture configuration information.
Above-mentioned electronic equipment, can press position and current tilt state according to the current that corresponds when pressing the terminal screen through the user, confirm the screenshot configuration information of terminal screen, and according to screenshot configuration information, carry out the screenshot and save, it carries out terminal screenshot operation difficulty with the one hand to have solved the terminal user, can't satisfy the problem of the different screenshot demands of user, the function of the regional screenshot of mobile phone screen display that single hand can convenient and fast has been realized, and can be according to the current position of pressing of user and the current tilt state adjustment screenshot configuration information at terminal, carry out the screenshot to the terminal according to user's wish.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: 102, when the terminal screen is monitored to be in a quick screen capture mode, acquiring a current pressing position and a current inclination state of the terminal corresponding to the situation that a user continuously presses the terminal screen; 104, determining screen capture configuration information of a terminal screen according to the current pressing position and the current inclination state; and step 106, performing screen capture and storage according to the screen capture configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of: step 1042, determining the interception form of the terminal screen according to the set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state; step 1044 of determining a screen capture area of the terminal screen according to the capture form and the current tilt angle in the current tilt state; and 1046, determining the intercepted form and the screenshot area as screenshot configuration information of the terminal screen.
In one embodiment, the computer program when executed by the processor further performs the steps of: step 202, when the situation that the terminal is in a quick screen capture mode is monitored, acquiring a current pressing position and a current inclination state of the terminal corresponding to the situation that a user continuously presses a terminal screen; step 204, determining a set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state; step 206a, if the current pressing position belongs to a second pressing area and the current inclination direction is upward deflection, determining that the intercepting form is a circular screen intercepting form; step 206b, if the current pressing position belongs to the second pressing area and the current tilting direction is downward deflection, determining that the screen capturing mode is full screen capturing; step 206c, if the current pressing position belongs to the first pressing area and the current inclination direction is downward deflection, determining that the screen capturing mode is rectangular downward screen capturing; step 206d, if the current pressing position belongs to the third pressing area and the current inclination direction is upward deflection, determining that the screen capturing form is a rectangular upward screen capturing; step 208a, determining a circular area which takes the center of the terminal screen as the center of a circle and the screen capture length corresponding to the current inclination angle as the radius as a screen capture area; step 208b, determining the current display interface of the terminal screen as a screen capture area; step 208c, determining a rectangular area which takes the horizontal position of the current pressing position as the upper wide side of the rectangle, the width of the terminal screen as the width and the screen capturing length corresponding to the current inclination angle as the length as the screen capturing area; step 208d, determining a rectangular area which takes the horizontal position of the current pressing position as the lower wide side of the rectangle, the width of the terminal screen as the width and the screen capturing length corresponding to the current inclination angle as the length as the screen capturing area; step 210, after monitoring that the user releases the pressing of the terminal screen, positioning a screen capture area in the screen capture configuration information from a current display picture in the terminal screen; and step 212, intercepting and storing the screen capture area according to the screen capture form in the screen capture configuration information.
In the above embodiment, the screenshot configuration information of the terminal screen can be determined through the current pressing position corresponding to the user pressing the terminal screen and the current inclination state of the terminal, and the screenshot is performed and stored according to the screenshot configuration information, so that the problem that the terminal user difficultly performs terminal screenshot with one hand and cannot meet different screenshot requirements of the user is solved, the screenshot function of the mobile phone screen display area by one hand can be conveniently and quickly performed, the screenshot configuration information can be adjusted according to the current pressing position of the user and the current inclination state of the terminal, and screenshot is performed on the terminal according to the user intention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the above embodiments of the methods. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent should be subject to the appended claims.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A method of screen capture, the method comprising:
when the situation that the terminal screen is in a quick screen capture mode is monitored, acquiring a current pressing position and a current inclination state corresponding to the situation that a user continuously presses the terminal screen;
determining the interception form of the terminal screen according to a set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state;
determining a screen capture area of the terminal screen according to the capture form and the current inclination angle in the current inclination state;
determining the interception form and the screen interception area as screen interception configuration information of the terminal screen;
and performing screen capture and storage according to the screen capture configuration information.
2. The method of claim 1, wherein the set pressing regions include a first pressing region at an upper portion of the screen, a second pressing region at a middle portion of the screen, and a third pressing region at a lower portion of the screen.
3. The method according to claim 2, wherein the determining the capturing mode of the terminal screen according to the set pressing area to which the current pressing position belongs and the current tilting direction in the current tilting state comprises:
if the current pressing position belongs to the second pressing area and the current inclination direction is upward deflection, determining that the intercepting form is a circular screen intercepting form;
if the current pressing position belongs to the second pressing area and the current tilting direction is downward deflection, determining that the screen capturing form is full screen capturing;
if the current pressing position belongs to the first pressing area and the current inclination direction is downward deflection, determining that the screen capturing form is a rectangular downward screen capturing;
and if the current pressing position belongs to the third pressing area and the current inclination direction is upward deflection, determining that the screen capturing form is a rectangular upward screen capturing.
4. The method according to claim 3, wherein the determining a screen capture area of the terminal screen according to the capturing form and a current tilt angle in the current tilt state comprises:
if the screen capture form is a circular screen capture, determining a circular area which takes the center of the terminal screen as a circle center and the screen capture length corresponding to the current inclination angle as a radius as the screen capture area;
if the screen capture form is full screen capture, determining that the current display interface of the terminal screen is the screen capture area;
if the screen capture form is a rectangular downward screen capture, determining a rectangular area which takes the horizontal position of the current pressing position as a rectangular upper wide side, the width of the terminal screen as a width and the screen capture length corresponding to the current inclination angle as a length as the screen capture area;
if the screen capture form is a rectangular upward screen capture, determining that a rectangular area which takes the horizontal position of the current pressing position as a rectangular lower wide side, the width of the terminal screen as wide and the screen capture length corresponding to the current inclination angle as long is the screen capture area.
5. The method according to claim 1, wherein the performing screen capture and saving according to the screen capture area comprises:
after the fact that the user releases pressing of the terminal screen is monitored, positioning a screen capturing area in the screen capturing configuration information from a current display picture in the terminal screen;
and intercepting and storing the screen capturing area according to the screen capturing form in the screen capturing configuration information.
6. A screenshot device, the device comprising:
the information acquisition module is used for acquiring a current pressing position and a current inclination state corresponding to the situation that a user continuously presses the terminal screen when the situation that the terminal screen is in the quick screen capture mode is monitored;
the form determining unit is used for determining the intercepting form of the terminal screen according to a set pressing area to which the current pressing position belongs and the current inclination direction in the current inclination state;
the area determining unit is used for determining a screen capturing area of the terminal screen according to the capturing form and the current inclination angle in the current inclination state;
the configuration determining unit is used for determining the interception form and the screen interception area as screen interception configuration information of the terminal screen;
and the screen capture module is used for capturing and storing the screen according to the screen capture configuration information.
7. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202010501305.6A 2020-06-04 2020-06-04 Screen capture method and device, electronic equipment and computer readable storage medium Active CN111679775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010501305.6A CN111679775B (en) 2020-06-04 2020-06-04 Screen capture method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010501305.6A CN111679775B (en) 2020-06-04 2020-06-04 Screen capture method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111679775A CN111679775A (en) 2020-09-18
CN111679775B true CN111679775B (en) 2021-10-22

Family

ID=72434880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010501305.6A Active CN111679775B (en) 2020-06-04 2020-06-04 Screen capture method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111679775B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204404A (en) * 2021-05-20 2021-08-03 北京字跳网络技术有限公司 Screen capture method and device and electronic equipment
CN113961118B (en) * 2021-08-30 2022-08-23 珠海读书郎软件科技有限公司 Electronic equipment and method capable of realizing screen capture method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750495A (en) * 2015-04-08 2015-07-01 魅族科技(中国)有限公司 Screenshot method and device
CN105700790A (en) * 2016-01-11 2016-06-22 广东欧珀移动通信有限公司 Screenshot method and terminal device
CN106970752A (en) * 2017-02-28 2017-07-21 维沃移动通信有限公司 A kind of screenshotss method and mobile terminal
CN107635065A (en) * 2017-08-29 2018-01-26 努比亚技术有限公司 A kind of screenshotss method, mobile terminal and computer-readable recording medium
CN109542306A (en) * 2018-11-23 2019-03-29 维沃移动通信有限公司 A kind of screenshotss method and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180017746A (en) * 2016-08-10 2018-02-21 엘지전자 주식회사 Mobile terminal and method for controlling the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750495A (en) * 2015-04-08 2015-07-01 魅族科技(中国)有限公司 Screenshot method and device
CN105700790A (en) * 2016-01-11 2016-06-22 广东欧珀移动通信有限公司 Screenshot method and terminal device
CN106970752A (en) * 2017-02-28 2017-07-21 维沃移动通信有限公司 A kind of screenshotss method and mobile terminal
CN107635065A (en) * 2017-08-29 2018-01-26 努比亚技术有限公司 A kind of screenshotss method, mobile terminal and computer-readable recording medium
CN109542306A (en) * 2018-11-23 2019-03-29 维沃移动通信有限公司 A kind of screenshotss method and terminal device

Also Published As

Publication number Publication date
CN111679775A (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN106462293B (en) Terminal, touch response method and device
CN107608615B (en) Fingerprint identification function starting method and device, terminal and storage medium
CN106951884B (en) Fingerprint acquisition method and device and electronic equipment
CN114741011B (en) Terminal display method and electronic equipment
CN106293444B (en) Mobile terminal, display control method and device
US11500744B2 (en) Method for primary-backup server switching, and control server
EP3680764B1 (en) Icon moving method and device
WO2016155424A1 (en) Application switching method for mobile terminal, mobile terminal and computer storage medium
CN111679775B (en) Screen capture method and device, electronic equipment and computer readable storage medium
CN107850982B (en) Screen operating method and electronic device supporting the same
MX2013000363A (en) Above-lock camera access.
CN108769506B (en) Image acquisition method and device, mobile terminal and computer readable medium
CN106775391A (en) Changing interface apparatus and method
JP2016511875A (en) Image thumbnail generation method, apparatus, terminal, program, and recording medium
CN110830716B (en) Image generation method and device, computer equipment and storage medium
US11507264B2 (en) Method and device for managing information
CN106896995B (en) Wallpaper configuration method and device for mobile terminal
CN108762641B (en) Text editing method and terminal equipment
CN111857465B (en) Application icon sorting method and device and electronic equipment
WO2016188199A1 (en) Method and device for clipping pictures
CN112506597B (en) Software interface color matching method and device, computer equipment and storage medium
US9727972B2 (en) Method and terminal for generating thumbnail of image
CN111880707A (en) Long screenshot method, system, device, computer and storage medium
CN110221735B (en) Icon processing method and device and mobile terminal
CN108924292B (en) Terminal control method, device, mobile terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211222

Address after: 710086 Building 1, fengdongwangcheng, Fengdong new town, Xi'an City, Shaanxi Province

Patentee after: Xi'an Wentai Information Technology Co.,Ltd.

Address before: Room 912-49, block B, 666 Beijing East Road, Huangpu District, Shanghai

Patentee before: SHANGHAI WINGTECH ELECTRONICS TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right