CN112130738A - Screenshot processing method and device, electronic equipment and storage medium - Google Patents

Screenshot processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112130738A
CN112130738A CN202011065430.3A CN202011065430A CN112130738A CN 112130738 A CN112130738 A CN 112130738A CN 202011065430 A CN202011065430 A CN 202011065430A CN 112130738 A CN112130738 A CN 112130738A
Authority
CN
China
Prior art keywords
screenshot
sliding
target screenshot
target
instruction
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
CN202011065430.3A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011065430.3A priority Critical patent/CN112130738A/en
Publication of CN112130738A publication Critical patent/CN112130738A/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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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

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 application discloses a screenshot processing method and device, electronic equipment and a storage medium. The screenshot processing method comprises the steps of receiving a sliding instruction aiming at a target screenshot displayed on a current interface, and obtaining a sliding direction corresponding to the sliding instruction; when the sliding direction is a first direction, switching the target screenshot; when the sliding direction is a second direction, deleting the target screenshot; the second direction is different from the first direction; when the sliding direction is a third direction, displaying a picture editing page aiming at the target screenshot; the third direction is different from the second direction and the first direction. The scheme realizes that the user can directly operate and process the target screenshot displayed in the terminal after screenshot, the use is simple and convenient, and the target screenshot can be completed without multi-step operation and processing.

Description

Screenshot processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of screenshot processing, and in particular, to a screenshot processing method and apparatus, an electronic device, and a storage medium.
Background
The processing modes of mobile phones of various mobile phone manufacturers for user screenshots are different, such as gesture screenshots, physical key screenshots and the like, and the operation logics of the intercepted pictures are different, such as the display modes (lower left thumbnail, bottom thumbnail and the like) of the pictures after screenshot, the deletion modes (editing and deleting after selection), the editing modes (editing after selection) and the like.
Because each manufacturer has a set of own processing logic, the cost for the user to learn the screenshot is high, and the screenshot can be finished only by performing multi-step operation processing no matter whether the screenshot is edited or deleted, and the screenshot is not simple and convenient to use.
Disclosure of Invention
In order to solve the above problem, embodiments of the present application provide a screenshot processing method and apparatus, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present application provides a screenshot processing method, where the method includes:
receiving a sliding instruction aiming at a target screenshot displayed on a current interface, and acquiring a sliding direction corresponding to the sliding instruction;
when the sliding direction is a first direction, switching the target screenshot;
when the sliding direction is a second direction, deleting the target screenshot; the second direction is different from the first direction;
when the sliding direction is a third direction, displaying a picture editing page aiming at the target screenshot; the third direction is different from the second direction and the first direction.
In a second aspect, an embodiment of the present application provides a screenshot processing apparatus, where the apparatus includes:
the receiving module is used for receiving a sliding instruction aiming at a target screenshot displayed on a current interface and acquiring a sliding direction corresponding to the sliding instruction;
the first direction determining module is used for switching the target screenshot when the sliding direction is the first direction;
the second direction determining module is used for deleting the target screenshot when the sliding direction is the second direction; the second direction is different from the first direction;
the third direction determining module is used for displaying a picture editing page aiming at the target screenshot when the sliding direction is a third direction; the third direction is different from the second direction and the first direction.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method as provided in the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method as provided in the first aspect or any one of the possible implementations of the first aspect.
In one or more embodiments of the present application, after a user uses a user terminal to perform screenshot, a target screenshot is displayed on the user terminal. After receiving a sliding instruction of a user for the target screenshot, the user terminal acquires a sliding direction corresponding to the sliding instruction to judge the sliding direction of the user, and performs operations such as switching, deleting and editing on the target screenshot according to different sliding directions. Therefore, the user can directly operate and process the target screenshot displayed in the terminal after screenshot, the use is simple and convenient, and the target screenshot can be completed without multi-step operation processing. The logic of operating the target screenshot is similar to the general background program processing operation logic of the mobile phone, so that the cost of the user screenshot is low.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a screenshot processing method provided in an embodiment of the present application;
fig. 2 is a schematic view illustrating a sliding example of a user sliding a target screenshot according to an embodiment of the present application;
fig. 3a is an exemplary schematic diagram of a user pressing a target screenshot according to an embodiment of the present application;
fig. 3b is an exemplary schematic diagram of a long screenshot operation performed after a user continuously presses a target screenshot according to an embodiment of the present application;
fig. 4 is an exemplary schematic diagram of a screenshot of a user terminal switching a target according to an embodiment of the present application;
fig. 5 is an exemplary schematic diagram of a user terminal deleting a target screenshot provided in an embodiment of the present application;
fig. 6 is an exemplary schematic diagram illustrating a user terminal editing a target screenshot according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another screenshot processing method according to an embodiment of the present application;
fig. 8 is an exemplary schematic diagram illustrating a target screenshot displayed by a user terminal in a card form according to an embodiment of the present application;
fig. 9 is an exemplary schematic diagram of a target screenshot of a user terminal stopping sliding according to an embodiment of the present application;
fig. 10 is an exemplary schematic diagram of a delete control in a user terminal according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a screenshot processing apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the present application, where different embodiments may be substituted or combined, and thus the present application is intended to include all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
The user terminal may be various electronic devices having a display screen, including but not limited to a smartphone, a tablet computer, and the like. Specifically, the user terminal may be hardware or software.
Optionally, when the user terminal is software, it may be installed in the electronic device listed above, and it may be implemented as multiple software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module, and is not limited in this respect.
Optionally, when the user terminal is hardware, the user terminal may further include a display device and a camera, the display device may display various devices capable of implementing a display function, and the camera is used to collect a video stream. For example: the display device may be a Cathode ray tube (CR) display, a Light-emitting diode (LED) display, an electronic ink screen, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), or the like. The user can utilize the display equipment on the terminal to view the displayed information such as characters, pictures, videos and the like.
The present invention will be described in detail with reference to specific examples.
Referring to fig. 1, fig. 1 is a schematic flowchart of a screenshot processing method provided in an embodiment of the present application. In an embodiment of the present application, the method includes:
s101, receiving a sliding instruction for a target screenshot displayed on a current interface, and acquiring a sliding direction corresponding to the sliding instruction.
The current interface is the interface displayed by the screen of the user terminal at present. The current interface can be understood as an interface displayed by a screen of the user terminal when the user terminal performs screenshot operation in the embodiment of the application.
The screenshot is a picture generated by the user terminal intercepting the interface image. The target screenshot can be understood as a picture generated when the user terminal performs screenshot operation on the current interface in the embodiment of the application.
The instructions are instructions and commands instructing the user terminal to operate, and may be understood as codes designating certain operations to be performed or certain controls to be implemented by functions. The sliding instruction can be understood as a code for directing the user terminal to execute a sliding control function on the target screenshot, and the user terminal can acquire the sliding direction of the target screenshot by executing the code.
The sliding direction may be understood as a direction in which the user slides the target screenshot. In practical applications, the sliding direction may be upward sliding, downward sliding, or left-right sliding.
For example, as shown in fig. 2, fig. 2 is a schematic diagram illustrating an example of a sliding process in which a user slides a target screenshot. When a user wants to slide the target screenshot, the user needs to press a finger on an area where the target screenshot is displayed on a screen of the user terminal, and slide the finger on the screen of the user terminal along a certain direction, so that the target screenshot can be slid.
In the embodiment of the application, if the user slides the target screenshot displayed on the current interface of the user terminal, the user terminal receives a sliding instruction for the target screenshot. After receiving the sliding instruction, the user terminal acquires the sliding direction corresponding to the sliding instruction so as to determine the sliding direction of the user on the target screenshot on the current interface.
In an implementation manner, after step S101, the method further includes:
receiving a pressing instruction aiming at the target screenshot, and acquiring the duration of pressing corresponding to the pressing instruction;
and when the duration of the continuous pressing is longer than a second preset duration, performing long screenshot operation on a display picture corresponding to the target screenshot.
The pressing instruction can be understood as a code for commanding the user terminal to perform a pressing control function on the target screenshot, and the user terminal can obtain the continuous pressing duration of the target screenshot by executing the code.
The duration of the pressing can be understood as the duration that the user presses the target screenshot and keeps the pressing action unchanged in the embodiment of the application.
The long screenshot can be understood as a rolling screenshot in the embodiment of the application, and the multi-page content which cannot be completely displayed on the screen of the user terminal can be stored into one screenshot at one time.
For example, as shown in fig. 3a and 3b, fig. 3a is an exemplary schematic diagram of a user pressing a target screenshot, and fig. 3b is an exemplary schematic diagram of a user continuously pressing the target screenshot and then performing a long-shot operation. And pressing a finger of a user on an area on a screen of the user terminal, which displays the target screenshot, and keeping the action for a certain time, and then carrying out long-screenshot operation on a display picture corresponding to the target screenshot by the user terminal. And after the user terminal displays the long screenshot interface, the user adjusts the range of the long screenshot by sliding up and down, and clicks a confirmation button to finish the long screenshot.
In the embodiment of the application, when the user performs screenshot and the target screenshot is displayed on the current interface of the user terminal, the user can operate the target screenshot in a sliding manner and can also operate the target screenshot in a long-press target screenshot manner. After receiving a pressing instruction for the target screenshot, the user terminal obtains a continuous pressing duration corresponding to the pressing instruction, and performs screenshot operation according to the continuous pressing duration. Because the user also needs to press the target screenshot in a short time when sliding, in order to avoid the influence on the user experience caused by the false triggering of the long screenshot operation, the user terminal performs the long screenshot operation on the display picture corresponding to the target screenshot only when the duration of the continuous pressing is longer than a second preset duration (for example, 2 s).
And S102, when the sliding direction is the first direction, switching the target screenshot.
For example, as shown in fig. 4, fig. 4 is an exemplary diagram of a screenshot of a user terminal switching target. And when the user presses the target screenshot by a finger and slides the target screenshot to the first direction, the user terminal switches the target screenshot to other screenshots based on the first direction. Other screenshots may be stored screenshot pictures in a picture database. The first direction may be a leftward sliding direction or a rightward sliding direction.
In the embodiment of the application, when the sliding direction corresponding to the sliding instruction acquired by the user terminal is the first direction, the user terminal considers that the user wants to switch the target screenshot to view other captured target screenshots, so that the user terminal switches the target screenshot.
And S103, deleting the target screenshot when the sliding direction is the second direction. The second direction is different from the first direction.
For example, as shown in fig. 5, fig. 5 is an exemplary diagram of a user terminal deleting a target screenshot. And when the user presses the target screenshot by a finger and slides the target screenshot to the second direction, the user terminal deletes the target screenshot based on the second direction. The second direction may be an upward sliding direction.
In the embodiment of the application, when the sliding direction corresponding to the sliding instruction acquired by the user terminal is the second direction, the user terminal considers that the user wants to delete the captured target screenshot, so that the user terminal deletes the target screenshot. The second direction is not the same as the first direction, so that the corresponding operation functions in each direction are not in conflict.
And S104, when the sliding direction is the third direction, displaying a picture editing page aiming at the target screenshot. The third direction is different from the second direction and the first direction.
The picture editing page can be understood as a page displayed on a screen of the user terminal for editing the target screenshot. As shown in fig. 6, fig. 6 is an exemplary diagram of a user terminal editing a target screenshot. The user can add arrows, draw circles, add patterns, add characters and the like on the target screenshot by clicking the corresponding functional control on the picture editing page. In the embodiment of the application, when the sliding direction corresponding to the sliding instruction acquired by the user terminal is the third direction, the user terminal considers that the user wants to edit the captured target screenshot, so that the user terminal displays the picture editing page of the target screenshot for the user to edit. The third direction is different from the second direction and the first direction, so that the corresponding operation functions in each direction are not in conflict.
In an embodiment, after step S104, the method further includes:
receiving an editing instruction on a picture editing page, and generating an editing picture based on the editing instruction;
and displaying a deletion control aiming at the target screenshot corresponding to the edited picture.
In the embodiment of the application, when the user edits the screenshot on the picture editing page, the user terminal receives an editing instruction. And after receiving the editing instruction, the user terminal generates an editing picture based on the editing content in the editing instruction. After a user captures a screenshot picture, the user mostly edits the screenshot picture by circling or marking an arrow at a certain position in the picture to emphasize the position in the screenshot. Under the condition, the picture which is really needed to be saved or sent by the user is an edited picture, but an unedited screenshot picture is not needed, and the user easily forgets or does not want to delete the screenshot after editing the screenshot due to the fact that complicated operation is needed for deleting the picture in the prior art, so that useless screenshots are accumulated. When the accumulation is too much, the user is not convenient to clear useless screenshots, and the user is also not convenient to find the needed screenshots in the screenshots. Therefore, the user terminal displays the deleting control aiming at the target screenshot corresponding to the edited picture after the edited picture is generated, so that the user can simply and conveniently delete the target screenshot before editing after the screenshot is edited.
In one embodiment, the first direction is a left-right direction, the second direction is an upward direction, and the third direction is a downward direction.
In the embodiment of the application, no matter what brand of mobile phone, the operating logic of the background program management interface is the same, and the background program is switched to the target program running in the background by sliding left and right, and the current background program is closed by sliding upwards. Therefore, the sliding direction corresponding to the same function is set consistently with the sliding direction during operation in the background program management interface, so that the learning cost of operating the target screenshot displayed by the user is low, and the user can simply and quickly master the operation mode no matter the old or the child.
Through the steps, after the user uses the user terminal to perform screenshot, the target screenshot can be displayed on the user terminal. After receiving a sliding instruction of a user for the target screenshot, the user terminal acquires a sliding direction corresponding to the sliding instruction to judge the sliding direction of the user, and performs operations such as switching, deleting and editing on the target screenshot according to different sliding directions. Therefore, the user can directly operate and process the target screenshot displayed in the terminal after screenshot, the use is simple and convenient, and the target screenshot can be completed without multi-step operation processing. The logic of operating the target screenshot is similar to the general background program processing operation logic of the mobile phone, so that the cost of the user screenshot is low.
Referring to fig. 7, fig. 7 is a schematic flowchart of another screenshot processing method according to an embodiment of the present application. As shown in fig. 7, the method includes:
s201, receiving a screen capture instruction for a current interface, and generating and storing a screen capture picture.
The screen capture instruction can be understood as a code for directing the user terminal to perform a screen capture function on the current interface in the embodiment of the application, and the user terminal can generate a screen capture picture by executing the code.
In the embodiment of the application, when a user performs screenshot operation through a gesture or a key, the user terminal receives a screenshot instruction for a current interface, and the user terminal performs screenshot on the current interface based on the screenshot instruction, generates a screenshot picture and stores the screenshot picture in the picture database.
S202, obtaining a thumbnail of the screenshot picture, and determining the thumbnail as a target screenshot.
The thumbnail can be understood as a picture with a compressed picture size but unchanged picture content in the embodiment of the present application.
In the embodiment of the application, after the user terminal stores the screenshot picture, the screenshot picture is possibly large, direct display may occupy too many resources of a mobile phone to cause blocking, the user terminal obtains the thumbnail corresponding to the screenshot picture, and determines the thumbnail as the target screenshot for subsequent display.
And S203, displaying the target screenshot on the current interface in a card form.
The card form may be understood in the embodiments of the present application as a way of presenting the target screenshot in a card style that does not occupy the full size of the user terminal screen. Specifically, the length and width of the target screenshot may be half of the length and width of the screen of the user terminal, or may be one third of the length and width of the screen of the user terminal.
In the embodiment of the present application, as shown in fig. 8, fig. 8 is an exemplary schematic diagram of a user terminal displaying a target screenshot in a card form. And after the screenshot is finished, the user terminal displays the target screenshot on the current interface in a card form so as to inform the user that the screenshot is finished and display the screenshot.
Alternatively, the target screenshot may be presented in card form in the middle of the current interface.
S204, receiving a sliding instruction for the target screenshot displayed on the current interface, and acquiring a sliding direction corresponding to the sliding instruction.
The detailed process is shown in step S101, and therefore, will not be described herein again.
And S205, when the sliding direction is the first direction, acquiring a sliding stop position corresponding to the sliding instruction.
The sliding stop position in the embodiment of the present application may be understood as a position where the user's finger stops sliding after the user slides the target screenshot to the first direction. The user terminal determines which screenshot in the displayed screenshots is closest to the center of the screen of the user terminal according to the transverse distance between the sliding stop position and the center of the screen of the user terminal.
For example, as shown in fig. 9, fig. 9 is an exemplary diagram of a user terminal stopping sliding the target screenshot. The first direction may be a left-right direction, and when the user slides the target screenshot left or right, the user terminal determines which screenshot the screenshot closest to the center of the screen is when the user stops sliding according to the sliding stop position. And when the position where the user stops sliding is the graphical position, the left screenshot of the displayed target screenshot is closest to the center of the screen of the user terminal. After the user removes the finger, the user terminal switches to display the screenshot.
In the embodiment of the application, when the user terminal determines that the sliding direction is the first direction, the user terminal considers that the user wants to switch the displayed target screenshot, and at this time, the user terminal obtains the corresponding sliding stop position according to the sliding instruction so as to confirm which screenshot is displayed when the user stops sliding.
S206, determining a reference screenshot corresponding to the sliding stopping position in a card set, and switching the target screenshot into the reference screenshot.
The card set can be understood as a set of screenshot sets presented on a user terminal screen in the form of cards in the embodiment of the application.
The reference screenshot may be understood in the embodiment of the present application as a historical screenshot stored in a picture database displayed on a screen of the user terminal in the form of a card.
In the embodiment of the present application, the screenshots will be displayed in the current interface in the form of a card set, that is, the reference screenshots will also be displayed in the form of cards according to a certain arrangement rule in addition to the target screenshots just captured. And when the user terminal detects that the user wants to switch the target screenshot, determining a reference screenshot which should be switched according to the sliding stop position, and switching the target screenshot into the reference screenshot.
Optionally, the reference screenshot and the target screenshot are arranged horizontally from left to right according to the time sequence of the captured pictures.
Optionally, after the user terminal intercepts the target screenshot, the card set of the target screenshot and the reference screenshot is displayed on the current interface, so that the user can see the intercepted reference screenshot when performing sliding operation on the target screenshot. And further assisting the user in finding a reference screenshot that was once captured but is now useless, and can slide in a second direction against the reference screenshot to delete the useless reference screenshot. The method and the device have the advantages that the user can conveniently and quickly clean the once reference screenshot when a new screenshot is captured every time, and the condition that the screenshot is not cleaned for a long time and useless screenshots are accumulated is avoided.
And S207, when the sliding direction is the second direction, displaying a deletion control aiming at the target screenshot.
The control user can interact with it to input or manipulate objects of data. The deletion control can be understood as an object which can be interacted with a user terminal by a user to delete the target screenshot in the embodiment of the application.
For example, as shown in fig. 10, fig. 10 is an exemplary diagram of a delete control in a user terminal. After the user slides the target screenshot upwards, the user terminal displays a deletion control for the target screenshot to prompt the user whether to delete the target screenshot. The deletion control can contain text content of 'confirm whether to delete'.
In the embodiment of the application, when the user terminal determines that the sliding direction is the second direction, the user terminal displays the deletion control for the user to confirm the deletion operation, so that the situation that the screenshot is deleted due to the fact that the user mistakenly operates to slide to the second direction when the user slides to the first direction is prevented.
In one possible embodiment, step S207 includes:
when the sliding direction is a second direction, acquiring a display duration corresponding to the target screenshot;
and when the display duration is less than a first preset duration, displaying a deletion control aiming at the target screenshot.
The display duration can be understood as the duration from the moment when the target screenshot starts to be displayed on the screen of the user terminal to the current moment in the embodiment of the application.
In the embodiment of the application, generally, the target screenshot shown after the screenshot is hidden after the screenshot is not operated for a period of time. In order to avoid that the user clicks other places on the current interface when the target screenshot is to be hidden, when the user terminal detects that the sliding direction is the second direction, the user terminal firstly obtains the display duration corresponding to the target screenshot to determine how long the target screenshot has been displayed, and only when the display duration is less than the first preset duration, the user terminal displays the deletion control.
Optionally, when the display duration is longer than the first preset duration, the target screenshot may also be displayed but cannot be operated, and when the display duration reaches a third preset duration, the target screenshot is hidden. For example, when the display duration of the target screenshot exceeds a first preset duration (e.g., 5s), the user slides the target screenshot at this time, and cannot perform any operation on the target screenshot, and when the display duration reaches a third preset duration (e.g., 6s), the target screenshot is hidden.
Optionally, when the display duration is equal to the first preset duration, the user terminal hides the target screenshot.
And S208, receiving a confirmation instruction aiming at the deleting control, closing the deleting control and deleting the target screenshot.
The confirmation instruction can be understood as a code for commanding the user terminal to delete the screenshot function in the embodiment of the application, and the user terminal can close the deletion control and delete the target screenshot by executing the code.
In the embodiment of the application, after the user clicks the deletion confirmation control, the user terminal receives the confirmation instruction, responds to the confirmation instruction, closes the deletion control and deletes the target screenshot.
In an embodiment, after step S208, the method further includes:
and deleting the screenshot picture.
In the embodiment of the application, the displayed target screenshot is only a thumbnail of the captured screenshot picture, so that the user terminal can delete the stored screenshot picture after deleting the thumbnail.
S209, when the sliding direction is the third direction, displaying a picture editing page aiming at the target screenshot. The third direction is different from the second direction and the first direction.
The detailed process is shown in step 104, and therefore, will not be described herein.
Through the steps, after the user uses the user terminal to capture the screenshot, the user terminal stores the screenshot picture and displays the thumbnail of the screenshot picture on the current interface in a card form. After receiving a sliding instruction of a user for the target screenshot, the user terminal acquires a sliding direction corresponding to the sliding instruction to judge the sliding direction of the user, and performs operations such as switching, deleting and editing on the target screenshot according to different sliding directions. And the user terminal determines the switched reference screenshot according to the sliding stop position corresponding to the sliding instruction. Before deleting the target screenshot, the user terminal determines whether the display duration of the target screenshot exceeds a preset duration. Therefore, the user can directly operate and process the target screenshot displayed in the terminal after screenshot, the use is simple and convenient, and the target screenshot can be completed without multi-step operation processing. The logic of operating the target screenshot is similar to the general background program processing operation logic of the mobile phone, so that the learning and use cost of the user is low.
The screenshot processing apparatus provided in the embodiment of the present application will be described in detail below with reference to fig. 11. It should be noted that the screenshot processing apparatus shown in fig. 11 is used for executing the method of the embodiment shown in fig. 1 and fig. 7 of the present application, and for convenience of description, only the portion related to the embodiment of the present application is shown, and details of the technology are not disclosed, please refer to the embodiment shown in fig. 1 and fig. 7 of the present application.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a screenshot processing apparatus according to an embodiment of the present application. As shown in fig. 11, the apparatus includes:
a receiving module 1101, configured to receive a sliding instruction for a target screenshot displayed on a current interface, and obtain a sliding direction corresponding to the sliding instruction;
a first direction determining module 1102, configured to switch the target screenshot when the sliding direction is a first direction;
a second direction determining module 1103, configured to delete the target screenshot when the sliding direction is a second direction; the second direction is different from the first direction;
a third direction determining module 1104, configured to show, when the sliding direction is a third direction, a picture editing page for the target screenshot; the third direction is different from the second direction and the first direction.
In one embodiment, the apparatus further comprises:
the storage module is used for receiving a screen capture instruction aiming at the current interface, and generating and storing a screen capture picture;
the determining module is used for acquiring a thumbnail of the screenshot picture and determining the thumbnail as a target screenshot;
and the display module is used for displaying the target screenshot on the current interface in a card form.
In an implementation manner, the first direction determining module 1102 is specifically configured to:
when the sliding direction is a first direction, acquiring a sliding stop position corresponding to the sliding instruction;
and determining a reference screenshot corresponding to the sliding stopping position in a card set, and switching the target screenshot into the reference screenshot.
In one implementation, the second direction determining module 1103 includes:
the display unit is used for displaying a deletion control aiming at the target screenshot when the sliding direction is a second direction;
and the receiving unit is used for receiving a confirmation instruction aiming at the deleting control, closing the deleting control and deleting the target screenshot.
In one embodiment, the receiving unit is further configured to:
and deleting the screenshot picture.
In one embodiment, the display unit is specifically configured to:
when the sliding direction is a second direction, acquiring a display duration corresponding to the target screenshot;
and when the display duration is less than a first preset duration, displaying a deletion control aiming at the target screenshot.
In one embodiment, the apparatus further comprises:
the acquisition module is used for receiving a pressing instruction aiming at the target screenshot and acquiring the duration of continuous pressing corresponding to the pressing instruction;
and the operation module is used for carrying out long screenshot operation on the display picture corresponding to the target screenshot when the continuous pressing duration is longer than a second preset duration.
In one embodiment, the apparatus further comprises:
the editing module is used for receiving an editing instruction on the picture editing page and generating an editing picture;
and the deleting module is used for displaying a deleting control aiming at the target screenshot corresponding to the edited picture.
In one embodiment, the first direction is a left-right direction, the second direction is an upward direction, and the third direction is a downward direction.
It is clear to a person skilled in the art that the solution according to the embodiments of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, a Field-Programmable Gate Array (FPGA), an Integrated Circuit (IC), or the like.
Each processing unit and/or module in the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
Referring to fig. 12, a schematic structural diagram of an electronic device according to an embodiment of the present application is shown, where the electronic device may be used to implement the methods in the embodiments shown in fig. 1 and fig. 7. As shown in fig. 12, the electronic device 1200 may include: at least one central processor 1201, at least one network interface 1204, a user interface 1203, a memory 1205, at least one communication bus 1202.
Wherein a communication bus 1202 is used to enable connective communication between these components.
The user interface 1203 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1203 may also include a standard wired interface and a wireless interface.
The network interface 1204 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
The central processing unit 1201 may include one or more processing cores. The central processor 1201 interfaces with various interfaces and lines throughout the various parts within the terminal 1200 and performs various functions and processes data of the terminal 1200 by executing or executing instructions, programs, code sets or instruction sets stored in the memory 1205, as well as invoking data stored in the memory 1205. Optionally, the central Processing unit 1201 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The CPU 1201 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is to be understood that the modem may be implemented by a single chip without being integrated into the central processing unit 1201.
The Memory 1205 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1205 includes a non-transitory computer-readable medium (non-transitory computer-readable storage medium). The memory 1205 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1205 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1205 may alternatively be at least one memory device located remotely from the central processor 1201 described previously. As shown in fig. 12, memory 1205 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.
In the electronic device 1200 shown in fig. 12, the user interface 1203 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 1201 may be configured to invoke the screenshot processing application stored in the memory 1205, and specifically perform the following operations:
receiving a sliding instruction aiming at a target screenshot displayed on a current interface, and acquiring a sliding direction corresponding to the sliding instruction;
when the sliding direction is a first direction, switching the target screenshot;
when the sliding direction is a second direction, deleting the target screenshot; the second direction is different from the first direction;
when the sliding direction is a third direction, displaying a picture editing page aiming at the target screenshot; the third direction is different from the second direction and the first direction.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some service interfaces, devices or units, and may be an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, and the memory may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (12)

1. A screenshot processing method, comprising:
receiving a sliding instruction aiming at a target screenshot displayed on a current interface, and acquiring a sliding direction corresponding to the sliding instruction;
when the sliding direction is a first direction, switching the target screenshot;
when the sliding direction is a second direction, deleting the target screenshot; the second direction is different from the first direction;
when the sliding direction is a third direction, displaying a picture editing page aiming at the target screenshot; the third direction is different from the second direction and the first direction.
2. The method according to claim 1, wherein before receiving a slide instruction for a target screenshot displayed on a current interface and acquiring a slide direction corresponding to the slide instruction, the method further comprises:
receiving a screen capture instruction aiming at the current interface, and generating and storing a screen capture picture;
acquiring a thumbnail of the screenshot picture, and determining the thumbnail as a target screenshot;
and displaying the target screenshot on a current interface in a card form.
3. The method of claim 2, wherein switching the target screenshot when the sliding direction is a first direction comprises:
when the sliding direction is a first direction, acquiring a sliding stop position corresponding to the sliding instruction;
and determining a reference screenshot corresponding to the sliding stopping position in a card set, and switching the target screenshot into the reference screenshot.
4. The method of claim 2, wherein deleting the target screenshot when the sliding direction is a second direction comprises:
when the sliding direction is a second direction, displaying a deletion control aiming at the target screenshot;
and receiving a confirmation instruction aiming at the deleting control, closing the deleting control and deleting the target screenshot.
5. The method of claim 4, wherein after receiving the confirmation instruction for the delete control, further comprising:
and deleting the screenshot picture.
6. The method of claim 4, wherein when the sliding direction is a second direction, showing a delete control for the target screenshot comprises:
when the sliding direction is a second direction, acquiring a display duration corresponding to the target screenshot;
and when the display duration is less than a first preset duration, displaying a deletion control aiming at the target screenshot.
7. The method according to claim 1, wherein after receiving a sliding instruction for a target screenshot displayed on a current interface and obtaining a sliding direction corresponding to the sliding instruction, the method further comprises:
receiving a pressing instruction aiming at the target screenshot, and acquiring the duration of pressing corresponding to the pressing instruction;
and when the duration of the continuous pressing is longer than a second preset duration, performing long screenshot operation on a display picture corresponding to the target screenshot.
8. The method of claim 1, wherein after displaying the picture editing page for the target screenshot when the sliding direction is the third direction, further comprising:
receiving an editing instruction on a picture editing page, and generating an editing picture based on the editing instruction;
and displaying a deletion control aiming at the target screenshot corresponding to the edited picture.
9. The method of any one of claims 1-8, wherein the first direction is a left-right direction, the second direction is an upward direction, and the third direction is a downward direction.
10. A screenshot processing apparatus, comprising:
the receiving module is used for receiving a sliding instruction aiming at a target screenshot displayed on a current interface and acquiring a sliding direction corresponding to the sliding instruction;
the first direction determining module is used for switching the target screenshot when the sliding direction is the first direction;
the second direction determining module is used for deleting the target screenshot when the sliding direction is the second direction; the second direction is different from the first direction;
the third direction determining module is used for displaying a picture editing page aiming at the target screenshot when the sliding direction is a third direction; the third direction is different from the second direction and the first direction.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-9 are implemented when the computer program is executed by the processor.
12. 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 according to any one of claims 1 to 9.
CN202011065430.3A 2020-09-30 2020-09-30 Screenshot processing method and device, electronic equipment and storage medium Pending CN112130738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011065430.3A CN112130738A (en) 2020-09-30 2020-09-30 Screenshot processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011065430.3A CN112130738A (en) 2020-09-30 2020-09-30 Screenshot processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112130738A true CN112130738A (en) 2020-12-25

Family

ID=73843724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011065430.3A Pending CN112130738A (en) 2020-09-30 2020-09-30 Screenshot processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112130738A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360067A (en) * 2021-06-21 2021-09-07 维沃移动通信(杭州)有限公司 Screenshot cleaning method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549891A (en) * 2016-01-12 2016-05-04 努比亚技术有限公司 Screenshot method based on back pressure sensor and mobile terminal
CN105975170A (en) * 2016-06-20 2016-09-28 财付通支付科技有限公司 Page loading method and device
CN109271081A (en) * 2018-07-28 2019-01-25 华为技术有限公司 Roll the method and electronic equipment of screenshotss

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549891A (en) * 2016-01-12 2016-05-04 努比亚技术有限公司 Screenshot method based on back pressure sensor and mobile terminal
CN105975170A (en) * 2016-06-20 2016-09-28 财付通支付科技有限公司 Page loading method and device
CN109271081A (en) * 2018-07-28 2019-01-25 华为技术有限公司 Roll the method and electronic equipment of screenshotss
CN110764673A (en) * 2018-07-28 2020-02-07 华为技术有限公司 Method for scrolling screen capture and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360067A (en) * 2021-06-21 2021-09-07 维沃移动通信(杭州)有限公司 Screenshot cleaning method and device

Similar Documents

Publication Publication Date Title
EP3301559B1 (en) Content sharing method and device
CN105955607B (en) Content sharing method and device
CN107678644B (en) Image processing method and mobile terminal
EP3125135A1 (en) Picture processing method and device
US20200007944A1 (en) Method and apparatus for displaying interactive attributes during multimedia playback
CN105045823A (en) Method and device for generating demo file of mobile terminal based on screen capture
CN111612873A (en) GIF picture generation method and device and electronic equipment
US9509733B2 (en) Program, communication apparatus and control method
CN112099707A (en) Display method and device and electronic equipment
CN110968364B (en) Method and device for adding shortcut plugins and intelligent device
US20150199058A1 (en) Information processing method and electronic device
JP2018506082A (en) Font addition method, apparatus, program, and recording medium
CN111367457A (en) Content sharing method and device and electronic equipment
US10091452B2 (en) Electronic device and method for recording and displaying script
CN110912806B (en) Message processing method, device, storage medium and electronic device
CN112836086A (en) Video processing method and device and electronic equipment
JP7058795B2 (en) Video processing methods, devices, terminals and storage media
CN111665984A (en) Information processing method and device, electronic equipment and readable storage medium
US10789035B2 (en) Communication terminal, management system, communication system, and display method
CN111679772B (en) Screen recording method and system, multi-screen device and readable storage medium
CN112130738A (en) Screenshot processing method and device, electronic equipment and storage medium
US20120062764A1 (en) Data management device and recording medium
CN112764648A (en) Screen capturing method and device, electronic equipment and storage medium
CN113473012A (en) Virtualization processing method and device and electronic equipment
CN111782381A (en) Task management method and 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