CN112099714A - Screenshot method and device, electronic equipment and readable storage medium - Google Patents

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

Info

Publication number
CN112099714A
CN112099714A CN202011005871.4A CN202011005871A CN112099714A CN 112099714 A CN112099714 A CN 112099714A CN 202011005871 A CN202011005871 A CN 202011005871A CN 112099714 A CN112099714 A CN 112099714A
Authority
CN
China
Prior art keywords
target
area
user
input
screenshot
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.)
Granted
Application number
CN202011005871.4A
Other languages
Chinese (zh)
Other versions
CN112099714B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011005871.4A priority Critical patent/CN112099714B/en
Publication of CN112099714A publication Critical patent/CN112099714A/en
Application granted granted Critical
Publication of CN112099714B publication Critical patent/CN112099714B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/04842Selection of displayed objects or displayed text elements

Abstract

The application discloses a screenshot method, a screenshot device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: the method comprises the steps of receiving a first input of a user under the condition that a target interface is displayed on a screen, responding to the first input, determining a target screenshot area in the target interface according to the position of the first input, and generating a target screenshot according to the target screenshot area. Therefore, when a user needs to intercept a certain area on the target interface, the area can be clicked, the electronic equipment can receive input operation when the user clicks the area, then the input is responded, the target screenshot area on the target interface is determined according to the input position of the input, and a target screenshot is generated according to the target screenshot area. The four edges or corners of the cutout frame do not need to be dragged manually by a user to carry out cutout, and the operation process of cutting out a certain area on the target interface is simplified.

Description

Screenshot method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a screenshot method, a screenshot device, electronic equipment and a readable storage medium.
Background
With the development of science and technology, the interfaces of electronic equipment are more and more diversified, and a user can browse a webpage, view pictures, chat and the like through the electronic equipment anytime and anywhere. In the process of browsing a webpage, viewing pictures and chatting, a user can capture the content, the pictures, the chatting information and the like displayed on the interface of the electronic equipment.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: at present, a user captures a picture, chat information and the like displayed on an interface of electronic equipment, and if a certain area on the captured picture needs to be captured, the user needs to manually drag four edges or corners of a captured picture frame to select and then capture the picture, so that the operation of capturing the local content is complex, and the operation is inconvenient for the user.
Disclosure of Invention
The embodiment of the application aims to provide a screenshot method, a screenshot device, an electronic device and a readable storage medium, and can solve the problems that in the prior art, a user manually drags four edges of a screenshot frame to change the size of a screenshot area, so that the screenshot area is intercepted more cumbersome and inconvenient for the user to operate.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a screenshot method, including:
receiving a first input of a user under the condition that a target interface is displayed on a screen;
responding to the first input, and determining a target screenshot area in the target interface according to the position of the first input;
and generating a target screenshot according to the target screenshot area.
In a second aspect, an embodiment of the present application provides a screenshot device, including;
the receiving module is used for receiving a first input of a user under the condition that a target interface is displayed on a screen;
the determining module is used for responding to the first input and determining a target screenshot area in the target interface according to the position of the first input;
and the generating module is used for generating a target screenshot according to the target screenshot area.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that a target interface is displayed on a screen, a first input of a user is received, the first input is responded, a target screenshot area in the target interface is determined according to the position of the first input, and a target screenshot is generated according to the target screenshot area. Therefore, when a user needs to intercept a certain area on the target interface, the area can be clicked, the electronic equipment can receive input operation when the user clicks the area, then the input is responded, the target screenshot area on the target interface is determined according to the input position of the input, and a target screenshot is generated according to the target screenshot area. The four edges or corners of the cutout frame do not need to be dragged manually by a user to carry out cutout, and the operation process of cutting out a certain area on the target interface is simplified.
Drawings
FIG. 1 is a flow chart of steps of a screenshot method provided in an embodiment of the present application;
FIG. 2 is a schematic illustration of a target interface provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a target screenshot area provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of another target screenshot area provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of another target screenshot area provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of another target screenshot area provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a screenshot device provided in an embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic hardware structure diagram of another electronic device for implementing the 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, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The screenshot method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through a specific embodiment and an application scenario thereof.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a screenshot method provided in an embodiment of the present application, where the screenshot method may include the following steps:
step 101, receiving a first input of a user under the condition that a target interface is displayed on a screen.
Alternatively, the target interface may be a chat session interface when the user chats, an interface including pictures and/or texts intercepted when the user browses a webpage, and the like. For example, referring to fig. 2, fig. 2 is a schematic diagram of a target interface provided in an embodiment of the present application. Fig. 2 shows chat information of a user a and a user B captured by a user, where the avatar of the user a is avatar a, and the avatar of the user B is avatar B. The user can intercept the chat session interface by pressing the power key and the volume key simultaneously, and the chat session interface is a target interface under the condition that the chat session interface is displayed on the screen. In addition, other inputs may be used to screen the chat session interface. For example, when the user needs to intercept the area occupied by the chat information 6 corresponding to the avatar B, the user may click the area occupied by the chat information 6, and when the user clicks the area occupied by the chat information 6, the electronic device receives a first input of the user to the target interface displayed on the screen, where the first input may be a user click operation on the area occupied by the chat information 6 on the target interface.
And 102, responding to the first input, and determining a target screenshot area in the target interface according to the position of the first input.
When the target interface is a chat session interface, the chat session interface includes a dialog box region and a user avatar region, as shown in fig. 2, the chat session interface illustrated in fig. 2 includes the dialog box region and the user avatar region, the user avatar region includes a region occupied by the avatar a and a region occupied by the avatar B, and the dialog box region may be understood as a region selected from the dashed box illustrated in fig. 2.
In an alternative embodiment, determining the target screenshot area in the target interface according to the position of the first input may be implemented as follows:
determining the target dialog box area as a target screenshot area under the condition that the position of the first input is located in the target dialog box area in the dialog box area; or the like, or, alternatively,
and under the condition that the position of the first input is located in a target head portrait area corresponding to the target dialog box area, determining the target dialog box area and the target head portrait area as target screenshot areas.
For example, when the position of the first input is located in the target dialog box region in the dialog box region shown in fig. 2, if the target dialog box region is the region occupied by the dialog box in which chat information 6 shown in fig. 2 is located, and the region occupied by the dialog box in which chat information 6 is located is the region occupied by chat information 6 selected by the bold frame in fig. 2, the target screen capture region is the region where chat information 6 is selected by the bold frame shown in fig. 2.
When the first input position is located in the target avatar area corresponding to the target dialog box area, for example, when the first input position is located in the area where the avatar B corresponding to the area where the chat information 6 is located in fig. 2 is located, the area where the avatar B is located is the target avatar area corresponding to the target dialog box area, and the area where the chat information 6 is selected by using a thick box in fig. 2 (i.e., the target dialog box area) and the area where the avatar B corresponding to the target dialog box area is located (i.e., the target avatar area) are determined as the target screenshot area.
Determining a target dialog box area as a target screenshot area under the condition that the position of the first input is located in the target dialog box area in the dialog box area; or, when the position of the first input is located in the target head portrait area corresponding to the target dialog box area, determining the target dialog box area and the target head portrait area as the target screenshot area. The method and the device can determine a certain target dialog box area in the target interface as the target screenshot area, or determine a target avatar area comprising the target dialog box area and corresponding to the target dialog area as the target screenshot area, so as to generate the target screenshot only comprising the certain target dialog box area, or generate the target screenshot comprising the target dialog box area and the target avatar area corresponding to the target dialog area, and do not need a user to manually drag four edges or corners of the screenshot box to intercept the target screenshot area, so that the operation of intercepting part of the screenshot is simplified.
In an alternative embodiment, the target interface is a chat session interface, and the chat session interface comprises a dialog box area and a user avatar area; according to the position of the first input, determining the target screenshot area in the target interface can be realized by the following steps:
determining the dialog box area as a target screenshot area under the condition that the position of the first input is located in the dialog box area; or the like, or, alternatively,
and under the condition that the position of the first input is located in the user head portrait area, determining the dialog box area and the user head portrait area as the target screenshot area.
In a case that the position of the first input is located in a dialog box region, for example, in a case that the position of the first input is located in a dialog box region as shown in a dashed box shown in fig. 2, the target screenshot region is as shown in fig. 3, and fig. 3 is a schematic diagram of a target screenshot region provided by an embodiment of the present application. Namely, the dialog box area selected by the dashed box shown in fig. 2 is determined as the target screenshot area.
Or, in a case that the position of the first input is located in the user avatar area, the dialog box area and the user avatar area are determined as the target screenshot area, for example, in a case that the position of the first input is located in the user avatar area shown in fig. 2, for example, the position of the first input is located in an area occupied by any one avatar B shown in fig. 2, the target screenshot area is shown in fig. 4, and fig. 4 is a schematic view of another target screenshot area provided in this embodiment of the present application. The screenshot area includes a dialog area and a user avatar area.
Optionally, the target interface is a chat session interface, the chat session interface includes a dialog box region and a user avatar region, and the user avatar region includes an avatar region of the first user and an avatar region of the second user; determining a target screenshot area in the target interface according to the position of the first input, which can be realized by the following steps:
under the condition that the first input position is located in the head portrait area of the target user, determining all head portrait areas of the target user on the target interface and areas where dialog boxes corresponding to all head portrait areas of the target user are located as target screenshot areas; or the like, or, alternatively,
determining the areas of all dialog boxes corresponding to the target user on the target interface as target screenshot areas under the condition that the first input position is located in the dialog box area corresponding to the target user;
the target user is a first user or a second user.
For example, as shown in fig. 5, fig. 5 is a schematic diagram of another target screenshot area provided in an embodiment of the present application, where a target user is a first user (the first user is, for example, a user corresponding to the avatar a), and when a position of a first input is located in the avatar area of the first user, it can be understood that the avatar area of the first user here may be an area where any one avatar a in the chat interface is located, and all avatar areas of the first user on the target interface and areas where dialog boxes corresponding to all avatar areas of the first user are located are determined as the target screenshot area, that is, the area shown in fig. 5. When the position of the first input is located in the dialog box region corresponding to the first user, determining regions where all dialog boxes corresponding to the first user on the target interface are located as a target screenshot region, for example, as shown in fig. 6, fig. 6 is a schematic view of another target screenshot region provided in the embodiment of the present application, and the target screenshot region shown in fig. 6 includes regions where all dialog boxes corresponding to the first user are located.
It should be noted that, the processing manner of the second user being the target user is the same as that of the first user being the target user, and is not described here again.
And 103, generating a target screenshot according to the target screenshot area.
In the screenshot method provided by the embodiment, under the condition that the target interface is displayed on the screen, the first input of the user is received, the first input is responded, the target screenshot area in the target interface is determined according to the position of the first input, and the target screenshot is generated according to the target screenshot area. Therefore, when a user needs to intercept a certain area on the target interface, the area can be clicked, the electronic equipment can receive input operation when the user clicks the area, then the input is responded, the target screenshot area on the target interface is determined according to the input position of the input, and a target screenshot is generated according to the target screenshot area. The user does not need to manually drag four edges or corners of the screenshot frame to select the target screenshot area and then intercept the screenshot area, so that the operation process of intercepting a certain area on the target interface is simplified.
Optionally, the method may further include the following steps:
receiving a second input to the target interface from the user after the first input;
and under the condition that the position of the second input and the position of the first input meet preset conditions, determining the target interface as a target screenshot area.
The position of the second input and the position of the first input satisfying the preset condition may be: the distance between the position of the second input and the position of the first input exceeds a preset distance, or the position of the first input and the position of the second input are respectively located on different user head portrait areas, for example, the position of the first input is located in the head portrait area of the first user, and the position of the second input is located in the head portrait area of the second user. And under the condition that the position of the second input and the position of the first input meet preset conditions, determining the target interface as a target screenshot area. In other words, in this case, the user is not considered to perform screenshot processing on the target interface.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a screenshot device provided in an embodiment of the present application, where the screenshot device 700 includes:
a receiving module 710, configured to receive a first input of a user when a target interface is displayed on a screen;
a determining module 720, configured to determine, in response to the first input, a target screenshot area in the target interface according to a location of the first input;
and a generating module 730, configured to generate a target screenshot according to the target screenshot area.
The screenshot device provided by the embodiment receives a first input of a user under the condition that a target interface is displayed on a screen, responds to the first input, determines a target screenshot area in the target interface according to the position of the first input, and generates a target screenshot according to the target screenshot area. Therefore, when a user needs to intercept a certain area on the target interface, the area can be clicked, the electronic equipment can receive input operation when the user clicks the area, then the input is responded, the target screenshot area on the target interface is determined according to the input position of the input, and a target screenshot is generated according to the target screenshot area. The four edges or corners of the cutout frame do not need to be dragged manually by a user to carry out cutout, and the operation process of cutting out a certain area on the target interface is simplified.
Optionally, the target interface is a chat session interface, and the chat session interface includes a dialog box area and a user avatar area;
the determining module 720 is specifically configured to determine the dialog box region as the target screenshot region when the position of the first input is located in the dialog box region; or the like, or, alternatively,
and under the condition that the position of the first input is located in the user head portrait area, determining the dialog box area and the user head portrait area as the target screenshot area.
Optionally, the target interface is a chat session interface, and the chat session interface includes a dialog box area and a user avatar area;
the determining module 720 is specifically configured to determine, when the position of the first input is located in a target dialog box region in the dialog box region, the target dialog box region as the target screenshot region; or the like, or, alternatively,
and under the condition that the position of the first input is located in a target head portrait area corresponding to the target dialog box area, determining the target dialog box area and the target head portrait area as the target screenshot area.
Optionally, the target interface is a chat session interface, the chat session interface includes a dialog box region and a user avatar region, and the user avatar region includes an avatar region of a first user and an avatar region of a second user;
the determining module 720 is specifically configured to determine, as the target screenshot area, all the avatar areas of the target user on the target interface and areas where dialog boxes corresponding to all the avatar areas of the target user are located when the first input position is located in the avatar area of the target user; or the like, or, alternatively,
determining the areas where all dialog boxes corresponding to the target user on the target interface are located as the target screenshot areas under the condition that the first input position is located in the dialog box area corresponding to the target user;
wherein the target user is the first user or the second user.
Optionally, the receiving module 710 is further configured to receive a second input to the target interface from the user after the first input;
the determining module 720 is further configured to determine the target interface as the target screenshot area when the position of the second input and the position of the first input meet a preset condition.
The screenshot device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The screenshot device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The screenshot device provided in the embodiment of the present application can implement each process implemented by the screenshot device in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, an electronic device is further provided in an embodiment of the present application, as shown in fig. 8, fig. 8 is a schematic diagram of a hardware structure of the electronic device provided in the embodiment of the present application. The electronic device 800 includes a processor 801, and a memory 802 stored in the memory 802 and capable of executing a program or an instruction on the processor 801, where the program or the instruction is executed by the processor 801 to implement the processes of the information processing method embodiments, and can achieve the same technical effects, and the details are not repeated herein to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 9 is a schematic hardware structure diagram of another electronic device for implementing the embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 910 is configured to receive a first input of a user when a target interface is displayed on a screen;
responding to the first input, and determining a target screenshot area in the target interface according to the position of the first input;
and generating a target screenshot according to the target screenshot area.
The method comprises the steps of receiving a first input of a user under the condition that a target interface is displayed on a screen, responding to the first input, determining a target screenshot area in the target interface according to the position of the first input, and generating a target screenshot according to the target screenshot area. Therefore, when a user needs to intercept a certain area on the target interface, the area can be clicked, the electronic equipment can receive input operation when the user clicks the area, then the input is responded, the target screenshot area on the target interface is determined according to the input position of the input, and a target screenshot is generated according to the target screenshot area. The user does not need to manually drag four edges or corners of the screenshot frame to intercept the target screenshot area, and the operation process of intercepting a certain area on the target interface is simplified.
The target interface is a chat session interface which comprises a dialog box area and a user head portrait area; a processor 910, further configured to determine the dialog box region as the screenshot region if the location of the first input is located in the dialog box region; or the like, or, alternatively,
and under the condition that the position of the first input is located in the user head portrait area, determining the dialog box area and the user head portrait area as the target screenshot area.
The target interface is a chat session interface which comprises a dialog box area and a user head portrait area;
a processor 910, further configured to determine a target dialog box region as the target screenshot region if the position of the first input is located in the target dialog box region; or the like, or, alternatively,
and under the condition that the position of the first input is located in a target head portrait area corresponding to the target dialog box area, determining the target dialog box area and the target head portrait area as the target screenshot area.
The target interface is a chat session interface which comprises a dialog box area and a user head portrait area, wherein the user head portrait area comprises a first user head portrait area and a second user head portrait area;
the processor 910 is further configured to, when the position of the first input is located in an avatar area of a target user, determine all avatar areas of the target user on the target interface and areas where dialog boxes corresponding to all avatar areas of the target user are located as the target screenshot area; or the like, or, alternatively,
determining the areas where all dialog boxes corresponding to the target user on the target interface are located as the target screenshot areas under the condition that the first input position is located in the dialog box area corresponding to the target user;
wherein the target user is the first user or the second user.
A processor 910, further configured to receive a second input to the target interface from the user after the first input;
and under the condition that the position of the second input and the position of the first input meet preset conditions, determining the target interface as the target screenshot area.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the screenshot method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), random-access Memory (RAM), magnetic or optical disks, etc.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the screenshot method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of screenshot, the method comprising:
receiving a first input of a user under the condition that a target interface is displayed on a screen;
responding to the first input, and determining a target screenshot area in the target interface according to the position of the first input;
and generating a target screenshot according to the target screenshot area.
2. The method of claim 1, wherein the target interface is a chat session interface comprising a dialog box region and a user avatar region;
determining a target screenshot area in the target interface according to the position of the first input, including:
determining the dialog box area as the target screenshot area under the condition that the position of the first input is located in the dialog box area; or the like, or, alternatively,
and under the condition that the position of the first input is located in the user head portrait area, determining the dialog box area and the user head portrait area as the target screenshot area.
3. The method of claim 1, wherein the target interface is a chat session interface comprising a dialog box region and a user avatar region;
determining a target screenshot area in the target interface according to the position of the first input, including:
determining a target dialog box area as the target screenshot area under the condition that the position of the first input is located in the target dialog box area in the dialog box area; or the like, or, alternatively,
and under the condition that the position of the first input is located in a target head portrait area corresponding to the target dialog box area, determining the target dialog box area and the target head portrait area as the target screenshot area.
4. The method of claim 1, wherein the target interface is a chat session interface comprising a dialog box region and a user avatar region, the user avatar region comprising an avatar region of a first user and an avatar region of a second user;
determining a target screenshot area in the target interface according to the position of the first input, including:
determining all the avatar areas of the target user on the target interface and areas where dialog boxes corresponding to all the avatar areas of the target user are located as the target screenshot areas under the condition that the position of the first input is located in the avatar area of the target user; or the like, or, alternatively,
determining the areas where all dialog boxes corresponding to the target user on the target interface are located as the target screenshot areas under the condition that the first input position is located in the dialog box area corresponding to the target user;
wherein the target user is the first user or the second user.
5. The method of claim 1, further comprising:
receiving a second input to the target interface by the user after the first input;
and under the condition that the position of the second input and the position of the first input meet preset conditions, determining the target interface as the target screenshot area.
6. A screenshot device, the device comprising:
the receiving module is used for receiving a first input of a user under the condition that a target interface is displayed on a screen;
the determining module is used for responding to the first input and determining a target screenshot area in the target interface according to the position of the first input;
and the generating module is used for generating a target screenshot according to the target screenshot area.
7. The apparatus of claim 6, wherein the target interface is a chat session interface comprising a dialog area and a user avatar area;
the determining module is specifically configured to determine the dialog box region as the target screenshot region when the position of the first input is located in the dialog box region; or the like, or, alternatively,
and under the condition that the position of the first input is located in the user head portrait area, determining the dialog box area and the user head portrait area as the target screenshot area.
8. The apparatus of claim 6, wherein the target interface is a chat session interface comprising a dialog area and a user avatar area;
the determining module is specifically configured to determine, when the position of the first input is located in a target dialog box region in the dialog box region, the target dialog box region as the target screenshot region; or the like, or, alternatively,
and under the condition that the position of the first input is located in a target head portrait area corresponding to the target dialog box area, determining the target dialog box area and the target head portrait area as the target screenshot area.
9. The apparatus of claim 6, wherein the target interface is a chat session interface comprising a dialog area and a user avatar area, the user avatar area comprising an avatar area of a first user and an avatar area of a second user;
the determining module is specifically configured to determine, as the target screenshot area, all avatar areas of the target user on the target interface and areas where dialog boxes corresponding to all avatar areas of the target user are located when the first input position is located in the avatar area of the target user; or the like, or, alternatively,
determining the areas where all dialog boxes corresponding to the target user on the target interface are located as the target screenshot areas under the condition that the first input position is located in the dialog box area corresponding to the target user;
wherein the target user is the first user or the second user.
10. The apparatus of claim 6,
the receiving module is further used for receiving a second input of the target interface by the user after the first input;
the determining module is further configured to determine the target interface as the target screenshot area when the position of the second input and the position of the first input meet a preset condition.
CN202011005871.4A 2020-09-22 2020-09-22 Screenshot method and device, electronic equipment and readable storage medium Active CN112099714B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011005871.4A CN112099714B (en) 2020-09-22 2020-09-22 Screenshot method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011005871.4A CN112099714B (en) 2020-09-22 2020-09-22 Screenshot method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112099714A true CN112099714A (en) 2020-12-18
CN112099714B CN112099714B (en) 2022-03-15

Family

ID=73755190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011005871.4A Active CN112099714B (en) 2020-09-22 2020-09-22 Screenshot method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112099714B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684963A (en) * 2020-12-24 2021-04-20 维沃移动通信(杭州)有限公司 Screenshot method and device and electronic equipment
CN112698894A (en) * 2020-12-24 2021-04-23 维沃移动通信(杭州)有限公司 Screen capturing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270139A (en) * 2011-08-16 2011-12-07 潘天华 Screenshot method
CN105700790A (en) * 2016-01-11 2016-06-22 广东欧珀移动通信有限公司 Screenshot method and terminal device
CN108037871A (en) * 2017-11-07 2018-05-15 维沃移动通信有限公司 Screenshotss method and mobile terminal
US20180349730A1 (en) * 2017-05-30 2018-12-06 Adobe Systems Incorporated User Interface Creation from Screenshots
US20190079663A1 (en) * 2017-09-14 2019-03-14 Samsung Electronics Co., Ltd. Screenshot method and screenshot apparatus for an electronic terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270139A (en) * 2011-08-16 2011-12-07 潘天华 Screenshot method
CN105700790A (en) * 2016-01-11 2016-06-22 广东欧珀移动通信有限公司 Screenshot method and terminal device
US20180349730A1 (en) * 2017-05-30 2018-12-06 Adobe Systems Incorporated User Interface Creation from Screenshots
US20190079663A1 (en) * 2017-09-14 2019-03-14 Samsung Electronics Co., Ltd. Screenshot method and screenshot apparatus for an electronic terminal
CN108037871A (en) * 2017-11-07 2018-05-15 维沃移动通信有限公司 Screenshotss method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
几罗星人: ""怎么自动捕抓窗口(类似QQ截图)"", 《HTTPS://BBS.CSDN.NET/TOPICS/390208270?》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684963A (en) * 2020-12-24 2021-04-20 维沃移动通信(杭州)有限公司 Screenshot method and device and electronic equipment
CN112698894A (en) * 2020-12-24 2021-04-23 维沃移动通信(杭州)有限公司 Screen capturing method and device and electronic equipment
WO2022135290A1 (en) * 2020-12-24 2022-06-30 维沃移动通信(杭州)有限公司 Screenshot capturing method and apparatus, and electronic device
WO2022135476A1 (en) * 2020-12-24 2022-06-30 维沃移动通信(杭州)有限公司 Screenshot method and apparatus, and electronic device

Also Published As

Publication number Publication date
CN112099714B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN111984115A (en) Message sending method and device and electronic equipment
CN112099707A (en) Display method and device and electronic equipment
CN112306607A (en) Screenshot method and device, electronic equipment and readable storage medium
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
CN113141295B (en) Message display method and device and electronic equipment
CN112860163A (en) Image editing method and device
CN113179205B (en) Image sharing method and device and electronic equipment
CN112099714B (en) Screenshot method and device, electronic equipment and readable storage medium
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112911147A (en) Display control method, display control device and electronic equipment
CN112954046A (en) Information sending method, information sending device and electronic equipment
CN112399010B (en) Page display method and device and electronic equipment
CN112181252B (en) Screen capturing method and device and electronic equipment
CN113721876A (en) Screen projection processing method and related equipment
CN113703630A (en) Interface display method and device
CN113703634A (en) Interface display method and device
CN112684963A (en) Screenshot method and device and electronic equipment
CN112148167A (en) Control setting method and device and electronic equipment
CN112286612A (en) Information display method and device and electronic equipment
CN112291412B (en) Application program control method and device and electronic equipment
CN112230817B (en) Link page display method and device and electronic equipment
CN112148175B (en) Notification display mode setting method and device, electronic equipment and storage medium
CN114416264A (en) Message display method and device
CN113807831A (en) Payment method and device
CN112286613A (en) Interface display method and interface display device

Legal Events

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