CN113031844B - Screenshot method, screenshot device, computer equipment and computer-readable storage medium - Google Patents

Screenshot method, screenshot device, computer equipment and computer-readable storage medium Download PDF

Info

Publication number
CN113031844B
CN113031844B CN202110301764.4A CN202110301764A CN113031844B CN 113031844 B CN113031844 B CN 113031844B CN 202110301764 A CN202110301764 A CN 202110301764A CN 113031844 B CN113031844 B CN 113031844B
Authority
CN
China
Prior art keywords
screenshot
selection frame
graphic
graphic selection
frame
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
CN202110301764.4A
Other languages
Chinese (zh)
Other versions
CN113031844A (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.)
Shanghai Wingtech Information Technology Co Ltd
Original Assignee
Shanghai Wingtech Information 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 Information Technology Co Ltd filed Critical Shanghai Wingtech Information Technology Co Ltd
Priority to CN202110301764.4A priority Critical patent/CN113031844B/en
Publication of CN113031844A publication Critical patent/CN113031844A/en
Application granted granted Critical
Publication of CN113031844B publication Critical patent/CN113031844B/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/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
    • 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

Abstract

The application relates to the technical field of computers, and provides a screenshot method, a screenshot device, a screenshot computer device and a screenshot computer readable storage medium. The method comprises the following steps: responding to a screenshot instruction, and generating a graphic selection frame, wherein the graphic selection frame is positioned on a picture to be screenshot; acquiring touch parameters of touch operation of a user aiming at the graphic selection frame, wherein the touch parameters comprise touch pressure duration; adjusting the size of the graphic frame based on the touch pressure duration; and carrying out screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame. By adopting the method, the screenshot of the whole display interface does not need to be stored in the whole screenshot process, and the memory resource waste is avoided. In addition, during actual operation, a user does not need to drag the boundary of the graphic selection frame by a finger greatly, and single-hand operation is convenient to realize.

Description

Screenshot method, screenshot device, computer equipment and computer-readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a screenshot method and apparatus, a computer device, and a computer-readable storage medium.
Background
The existing intelligent terminal often has a screenshot function. In practice, if a user only needs to capture a screenshot of a local area in a display interface, a method implemented in the prior art is that, first, a terminal is triggered to capture the screenshot of the whole display interface by three-click of the display screen (or by clicking the display screen with a finger joint or by combining keys), and the screenshot is stored; and then, calling the saved screenshot, dragging the boundary of a graphic selection frame through a finger to cut the saved screenshot so as to reserve part of the picture required by the user and cut off part of the picture not required by the user.
In the prior art, when screenshot is performed on a local area in a display interface, two defects exist: firstly, the screenshot of the whole display interface needs to be saved, and the screenshot of the whole display interface usually needs to occupy a large storage space, which causes storage resource waste; secondly, in the process that the user drags the boundary of the graphic selection frame by fingers, the situation that the user can only hold the intelligent terminal by one hand and drag the boundary of the graphic selection frame by the fingers by the other hand due to the fact that the area where the fingers need to slide is too large can occur, and the adjustment of the cutting area cannot be achieved by one hand.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a screenshot method, an apparatus, a computer device, and a computer-readable storage medium, which can avoid waste of storage resources and can implement one-handed operation.
The embodiment of the application provides a screenshot method, which comprises the following steps:
responding to a screenshot instruction, and generating a graphic selection frame, wherein the graphic selection frame is positioned on a picture to be screenshot;
acquiring touch parameters of touch operation of a user aiming at the graphic selection frame, wherein the touch parameters comprise touch pressure duration;
adjusting the size of the graphic frame based on the touch pressure duration;
and carrying out screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame.
In one embodiment, the generating a graphical selection box in response to the screenshot instruction comprises:
responding to the screenshot command, and acquiring a graphic selection frame setting command input by a user;
and generating a graphic selection frame based on a graphic selection frame setting instruction input by a user.
In one embodiment, the resizing the graphical box based on the touch pressure duration comprises:
determining the graphic frame size magnification factor based on the touch pressure duration;
and adjusting the size of the graphic selection frame based on the graphic selection frame size amplification factor.
In one embodiment, the touch pressure duration is proportional to the graphical box size magnification factor.
In one embodiment, in the screen to be captured, the transparency of the area defined by the graphic selection frame is higher than the transparency of the area not defined by the graphic selection frame.
In one embodiment, the method further comprises: and displaying a feedback special effect aiming at the touch operation based on the touch parameter of the touch operation of the user aiming at the graphic selection frame.
In one embodiment, the feedback effect is a ripple spread effect;
the diffusion shape of the water ripple diffusion special effect is consistent with the shape of the graphic selection frame;
and at any moment, the maximum diffusion size of the water ripple diffusion special effect is consistent with the size of the adjusted graphic selection frame.
The embodiment of the application provides a screenshot device, the device includes:
the graphic selection frame generating module is used for responding to the screenshot instruction and generating a graphic selection frame, and the graphic selection frame covers the picture to be screenshot;
the touch parameter acquisition module is used for acquiring touch parameters of touch operation of a user for the graphic selection frame, and the touch parameters comprise touch pressure duration;
the size adjusting module is used for adjusting the size of the graphic selection frame based on the touch pressure duration;
and the screenshot module is used for carrying out screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame.
The embodiment of the application provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the steps of the screenshot method provided by any embodiment of the application.
The embodiment of the application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the screenshot method provided in any embodiment of the application.
The screenshot method, the screenshot device, the computer equipment and the computer-readable storage medium provided by the embodiment of the application essentially select the screenshot area first and then perform screenshot after the selection, and the screenshot of the whole display interface is not required to be saved in the whole screenshot process, so that the storage resource waste is avoided. In addition, the screenshot scheme provided by the embodiment of the application adjusts the size of the graphic selection frame based on the duration of the touch pressure, so that a user does not need to drag the boundary of the graphic selection frame by a finger in a large range during actual operation, and single-hand operation is facilitated.
Drawings
FIG. 1 is a flow diagram illustrating a method for screenshot in an embodiment;
FIG. 2 is a diagram illustrating resizing of an image frame in one embodiment;
FIG. 3 is a flow chart illustrating a screenshot method in another embodiment;
FIG. 4 is a block diagram of an embodiment of a screenshot device;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below 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.
In an embodiment, as shown in fig. 1, a screenshot method is provided, and this embodiment is illustrated by applying the method to a terminal, and it is to be understood that the method may also be applied to a server, may also be applied to a system including 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 S110, responding to the screenshot command, and generating a graphic selection frame which is positioned on the picture to be screenshot.
The screenshot instruction refers to an instruction for triggering the terminal to start a screenshot function, and the screenshot instruction can be generated by operating the terminal through a user. The operation mode of triggering the terminal to start the screenshot function by the user is various, for example, the user can trigger the terminal to start the screenshot function through a voice control instruction; or the user triggers the terminal to start the screenshot function by clicking a virtual key displayed on a display screen of the terminal; or the user inputs a preset touch instruction to the terminal to trigger the terminal to start the screenshot function. The preset touch instruction includes, but is not limited to, a user continuously tapping the display screen for multiple times, a user drawing a preset graph on the display screen of the terminal, and the like.
The graphic selection box refers to a tool for limiting which areas are intercepted aiming at the current picture to be intercepted. Optionally, the graphical checkbox may be provided as a closed graphic. In the screen to be captured, the area defined by the graphic frame is an area that needs to be captured (i.e., an area that is needed by the user), and the area not defined by the graphic frame is an area that does not need to be captured (i.e., an area that is not needed by the user).
The phrase "the graphic frame is located on the picture to be captured" means that if the graphic frame and the picture to be captured are regarded as two layers respectively, the graphic frame layer is located on the picture layer to be captured, and the graphic frame cannot be shielded by the picture layer to be captured.
Specifically, the terminal responds to the screenshot command and generates a graphic selection frame, and the graphic selection frame is located on the picture to be screenshot.
The specific implementation method of this step is various, for example, in response to the screenshot command, a graphic frame selection setting command input by the user is obtained; and generating a graphic selection frame based on a graphic selection frame setting instruction input by a user. The graphic frame setting instruction is used for selecting the graphic frame according to the requirements of users, personal preferences and the like. For example, the graphic frame setting instruction may set at least one of a shape, a color, and a resizing direction of the graphic frame. The setting can meet the personalized requirements of users.
Illustratively, if the graphic selection frame setting instruction comprises a graphic selection frame shape selection instruction, the terminal responds to the screenshot instruction and obtains the graphic selection frame shape selection instruction input by the user; and the terminal generates a graphic selection frame based on a graphic selection frame shape selection instruction input by the user. The shape of the graphic frame may be selected from the group consisting of, but not limited to, heart, cloud, circle, and rectangle. Illustratively, if the shape of the graphic frame selected by the graphic frame shape selection instruction input by the user is a circle, the circular graphic frame is generated in the display screen of the image terminal.
If the graphic selection frame setting instruction comprises a graphic selection frame color selection instruction, the terminal responds to the screenshot instruction and obtains the graphic selection frame color selection instruction input by the user; and the terminal generates a graphic selection frame based on a graphic selection frame color selection instruction input by the user. The color of the graphic frame refers to the color of the border line of the graphic frame, and the selectable range includes, but is not limited to, red, green, blue and black. Illustratively, if the color of the graphic frame selected by the graphic frame color selection instruction input by the user is red, a graphic frame with a red boundary line is generated in the display screen of the image terminal.
If the graphic selection frame setting instruction comprises a graphic selection frame size adjustment direction setting instruction, the terminal responds to the screenshot instruction and obtains the graphic selection frame size adjustment direction setting instruction input by the user; and the terminal generates the graphic selection frame based on the graphic selection frame size adjusting direction setting instruction input by the user. The size adjustment direction of the graphic frame refers to a deformation direction of the graphic frame when the size of the graphic frame is adjusted. For example, referring to fig. 2, if a certain graphic frame is shaped like a cloud, the user inputs a graphic frame resizing direction setting instruction to set the resizing direction of the graphic frame to be in the horizontal right direction (i.e., the direction of the dotted arrow in fig. 2), and the graphic frame can only be extended in the horizontal right direction when the size of the graphic frame is subsequently adjusted. Before and after the size is adjusted, the size of the graphic selection frame in the vertical direction is kept unchanged, and the distance from the leftmost end of the graphic selection frame to the left boundary of the display screen, the distance from the uppermost end of the graphic selection frame to the upper boundary of the display screen and the distance from the lowermost end of the graphic selection frame to the lower boundary of the display screen are kept unchanged.
S120, acquiring touch parameters of touch operation of the user for the graphic selection frame, wherein the touch parameters comprise touch pressure duration.
The touch pressure duration refers to a duration of time that the user applies the touch pressure to the graphical frame.
Specifically, the terminal obtains touch parameters of touch operation of a user for a graphic frame, wherein the touch parameters comprise touch pressure duration.
There are various implementation methods of this step, and optionally, a specific implementation method of this step includes: the terminal detects touch operation input through a terminal display screen at preset time intervals, and if the touch operation input through the terminal display screen is detected, whether a touch area of the touch operation (namely an area where a finger touches the display screen) is overlapped with an area defined by the graph selection frame is judged; if the touch operation is overlapped, determining that the touch operation is the touch operation of the user aiming at the graphic selection frame; and starting a timer, starting timing, and periodically executing the touch pressure duration output step until the touch operation is stopped. The touch pressure duration output step includes: and detecting whether the current touch operation is stopped, and if not, outputting the touch pressure duration from the starting timing to the current timing.
Further, the touch parameters can also be set to further include a touch pressure value, and the step can be replaced by the step of obtaining the touch parameters of the touch operation aiming at the graphic frame selection, wherein the touch pressure value is larger than the set threshold value. Research shows that when a user clicks a certain figure purposefully, the touch pressure value of the figure is often larger, so that touch operation with smaller touch pressure value can be filtered, and the probability of unnecessary adjustment of the size of a figure selection frame caused by mistaken touch of the user is reduced.
And S130, adjusting the size of the graphic selection frame based on the duration of the touch pressure.
Specifically, the terminal adjusts the size of the graphical frame based on the touch pressure duration.
The implementation method of the step has various methods, illustratively, the size amplification factor of the picture selection frame is determined based on the duration time of the touch pressure; and adjusting the size of the graphic selection frame based on the graphic selection frame size amplification factor.
Further, when "determining the graphic frame size enlargement factor based on the touch pressure duration" is performed, a functional relationship with the touch pressure duration as an argument and the graphic frame size enlargement factor as a dependent variable may be established in advance, and the graphic frame size enlargement factor may be determined based on the functional relationship and the touch pressure duration.
Optionally, the duration of the touch pressure is proportional to the magnification factor of the size of the graphic frame, i.e., the larger the duration of the touch pressure, the larger the magnification factor of the size of the graphic frame, and the larger the size of the graphic frame. In addition, if the size adjustment direction of the graphics frame is selected before the execution of this step, the magnification factor of the graphics frame size in the size adjustment direction of the graphics frame is the magnification factor in the execution of this step.
It should be noted that, when this step is executed, the duration of the touch pressure is increased and the size of the graphic frame is increased as time goes by.
And S140, selecting a frame according to the adjusted graph, and carrying out screenshot operation on the picture to be screenshot.
Specifically, the terminal selects a frame according to the adjusted graph, and performs screenshot operation on a picture to be screenshot.
The implementation method of this step is various, and exemplarily, the terminal reads the picture composition data in the area defined by the adjusted graphic frame, and copies and prints the picture composition data to complete the operation of screenshot on the picture to be screenshot.
The essence of the technical scheme is that the screenshot area is selected first, and then screenshot is performed, so that the screenshot of the whole display interface is not required to be saved in the whole screenshot process, and the waste of storage resources is avoided.
In addition, according to the technical scheme, the size of the graphic selection frame is adjusted based on the duration time of the touch pressure, and during actual operation, a user does not need to drag the boundary of the graphic selection frame by a finger to a large extent, so that one-hand operation is facilitated.
On the basis of the technical scheme, optionally, in the picture to be captured, the transparency of the region defined by the graphic frame is higher than the transparency of the region not defined by the graphic frame. This may increase the visual contrast for the user to distinguish which regions are regions delineated by the graphical frame and which regions are regions not delineated by the graphical frame. In particular implementation, optionally, the image of the region not circumscribed by the graphical frame is blurred. Or setting a mask layer in an area which is not defined by the graphic selection frame in the picture to be captured.
On the basis of the above technical solution, optionally, the method further includes: and displaying the feedback special effect aiming at the touch operation based on the touch parameter of the touch operation of the user aiming at the graphic selection frame. The purpose of setting up like this is on the one hand to increase the interest of screenshot process, and on the other hand gives appropriate feedback according to the touch-control parameter, and the user of being convenient for knows the touch-control operation condition of exerting to it.
Specifically, after S120, the terminal may display a feedback special effect for the touch operation based on the touch parameter of the touch operation of the user for the graphic frame. Here, the touch parameter includes a touch pressure duration and/or a touch pressure value. Optionally, the touch parameters of the touch operations are different, and the feedback special effects for the touch operations are different.
Optionally, the feedback effect is a ripple spread effect. Further, the diffusion shape of the water ripple diffusion special effect can be set to be consistent with the shape of the graphic selection frame; the maximum diffusion size of the water ripple diffusion special effect at any time is consistent with the size of the adjusted figure selection frame. The essence of the arrangement is that the shape and the size of the water ripple diffusion special effect are adapted to the shape and the size of the adjusted figure selection frame, so that a user can conveniently identify the basic situation of the finally arranged figure selection frame, and meanwhile, the aesthetic feeling of the display effect can be improved.
On the basis of the above technical solution, if the touch operation parameter further includes a touch position movement track. Optionally, the geometric center position of the graphic selection frame can be adjusted based on the touch position moving track. Here, "adjusting the geometric center position of the graphic frame" should be understood as dragging the graphic frame as a whole. Before and after dragging, the shape and the size of the graphic selection frame are kept unchanged. The setting can further enrich the adjusting mode of the graphic selection frame so as to meet the individual requirements of different users.
Optionally, on the basis of the above technical solution, S120 and S130 may be replaced by: acquiring touch parameters of touch operation of a user for a graphic selection frame, wherein the touch parameters comprise touch pressure values; and adjusting the size of the graphic selection frame based on the touch pressure value. Specifically, based on the touch pressure duration, adjusting the size of the graphical selection box comprises: determining a graphic frame selection size amplification factor based on the touch pressure value; and adjusting the size of the graphic selection frame based on the graphic selection frame size amplification factor. Optionally, the touch pressure value is proportional to a graphic frame size magnification factor. The size adjustment scheme of the graphic selection frame can be enriched by the setting, and the operation requirements of different users are met.
Optionally, on the basis of the above technical solution, S120 and S130 may be replaced by: acquiring touch parameters of touch operation of a user aiming at a boundary line of a graphic frame, wherein the touch parameters comprise a touch position moving track; and adjusting the position of the boundary line of the figure selection frame based on the touch position moving track, and further adjusting the size of the figure selection frame. The size adjustment scheme of the graphic selection frame can be enriched by the setting, and the operation requirements of different users are met.
Fig. 3 is a flowchart of another screenshot method provided by the present disclosure. Fig. 3 is a specific example of fig. 1. Referring to fig. 3, the method includes:
and S210, the user triggers the terminal to start a screenshot function by operating the terminal.
According to the method and the device, when the user operates the terminal and triggers the terminal to start the screenshot function, the content displayed by the terminal is not limited. Alternatively, the terminal may be arranged to display a web page browsed by the user, a processed form or document, etc.
In the specific implementation of the step, there are various implementation methods, for example, a user clicks the display screen by three clicks, a finger joint, or presses a combination key to trigger the terminal to start the screenshot function.
The screenshot function is started by triggering the terminal through three clicks of the display screen, and the screenshot function can be realized through one-hand operation, so that the user satisfaction can be improved.
And S220, the user operates the terminal to trigger the terminal to generate a graphic selection frame setting instruction.
Optionally, the specific implementation method of this step may include: firstly, a terminal display screen displays a plurality of selectable graphic selection frames with different shapes, and a user clicks the graphic selection frame with the required shape to select the shape of the graphic selection frame; secondly, displaying a plurality of selectable graphic selection frames with different colors on a terminal display screen, and selecting the color of the graphic selection frame by clicking the graphic selection frame with the required color by a user; thirdly, displaying a plurality of selectable graphic selection frames in different size adjustment directions on a terminal display screen, and selecting the size adjustment direction of the graphic selection frame by clicking the graphic selection frame in the required size adjustment direction by a user; then, based on the result of the multiple selections by the user, the terminal generates a graphic selection frame setting instruction.
And S230, drawing a mask layer on the top layer of the terminal display interface, and drawing a graphic selection frame on the mask layer.
Wherein, the cover plate layer is a translucent layer, and the whole display effect is like the water mist attached to the glass in autumn and winter. The user can see the underlying terminal display interface through the cover sheet, but not clear enough. The user may also not be able to manipulate UI controls in the display interface covered by the mask layer. In the whole process of executing the scheme, the mask layer of the area defined by the figure selection frame is removed, and the mask layer of the area not defined by the figure selection frame is reserved.
S240, the user carries out touch operation on the graphic selection frame.
And S250, the terminal acquires the touch operation parameters, displays the water ripple diffusion special effect based on the touch operation parameters, adjusts the size of a graphic selection frame, and adjusts the coverage area of a mask layer.
Optionally, the touch operation parameters include a touch pressure value, a touch pressure duration, and a touch position movement track.
Optionally, the terminal adjusts the geometric center position of the graphic selection frame according to the touch position movement track.
The essence of 'adjusting the covering area of the mask layer' is that as the position and/or the size of the figure selection frame gradually changes, the covering area of the mask layer is gradually adjusted, finally, the mask layer of the area defined by the figure selection frame is removed at any time, and the mask layer of the area not defined by the figure selection frame is reserved
And S260, popping up a selection prompt box by the terminal, and inquiring whether the current screenshot is saved or not by the user.
And S270, acquiring a control instruction input by a user aiming at the selection prompt box, and judging whether the control instruction is to store the current screenshot, if so, executing S280, and otherwise, executing S220.
And S280, performing screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame so as to intercept the image in the graphic selection frame.
The essence of the technical scheme is that the screenshot area is selected first, and then screenshot is performed, so that the screenshot of the whole display interface is not required to be saved in the whole screenshot process, and the waste of storage resources is avoided.
In addition, according to the technical scheme, the size of the graphic selection frame is adjusted based on the duration time of the touch pressure, and during actual operation, a user does not need to drag the boundary of the graphic selection frame by a finger to a large extent, so that one-hand operation is facilitated.
Further, after S280, a sharing instruction input by the user is further obtained, and the screenshot result is shared based on the sharing instruction. For example, the screenshot result is shared through a sharing platform (such as a WeChat friend circle, a microblog and the like).
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 screenshot device, including: a graphic frame generating module 310, a touch parameter acquiring module 320, a size adjusting module 330, and a screenshot module 340, wherein:
and the graphic selection frame generating module 310 is configured to generate a graphic selection frame in response to the screenshot instruction, where the graphic selection frame covers the to-be-screenshot picture.
The touch parameter acquiring module 320 is configured to acquire a touch parameter of a touch operation performed by a user for a graphical frame, where the touch parameter includes a touch pressure duration.
A size adjustment module 330, configured to adjust a size of the graphical frame based on the touch pressure duration.
And the screenshot module 340 is configured to perform screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame.
In another embodiment, the graphic box generation module 310 is specifically configured to: responding to a screenshot instruction, and acquiring a graphic frame selection setting instruction input by a user; and generating a graphic selection frame based on a graphic selection frame setting instruction input by a user.
In another embodiment, the resizing module 330 is specifically configured to: determining a graphic frame selection size amplification factor based on the touch pressure duration; and adjusting the size of the graphic selection frame based on the graphic selection frame size amplification factor.
In another embodiment, the duration of the touch pressure is proportional to the graphic frame size magnification factor.
In another embodiment, the transparency of the area defined by the graphic selection frame in the picture to be captured is higher than the transparency of the area not defined by the graphic selection frame.
In another embodiment, the apparatus further includes a feedback special effect display module configured to display a feedback special effect for the touch operation based on a touch parameter of the touch operation of the user for the graphic frame.
In another embodiment, the feedback effect is a ripple diffusion effect; the diffusion shape of the water ripple diffusion special effect is consistent with the shape of the graphic selection frame; and at any moment, the maximum diffusion size of the water ripple diffusion special effect is consistent with the size of the adjusted graphic selection frame.
The essence of the technical scheme is that the screenshot area is selected first, and then screenshot is performed, so that the screenshot of the whole display interface is not required to be saved in the whole screenshot process, and the waste of storage resources is avoided.
In addition, according to the technical scheme, the size of the graphic selection frame is adjusted based on the duration time of the touch pressure, and during actual operation, a user does not need to drag the boundary of the graphic selection frame by a finger to a large extent, so that one-hand operation is facilitated.
For specific limitations of the screenshot device, reference may be made to the limitations of the screenshot method in the foregoing, and details are not described here. All or part of the modules in the screenshot device can be realized 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, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer 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 computer device is configured to provide computing and control capabilities. The memory of the computer device 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 computer 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 computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer 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 computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the screenshot device provided in the present application can be implemented in a form of a computer program, and the computer program can be run on a computer device as shown in fig. 5. The memory of the computer device may store various program modules constituting the screenshot device, such as the graphic frame generating module 310, the touch parameter acquiring module 320, the resizing module 330, and the screenshot module 340 shown in fig. 4. The computer program formed by the program modules enables the processor to execute the steps of the screenshot method of the embodiment described in the specification.
For example, the computer device shown in fig. 5 may execute, by a graphical selection box generation module in the screenshot device shown in fig. 4, to generate a graphical selection box in response to the screenshot instruction, where the graphical selection box covers the screen to be screenshot. The computer equipment can execute the touch parameter acquisition module to acquire the touch parameter of the touch operation of the user for the graphic selection frame, wherein the touch parameter comprises the touch pressure duration. The computer device may perform resizing of the graphical selection based on the touch pressure duration via a resizing module. The computer equipment can execute frame selection according to the adjusted graph through the screenshot module and perform screenshot operation on the picture to be screenshot.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: responding to a screenshot instruction, and generating a graphic selection frame which is positioned on a picture to be screenshot; acquiring touch parameters of touch operation of a user aiming at a graphic selection frame, wherein the touch parameters comprise touch pressure duration; adjusting the size of the graphic selection frame based on the touch pressure duration; and carrying out screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame.
In one embodiment, the processor, when executing the computer program, further performs the steps of: responding to the screenshot command, and acquiring a graphic selection frame setting command input by a user; and generating the graphic selection frame based on a graphic selection frame setting instruction input by a user.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining a graphic frame selection size amplification factor based on the touch pressure duration; and adjusting the size of the graphic frame based on the graphic frame size enlargement factor.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the duration of the touch pressure is proportional to the magnification factor of the size of the graphic frame.
In one embodiment, the processor, when executing the computer program, further performs the steps of: in the picture to be captured, the transparency of the area defined by the graphic selection frame is higher than that of the area not defined by the graphic selection frame.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and displaying the feedback special effect aiming at the touch operation based on the touch parameter of the touch operation of the user aiming at the graphic selection frame.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the feedback special effect is a water ripple diffusion special effect; the diffusion shape of the water ripple diffusion special effect is consistent with the shape of the graphic selection frame; and at any moment, the maximum diffusion size of the water ripple diffusion special effect is consistent with the size of the adjusted graphic selection frame.
The essence of the technical scheme is that the screenshot area is selected first, and then screenshot is performed, so that the screenshot of the whole display interface is not required to be saved in the whole screenshot process, and the waste of storage resources is avoided.
In addition, according to the technical scheme, the size of the graphic selection frame is adjusted based on the duration time of the touch pressure, and during actual operation, a user does not need to drag the boundary of the graphic selection frame by a finger to a large extent, so that one-hand operation is facilitated.
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:
responding to a screenshot instruction, and generating a graphic selection frame which is positioned on a picture to be screenshot; acquiring touch parameters of touch operation of a user for a graphic selection frame, wherein the touch parameters comprise touch pressure duration; adjusting the size of the graphic selection frame based on the touch pressure duration; and carrying out screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to a screenshot instruction, and acquiring a graphic frame selection setting instruction input by a user; and generating the graphic selection frame based on a graphic selection frame setting instruction input by a user.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a graphic frame selection size amplification factor based on the touch pressure duration; and adjusting the size of the graphic selection frame based on the graphic selection frame size amplification factor.
In one embodiment, the computer program when executed by the processor further performs the steps of: the duration of the touch pressure is proportional to the magnification factor of the size of the graphic frame.
In one embodiment, the computer program when executed by the processor further performs the steps of: in the picture to be captured, the transparency of the area defined by the graphic selection frame is higher than that of the area not defined by the graphic selection frame.
In one embodiment, the computer program when executed by the processor further performs the steps of: and displaying the feedback special effect aiming at the touch operation based on the touch parameter of the touch operation of the user aiming at the graphic selection frame.
In one embodiment, the computer program when executed by the processor further performs the steps of: the feedback special effect is a water ripple diffusion special effect; the diffusion shape of the water ripple diffusion special effect is consistent with the shape of the graphic selection frame; and at any moment, the maximum diffusion size of the water ripple diffusion special effect is consistent with the size of the adjusted graphic selection frame.
The essence of the technical scheme is that the screenshot area is selected first, and then screenshot is performed, so that the screenshot of the whole display interface is not required to be saved in the whole screenshot process, and the waste of storage resources is avoided.
In addition, according to the technical scheme, the size of the graphic selection frame is adjusted based on the duration time of the touch pressure, and during actual operation, a user does not need to drag the boundary of the graphic selection frame by a finger to a large extent, so that one-hand operation is facilitated.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. 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.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure 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 shall be subject to the appended claims.

Claims (9)

1. A screenshot method, the method comprising:
responding to a screenshot instruction, and generating a graphic selection frame, wherein the graphic selection frame is positioned on a picture to be screenshot;
acquiring touch parameters of touch operation of a user aiming at the graphic selection frame, wherein the touch parameters comprise touch pressure duration;
adjusting the size of the graphic frame based on the touch pressure duration;
carrying out screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame;
the generating a graphical selection box in response to the screenshot instruction comprises:
responding to the screenshot command, and acquiring a graphic selection frame setting command input by a user;
generating a graphic selection frame based on a graphic selection frame setting instruction input by a user;
the graphic selection frame setting instruction comprises a size adjusting direction setting instruction of the graphic selection frame, and the size adjusting direction of the graphic selection frame refers to a deformation direction of the graphic selection frame when the size of the graphic selection frame is adjusted;
and setting a mask layer in an area which is not defined by the graphic selection frame in the picture to be captured.
2. The method of claim 1, wherein the resizing the graphical box based on the touch pressure duration comprises:
determining the graphic frame size magnification factor based on the touch pressure duration;
and adjusting the size of the graphic selection frame based on the graphic selection frame size amplification factor.
3. The method of claim 2, wherein the touch pressure duration is proportional to the graphical box size magnification factor.
4. The method according to claim 1, wherein the transparency of the area in the screen to be captured, which is defined by the graphic frame, is higher than the transparency of the area which is not defined by the graphic frame.
5. The method of claim 1, further comprising: and displaying a feedback special effect aiming at the touch operation based on the touch parameter of the touch operation of the user aiming at the graphic selection frame.
6. The method of claim 5, wherein the feedback effect is a ripple diffusion effect;
the diffusion shape of the water ripple diffusion special effect is consistent with the shape of the graphic selection frame;
and at any moment, the maximum diffusion size of the water ripple diffusion special effect is consistent with the size of the adjusted graphic selection frame.
7. A screenshot device, the device comprising:
the graphic selection frame generating module is used for responding to the screenshot instruction and generating a graphic selection frame, and the graphic selection frame covers the picture to be screenshot;
the touch parameter acquisition module is used for acquiring touch parameters of touch operation of a user for the graphic selection frame, and the touch parameters comprise touch pressure duration;
the size adjusting module is used for adjusting the size of the graphic selection frame based on the touch pressure duration;
the screenshot module is used for carrying out screenshot operation on the picture to be screenshot according to the adjusted graphic selection frame;
the graphical selection box generation module is used for: responding to the screenshot command, and acquiring a graphic selection frame setting command input by a user; generating a graphic selection frame based on a graphic selection frame setting instruction input by a user;
the graphic selection frame setting instruction comprises a size adjusting direction setting instruction of the graphic selection frame, and the size adjusting direction of the graphic selection frame refers to a deformation direction of the graphic selection frame when the size of the graphic selection frame is adjusted;
and setting a mask layer in an area which is not defined by the graphic selection frame in the picture to be captured.
8. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method according to any of claims 1 to 6.
9. 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 6.
CN202110301764.4A 2021-03-22 2021-03-22 Screenshot method, screenshot device, computer equipment and computer-readable storage medium Active CN113031844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110301764.4A CN113031844B (en) 2021-03-22 2021-03-22 Screenshot method, screenshot device, computer equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110301764.4A CN113031844B (en) 2021-03-22 2021-03-22 Screenshot method, screenshot device, computer equipment and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN113031844A CN113031844A (en) 2021-06-25
CN113031844B true CN113031844B (en) 2022-10-14

Family

ID=76472202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110301764.4A Active CN113031844B (en) 2021-03-22 2021-03-22 Screenshot method, screenshot device, computer equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN113031844B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088740B (en) * 2022-05-30 2023-10-31 荣耀终端有限公司 Interface processing method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648424A (en) * 2016-11-23 2017-05-10 广州华多网络科技有限公司 Screenshot method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750495B (en) * 2015-04-08 2018-09-14 魅族科技(中国)有限公司 A kind of screenshot method and device
CN106407027B (en) * 2016-09-23 2020-03-20 维沃移动通信有限公司 Information display method of mobile terminal and mobile terminal
CN108196750B (en) * 2018-01-03 2021-10-29 努比亚技术有限公司 Screen interface screenshot method and device and computer-readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648424A (en) * 2016-11-23 2017-05-10 广州华多网络科技有限公司 Screenshot method and apparatus

Also Published As

Publication number Publication date
CN113031844A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN109164964B (en) Content sharing method and device, terminal and storage medium
US9405463B2 (en) Device and method for gesturally changing object attributes
CN105843494B (en) Method, device and terminal for realizing area screen capture
CN110515510B (en) Data processing method, device, equipment and storage medium
CN111641750B (en) Screen capture method, terminal and non-volatile computer readable storage medium
US20150277571A1 (en) User interface to capture a partial screen display responsive to a user gesture
US20150253970A1 (en) Method, apparatus and storage medium for adjusting filter list
WO2020043064A1 (en) Page switching method, apparatus, storage medium, and computer device
CN107408401B (en) User slider for simplified adjustment of images
WO2021027485A1 (en) Information processing method and apparatus, storage medium, and electronic device
CN112162685B (en) Attribute adjusting method and device and electronic equipment
CN113031844B (en) Screenshot method, screenshot device, computer equipment and computer-readable storage medium
US10936187B2 (en) Electronic album apparatus, and operation method and operation program for the same
CN113093960A (en) Image editing method, editing device, electronic device and readable storage medium
CN109407939B (en) Terminal image amplification method and device and computer readable storage medium
CN105988700B (en) Terminal screen display method and device
CN112667343B (en) Interface adjustment method, device, equipment and storage medium
US20230359343A1 (en) Interface processing method and apparatus, electronic device, and computer-readable storage medium
CN112684963A (en) Screenshot method and device and electronic equipment
CN105635832B (en) A kind of method for processing video frequency and device
CN111796746A (en) Volume adjusting method, volume adjusting device and electronic equipment
TWI607369B (en) System and method for adjusting image display
CN107632746A (en) A kind of application interface display methods and device
WO2022206097A1 (en) Image editing method and electronic device
CN112286430B (en) Image processing method, apparatus, device and 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