WO2023030307A1 - 截图方法、装置及电子设备 - Google Patents

截图方法、装置及电子设备 Download PDF

Info

Publication number
WO2023030307A1
WO2023030307A1 PCT/CN2022/115807 CN2022115807W WO2023030307A1 WO 2023030307 A1 WO2023030307 A1 WO 2023030307A1 CN 2022115807 W CN2022115807 W CN 2022115807W WO 2023030307 A1 WO2023030307 A1 WO 2023030307A1
Authority
WO
WIPO (PCT)
Prior art keywords
screenshot
area
target
display area
input
Prior art date
Application number
PCT/CN2022/115807
Other languages
English (en)
French (fr)
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 WO2023030307A1 publication Critical patent/WO2023030307A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Definitions

  • the present application belongs to the field of electronic technology, and in particular relates to a screenshot method, device and electronic equipment.
  • the screen capture function in electronic equipment has become an important way to capture screen content.
  • electronic devices can support a long screenshot function or a full-screen screenshot function, so that a user can obtain a long screenshot containing continuous content or a screenshot containing content in the entire display area through the screen capture function.
  • the purpose of the embodiments of the present application is to provide a screenshot method, which can solve the problems of cumbersome steps and low flexibility in the related screenshot process.
  • the embodiment of the present application provides a screenshot method, the method includes: when the target interface includes N display areas, receiving a first input from the user; in response to the first input, displaying In the area, determine the target display area corresponding to the first input; perform a screenshot operation on the target display area to obtain a target screenshot; wherein, N is an integer greater than 1.
  • the embodiment of the present application provides a screenshot device, which includes: a receiving module, a determining module, and an executing module; the receiving module is configured to receive the user's first An input; the determination module is configured to determine the target display area corresponding to the first input from the N display areas in response to the first input received by the receiving module; the execution module is configured to determine the target display area determined by the determination module A screenshot operation is performed in the target display area to obtain a target screenshot; wherein, N is an integer greater than 1.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, 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 method described in the first aspect.
  • the screenshot device when the target interface includes N display areas, receives the user's first input, and can determine the target display area corresponding to the first input from the displayed N display areas, and A screenshot operation is performed in the target display area to obtain a target screenshot.
  • the screenshot device can capture the content of a certain display area of interest from multiple display areas in the state of split screen or column display, without the need for the user to edit the full-screen screenshot to obtain a certain
  • the screenshot corresponding to the display area in this way, simplifies the process of obtaining the screenshot, thereby saving the operation time of the user, and further improving the human-computer interaction performance.
  • Fig. 1 is a flow chart of a screenshot method provided by the embodiment of the present application.
  • Fig. 2 is one of the schematic diagrams of the interface applied by a screenshot method provided by the embodiment of the present application;
  • Fig. 3 is the second schematic diagram of the interface applied by a screenshot method provided by the embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a screenshot device provided in an embodiment of the present application.
  • FIG. 5 is one of the structural schematic diagrams of an electronic device provided in an embodiment of the present application.
  • FIG. 6 is a second schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the screenshot method provided in the embodiment of the present application can be applied to a screenshot scene.
  • the page of the shopping APP is displayed in left and right columns, and the product catalog is displayed in the left column, and the product content is displayed in the right column.
  • the user wants to capture the product content area on the right side of the entire page, the user can swipe input in the display area of the right column to trigger the electronic device to take a screenshot of the right column area, and then the user can obtain only the product content area containing the right column.
  • a screenshot of the content in the sidebar In this way, in the state where the electronic device is displayed in columns, the content of a certain column area can be intercepted from multiple column areas, which is easy to operate and improves the user's screenshot efficiency.
  • FIG. 1 shows a flowchart of the screenshot method provided in the embodiment of the present application.
  • the screenshot method provided by the embodiment of the present application may include the following steps 101 to 103:
  • Step 101 The screenshot device receives a first input from a user when the target interface includes N display areas.
  • N is an integer greater than 1.
  • the above-mentioned first input may be: a user's touch input, or other feasible input, which is not limited in the embodiment of the present application.
  • the above-mentioned first input may be: a user's click input, slide input, press input, and the like.
  • the above click operation may be any number of click operations.
  • the above-mentioned sliding operation may be a sliding operation in any direction, such as sliding up, sliding down, sliding to the left, or sliding to the right, etc., which is not limited in this embodiment of the present application.
  • the aforementioned target interface may be an application interface of one or more application programs, or the aforementioned target interface may be a desktop of an electronic device.
  • the aforementioned N display areas may be N mutually independent display areas.
  • the above N display areas may be N split screens, N columns, etc., or N display windows.
  • the above N display areas may be preset display areas of the electronic device, or may be user-defined display areas according to actual needs.
  • the above N display areas can be the screen area where the left column is located and the screen area where the right column is located;
  • the display area can be divided into two upper and lower screen areas; in the case where the shopping page of the shopping APP is displayed in left and right columns, the above N display areas can be the page area of the left column of the shopping page and the page area of the right column of the shopping page.
  • a dividing line may be displayed between each of the above N display areas.
  • the dividing line may be of any line type such as solid line or dotted line, and the dividing line may also be of any color such as black or blue, which is not limited in this embodiment of the present application.
  • the separation line can separate each display area, which is convenient for the user to visually and intuitively distinguish each display area; in addition, the electronic device can determine each display area in the display screen by identifying the separation line.
  • left and right column display there is a separation line displayed between the left column and the right column, and the electronic device can determine the left column area and the right column area by identifying the separation line.
  • Step 102 The screenshot device determines a target display area corresponding to the first input from the N display areas in response to the first input.
  • the foregoing target display area may include one or more display areas.
  • Example 1 take the above display area as a column area as an example.
  • the application page 1 of the shopping APP1 is displayed in left and right columns, after the user clicks somewhere in the left column area, the left column area can be determined as the target display area.
  • Example 2 combined with the above example 1, in the case that the application page 2 of the shopping APP1 is displayed in the left, middle and right columns, after the user clicks somewhere in the middle column area, the middle column area can be determined as the target display area.
  • Step 103 the screenshot device performs a screenshot operation on the target display area to obtain a target screenshot.
  • the above-mentioned screenshot operation may include: a screenshot operation, and/or a screenshot operation of part of the content on the screen.
  • the target screenshot only includes a screenshot of the content of the target display area.
  • the screenshot device may take a partial screenshot of the target display area, or the screenshot device may first acquire a screenshot of the entire display screen, and then capture a screenshot area corresponding to the target display area to obtain the target screenshot.
  • the device for capturing a screenshot may perform a partial screenshot of the target display area.
  • the screenshot device can identify the position of the above-mentioned target display area in the display screen, and based on the position of the target display area in the display screen, only perform a screenshot operation on the target display area in the display screen, and obtain an image containing only the target display area.
  • the electronic device can identify the separation line displayed on the display screen, and judge the position of the target display area on the display screen according to the separation line and the screen coordinates of the full screen.
  • N display areas as the left column area and right column area in the parallel world scene as an example.
  • the electronic device can recognize the dividing line in the display screen, and judge whether the input area of the stylus is the left column area or the right column area according to the dividing line and the screen coordinates of the display screen. bar area. Further, if the input area is the left column area, the left column area is intercepted based on the dividing line of the parallel world.
  • the screenshot device may perform a screenshot operation on the entire display screen to obtain a first screenshot including the content of the entire display screen, and then the screenshot device may identify where the target display area is located in the display screen position, and based on the position of the target display area in the display screen, determine the corresponding position of the target display area in the first screenshot, and then, based on the above position, perform image processing on the first screenshot to retain the target in the first screenshot Display the screenshot area corresponding to the area, and get the target screenshot.
  • the screenshot device when N (N is an integer greater than 1) display areas are displayed, the screenshot device receives the user's first input, and can determine the first input from the displayed N display areas. - Input the corresponding target display area, and take a screenshot of the target display area to obtain the target screenshot.
  • the screenshot device can capture the content of a certain display area of interest from multiple display areas in the state of split screen or column display, without the need for the user to edit the full-screen screenshot to obtain a certain
  • the screenshot corresponding to the display area in this way, simplifies the process of obtaining the screenshot, thereby saving the operation time of the user, and further improving the human-computer interaction performance.
  • the above-mentioned first input is a user's sliding input on the screen
  • step 102 may include the following step 102a:
  • Step 102a In response to the sliding input, the screenshot device determines the target display area from the above N display areas according to the track area corresponding to the sliding track of the sliding input.
  • At least part of the target display area overlaps with the track area.
  • the above sliding input may be sliding input on the screen using a stylus
  • the above-mentioned sliding input may also be multi-finger sliding (for example, sliding down with three fingers), or knuckle sliding (for example, drawing a circle with knuckles).
  • the above-mentioned sliding track is a sliding track corresponding to a sliding input on the screen.
  • the aforementioned track area may be a closed area surrounded by sliding tracks on the screen, or the aforementioned track area may be an unclosed or semi-closed area generated according to the sliding track. Further, the above track area may be determined based on the start position and end position of the sliding track.
  • the screenshot device may record the coordinates of the start position and the end position of the sliding track, and then calculate the area size from the start position to the end position based on the above coordinates.
  • the user's index finger slides down from point A on the screen to point A1
  • the middle finger slides down from point B on the screen to point B1
  • the ring finger slides down from point C on the screen.
  • slide down to point C1 and the sliding track formed between point A and point A1 is track O
  • the sliding track formed between point B and point B1 is track P
  • the sliding track formed between point C and point C1 If the track is track Q, then the above-mentioned sliding area may be the area enclosed by track O, track Q, the connecting line between point A and point C, and the connecting line between point A1 and point C1.
  • the stylus when the user uses a stylus to slide on the screen, the stylus falls on point A on the screen, slides in a circular arc for a certain distance and then returns to point A and then lifts up.
  • the sliding area formed by a sliding track from the beginning to the end of point A.
  • the above-mentioned track area may be located in the above-mentioned target display area, or a part of the above-mentioned track area is located in the above-mentioned target display area.
  • the screenshot device may determine the target display area based on the location of the track area. For example, in the case where the above N display areas are the left column area and the right column area, when all track areas are in the left column area, the left column area may be used as the target display area.
  • the target display area overlaps with the track area, it is possible to determine which display area to use as the target display area according to different inputs received on the screen, so as to take targeted screenshots, and then obtain Target screenshots that meet user needs improve operational flexibility.
  • the process of determining the target display area from the above N display areas may include the following steps 102a1:
  • Step 102a1 The screenshot device determines the target display area from the N display areas according to the area of the overlapping area between each display area and the track area in the plurality of display areas.
  • the overlapping area may be an overlapping area between at least a partial area of the display area and at least a partial area of the track area.
  • the area of the above overlapping area may be calculated by the screenshot device using an area algorithm.
  • the above overlapping area may be a common area between the display area and the track area.
  • the screenshot device may determine the target display area according to the area of the common area between the track area and each display area.
  • the screenshot device may use the display area with the largest overlapping area with the track area among the plurality of display areas as the target display area.
  • a separation line 20 is displayed between the left column area 21 and the right column area 22 .
  • the track area formed by the user's sliding input on the display screen is the area 24 enclosed by the dotted line in the figure, and the area of the overlapping area (the area filled with thicker lines) between the area 23 and the left column area 21 is S1,
  • the area of the overlapping area (the area filled with thinner lines) of the area 23 and the middle column area 22 is S2, and S1 is greater than S2, because in the above-mentioned overlapping area, the area of the overlapping area of the area 24 and the left column area 21 is relatively small. If it is large, the left column area 21 can be used as the target display area.
  • the device for capturing a screenshot may use, among the plurality of display areas, the display area that overlaps with the track area with the smallest area as the target display area.
  • the right column area 22 can be used as the target display area.
  • the above-mentioned first input is a rotation input of a stylus on the screen.
  • the screenshot device may determine the above-mentioned target display area according to the rotation direction of the stylus.
  • the rotation direction of the stylus corresponds to a display area.
  • the screenshot device may determine the display area corresponding to the rotation direction of the stylus as the above-mentioned target area.
  • the left column area is used as the target display area; when the stylus rotates counterclockwise , using the right column area as the target display area.
  • the user can trigger the electronic device to intercept the content of the required display area through the rotation direction of the stylus, which improves the convenience and flexibility of the operation.
  • the above step 101 includes the following step 101a:
  • Step 101a the screenshot device receives a user's first input on the target control when displaying N controls.
  • each of the above N controls indicates a display area.
  • the above step 102 may include the following step 102c:
  • Step 102c The screenshot device takes the display area corresponding to the target control as the target display area in response to the first input.
  • control may be a control of any shape.
  • control above may be a function button, which is used to trigger a screenshot operation of a specified display area.
  • the device for capturing screenshots can float or display the above-mentioned controls with a preset transparency on the first interface
  • the first interface includes any of the following: the desktop of the electronic device, the pull-down notification page, the interface where the above-mentioned N display areas are located, and the application Interface, system setting interface, etc.
  • the above-mentioned first interface can be flexibly set according to actual needs, which is not limited in this embodiment of the present application.
  • each control above corresponds to a display area, and is used to trigger a screenshot operation of the display area.
  • the display interface corresponding to each control can be preset, and the user can also customize the display interface corresponding to each control according to actual needs.
  • each of the above controls may be automatically generated by the electronic device according to the number of display areas, or the number of controls may be increased or decreased by the user according to actual needs.
  • the electronic device can automatically identify the currently included display areas, and generate a corresponding number of controls according to the number of display areas.
  • the display screen includes a left column area 31 and a right column area 32, and the user pulls down the control center panel of the electronic device, as shown in (b) in Figure 3, the control A function button 31a corresponding to the left column area 31 and a function button 32a corresponding to the right column area 32 are displayed in the center panel 33.
  • the screenshot device can use the corresponding function button 31a
  • the left column area 31 is used as the target display area, and a screenshot operation is performed to obtain a screenshot including only the contents of the display area.
  • the screenshot device can generate and display the function buttons corresponding to each display area, so that the user can conveniently trigger the screenshot of the area he needs through the function buttons, improving the flexibility and convenience of operation.
  • the above step 103 may include the following steps 103a and 103b:
  • Step 103a The screenshot device performs M times of screenshot operations on the content displayed in the target display area to obtain M first screenshots.
  • Step 103b The screenshot device stitches and merges the above M first screenshots to obtain a target screenshot.
  • the target screenshot includes: at least part of the image content in each first screenshot, and the target screenshot does not include repeated image content, and M is a positive integer.
  • the display content in the above-mentioned target display area may be automatically updated by the electronic device, or the user triggers the electronic device to update.
  • the electronic device when the above-mentioned target display area displays the first content, the electronic device can perform a screenshot operation in the target display area to obtain the first first screenshot, and after obtaining the first screenshot, the electronic device can automatically control the The page (or interface) of the target display area is slid upwards by a predetermined distance (for example, 200px), and after sliding up, a screenshot is taken of the target display area to obtain a second second screenshot. If the user does not trigger to stop the screenshot, continue to slide up and take a screenshot of the target display area.
  • a predetermined distance for example, 200px
  • the electronic device can perform a screenshot operation in the target display area to obtain the first first screenshot, and slide the page up by a certain distance (for example, 200px ), continue to take screenshots of the target display area to obtain the second second screenshot.
  • a certain distance for example, 200px
  • the screenshot device may perform image splicing or image fusion on the above M first screenshots to obtain multiple (or multiple different) contents including the target display area.
  • Target screenshot may perform image splicing or image fusion on the above M first screenshots to obtain multiple (or multiple different) contents including the target display area.
  • the screenshot device may use image comparison technology to identify overlapping parts in the first screenshot, and perform cropping and splicing to form a regional long screenshot.
  • the screenshot device can automatically update the content of the target display area, take screenshots of the target display area before and after the update, and splice the obtained multiple screenshots to form a long screenshot containing the content corresponding to the area.
  • the user can obtain a long screenshot including the displayed and currently undisplayed content of the target area through a trigger input, thereby improving the flexibility and convenience of the operation.
  • the screenshot method provided in the embodiment of the present application may be executed by a screenshot device, or a control module in the screenshot device for executing the screenshot method.
  • the screenshot device provided in the embodiment of the present application is described by taking the screenshot method performed by the screenshot device as an example.
  • the control device 600 includes: a receiving module 601, a determining module 602 and an executing module 603;
  • the above-mentioned receiving module 601 is used to receive the first input of the user when the target interface includes N display areas; the above-mentioned determining module 602 is used to respond to the first input received by the receiving module 601, In the display area, determine the target display area corresponding to the first input; the execution module 603 is configured to perform a screenshot operation on the target display area determined by the determination module 602 to obtain a target screenshot; wherein, N is an integer greater than 1.
  • the above-mentioned first input is a user's sliding input on the screen; the above-mentioned determining module 602 is specifically configured to respond to the above-mentioned sliding input, according to the track area corresponding to the sliding track of the above-mentioned sliding input, A target display area is determined from the N display areas; wherein at least a part of the target display area overlaps with the track area.
  • the above determination module 602 is specifically configured to The target display area is determined from the N display areas by the area area of the overlapping area between each display area of the plurality of display areas and the track area.
  • the above-mentioned receiving module 601 is specifically configured to receive the user's first input to the target control when N controls are displayed; each control indicates one of the above-mentioned display areas; the above-mentioned determining module 602. Specifically, in response to the first input received by the receiving module 601, use the display area corresponding to the target control as a target display area.
  • the above device further includes: a processing module 604;
  • the above execution module 603 is specifically used to perform M times of screenshot operations on the content displayed in the above-mentioned target display area to obtain M first screenshots; each time the display content in the above-mentioned target display area is updated, execute the above-mentioned screenshot operation; the above-mentioned processing Module 604, configured to splicing and merging the M first screenshots obtained by the execution module 603 to obtain a target screenshot.
  • the screenshot device when the target interface includes N (N is an integer greater than 1) display areas, the screenshot device receives the user's first input, and can, from the displayed N display areas, A target display area corresponding to the first input is determined, and a screenshot operation is performed on the target display area to obtain a target screenshot.
  • the screenshot device can capture the content of a certain display area of interest from multiple display areas in the state of split screen or column display, without the need for the user to edit the full-screen screenshot to obtain a certain
  • the screenshot corresponding to the display area in this way, simplifies the process of obtaining the screenshot, thereby saving the operation time of the user, and further improving the human-computer interaction performance.
  • the screenshot device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, tablet computer, notebook computer, palmtop computer, vehicle electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant).
  • assistant, PDA personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the screenshot device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the screenshot device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 3 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and programs or instructions stored in the memory 702 and operable on the processor 701,
  • an electronic device 700 including a processor 701, a memory 702, and programs or instructions stored in the memory 702 and operable on the processor 701,
  • the program or instruction is executed by the processor 701
  • each process of the screenshot method embodiment described above can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 110 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the above-mentioned user input unit 107 is configured to receive the user's first input when the target interface includes N display areas; the above-mentioned processor 110 is configured to respond to the first input received by the user input unit 107, from the above-mentioned Among the N display areas, a target display area corresponding to the first input is determined; the processor 110 is configured to perform a screenshot operation on the determined target display area to obtain a target screenshot; wherein, N is an integer greater than 1.
  • the above-mentioned first input is a user's sliding input on the screen; the above-mentioned processor 110 is specifically configured to, in response to the above-mentioned sliding input, according to the track area corresponding to the sliding track of the above-mentioned sliding input, A target display area is determined from the N display areas; wherein at least a part of the target display area overlaps with the track area.
  • the processor 110 is specifically configured to: The target display area is determined from the N display areas by the area area of the overlapping area between each display area of the plurality of display areas and the track area.
  • the above-mentioned user input unit 107 is specifically configured to receive the user's first input to the target control when N controls are displayed; each control indicates one of the above-mentioned display areas; the above-mentioned processing
  • the device 110 is specifically configured to, in response to the first input received by the user input unit 107, use the display area corresponding to the target control as the target display area.
  • the above-mentioned processor 110 is specifically configured to perform M times of screenshot operations on the content displayed in the above-mentioned target display area to obtain M first screenshots; each display content in the above-mentioned target display area Update once, execute the screenshot operation once; the processor 110 is configured to splicing and merging the M first screenshots obtained above to obtain a target screenshot.
  • the electronic device when the target interface includes N (N is an integer greater than 1) display areas, the electronic device receives the user's first input, and from the displayed N display areas, A target display area corresponding to the first input is determined, and a screenshot operation is performed on the target display area to obtain a target screenshot.
  • N is an integer greater than 1
  • the electronic device can capture the content of a certain display area of interest from multiple display areas in the state of split screen or column display, without the need for the user to edit the full screen screenshot to obtain a certain
  • the screenshot corresponding to the display area in this way, simplifies the process of obtaining the screenshot, thereby saving the operation time of the user, and further improving the human-computer interaction performance.
  • the input unit 104 may include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used by the image capturing device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 109 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above screenshot method embodiment can be realized, and the same Technical effects, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the above screenshot method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to realize the various processes of the above screenshot method embodiment, and can achieve the same technical effect.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several 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 methods described in various embodiments of the present application.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

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

Abstract

本申请公开了一种截图方法、装置及电子设备。该方法包括:在目标界面包括N个显示区域的情况下,接收用户的第一输入;响应于该第一输入,从上述N个显示区域中,确定该第一输入对应的目标显示区域;对该目标显示区域进行截图操作,得到目标截图;其中,N为大于1的整数。

Description

截图方法、装置及电子设备
相关申请的交叉引用
本申请主张在2021年08月31日在中国提交的中国专利申请号No.202111015358.8的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于电子技术领域,具体涉及一种截图方法、装置及电子设备。
背景技术
随着电子技术的发展,电子设备中的截屏功能成为截取屏幕内容的重要途径。目前,电子设备可以支持长截屏功能或者截取全屏功能,使得用户可以通过该截屏功能得到一幅包含连续内容的长截图,或者包含整个显示区域中的内容的截图。
在相关技术中,如果用户想要得到包含指定的显示区域中的内容的截图,则需要先得到包含整个屏幕的显示内容的截图,然后再对该截图进行裁切,来得到只包含需求的显示区域中的内容的截图。
在上述长截图过程中,需要用户需要先触发一次截图操作,得到包含全屏内容的截图,再对得到的截图进行裁切等编辑操作,才能得到包含需求的内容的截图,如此,导致整个截图获取过程步骤繁琐、且耗时较长。
发明内容
本申请实施例的目的是提供一种截图方法,能够解决相关截图过程所存在的步骤繁琐且灵活性低的问题。
第一方面,本申请实施例提供了一种截图方法,该方法包括:在目标界面包括N个显示区域的情况下,接收用户的第一输入;响应于该第一输入,从上述N个显示区域中,确定该第一输入对应的目标显示区域;对该目标显示区域进行截图操作,得到目标截图;其中,N为大于1的整数。
第二方面,本申请实施例提供了一种截图装置,该装置包括:接收模块,确定模块和执行模块;上述接收模块,用于在目标界面包括N个显示区域的情况下,接收用户的第一输入;上述确定模块,用于响应于上述接收模块接收的第一输入,从上述N个显示区域中,确定第一输入对应的目标显示区域;上述执行模块,用于对上述确定模块确定的目标显示区域进行截图操作,得到目标截图;其中,N为大于1的整数。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在非易失的存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,在目标界面包括N个显示区域的情况下,截图装置接收用户的第一输入,可以从显示的N个显示区域中,确定第一输入对应的目标显示区域,并对该目标显示区域进行截图操作,得到目标截图。通过该方法,截图装置可以在分屏或者分栏显示的状态下,从多个显示区域中截取某个感兴趣的显示区域的内容,而不需要用户对全屏截图进行编辑操作,来得到某个显示区域对应的截图,如此,简化了截图的获取过程,从而节省了用户的操作时间,进而提高了人机交互性能。
附图说明
图1是本申请实施例提供的一种截图方法的流程图;
图2是本申请实施例提供的一种截图方法所应用的界面的示意图之一;
图3是本申请实施例提供的一种截图方法所应用的界面的示意图之二;
图4是本申请实施例提供的一种截图装置的结构示意图;
图5是本申请实施例提供的一种电子设备的结构示意图之一;
图6是本申请实施例提供的一种电子设备的结构示意图之二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的截图方法进行详细地说明。
本申请实施例提供的截图方法可以应用于截图的场景中。
以截取购物APP页面内容的内容为例。假设购物APP的页面左右分栏显示,并且,左侧分栏展示商品目录,右侧分栏展示商品内容。当用户想要截取整个页面中右侧的商品内容区域时,用户可以点击“截图”按钮,得到包括整个页面内容的截图,然后,再对该截图进行裁切,只保留包括右侧商品内容区域的截图部分。如此,用户需要先触发截取全屏,再对全屏截图进行编辑,才能得到需要的截图,导致整个截图过程步骤繁琐、且耗时长。
在本申请实施例提供的截图方法中,假设购物APP的页面左右分栏显示,并且,左侧分栏展示商品目录,右侧分栏展示商品内容。当用户想要截取整个页面中右侧的商品内容区域时,用户可以在右侧分栏的显示区域进行滑动输入,触发电子设备对该右侧分栏区域进行截屏,便可以得到仅包含该右侧分栏中的内容的截图。如此,可以在电子设备分栏显示的状态下,从多个分栏区域中截取某个分栏区域的内容,操作简便,使得用户的截图效率提高。
本申请实施例提供了一种截图方法,该截图方法可以应用于电子设备,图1示出了本申请实施例提供的截图方法的流程图。如图1所示,本申请实施例提供的截图方法可以包括如下步骤101至步骤103:
步骤101:截图装置在目标界面包括N个显示区域的情况下,接收用户的第一输入。
其中,N为大于1的整数。
在本申请实施例中,上述第一输入可以为:用户的触控输入,或者,其他可行性输入,本申请实施例对此不做限定。示例性地,上述第一输入可以为:用户的点击输入,滑动输入,按压输入等。进一步地,上述点击操作可以为任意次数的点击操作。上述滑动操作可以为向任意方向的滑动操作,例如向上滑动、向下滑动、向左滑动或者向右滑动等,在本申请实施例中对此不做限定。
可选地,在本申请实施例中,上述目标界面可以为一个或者多个应用程序的应用界面,或者,上述目标界面可以为电子设备的桌面。在本申请实施例中,上述N个显示区域可以为N个互相独立的显示区域。示例性地,上述N个显示区域可以为N个分屏,N个分栏等,或者,N个显示窗口。
可选地,在本申请实施例中,上述N个显示区域可以是电子设备预设的显示区域,也可以是用户根据实际需求自定义的显示区域。
举例说明,在平板电脑左右分栏显示的情况下,上述N个显示区域可以为左分栏所在的屏幕区域和右分栏所在的屏幕区域;在手机上下分屏显示的情况下,上述N个显示区域可以为上下两个分屏区域;在购物APP的购物页面左右分栏展示的情况,上述N个显示区域可以为购物页面的左分栏的页面区域和购物页面右分栏的页面区域。
示例性地,上述N个显示区域中的每个显示区域之间可以显示有分隔线。进一步地,该分隔线可以是实线、虚线等任意线条类型,该分隔线也可以为黑色、蓝色等任意颜色,本申请实施例对此不做任何限定。
进一步地,该分隔线可以将各个显示区域分隔开,便于用户在视觉上直观地区分各个显示区域;另外,电子设备可以通过识别分隔线,确定显示屏中的各个显示区域。
例如,在左右分栏显示的情况下,左边分栏和右边分栏之间显示有分隔线,电子设备可以通过识别分隔线,确定左边分栏区域和右边分栏区域。
步骤102:截图装置响应于第一输入,从N个显示区域中,确定第一输入对应的目标显示区域。
可选地,在本申请实施例中,上述目标显示区域可以包括一个或者多个显示区域。
示例1,以上述显示区域为分栏区域为例。在购物APP1的应用页面1为左右分栏显示状态的情况下,用户在左边分栏区域的某处点击后,可以将左边分栏区域确定为该目标显示区域。
示例2,结合上述示例1,在在购物APP1的应用页面2为左中右分栏显示状态的情况下,用户在中间分栏区域的某处点击后,可以将该中间分栏区域确定为该目标显示区域。
步骤103:截图装置对目标显示区域进行截图操作,得到目标截图。
在本申请实施例中,上述截图操作可以包括:截屏操作,和/或,对屏幕中的部分内容的截图操作。
在本申请实施例中,上述目标截图仅包含上述目标显示区域的内容的截图。
示例性地,截图装置可以针对目标显示区域进行局部截图,或者,截图装置可以先获取整个显示屏的屏幕截图,再从中截取目标显示区域对应的截图区域,得到目标截图。
在一种可能的实现方式中,截图装置可以针对目标显示区域进行局部截图。截图装置可以识别上述目标显示区域在显示屏中所处的位置,并基于目标显示区域在显示屏中所处位置,仅对显示屏中该目标显示区域执行截图操作,得到仅包含该目标显示区域的内容的截图。
示例性地,电子设备可以识别显示屏中显示的分隔线,根据分隔线和全屏的屏幕坐标来判断目标显示区域在显示屏中的位置。
举例说明,以N个显示区域为平行世界场景下的左分栏区域和右分栏区域为例。在用户使用手写笔在显示屏滑动的情况下,电子设备可以识别显示屏中的分隔线,并根据分隔线和显示屏的屏幕坐标判断手写笔的输入区域时左分栏区域,或者是右分栏区域。进一步地,如果输入区域为左分栏区域,则以平行世界的分隔线为基准截取左分栏区域。
在另一种可能的实现方式中,截图装置可以对整个显示屏执行截屏操作,得到包括整个显示屏的内容的第一截图,然后,截图装置可以识别上述目标显示区域在显示屏中所处的位置,并基于目标显示区域在显示屏中所处的位置,确定该目标显示区域在第一截图中 的对应位置,然后,基于上述位置,对第一截图进行图像处理,保留第一截图中目标显示区域对应的截图区域,得到目标截图。
在本申请实施例提供的截图方法中,在显示N(N为大于1的整数)个显示区域的情况下,截图装置接收用户的第一输入,可以从显示的N个显示区域中,确定第一输入对应的目标显示区域,并对该目标显示区域进行截图操作,得到目标截图。通过该方法,截图装置可以在分屏或者分栏显示的状态下,从多个显示区域中截取某个感兴趣的显示区域的内容,而不需要用户对全屏截图进行编辑操作,来得到某个显示区域对应的截图,如此,简化了截图的获取过程,从而节省了用户的操作时间,进而提高了人机交互性能。
可选地,在本申请实施例中,上述第一输入为用户在屏幕上的滑动输入;
示例性地,上述步骤102可以包括如下步骤102a:
步骤102a:截图装置响应于滑动输入,根据滑动输入的滑动轨迹对应的轨迹区域,从上述N个显示区域中,确定目标显示区域。
其中,上述目标显示区域中的至少部分区域与轨迹区域重合。
示例性地,上述滑动输入可以为使用手写笔在屏幕上的滑动输入;
或者,上述滑动输入也可以为多指滑动(如,三指下滑),或者,指关节滑动(如,指关节画圈)。
示例性地,上述滑动轨迹为屏幕上的滑动输入对应的滑动轨迹。
例如,用户在屏幕上滑动时,在屏幕上的A点处落下手指使用手指“S型向下滑动,并在滑动至屏幕上的B点后抬起手指,则上述滑动轨迹为屏幕上A点到B点间的“S”型轨迹。
示例性地,上述轨迹区域可以是在屏幕上的滑动轨迹所围成的封闭区域,或者,上述轨迹区域为,根据滑动轨迹生成的不封闭或半封闭的区域。进一步地,上述轨迹区域可以基于滑动轨迹的起始位置和结束位置确定。
进一步地,截图装置可以记录滑动轨迹的起始位置的坐标和结束位置的坐标,然后,基于上述坐标计算从起始位置到结束位置的区域大小。
例如,用户在屏幕上三指下滑时,用户的食指从屏幕上的A点处向下滑动至A1点,中指从屏幕上的B点处向下滑动至B1点,无名指从屏幕上的C点处向下滑动至C1点, 并且,A点至A1点之间形成的滑动轨迹为轨迹O,B点至B1点之间形成的滑动轨迹为轨迹P,C点至C1点之间形成的滑动轨迹为轨迹Q,则上述滑动区域可以为轨迹O、轨迹Q、A点和C点间的连线,以及A1点和C1点间的连线围成的区域。
再例如,用户在屏幕上使用手写笔滑动时,手写笔在屏幕上的A点落下,圆弧形滑动一段距离后回到A点后抬起,则,上述滑动区域可以为手写笔从A点开始至A点结束的一段滑动轨迹所形成的滑动区域。
示例性地,上述轨迹区域可以位于上述目标显示区域内,或者,上述轨迹区域中的一部分位于上述目标显示区域内。
示例性地,截图装置可以基于轨迹区域所处的位置,确定目标显示区域。例如,在上述N个显示区域为左分栏区域和右分栏区域的情况下,当轨迹区域全部处于左分栏区域时,可以将左分栏区域作为上述目标显示区域。
需要说明的是,由于目标显示区域中的至少部分区域与轨迹区域重合,因此,可以根据屏幕接收到的不同输入,来确定将哪个显示区域作为目标显示区域,从而进行针对性地截图,进而得到满足用户需求的目标截图,提高了操作的灵活性。
进一步可选地,在本申请实施例中,在上述N个显示区域中的多个显示区域的每个显示区域的至少部分区域,与轨迹区域重合的情况下,上述步骤102a中根据滑动输入的滑动轨迹对应的轨迹区域,从上述N个显示区域中,确定目标显示区域的过程,可以包括如下步骤102a1:
步骤102a1:截图装置根据多个显示区域中的每个显示区域与轨迹区域间的重合区域的区域面积,从N个显示区域中,确定目标显示区域。
示例性地,上述重合区域可以为显示区域的至少部分区域和轨迹区域的至少部分区域之间的重合区域。示例性地,上述重合区域的面积可以是截图装置采用面积算法计算得到的。
需要理解的是,上述重合区域可以为显示区域和轨迹区域之间的共同区域。
进一步地,在轨迹区域与多个显示区域存在共同区域的情况下,截图装置可以根据轨迹区域和每个显示区域之间共同区域的面积,确定目标显示区域。
在一种示例中,截图装置可以将多个显示区域中,与轨迹区域的重合面积的区域面积 最大的显示区域,作为目标显示区域。
举例说明,以显示区域包括左分栏区域21和右分栏区域22为例,左分栏区域21和右分栏区域22之间显示有分隔线20。如图2所示,用户在显示屏的滑动输入形成的轨迹区域为图中虚线围成的区域24,区域23和左分栏区域21的重合区域(填充较粗线条的区域)的面积为S1,区域23和中间分栏区域22的重合区域(填充较细线条的区域)的面积为S2,并且,S1大于S2,由于上述重合区域中,区域24和左分栏区域21的重合区域的面积较大,则可以将左分栏区域21作为目标显示区域。
在另一种示例中,截图装置可以将多个显示区域中,与轨迹区域的重合面积的区域面积最小的显示区域,作为目标显示区域。
举例说明,结合上述图2,由于上述重合区域中,区域23和右分栏区域22的重合区域的面积最小,则可以将右分栏区域22作为目标显示区域。
需要注意的是,上述举例示出了两个分栏的情况,在具体的实现中,可以是三个分栏或者更多个分栏,或者多个分屏,或者多个窗口等的情况也同样适用,本申请实施例对此不作任何限定。
可选地,在本申请实施例中,上述第一输入为手写笔在屏幕上的转动输入。
示例性地,截图装置可以根据手写笔的转动方向,确定上述目标显示区域。其中,手写笔的转动方向对应一个显示区域。
示例性地,截图装置可以将手写笔的转动方向对应的显示区域,确定为上述目标区域。
举例说明,在上述N个显示区域为平行世界的左分栏区域和右分栏区域的情况下,当手写笔顺时针转动时,将左分栏区域作为目标显示区域;当手写笔逆时针转动时,将右分栏区域作为目标显示区域。
如此,用户可以通过手写笔的转动方向,触发电子设备截取需求的显示区域的内容,提高了操作的便捷性和灵活性。
可选地,在本申请实施例中,上述步骤101包括如下步骤101a:
步骤101a:截图装置在显示N个控件的情况下,接收用户对目标控件的第一输入。
其中,上述N个控件中每个控件指示一个显示区域。
结合上述步骤101a,上述步骤102可以包括如下步骤102c:
步骤102c:截图装置响应于第一输入,将目标控件对应的显示区域,作为目标显示区域。
示例性地,上述控件可以为任意形状的控件。例如,上述控件可以为功能按钮,用于触发对指定的显示区域的截图操作。
示例性地,截图装置可以在第一界面悬浮或者以预设透明度显示上述控件,该第一界面包括以下任一项:电子设备的桌面、下拉通知页面,上述N个显示区域所在的界面,应用界面,系统设置界面等,上述第一界面可以根据实际需要灵活设定,本申请实施例对此不做任何限定。
示例性地,上述每个控件对应一个显示区域,用于触发对该显示区域的截图操作。进一步地,每个控件对应的显示界面可以为预设的,用户也可以根据实际需求,自定义每个控件对应的显示界面。
示例性地,上述每个控件可以是电子设备根据显示区域的数量自动生成的,也可以由用户根据实际需求增加或者减少控件的数量。例如,在平行世界场景下,电子设备可以自动识别当前包括的显示区域,并根据显示区域的数量,生成相应数量的控件。
举例说明,以N个显示区域为左分栏区域和右分栏区域,N个控件为功能按钮为例。如图3中的(a)所示,显示屏中包括左分栏区域31和右分栏区域32,用户从下拉电子设备的控制中心面板,如图3中的(b)所示,该控制中心面板33中显示有与左分栏区域31对应的功能按钮31a,以及,与右分栏区域32对应的功能按钮32a,用户在点击功能按钮31a后,截图装置可以对该功能按钮31a对应的左分栏区域31作为目标显示区域,并执行截图操作,得到仅包含该显示区域的内容的截图。
如此,截图装置可以生成并显示每个显示区域对应的功能按钮,使得用户可以通过功能按钮便捷地触发对自身需求的区域进行截图,提高操作的灵活性和便捷性。
可选地,在本申请实施例中,上述步骤103可以包括如下步骤103a和步骤103b:
步骤103a:截图装置对目标显示区域中显示的内容进行M次截图操作,得到M个第一截图。
其中,上述目标显示区域中的显示内容每更新一次,执行一次上述截图操作。
步骤103b:截图装置对上述M个第一截图进行拼接合并,得到目标截图。
其中,上述目标截图包括:每个第一截图中的至少部分图像内容,且目标截图中不包括重复的图像内容,M为正整数。
示例性地,上述目标显示区域中的显示内容可以是电子设备自动更新,或者,用户触发电子设备进行更新。
在一种实现方式中,在上述目标显示区域显示第一内容的情况下,电子设备可以目标显示区域执行截图操作,得到第一个第一截图,在得到第一截图之后,电子设备可以自动控制目标显示区域的页面(或者界面)向上滑动预定距离(如,200px),并在上滑后对目标显示区域截图,得到第二个第二截图。若用户未触发停止截图,则继续上滑并对目标显示区域截图。
在另一种实现方式中,在上述目标显示区域显示第一内容的情况下,电子设备可以目标显示区域执行截图操作,得到第一个第一截图,在用户向上滑动页面一定距离(如,200px)后,继续对目标显示区域截图,得到第二个第二截图。
示例性地,在得到上述M个第一截图的情况下,截图装置可以对上述M个第一截图进行图像拼接或者图像融合,得到包括目标显示区域的多个(或者,多个不同)内容的目标截图。
进一步地,在上述第一截图中包括重复图像内容的情况下,截图装置可以采用图像对比技术识别第一截图中的重叠部分,并进行裁剪和拼接形成区域性的长截图。
如此,截图装置可以对目标显示区域的内容进行自动更新,并对更新前后的目标显示区域进行截图,以及将得到的多个截图拼接形成包含该区域对应的内容的长截图。使得用户通过一个触发输入,便可以得到包含该目标区域已显示和当前未显示的内容的长截图,提高操作的灵活地和便捷性。
需要说明的是,本申请实施例提供的截图方法,执行主体可以为截图装置,或者该截图装置中的用于执行截图方法的控制模块。本申请实施例中以截图装置执行截图方法为例,说明本申请实施例提供的截图装置。
本申请实施例提供一种控制装置,如图4所示,该控制装置600包括:接收模块601,确定模块602和执行模块603;
其中,上述接收模块601,用于在目标界面包括N个显示区域的情况下,接收用户的 第一输入;上述确定模块602,用于响应于接收模块601接收的第一输入,从上述N个显示区域中,确定第一输入对应的目标显示区域;上述执行模块603,用于对上述确定模块602确定的目标显示区域进行截图操作,得到目标截图;其中,N为大于1的整数。
可选地,在本申请实施例中,上述第一输入为用户在屏幕上的滑动输入;上述确定模块602,具体用于响应于上述滑动输入,根据上述滑动输入的滑动轨迹对应的轨迹区域,从上述N个显示区域中,确定目标显示区域;其中,上述目标显示区域中的至少部分区域与上述轨迹区域重合。
可选地,在本申请实施例中,在上述N个显示区域中的多个显示区域的每个显示区域的至少部分区域与上述轨迹区域重合的情况下,上述确定模块602,具体用于根据上述多个显示区域中的每个显示区域与上述轨迹区域间的重合区域的区域面积,从N个显示区域中,确定目标显示区域。
可选地,在本申请实施例中,上述接收模块601,具体用于在显示N个控件的情况下,接收用户对目标控件的第一输入;每个控件指示一个上述显示区域;上述确定模块602,具体用于响应于上述接收模块601接收的上述第一输入,将上述目标控件对应的显示区域,作为目标显示区域。
可选地,在本申请实施例中,上述装置还包括:处理模块604;
上述执行模块603,具体用于对上述目标显示区域中显示的内容进行M次截图操作,得到M个第一截图;上述目标显示区域中的显示内容每更新一次,执行一次上述截图操作;上述处理模块604,用于对上述执行模块603得到的上述M个第一截图进行拼接合并,得到目标截图。
在本申请实施例提供的截图装置中,在目标界面包括N(N为大于1的整数)个显示区域的情况下,截图装置接收用户的第一输入,可以从显示的N个显示区域中,确定第一输入对应的目标显示区域,并对该目标显示区域进行截图操作,得到目标截图。通过该方法,截图装置可以在分屏或者分栏显示的状态下,从多个显示区域中截取某个感兴趣的显示区域的内容,而不需要用户对全屏截图进行编辑操作,来得到某个显示区域对应的截图,如此,简化了截图的获取过程,从而节省了用户的操作时间,进而提高了人机交互性能。
本申请实施例中的截图装置可以是装置,也可以是终端中的部件、集成电路、或芯片。 该装置可以是移动电子设备,也可以为非移动电子设备。示例性地,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的截图装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的截图装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图5所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述截图方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,上述用户输入单元107,用于在目标界面包括N个显示区域的情况下,接收用 户的第一输入;上述处理器110,用于响应于用户输入单元107接收的第一输入,从上述N个显示区域中,确定第一输入对应的目标显示区域;上述处理器110,用于对上述确定的目标显示区域进行截图操作,得到目标截图;其中,N为大于1的整数。
可选地,在本申请实施例中,上述第一输入为用户在屏幕上的滑动输入;上述处理器110,具体用于响应于上述滑动输入,根据上述滑动输入的滑动轨迹对应的轨迹区域,从上述N个显示区域中,确定目标显示区域;其中,上述目标显示区域中的至少部分区域与上述轨迹区域重合。
可选地,在本申请实施例中,在上述N个显示区域中的多个显示区域的每个显示区域的至少部分区域与上述轨迹区域重合的情况下,上述处理器110,具体用于根据上述多个显示区域中的每个显示区域与上述轨迹区域间的重合区域的区域面积,从N个显示区域中,确定目标显示区域。
可选地,在本申请实施例中,上述用户输入单元107,具体用于在显示N个控件的情况下,接收用户对目标控件的第一输入;每个控件指示一个上述显示区域;上述处理器110,具体用于响应于上述用户输入单元107接收的上述第一输入,将上述目标控件对应的显示区域,作为目标显示区域。
可选地,在本申请实施例中,上述处理器110,具体用于对上述目标显示区域中显示的内容进行M次截图操作,得到M个第一截图;上述目标显示区域中的显示内容每更新一次,执行一次上述截图操作;上述处理器110,用于对上述得到的上述M个第一截图进行拼接合并,得到目标截图。
在本申请实施例提供的电子设备中,在目标界面包括N(N为大于1的整数)个显示区域的情况下,电子设备接收用户的第一输入,可以从显示的N个显示区域中,确定第一输入对应的目标显示区域,并对该目标显示区域进行截图操作,得到目标截图。通过该方法,电子设备可以在分屏或者分栏显示的状态下,从多个显示区域中截取某个感兴趣的显示区域的内容,而不需要用户对全屏截图进行编辑操作,来得到某个显示区域对应的截图,如此,简化了截图的获取过程,从而节省了用户的操作时间,进而提高了人机交互性能。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中 由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述截图方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述截图方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在非易失的存储介质中,该程序产品被至少一个处理器执行以实现上述截图方法实施例的各个过程,且能达到相同的技术效果。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除 在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种截图方法,所述方法包括:
    在目标界面包括N个显示区域的情况下,接收用户的第一输入;
    响应于所述第一输入,从所述N个显示区域中,确定所述第一输入对应的目标显示区域;
    对所述目标显示区域进行截图操作,得到目标截图;
    其中,N为大于1的整数。
  2. 根据权利要求1所述的方法,其中,所述第一输入为用户在屏幕上的滑动输入;
    所述响应于所述第一输入,从所述N个显示区域中,确定所述第一输入对应的目标显示区域,包括:
    响应于所述滑动输入,根据所述滑动输入的滑动轨迹对应的轨迹区域,从所述N个显示区域中,确定所述目标显示区域;
    其中,所述目标显示区域中的至少部分区域与所述轨迹区域重合。
  3. 根据权利要求2所述的方法,其中,在所述N个显示区域中的多个显示区域的每个显示区域的至少部分区域,与所述轨迹区域重合的情况下,
    所述根据所述滑动输入的滑动轨迹的轨迹区域,从所述N个显示区域中,确定目标显示区域,包括:
    根据所述多个显示区域中的每个显示区域与所述轨迹区域间的重合区域的区域面积,从N个显示区域中,确定目标显示区域。
  4. 根据权利要求1所述的方法,其中,所述接收用户的第一输入,包括:
    在显示N个控件的情况下,接收用户对目标控件的第一输入;所述N个控件中每个控件指示一个所述显示区域;
    所述响应于所述第一输入,从所述N个显示区域中,确定所述第一输入对应的目标显示区域,包括:
    响应于所述第一输入,将所述目标控件对应的显示区域,作为目标显示区域。
  5. 根据权利要求1所述的方法,其中,所述对所述目标显示区域进行截图操作,得到目标截图,包括:
    对所述目标显示区域中显示的内容进行M次截图操作,得到M个第一截图;所述目标显示区域中的显示内容每更新一次,执行一次所述截图操作;
    对所述M个第一截图进行拼接合并,得到目标截图。
  6. 一种截图装置,所述装置包括:接收模块,确定模块和执行模块;
    所述接收模块,用于在目标界面包括N个显示区域的情况下,接收用户的第一输入;
    所述确定模块,用于响应于所述接收模块接收的所述第一输入,从所述N个显示区域中,确定所述第一输入对应的目标显示区域;
    所述执行模块,用于对所述确定模块确定的所述目标显示区域进行截图操作,得到目标截图;
    其中,N为大于1的整数。
  7. 根据权利要求1所述的装置,其中,所述第一输入为用户在屏幕上的滑动输入;
    所述确定模块,具体用于响应于所述滑动输入,根据所述滑动输入的滑动轨迹对应的轨迹区域,从所述N个显示区域中,确定所述目标显示区域;
    其中,所述目标显示区域中的至少部分区域与所述轨迹区域重合。
  8. 根据权利要求7所述的装置,其中,在所述N个显示区域中的多个显示区域的每个显示区域的至少部分区域与所述轨迹区域重合的情况下,
    所述确定模块,具体用于根据所述多个显示区域中的每个显示区域与所述轨迹区域间的重合区域的区域面积,从N个显示区域中,确定目标显示区域。
  9. 根据权利要求6所述的装置,其中,
    所述接收模块,具体用于在显示N个控件的情况下,接收用户对目标控件的第一输入;所述N个控件中每个控件指示一个所述显示区域;
    所述确定模块,具体用于响应于所述接收模块接收的所述第一输入,将所述目标控件对应的显示区域,作为目标显示区域。
  10. 根据权利要求6所述的装置,其中,所述装置还包括:处理模块;
    所述执行模块,具体用于对所述目标显示区域中显示的内容进行M次截图操作,得到M个第一截图;所述目标显示区域中的显示内容每更新一次,执行一次所述截图 操作;
    所述处理模块,用于对所述执行模块得到的所述M个第一截图进行拼接合并,得到目标截图。
  11. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的截图方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的截图方法的步骤。
  13. 一种截图装置,包括所述装置被配置成用于执行如权利要求1至5中任一项所述的截图方法。
  14. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至5任一项所述的截图方法。
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的截图方法。
PCT/CN2022/115807 2021-08-31 2022-08-30 截图方法、装置及电子设备 WO2023030307A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111015358.8A CN113778279A (zh) 2021-08-31 2021-08-31 截图方法、装置及电子设备
CN202111015358.8 2021-08-31

Publications (1)

Publication Number Publication Date
WO2023030307A1 true WO2023030307A1 (zh) 2023-03-09

Family

ID=78840356

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/115807 WO2023030307A1 (zh) 2021-08-31 2022-08-30 截图方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN113778279A (zh)
WO (1) WO2023030307A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778279A (zh) * 2021-08-31 2021-12-10 维沃移动通信有限公司 截图方法、装置及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017162120A (ja) * 2016-03-08 2017-09-14 三菱電機株式会社 情報処理装置、情報処理方法及び情報処理プログラム
CN110737386A (zh) * 2019-09-06 2020-01-31 华为技术有限公司 一种屏幕截取方法及相关设备
CN111143013A (zh) * 2019-12-30 2020-05-12 维沃移动通信有限公司 截图方法及电子设备
CN112527176A (zh) * 2020-12-02 2021-03-19 维沃移动通信有限公司 截屏方法及截屏装置
CN112783406A (zh) * 2021-01-26 2021-05-11 维沃移动通信有限公司 操作执行方法、装置和电子设备
CN113778279A (zh) * 2021-08-31 2021-12-10 维沃移动通信有限公司 截图方法、装置及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017162120A (ja) * 2016-03-08 2017-09-14 三菱電機株式会社 情報処理装置、情報処理方法及び情報処理プログラム
CN110737386A (zh) * 2019-09-06 2020-01-31 华为技术有限公司 一种屏幕截取方法及相关设备
CN111143013A (zh) * 2019-12-30 2020-05-12 维沃移动通信有限公司 截图方法及电子设备
CN112527176A (zh) * 2020-12-02 2021-03-19 维沃移动通信有限公司 截屏方法及截屏装置
CN112783406A (zh) * 2021-01-26 2021-05-11 维沃移动通信有限公司 操作执行方法、装置和电子设备
CN113778279A (zh) * 2021-08-31 2021-12-10 维沃移动通信有限公司 截图方法、装置及电子设备

Also Published As

Publication number Publication date
CN113778279A (zh) 2021-12-10

Similar Documents

Publication Publication Date Title
WO2022068773A1 (zh) 桌面元素调整方法、装置和电子设备
CN110837329B (zh) 用于管理用户界面的方法和电子设备
TWI616803B (zh) 螢幕畫面的縮放及操作方法、裝置與電腦程式產品
WO2022161432A1 (zh) 显示控制方法、装置、电子设备及介质
WO2023125425A1 (zh) 一种显示方法、装置和电子设备
WO2023005920A1 (zh) 分屏方法、装置及电子设备
WO2023061280A1 (zh) 应用程序显示方法、装置及电子设备
WO2022199454A1 (zh) 显示方法和电子设备
WO2023005828A1 (zh) 消息显示方法、装置和电子设备
WO2023056977A1 (zh) 应用程序启动方法, 装置及电子设备
WO2024037418A1 (zh) 显示方法、装置、电子设备及可读存储介质
WO2023045927A1 (zh) 对象移动方法和电子设备
WO2023016463A1 (zh) 显示控制方法、装置、电子设备和介质
WO2023025121A1 (zh) 显示方法、装置、电子设备及可读存储介质
WO2023030115A1 (zh) 界面显示方法和装置
WO2023030114A1 (zh) 界面显示方法和装置
CN112148167A (zh) 控件设置方法、装置和电子设备
WO2022242542A1 (zh) 应用图标的管理方法和电子设备
WO2022242515A1 (zh) 界面显示方法及装置
WO2023030307A1 (zh) 截图方法、装置及电子设备
WO2022068721A1 (zh) 截屏方法、装置及电子设备
US20130127745A1 (en) Method for Multiple Touch Control Virtual Objects and System thereof
WO2022068725A1 (zh) 导航手势的设置方法及装置、电子设备
WO2021254377A1 (zh) 应用图标显示方法、装置和电子设备
CN112817555B (zh) 音量控制方法及音量控制装置

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: 22863442

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE