CN111522613B - Screen capturing method and electronic equipment - Google Patents

Screen capturing method and electronic equipment Download PDF

Info

Publication number
CN111522613B
CN111522613B CN202010298941.3A CN202010298941A CN111522613B CN 111522613 B CN111522613 B CN 111522613B CN 202010298941 A CN202010298941 A CN 202010298941A CN 111522613 B CN111522613 B CN 111522613B
Authority
CN
China
Prior art keywords
input
priority
characteristic
characteristic value
characteristic information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010298941.3A
Other languages
Chinese (zh)
Other versions
CN111522613A (en
Inventor
郑少伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010298941.3A priority Critical patent/CN111522613B/en
Publication of CN111522613A publication Critical patent/CN111522613A/en
Priority to PCT/CN2021/086837 priority patent/WO2021208890A1/en
Application granted granted Critical
Publication of CN111522613B publication Critical patent/CN111522613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The invention provides a screen capturing method and electronic equipment, wherein the method comprises the following steps: receiving a first input to a first object; generating a screen capture image in response to the first input; the screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object. The screen capturing method and the electronic device can improve the screen capturing efficiency of the electronic device.

Description

Screen capturing method and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a screen capturing method and an electronic device.
Background
With the continuous development of electronic information technology, electronic devices (such as smart phones, tablet computers, etc.) are increasingly widely used, and play an indispensable role in the work and life of people. As the popularity of electronic devices continues to increase, many important information is provided to users through the electronic devices, and users often need to capture a screen of a local image displayed by the electronic devices to share or save the local image.
In the related art, a user needs to set a frame selection range of a pre-screen capture when performing a partial screen capture, however, in general, the user needs to continuously adjust the boundary of the frame selection range in order to accurately capture an image of the expected content, which is cumbersome to operate. Therefore, the related electronic device has a problem of low screen capturing efficiency.
Disclosure of Invention
The embodiment of the invention provides a screen capturing method and electronic equipment, which are used for solving the problem of low screen capturing efficiency of the electronic equipment.
In order to solve the technical problems, the invention is realized as follows: a screen capturing method applied to an electronic device, the method comprising:
receiving a first input to a first object;
generating a screen capture image in response to the first input;
the screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object.
In a first aspect, an embodiment of the present invention provides a screen capturing method, which is applied to an electronic device, where the method includes:
receiving a first input to a first object;
generating a screen capture image in response to the first input;
the screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
a receiving module for receiving a first input to a first object;
a generation module for generating a screen capture image in response to the first input;
The screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program implements the steps of the screen capturing method described above when executed by the processor.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described screen capturing method.
In an embodiment of the invention, by receiving a first input to a first object; generating a screen capture image in response to the first input; the screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object. Therefore, after the user inputs the first input to the first object, the electronic device can generate the screen capturing graph comprising the first object and the second object, the user does not need to repeatedly adjust the screen capturing range, and the screen capturing efficiency of the electronic device is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a screen capturing method according to an embodiment of the present invention;
FIG. 2a is a schematic diagram of a layout relationship between objects according to an embodiment of the present invention;
FIG. 2b is a schematic diagram illustrating a layout relationship between objects according to another embodiment of the present invention;
FIG. 2c is a schematic diagram illustrating a layout relationship between objects according to another embodiment of the present invention;
FIG. 3a is a schematic diagram illustrating selection of a first object in another screen capturing method according to an embodiment of the present invention;
FIG. 3b is a schematic diagram illustrating a selection of a first object and a second object according to another exemplary method for capturing a screen according to the present invention;
FIG. 3c is a schematic diagram illustrating a selection of a first object and a second object according to another exemplary embodiment of the present invention;
FIG. 3d is a schematic diagram of selecting a first object and a second object according to another exemplary embodiment of the present invention;
FIG. 4 is a schematic diagram of a display interface in another screen capturing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a target screenshot image in another screenshot method according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a block diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a screen capturing method according to an embodiment of the present invention, which is applied to an electronic device, as shown in fig. 1, and includes the following steps:
step 101, a first input to a first object is received.
In the case that the electronic device includes a touch display screen, the first input may be input by a user by touching the touch display screen with a finger; in the case of an electronic device comprising a non-touch display, the first input may be input by a user via other external input devices (e.g. mouse, keyboard, electronic pen, keys). The embodiment of the invention does not limit the input mode of the first input.
It should be noted that, before the user performs the first input, the user may complete the input for opening the screen capturing function to the electronic device, where the first input is an input related to selecting the first object; alternatively, the first input may be both an input for turning on the screen capture function and an input related to selecting the first object.
In the embodiment of the present invention, the first input is an input related to the first object, and specifically, the first input to the first object may be understood as a first input acting on a display area of the first object, in other words, a position of the first input is located in the display area of the first object, and the first object can be directly determined through the first input.
The first object may be a single object; the display area may be a plurality of objects whose display areas overlap each other, or a plurality of objects whose display areas are independent of each other.
Step 102, responding to the first input, generating a screen capturing image; the screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object.
Wherein the second object is determined after the first object is determined and the second object has at least one layout relationship with the first object in the display screen.
It should be noted that the layout relationship between the objects in the display screen can be divided into three types: the nested relationship, the overlapping relationship and the parallel relationship, wherein the nested relationship means that a display area of one object is located inside a display area of another object, as shown in fig. 2a, an object with a large area is a parent object, and an object with a small area is a child object in two objects with the nested relationship; the overlapping relationship means that there is partial overlap of the display area of one object with the display area of another object, as shown in fig. 2b; the juxtaposition means that the display area of one object does not overlap with the display area of another object, as shown in fig. 2 c. That is, any two objects in the display screen have one of the above layout relationships.
For example: the first input is long-press input, after an object corresponding to the position of the long-press input is determined to be a first object, a second object which has a preset layout relation with the first object is determined based on the first object.
The number of the second objects is also not limited to one, for example: in the case that the first object is a single object, a plurality of objects having a preset layout relationship with the first object may be used together as the second object; alternatively, in the case where the first objects are a group of objects, a plurality of objects having a preset layout relationship with each of the first objects may be taken together as the second object.
The screen capturing image includes the first object and the second object, which can be understood as a screen capturing a display area including the first object and the second object, that is, the number of screen capturing processes is one, for example: the first object and the second object comprise 3 objects in total, and a screen capturing image is generated, namely, screen capturing processing is carried out on a display area comprising the 3 objects.
The screen capturing image includes the first object and the second object, which may be understood as that at least one display area including the first object or the second object is captured, that is, the number of times of screen capturing processing is not limited to one time, may be two times, or may be other times, and each time of screen capturing processing includes at least one first object or at least one second object in the corresponding display area, for example: the number of the first objects is 1, the number of the second objects is 2 (the second objects 1 and 2), and the screen capturing processing can be respectively carried out on the display area displaying the first objects for 1 time, the screen capturing processing is carried out on the display area displaying the second objects 1 for one time, and the screen capturing processing is carried out on the display area displaying the second objects 2 for three times; the screen capturing process may be performed twice, in which one screen capturing process captures a screen of a display area in which the first object is displayed and the other screen capturing process captures a screen of a display area in which 2 second objects are displayed, or may be performed twice, in which one screen capturing process captures a screen of a display area in which the first object and the second object 1 are displayed and the second screen capturing process captures a screen of a display area in which the first object and the second object 2 are displayed.
In the case where the number of times of the screen capturing process is larger than one, the plurality of times of the screen capturing process may be performed simultaneously or may be performed in a time-sharing manner, and the present invention is not limited thereto. Note that, only when the display areas of the two objects do not overlap each other, that is, when the two objects are juxtaposed, the screen capturing process may be performed on the two objects twice, respectively.
When the number of times of the screen capturing process is one, the screen capturing image can be one image; when the number of times of the screen capturing process is multiple times, the screen capturing image may be multiple images obtained by the multiple times of the screen capturing process, or may be at least one image formed by stitching multiple images obtained by the multiple times of the screen capturing process, for example: the 5 images obtained through 5 screen capturing processes may be 2 images obtained by stitching, wherein one image is obtained by stitching 2 images of the 5 images, and the other image is obtained by stitching the remaining 3 images, or one image is obtained by stitching 5 images in one stitching order, and the other image is obtained by stitching 5 images in another stitching order, which is not limited herein.
In the embodiment of the present invention, the electronic Device may be a mobile phone, a tablet (Tablet Personal Computer), a Laptop (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), a mobile internet Device (Mobile Internet Device, MID), or a Wearable Device (web Device).
In the embodiment of the invention, a first input to a first object is received; generating a screen capture image in response to the first input; the screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object. Therefore, after the user inputs the first input to the first object, the electronic device can generate the screen capturing graph comprising the first object and the second object, the user does not need to repeatedly adjust the screen capturing range, and the screen capturing efficiency of the electronic device is improved.
Optionally, in an embodiment, the preset layout relationship is associated with the feature information of the first input;
in the case that the first input feature information is a first feature value, the preset layout relationship is an overlapping relationship
The preset layout relationship is a parallel relationship under the condition that the first input characteristic information is a second characteristic value;
and under the condition that the characteristic information of the first input is a third characteristic value, the preset layout relation is a nested relation.
In this embodiment, after receiving the first input, the electronic device may determine feature information of the first input, for example: the user presses the display screen through the finger, and the electronic equipment can determine the characteristic information such as the pressing position, the pressing area, the pressing duration, the pressing pressure and the like of the finger.
The feature information is a specific feature value, and the mapping relation between the feature information and each preset layout relation when the feature information is different feature values is preset in this embodiment, so that when the electronic device determines that the first input feature information is different feature values, the preset layout relation corresponding to each feature value can be determined respectively.
Further, in the case that the first input is a long-press input, the characteristic information of the first input is a pressing duration;
in the case that the first input is a pressing input, the characteristic information of the first input is a pressing pressure;
in the case that the first input is double-click input, the characteristic information of the first input is the interval duration of two clicks;
when the first input is a sliding input, the characteristic information of the first input is a sliding speed, a sliding distance or a sliding duration.
For example: under the condition that the first input is long-press input, the characteristic information is pressing duration, and under the condition that the characteristic value is the first pressing duration, the preset layout relationship is an overlapping relationship; under the condition that the characteristic value is the second pressing duration, the preset layout relationship is a parallel relationship; under the condition that the characteristic value is the third pressing duration, the preset layout relationship is a nested relationship;
Also for example: under the condition that the first input is pressing input, the characteristic information is pressing pressure, and under the condition that the characteristic value is the first pressure, the preset layout relationship is an overlapping relationship; under the condition that the characteristic value is the second pressure, the preset layout relationship is a parallel relationship; under the condition that the characteristic value is the third pressure, the preset layout relationship is a nested relationship;
also for example: under the condition that the first input is double-click input, the characteristic information is the interval duration of two clicks, and under the condition that the characteristic value is the first interval duration, the preset layout relationship is an overlapping relationship; under the condition that the characteristic value is the second interval duration, the preset layout relationship is a parallel relationship; under the condition that the characteristic value is the third interval duration, the preset layout relationship is a nested relationship;
also for example: under the condition that the first input is sliding input, the characteristic information is sliding distance, and under the condition that the characteristic value is the first distance, the preset layout relationship is an overlapping relationship; under the condition that the characteristic value is a second distance, the preset layout relationship is a parallel relationship; and under the condition that the characteristic value is a third distance, the preset layout relationship is a nested relationship.
Further, the first feature value may be smaller than the second feature value, and the second feature value may be smaller than the third feature value.
The first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value, so that a user can determine the layout relation by controlling the characteristic value of the characteristic information corresponding to the first input, and further, the selection of the second object is completed, and the screen capturing operation of the user is facilitated.
In addition, in an optional embodiment, in a case where the feature information of the first input is a first feature value, the preset layout relationship includes an overlapping relationship; in the case that the first input feature information is a second feature value, the preset layout relationship includes an overlapping relationship and a parallel relationship; and under the condition that the characteristic information of the first input is a third characteristic value, the preset layout relation comprises an overlapping relation, a parallel relation and a nesting relation.
Taking the first input as the long-press input, taking the characteristic information as the pressing duration as an example, and under the condition that the first pressing duration is less than or equal to 0.5 seconds, the electronic equipment only selects a first object without a preset layout relation, as shown in fig. 3a, the object filled with the pattern in fig. 3a is the first object; in the case where the first pressing time is longer than 0.5 seconds and less than or equal to 1 second, the preset layout relationship includes an overlapping relationship, as shown in fig. 3b, the objects having the filling pattern in fig. 3b are a first object and a second object; in the case where the second pressing time is longer than 1 second and less than or equal to 2 seconds, the preset layout relationship includes an overlapping relationship and a parallel relationship, as shown in fig. 3c, the objects having the filling pattern in fig. 3c are the first object and the second object; in the case where the third pressing time period is longer than 2 seconds, the preset layout relationship includes an overlapping relationship, a parallel relationship, and a nested relationship, as shown in fig. 3d, the objects having the filling pattern in fig. 3d are the first object and the second object.
In this embodiment, a manner that the feature information of the first input is associated with the preset layout relationship is preset, so that the preset layout relationship is determined according to the feature information of the first input, and then the second object having the preset layout relationship with the first object is determined.
Optionally, in another embodiment, the second object includes N objects, and a priority of each object in the N objects is associated with the feature information of the first input.
In this embodiment, after receiving the first input, the electronic device may determine feature information of the first input, for example: the user presses the display screen through the finger, and the electronic equipment can determine the characteristic information such as the pressing position, the pressing area, the pressing duration, the pressing pressure and the like of the finger.
In this embodiment, each of the N second objects has a priority. The priority that an object has may be associated with an attribute that the object has, such as: the priority of an object is associated with the distance between the display position of the object and the display position of the first object, i.e. the closer the distance of the display position to the display position of the first object the higher the priority the object has, or the closer the distance of the display position to the display position of the first object the lower the priority the object has. Of course, the user may set a priority level for each object, which is not limited herein.
As shown in fig. 4, taking an example in which the closer the display position is to the display position of the first object, the higher the priority the object has, after receiving the first input of "electronic book", that is, "electronic book" is the first object, the closer the display position of "short message" is to the display position of "electronic book", and the farther the display position of "map" is to the display position of "electronic book", the higher the priority of "short message" is than the priority of "map".
In addition, when the distance between the display position of the "short message" and the display position of the "electronic book" is equal to the distance between the display position of the "friend" and the display position of the "electronic book", the "short message" and the "friend" may be the same priority, or may be the priorities of the "short message" and the "friend" in other manners, for example, the priority of the object with a large display area is higher than the priority of the object with a small display area, the priority of the object above the first object is higher than the priority of the object on the right side of the second object, the priority of the object on the left side is higher than the priority of the object on the right side, or the user sets a different priority by himself.
The feature information corresponds to a feature value, and in this embodiment, a mapping relationship between the feature information and each preset priority is preset when the feature information is different feature values, so that when the electronic device determines that the feature information of the first input is different feature values, the priorities corresponding to the feature values can be determined respectively.
For example, in the case where the first input feature information is a first feature value, the preset priority is a first priority; and under the condition that the characteristic information of the first input is a second characteristic value, the preset priority is a second priority, and the first priority is higher than the second priority.
Further, in the case where the feature information of the first input is a fourth feature value, the second object includes a first target object;
in the case that the feature information of the first input is a fifth feature value, the second object includes a first target object and a second target object;
wherein the first target object has a first priority and the second target object has a second priority.
For example: under the condition that the first input is long-press input, the characteristic information is pressing duration, and under the condition that the fourth characteristic value is first pressing duration, the preset priority is first priority, and the first target object with the first priority is determined to be a second object; under the condition that the fifth characteristic value is the second pressing duration, presetting priorities as a first priority and a second priority, and determining a first target object with the first priority and a second target object with the second priority as a second object;
Also for example: when the first input is a pressing input, the characteristic information is pressing pressure, and when the fourth characteristic value is first pressure, the preset priority is first priority, and the first target object with the first priority is determined to be a second object; in the case that the fifth characteristic value is the second pressure, the preset priority is the first priority and the second priority, and the first target object with the first priority and the second target object with the second priority are determined to be the second object.
Also for example: under the condition that the first input is double-click input, the characteristic information is interval duration of two clicks, under the condition that the fourth characteristic value is first interval duration, the preset priority is first priority, and the first target object with the first priority is determined to be a second object; under the condition that the fifth characteristic value is the second interval duration, presetting priorities as a first priority and a second priority, and determining a first target object with the first priority and a second target object with the second priority as a second object;
also for example: when the first input is sliding input, the characteristic information is sliding distance, and when the fourth characteristic value is first distance, the preset priority is first priority, and the first target object with the first priority is determined to be a second object; and under the condition that the fifth characteristic value is the second distance, the preset priority is the first priority and the second priority, and the first target object with the first priority and the second target object with the second priority are determined to be the second object.
Further, the fourth characteristic value is smaller than the fifth characteristic value, and the first priority is higher than the second priority.
Taking the first input as a long-press input, taking the characteristic information as a pressing duration as an example, and setting the preset priority as a first priority when the first pressing duration is less than or equal to 1 second; in the case where the second pressing time period is longer than 1 second, the preset priority is the first priority and the second priority.
For example: in the case that the first input is a long press input, the characteristic information is a pressing duration, and in the case that the pressing duration is less than or equal to 1 second, the electronic device generates a screen capturing image including a first target object with a first priority and the first object; in the case where the pressing time period is longer than 1 second, the electronic device generates a screen shot image including a first target object having a first priority, a second target object having a second priority, and the first object
And the fourth characteristic value is smaller than the fifth characteristic value, and the first priority is higher than the second priority, so that a user can determine the priority by controlling the characteristic value of the characteristic information corresponding to the first input, further, the selection of the second object is finished, and the screen capturing operation of the user is facilitated.
In this embodiment, a manner that the feature information of the first input is associated with the preset priority is preset, so that the preset priority is determined according to the feature information of the first input, and then the second object with the preset priority is determined.
Alternatively, in another embodiment, step 102 may include:
and under the condition that the display area of the first object is partially overlapped with the display area of the second object, performing screen capturing processing on the display area comprising the first object and the second object to obtain a screen capturing image comprising the first object and the second object, wherein the outline of the screen capturing image comprises the outline corresponding to the union of the display area of the first object and the display area of the second object.
In this embodiment, the first object and the second object have an overlapping relationship with each other, as shown in fig. 2 b. In this embodiment, the contour of the screen capturing image obtained by the screen capturing process is a contour corresponding to the union of the display area of the first object and the display area of the second object on the display screen, as shown by a contour with line filling in fig. 5.
The obtained screen capturing image has no other redundant information except the first object and the second object, so that the user can share the screen capturing image rapidly without worrying about privacy disclosure and the user does not need to additionally carry out shielding processing (such as black drawing, mosaic and the like) on the privacy information.
It should be noted that, the various alternative embodiments described in the embodiments of the present invention may be implemented in combination with each other, or may be implemented separately, which is not limited to the embodiments of the present invention.
A scheme in which a preset layout relationship is associated with the feature information of the first input and a scheme in which a priority of each of the N objects is associated with the feature information of the first input may be combined. For example: taking the first input as a long press input and the characteristic information as a pressing duration as an example, on the basis that the preset layout relationship is in a parallel relationship when the second pressing time is longer than 1 second and less than or equal to 2 seconds, selecting an object which has a parallel relationship with the first object and has a first priority as a second object when the second pressing time is longer than 1 second and less than or equal to 1.5 seconds; when the second pressing time period is greater than 1.5 and equal to or less than 2 seconds, an object having a parallel relationship with the first object and having a first priority and a second priority is selected as the second object.
Referring to fig. 6, fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, an electronic device 600 includes a receiving module 610 and a generating module 620, where:
a receiving module 610 for receiving a first input to a first object;
a generation module 620 for generating a screen capture image in response to the first input;
the screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object.
Optionally, the preset layout relationship is associated with the feature information of the first input;
in the case that the first input feature information is a first feature value, the preset layout relationship is an overlapping relationship
The preset layout relationship is a parallel relationship under the condition that the first input characteristic information is a second characteristic value;
and under the condition that the characteristic information of the first input is a third characteristic value, the preset layout relation is a nested relation.
Optionally, in the case that the first input is a long-press input, the feature information of the first input is a pressing duration;
in the case that the first input is a pressing input, the characteristic information of the first input is a pressing pressure;
In the case that the first input is double-click input, the characteristic information of the first input is the interval duration of two clicks;
when the first input is a sliding input, the characteristic information of the first input is a sliding speed, a sliding distance or a sliding duration.
Optionally, the first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value.
Optionally, the second object includes N objects, and a priority of each object in the N objects is associated with the feature information of the first input.
Optionally, in the case that the feature information of the first input is a fourth feature value, the second object includes a first target object;
in the case that the feature information of the first input is a fifth feature value, the second object includes a first target object and a second target object;
wherein the first target object has a first priority and the second target object has a second priority.
Optionally, the fourth characteristic value is smaller than the fifth characteristic value, and the first priority is higher than the second priority.
The electronic device 600 of the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 1 to 5, and in order to avoid repetition, a description is omitted here.
According to the electronic device 600 provided by the embodiment of the invention, after the user inputs the first input to the first object, the electronic device can generate the screen capturing graph comprising the first object and the second object, the user does not need to repeatedly adjust the screen capturing range, and the screen capturing efficiency of the electronic device is improved.
It should be noted that, the various alternative embodiments described in the embodiments of the present invention may be implemented in combination with each other, or may be implemented separately, which is not limited to the embodiments of the present invention.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor 710, and power supply 711. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 7 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
Wherein the processor 710 is configured to receive a first input to a first object; generating a screen capture image in response to the first input; the screen capturing image comprises the first object and the second object, and a preset layout relation is arranged between the second object and the first object.
Optionally, the processor 710 is further configured to associate the preset layout relationship with the first input feature information; when the first input characteristic information is a first characteristic value, the preset layout relation is an overlapping relation; the preset layout relationship is a parallel relationship under the condition that the first input characteristic information is a second characteristic value; and under the condition that the characteristic information of the first input is a third characteristic value, the preset layout relation is a nested relation.
Optionally, the processor 710 is further configured to, in a case where the first input is a long press input, determine that the characteristic information of the first input is a pressing duration; in the case that the first input is a pressing input, the characteristic information of the first input is a pressing pressure; in the case that the first input is double-click input, the characteristic information of the first input is the interval duration of two clicks; when the first input is a sliding input, the characteristic information of the first input is a sliding speed, a sliding distance or a sliding duration.
Optionally, the processor 710 is further configured to make the first feature value smaller than the second feature value, and the second feature value smaller than the third feature value.
Optionally, the processor 710 is further configured to include N objects in the second object, where a priority of each object in the N objects is associated with the feature information of the first input.
Optionally, the processor 710 is further configured to, in a case where the feature information of the first input is a fourth feature value, include the second object as the first target object; in the case that the feature information of the first input is a fifth feature value, the second object includes a first target object and a second target object; wherein the first target object has a first priority and the second target object has a second priority.
Optionally, the processor 710 is further configured to make the fourth feature value smaller than the fifth feature value, where the first priority is higher than the second priority.
The electronic device 700 is capable of implementing each process implemented by the electronic device in the method embodiments of fig. 1 to 5, and for avoiding repetition, a description thereof will be omitted.
According to the electronic equipment 700 provided by the embodiment of the invention, after the user inputs the first input to the first object, the electronic equipment can generate the screen capturing graph comprising the first object and the second object, the user does not need to repeatedly adjust the screen capturing range, and the screen capturing efficiency of the electronic equipment is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station, and then processing the received downlink data by the processor 710; and, the uplink data is transmitted to the base station. Typically, the radio unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio unit 701 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 700. The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used for receiving an audio or video signal. The input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphics processor 7041 may be stored in memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 701 in the case of a telephone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or the backlight when the electronic device 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 705 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and will not be described again here.
The display unit 706 is used to display information input by a user or information provided to the user. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 7071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 7071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 710, and receives and executes commands sent from the processor 710. In addition, the touch panel 7071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, other input devices 7072 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.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 710 to determine a type of a touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although in fig. 7, the touch panel 7071 and the display panel 7061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface to which an external device is connected to the electronic apparatus 700. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and to transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and an external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 709 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby performing overall monitoring of the electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may preferably be logically coupled to the processor 710 via a power management system, such as to perform functions such as managing charge, discharge, and power consumption by the power management system.
In addition, the electronic device 700 includes some functional modules, which are not shown, and will not be described herein.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program when executed by the processor 710 implements each process of the screen capturing method in the embodiment shown in fig. 1 to 5, and the same technical effects are achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above embodiment of the screen capturing method, and can achieve the same technical effects, so that repetition is avoided and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
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.
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 invention may be embodied essentially or in a part contributing to the prior art in the form of a 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, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention 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 invention and the scope of the claims, which are to be protected by the present invention.

Claims (14)

1. A screen capturing method applied to an electronic device, the method comprising:
receiving a first input to a first object;
generating a screen capture image in response to the first input;
the screen capturing image comprises a first object and a second object, wherein a preset layout relation exists between the second object and the first object, and the preset layout relation is associated with the characteristic information of the first input;
when the first input characteristic information is a first characteristic value, the preset layout relation is an overlapping relation;
the preset layout relationship is a parallel relationship under the condition that the first input characteristic information is a second characteristic value;
the preset layout relationship is a nested relationship under the condition that the first input characteristic information is a third characteristic value;
Wherein the first, second and third characteristic values are different characteristic values.
2. The method according to claim 1, wherein in the case where the first input is a long press input, the characteristic information of the first input is a pressing time period;
in the case that the first input is a pressing input, the characteristic information of the first input is a pressing pressure;
in the case that the first input is double-click input, the characteristic information of the first input is the interval duration of two clicks;
when the first input is a sliding input, the characteristic information of the first input is a sliding speed, a sliding distance or a sliding duration.
3. The method of claim 1, wherein the first characteristic value is less than the second characteristic value, and wherein the second characteristic value is less than the third characteristic value.
4. The method of claim 1, wherein the second object comprises N objects, a priority of each of the N objects being associated with the characteristic information of the first input.
5. The method of claim 4, wherein the second object comprises a first target object if the first input feature information is a fourth feature value;
In the case that the feature information of the first input is a fifth feature value, the second object includes a first target object and a second target object;
wherein the first target object has a first priority and the second target object has a second priority.
6. The method of claim 5, wherein the fourth characteristic value is less than the fifth characteristic value, and wherein the first priority is higher than the second priority.
7. An electronic device, comprising:
a receiving module for receiving a first input to a first object;
a generation module for generating a screen capture image in response to the first input;
the screen capturing image comprises a first object and a second object, wherein a preset layout relation exists between the second object and the first object, and the preset layout relation is associated with the characteristic information of the first input;
when the first input characteristic information is a first characteristic value, the preset layout relation is an overlapping relation;
the preset layout relationship is a parallel relationship under the condition that the first input characteristic information is a second characteristic value;
The preset layout relationship is a nested relationship under the condition that the first input characteristic information is a third characteristic value;
wherein the first, second and third characteristic values are different characteristic values.
8. The electronic device according to claim 7, wherein in a case where the first input is a long press input, the characteristic information of the first input is a pressing duration;
in the case that the first input is a pressing input, the characteristic information of the first input is a pressing pressure;
in the case that the first input is double-click input, the characteristic information of the first input is the interval duration of two clicks;
when the first input is a sliding input, the characteristic information of the first input is a sliding speed, a sliding distance or a sliding duration.
9. The electronic device of claim 7, wherein the first characteristic value is less than the second characteristic value, and wherein the second characteristic value is less than the third characteristic value.
10. The electronic device of claim 7, wherein the second object comprises N objects, a priority of each of the N objects being associated with the characteristic information of the first input.
11. The electronic device of claim 10, wherein the second object comprises a first target object if the first input feature information is a fourth feature value;
in the case that the feature information of the first input is a fifth feature value, the second object includes a first target object and a second target object;
wherein the first target object has a first priority and the second target object has a second priority.
12. The electronic device of claim 11, wherein the fourth characteristic value is less than the fifth characteristic value, and wherein the first priority is higher than the second priority.
13. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the screen capture method of any of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the screen capture method according to any of claims 1-6.
CN202010298941.3A 2020-04-16 2020-04-16 Screen capturing method and electronic equipment Active CN111522613B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010298941.3A CN111522613B (en) 2020-04-16 2020-04-16 Screen capturing method and electronic equipment
PCT/CN2021/086837 WO2021208890A1 (en) 2020-04-16 2021-04-13 Screen capturing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010298941.3A CN111522613B (en) 2020-04-16 2020-04-16 Screen capturing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111522613A CN111522613A (en) 2020-08-11
CN111522613B true CN111522613B (en) 2024-03-22

Family

ID=71903731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010298941.3A Active CN111522613B (en) 2020-04-16 2020-04-16 Screen capturing method and electronic equipment

Country Status (2)

Country Link
CN (1) CN111522613B (en)
WO (1) WO2021208890A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522613B (en) * 2020-04-16 2024-03-22 维沃移动通信有限公司 Screen capturing method and electronic equipment
CN112579230A (en) * 2020-12-10 2021-03-30 珠海格力电器股份有限公司 Screen capturing method and device of industrial touch screen and industrial touch screen

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750495A (en) * 2015-04-08 2015-07-01 魅族科技(中国)有限公司 Screenshot method and device
CN106775368A (en) * 2015-11-25 2017-05-31 中兴通讯股份有限公司 The screenshotss method of touch screen terminal, device and touch screen terminal
CN107797838A (en) * 2017-09-08 2018-03-13 百度在线网络技术(北京)有限公司 A kind of screenshot method and device
WO2018072459A1 (en) * 2016-10-18 2018-04-26 华为技术有限公司 Screenshot and reading method and terminal
CN109284045A (en) * 2018-09-13 2019-01-29 武汉轻工大学 It is a kind of that element screenshot method and device are pressed based on browser plug-in
CN110096203A (en) * 2019-04-29 2019-08-06 维沃移动通信有限公司 A kind of screenshot method and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101622196B1 (en) * 2009-09-07 2016-05-18 삼성전자주식회사 Apparatus and method for providing poi information in portable terminal
PL395376A1 (en) * 2011-06-22 2013-01-07 Google Inc. Rendering approximate webpage screenshot client-side
US9176703B2 (en) * 2012-06-29 2015-11-03 Lg Electronics Inc. Mobile terminal and method of controlling the same for screen capture
KR20180031239A (en) * 2016-09-19 2018-03-28 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN106873871B (en) * 2017-01-06 2018-09-11 腾讯科技(深圳)有限公司 Page screenshot method and apparatus
US10783320B2 (en) * 2017-05-16 2020-09-22 Apple Inc. Device, method, and graphical user interface for editing screenshot images
CN111522613B (en) * 2020-04-16 2024-03-22 维沃移动通信有限公司 Screen capturing method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750495A (en) * 2015-04-08 2015-07-01 魅族科技(中国)有限公司 Screenshot method and device
CN106775368A (en) * 2015-11-25 2017-05-31 中兴通讯股份有限公司 The screenshotss method of touch screen terminal, device and touch screen terminal
WO2018072459A1 (en) * 2016-10-18 2018-04-26 华为技术有限公司 Screenshot and reading method and terminal
CN107797838A (en) * 2017-09-08 2018-03-13 百度在线网络技术(北京)有限公司 A kind of screenshot method and device
CN109284045A (en) * 2018-09-13 2019-01-29 武汉轻工大学 It is a kind of that element screenshot method and device are pressed based on browser plug-in
CN110096203A (en) * 2019-04-29 2019-08-06 维沃移动通信有限公司 A kind of screenshot method and mobile terminal

Also Published As

Publication number Publication date
CN111522613A (en) 2020-08-11
WO2021208890A1 (en) 2021-10-21

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN108495029B (en) Photographing method and mobile terminal
CN107943390B (en) Character copying method and mobile terminal
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN109032486B (en) Display control method and terminal equipment
CN108897473B (en) Interface display method and terminal
CN109739407B (en) Information processing method and terminal equipment
CN110109604B (en) Application interface display method and mobile terminal
CN109213407B (en) Screenshot method and terminal equipment
CN110531915B (en) Screen operation method and terminal equipment
CN107728923B (en) Operation processing method and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109816759B (en) Expression generating method and device
CN109710130B (en) Display method and terminal
CN108920040B (en) Application icon sorting method and mobile terminal
CN108600544B (en) Single-hand control method and terminal
CN108509141B (en) Control generation method and mobile terminal
CN108108113B (en) Webpage switching method and device
CN108093137B (en) Dialing method and mobile terminal
CN110780751B (en) Information processing method and electronic equipment
CN111522613B (en) Screen capturing method and electronic equipment
CN109597546B (en) Icon processing method and terminal equipment
CN109491964B (en) File sharing method and terminal
CN109669656B (en) Information display method and terminal equipment

Legal Events

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