WO2021208890A1 - Screen capturing method and electronic device - Google Patents

Screen capturing method and electronic device Download PDF

Info

Publication number
WO2021208890A1
WO2021208890A1 PCT/CN2021/086837 CN2021086837W WO2021208890A1 WO 2021208890 A1 WO2021208890 A1 WO 2021208890A1 CN 2021086837 W CN2021086837 W CN 2021086837W WO 2021208890 A1 WO2021208890 A1 WO 2021208890A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
priority
case
relationship
electronic device
Prior art date
Application number
PCT/CN2021/086837
Other languages
French (fr)
Chinese (zh)
Inventor
郑少伟
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021208890A1 publication Critical patent/WO2021208890A1/en

Links

Images

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

Definitions

  • the present invention relates to the field of computer technology, in particular to a screen capture method and electronic equipment.
  • the user needs to set a frame selection range of the pre-screenshot when taking a partial screenshot.
  • the user needs to constantly adjust the boundary of the frame selection range in order to accurately capture the image of the expected content, and the operation is cumbersome. Therefore, related electronic devices have the problem of low screen capture efficiency.
  • the embodiment of the present invention provides a screenshot method and electronic device to solve the problem of low screenshot efficiency of the electronic device.
  • a screen capture method applied to an electronic device the method includes:
  • the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
  • an embodiment of the present invention provides a screenshot method applied to an electronic device, and the method includes:
  • the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
  • an embodiment of the present invention also provides an electronic device, including:
  • the receiving module is used to receive the first input to the first object
  • a generating module configured to generate a screenshot image in response to the first input
  • the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
  • an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, the computer program being executed by the processor When implementing the steps of the above screenshot method.
  • an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above screenshot method are implemented.
  • a screenshot image is generated; wherein the screenshot image includes the first object and the second object, and the first object There is a preset layout relationship between the second object and the first object.
  • the electronic device can generate screenshots including the first object and the second object, without the user repeatedly adjusting the scope of the screenshot, and improving the efficiency of the electronic device for screenshots.
  • FIG. 1 is a flowchart of a screenshot method provided by an embodiment of the present invention
  • Figure 2a is a schematic diagram of a layout relationship between objects in an embodiment of the present invention.
  • 2b is a schematic diagram of another layout relationship between objects in an embodiment of the present invention.
  • 2c is a schematic diagram of another layout relationship between objects in an embodiment of the present invention.
  • 3a is a schematic diagram of selecting a first object in another screenshot method provided by an embodiment of the present invention.
  • 3b is one of the schematic diagrams of selecting the first object and the second object in another screenshot method provided by an embodiment of the present invention
  • 3c is the second schematic diagram of selecting the first object and the second object in another screenshot method provided by an embodiment of the present invention.
  • 3d is the third schematic diagram of selecting the first object and the second object in another screenshot method provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a display interface in another screenshot method provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a target screenshot image in another screenshot method provided by an embodiment of the present invention.
  • FIG. 6 is a structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 7 is a structural diagram of another electronic device provided by an embodiment of the present invention.
  • FIG. 1 is a flowchart of a screenshot method provided by an embodiment of the present invention, which is applied to an electronic device. As shown in FIG. 1, it includes the following steps:
  • Step 101 Receive a first input to a first object.
  • the above-mentioned first input may be input by the user by touching the touch screen with a finger; in the case where the electronic device includes a non-touch display screen, the above-mentioned first input may be The user inputs through other external input devices (for example: mouse, keyboard, electronic pen, keys).
  • the embodiment of the present invention does not limit the input mode of the first input.
  • the user completes the input for enabling the screen capture function on the electronic device, and the first input is an input related to selecting the first object; or, the first input is also It may be both an input used to start the screenshot function and an input related to selecting the first object.
  • the first input is an input related to the first object.
  • the first input to the first object can be understood as the first input acting on the display area of the first object, in other words, the first input
  • the position of an input is in the display area of the first object, and the first object can be directly determined through the first input.
  • the above-mentioned first object may be a single object; it may also be a group of interrelated objects, and this group of interrelated objects may be multiple objects with overlapping display areas, or multiple objects with independent display areas.
  • Step 102 In response to the first input, generate a screenshot image; wherein the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object .
  • 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.
  • the layout relationship between the objects in the display screen can be divided into three types: nesting relationship, overlapping relationship and side-by-side relationship.
  • the nesting relationship refers to the display area of one object located in the display of another object.
  • the overlap relationship refers to the display area of one object and the display area of the other object.
  • the side-by-side relationship means that the display area of one object does not overlap with the display area of another object, as shown in Figure 2c. That is, any two objects in the display screen have one of the above-mentioned layout relationships.
  • the first input is a long-press input
  • the first object is used as the base object to determine the second object having a preset layout relationship with the first object.
  • the number of the aforementioned second object is not limited to one.
  • the first object is a single object, multiple objects that have a preset layout relationship with the first object can be used as the second object; or In the case where the objects are a group of objects, multiple objects having a preset layout relationship with each first object can be collectively used as the second object.
  • the screenshot image includes the first object and the second object, which can be understood as a screenshot of a display area including the first object and the second object, that is, the number of screenshot processing is once, for example: the first object and the second object include a total of 3 Generate a screenshot image for each object, that is, perform a screenshot process on the display area including these three objects.
  • the screenshot image includes the first object and the second object, and can also be understood as taking a screenshot of at least one display area that includes the first object or the second object, that is, the number of screenshot processing is not limited to one, and it can be two or other Number of times, the display area corresponding to each screenshot processing includes at least one first object or at least one second object, for example: 1 first object, 2 second objects (second object 1 and second object 2) , It can be a screenshot process for the display area where the first object is displayed, another screenshot process for the display area where the second object 1 is displayed, and a screenshot process for the display area where the second object 2 is displayed.
  • a total of three screenshots can also be two screenshots, one of which is to take a screenshot of the display area where the first object is displayed, and the other is to take a screenshot of the display area where two second objects are displayed.
  • the screenshot processing may be performed twice, one of which is to take a screenshot of the display area where the first object and the second object 1 are displayed, and the second time to take a screenshot of the display area where the first object and the second object 2 are displayed.
  • multiple screenshot processing may be performed simultaneously or time-sharing, which is not limited here. It should be noted that only when the display areas of the two objects do not overlap each other, that is, when the two objects are side by side, can the two objects be screened twice.
  • the screenshot image can be one image; when the number of times of the above screenshot processing is multiple, the screenshot image can be multiple images obtained by multiple screenshot processing, or it can be multiple screenshots At least one image of multiple images obtained by splicing, for example: 5 images obtained through 5 screenshot processing, the screenshot image can be 2 images obtained by stitching, one of which consists of 2 images out of 5 Spliced, the other is spliced from the remaining 3 images, or one is the image of 5 images spliced in one splicing sequence, and the other is the image of 5 images spliced in another splicing sequence , There is no limitation here.
  • the above-mentioned electronic device may be a mobile phone, a tablet computer (Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (PDA for short), and a mobile Internet device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.
  • a first input to a first object is received; a screenshot image is generated in response to the first input; wherein the screenshot image includes the first object and the second object, and the second There is a preset layout relationship between the object and the first object.
  • the electronic device can generate screenshots including the first object and the second object, without the user repeatedly adjusting the scope of the screenshot, and improving the efficiency of the electronic device for screenshots.
  • the foregoing preset layout relationship is associated with the first input feature information
  • the preset layout relationship is an overlap relationship
  • the preset layout relationship is a parallel relationship
  • the preset layout relationship is a nesting relationship.
  • the electronic device can determine the characteristic information of the first input. For example, if the user presses the display screen with a finger, the electronic device can determine the finger's pressing position, pressing area, pressing duration, Characteristic information such as pressing pressure.
  • the feature information is a specific feature value.
  • the mapping relationship between the feature information and each preset layout relationship when the feature information is different feature values is preset, so that the electronic device determines that the first input feature information is a different feature value ,
  • the preset layout relationship corresponding to each feature value can be determined respectively.
  • the characteristic information of the first input is the pressing time
  • the characteristic information of the first input is pressing pressure
  • the characteristic information of the first input is the interval time between two clicks
  • the characteristic information of the first input is a sliding speed, or a sliding distance, or a sliding duration.
  • the characteristic information is the pressing duration; when the characteristic value is the first pressing duration, the preset layout relationship is an overlapping relationship; when the characteristic value is the second pressing duration , The preset layout relationship is a side-by-side relationship; when the characteristic value is the third pressing duration, the preset layout relationship is a nested relationship;
  • the characteristic information is pressing pressure
  • the preset layout relationship is an overlap relationship
  • the characteristic value is the second pressure
  • the preset layout relationship is the overlap relationship
  • the layout relationship is a parallel relationship
  • the preset layout relationship is a nested relationship
  • the characteristic information is the interval duration between two clicks, and when the characteristic value is the first interval duration, the preset layout relationship is an overlapping relationship; when the characteristic value is the second interval In the case of duration, the preset layout relationship is a side-by-side relationship; when the characteristic value is the third interval duration, the preset layout relationship is a nested relationship;
  • the feature information is the sliding distance
  • the preset layout relationship is an overlap relationship
  • the preset layout relationship is the overlap relationship
  • the layout relationship be a side-by-side relationship
  • the preset layout relationship is a nested relationship
  • the first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value.
  • the user can determine the layout relationship by controlling the feature value of the feature information corresponding to the first input, and then complete the selection of the second object , It is convenient for users to take screenshots.
  • the preset layout relationship when the first input feature information is a first feature value, the preset layout relationship includes an overlapping relationship; the first input feature information is In the case of the second feature value, the preset layout relationship includes an overlap relationship and a parallel relationship; in the case where the first input feature information is a third feature value, the preset layout relationship includes an overlap relationship, a parallel relationship Relationships and nesting relationships.
  • the first input is a long-press input
  • the characteristic information is the pressing duration as an example
  • the first pressing duration is less than or equal to 0.5 seconds
  • the pattern filled object in Fig. 3a is the first object; when the first pressing duration is greater than 0.5 second and less than or equal to 1 second, the preset layout relationship includes an overlap relationship, as shown in Fig. 3b
  • the objects with filling patterns in Figure 3b are the first object and the second object; in the case where the second pressing duration is greater than 1 second and less than or equal to 2 seconds, the preset layout relationship includes an overlap relationship and a parallel relationship, such as As shown in Fig.
  • the objects with filling patterns in Fig. 3c are the first object and the second object; in the case that the third pressing time is greater than 2 seconds, the preset layout relationship includes overlapping relationship, side-by-side relationship and nesting relationship, such as As shown in FIG. 3d, the objects with filling patterns in FIG. 3d are the first object and the second object.
  • the manner in which the first input feature information is associated with the preset layout relationship is preset, so that the preset layout relationship is determined according to the first input feature information, and then the preset layout relationship with the first object is determined.
  • the second object includes N objects, and the priority of each object in the N objects is associated with the first input feature information.
  • the electronic device can determine the characteristic information of the first input. For example, if the user presses the display screen with a finger, the electronic device can determine the finger's pressing position, pressing area, pressing duration, Characteristic information such as pressing pressure.
  • each of the N second objects has a priority.
  • the priority of the object can be associated with the attributes of the object, for example: the priority of the object is associated with the distance between the display position of the object and the display position of the first object, that is, the distance between the display position and the first object An object whose display position is closer to has a higher priority, or an object whose display position is closer to the display position of the first object has a lower priority.
  • the user sets a priority level for each object, which is not limited here.
  • the distance between the display position of the "short message” and the display position of the "ebook” is equal to the distance between the display position of the "friend” and the display position of the “ebook”, it can be a "short message” It has the same priority as “friends”, or other ways to distinguish the priorities of "short messages” and "friends", for example, the priority of objects with a large display area is higher than the priority of objects with a small display area, and is ranked first The priority of the object above the object is higher than the priority of the object on the right of the second object, the priority of the object on the left is higher than the priority of the object on the right, or the user can set a different priority .
  • the feature information will correspond to feature values.
  • the mapping relationship between the feature information and each preset priority is preset when the feature information is different feature values, so that the electronic device determines that the first input feature information is different feature values At the time, the priority corresponding to each feature value can be determined respectively.
  • the preset priority is the first priority
  • the preset priority is the second priority
  • the first priority is higher than the second priority
  • the second object includes a first target object
  • the second object includes a first target object and a second target object;
  • the first target object has a first priority
  • the second target object has a second priority
  • the characteristic information is the pressing duration
  • the fourth characteristic value is the first pressing duration
  • the preset priority is the first priority
  • the first priority is determined
  • a target object is the second object
  • the preset priorities are the first priority and the second priority
  • the first target object with the first priority and the The second target object of the second priority is the second object
  • the characteristic information is pressing pressure
  • the preset priority is the first priority
  • the first priority with the first priority is determined.
  • the target object is the second object
  • the preset priorities are the first priority and the second priority
  • the first target object with the first priority and the second priority are determined.
  • the characteristic information is the interval duration between two clicks
  • the preset priority is the first priority
  • it is determined that the The first target object with the first priority is the second object
  • the preset priorities are the first priority and the second priority
  • the first priority is determined
  • a target object and a second target object with a second priority are the second objects
  • the characteristic information is the sliding distance
  • the preset priority is the first priority
  • the first priority is determined
  • a target object is the second object
  • the preset priorities are the first priority and the second priority
  • the first target object with the first priority and the first target object with the first priority are determined
  • the second target object with the second priority is the second object.
  • the fourth characteristic value is smaller than the fifth characteristic value, and the first priority is higher than the second priority.
  • the preset priority is the first priority
  • the preset priorities are the first priority and the second priority.
  • the characteristic information is the pressing time
  • the electronic device when the pressing time is less than or equal to 1 second, the electronic device generates the first target object with the first priority and the first object.
  • Screenshot image when the pressing time is longer than 1 second, the electronic device generates a screenshot image including a first target object with a first priority, a second target object with a second priority, and a first object
  • the user can determine the priority by controlling the characteristic value of the characteristic information corresponding to the first input , And then complete the selection of the second object, facilitating the user's screen capture operation.
  • the manner in which 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 the second input with the preset priority is determined.
  • the user actually only needs to input one time to determine the first object and the second object, the operation is simple, and the screen capture efficiency can be improved.
  • step 102 may include:
  • a screenshot process is performed on the display area including the first object and the second object to obtain the first object and the second object.
  • the first object and the second object have an overlapping relationship with each other, as shown in FIG. 2b.
  • the outline of the screenshot image obtained by the screenshot processing is the outline 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 in the outline with line filling in FIG. 5.
  • the screenshot image obtained in this way has no other redundant information, which is convenient for users to quickly share the screenshot image without worrying about the leakage of privacy and the user does not need to mask the private information. (For example: trace black, mosaic, etc.).
  • the preset layout relationship is a parallel relationship.
  • the object that has a parallel relationship with the first object and has the first priority is selected as the second object; in the case that the second pressing duration is greater than 1.5 and less than or equal to 2 seconds , Select the object that has a parallel relationship with the first object and has the first priority and the second priority as the second object.
  • FIG. 6 is a structural diagram of an electronic device provided by an embodiment of the present invention.
  • the electronic device 600 includes a receiving module 610 and a generating module 620, wherein:
  • the receiving module 610 is configured to receive the first input to the first object
  • the generating module 620 is configured to generate a screenshot image in response to the first input
  • the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
  • the preset layout relationship is associated with the first input feature information
  • the preset layout relationship is an overlap relationship
  • the preset layout relationship is a parallel relationship
  • the preset layout relationship is a nesting relationship.
  • the characteristic information of the first input is the pressing time
  • the characteristic information of the first input is pressing pressure
  • the characteristic information of the first input is the interval time between two clicks
  • the characteristic information of the first input is a sliding speed, or a sliding distance, or a sliding duration.
  • the first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value.
  • the second object includes N objects, and the priority of each object in the N objects is associated with the characteristic information of the first input.
  • the second object when the first input feature information is a fourth feature value, the second object includes a first target object;
  • the second object includes a first target object and a second target object;
  • the first target object has a first priority
  • the second target object has a second priority
  • 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 invention can implement the various processes implemented by the electronic device in the method embodiments of FIG. 1 to FIG.
  • the electronic device 600 of the embodiment of the present invention after the user inputs the first input to the first object, the electronic device can generate screenshots including the first object and the second object, without the user repeatedly adjusting the scope of the screenshot, and improving the screenshot of the electronic device s efficiency.
  • FIG. 7 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
  • the electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and Power 711 and other components.
  • a radio frequency unit 701 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and Power 711 and other components.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 710 is configured to receive a first input to a first object; in response to the first input, generate a screenshot image; wherein the screenshot image includes the first object and the second object, and the first object There is a preset layout relationship between the second object and the first object.
  • the processor 710 is further configured to associate the preset layout relationship with the feature information of the first input; when the feature information of the first input is a first feature value, The preset layout relationship is an overlapping relationship; when the first input feature information is a second feature value, the preset layout relationship is a parallel relationship; the first input feature information is a third feature In the case of a value, the preset layout relationship is a nested relationship.
  • the processor 710 is further configured to: when the first input is a long-press input, the characteristic information of the first input is a pressing time; when the first input is a pressing input Below, the characteristic information of the first input is pressing pressure; when the first input is a double-click input, the characteristic information of the first input is the interval between two clicks; when the first input is In the case of sliding input, the characteristic information of the first input is sliding speed, or sliding distance, or sliding duration.
  • the processor 710 is further configured to: the first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value.
  • the processor 710 is further configured to include N objects in the second object, and the priority of each object in the N objects is associated with the first input feature information.
  • the processor 710 is further configured to: when the first input feature information is a fourth feature value, the second object includes a first target object; When the information is the fifth characteristic 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. class.
  • the processor 710 is further configured to: the fourth characteristic value is smaller than the fifth characteristic value, and the first priority is higher than the second priority.
  • the electronic device 700 can implement each process implemented by the electronic device in the method embodiments of FIGS. 1 to 5, and to avoid repetition, details are not described herein again.
  • the electronic device 700 of the embodiment of the present invention after the user inputs the first input to the first object, the electronic device can generate screenshots including the first object and the second object, without the user repeatedly adjusting the scope of the screenshot, which improves the screenshot of the electronic device. s efficiency.
  • the radio frequency unit 701 can be used to receive and send signals during information transmission or communication. Specifically, the downlink data from the base station is received and processed by the processor 710; in addition, Uplink data is sent to the base station.
  • the radio frequency 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.
  • the radio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 702, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 703 can convert the 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 it as sound. Moreover, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic device 700 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 704 is used to receive audio or video signals.
  • the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042.
  • the graphics processor 7041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 706.
  • the image frame processed by the graphics processor 7041 may be stored in the memory 709 (or other storage medium) or sent via the radio frequency 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 can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 701 for output in the case of a telephone call mode.
  • the electronic device 700 further includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 7061 and the display panel 7061 when the electronic device 700 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 705 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 706 is used to display information input by the 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 (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 707 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 707 includes a touch panel 7071 and other input devices 7072.
  • the touch panel 7071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 7071 or near the touch panel 7071. operate).
  • the touch panel 7071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 710, the command sent by the processor 710 is received and executed.
  • the touch panel 7071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 707 may also include other input devices 7072.
  • other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 7071 can be overlaid on the display panel 7061.
  • the touch panel 7071 detects a touch operation on or near it, it is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 determines the type of touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 7061.
  • the touch panel 7071 and the display panel 7061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 708 is an interface for connecting an external device and the electronic device 700.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 708 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 700 or can be used to connect the electronic device 700 to an external device. Transfer data between devices.
  • the memory 709 can be used to store software programs and various data.
  • the memory 709 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 710 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 709, and calls data stored in the memory 709 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs.
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710.
  • the electronic device 700 may also include a power source 711 (such as a battery) for supplying power to various components.
  • a power source 711 such as a battery
  • the power source 711 may be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 700 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides an electronic device, including a processor 710, a memory 709, a computer program stored on the memory 709 and running on the processor 710, when the computer program is executed by the processor 710
  • an electronic device including a processor 710, a memory 709, a computer program stored on the memory 709 and running on the processor 710, when the computer program is executed by the processor 710
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above screenshot method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

The present invention provides a screen capturing method and an electronic device. Said method comprises: receiving a first input for a first object; and generating a screen capture image in response to the first input, the screen capture image comprising the first object and a second object, and the second object and the first object having a preset layout relationship. The screen capturing method and electronic device provided in the present invention can increase the screen capturing efficiency of electronic devices.

Description

截屏方法及电子设备Screen capture method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2020年4月16日在中国提交的中国专利申请No.202010298941.3的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 202010298941.3 filed in China on April 16, 2020, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种截屏方法及电子设备。The present invention relates to the field of computer technology, in particular to a screen capture method and electronic equipment.
背景技术Background technique
随着电子信息技术的不断发展,电子设备(例如智能手机、平板电脑等)的应用越来越广泛,在人们的工作以及生活中均扮演着不可或缺的角色。随着电子设备的普及性不断提高,很多重要的信息会通过电子设备提供给用户,用户经常需要对电子设备显示的局部画面进行截屏来分享或保存。With the continuous development of electronic information technology, electronic devices (such as smart phones, tablet computers, etc.) are used more and more widely, and they play an indispensable role in people's work and life. As the popularity of electronic devices continues to increase, a lot of important information will be provided to users through electronic devices, and users often need to take screenshots of partial screens displayed by electronic devices to share or save.
相关技术中,用户在进行局部截屏时需要设定一个预截屏的框选范围,然而,通常用户为了准确截取预想内容的图像需要不断调整框选范围的边界,操作繁琐。因此,相关的电子设备存在截屏效率低的问题。In the related art, the user needs to set a frame selection range of the pre-screenshot when taking a partial screenshot. However, in general, the user needs to constantly adjust the boundary of the frame selection range in order to accurately capture the image of the expected content, and the operation is cumbersome. Therefore, related electronic devices have the problem of low screen capture efficiency.
发明内容Summary of the invention
本发明实施例提供一种截屏方法及电子设备,以解决电子设备存在截屏效率低的问题。The embodiment of the present invention provides a screenshot method and electronic device to solve the problem of low screenshot efficiency of the electronic device.
为了解决上述技术问题,本发明是这样实现的:一种截屏方法,应用于电子设备,所述方法包括:In order to solve the above technical problems, the present invention is implemented as follows: a screen capture method applied to an electronic device, the method includes:
接收对第一对象的第一输入;Receiving the first input to the first object;
响应于所述第一输入,生成截屏图像;In response to the first input, generate a screenshot image;
其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。Wherein, the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
第一方面,本发明实施例提供了一种截屏方法,应用于电子设备,所述方法包括:In the first aspect, an embodiment of the present invention provides a screenshot method applied to an electronic device, and the method includes:
接收对第一对象的第一输入;Receiving the first input to the first object;
响应于所述第一输入,生成截屏图像;In response to the first input, generate a screenshot image;
其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。Wherein, the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
第二方面,本发明实施例还提供一种电子设备,包括:In the second aspect, an embodiment of the present invention also provides an electronic device, including:
接收模块,用于接收对第一对象的第一输入;The receiving module is used to receive the first input to the first object;
生成模块,用于响应于所述第一输入,生成截屏图像;A generating module, configured to generate a screenshot image in response to the first input;
其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。Wherein, the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
第三方面,本发明实施例还提供一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述截屏方法的步骤。In a third aspect, an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, the computer program being executed by the processor When implementing the steps of the above screenshot method.
第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述截屏方法的步骤。In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above screenshot method are implemented.
在本发明实施例中,通过接收对第一对象的第一输入;响应于所述第一输入,生成截屏图像;其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。这样,用户通过对第一对象输入第一输入后,电子设备即可生成包括第一对象和第二对象的截屏图形,无需用户反复调整截屏的范围,提高电子设备截屏的效率。In the embodiment of the present invention, by receiving a first input to a first object; in response to the first input, a screenshot image is generated; wherein the screenshot image includes the first object and the second object, and the first object There is a preset layout relationship between the second object and the first object. In this way, after the user inputs the first input to the first object, the electronic device can generate screenshots including the first object and the second object, without the user repeatedly adjusting the scope of the screenshot, and improving the efficiency of the electronic device for screenshots.
附图说明Description of the drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为本发明实施例提供的一种截屏方法的流程图;FIG. 1 is a flowchart of a screenshot method provided by an embodiment of the present invention;
图2a为本发明实施例中一种对象间布局关系的示意图;Figure 2a is a schematic diagram of a layout relationship between objects in an embodiment of the present invention;
图2b为本发明实施例中另一种对象间布局关系的示意图;2b is a schematic diagram of another layout relationship between objects in an embodiment of the present invention;
图2c为本发明实施例中另一种对象间布局关系的示意图;2c is a schematic diagram of another layout relationship between objects in an embodiment of the present invention;
图3a为本发明实施例提供的另一种截屏方法中选择第一对象的示意图;3a is a schematic diagram of selecting a first object in another screenshot method provided by an embodiment of the present invention;
图3b为本发明实施例提供的另一种截屏方法中选择第一对象和第二对象的示意图之一;3b is one of the schematic diagrams of selecting the first object and the second object in another screenshot method provided by an embodiment of the present invention;
图3c为本发明实施例提供的另一种截屏方法中选择第一对象和第二对象的示意图之二;3c is the second schematic diagram of selecting the first object and the second object in another screenshot method provided by an embodiment of the present invention;
图3d为本发明实施例提供的另一种截屏方法中选择第一对象和第二对象的示意图之三;3d is the third schematic diagram of selecting the first object and the second object in another screenshot method provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种截屏方法中显示界面的示意图;4 is a schematic diagram of a display interface in another screenshot method provided by an embodiment of the present invention;
图5为本发明实施例提供的另一种截屏方法中目标截屏图像的示意图;FIG. 5 is a schematic diagram of a target screenshot image in another screenshot method provided by an embodiment of the present invention;
图6为本发明实施例提供的一种电子设备的结构图;FIG. 6 is a structural diagram of an electronic device provided by an embodiment of the present invention;
图7为本发明实施例提供的另一种电子设备的结构图。FIG. 7 is a structural diagram of another electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
请参阅图1,图1为本发明实施例提供的一种截屏方法的流程图,应用于电子设备,如图1所示,包括以下步骤:Please refer to FIG. 1. FIG. 1 is a flowchart of a screenshot method provided by an embodiment of the present invention, which is applied to an electronic device. As shown in FIG. 1, it includes the following steps:
步骤101,接收对第一对象的第一输入。Step 101: Receive a first input to a first object.
在电子设备包括触控显示屏的情况下,上述第一输入可以是用户通过手指触摸触控显示屏的方式进行输入;在电子设备包括非触控显示屏的情况下,上述第一输入可以是用户通过其他外部输入设备(例如:鼠标、键盘、电子笔、按键)的方式进行输入。本发明实施例对于第一输入的输入方式不作限定。In the case where the electronic device includes a touch display screen, the above-mentioned first input may be input by the user by touching the touch screen with a finger; in the case where the electronic device includes a non-touch display screen, the above-mentioned first input may be The user inputs through other external input devices (for example: mouse, keyboard, electronic pen, keys). The embodiment of the present 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 completes the input for enabling the screen capture function on the electronic device, and the first input is an input related to selecting the first object; or, the first input is also It may be both an input used to start the screenshot 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. Specifically, the first input to the first object can be understood as the first input acting on the display area of the first object, in other words, the first input The position of an input is in the display area of the first object, and the first object can be directly determined through the first input.
上述第一对象可以为单个对象;也可以为一组相互关联的对象,这一组相互关联的对象可以是显示区域相互重叠的多个对象,也可以是显示区域相互独立的多个对象。The above-mentioned first object may be a single object; it may also be a group of interrelated objects, and this group of interrelated objects may be multiple objects with overlapping display areas, or multiple objects with independent display areas.
步骤102,响应于所述第一输入,生成截屏图像;其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。Step 102: In response to the first input, generate a screenshot image; wherein the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object .
其中,第二对象是在第一对象确定之后确定的,且第二对象在显示屏中与第一对象具有至少一种布局关系。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.
需要说明的是,显示屏中各对象相互之间的布局关系可以分为三种:嵌套关系、重叠关系和并列关系,其中,嵌套关系是指一个对象的显示区域位于另一个对象的显示区域内部,如图2a所示,具有嵌套关系的两个对象中面积大的对象为父对象,面积小的对象为子对象;重叠关系是指一个对象的显示区域与另一个对象的显示区域存在部分重叠,如图2b;并列关系是指一个对象的显示区域与另一个对象的显示区域不重叠,如图2c所示。即显示屏中任意两个对象均存在上述布局关系中的一种布局关系。It should be noted that the layout relationship between the objects in the display screen can be divided into three types: nesting relationship, overlapping relationship and side-by-side relationship. The nesting relationship refers to the display area of one object located in the display of another object. Inside the region, as shown in Figure 2a, among the two objects with a nesting relationship, the object with a large area is the parent object, and the object with a small area is the child object; the overlap relationship refers to the display area of one object and the display area of the other object. There is partial overlap, as shown in Figure 2b; the side-by-side relationship means that the display area of one object does not overlap with the display area of another object, as shown in Figure 2c. That is, any two objects in the display screen have one of the above-mentioned layout relationships.
例如:第一输入为长按输入,确定长按输入的位置对应的对象作为第一对象之后,以第一对象为基础对象确定与第一对象具有预设布局关系的第二对象。For example, the first input is a long-press input, and after the object corresponding to the position of the long-press input is determined as the first object, the first object is used as the base object to determine the second object having a preset layout relationship with the first object.
上述第二对象的数量也不仅限于一个,例如:在第一对象为单个对象的情况下,可以将与第一对象具有预设布局关系的多个对象共同作为第二对象;或者,在第一对象为一组对象的情况下,可以将与每一第一对象具有预设布局关系的多个对象共同作为第二对象。The number of the aforementioned second object is not limited to one. For example, when the first object is a single object, multiple objects that have a preset layout relationship with the first object can be used as the second object; or In the case where the objects are a group of objects, multiple objects having a preset layout relationship with each first object can be collectively used as the second object.
截屏图像包括所述第一对象和第二对象,可以理解为截屏一个包括第一对象和第二对象的显示区域,即截屏处理的次数为一次,例如:第一对象和 第二对象共包括3个对象,生成截屏图像,即对包括了这3个对象的显示区域进行一次截屏处理。The screenshot image includes the first object and the second object, which can be understood as a screenshot of a display area including the first object and the second object, that is, the number of screenshot processing is once, for example: the first object and the second object include a total of 3 Generate a screenshot image for each object, that is, perform a screenshot process on the display area including these three objects.
截屏图像包括所述第一对象和第二对象,也可以理解为截屏至少一个包括第一对象或第二对象的显示区域,即截屏处理的次数不限于一次,可以是两次,也可以是其他次数,每一次截屏处理对应的显示区域内包括至少一个第一对象或至少一个第二对象,例如:第一对象为1个,第二对象为2个(第二对象1和第二对象2),可以是分别对显示有第一对象的显示区域进行1次截屏处理,又对显示有第二对象1的显示区域进行一次截屏处理,还对显示有第二对象2的显示区域进行一次截屏处理,共三次截屏处理;也可以是进行两次截屏处理,其中一次截屏处理对显示有第一对象的显示区域进行截屏,另一次截屏处理对显示有2个第二对象的显示区域进行截屏,还可以是进行两次截屏处理,其中一次对显示有第一对象和第二对象1的显示区域进行截屏,第二次对显示有第一对象和第二对象2的显示区域进行截屏。The screenshot image includes the first object and the second object, and can also be understood as taking a screenshot of at least one display area that includes the first object or the second object, that is, the number of screenshot processing is not limited to one, and it can be two or other Number of times, the display area corresponding to each screenshot processing includes at least one first object or at least one second object, for example: 1 first object, 2 second objects (second object 1 and second object 2) , It can be a screenshot process for the display area where the first object is displayed, another screenshot process for the display area where the second object 1 is displayed, and a screenshot process for the display area where the second object 2 is displayed. , A total of three screenshots; it can also be two screenshots, one of which is to take a screenshot of the display area where the first object is displayed, and the other is to take a screenshot of the display area where two second objects are displayed. The screenshot processing may be performed twice, one of which is to take a screenshot of the display area where the first object and the second object 1 are displayed, and the second time to take a screenshot of the display area where the first object and the second object 2 are displayed.
其中,在截屏处理次数大于一次的情况下,多次截屏处理可以是同时进行的,也可以是分时进行的,此处不作限定。需要说明的是,只有在两个对象的显示区域相互不重叠的情况下,即两个对象并列时,才可以对两个对象分别进行两次的截屏处理。Wherein, in the case where the number of screenshot processing times is greater than once, multiple screenshot processing may be performed simultaneously or time-sharing, which is not limited here. It should be noted that only when the display areas of the two objects do not overlap each other, that is, when the two objects are side by side, can the two objects be screened twice.
在上述截屏处理的次数为一次时,截屏图像可以为一张图像;在上述截屏处理的次数为多次时,截屏图像可以为多次截屏处理得到的多张图像,也可以是由多次截屏处理得到的多张图像拼接合成的至少一张图像,例如:通过5次截屏处理的得到5张图像,则截屏图像可以是2张拼接得到的图像,其中一张由5张中的2张图像拼接得到,另一张由剩余的3张图像拼接得到,或者,一张是5张图像通过一种拼接顺序拼接得到的图像,另一张是5张图像通过另一种拼接顺序拼接得到的图像,此处不作限定。When the number of times of the above screenshot processing is one, the screenshot image can be one image; when the number of times of the above screenshot processing is multiple, the screenshot image can be multiple images obtained by multiple screenshot processing, or it can be multiple screenshots At least one image of multiple images obtained by splicing, for example: 5 images obtained through 5 screenshot processing, the screenshot image can be 2 images obtained by stitching, one of which consists of 2 images out of 5 Spliced, the other is spliced from the remaining 3 images, or one is the image of 5 images spliced in one splicing sequence, and the other is the image of 5 images spliced in another splicing sequence , There is no limitation here.
本发明实施例中,上述电子设备可以为手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present invention, the above-mentioned electronic device may be a mobile phone, a tablet computer (Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (PDA for short), and a mobile Internet device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.
本发明实施例中,通过接收对第一对象的第一输入;响应于所述第一输 入,生成截屏图像;其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。这样,用户通过对第一对象输入第一输入后,电子设备即可生成包括第一对象和第二对象的截屏图形,无需用户反复调整截屏的范围,提高电子设备截屏的效率。In the embodiment of the present invention, a first input to a first object is received; a screenshot image is generated in response to the first input; wherein the screenshot image includes the first object and the second object, and the second There is a preset layout relationship between the object and the first object. In this way, after the user inputs the first input to the first object, the electronic device can generate screenshots including the first object and the second object, without the user repeatedly adjusting the scope of the screenshot, and improving the efficiency of the electronic device for screenshots.
可选的,在一实施例中,上述预设布局关系与所述第一输入的特征信息相关联;Optionally, in an embodiment, the foregoing preset layout relationship is associated with the first input feature information;
在所述第一输入的特征信息为第一特征值的情况下,所述预设布局关系为重叠关系In a case where the first input feature information is a first feature value, the preset layout relationship is an overlap relationship
在所述第一输入的特征信息为第二特征值的情况下,所述预设布局关系为并列关系;In a case where the first input feature information is a second feature value, the preset layout relationship is a parallel relationship;
在所述第一输入的特征信息为第三特征值的情况下,所述预设布局关系为嵌套关系。In a case where the first input feature information is a third feature value, the preset layout relationship is a nesting relationship.
本实施例中,电子设备在接收到第一输入后,电子设备能够确定第一输入的特征信息,例如:用户通过手指按压显示屏,电子设备能够确定手指的按压位置、按压面积、按压时长、按压压力等等特征信息。In this embodiment, after the electronic device receives the first input, the electronic device can determine the characteristic information of the first input. For example, if the user presses the display screen with a finger, the electronic device can determine the finger's pressing position, pressing area, pressing duration, Characteristic information such as pressing pressure.
特征信息为具体的特征值,本实施例预先设定了特征信息为不同的特征值时与各预设布局关系之间的映射关系,从而在电子设备确定第一输入的特征信息为不同特征值,能够分别确定各自特征值对应的预设布局关系。The feature information is a specific feature value. In this embodiment, the mapping relationship between the feature information and each preset layout relationship when the feature information is different feature values is preset, so that the electronic device determines that the first input feature information is a different feature value , The preset layout relationship corresponding to each feature value can be determined respectively.
进一步地,在所述第一输入为长按输入的情况下,所述第一输入的特征信息为按压时长;Further, in a case where the first input is a long-press input, the characteristic information of the first input is the pressing time;
在所述第一输入为按压输入的情况下,所述第一输入的特征信息为按压压力;In a case where the first input is a pressing input, the characteristic information of the first input is pressing pressure;
在所述第一输入为双击输入的情况下,所述第一输入的特征信息为两次点击的间隔时长;In a case where the first input is a double-click input, the characteristic information of the first input is the interval time between two clicks;
在所述第一输入为滑动输入的情况下,所述第一输入的特征信息为滑动速度、或者滑动距离、或者滑动时长。In the case where the first input is a sliding input, the characteristic information of the first input is a sliding speed, or a sliding distance, or a sliding duration.
例如:第一输入为长按输入的情况下,特征信息为按压时长,在特征值为第一按压时长的情况下,预设布局关系为重叠关系;在特征值为第二按压时长的情况下,预设布局关系为并列关系;在特征值为第三按压时长的情况 下,预设布局关系为嵌套关系;For example: when the first input is a long-press input, the characteristic information is the pressing duration; when the characteristic value is the first pressing duration, the preset layout relationship is an overlapping relationship; when the characteristic value is the second pressing duration , The preset layout relationship is a side-by-side relationship; when the characteristic value is the third pressing duration, the preset layout relationship is a nested relationship;
又例如:第一输入为按压输入的情况下,特征信息为按压压力,在特征值为第一压力的情况下,预设布局关系为重叠关系;在特征值为第二压力的情况下,预设布局关系为并列关系;在特征值为第三压力的情况下,预设布局关系为嵌套关系;For another example: when the first input is a pressing input, the characteristic information is pressing pressure, and when the characteristic value is the first pressure, the preset layout relationship is an overlap relationship; when the characteristic value is the second pressure, the preset layout relationship is the overlap relationship; Suppose the layout relationship is a parallel relationship; when the characteristic value is the third pressure, the preset layout relationship is a nested relationship;
还例如:第一输入为双击输入的情况下,特征信息为两次点击的间隔时长,在特征值为第一间隔时长的情况下,预设布局关系为重叠关系;在特征值为第二间隔时长的情况下,预设布局关系为并列关系;在特征值为第三间隔时长的情况下,预设布局关系为嵌套关系;For another example: when the first input is a double-click input, the characteristic information is the interval duration between two clicks, and when the characteristic value is the first interval duration, the preset layout relationship is an overlapping relationship; when the characteristic value is the second interval In the case of duration, the preset layout relationship is a side-by-side relationship; when the characteristic value is the third interval duration, the preset layout relationship is a nested relationship;
还例如:第一输入为滑动输入的情况下,特征信息为滑动距离,在特征值为第一距离的情况下,预设布局关系为重叠关系;在特征值为第二距离的情况下,预设布局关系为并列关系;在特征值为第三距离的情况下,预设布局关系为嵌套关系。For another example: when the first input is a sliding input, the feature information is the sliding distance, and when the feature value is the first distance, the preset layout relationship is an overlap relationship; when the feature value is the second distance, the preset layout relationship is the overlap relationship; Let the layout relationship be a side-by-side relationship; when the characteristic value is the third distance, the preset layout relationship is a nested relationship.
进一步地,可以是所述第一特征值小于所述第二特征值,且所述第二特征值小于所述第三特征值。Further, it may be that the first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value.
通过将第一特征值小于第二特征值,且第二特征值小于第三特征值,从而用户能够通过控制第一输入对应的特征信息的特征值确定布局关系,进而完成对第二对象的选择,便于用户的截屏操作。By making the first feature value smaller than the second feature value and the second feature value smaller than the third feature value, the user can determine the layout relationship by controlling the feature value of the feature information corresponding to the first input, and then complete the selection of the second object , It is convenient for users to take screenshots.
另外,在一种可选的实施例中,在所述第一输入的特征信息为第一特征值的情况下,所述预设布局关系包括重叠关系;在所述第一输入的特征信息为第二特征值的情况下,所述预设布局关系包括重叠关系和并列关系;在所述第一输入的特征信息为第三特征值的情况下,所述预设布局关系包括重叠关系、并列关系和嵌套关系。In addition, in an optional embodiment, when the first input feature information is a first feature value, the preset layout relationship includes an overlapping relationship; the first input feature information is In the case of the second feature value, the preset layout relationship includes an overlap relationship and a parallel relationship; in the case where the first input feature information is a third feature value, the preset layout relationship includes an overlap relationship, a parallel relationship Relationships and nesting relationships.
即以第一输入为长按输入的情况下,特征信息为按压时长为例,在第一按压时长小于或等于0.5秒的情况下,无预设布局关系,电子设备只选择了第一对象,如图3a所示,图3a中图案填充的对象为第一对象;在第一按压时长大于0.5秒且小于或等于1秒的情况下,预设布局关系包括重叠关系,如图3b所示,图3b中具有填充图案的对象为第一对象和第二对象;在第二按压时长大于1秒且小于或等于2秒的情况下的情况下,预设布局关系包括重 叠关系和并列关系,如图3c所示,图3c中具有填充图案的对象为第一对象和第二对象;在第三按压时长大于2秒的情况下,预设布局关系包括重叠关系、并列关系和嵌套关系,如图3d所示,图3d中具有填充图案的对象为第一对象和第二对象。That is, when the first input is a long-press input, and the characteristic information is the pressing duration as an example, when the first pressing duration is less than or equal to 0.5 seconds, there is no preset layout relationship, and the electronic device only selects the first object. As shown in Fig. 3a, the pattern filled object in Fig. 3a is the first object; when the first pressing duration is greater than 0.5 second and less than or equal to 1 second, the preset layout relationship includes an overlap relationship, as shown in Fig. 3b, The objects with filling patterns in Figure 3b are the first object and the second object; in the case where the second pressing duration is greater than 1 second and less than or equal to 2 seconds, the preset layout relationship includes an overlap relationship and a parallel relationship, such as As shown in Fig. 3c, the objects with filling patterns in Fig. 3c are the first object and the second object; in the case that the third pressing time is greater than 2 seconds, the preset layout relationship includes overlapping relationship, side-by-side relationship and nesting relationship, such as As shown in FIG. 3d, the objects with filling patterns in FIG. 3d are the first object and the second object.
本实施例中,预先设定第一输入的特征信息与预设布局关系相关联的方式,从而实现根据第一输入的特征信息确定预设布局关系,进而确定与第一对象具有预设布局关系的第二对象,这样,用户实际只需要进行一次输入即可确定第一对象和第二对象,操作简单,能够提高截屏效率。In this embodiment, the manner in which the first input feature information is associated with the preset layout relationship is preset, so that the preset layout relationship is determined according to the first input feature information, and then the preset layout relationship with the first object is determined In this way, the user actually only needs to input one time to determine the first object and the second object, the operation is simple, and the screen capture efficiency can be improved.
可选的,在另一实施例中,所述第二对象包括N个对象,所述N个对象中每个对象的优先级与所述第一输入的特征信息相关联。Optionally, in another embodiment, the second object includes N objects, and the priority of each object in the N objects is associated with the first input feature information.
本实施例中,电子设备在接收到第一输入后,电子设备能够确定第一输入的特征信息,例如:用户通过手指按压显示屏,电子设备能够确定手指的按压位置、按压面积、按压时长、按压压力等等特征信息。In this embodiment, after the electronic device receives the first input, the electronic device can determine the characteristic information of the first input. For example, if the user presses the display screen with a finger, the electronic device can determine the finger's pressing position, pressing area, pressing duration, Characteristic information such as pressing pressure.
本实施例中,N个第二对象中的每个对象具有优先级。对象具有的优先级可以与该对象具有的属性相关联,例如:对象的优先级与该对象的显示位置与第一对象的显示位置之间的距离相关联,即显示位置的距离与第一对象的显示位置的越近的对象具有的优先级越高,或者,显示位置的距离与第一对象的显示位置越近的对象具有的优先级越低。当然,还可以是用户对每个对象设定了优先级的等级,此处不作限定。In this embodiment, each of the N second objects has a priority. The priority of the object can be associated with the attributes of the object, for example: the priority of the object is associated with the distance between the display position of the object and the display position of the first object, that is, the distance between the display position and the first object An object whose display position is closer to has a higher priority, or an object whose display position is closer to the display position of the first object has a lower priority. Of course, it can also be that the user sets a priority level for each object, which is not limited here.
如图4所示,以显示位置的距离与第一对象的显示位置的越近的对象具有的优先级越高为例,接收到对“电子书”的第一输入后,即“电子书”为上述第一对象,“短消息”的显示位置与“电子书”的显示位置的距离近,“地图”的显示位置与“电子书”的显示位置的距离远,则“短消息”的优先级高于“地图”的优先级。As shown in Fig. 4, taking the object whose display position is closer to the display position of the first object has a higher priority as an example, after receiving the first input of "e-book", that is, "e-book" For the first object mentioned above, the display position of "Short Message" is close to the display position of "E-Book", and the display position of "Map" is farther away from the display position of "E-Book", then "Short Message" has priority The priority is higher than the priority of "Map".
另外,在“短消息”的显示位置与“电子书”的显示位置之间的距离等于“朋友”的显示位置与“电子书”的显示位置之间的距离相等时,可以是“短消息”和“朋友”为同一优先级,也可以是其他方式区分“短消息”和“朋友”的优先级,例如显示面积大的对象的优先级高于显示面积小的对象的优先级,位于第一对象上方的对象的优先级高于位于第二对象右侧的对象的优先级,位于左侧的 对象的优先级高于位于右侧的对象的优先级,或者,用户自行设定不同的优先级。In addition, when the distance between the display position of the "short message" and the display position of the "ebook" is equal to the distance between the display position of the "friend" and the display position of the "ebook", it can be a "short message" It has the same priority as "friends", or other ways to distinguish the priorities of "short messages" and "friends", for example, the priority of objects with a large display area is higher than the priority of objects with a small display area, and is ranked first The priority of the object above the object is higher than the priority of the object on the right of the second object, the priority of the object on the left is higher than the priority of the object on the right, or the user can set a different priority .
特征信息会对应有特征值,本实施例预先设定了特征信息为不同的特征值时与各预设优先级之间的映射关系,从而在电子设备确定第一输入的特征信息为不同特征值时,能够分别确定各自特征值对应的优先级。The feature information will correspond to feature values. In this embodiment, the mapping relationship between the feature information and each preset priority is preset when the feature information is different feature values, so that the electronic device determines that the first input feature information is different feature values At the time, the priority corresponding to each feature value can be determined respectively.
例如,在所述第一输入的特征信息为第一特征值的情况下,所述预设优先级为第一优先级;在所述第一输入的特征信息为第二特征值的情况下,所述预设优先级为第二优先级,第一优先级高于第二优先级。For example, in the case where the first input feature information is the first feature value, the preset priority is the first priority; in the case where the first input feature information is the second feature value, The preset priority is the second priority, and the first priority is higher than the second priority.
进一步地,在所述第一输入的特征信息为第四特征值的情况下,所述第二对象包括第一目标对象;Further, in a case where the first input characteristic information is a fourth characteristic value, the second object includes a first target object;
在所述第一输入的特征信息为第五特征值的情况下,所述第二对象包括第一目标对象和第二目标对象;In a case where the first input feature information 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: when the first input is a long-press input, the characteristic information is the pressing duration, and the fourth characteristic value is the first pressing duration, the preset priority is the first priority, and the first priority is determined A target object is the second object; when the fifth characteristic value is the second pressing duration, the preset priorities are the first priority and the second priority, and the first target object with the first priority and the The second target object of the second priority is the second object;
又例如:第一输入为按压输入的情况下,特征信息为按压压力,第四特征值为第一压力的情况下,预设优先级为第一优先级,确定具有第一优先级的第一目标对象为第二对象;在第五特征值为第二压力的情况下,预设优先级为第一优先级和第二优先级,确定具有第一优先级的第一目标对象和具有第二优先级的第二目标对象为第二对象。For another example: when the first input is a pressing input, the characteristic information is pressing pressure, and when the fourth characteristic value is the first pressure, the preset priority is the first priority, and the first priority with the first priority is determined. The target object is the second object; when the fifth characteristic value is the second pressure, the preset priorities are the first priority and the second priority, and the first target object with the first priority and the second priority are determined The priority second target object is the second object.
还例如:第一输入为双击输入的情况下,特征信息为两次点击的间隔时长,在第四特征值为第一间隔时长的情况下,预设优先级为第一优先级,确定具有第一优先级的第一目标对象为第二对象;在第五特征值为第二间隔时长的情况下,预设优先级为第一优先级和第二优先级,确定具有第一优先级的第一目标对象和具有第二优先级的第二目标对象为第二对象;For another example: when the first input is a double-click input, the characteristic information is the interval duration between two clicks, and when the fourth characteristic value is the first interval duration, the preset priority is the first priority, and it is determined that the The first target object with the first priority is the second object; when the fifth characteristic value is the second interval duration, the preset priorities are the first priority and the second priority, and the first priority is determined A target object and a second target object with a second priority are the second objects;
还例如:第一输入为滑动输入的情况下,特征信息为滑动距离,在第四特征值为第一距离的情况下,预设优先级为第一优先级,确定具有第一优先级的第一目标对象为第二对象;在第五特征值为第二距离的情况下,预设优先级为第一优先级和第二优先级,确定具有第一优先级的第一目标对象和具有第二优先级的第二目标对象为第二对象。For another example: when the first input is a sliding input, the characteristic information is the sliding distance, and when the fourth characteristic value is the first distance, the preset priority is the first priority, and the first priority is determined A target object is the second object; when the fifth characteristic value is the second distance, the preset priorities are the first priority and the second priority, and the first target object with the first priority and the first target object with the first priority are determined The second target object with the second priority is 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.
即以第一输入为长按输入的情况下,特征信息为按压时长为例,在第一按压时长小于或等于1秒的情况下,预设优先级为第一优先级;在第二按压时长大于1秒的情况下的情况下,预设优先级为第一优先级和第二优先级。That is, when the first input is a long-press input, and the characteristic information is the pressing duration as an example, when the first pressing duration is less than or equal to 1 second, the preset priority is the first priority; in the second pressing duration In the case of greater than 1 second, the preset priorities are the first priority and the second priority.
例如:第一输入为长按输入的情况下,特征信息为按压时长,在按压时长小于或等于1秒的情况下,电子设备生成包括具有第一优先级的第一目标对象和第一对象的截屏图像;在按压时长大于1秒的情况下,电子设备生成包括具有第一优先级的第一目标对象、具有第二优先级的第二目标对象和第一对象的截屏图像For example: when the first input is a long-press input, the characteristic information is the pressing time, and when the pressing time is less than or equal to 1 second, the electronic device generates the first target object with the first priority and the first object. Screenshot image; when the pressing time is longer than 1 second, the electronic device generates a screenshot image including a first target object with a first priority, a second target object with a second priority, and a first object
通过将所述第四特征值小于所述第五特征值,且所述第一优先级高于所述第二优先级,从而用户能够通过控制第一输入对应的特征信息的特征值确定优先级,进而完成第二对象的选择,便于用户的截屏操作。By making the fourth characteristic value smaller than the fifth characteristic value and the first priority higher than the second priority, the user can determine the priority by controlling the characteristic value of the characteristic information corresponding to the first input , And then complete the selection of the second object, facilitating the user's screen capture operation.
本实施例中,预先设定第一输入的特征信息与预设优先级相关联的方式,从而实现根据第一输入的特征信息确定预设优先级,进而确定与具有预设优先级的第二对象,这样,用户实际只需要进行一次输入即可确定第一对象和第二对象,操作简单,能够提高截屏效率。In this embodiment, the manner in which 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 the second input with the preset priority is determined. Object, in this way, the user actually only needs to input one time to determine the first object and the second object, the operation is simple, and the screen capture efficiency can be improved.
可选的,在另一实施例中,步骤102可以包括:Optionally, in another embodiment, step 102 may include:
在所述第一对象的显示区域与所述第二对象的显示区域部分重合的情况下,对包括所述第一对象和所述第二对象的显示区域进行截屏处理,得到包括所述第一对象和所述第二对象的截屏图像,其中,所述截屏图像的轮廓包括所述第一对象的显示区域与所述第二对象的显示区域的并集对应的轮廓。In the case where the display area of the first object partially overlaps the display area of the second object, a screenshot process is performed on the display area including the first object and the second object to obtain the first object and the second object. A screenshot image of the object and the second object, wherein the outline of the screenshot image includes an outline corresponding to the union of the display area of the first object and the display area of the second object.
本实施方式中,第一对象和第二对象相互之间具有重叠关系,如图2b所示。本实施方式中,截屏处理得到的截屏图像的轮廓为显示屏上第一对象的 显示区域与第二对象的显示区域的并集对应的轮廓,如图5中具有线条填充的轮廓所示。In this embodiment, the first object and the second object have an overlapping relationship with each other, as shown in FIG. 2b. In this embodiment, the outline of the screenshot image obtained by the screenshot processing is the outline 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 in the outline with line filling in FIG. 5.
这样得到的截屏图像除了第一对象和第二对象后,不存在其他多余的信息,便于用户将截屏图像快速的分享出去,而不必担心隐私的泄露也不需要用户额外再对隐私信息进行遮挡处理(例如:描黑、马赛克等)。Apart from the first object and the second object, the screenshot image obtained in this way has no other redundant information, which is convenient for users to quickly share the screenshot image without worrying about the leakage of privacy and the user does not need to mask the private information. (For example: trace black, mosaic, etc.).
需要说明的是,本发明实施例中介绍的多种可选的实施方式,彼此可以相互结合实现,也可以单独实现,对此本发明实施例不作限定。It should be noted that the multiple optional implementation manners introduced in the embodiment of the present invention can be implemented in combination with each other or can be implemented separately, and the embodiment of the present invention does not limit this.
可以将预设布局关系与所述第一输入的特征信息相关联的方案和N个对象中每个对象的优先级与所述第一输入的特征信息相关联的方案相结合。例如:以第一输入为长按输入、特征信息为按压时长为例,在第二按压时长大于1秒且小于或等于2秒的情况下,预设布局关系为并列关系的基础上,在第二按压时长大于1且小于等于1.5秒的情况下,选择与第一对象具有并列关系且具有第一优先级的对象为第二对象;在第二按压时长大于1.5且小于等于2秒的情况下,选择与第一对象具有并列关系且具有第一优先级和第二优先级的对象为第二对象。It is possible to combine a scheme in which a preset layout relationship is associated with the first input feature information and a scheme in which the priority of each of the N objects is associated with the first input feature information. For example: Taking the first input as the long press input and the feature information as the pressing duration as an example, in the case that the second pressing duration is greater than 1 second and less than or equal to 2 seconds, the preset layout relationship is a parallel relationship. 2. In the case that the pressing duration is greater than 1 and less than or equal to 1.5 seconds, the object that has a parallel relationship with the first object and has the first priority is selected as the second object; in the case that the second pressing duration is greater than 1.5 and less than or equal to 2 seconds , Select the object that has a parallel relationship with the first object and has the first priority and the second priority as the second object.
请参阅图6,图6为本发明实施例提供的一种电子设备的结构图,如图6所示,电子设备600包括接收模块610和生成模块620,其中:Please refer to FIG. 6, which is a structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 6, the electronic device 600 includes a receiving module 610 and a generating module 620, wherein:
接收模块610,用于接收对第一对象的第一输入;The receiving module 610 is configured to receive the first input to the first object;
生成模块620,用于响应于所述第一输入,生成截屏图像;The generating module 620 is configured to generate a screenshot image in response to the first input;
其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。Wherein, the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
可选的,所述预设布局关系与所述第一输入的特征信息相关联;Optionally, the preset layout relationship is associated with the first input feature information;
在所述第一输入的特征信息为第一特征值的情况下,所述预设布局关系为重叠关系In a case where the first input feature information is a first feature value, the preset layout relationship is an overlap relationship
在所述第一输入的特征信息为第二特征值的情况下,所述预设布局关系为并列关系;In a case where the first input feature information is a second feature value, the preset layout relationship is a parallel relationship;
在所述第一输入的特征信息为第三特征值的情况下,所述预设布局关系为嵌套关系。In a case where the first input feature information is a third feature value, the preset layout relationship is a nesting relationship.
可选的,在所述第一输入为长按输入的情况下,所述第一输入的特征信 息为按压时长;Optionally, in a case where the first input is a long-press input, the characteristic information of the first input is the pressing time;
在所述第一输入为按压输入的情况下,所述第一输入的特征信息为按压压力;In a case where the first input is a pressing input, the characteristic information of the first input is pressing pressure;
在所述第一输入为双击输入的情况下,所述第一输入的特征信息为两次点击的间隔时长;In a case where the first input is a double-click input, the characteristic information of the first input is the interval time between two clicks;
在所述第一输入为滑动输入的情况下,所述第一输入的特征信息为滑动速度、或者滑动距离、或者滑动时长。In the case where the first input is a sliding input, the characteristic information of the first input is a sliding speed, or 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.
可选的,所述第二对象包括N个对象,所述N个对象中每个对象的优先级与所述第一输入的特征信息相关联。Optionally, the second object includes N objects, and the priority of each object in the N objects is associated with the characteristic information of the first input.
可选的,在所述第一输入的特征信息为第四特征值的情况下,所述第二对象包括第一目标对象;Optionally, when the first input feature information is a fourth feature value, the second object includes a first target object;
在所述第一输入的特征信息为第五特征值的情况下,所述第二对象包括第一目标对象和第二目标对象;In a case where the first input feature information 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.
发明实施例的电子设备600能够实现图1至图5的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device 600 of the embodiment of the invention can implement the various processes implemented by the electronic device in the method embodiments of FIG. 1 to FIG.
本发明实施例的电子设备600,用户通过对第一对象输入第一输入后,电子设备即可生成包括第一对象和第二对象的截屏图形,无需用户反复调整截屏的范围,提高电子设备截屏的效率。In the electronic device 600 of the embodiment of the present invention, after the user inputs the first input to the first object, the electronic device can generate screenshots including the first object and the second object, without the user repeatedly adjusting the scope of the screenshot, and improving the screenshot of the electronic device s efficiency.
需要说明的是,本发明实施例中介绍的多种可选的实施方式,彼此可以相互结合实现,也可以单独实现,对此本发明实施例不作限定。It should be noted that the multiple optional implementation manners introduced in the embodiment of the present invention can be implemented in combination with each other or can be implemented separately, and the embodiment of the present invention does not limit this.
图7为实现本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接 口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and Power 711 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiment of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,处理器710,用于接收对第一对象的第一输入;响应于所述第一输入,生成截屏图像;其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。Wherein, the processor 710 is configured to receive a first input to a first object; in response to the first input, generate a screenshot image; wherein the screenshot image includes the first object and the second object, and the first object There is a preset layout relationship between the second object and the first object.
可选的,所述处理器710,还用于所述预设布局关系与所述第一输入的特征信息相关联;在所述第一输入的特征信息为第一特征值的情况下,所述预设布局关系为重叠关系;在所述第一输入的特征信息为第二特征值的情况下,所述预设布局关系为并列关系;在所述第一输入的特征信息为第三特征值的情况下,所述预设布局关系为嵌套关系。Optionally, the processor 710 is further configured to associate the preset layout relationship with the feature information of the first input; when the feature information of the first input is a first feature value, The preset layout relationship is an overlapping relationship; when the first input feature information is a second feature value, the preset layout relationship is a parallel relationship; the first input feature information is a third feature In the case of a value, the preset layout relationship is a nested relationship.
可选的,所述处理器710,还用于在所述第一输入为长按输入的情况下,所述第一输入的特征信息为按压时长;在所述第一输入为按压输入的情况下,所述第一输入的特征信息为按压压力;在所述第一输入为双击输入的情况下,所述第一输入的特征信息为两次点击的间隔时长;在所述第一输入为滑动输入的情况下,所述第一输入的特征信息为滑动速度、或者滑动距离、或者滑动时长。Optionally, the processor 710 is further configured to: when the first input is a long-press input, the characteristic information of the first input is a pressing time; when the first input is a pressing input Below, the characteristic information of the first input is pressing pressure; when the first input is a double-click input, the characteristic information of the first input is the interval between two clicks; when the first input is In the case of sliding input, the characteristic information of the first input is sliding speed, or sliding distance, or sliding duration.
可选的,所述处理器710,还用于所述第一特征值小于所述第二特征值,所述第二特征值小于所述第三特征值。Optionally, the processor 710 is further configured to: the first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value.
可选的,所述处理器710,还用于所述第二对象包括N个对象,所述N个对象中每个对象的优先级与所述第一输入的特征信息相关联。Optionally, the processor 710 is further configured to include N objects in the second object, and the priority of each object in the N objects is associated with the first input feature information.
可选的,所述处理器710,还用于在所述第一输入的特征信息为第四特征值的情况下,所述第二对象包括第一目标对象;在所述第一输入的特征信息为第五特征值的情况下,所述第二对象包括第一目标对象和第二目标对象;其中,所述第一目标对象具有第一优先级,所述第二目标对象具有第二优先级。Optionally, the processor 710 is further configured to: when the first input feature information is a fourth feature value, the second object includes a first target object; When the information is the fifth characteristic 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. class.
可选的,所述处理器710,还用于所述第四特征值小于所述第五特征值, 所述第一优先级高于所述第二优先级。Optionally, the processor 710 is further configured to: the fourth characteristic value is smaller than the fifth characteristic value, and the first priority is higher than the second priority.
电子设备700能够实现图1至图5的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device 700 can implement each process implemented by the electronic device in the method embodiments of FIGS. 1 to 5, and to avoid repetition, details are not described herein again.
本发明实施例的电子设备700,用户通过对第一对象输入第一输入后,电子设备即可生成包括第一对象和第二对象的截屏图形,无需用户反复调整截屏的范围,提高电子设备截屏的效率。According to the electronic device 700 of the embodiment of the present invention, after the user inputs the first input to the first object, the electronic device can generate screenshots including the first object and the second object, without the user repeatedly adjusting the scope of the screenshot, which improves the screenshot of the electronic device. s efficiency.
应理解的是,本发明实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器710处理;另外,将上行的数据发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 can be used to receive and send signals during information transmission or communication. Specifically, the downlink data from the base station is received and processed by the processor 710; in addition, Uplink data is sent to the base station. Generally, the radio frequency 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 frequency unit 701 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 702, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与电子设备700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。The audio output unit 703 can convert the 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 it as sound. Moreover, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic device 700 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The graphics processor 7041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 706. The image frame processed by the graphics processor 7041 may be stored in the memory 709 (or other storage medium) or sent via the radio frequency 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 can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 701 for output in the case of a telephone call mode.
电子设备700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环 境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在电子设备700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 700 further 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 and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light. The proximity sensor can close the display panel 7061 and the display panel 7061 when the electronic device 700 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 705 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。The display unit 706 is used to display information input by the 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 (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元707可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 707 may be used to receive inputted numeric or character information, and generate key signal input 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 called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 7071 or near the touch panel 7071. operate). The touch panel 7071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 710, the command sent by the processor 710 is received and executed. In addition, the touch panel 7071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 7071, the user input unit 707 may also include other input devices 7072. Specifically, other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部 件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 7071 can be overlaid on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 determines the type of touch event according to the touch. The type of event provides corresponding visual output on the display panel 7061. Although in FIG. 7, the touch panel 7071 and the display panel 7061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元708为外部装置与电子设备700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备700内的一个或多个元件或者可以用于在电子设备700和外部装置之间传输数据。The interface unit 708 is an interface for connecting an external device and the electronic device 700. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 708 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 700 or can be used to connect the electronic device 700 to an external device. Transfer data between devices.
存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器710是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器710可包括一个或多个处理单元;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 709, and calls data stored in the memory 709 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs. The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710.
电子设备700还可以包括给各个部件供电的电源711(比如电池),优选的,电源711可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 700 may also include a power source 711 (such as a battery) for supplying power to various components. Preferably, the power source 711 may be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备700包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 700 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器710,存储器709,存储在存储器709上并可在所述处理器710上运行的计算机程序,该计 算机程序被处理器710执行时实现图1至图5所示实施例中截屏方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides an electronic device, including a processor 710, a memory 709, a computer program stored on the memory 709 and running on the processor 710, when the computer program is executed by the processor 710 Each process of the screenshot method in the embodiments shown in FIG. 1 to FIG. 5 is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述截屏方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above screenshot method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (18)

  1. 一种截屏方法,应用于电子设备,包括:A screenshot method applied to electronic equipment, including:
    接收对第一对象的第一输入;Receiving the first input to the first object;
    响应于所述第一输入,生成截屏图像;In response to the first input, generate a screenshot image;
    其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。Wherein, the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
  2. 根据权利要求1所述的方法,其中,所述预设布局关系与所述第一输入的特征信息相关联;The method according to claim 1, wherein the preset layout relationship is associated with the characteristic information of the first input;
    在所述第一输入的特征信息为第一特征值的情况下,所述预设布局关系为重叠关系;In a case where the first input feature information is a first feature value, the preset layout relationship is an overlap relationship;
    在所述第一输入的特征信息为第二特征值的情况下,所述预设布局关系为并列关系;In a case where the first input feature information is a second feature value, the preset layout relationship is a parallel relationship;
    在所述第一输入的特征信息为第三特征值的情况下,所述预设布局关系为嵌套关系。In a case where the first input feature information is a third feature value, the preset layout relationship is a nesting relationship.
  3. 根据权利要求2所述的方法,在所述第一输入为长按输入的情况下,所述第一输入的特征信息为按压时长;The method according to claim 2, in the case that the first input is a long press input, the characteristic information of the first input is the pressing time;
    在所述第一输入为按压输入的情况下,所述第一输入的特征信息为按压压力;In a case where the first input is a pressing input, the characteristic information of the first input is pressing pressure;
    在所述第一输入为双击输入的情况下,所述第一输入的特征信息为两次点击的间隔时长;In a case where the first input is a double-click input, the characteristic information of the first input is the interval time between two clicks;
    在所述第一输入为滑动输入的情况下,所述第一输入的特征信息为滑动速度、或者滑动距离、或者滑动时长。In the case where the first input is a sliding input, the characteristic information of the first input is a sliding speed, or a sliding distance, or a sliding duration.
  4. 根据权利要求2所述的方法,其中,所述第一特征值小于所述第二特征值,所述第二特征值小于所述第三特征值。The method according to claim 2, wherein the first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value.
  5. 根据权利要求1所述的方法,其中,所述第二对象包括N个对象,所述N个对象中每个对象的优先级与所述第一输入的特征信息相关联。The method according to claim 1, wherein the second object includes N objects, and the priority of each object in the N objects is associated with the characteristic information of the first input.
  6. 根据权利要求5所述的方法,其中,在所述第一输入的特征信息为第四特征值的情况下,所述第二对象包括第一目标对象;The method according to claim 5, wherein, in a case where the first input characteristic information is a fourth characteristic value, the second object includes a first target object;
    在所述第一输入的特征信息为第五特征值的情况下,所述第二对象包括第一目标对象和第二目标对象;In a case where the first input feature information 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.
  7. 根据权利要求6所述的方法,其中,所述第四特征值小于所述第五特征值,所述第一优先级高于所述第二优先级。The method according to claim 6, wherein the fourth characteristic value is smaller than the fifth characteristic value, and the first priority is higher than the second priority.
  8. 一种电子设备,包括:An electronic device including:
    接收模块,用于接收对第一对象的第一输入;The receiving module is used to receive the first input to the first object;
    生成模块,用于响应于所述第一输入,生成截屏图像;A generating module, configured to generate a screenshot image in response to the first input;
    其中,所述截屏图像包括所述第一对象和第二对象,所述第二对象与所述第一对象之间具有预设布局关系。Wherein, the screenshot image includes the first object and a second object, and there is a preset layout relationship between the second object and the first object.
  9. 根据权利要求8所述的电子设备,其中,所述预设布局关系与所述第一输入的特征信息相关联;8. The electronic device according to claim 8, wherein the preset layout relationship is associated with the characteristic information of the first input;
    在所述第一输入的特征信息为第一特征值的情况下,所述预设布局关系为重叠关系In a case where the first input feature information is a first feature value, the preset layout relationship is an overlap relationship
    在所述第一输入的特征信息为第二特征值的情况下,所述预设布局关系为并列关系;In a case where the first input feature information is a second feature value, the preset layout relationship is a parallel relationship;
    在所述第一输入的特征信息为第三特征值的情况下,所述预设布局关系为嵌套关系。In a case where the first input feature information is a third feature value, the preset layout relationship is a nesting relationship.
  10. 根据权利要求9所述的电子设备,其中,在所述第一输入为长按输入的情况下,所述第一输入的特征信息为按压时长;9. The electronic device according to claim 9, wherein, in a case where the first input is a long-press input, the characteristic information of the first input is a pressing time;
    在所述第一输入为按压输入的情况下,所述第一输入的特征信息为按压压力;In a case where the first input is a pressing input, the characteristic information of the first input is pressing pressure;
    在所述第一输入为双击输入的情况下,所述第一输入的特征信息为两次点击的间隔时长;In a case where the first input is a double-click input, the characteristic information of the first input is the interval time between two clicks;
    在所述第一输入为滑动输入的情况下,所述第一输入的特征信息为滑动速度、或者滑动距离、或者滑动时长。In the case where the first input is a sliding input, the characteristic information of the first input is a sliding speed, or a sliding distance, or a sliding duration.
  11. 根据权利要求9所述的电子设备,其中,所述第一特征值小于所述第二特征值,所述第二特征值小于所述第三特征值。9. The electronic device according to claim 9, wherein the first characteristic value is smaller than the second characteristic value, and the second characteristic value is smaller than the third characteristic value.
  12. 根据权利要求8所述的电子设备,其中,所述第二对象包括N个对象,所述N个对象中每个对象的优先级与所述第一输入的特征信息相关联。8. The electronic device according to claim 8, wherein the second object includes N objects, and the priority of each object in the N objects is associated with the first input feature information.
  13. 根据权利要求12所述的电子设备,其中,在所述第一输入的特征信息为第四特征值的情况下,所述第二对象包括第一目标对象;The electronic device according to claim 12, wherein, in a case where the first input characteristic information is a fourth characteristic value, the second object includes a first target object;
    在所述第一输入的特征信息为第五特征值的情况下,所述第二对象包括第一目标对象和第二目标对象;In a case where the first input feature information 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.
  14. 根据权利要求13所述的电子设备,其中,所述第四特征值小于所述第五特征值,所述第一优先级高于所述第二优先级。The electronic device according to claim 13, wherein the fourth characteristic value is smaller than the fifth characteristic value, and the first priority is higher than the second priority.
  15. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,其中,所述程序被所述处理器执行时实现如权利要求1至7中任一项所述的截屏方法的步骤。An electronic device comprising a processor, a memory, and a program stored on the memory and capable of running on the processor, wherein the program is executed by the processor to implement any of claims 1 to 7 One of the steps of the screenshot method.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的截屏方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the screenshot method according to any one of claims 1 to 7 are realized .
  17. 一种截屏装置,其特征在于,所述截屏装置用于执行如权利要求1至7中任一项所述的截屏方法的步骤。A screen capture device, characterized in that the screen capture device is used to execute the steps of the screen capture method according to any one of claims 1 to 7.
  18. 一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1至7中任一项所述的截屏方法的步骤。A computer program product, wherein the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the screen capture method according to any one of claims 1 to 7 A step of.
PCT/CN2021/086837 2020-04-16 2021-04-13 Screen capturing method and electronic device WO2021208890A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2021208890A1 true WO2021208890A1 (en) 2021-10-21

Family

ID=71903731

Family Applications (1)

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

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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8225197B1 (en) * 2011-06-22 2012-07-17 Google Inc. Rendering approximate webpage screenshot client-side
CN104750495A (en) * 2015-04-08 2015-07-01 魅族科技(中国)有限公司 Screenshot method and device
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
CN111522613A (en) * 2020-04-16 2020-08-11 维沃移动通信有限公司 Screen capturing method and electronic equipment

Family Cites Families (8)

* 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
US9176703B2 (en) * 2012-06-29 2015-11-03 Lg Electronics Inc. Mobile terminal and method of controlling the same for screen capture
CN106775368A (en) * 2015-11-25 2017-05-31 中兴通讯股份有限公司 The screenshotss method of touch screen terminal, device and touch screen terminal
KR20180031239A (en) * 2016-09-19 2018-03-28 엘지전자 주식회사 Mobile terminal and method for controlling the same
US11003331B2 (en) * 2016-10-18 2021-05-11 Huawei Technologies Co., Ltd. Screen capturing method and terminal, and screenshot reading method and terminal
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
CN110096203B (en) * 2019-04-29 2021-06-25 维沃移动通信有限公司 Screenshot method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8225197B1 (en) * 2011-06-22 2012-07-17 Google Inc. Rendering approximate webpage screenshot client-side
CN104750495A (en) * 2015-04-08 2015-07-01 魅族科技(中国)有限公司 Screenshot method and device
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
CN111522613A (en) * 2020-04-16 2020-08-11 维沃移动通信有限公司 Screen capturing method and electronic equipment

Also Published As

Publication number Publication date
CN111522613B (en) 2024-03-22
CN111522613A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
WO2021012931A1 (en) Icon management method and terminal
WO2021129762A1 (en) Application sharing method, electronic device and computer-readable storage medium
WO2021083132A1 (en) Icon moving method and electronic device
WO2021098705A1 (en) Display method and electronic device
CN107943390B (en) Character copying method and mobile terminal
WO2021036531A1 (en) Screenshot method and terminal device
WO2021129536A1 (en) Icon moving method and electronic device
WO2020151513A1 (en) Information processing method and terminal device
WO2020151512A1 (en) Image storage method and terminal apparatus
WO2021057290A1 (en) Information control method and electronic device
WO2020057257A1 (en) Application interface switching method and mobile terminal
WO2021057301A1 (en) File control method and electronic device
WO2021115172A1 (en) Display method and electronic device
WO2021068885A1 (en) Control method and electronic device
WO2020199783A1 (en) Interface display method and terminal device
WO2020156123A1 (en) Information processing method and terminal device
US20210200432A1 (en) Display method and mobile terminal
WO2021037074A1 (en) Audio output method and electronic apparatus
WO2021088706A1 (en) Method for controlling application program and electronic device
WO2021238788A1 (en) Icon arrangement method, electronic device, and storage medium
WO2021104232A1 (en) Display method and electronic device
WO2021190373A1 (en) Interaction method, interaction system, and display device
WO2021115220A1 (en) Information sharing method, electronic device and computer-readable storage medium
WO2021083091A1 (en) Screenshot capturing method and terminal device
WO2021208890A1 (en) Screen capturing method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21789592

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21789592

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 28/04/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21789592

Country of ref document: EP

Kind code of ref document: A1