[go: up one dir, main page]

CN116893770A - 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
CN116893770A
CN116893770A CN202310895304.8A CN202310895304A CN116893770A CN 116893770 A CN116893770 A CN 116893770A CN 202310895304 A CN202310895304 A CN 202310895304A CN 116893770 A CN116893770 A CN 116893770A
Authority
CN
China
Prior art keywords
interface
interface element
screenshot
image
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310895304.8A
Other languages
Chinese (zh)
Inventor
邓清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310895304.8A priority Critical patent/CN116893770A/en
Publication of CN116893770A publication Critical patent/CN116893770A/en
Priority to PCT/CN2024/106133 priority patent/WO2025016426A1/en
Pending legal-status Critical Current

Links

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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application discloses a screenshot method, a screenshot device, electronic equipment and a readable storage medium, and belongs to the technical field of electronics. Wherein the method comprises the following steps: displaying a first interface, wherein the first interface comprises N interface elements, and N is a positive integer; receiving a first input of a user; identifying element types of N interface elements; and under the condition that the element type of at least one interface element in the N interface elements is a first preset type, responding to a first input, and carrying out screenshot on the at least one interface element.

Description

Screenshot method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a screenshot method, a screenshot device, electronic equipment and a readable storage medium.
Background
Generally, in the case that the electronic device displays a plurality of interface elements at the same time, if the user wants to capture a screen capture image of some interface elements, the user may perform screen capture input on the electronic device, for example, input on a power key and an audio key of the electronic device, so that the electronic device may capture a screen of a screen displayed on the electronic device to obtain a screen capture image of the screen, and then the user may sequentially input interface elements required by the user in the screen capture image of the screen, so that the electronic device may sequentially capture a screen capture image of each interface element from the screen capture image of the screen, so that the user may obtain a screen capture image of the interface element required by the user.
However, because the user needs to perform multiple inputs, the electronic device can be triggered to sequentially intercept the screen capturing images of the interface elements required by the user from the screen capturing images of the displayed images, and therefore, in the process of triggering the electronic device to intercept the screen capturing images of the interface elements required by the user, the operation of the user is complex and time-consuming, and the efficiency of the electronic device to intercept the screen capturing images required by the user is low.
Disclosure of Invention
The embodiment of the application aims to provide a screenshot method, a screenshot device, electronic equipment and a readable storage medium, which can solve the problem of poor screenshot effect of the electronic equipment.
In a first aspect, an embodiment of the present application provides a screenshot method, where the method includes: displaying a first interface, wherein the first interface comprises N interface elements, and N is a positive integer; receiving a first input of a user; identifying element types of N interface elements; and under the condition that the element type of at least one interface element in the N interface elements is a first preset type, responding to a first input, and carrying out screenshot on the at least one interface element.
In a second aspect, an embodiment of the present application provides a screen capturing apparatus, including: the device comprises a display module, a receiving module and a processing module. The display module is used for displaying a first interface, wherein the first interface comprises N interface elements, and N is a positive integer. And the receiving module is used for receiving the first input of the user. The processing module is used for identifying element types of the N interface elements; and under the condition that the element type of at least one interface element in the N interface elements is a first preset type, responding to the first input received by the receiving module, and capturing the at least one interface element.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executed by at least one processor to carry out the steps of the method according to the first aspect.
In the embodiment of the application, the electronic device can display a first interface comprising N interface elements and identify the element types of the N interface elements according to the first input of a user, so that the electronic device can perform screenshot on at least one interface element in the N interface elements under the condition that the element type of the at least one interface element is a first preset type; wherein N is a positive integer. Under the condition that N interface elements of the first interface are displayed, the electronic equipment can identify the element types of the N interface elements according to one-time input of a user, and under the condition that the element type of at least one interface element in the N interface elements is a first preset type frequently required by the user, the screen capturing is directly carried out on at least one interface element frequently required by the user so as to obtain the screen capturing image of the interface element required by the user without multiple input of the user, so that the operation of the user in the process of triggering the electronic equipment to capture the screen capturing image of the interface element required by the user can be simplified, the time consumption is reduced, and the efficiency of capturing the screen capturing image required by the user by the electronic equipment can be improved.
Drawings
FIG. 1 is one of the flow diagrams of a screenshot method provided by some embodiments of the application;
FIG. 2 is one of the interface schematics of the first interface provided by some embodiments of the present application;
FIG. 3 is a second interface diagram of a first interface provided by some embodiments of the present application;
FIG. 4 is a second flowchart of a screenshot method according to some embodiments of the application;
FIG. 5 is a schematic illustration of dimensions of interface elements and first coordinates in a first interface provided by some embodiments of the application;
FIG. 6A is one of the interface schematics of the second interface provided by some embodiments of the present application;
FIG. 6B is a second interface schematic of a second interface provided by some embodiments of the present application;
FIG. 7 is a third flow chart of a screenshot method according to some embodiments of the application;
FIG. 8A is a third interface diagram of a first interface provided in accordance with some embodiments of the present application;
FIG. 8B is a fourth interface schematic of the first interface provided by some embodiments of the present application;
FIG. 9 is a fourth flow diagram of a screenshot method provided by some embodiments of the application;
FIG. 10 is a fifth interface schematic of a first interface provided by some embodiments of the present application;
FIG. 11 is a schematic diagram of a screenshot device according to some embodiments of the application;
FIG. 12 is a second schematic diagram of a screenshot device according to some embodiments of the present application;
FIG. 13 is a schematic diagram of one of the hardware structures of an electronic device provided by some embodiments of the present application;
fig. 14 is a second schematic diagram of a hardware structure of an electronic device according to some embodiments of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, 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 may be interchanged where appropriate, such that embodiments of the application may be practiced otherwise than as specifically illustrated and described herein, and that the objects identified by "first," "second," etc. are generally of the same type and are not limited to the number of objects, such as the first interface element may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The terms "at least one," "at least one," and the like in the description and in the claims, mean that they encompass any one, any two, or a combination of two or more of the objects. For example, at least one of a, b, c (item) may represent: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", wherein a, b, c may be single or plural. Similarly, the term "at least two" means two or more, and the meaning of the expression is similar to the term "at least one".
The screenshot method, device, electronic equipment and readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The screenshot method provided by the embodiment of the application can be applied to a scene of screenshot on the interface of the electronic equipment.
Assuming that the electronic device displays an interface of the application program a, the interface of the application program a includes an image element 1, an image element 2, a text element and a control element, if a user wants to intercept the content of the image element 1 and the image element 2, the user can press and input a power key and a volume key of the electronic device, so that the electronic device can directly execute a screen capturing operation on a currently displayed screen to obtain a screen capturing image including the image element 1, the image element 2, the text element and the control element, and the user can sequentially input the image element 1 and the image element 2 required by the user in the screen capturing image, so that the electronic device can sequentially intercept the screen capturing images of the image element 1 and the image element 2 from the screen capturing image, and the user can obtain the screen capturing images of the image element 1 and the image element 2 required by the user. However, since the user needs to perform multiple inputs to trigger the electronic device to sequentially intercept the screenshot images of the image element 1 and the image element 2 from the screenshot images including the image element 1, the image element 2, the text element and the control element, the operation of the user is complicated and time-consuming in the process of triggering the electronic device to intercept the screenshot images of the interface element required by the user.
However, in the embodiment of the present application, in the case where the electronic device displays the interface of the application program a, the electronic device may identify the element type of each interface element in the interface of the application program a according to one input of the electronic device by the user, and in the case where the element type of at least one interface element in each interface element is the image type, perform screenshot on the image element 1 and the image element 2. It can be understood that the electronic device can intercept the image element 1 and the image element 2 of the image type frequently required by the user from each interface element in the interface of the application program a directly according to one input of the user to the electronic device, so as to obtain the screen capturing images of the image element 1 and the image element 2 required by the user without multiple inputs of the user, thus simplifying the operation of the user in the process of triggering the electronic device to intercept the screen capturing images of the interface element required by the user and reducing time consumption.
According to the screenshot method provided by the embodiment of the application, the execution subject can be a screenshot device, or an electronic device, or a functional module or entity in the electronic device. In the embodiment of the application, the method for executing the screenshot by the electronic equipment is taken as an example, and the screenshot method provided by the embodiment of the application is described.
Fig. 1 shows a flowchart of a screenshot method according to an embodiment of the present application. As shown in fig. 1, a screenshot method provided by an embodiment of the present application may include steps 101 to 104 described below.
Step 101, the electronic device displays a first interface.
In the embodiment of the present application, the first interface includes N interface elements, where N is a positive integer.
In some embodiments of the present application, the first interface may be any one of the following: an interface of the first application.
Alternatively, the first application may be any one of the following: chat-type applications, photo-type applications, note-type applications, video-type applications, etc.
In some embodiments of the present application, the N interface elements may include at least one of: image elements, window elements, text elements, control elements, etc. The N interface elements may be all or part of the interface elements in the first interface.
Alternatively, the image element may be an image on a page in the first interface, or a background image of the first interface.
Optionally, the window element may be a window of a second application program, where the window includes an operation interface of the second application program, and the second application program may be the same as or different from the first application program.
In one possible implementation manner, in the case that the second application program is the same as the first application program, the window element may be specifically a split-screen window of the first application program.
Step 102, the electronic device receives a first input from a user.
In some embodiments of the present application, when the electronic device displays the "set" application interface, the electronic device may start the "intelligent recognition screenshot area" function according to the click input of the user on the "intelligent recognition screenshot area" control in the "set" application interface, so that when the user triggers the electronic device to display N interface elements in the first interface, the user may perform the first input on the electronic device.
Optionally, in a case where the N interface elements include at least one of an image element, a text element, and a control element, the user may directly trigger the electronic device to display a first interface to trigger the electronic device to display the N image elements in the first interface.
For example, an electronic device is taken as a mobile phone for illustration. As shown in fig. 2, the user may trigger the electronic device to display a first interface, such as interface 10 of application 1, where the interface 10 includes N interface elements, such as image element 11, image element 12, text element 13, and control element 14, so that the user may make a first input to the electronic device.
Optionally, in the case that the N interface elements are N window elements, the user may trigger the electronic device to display the first interface first, and then trigger the electronic device to open the N second application programs, so that the electronic device may hover display the N window elements on the first interface, so as to display the N window elements in the first interface.
For example, the user may trigger the electronic device to display a first interface, such as the interface of the application 2, and then trigger the electronic device to start the application 3, as shown in fig. 3, so that the electronic device may display the window element 16 of the application 3 on the interface (such as the interface 15) of the application 2, and the user may make a first input to the electronic device.
In the embodiment of the application, the first input is used for triggering the electronic device to perform screenshot on the first interface.
In some embodiments of the present application, the first input may be: user input to a display screen of the electronic device, or user input to physical keys of the electronic device.
Alternatively, the first input may include, but is not limited to: the touch input of the user in the display screen, or the voice command input by the user, or the specific gesture input by the user through the touch device such as a finger or a stylus, or other feasibility inputs can be specifically determined according to the actual use requirement, and the embodiment of the application is not limited herein. The specific gesture may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the application can be single click input, double click input or any time click input, and the like, and can also be long-press input or short-press input. For example, the first input may be: the user presses the "power" key and the "volume" key of the electronic device.
Step 103, the electronic device identifies element types of the N interface elements.
In some embodiments of the present application, the electronic device may first obtain N queriable attributes corresponding to N interface elements one-to-one, and obtain an element type of the corresponding interface element from each queriable attribute.
Optionally, the queriable attribute may include at least one of: class name (ClassName), identity (ID).
For example, in the case that the queriable attribute is an ID, the electronic device may determine, for each queriable attribute of the N queriable attributes, one element type corresponding to one ID by using at least one first correspondence relationship, and determine the one element type as an element type of an interface element corresponding to the one ID, so as to identify element types of the N interface elements.
Step 104, if the element type of at least one interface element in the N interface elements is the first preset type, the electronic device responds to the first input to perform screenshot on the at least one interface element.
In some embodiments of the present application, the first preset type may include at least one of: image element type, window element type.
In the embodiment of the application, because the user always needs to intercept the interface element of the image element type and the interface element of the window element type when intercepting the content of the interface element, the electronic device can respond to the first input only when the element type of at least one interface element in the N interface elements is of the first preset type, and the at least one interface element frequently demanded by the user is subjected to screenshot.
In some embodiments of the present application, the electronic device may screen capture each interface element in the at least one interface element in turn; or, the electronic device may first perform screenshot on the first interface, and then intercept a screenshot image of at least one interface element from the screenshot images obtained by the screenshot.
The specific scheme of the electronic device for capturing the screen will be illustrated below by taking the electronic device for capturing the screen of each interface element in at least one interface element in turn as an example.
In some embodiments of the present application, as shown in fig. 4 in conjunction with fig. 1, after the step 103 and before the step 104, the screenshot method provided in the embodiment of the present application may further include the following step 201, and the step 104 may be specifically implemented by the following step 104 a.
Step 201, when the element type of at least one interface element in the N interface elements is a first preset type, the electronic device obtains the size of the at least one interface element and a first coordinate in the first interface.
In some embodiments of the present application, for each of the at least one interface element, the first coordinate of one interface element in the first interface may specifically be: coordinates of a vertex of the one interface element in the first coordinate system. Wherein, this first coordinate system is: and taking the first edge line of the display screen of the electronic equipment as an x-axis and the second edge line as a rectangular coordinate system established by a y-axis. The first edge line and the second edge line are adjacent edge lines.
In some embodiments of the application, for each of the at least one interface element, the dimensions of the one interface element may include at least one of: the length parameter of the third edge line of the one interface element, the length parameter of the fourth edge line of the one interface element. The third edge line and the fourth edge line are adjacent edge lines.
In some embodiments of the present application, the electronic device may obtain, from the attribute value corresponding to each interface element in the at least one interface element, the size of each interface element and the first coordinate in the first interface.
It should be noted that, the "attribute value corresponding to the interface element" may be understood as: when the interface element is written in the front end, the interface element is given an attribute value.
For example, fig. 5 shows a schematic diagram of the dimensions of the interface element and the first coordinates in the first interface acquired by the electronic device according to the embodiment of the present application. As shown in fig. 5, assuming that at least one interface element is included as an image element, the electronic device may determine a coordinate value (x 1 ,y 1 ) A length parameter of the third edge line 18 of the picture element, e.g. width w, and a length parameter of the fourth edge line 19 of the picture element, e.g. width h, the third edge line 18 and the fourth edge line 19 being adjacent edge lines.
Step 104a, the electronic device captures at least one interface element according to the size and the first coordinates in response to the first input.
In some embodiments of the present application, the electronic device may determine, according to the size and the first coordinate of each interface element, an interface area where each interface element is located, so that the electronic device may respectively perform screenshot on each interface area.
It should be noted that, for the illustration of the electronic device, reference may be made to the specific description in the related art, and the embodiments of the present application are not repeated here.
Therefore, the electronic device can directly acquire the size of at least one interface element and the first coordinate in the first interface, and screen capture the at least one interface element according to the size of the at least one interface element and the first coordinate in the first interface, without triggering the electronic device by a user to determine the size of the at least one interface element and the first coordinate in the first interface, so that the operation amount of the electronic device and the device can be reduced, and the power consumption of the electronic device can be reduced.
In some embodiments of the present application, after the electronic device performs the screenshot on at least one interface element, the electronic device may update the first interface to a second interface, where the second interface includes at least one screenshot, where each screenshot is obtained by the electronic device performing the screenshot on one interface element, so that a user may perform a third input on at least a portion of the at least one screenshot, so that the electronic device may perform a target operation corresponding to the third input on the at least portion of the screenshot.
Optionally, the third input may include a first sub-input and a second sub-input, where the first sub-input is a user selection input of at least a portion of the screenshot, the first sub-input is used to trigger the electronic device to mark the at least a portion of the screenshot in a first marking manner, the second sub-input is a user selection input of a target control in at least one control in the second interface, each control corresponds to an operation, the target control corresponds to a target operation, and the second sub-input is used to trigger the electronic device to perform the target operation on the at least a portion of the screenshot.
In one possible implementation manner, the first marking manner may include any one of the following: highlighting marking, marking with a broken line frame, marking with a display prompt image, marking with a color, marking with a gray scale, marking with a preset transparency, blinking marking, and the like.
In one possible implementation, the above-mentioned target operation is any one of the following: save operation, share operation, delete operation.
For example, in the case where the target operation is a save operation, the electronic device may store the at least partial screenshot into a preset storage space.
For example, in the case where the target operation is a sharing operation, the electronic device may send the at least partial screenshot to the electronic device of the first contact, which may be a contact selected by the user or a contact preset by the user.
For example, in the event that the target operation is a delete operation, the electronic device may delete the at least partial screenshot from the cache of the electronic device.
For example, taking the first preset type as an image type as an example, referring to fig. 2, after the electronic device is subjected to the first input by the user, in a case that the element type of at least one interface element (i.e., the image element 11 and the image element 12) in the image element 11, the image element 12, the text element 13 and the control element 14 is the image type, the electronic device may perform screenshot on the image element 11 and the image element 12, and update the interface 10 to be a second interface 20, where the second interface 20 includes a screenshot image 21 and a screenshot image 22, where the screenshot image 21 is obtained by the electronic device performing screenshot on the image element 11, and the screenshot image 22 is obtained by the electronic device performing screenshot on the image element 12, so that the user may perform the first sub-input on the screenshot image 21; after the user makes a first sub-input to the screen capture image 21, as shown in fig. 6B, the electronic device may mark the screen capture image 21 in a manner that a prompt image mark is displayed, for example, a prompt image 23 is displayed, and the prompt image 23 is used to prompt the electronic device that the screen capture image 21 has been selected, so that the user may make a second sub-input, for example, a click input to the storage control 24, so that the electronic device may store the screen capture image 21 in a preset storage space.
The embodiment of the application provides a screenshot method, wherein an electronic device can display a first interface comprising N interface elements and identify the element types of the N interface elements according to a first input of a user, so that the electronic device can perform screenshot on at least one interface element in the N interface elements under the condition that the element type of the at least one interface element is a first preset type; wherein N is a positive integer. Under the condition that N interface elements of the first interface are displayed, the electronic equipment can identify the element types of the N interface elements according to one-time input of a user, and under the condition that the element type of at least one interface element in the N interface elements is a first preset type frequently required by the user, the screen capturing is directly carried out on at least one interface element frequently required by the user so as to obtain the screen capturing image of the interface element required by the user without multiple input of the user, so that the operation of the user in the process of triggering the electronic equipment to capture the screen capturing image of the interface element required by the user can be simplified, the time consumption is reduced, and the efficiency of capturing the screen capturing image required by the user by the electronic equipment can be improved.
In the embodiment of the application, since the at least one interface element may be at least partially overlapped, if the electronic device directly captures the at least one interface element, the electronic device may not capture the whole content of some interface elements in the at least one interface element, so that the electronic device may update the transparency of the at least one interface element to sequentially display the whole content of the at least one interface element, and capture the interface element displayed each time under the condition that the whole content of some interface elements in the at least one interface element is displayed each time, so as to avoid the situation that the electronic device cannot capture the whole content of some interface elements in the at least one interface element.
It should be noted that, the above "at least partially overlap" may be understood as: partially overlapping or fully overlapping.
In the embodiment of the application, the electronic device can update the transparency of the interface element in the at least one interface element at least once, and the updated interface element is different each time so as to display all contents of the at least one interface element in sequence.
In some embodiments of the present application, for each of the at least one update, the electronic device may update the transparency of an interface element of the at least one interface element other than the one interface element to update the transparency of the interface element of the at least one interface element once to display all of the content of the one interface element; alternatively, the electronic device may update the transparency of one interface element and update the transparency of another interface element to update the transparency of the interface element in at least one interface element once to display all of the content of the one interface element.
Optionally, for each of the at least one update, the electronic device may increase the transparency of other interface elements of the at least one interface element than the one interface element such that the transparency of the one interface element is the lowest transparency of the at least one interface element to update the transparency of the interface element of the at least one interface element once. It is understood that since the transparency of the one interface element is the lowest transparency of the at least one interface element, the electronic device can display all contents of the one interface element.
It will be appreciated that, since it may happen that some of the at least one interface element at least partially overlaps, the electronic device may directly increase the transparency of other interface elements so that the electronic device may display all of the content of the one interface element, and thus the electronic device may intercept the screen capture image of all of the content comprising the one interface element.
Optionally, for each of the at least one update, the electronic device may adjust the transparency of one interface element down and adjust the transparency of another interface element up so that the transparency of the one interface element is the lowest transparency of the at least one interface element to update the transparency of the interface element of the at least one interface element once. Since the transparency of the one interface element is the lowest transparency among the at least one interface element, the electronic device can display all contents of the one interface element.
It will be appreciated that, since it may happen that the electronic device has turned up the transparency of the one interface element and turned down the transparency of the other interface element, the electronic device may turn down the transparency of the one interface element and turn up the transparency of the other interface element so that the electronic device may display all of the content of the one interface element, so that the electronic device may intercept a screen capture image including all of the content of the one interface element.
A specific scheme of updating the transparency of the interface element by the electronic device will be illustrated below by taking the above-mentioned two parts of interface elements as examples.
In some embodiments of the present application, the at least one interface element includes: the first interface element and the second interface element at least partially overlap. Alternatively, as shown in fig. 7 in conjunction with fig. 1, the above step 104 may specifically be performed by the following steps 104b and 104c.
Step 104b, in the case that the element type of at least one interface element in the N interface elements is the first preset type, the electronic device responds to the first input to update the transparency of the second interface element so as to display the whole content of the first interface element, and captures a screenshot of the first interface element.
In some embodiments of the present application, the first preset type may be an image type, and element types of the first interface element and the second interface element may be image types.
In some embodiments of the present application, the first interface element may be: the first interface element and the second interface element are ordered according to the target order, and the ordered interface elements are ordered into a first interface element; the second interface element may be: and the first interface element and the second interface element are ordered into the second interface element after being ordered according to the target order.
Alternatively, the target order may be any of the following: the display time is from early to late, the display time is from late to early, the order of display positions along a first direction, the order of display positions along a second direction; wherein the first direction and the second direction are perpendicular.
In one possible implementation manner, the first direction may be any one of the following: the direction from the left end to the right end of the display screen, and the direction from the right end to the left end of the display screen.
It should be noted that, the "left end of the display screen" can be understood as: when the user uses the electronic device, the left end is at the viewing angle of the user viewing the display screen. The "right end of the display screen" mentioned above can be understood as: when the user uses the electronic device, the right end is at the view angle of the display screen observed by the user.
In one possible implementation manner, the first direction may be any one of the following: the direction from the upper end to the lower end of the display screen and the direction from the lower end to the upper end of the display screen.
It should be noted that, the "upper end of the display screen" can be understood as: when the user uses the electronic device, the upper end of the display screen is observed by the user. The above "lower end of the display screen" can be understood as: when the user uses the electronic device, the lower end is viewed from the view angle of the display screen.
In some embodiments of the present application, the electronic device may update the transparency of the second interface element to the first transparency to display the entire content of the first interface element.
In an embodiment of the present application, the first transparency is greater than an initial transparency of the second interface element (e.g., the second transparency in the embodiment described below).
It should be noted that, the above "initial transparency" can be understood as: the transparency of the second interface element is updated before the transparency of the second interface element is updated.
In some embodiments of the present application, the first transparency may be any transparency in a range of greater than or equal to 50% and less than or equal to 100%. For example, the first transparency may be 100%.
Step 104c, the electronic device updates the transparency of the first interface element and the second interface element to display the whole content of the second interface element, and captures a screenshot of the second interface element.
In some embodiments of the present application, after the electronic device captures the first interface element, the electronic device may update the transparency of the first interface element to the first transparency and update the transparency of the second interface element to the second transparency.
In some embodiments of the present application, the second transparency may be any transparency in a range of greater than or equal to 0% and less than 50%. For example, the second transparency may be 0%.
In some embodiments of the application, the electronic device may update the transparency of the first interface element from the second transparency to the first transparency and update the transparency of the second interface element from the first transparency to the second transparency.
In some embodiments of the present application, after the electronic device captures the first interface element and the second interface element, the electronic device may further update the transparency of the first interface element and the second interface element to the initial transparency (e.g., the second transparency) of the first interface element and the second interface element, so that the electronic device may continue to view the first interface element and the second interface element in the first interface.
For example, in connection with fig. 2, if the image element 11, the image element 12, the text element 13, and the control element 14 include the image element 11 and the image element 12 that are at least partially overlapped, after the user performs the first input, as shown in fig. 8A, the electronic device may update the transparency of the image element 12 to 100% to display the entire content of the image element 11, and perform screenshot on the image element 11; after the screenshot for image element 11, the electronic device may update the transparency of image element 11 to 100% and the transparency of image element 12 to 0% to display the entire content of image element 12 and the screenshot for image element 12, as shown in fig. 8B.
Therefore, under the condition that the first interface element and the second interface element are at least partially overlapped, before the electronic device performs screenshot on each interface element in the first interface element and the second interface element, the electronic device can update the transparency of the first interface element or the second interface element so as to prevent the first interface element from covering the content of the second interface element or prevent the second interface element from covering the content of the first interface element, so that the condition that the content of the first interface element or the second interface element in the screenshot image obtained by performing the screenshot is incomplete can be avoided, and the screenshot effect of the electronic device can be improved.
In some embodiments of the present application, the at least one interface element includes: suspending the interface element. Alternatively, as shown in fig. 9 in conjunction with fig. 1, the above step 104 may specifically be performed by the following step 104d.
And 104d, under the condition that the element type of at least one interface element in the N interface elements is a first preset type, the electronic equipment responds to the first input to update the transparency of the suspension interface element so as to display the whole background content of the first interface, and screenshot is carried out on the first interface.
In some embodiments of the present application, the first preset type may be an image type and a window type.
In some embodiments of the present application, the electronic device may update the transparency of the floating interface element to the first transparency described above to display the entire background content of the first interface.
For example, in connection with fig. 3, the at least one interface element includes a background content of the interface 15 and a window element 16, where the window element 16 and the background content of the interface 15 at least partially overlap, and after the user makes the first input, as shown in fig. 10, the electronic device may update the transparency of the window element 16 to 100% to display the entire background content of the interface 15, and perform screenshot on the first interface.
In some embodiments of the present application, after the electronic device captures a first interface, the electronic device may further update the transparency of the hover interface element to the initial transparency (e.g., the second transparency) of the hover interface element so that the electronic device may continue to view the hover interface element in the first interface.
In some embodiments of the present application, after the electronic device captures the first interface, the electronic device may further update the transparency of the first interface and the hover interface element to display the entire content of the hover interface element, and capture the screenshot of the hover interface element.
It should be noted that, for the description of transparency of updating the first interface and the floating interface element by the electronic device, reference may be made to the specific description of updating the first interface element and the second interface element by the electronic device in the above embodiment, and the embodiments of the present application are not repeated here.
Therefore, under the condition that the floating interface element covers the background content of the first interface, before the electronic device performs screenshot on the background content of the first interface, the electronic device can update the transparency of the floating interface element so as to avoid the condition that the floating interface element covers the background content of the first interface, so that the condition that the background content of the first interface is incomplete in a screenshot image obtained by performing screenshot can be avoided, and the screenshot effect of the electronic device can be improved.
In the embodiment of the present application, after the electronic device captures at least one interface element, a situation may occur that the user wants to capture a partial image area from the captured image of the floating window element, and at this time, the electronic device may display the captured image of the floating window element first, and capture, according to the input of the user, the image area desired by the user from the captured image of the floating window element, which will be illustrated below.
In some embodiments of the present application, the at least one interface element includes a floating window element. Optionally, after the step 104, the screenshot method provided by the embodiment of the present application may further include steps 301 to 303.
Step 301, the electronic device displays a target screen capturing image.
In the embodiment of the present application, the target screenshot image is obtained by screenshot on a floating window element, where the target screenshot image includes M first image areas, and each first image area is respectively: one of the floating window elements corresponds to an image region in the target screenshot image, M being a positive integer.
In some embodiments of the present application, the electronic device may update the first interface to a second interface, where the second interface includes at least one screenshot image, where each screenshot image is obtained by the electronic device capturing a screenshot of one of the at least one interface element, and the at least one screenshot image includes a target screenshot image.
In some embodiments of the present application, before the step 301, the screenshot method provided by the embodiment of the present application may further include steps 401 to 403 described below.
Step 401, the electronic device identifies element types of L first window elements in the floating window elements.
In the embodiment of the application, L is a positive integer.
In some embodiments of the present application, the electronic device may first obtain L queriable attributes corresponding to the L first window elements one to one, and obtain an element type of the corresponding first window element from each queriable attribute.
It should be noted that, for the electronic device to obtain the description of the element type of the corresponding first window element from each queriable attribute, reference may be made to the specific description of the electronic device to obtain the element type of the corresponding interface element from each queriable attribute in the above embodiment, and the embodiments of the present application are not repeated herein.
Step 402, the electronic device obtains M second coordinates of M target window elements with element types of a second preset type in the L first window elements in the floating window element.
In some embodiments of the present application, the second preset type may include at least one of: image element type, window element type. The second preset type may be the same as the first preset type.
In the embodiment of the present application, each of the M second coordinates corresponds to a target window element.
In some embodiments of the present application, for each of the M target window elements, the second coordinates of one target window element in the floating window element may specifically be: the coordinates of the respective vertices of the one target window element in the second coordinate system. Wherein, this second coordinate system is: and taking the fifth edge line of the floating window element as an x-axis and the sixth edge line as a rectangular coordinate system established by a y-axis. The fifth edge line and the sixth edge line are adjacent edge lines.
In some embodiments of the present application, the electronic device may obtain, from the attribute value corresponding to each target window element, second coordinates of each target window element in the floating window element, so as to obtain M second coordinates.
Step 403, the electronic device determines M first image areas on the target screen capturing image according to the M second coordinates.
In the embodiment of the present application, each of the M first image areas corresponds to a second coordinate.
In some embodiments of the present application, for each of the M second coordinates, the electronic device may determine an image region corresponding to one of the second coordinates on the target screen capture image as one first image region, and so on, to determine the M first image regions.
It should be noted that, the "image area corresponding to one second coordinate" can be understood as: and each vertex in the second coordinate is an image area surrounded by the coordinates of the vertex in the second coordinate system.
In some embodiments of the present application, after the electronic device determines the M first image areas, the electronic device may mark the M first image areas in a second marking manner.
Optionally, the second marking manner may include any one of the following: highlighting, displaying a display image, marking with a dotted frame, marking with a color, marking with a gray scale, marking with a preset transparency, and so on.
It will be appreciated that the electronic device may mark the M first image areas so that the user may learn where the M first image areas are located on the target screenshot image.
In the embodiment of the application, because the user always needs to intercept the window element of the second preset type in the floating window element when intercepting the content of the floating window element, the electronic device can directly identify the element types of all window elements (namely L first window elements) in the floating window element and acquire the second coordinates of M target window elements in the floating window element, which are always required to intercept by the user, in all window elements, so that the electronic device can directly determine the image areas (namely M first image areas) in which the M target window elements are positioned on the target screen capturing image, and further, the user can directly input the image areas (such as the target image areas) in the M first image areas, so that the electronic device can intercept the target image areas.
Therefore, the electronic device can directly acquire the second coordinates of M target window elements in the floating window elements, which are required to be intercepted by the user, and directly determine the first image area of each target window element in the target screen capturing image on the target screen capturing image, so that the user can directly input a certain image area, the electronic device can intercept the certain image area without multiple operations of the user, and the operation of the user in the process of intercepting the image area in the screen capturing image can be simplified, and the time consumption is reduced.
And in addition, the electronic device can directly determine the first image areas where the M target window elements are located on the target screen capturing image according to the second coordinates of the M target window elements in the floating window elements, and the electronic device is not required to carry out image recognition on the target screen capturing image, so that the operation amount of the electronic device can be reduced.
Step 302, the electronic device receives a second input from a user of a target image area of the M first image areas.
In some embodiments of the present application, the second input may be a user input to the target image area.
Optionally, the second input may include, but is not limited to: the touch input of the user in the display screen, or the voice command input by the user, or the specific gesture input by the user through the touch device such as a finger or a stylus, or other feasibility inputs can be specifically determined according to the actual use requirement, and the embodiment of the application is not limited herein. The specific gesture may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the application can be single click input, double click input or any time click input, and the like, and can also be long-press input or short-press input.
For example, the second input may be: and the user inputs the touch control of the target image area.
Step 303, the electronic device intercepts a target image area from the target screen capture image in response to the second input.
In some embodiments of the present application, the electronic device may clip the target screenshot image according to the second coordinates corresponding to the target image area, so as to capture the target image area.
It should be noted that, for the description of the electronic device for clipping the target screenshot image, reference may be made to the specific description in the related art, and the embodiments of the present application are not repeated herein.
Therefore, under the condition that the electronic device displays the target screen capturing image corresponding to the floating window element, the electronic device can directly capture the target image area from the target screen capturing image according to one-time input of the target image area in M first image areas of the target screen capturing image by the user without multiple times of input by the user, so that the operation of the user in the process of capturing the image area in the screen capturing image by the user can be simplified, and the time consumption is reduced.
According to the screenshot method provided by the embodiment of the application, the execution main body can be a screenshot device. In the embodiment of the application, a screenshot method executed by a screenshot device is taken as an example, and the screenshot device provided by the embodiment of the application is described.
Fig. 11 shows a schematic diagram of a possible configuration of a screenshot device involved in an embodiment of the application. As shown in fig. 11, a screenshot device 50 provided by an embodiment of the present application may include: a display module 51, a receiving module 52 and a processing module 53.
The display module 51 is configured to display a first interface, where the first interface includes N interface elements, and N is a positive integer. The receiving module 52 is configured to receive a first input from a user. A processing module 53, configured to identify element types of the N interface elements; and in case that the element type of at least one interface element of the N interface elements is the first preset type, in response to the first input received by the receiving module 52, performing screenshot on the at least one interface element.
The embodiment of the application provides a screenshot device, which can identify the element types of N interface elements according to one-time input of a user under the condition that N interface elements of a first interface are displayed, and can directly screen capture at least one interface element which is frequently required by the user under the condition that the element type of at least one interface element in the N interface elements is a first preset type which is frequently required by the user, so that a screenshot image of the interface element which is frequently required by the user is obtained, and the user does not need to input for multiple times, therefore, the operation of the user in the process of triggering the screenshot device to capture the screenshot image of the interface element which is frequently required by the user can be simplified, the time consumption is reduced, and the efficiency of capturing the screenshot image which is frequently required by the user by the screenshot device can be improved.
In a possible implementation manner, in conjunction with fig. 11, as shown in fig. 12, a screenshot device 50 provided in an embodiment of the present application may further include: an acquisition module 54. The obtaining module 54 is further configured to obtain, after the processing module 53 identifies the element types of the N interface elements, the size of at least one interface element and the first coordinate in the first interface if the element type of at least one interface element of the N interface elements is the first preset type. The processing module 53 is specifically configured to perform, in response to the first input, screenshot on at least one interface element according to the size and the first coordinates.
In one possible implementation manner, the at least one interface element includes: the first interface element and the second interface element at least partially overlap. The display module 51 is further configured to update the transparency of the second interface element in response to the first input, so as to display the entire content of the first interface element. The processing module 53 is specifically configured to perform screenshot on the first interface element displayed by the display module 51. The display module 51 is further configured to update transparency of the first interface element and the second interface element to display the entire content of the second interface element. The processing module 53 is specifically configured to perform screenshot on the second interface element displayed by the display module 51.
In one possible implementation manner, the at least one interface element includes: suspending the interface element. The display module 51 is further configured to update the transparency of the floating interface element in response to the first input, so as to display the entire background content of the first interface. The processing module 53 is specifically configured to perform screenshot on the first interface displayed by the display module 51.
In one possible implementation, the at least one interface element includes a floating window element. The above-mentioned display module 51 is further configured to display, after the processing module 53 performs screenshot on at least one interface element in response to the first input, a target screenshot image, where the target screenshot image is obtained by performing screenshot on a floating window element, and the target screenshot image includes M first image areas, where each first image area is respectively: one of the floating window elements corresponds to an image region in the target screenshot image, M being a positive integer. The receiving module 52 is further configured to receive a second input from a user to a target image area of the M first image areas. The processing module 53 is further configured to intercept the target image area from the target screenshot image in response to the second input received by the receiving module 52.
In a possible implementation manner, the processing module 53 is further configured to identify element types of L first window elements in the floating window elements before the display module 51 displays the target screenshot image; l is a positive integer. Referring to fig. 11, as shown in fig. 12, a screenshot device 50 provided in an embodiment of the present application may further include: an acquisition module 54. The obtaining module 54 is configured to obtain M second coordinates of M target window elements of a second preset type in the floating window elements, where the element types of the M first window elements are identified by the processing module 53; each second coordinate corresponds to a target window element. The processing module 53 is further configured to determine M first image areas on the target screenshot image according to the M second coordinates acquired by the acquiring module 54; each first image area corresponds to a second coordinate.
The screenshot device in the embodiment of the application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. The electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile internet appliance (mobile internetdevice, MID), an Augmented Reality (AR)/Virtual Reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), or the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like, which is not particularly limited in the embodiments of the present application.
The screenshot device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The screenshot device provided by the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 10, and in order to avoid repetition, a description is omitted here.
In some embodiments of the present application, as shown in fig. 13, an electronic device 60 is further provided in the embodiments of the present application, including a processor 61 and a memory 62, where a program or an instruction capable of running on the processor 61 is stored in the memory 62, and when the program or the instruction is executed by the processor 61, the program or the instruction implements each process step of the above-mentioned screenshot method embodiment, and the same technical effect can be achieved, so that repetition is avoided and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 14 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The display unit 106 is configured to display a first interface, where the first interface includes N interface elements, and N is a positive integer.
A user input unit 107 for receiving a first input of a user.
A processor 110 for identifying element types of the N interface elements; and under the condition that the element type of at least one interface element in the N interface elements is a first preset type, responding to a first input, and carrying out screenshot on the at least one interface element.
The embodiment of the application provides electronic equipment, wherein under the condition that N interface elements of a first interface are displayed, the electronic equipment can identify the element types of the N interface elements according to one-time input of a user, and under the condition that the element type of at least one interface element in the N interface elements is a first preset type frequently required by the user, the at least one interface element frequently required by the user is directly subjected to screenshot so as to obtain a screenshot image of the interface element frequently required by the user, and the user does not need to perform multiple inputs, so that the operation of the user in the process of triggering the electronic equipment to intercept the screenshot image of the interface element required by the user can be simplified, the time consumption is reduced, and the efficiency of intercepting the screenshot image required by the user by the electronic equipment can be improved.
In some embodiments of the present application, the processor 110 is further configured to obtain, if an element type of at least one interface element of the N interface elements is a first preset type, a size of the at least one interface element and a first coordinate in the first interface.
The processor 110 is specifically configured to, in response to the first input, screen capture at least one interface element according to the size and the first coordinates.
In some embodiments of the present application, the at least one interface element includes: the first interface element and the second interface element at least partially overlap.
The processor 110 is specifically configured to respond to the first input, update the transparency of the second interface element, display the entire content of the first interface element, and perform screenshot on the first interface element; and updating the transparency of the first interface element and the second interface element to display the whole content of the second interface element, and performing screenshot on the second interface element.
In some embodiments of the present application, the at least one interface element includes: suspending the interface element.
The processor 110 is specifically configured to update the transparency of the floating interface element in response to the first input, so as to display the entire background content of the first interface, and perform screenshot on the first interface.
In some embodiments of the present application, the at least one interface element includes a floating window element.
The display unit 106 is further configured to display a target screenshot image, where the target screenshot image is obtained by screenshot on a floating window element, and the target screenshot image includes M first image areas, where each first image area is respectively: one of the floating window elements corresponds to an image region in the target screenshot image, M being a positive integer.
The user input unit 107 is further configured to receive a second input of a target image area of the M first image areas by a user.
The processor 110 is further configured to intercept the target image region from the target screenshot image in response to the second input.
In some embodiments of the present application, the processor 110 is further configured to identify element types of L first window elements in the floating window elements; l is a positive integer; obtaining M second coordinates of M target window elements with element types of a second preset type in the suspension window elements in the L first window elements; each second coordinate corresponds to a target window element; determining M first image areas on the target screen capturing image according to the M second coordinates; each first image area corresponds to a second coordinate.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (graphicsprocessing unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (programmableROM, PROM), an erasable programmable read-only memory (erasablePROM, EPROM), an electrically erasable programmable read-only memory (electricallyEPROM, EEPROM), or a flash memory, among others. The volatile memory may be Random Access Memory (RAM), static RAM, dynamic RAM (dynamicRAM, DRAM), synchronous dynamic RAM (synchronousDRAM, SDRAM), double data rate synchronous dynamic RAM (ddr SDRAM), enhanced synchronous dynamic RAM (enhancedSDRAM, ESDRAM), synchronous link dram (synchlinkDRAM, SLDRAM), and direct memory bus RAM (directrambusRAM, DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above screenshot method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the screenshot method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the above screenshot method embodiments, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (14)

1. A method of capturing a picture, the method comprising:
displaying a first interface, wherein the first interface comprises N interface elements, and N is a positive integer;
receiving a first input of a user;
identifying element types of the N interface elements;
and under the condition that the element type of at least one interface element in the N interface elements is a first preset type, responding to the first input, and carrying out screenshot on the at least one interface element.
2. The method of claim 1, wherein after said identifying the element types of the N interface elements, the method further comprises:
acquiring the size of the at least one interface element and a first coordinate in the first interface under the condition that the element type of the at least one interface element in the N interface elements is the first preset type;
the responding to the first input, the screenshot of the at least one interface element includes:
responsive to the first input, a screenshot is taken of the at least one interface element according to the size and the first coordinate.
3. The method of claim 1, wherein the at least one interface element comprises: a first interface element and a second interface element that at least partially overlap;
The responding to the first input, the screenshot of the at least one interface element includes:
in response to the first input, updating transparency of the second interface element to display the entire content of the first interface element, and screenshot the first interface element;
and updating the transparency of the first interface element and the second interface element to display the whole content of the second interface element, and performing screenshot on the second interface element.
4. The method of claim 1, wherein the at least one interface element comprises: suspending the interface element;
the responding to the first input, the screenshot of the at least one interface element includes:
and in response to the first input, updating the transparency of the floating interface element to display the whole background content of the first interface, and performing screenshot on the first interface.
5. The method of claim 1, wherein the at least one interface element comprises a floating window element;
after said screenshot of said at least one interface element in response to said first input, said method further comprises:
Displaying a target screen capturing image, wherein the target screen capturing image is obtained by capturing a screen of the floating window element, the target screen capturing image comprises M first image areas, and each first image area is respectively: one target window element in the floating window elements corresponds to an image area in the target screen capturing image, and M is a positive integer;
receiving a second input of a user to a target image area of the M first image areas;
in response to the second input, the target image region is truncated from the target screenshot image.
6. The method of claim 5, wherein prior to the displaying the target screenshot image, the method further comprises:
identifying element types of L first window elements in the floating window elements; l is a positive integer;
obtaining M second coordinates of M target window elements with element types of a second preset type in the L first window elements in the floating window elements; each second coordinate corresponds to a target window element;
determining the M first image areas on the target screen capturing image according to the M second coordinates; each first image area corresponds to a second coordinate.
7. A screenshot device, the screenshot device comprising: the device comprises a display module, a receiving module and a processing module;
the display module is used for displaying a first interface, wherein the first interface comprises N interface elements, and N is a positive integer;
the receiving module is used for receiving a first input of a user;
the processing module is used for identifying element types of the N interface elements; and under the condition that the element type of at least one interface element in the N interface elements is a first preset type, responding to the first input received by the receiving module, and capturing the at least one interface element.
8. The screenshot device of claim 7, further comprising: an acquisition module;
the obtaining module is further configured to obtain, after the processing module identifies the element types of the N interface elements, a size of the at least one interface element and a first coordinate in the first interface when the element type of the at least one interface element in the N interface elements is the first preset type;
the processing module is specifically configured to perform screenshot on the at least one interface element according to the size and the first coordinate in response to the first input.
9. The screenshot device of claim 7, wherein the at least one interface element includes: a first interface element and a second interface element that at least partially overlap;
the display module is further used for responding to the first input and updating the transparency of the second interface element so as to display the whole content of the first interface element;
the processing module is specifically configured to perform screenshot on the first interface element displayed by the display module;
the display module is further used for updating the transparency of the first interface element and the second interface element so as to display the whole content of the second interface element;
the processing module is specifically configured to perform screenshot on the second interface element displayed by the display module.
10. The screenshot device of claim 7, wherein the at least one interface element includes: suspending the interface element;
the display module is further used for responding to the first input and updating the transparency of the suspension interface element so as to display the whole background content of the first interface;
the processing module is specifically configured to perform screenshot on the first interface displayed by the display module.
11. The screenshot apparatus of claim 7, wherein the at least one interface element includes a floating window element;
the display module is further configured to display, after the processing module responds to the first input and captures the at least one interface element, a target screenshot image, where the target screenshot image is obtained by capturing the floating window element, the target screenshot image includes M first image areas, and each first image area is respectively: one target window element in the floating window elements corresponds to an image area in the target screen capturing image, and M is a positive integer;
the receiving module is further configured to receive a second input of a user to a target image area in the M first image areas;
the processing module is further configured to intercept the target image area from the target screenshot image in response to the second input received by the receiving module.
12. The screenshot device of claim 11, wherein,
the processing module is further configured to identify element types of L first window elements in the floating window elements before the display module displays the target screen capture image; l is a positive integer;
The screenshot device further comprises: an acquisition module;
the acquisition module is used for acquiring M second coordinates of M target window elements with element types of a second preset type in the floating window elements in the L first window elements identified by the processing module; each second coordinate corresponds to a target window element;
the processing module is further configured to determine the M first image areas on the target screen capture image according to the M second coordinates acquired by the acquisition module; each first image area corresponds to a second coordinate.
13. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the screenshot method of any one of claims 1 to 6.
14. A readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the screenshot method according to any one of claims 1 to 6.
CN202310895304.8A 2023-07-20 2023-07-20 Screenshot method and device, electronic equipment and readable storage medium Pending CN116893770A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310895304.8A CN116893770A (en) 2023-07-20 2023-07-20 Screenshot method and device, electronic equipment and readable storage medium
PCT/CN2024/106133 WO2025016426A1 (en) 2023-07-20 2024-07-18 Screenshot method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310895304.8A CN116893770A (en) 2023-07-20 2023-07-20 Screenshot method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116893770A true CN116893770A (en) 2023-10-17

Family

ID=88313343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310895304.8A Pending CN116893770A (en) 2023-07-20 2023-07-20 Screenshot method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN116893770A (en)
WO (1) WO2025016426A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025016426A1 (en) * 2023-07-20 2025-01-23 维沃移动通信有限公司 Screenshot method and apparatus, electronic device, and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111641750B (en) * 2020-05-19 2022-05-24 Oppo广东移动通信有限公司 Screen capture method, terminal and non-volatile computer readable storage medium
CN111638844A (en) * 2020-05-22 2020-09-08 维沃移动通信有限公司 Screen capturing method and device and electronic equipment
CN115920390A (en) * 2022-08-11 2023-04-07 网易(杭州)网络有限公司 Scene picture display control method and device and electronic equipment
CN115599484A (en) * 2022-10-26 2023-01-13 北京鸿合爱学教育科技有限公司(Cn) Screen capturing method, screen capturing device, screen capturing equipment and computer storage medium
CN116893770A (en) * 2023-07-20 2023-10-17 维沃移动通信有限公司 Screenshot method and device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025016426A1 (en) * 2023-07-20 2025-01-23 维沃移动通信有限公司 Screenshot method and apparatus, electronic device, and readable storage medium

Also Published As

Publication number Publication date
WO2025016426A1 (en) 2025-01-23

Similar Documents

Publication Publication Date Title
CN111857509A (en) Split screen display method and device and electronic equipment
CN103955339A (en) Terminal operation method and terminal equipment
CN111143013A (en) Screenshot method and electronic equipment
CN112596609A (en) Display processing method, display processing device and wearable equipment
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
CN114518820A (en) Icon sorting method and device and electronic equipment
CN116107531A (en) Interface display method and device
CN113282213A (en) Interface display method and device
US20250068309A1 (en) Display control method and apparatus, electronic device, and readable storage medium
CN116893770A (en) Screenshot method and device, electronic equipment and readable storage medium
CN115617225A (en) Application interface display method and device, electronic equipment and storage medium
CN112399010B (en) Page display method and device and electronic equipment
CN114416269A (en) Interface display method and display device
CN111796746B (en) Volume adjusting method, volume adjusting device and electronic equipment
WO2024037419A1 (en) Display control method and apparatus, electronic device, and readable storage medium
CN115202524B (en) Display method and device
CN114756792B (en) Page display method and device, electronic device and readable storage medium
CN115562539A (en) Control display method and device, electronic equipment and readable storage medium
CN110806830A (en) User interaction method and electronic equipment
WO2023241563A1 (en) Data processing method and electronic device
CN114115639A (en) Interface control method and device, electronic equipment and storage medium
CN114518859A (en) Display control method, display control device, electronic equipment and storage medium
CN115729544A (en) Desktop component generation method and device, electronic equipment and readable storage medium
CN114580015A (en) Privacy processing method and device and electronic equipment
CN114442881A (en) Information display method and device, electronic equipment and readable storage medium

Legal Events

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