WO2020052374A1 - Screenshot method and device - Google Patents

Screenshot method and device Download PDF

Info

Publication number
WO2020052374A1
WO2020052374A1 PCT/CN2019/099191 CN2019099191W WO2020052374A1 WO 2020052374 A1 WO2020052374 A1 WO 2020052374A1 CN 2019099191 W CN2019099191 W CN 2019099191W WO 2020052374 A1 WO2020052374 A1 WO 2020052374A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
down sliding
control
display area
screenshot
Prior art date
Application number
PCT/CN2019/099191
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 WO2020052374A1 publication Critical patent/WO2020052374A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images

Definitions

  • the present invention relates to the technical field of image processing, and in particular, to a method and a device for taking screenshots.
  • this application provides a screenshot method, including:
  • the preset position is a position where the up-down sliding control cannot slide
  • the sliding up and down control corresponding to the up and down sliding display area to slide to a preset position, and capturing a second image updated in the up and down sliding display area under the control of the up and down sliding control area include:
  • the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value
  • the sliding up and down control corresponding to the up and down sliding display area to slide to a preset position, and capturing a second image updated in the up and down sliding display area under the control of the up and down sliding control area include:
  • the first image is an image displayed in the up-down sliding display area.
  • the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-slide display area of the display interface.
  • the stitching the first image and the second image to determine a screenshot requested by the user includes:
  • this application provides a screenshot device, including:
  • a receiving module which receives a screenshot request input by a user
  • a screenshot module for taking a screenshot of the current display interface to determine a first image
  • a processing module that controls the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and captures a second image updated in the up-down sliding display area under the control of the up-down sliding control;
  • the stitching module stitches the first image and the second image to generate a screenshot of the screenshot request.
  • the preset position is a position where the up-down sliding control cannot slide
  • the processing module is specifically configured to control the up and down sliding control to slide from a starting position to the preset position;
  • the screenshot module is specifically configured to: when the up-down sliding control cannot slide, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
  • the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value
  • the processing module is specifically configured to control the up and down sliding control to slide from a starting position to the preset position;
  • the screenshot module is specifically configured to: when the sliding distance of the up-down sliding control is equal to the preset value, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
  • the first image is an image displayed in the up-down sliding display area.
  • the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-slide display area of the display interface.
  • the splicing module is specifically configured to:
  • the present application provides a terminal device including at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, causes all the The processing unit performs the steps of any one of the methods described above.
  • the present application provides a computer-readable storage medium that stores a computer program executable by a terminal device, and when the program runs on the terminal device, causes the terminal device to execute any of the foregoing The method steps are described.
  • a screenshot is taken of a current display interface to determine a first image.
  • the up and down slide control is controlled to slide to update the image in the up and down slide display area, and then the up and down slide display area is intercepted.
  • the updated image and the first image are stitched together to output a screenshot, which can take screenshots of multiple areas sliding up and down to meet the user's needs for taking screenshots of long screens.
  • FIG. 1 is a schematic flowchart of a screenshot method according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a first image according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a first image according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a second image according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a second image according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a first image according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a second image according to an embodiment of the present application.
  • FIG. 8a is a schematic flowchart of a screenshot method according to an embodiment of the present application.
  • FIG. 8b is a schematic diagram of coordinates of an up-down sliding control provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a screenshot device according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the technical solutions in the embodiments of the present application are applicable to screenshots of terminal devices.
  • the terminal devices include, but are not limited to, mobile phones, tablet computers, and portable computers.
  • FIG. 1 exemplarily shows a flow of a screenshot method provided in an embodiment of the present application.
  • the flow of the method may be executed by a screenshot device, as shown in FIG. 1, and includes the following steps:
  • Step S101 Receive a screenshot request input by a user.
  • a shortcut combination key corresponding to the screenshot is set in advance, for example, the shutdown key and the volume key are simultaneously pressed.
  • the shortcut combination key When the user presses the shortcut combination key, a screenshot request input by the user is received.
  • a screenshot icon is set in the display page in advance, and when the user clicks the screenshot icon on the display page, a screenshot request input by the user is received.
  • step S102 a screenshot is taken of the current display interface to determine a first image.
  • the first image is an image displayed in a sliding up-down display area.
  • the captured first image is an area in the address book that can be slid up and down.
  • the first image includes an image displayed in a sliding display area up and down and an image displayed in a non-sliding display area in a display interface.
  • the first image captured is the entire display interface, including the top and bottom in the address book. Slidable areas and areas where the top and bottom of the display interface cannot slide.
  • determining that the sliding display area in the current display interface includes at least the following implementation manners:
  • the setting area of the current display interface is determined as a sliding display area.
  • the current display interface includes a plurality of up and down sliding controls, each of which corresponds to an area, and the area with the largest area among the areas corresponding to the respective up and down sliding controls in the current display interface is determined as the up and down sliding display area .
  • the area where the user interacts with the user in the current display interface is determined as a sliding display area.
  • the current display interface includes a plurality of up and down sliding controls, and each of the up and down sliding controls controls a corresponding area.
  • the shortcut combination key of the screenshot the area touched by the finger for the last time is determined as the up and down sliding area.
  • a sliding display area is determined from the current display interface according to the screenshot request.
  • the current display interface includes a first up-down sliding control and a second up-down sliding control, and each up-down sliding control controls a corresponding area, namely a first area and a second area, respectively.
  • the first area is determined as a slide up and down display area
  • the second area is determined as a slide up and down display area.
  • step S103 the up-down slide control corresponding to the up-down slide display area is controlled to slide to a preset position, and a second image updated by the up-down slide display area under the control of the up-down slide control is captured.
  • the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value, and the preset value may be set according to an actual situation.
  • the slide control is controlled to slide from the starting position to the preset position, and when the sliding distance of the slide control is equal to the preset value, the second image updated in the slide display area under the control of the slide control is captured.
  • the foregoing steps may be repeatedly performed to capture multiple second images.
  • the preset value is set to a value that causes all the images in the slide display area to be updated. Invoke the up and down sliding control to slide up and down, then the starting position of the up and down sliding control is the lowermost side of the up and down sliding display area, and the preset position of the up and down sliding control is the uppermost side of the up and down sliding display area.
  • the image is shown in Figure 2.
  • the up-down sliding control is slided from the bottom of the up-down sliding display area to the top of the up-down sliding display area, the images displayed in the up-down sliding display area are all updated images.
  • the up-down sliding display area is directly intercepted. The second image currently displayed in. When multiple second images need to be captured, the up and down sliding control can be called again to slide down from up to capture the updated second image.
  • the preset value is set to make the up-down sliding display area update half the screen value, and the up-down sliding control is set to slide from bottom to up. Then the starting position of the up-down sliding control is the lowermost side of the up-down sliding display area.
  • the preset position of the sliding control is the middle position of the up-down sliding display area.
  • the image currently displayed in the up-down sliding display area is shown in FIG. 2.
  • the image displayed in the up-down sliding display area is composed of half of the updated image and half of the original image, as shown in FIG. 5, A half of the updated image currently displayed is captured as the second image.
  • the preset value is not limited to the cases shown in the above two examples. In actual applications, the specific value of the preset value can be set as required.
  • the preset position is the position where the up-down sliding control cannot slide, and the up-down sliding control is controlled to slide from the starting position to the preset position.
  • the updated second image is swiped up and down in the display area under the control of the slide control.
  • the up-down sliding control is called to slide from the bottom up, then the starting position of the up-down sliding control is the bottom of the up-down sliding display area, and the up-down sliding control is controlled to slide from the bottom of the up-down sliding display area to the up-down sliding display area.
  • the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value or a position where the up-down sliding control cannot slide, where the preset value is set to make up-down sliding Updated values for all images in the display area. Control the slide control from the starting position to the preset position. When the slide control slides the distance equal to the preset value or the slide control cannot slide, the second updated in the slide display area under the control of the slide control is captured. image.
  • the up-down sliding control is called to slide from the bottom up, then the starting position of the up-down sliding control is the bottom of the up-down sliding display area, and the up-down sliding control is controlled to slide from the bottom of the up-down sliding display area to the up-down sliding display area.
  • the up-down sliding control can be swiped in a fixed step, for example, by sliding 2 pixels at a time, and then determining whether the up-down sliding control slides to a preset position.
  • the up-and-down sliding control can also slide in a random step, which is not specifically limited in this embodiment of the present application.
  • Step S104 stitch the first image and the second image to generate a screenshot of the screenshot request.
  • the first image is an image displayed in a sliding display area
  • the first image and the second image are directly stitched to generate a screenshot requested by the screenshot.
  • the first image when the first image includes an image displayed in an up-down sliding display area and an image displayed in a non-slide display area in a display interface, the image displayed in the up-down sliding display area and a plurality of second images are displayed. The images are stitched to determine a third image. Then, the image displayed in the non-sliding display area in the display interface is stitched with the third image to determine the screenshot requested by the user.
  • the first image is set as shown in FIG. 6, including a vertical sliding display area, a non-sliding display area 1 and a non-sliding display area 2, and the first image is cropped into a vertical sliding display area and a non-sliding display area 1.
  • the first image may also be cropped according to the sliding direction of the up-down sliding control. For example, when the up-down sliding control is slid up, the first image may be cropped between the non-sliding display area 2 and the up-down sliding display area. When the up-down sliding control is slid down, the first image may be cropped from between the non-sliding display area 1 and the up-down sliding display area.
  • the captured second image is shown in FIG. 7.
  • the second image is determined by taking a screenshot of the updated image in FIG. 5. First, the upper and lower sliding display areas in FIG. 6 are stitched with the second image in FIG. 7 to determine a third image, and then the third image is stitched with non-sliding display area 1 and non-sliding display area 2 to determine the user-requested Screenshot.
  • the captured first images and multiple second images are stitched to determine a screenshot requested by the user.
  • the method includes the following steps:
  • step S801 the user invokes the up and down sliding screen capture through the system process A in the application software interface.
  • Step S802 the system finds the process B that is currently at the forefront by transferring to the process management class across processes.
  • step S803 an interface in a display (focus) state is found in the process B.
  • Step S804 traverse from the top display control of the interface from the top to the bottom until the up and down sliding controls are found.
  • step S805 the longitudinal coordinates (y1, y2) of the up and down sliding controls are recorded, and the coordinate system is shown in FIG. 8b.
  • Step S806 the process B finds the layer interval [a, b] where the current display window is located by calling into the window management class across processes.
  • step S807 the process B sends the vertical coordinates (y1, y2) of the slide control up and down, and the layer interval [a, b] where the display window is located to the process A through a broadcast mechanism.
  • step S808 the process A intercepts the entire display interface as the first image by using the broadcasted data.
  • step S809 an upward sliding touch event is simulated and transmitted in the process B, and the touch event is set to correspond to the vertical sliding control sliding by 2 pixels at a time.
  • step S810 it is determined whether the sliding distance d of the up-down sliding control is equal to 4/5 of the height of the up-down sliding area or the up-down sliding control can no longer slide. If yes, go to step S811, otherwise go to step S809.
  • Step S811 the process B sends the vertical coordinate (y1, y2) of the up-down sliding control, the layer interval [a, b] where the display window is located, and the distance d of the up-down sliding control to the process A through a broadcast mechanism.
  • step S812 the process A intercepts the second image P2 in the specified area within the specified layer interval through the broadcasted data.
  • Process A captures a picture in a specified area within a specified layer interval, which can be implemented by calling the system screenshot function.
  • Step S813 stitch the first image and the second image into a whole image and output.
  • the first image is cut into an image P1 and an image Pn based on the coordinate y2, and the images P1 and the second image P2 are spliced, and then spliced with the image Pn to determine a screenshot requested by the user.
  • steps S809 to S812 may be performed again, and then after obtaining a plurality of second images, the first image and the plurality of second images are stitched together.
  • the device 900 includes:
  • the receiving module 901 receives a screenshot request input by a user
  • a screenshot module 902 which takes a screenshot of the current display interface and determines a first image
  • the processing module 903 controls the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and captures a second image updated in the up-down sliding display area under the control of the up-down sliding control;
  • the stitching module 904 stitches the first image and the second image to generate a screenshot of the screenshot request.
  • the preset position is a position where the up-down sliding control cannot slide
  • the processing module 903 is specifically configured to: control the up and down slide control to slide from a starting position to the preset position;
  • the screenshot module 902 is specifically configured to: when the up-down sliding control cannot slide, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
  • the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value
  • the processing module 903 is specifically configured to: control the up and down slide control to slide from a starting position to the preset position;
  • the screenshot module 902 is specifically configured to: when the sliding distance of the up-down sliding control is equal to the preset value, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
  • the first image is an image displayed in the up-down sliding display area.
  • the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-slide display area of the display interface.
  • the splicing module 904 is specifically configured to:
  • the terminal device includes at least one processor 1001 and a memory 1002 connected to the at least one processor.
  • the processor 1001 and the memory 1002 are connected through a bus as an example.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like.
  • the memory 1002 stores instructions that can be executed by at least one processor 1001.
  • the at least one processor 1001 can execute the steps included in the foregoing screenshot method by executing the instructions stored in the memory 1002.
  • the processor 1001 is the control center of the terminal device, and can access various parts of the control device by using various interfaces and lines. By running or executing instructions stored in the memory 1002 and calling data stored in the memory 1002, screenshots are achieved. .
  • the processor 1001 may include one or more processing units, and the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc.
  • the tuning processor mainly handles wireless communication. It can be understood that the modem processor may not be integrated into the processor 1001.
  • the processor 1001 and the memory 1002 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
  • the processor 1001 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate, or a transistor
  • the logic device and discrete hardware components can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application.
  • a general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application may be directly implemented by a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the memory 1002 is a non-volatile computer-readable storage medium and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules.
  • the memory 1002 may include at least one type of storage medium, for example, it may include a flash memory, a hard disk, a multimedia card, a card type memory, a random access memory (RAM), a static random access memory (SRAM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Memory, Disk , CDs and more.
  • the memory 1002 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
  • the memory 1002 in the embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, and is configured to store program instructions and / or data.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program executable by a terminal device, and when the program runs on the terminal device, the steps of the screenshot method are made.
  • the embodiments of the present invention may be provided as a method or a computer program product. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.

Landscapes

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

Abstract

The present application relates to the technical field of image processing and provides a screenshot method and device. The method comprises: performing screenshot on the current display interface upon receiving a screenshot request input by a user, and determining a first image; controlling an up-and-down sliding control corresponding to an up-and-down sliding display area to slide to a preset position, and capturing a second image updated by the up-and-down sliding display area under the control of the up-and-down sliding control; and finally splicing the first image and the second image to generate a screenshot of the screenshot request. Because the first image in the current display interface is captured upon receiving an access request input by the user, and the up-and-down sliding control is controlled to slide to update the image in the up-and-down sliding display area after the first image is captured, and then the image updated in the up-and-down sliding display area is captured and is spliced with the first image to output the screenshot, so that screenshot is performed on multiple up-and-down sliding areas, and the requirement of the user to capture a long screenshot is satisfied.

Description

一种截图方法和装置Screenshot method and device 技术领域Technical field
本发明涉及图像处理技术领域,尤其涉及一种截图方法和装置。The present invention relates to the technical field of image processing, and in particular, to a method and a device for taking screenshots.
背景技术Background technique
在日常使用手机等智能终端设备的过程中,经常会遇到在某些应用界面想要截一张图,但是这一张图超出了屏幕的显示范围,需要向上/下滑动才能看完整,比如手机中联系人界面,而现有的智能终端设备上的截图功能,只能截取当前显示的整屏内容,而不能截取整个长屏的内容。In the daily use of smart terminal devices such as mobile phones, I often encounter that I want to take a picture in some application interfaces, but this picture is beyond the display range of the screen, you need to swipe up / down to see the complete, such as The contact interface in the mobile phone, and the existing screenshot function on the smart terminal device can only capture the entire screen content currently displayed, but not the entire long screen content.
实用新型内容Utility model content
由于现有技术中,智能设备对界面截图时,只能截取当前屏幕显示的界面,而不能满足用户对上下滑动的多个区域一起截屏的需求的问题,本申请提供了一种截图方法和装置。In the prior art, when a smart device takes a screenshot of an interface, it can only intercept the interface displayed on the current screen, but cannot meet the user's need to take screenshots of multiple areas sliding up and down. This application provides a method and device for taking screenshots. .
第一发明,本申请提供了一种截图方法,包括:The first invention, this application provides a screenshot method, including:
接收用户输入的截图请求;Receiving a screenshot request input by a user;
对所述当前显示界面进行截图,确定第一图像;Taking a screenshot of the current display interface to determine a first image;
控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像;Controlling the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and capturing a second image updated in the up-down sliding display area under the control of the up-down sliding control;
将所述第一图像和所述第二图像进行拼接,生成所述截图请求的截图。Stitch the first image and the second image to generate a screenshot of the screenshot request.
可选地,所述预设位置为所述上下滑动控件不能滑动时所处的位置;Optionally, the preset position is a position where the up-down sliding control cannot slide;
所述控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像,包括:The sliding up and down control corresponding to the up and down sliding display area to slide to a preset position, and capturing a second image updated in the up and down sliding display area under the control of the up and down sliding control area include:
控制所述上下滑动控件从所述起始位置向所述预设位置滑动,在所述上下滑动控件不能滑动时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。Controlling the up-down sliding control to slide from the starting position to the preset position, and when the up-down sliding control cannot slide, intercepting the first updated part in the up-down sliding display area under the control of the up-down sliding control Two images.
可选地,所述预设位置为所述上下滑动控件滑动的距离等于预设值时的位置;Optionally, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value;
所述控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像,包括:The sliding up and down control corresponding to the up and down sliding display area to slide to a preset position, and capturing a second image updated in the up and down sliding display area under the control of the up and down sliding control area include:
控制所述上下滑动控件从所述起始位置向所述预设位置滑动,在所述上下滑动控件滑动的距离等于预设值时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。Controlling the up and down sliding control to slide from the starting position to the preset position, and when the distance of the up and down sliding control sliding equals a preset value, intercepting the up and down sliding display under the control of the up and down sliding control The updated second image in the region.
可选地,所述第一图像为所述上下滑动显示区域中显示的图像。Optionally, the first image is an image displayed in the up-down sliding display area.
可选地,所述第一图像包括所述上下滑动显示区域中显示的图像和所述显示界面中非滑动显示区域中显示的图像。Optionally, the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-slide display area of the display interface.
可选地,所述将所述第一图像和所述第二图像进行拼接,确定所述用户请求的截图,包括:Optionally, the stitching the first image and the second image to determine a screenshot requested by the user includes:
将所述上下滑动显示区域中显示的图像与所述第二图像进行拼接,确定第三图像;Stitching an image displayed in the up-down sliding display area with the second image to determine a third image;
将所述显示界面中非滑动显示区域中显示的图像与所述第三图像进行拼接,确定所述用户请求的截图。Stitching an image displayed in a non-sliding display area in the display interface with the third image to determine a screenshot requested by the user.
第二方面,本申请提供了一种截图装置,包括:In a second aspect, this application provides a screenshot device, including:
接收模块,接收用户输入的截图请求;A receiving module, which receives a screenshot request input by a user;
截图模块,对所述当前显示界面进行截图,确定第一图像;A screenshot module for taking a screenshot of the current display interface to determine a first image;
处理模块,控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像;A processing module that controls the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and captures a second image updated in the up-down sliding display area under the control of the up-down sliding control;
拼接模块,将所述第一图像和所述第二图像进行拼接,生成所述截图请求的截图。The stitching module stitches the first image and the second image to generate a screenshot of the screenshot request.
可选地,所述预设位置为所述上下滑动控件不能滑动时所处的位置;Optionally, the preset position is a position where the up-down sliding control cannot slide;
所述处理模块具体用于:控制所述上下滑动控件从起始位置向所述预设位置滑动;The processing module is specifically configured to control the up and down sliding control to slide from a starting position to the preset position;
所述截图模块具体用于:在所述上下滑动控件不能滑动时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。The screenshot module is specifically configured to: when the up-down sliding control cannot slide, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
可选地,所述预设位置为所述上下滑动控件滑动的距离等于预设值时的位置;Optionally, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value;
所述处理模块具体用于:控制所述上下滑动控件从起始位置向所述预设位置滑动;The processing module is specifically configured to control the up and down sliding control to slide from a starting position to the preset position;
所述截图模块具体用于:在所述上下滑动控件滑动的距离等于所述预设值时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。The screenshot module is specifically configured to: when the sliding distance of the up-down sliding control is equal to the preset value, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
可选地,所述第一图像为所述上下滑动显示区域中显示的图像。Optionally, the first image is an image displayed in the up-down sliding display area.
可选地,所述第一图像包括所述上下滑动显示区域中显示的图像和所述显示界面中非滑动显示区域中显示的图像。Optionally, the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-slide display area of the display interface.
可选地,所述拼接模块具体用于:Optionally, the splicing module is specifically configured to:
将所述上下滑动显示区域中显示的图像与所述第二图像进行拼接,确定第三图像;Stitching an image displayed in the up-down sliding display area with the second image to determine a third image;
将所述显示界面中非滑动显示区域中显示的图像与所述第三图像进行拼接,确定所述用户请求的截图。Stitching an image displayed in a non-sliding display area in the display interface with the third image to determine a screenshot requested by the user.
第三方面,本申请提供了一种终端设备,包括至少一个处理单元、以及至少一个存储单元,其中,所述存储单元存储有计算机程序,当所述程序被所述处理单元执行时,使得所述处理单元执行上述任一所述方法的步骤。According to a third aspect, the present application provides a terminal device including at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, causes all the The processing unit performs the steps of any one of the methods described above.
第四方面,本申请提供了一种计算机可读存储介质,其存储有可由终端设备执行的计算机程序,当所述程序在所述终端设备上运行时,使得所述终端设备执行上述任一所述方法的步骤。In a fourth aspect, the present application provides a computer-readable storage medium that stores a computer program executable by a terminal device, and when the program runs on the terminal device, causes the terminal device to execute any of the foregoing The method steps are described.
本申请中,在接收到用户输入的截图请求时,对当前显示界面进行截图,确定第一图像。控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在上下滑动控件的控制下上下滑动显示区域更新的第二图像,最后将第一图像和第二图像进行拼接,生成截图请求的截图。由于在接收到用户输入的接入请求时,不仅截取当前显示界面中的第一图像,而且在截取第一图像后控制上下滑动控件滑动更新上下滑动显示区域中的图像,然后截取上下滑动显示区域中更新的图像与第一图像拼接输出截图,实现对上下滑动的多个区域进行截图,满足用户截取长屏的截图需求。In this application, when a screenshot request input by a user is received, a screenshot is taken of a current display interface to determine a first image. Control the up and down slide control corresponding to the up and down slide display area to slide to the preset position, and capture the second image updated by the up and down slide display area under the control of the up and down slide control, and finally stitch the first and second images to generate a screenshot request Screenshot. Because when receiving the access request input by the user, not only the first image in the current display interface is intercepted, but after the first image is intercepted, the up and down slide control is controlled to slide to update the image in the up and down slide display area, and then the up and down slide display area is intercepted. The updated image and the first image are stitched together to output a screenshot, which can take screenshots of multiple areas sliding up and down to meet the user's needs for taking screenshots of long screens.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present invention more clearly, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. Those of ordinary skill in the art can obtain other drawings according to these drawings without paying creative labor.
图1为本申请实施例提供的一种截图方法的流程示意图;FIG. 1 is a schematic flowchart of a screenshot method according to an embodiment of the present application; FIG.
图2为本申请实施例提供的一种第一图像的示意图;FIG. 2 is a schematic diagram of a first image according to an embodiment of the present application; FIG.
图3为本申请实施例提供的一种第一图像的示意图;FIG. 3 is a schematic diagram of a first image according to an embodiment of the present application; FIG.
图4为本申请实施例提供的一种第二图像的示意图;4 is a schematic diagram of a second image according to an embodiment of the present application;
图5为本申请实施例提供的一种第二图像的示意图;5 is a schematic diagram of a second image according to an embodiment of the present application;
图6为本申请实施例提供的一种第一图像的示意图;FIG. 6 is a schematic diagram of a first image according to an embodiment of the present application; FIG.
图7为本申请实施例提供的一种第二图像的示意图;7 is a schematic diagram of a second image according to an embodiment of the present application;
图8a为本申请实施例提供的一种截图方法的流程示意图;8a is a schematic flowchart of a screenshot method according to an embodiment of the present application;
图8b为本申请实施例提供的上下滑动控件的坐标示意图;FIG. 8b is a schematic diagram of coordinates of an up-down sliding control provided by an embodiment of the present application; FIG.
图9为本申请实施例提供的一种截图装置的结构示意图;9 is a schematic structural diagram of a screenshot device according to an embodiment of the present application;
图10为本申请实施例提供的一种终端设备的结构示意图。FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
具体实施方式detailed description
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and beneficial effects of the present invention clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
本申请实施例中的技术方案适用于终端设备的截图,其中,终端设备包括但不限于手机、平板电脑、便携式计算机。The technical solutions in the embodiments of the present application are applicable to screenshots of terminal devices. The terminal devices include, but are not limited to, mobile phones, tablet computers, and portable computers.
图1示例性示出了本申请实施例提供了一种截图方法的流程,该方法的流程可以由截图装置执行,如图1所示,包括以下步骤:FIG. 1 exemplarily shows a flow of a screenshot method provided in an embodiment of the present application. The flow of the method may be executed by a screenshot device, as shown in FIG. 1, and includes the following steps:
步骤S101,接收用户输入的截图请求。Step S101: Receive a screenshot request input by a user.
在一种可能的实施方式,预先设置截图对应的快捷组合键,比如同时按住关机键和音量键,当用户按住快捷组合键时,接收用户输入的截图请求。In a possible implementation manner, a shortcut combination key corresponding to the screenshot is set in advance, for example, the shutdown key and the volume key are simultaneously pressed. When the user presses the shortcut combination key, a screenshot request input by the user is received.
在一种可能的实施方式,预先在显示页面中设置截图图标,当用户点击显示页面的截图图标,接收用户输入的截图请求。In a possible implementation manner, a screenshot icon is set in the display page in advance, and when the user clicks the screenshot icon on the display page, a screenshot request input by the user is received.
步骤S102,对当前显示界面进行截图,确定第一图像。In step S102, a screenshot is taken of the current display interface to determine a first image.
可选地,第一图像为上下滑动显示区域中显示的图像,示例性地,如图2所示,截取的第一图像为通讯录中上下可滑动的区域。Optionally, the first image is an image displayed in a sliding up-down display area. For example, as shown in FIG. 2, the captured first image is an area in the address book that can be slid up and down.
第一图像包括上下滑动显示区域中显示的图像和显示界面中非滑动显示区域中显示的图像,示例性地,如图3所示,截取的第一图像为整个显示界面,包括通讯录中上下可滑动的区域以及显示界面的顶端和底端不能滑动的区域。The first image includes an image displayed in a sliding display area up and down and an image displayed in a non-sliding display area in a display interface. For example, as shown in FIG. 3, the first image captured is the entire display interface, including the top and bottom in the address book. Slidable areas and areas where the top and bottom of the display interface cannot slide.
具体地,确定当前显示界面中上下滑动显示区域至少包括以下几种实施方式:Specifically, determining that the sliding display area in the current display interface includes at least the following implementation manners:
在一种可能的实施方式,将当前显示界面的设定区域确定为上下滑动显示区域。示例性地,设定当前显示界面中包括多个上下滑动控件,每一个上下滑动控件对应的一个区域,将当前显示界面中各个上下滑动控件对应的区域中面积最大的区域确定为上下滑动显示区域。In a possible implementation manner, the setting area of the current display interface is determined as a sliding display area. By way of example, it is set that the current display interface includes a plurality of up and down sliding controls, each of which corresponds to an area, and the area with the largest area among the areas corresponding to the respective up and down sliding controls in the current display interface is determined as the up and down sliding display area .
在一种可能的实施方式,将当前显示界面中与用户发生交互的区域确定为上下滑动显示区域。示例性地,设定当前显示界面中包括多个上下滑动控件,每一个上下滑动控件控制对应的一个区域,将用户按住截图的快捷组合键之前,手指最后一次触摸的区域确定为上下滑动区域。In a possible implementation manner, the area where the user interacts with the user in the current display interface is determined as a sliding display area. By way of example, it is set that the current display interface includes a plurality of up and down sliding controls, and each of the up and down sliding controls controls a corresponding area. Before the user presses the shortcut combination key of the screenshot, the area touched by the finger for the last time is determined as the up and down sliding area. .
在一种可能的实施方式,根据截图请求从当前显示界面中确定上下滑动显示区域。示例性地,设定当前显示界面中包括第一上下滑动控件和第二上下滑动控件,每一个上下滑动控件控制对应的一个区域,分别为第一区域和第二区域,当用户同时按住关机键和音量增大键 时,将第一区域确定为上下滑动显示区域,当用户同时按住音量减小键和音量增大键时,将第二区域确定为上下滑动显示区域。In a possible implementation manner, a sliding display area is determined from the current display interface according to the screenshot request. Exemplarily, the current display interface includes a first up-down sliding control and a second up-down sliding control, and each up-down sliding control controls a corresponding area, namely a first area and a second area, respectively. When the key and the volume up key are selected, the first area is determined as a slide up and down display area, and when the user presses the volume down key and the volume up key simultaneously, the second area is determined as a slide up and down display area.
步骤S103,控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在上下滑动控件的控制下上下滑动显示区域更新的第二图像。In step S103, the up-down slide control corresponding to the up-down slide display area is controlled to slide to a preset position, and a second image updated by the up-down slide display area under the control of the up-down slide control is captured.
在一种可能的实施方式中,预设位置为上下滑动控件滑动的距离等于预设值时的位置,其中预设值可以根据实际情况设定。控制上下滑动控件从起始位置向预设位置滑动,在上下滑动控件滑动的距离等于预设值时,截取在上下滑动控件的控制下上下滑动显示区域中更新的第二图像。在具体实施中,可以重复执行上述步骤,截取多个第二图像。In a possible implementation manner, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value, and the preset value may be set according to an actual situation. The slide control is controlled to slide from the starting position to the preset position, and when the sliding distance of the slide control is equal to the preset value, the second image updated in the slide display area under the control of the slide control is captured. In a specific implementation, the foregoing steps may be repeatedly performed to capture multiple second images.
示例性地,设定预设值为使得上下滑动显示区域的图像全部更新的值。调用上下滑动控件由下向上滑动,那么上下滑动控件的起始位置为上下滑动显示区域的最下侧,上下滑动控件的预设位置为上下滑动显示区域的最上侧,上下滑动显示区域当前显示的图像如图2所示。当上下滑动控件从上下滑动显示区域的最下侧滑动至上下滑动显示区域的最上侧时,上下滑动显示区域中显示的图像为全部更新的图像,如图4所示,直接截取上下滑动显示区域中当前显示的第二图像。当需要截取多张第二图像时,可以再次调用上下滑动控件由下向上滑动,截取更新的第二图像。Exemplarily, the preset value is set to a value that causes all the images in the slide display area to be updated. Invoke the up and down sliding control to slide up and down, then the starting position of the up and down sliding control is the lowermost side of the up and down sliding display area, and the preset position of the up and down sliding control is the uppermost side of the up and down sliding display area. The image is shown in Figure 2. When the up-down sliding control is slided from the bottom of the up-down sliding display area to the top of the up-down sliding display area, the images displayed in the up-down sliding display area are all updated images. As shown in FIG. 4, the up-down sliding display area is directly intercepted. The second image currently displayed in. When multiple second images need to be captured, the up and down sliding control can be called again to slide down from up to capture the updated second image.
示例性地,设定预设值为使得上下滑动显示区域更新一半画面的值,设定上下滑动控件由下向上滑动,那么上下滑动控件的起始位置为上下滑动显示区域的最下侧,上下滑动控件的预设位置为上下滑动显示区域的中间位置,上下滑动显示区域当前显示的图像如图2所示。当上下滑动控件从上下滑动显示区域的最下侧滑动至上下滑动显示区域的中间位置时,上下滑动显示区域中显示的图像由一半更新的图像和一半原来的图像组成,如图5所示,截取当前显示的一半更新的图像作为第二图像。需要说明的是,预设值并不仅限于上述两个示例所示的情况,在实际应用中,可以根据需要设定预设值的具体取值。Exemplarily, the preset value is set to make the up-down sliding display area update half the screen value, and the up-down sliding control is set to slide from bottom to up. Then the starting position of the up-down sliding control is the lowermost side of the up-down sliding display area. The preset position of the sliding control is the middle position of the up-down sliding display area. The image currently displayed in the up-down sliding display area is shown in FIG. 2. When the up-down sliding control is slided from the bottom of the up-down sliding display area to the middle position of the up-down sliding display area, the image displayed in the up-down sliding display area is composed of half of the updated image and half of the original image, as shown in FIG. 5, A half of the updated image currently displayed is captured as the second image. It should be noted that the preset value is not limited to the cases shown in the above two examples. In actual applications, the specific value of the preset value can be set as required.
在另一种可能的实施方式中,预设位置为上下滑动控件不能滑动时所处的位置,控制上下滑动控件从起始位置向预设位置滑动,在上下滑动控件不能滑动时,截取在上下滑动控件的控制下上下滑动显示区域中更新的第二图像。示例性地,调用上下滑动控件由下向上滑动,那么上下滑动控件的起始位置为上下滑动显示区域的最下侧,控制上下滑动控件从上下滑动显示区域的最下侧滑动至上下滑动显示区域的最上侧的过程中,判断上下滑动控件滑动是否不能滑动,若上下滑动控件不能滑动,则截取上下滑动显示区域中此次调用上下滑动控件时更新的图像作为第二图像。In another possible implementation manner, the preset position is the position where the up-down sliding control cannot slide, and the up-down sliding control is controlled to slide from the starting position to the preset position. The updated second image is swiped up and down in the display area under the control of the slide control. Exemplarily, the up-down sliding control is called to slide from the bottom up, then the starting position of the up-down sliding control is the bottom of the up-down sliding display area, and the up-down sliding control is controlled to slide from the bottom of the up-down sliding display area to the up-down sliding display area. In the uppermost process, it is determined whether the sliding control cannot slide. If the sliding control cannot slide, the image updated when the vertical sliding control is called in the vertical sliding display area is captured as the second image.
在另一种可能的实施方式中,预设位置为上下滑动控件滑动的距离等于预设值时的位置或上下滑动控件不能滑动时所处的位置,其中,设定预设值为使得上下滑动显示区域的图像全部更新的值。控制上下滑动控件从起始位置向预设位置滑动,在上下滑动控件滑动的距离等于预设值或上下滑动控件不能滑动时,截取在上下滑动控件的控制下上下滑动显示区域中更新的第二图像。示例性地,调用上下滑动控件由下向上滑动,那么上下滑动控件的起始位置为上下滑动显示区域的最下侧,控制上下滑动控件从上下滑动显示区域的最下侧滑动至上 下滑动显示区域的最上侧的过程中,判断上下滑动控件滑动的距离是否等于预设值或上下滑动控件是否不能滑动,若上下滑动控件滑动的距离等于预设值,截取上下滑动显示区域中当前显示的第二图像。然后再次调用上下滑动控件由下向上滑动截取第二图像,依次循环,直到截取的第二图像是上下滑动控件不能滑动时截取的图像。In another possible implementation manner, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value or a position where the up-down sliding control cannot slide, where the preset value is set to make up-down sliding Updated values for all images in the display area. Control the slide control from the starting position to the preset position. When the slide control slides the distance equal to the preset value or the slide control cannot slide, the second updated in the slide display area under the control of the slide control is captured. image. Exemplarily, the up-down sliding control is called to slide from the bottom up, then the starting position of the up-down sliding control is the bottom of the up-down sliding display area, and the up-down sliding control is controlled to slide from the bottom of the up-down sliding display area to the up-down sliding display area. In the uppermost process, determine whether the sliding distance of the vertical sliding control is equal to the preset value or whether the vertical sliding control cannot slide. If the sliding distance of the vertical sliding control is equal to the preset value, the second currently displayed in the vertical sliding display area is intercepted. image. Then call the up and down slide control again to capture the second image by sliding down and up, and loop in turn until the captured second image is the image captured when the up and down sliding control cannot slide.
可选地,上下滑动控件可以以固定步长进行滑动,比如,每次滑动2个像素,然后判断上下滑动控件是否滑动至预设位置。上下滑动控件也可以以随机步长进行滑动,对此本申请实施例不做具体限定。Optionally, the up-down sliding control can be swiped in a fixed step, for example, by sliding 2 pixels at a time, and then determining whether the up-down sliding control slides to a preset position. The up-and-down sliding control can also slide in a random step, which is not specifically limited in this embodiment of the present application.
步骤S104,将第一图像和第二图像进行拼接,生成截图请求的截图。Step S104: stitch the first image and the second image to generate a screenshot of the screenshot request.
在一种可能的实施方式中,第一图像为上下滑动显示区域中显示的图像,则将第一图像和第二图像直接拼接,生成截图请求的截图。In a possible implementation manner, if the first image is an image displayed in a sliding display area, the first image and the second image are directly stitched to generate a screenshot requested by the screenshot.
在一种可能的实施方式中,第一图像包括上下滑动显示区域中显示的图像和显示界面中非滑动显示区域中显示的图像时,则将上下滑动显示区域中显示的图像与多个第二图像进行拼接,确定第三图像。然后将显示界面中非滑动显示区域中显示的图像与第三图像进行拼接,确定用户请求的截图。示例性地,设定第一图像如图6所示,包括上下滑动显示区域、非滑动显示区域1和非滑动显示区域2,将第一图像中裁剪为上下滑动显示区域、非滑动显示区域1和非滑动显示区域2三部分。需要说明的是,也可以根据上下滑动控件滑动的方向对第一图像进行裁剪,比如当上下滑动控件向上滑动时,可以从非滑动显示区域2与上下滑动显示区域之间裁剪第一图像。当上下滑动控件向下滑动时,可以从非滑动显示区域1与上下滑动显示区域之间裁剪第一图像。设定截取的第二图像如图7所示,第二图像是通过对图5中更新的图像进行截图后确定的。首先将图6中的上下滑动显示区域与图7中的第二图像进行拼接,确定第三图像,然后再将第三图像与非滑动显示区域1和非滑动显示区域2拼接,确定用户请求的截图。In a possible implementation manner, when the first image includes an image displayed in an up-down sliding display area and an image displayed in a non-slide display area in a display interface, the image displayed in the up-down sliding display area and a plurality of second images are displayed. The images are stitched to determine a third image. Then, the image displayed in the non-sliding display area in the display interface is stitched with the third image to determine the screenshot requested by the user. Exemplarily, the first image is set as shown in FIG. 6, including a vertical sliding display area, a non-sliding display area 1 and a non-sliding display area 2, and the first image is cropped into a vertical sliding display area and a non-sliding display area 1. And non-sliding display area 2 three parts. It should be noted that the first image may also be cropped according to the sliding direction of the up-down sliding control. For example, when the up-down sliding control is slid up, the first image may be cropped between the non-sliding display area 2 and the up-down sliding display area. When the up-down sliding control is slid down, the first image may be cropped from between the non-sliding display area 1 and the up-down sliding display area. The captured second image is shown in FIG. 7. The second image is determined by taking a screenshot of the updated image in FIG. 5. First, the upper and lower sliding display areas in FIG. 6 are stitched with the second image in FIG. 7 to determine a third image, and then the third image is stitched with non-sliding display area 1 and non-sliding display area 2 to determine the user-requested Screenshot.
可选地,当截取的第二图像为多个时,将截取的第一图像和多个第二图像进行拼接,确定用户请求的截图。Optionally, when there are multiple captured second images, the captured first images and multiple second images are stitched to determine a screenshot requested by the user.
为了更好的解释本发明实施例,下面结合具体的实施场景描述本发明实施例提供的一种截图方法,如图8a示,该方法包括以下步骤:In order to better explain the embodiment of the present invention, a screenshot method provided by the embodiment of the present invention is described below with reference to specific implementation scenarios. As shown in FIG. 8a, the method includes the following steps:
步骤S801,用户在应用软件界面通过***进程A调用上下滑动截屏。In step S801, the user invokes the up and down sliding screen capture through the system process A in the application software interface.
步骤S802,***通过跨进程调到进程管理类中,找到当前处于最前端的进程B。Step S802, the system finds the process B that is currently at the forefront by transferring to the process management class across processes.
步骤S803,在进程B中找到处于显示(焦点)状态的界面。In step S803, an interface in a display (focus) state is found in the process B.
步骤S804,从该界面的顶层显示控件开始从上往下遍历,直到找到上下滑动控件为止。Step S804: traverse from the top display control of the interface from the top to the bottom until the up and down sliding controls are found.
步骤S805,记录上下滑动控件的纵向坐标(y1,y2),坐标系如图8b所示。In step S805, the longitudinal coordinates (y1, y2) of the up and down sliding controls are recorded, and the coordinate system is shown in FIG. 8b.
步骤S806,进程B通过跨进程调用到窗口管理类中,找到当前显示窗口所处在的图层区间[a,b]。Step S806, the process B finds the layer interval [a, b] where the current display window is located by calling into the window management class across processes.
步骤S807,进程B将上下滑动控件的纵向坐标(y1,y2)、显示窗口所在的图层区间[a,b]通过广播机制发送给进程A。In step S807, the process B sends the vertical coordinates (y1, y2) of the slide control up and down, and the layer interval [a, b] where the display window is located to the process A through a broadcast mechanism.
步骤S808,进程A通过广播回来的数据截取整个显示界面作为第一图像。In step S808, the process A intercepts the entire display interface as the first image by using the broadcasted data.
步骤S809,在进程B中模拟发送一个向上的滑动触摸事件,设置该触摸事件对应上下滑动控件每次滑动2个像素。In step S809, an upward sliding touch event is simulated and transmitted in the process B, and the touch event is set to correspond to the vertical sliding control sliding by 2 pixels at a time.
步骤S810,判断上下滑动控件滑动的距离d是否等于上下滑动区域的高度的4/5或上下滑动控件滑动不能再滑动,若是,则执行步骤S811,否则执行步骤S809。In step S810, it is determined whether the sliding distance d of the up-down sliding control is equal to 4/5 of the height of the up-down sliding area or the up-down sliding control can no longer slide. If yes, go to step S811, otherwise go to step S809.
步骤S811,进程B将上下滑动控件的纵向坐标(y1,y2)、显示窗口所在的图层区间[a,b]、上下滑动控件滑动的距离d通过广播机制发送给进程A。Step S811, the process B sends the vertical coordinate (y1, y2) of the up-down sliding control, the layer interval [a, b] where the display window is located, and the distance d of the up-down sliding control to the process A through a broadcast mechanism.
步骤S812,进程A通过广播回来的数据截取指定图层区间内,指定区域内的第二图像P2。In step S812, the process A intercepts the second image P2 in the specified area within the specified layer interval through the broadcasted data.
进程A截取指定图层区间内指定区域内的图片,可调用***截屏函数实现。Process A captures a picture in a specified area within a specified layer interval, which can be implemented by calling the system screenshot function.
步骤S813,将第一图像和第二图像拼接成一张整图后输出。Step S813: stitch the first image and the second image into a whole image and output.
具体地,将第一图像以坐标y2为基准截成图像P1和图像Pn,将图像P1和第二图像P2拼接后,再与图像Pn拼接,确定用户请求的截图。Specifically, the first image is cut into an image P1 and an image Pn based on the coordinate y2, and the images P1 and the second image P2 are spliced, and then spliced with the image Pn to determine a screenshot requested by the user.
可选地,在执行步骤S813之前,可以再次执行步骤S809至步骤S812,然后得到多个第二图像后,再将第一图像和多个第二图像进行拼接。Optionally, before step S813 is performed, steps S809 to S812 may be performed again, and then after obtaining a plurality of second images, the first image and the plurality of second images are stitched together.
由于在接收用户的长屏截图请求时,先截取当前显示的第一图像,然后控制上下滑动控件向预设方向滑动,当上下滑动控件滑动的距离等于上下滑动区域的高度或者上下互动控件不能滑动时,截取更新的第二图像,然后将第一图像和第二图像进行拼接输出,实现了长屏截图,满足了用户的截屏需求。When receiving a user's long-screen screenshot request, first capture the first image currently displayed, and then control the up and down sliding control to slide in a preset direction. When the up and down sliding control distance is equal to the height of the up and down sliding area or the up and down interactive control cannot slide At this time, the updated second image is captured, and then the first image and the second image are stitched and output to achieve a long-screen screenshot, which meets the user's screen capture needs.
基于相同技术构思,本申请实施例提供了一种截图装置,如图9所示,该装置900包括:Based on the same technical concept, an embodiment of the present application provides a screenshot device. As shown in FIG. 9, the device 900 includes:
接收模块901,接收用户输入的截图请求;The receiving module 901 receives a screenshot request input by a user;
截图模块902,对所述当前显示界面进行截图,确定第一图像;A screenshot module 902, which takes a screenshot of the current display interface and determines a first image;
处理模块903,控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像;The processing module 903 controls the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and captures a second image updated in the up-down sliding display area under the control of the up-down sliding control;
拼接模块904,将所述第一图像和所述第二图像进行拼接,生成所述截图请求的截图。The stitching module 904 stitches the first image and the second image to generate a screenshot of the screenshot request.
可选地,所述预设位置为所述上下滑动控件不能滑动时所处的位置;Optionally, the preset position is a position where the up-down sliding control cannot slide;
所述处理模块903具体用于:控制所述上下滑动控件从起始位置向所述预设位置滑动;The processing module 903 is specifically configured to: control the up and down slide control to slide from a starting position to the preset position;
所述截图模块902具体用于:在所述上下滑动控件不能滑动时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。The screenshot module 902 is specifically configured to: when the up-down sliding control cannot slide, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
可选地,所述预设位置为所述上下滑动控件滑动的距离等于预设值时的位置;Optionally, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value;
所述处理模块903具体用于:控制所述上下滑动控件从起始位置向所述预设位置滑动;The processing module 903 is specifically configured to: control the up and down slide control to slide from a starting position to the preset position;
所述截图模块902具体用于:在所述上下滑动控件滑动的距离等于所述预设值时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。The screenshot module 902 is specifically configured to: when the sliding distance of the up-down sliding control is equal to the preset value, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
可选地,所述第一图像为所述上下滑动显示区域中显示的图像。Optionally, the first image is an image displayed in the up-down sliding display area.
可选地,所述第一图像包括所述上下滑动显示区域中显示的图像和所述显示界面中非滑动显示区域中显示的图像。Optionally, the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-slide display area of the display interface.
可选地,所述拼接模块904具体用于:Optionally, the splicing module 904 is specifically configured to:
将所述上下滑动显示区域中显示的图像与所述第二图像进行拼接,确定第三图像;Stitching an image displayed in the up-down sliding display area with the second image to determine a third image;
将所述显示界面中非滑动显示区域中显示的图像与所述第三图像进行拼接,确定所述用户请求的截图。Stitching an image displayed in a non-sliding display area in the display interface with the third image to determine a screenshot requested by the user.
基于相同的技术构思,本申请实施例提供了一种终端设备,如图10所示,包括至少一个处理器1001,以及与至少一个处理器连接的存储器1002,本申请实施例中不限定处理器1001与存储器1002之间的具体连接介质,图10中处理器1001和存储器1002之间通过总线连接为例。总线可以分为地址总线、数据总线、控制总线等。Based on the same technical concept, an embodiment of the present application provides a terminal device. As shown in FIG. 10, the terminal device includes at least one processor 1001 and a memory 1002 connected to the at least one processor. A specific connection medium between 1001 and the memory 1002. In FIG. 10, the processor 1001 and the memory 1002 are connected through a bus as an example. The bus can be divided into an address bus, a data bus, a control bus, and the like.
在本申请实施例中,存储器1002存储有可被至少一个处理器1001执行的指令,至少一个处理器1001通过执行存储器1002存储的指令,可以执行前述的截图方法中所包括的步骤。In the embodiment of the present application, the memory 1002 stores instructions that can be executed by at least one processor 1001. The at least one processor 1001 can execute the steps included in the foregoing screenshot method by executing the instructions stored in the memory 1002.
其中,处理器1001是终端设备的控制中心,可以利用各种接口和线路连接访问控制设备的各个部分,通过运行或执行存储在存储器1002内的指令以及调用存储在存储器1002内的数据,实现截图。可选的,处理器1001可包括一个或多个处理单元,处理器1001可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1001中。在一些实施例中,处理器1001和存储器1002可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 1001 is the control center of the terminal device, and can access various parts of the control device by using various interfaces and lines. By running or executing instructions stored in the memory 1002 and calling data stored in the memory 1002, screenshots are achieved. . Optionally, the processor 1001 may include one or more processing units, and the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc. The tuning processor mainly handles wireless communication. It can be understood that the modem processor may not be integrated into the processor 1001. In some embodiments, the processor 1001 and the memory 1002 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
处理器1001可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The processor 1001 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate, or a transistor The logic device and discrete hardware components can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application may be directly implemented by a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
存储器1002作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器1002可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random Access Memory,RAM)、 静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器1002是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器1002还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。The memory 1002 is a non-volatile computer-readable storage medium and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. The memory 1002 may include at least one type of storage medium, for example, it may include a flash memory, a hard disk, a multimedia card, a card type memory, a random access memory (RAM), a static random access memory (SRAM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Memory, Disk , CDs and more. The memory 1002 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1002 in the embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, and is configured to store program instructions and / or data.
基于同一发明构思,本申请实施例提供了一种计算机可读存储介质,其存储有可由终端设备执行的计算机程序,当所述程序在终端设备上运行时,使得所述截图方法的步骤。Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium that stores a computer program executable by a terminal device, and when the program runs on the terminal device, the steps of the screenshot method are made.
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as a method or a computer program product. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate instructions Means for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art can make other changes and modifications to these embodiments once they know the basic inventive concepts. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (14)

  1. 一种截图方法,其特征在于,包括:A screenshot method, comprising:
    接收用户输入的截图请求;Receiving a screenshot request input by a user;
    对所述当前显示界面进行截图,确定第一图像;Taking a screenshot of the current display interface to determine a first image;
    控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像;Controlling the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and capturing a second image updated in the up-down sliding display area under the control of the up-down sliding control;
    将所述第一图像和所述第二图像进行拼接,生成所述截图请求的截图。Stitch the first image and the second image to generate a screenshot of the screenshot request.
  2. 如权利要求1所述的方法,其特征在于,所述预设位置为所述上下滑动控件不能滑动时所处的位置;The method according to claim 1, wherein the preset position is a position where the up-down sliding control cannot slide;
    所述控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像,包括:The sliding up and down control corresponding to the up and down sliding display area to slide to a preset position, and capturing a second image updated in the up and down sliding display area under the control of the up and down sliding control area include:
    控制所述上下滑动控件从所述起始位置向所述预设位置滑动,在所述上下滑动控件不能滑动时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。Controlling the up-down sliding control to slide from the starting position to the preset position, and when the up-down sliding control cannot slide, intercepting the first updated part in the up-down sliding display area under the control of the up-down sliding control Two images.
  3. 如权利要求1所述的方法,其特征在于,所述预设位置为所述上下滑动控件滑动的距离等于预设值时的位置;The method according to claim 1, wherein the preset position is a position where the sliding distance of the up-down sliding control is equal to a preset value;
    所述控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像,包括:The sliding up and down control corresponding to the up and down sliding display area to slide to a preset position, and capturing a second image updated in the up and down sliding display area under the control of the up and down sliding control area include:
    控制所述上下滑动控件从所述起始位置向所述预设位置滑动,在所述上下滑动控件滑动的距离等于预设值时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。Controlling the up and down sliding control to slide from the starting position to the preset position, and when the distance of the up and down sliding control sliding equals a preset value, intercepting the up and down sliding display under the control of the up and down sliding control The updated second image in the region.
  4. 如权利要求1所述的方法,其特征在于,所述第一图像为所述上下滑动显示区域中显示的图像。The method according to claim 1, wherein the first image is an image displayed in the up-down sliding display area.
  5. 如权利要求1所述的方法,其特征在于,所述第一图像包括所述上下滑动显示区域中显示的图像和所述显示界面中非滑动显示区域中显示的图像。The method according to claim 1, wherein the first image comprises an image displayed in the up-down sliding display area and an image displayed in a non-slide display area of the display interface.
  6. 如权利要求5所述的方法,其特征在于,所述将所述第一图像和所述第二图像进行拼接,确定所述用户请求的截图,包括:The method according to claim 5, wherein the stitching the first image and the second image to determine a screenshot requested by the user comprises:
    将所述上下滑动显示区域中显示的图像与所述第二图像进行拼接,确定第三图像;Stitching an image displayed in the up-down sliding display area with the second image to determine a third image;
    将所述显示界面中非滑动显示区域中显示的图像与所述第三图像进行拼接,确定所述用户请求的截图。Stitching an image displayed in a non-sliding display area in the display interface with the third image to determine a screenshot requested by the user.
  7. 一种截图装置,其特征在于,包括:A screenshot device, comprising:
    接收模块,接收用户输入的截图请求;A receiving module, which receives a screenshot request input by a user;
    截图模块,对所述当前显示界面进行截图,确定第一图像;A screenshot module for taking a screenshot of the current display interface to determine a first image;
    处理模块,控制上下滑动显示区域对应的上下滑动控件滑动至预设位置,并截取在所述上下滑动控件的控制下所述上下滑动显示区域更新的第二图像;A processing module that controls the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and captures a second image updated in the up-down sliding display area under the control of the up-down sliding control;
    拼接模块,将所述第一图像和所述第二图像进行拼接,生成所述截图请求的截图。The stitching module stitches the first image and the second image to generate a screenshot of the screenshot request.
  8. 如权利要求7所述的装置,其特征在于,所述预设位置为所述上下滑动控件不能滑动时所处的位置;The device according to claim 7, wherein the preset position is a position where the up-down sliding control cannot slide;
    所述处理模块具体用于:控制所述上下滑动控件从起始位置向所述预设位置滑动;The processing module is specifically configured to control the up and down sliding control to slide from a starting position to the preset position;
    所述截图模块具体用于:在所述上下滑动控件不能滑动时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。The screenshot module is specifically configured to: when the up-down sliding control cannot slide, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
  9. 如权利要求7所述的装置,其特征在于,所述预设位置为所述上下滑动控件滑动的距离等于预设值时的位置;The device according to claim 7, wherein the preset position is a position where the sliding distance of the up-down sliding control is equal to a preset value;
    所述处理模块具体用于:控制所述上下滑动控件从起始位置向所述预设位置滑动;The processing module is specifically configured to control the up and down sliding control to slide from a starting position to the preset position;
    所述截图模块具体用于:在所述上下滑动控件滑动的距离等于所述预设值时,截取在所述上下滑动控件的控制下所述上下滑动显示区域中更新的第二图像。The screenshot module is specifically configured to: when the sliding distance of the up-down sliding control is equal to the preset value, capture a second image updated in the up-down sliding display area under the control of the up-down sliding control.
  10. 如权利要求7所述的装置,其特征在于,所述第一图像为所述上下滑动显示区域中显示的图像。The device according to claim 7, wherein the first image is an image displayed in the vertical slide display area.
  11. 如权利要求7所述的装置,其特征在于,所述第一图像包括所述上下滑动显示区域中显示的图像和所述显示界面中非滑动显示区域中显示的图像。The device according to claim 7, wherein the first image comprises an image displayed in the up-down sliding display area and an image displayed in a non-slide display area of the display interface.
  12. 如权利要求11所述的装置,其特征在于,所述拼接模块具体用于:The device according to claim 11, wherein the splicing module is specifically configured to:
    将所述上下滑动显示区域中显示的图像与所述第二图像进行拼接,确定第三图像;Stitching an image displayed in the up-down sliding display area with the second image to determine a third image;
    将所述显示界面中非滑动显示区域中显示的图像与所述第三图像进行拼接,确定所述用户请求的截图。Stitching an image displayed in a non-sliding display area in the display interface with the third image to determine a screenshot requested by the user.
  13. 一种终端设备,其特征在于,包括至少一个处理单元、以及至少一个存储单元,其中,所述存储单元存储有计算机程序,当所述程序被所述处理单元执行时,使得所述处理单元执行权利要求1~6任一权利要求所述方法的步骤。A terminal device includes at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, causes the processing unit to execute Steps of the method according to any one of claims 1 to 6.
  14. 一种计算机可读存储介质,其特征在于,其存储有可由终端设备执行的计算机程序,当所述程序在所述终端设备上运行时,使得所述终端设备执行权利要求1~6任一所述方法的步骤。A computer-readable storage medium, characterized in that it stores a computer program executable by a terminal device, and when the program runs on the terminal device, causes the terminal device to execute any one of claims 1 to 6 The method steps are described.
PCT/CN2019/099191 2018-09-10 2019-08-05 Screenshot method and device WO2020052374A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811050285.4A CN110888576A (en) 2018-09-10 2018-09-10 Screenshot method and device
CN201811050285.4 2018-09-10

Publications (1)

Publication Number Publication Date
WO2020052374A1 true WO2020052374A1 (en) 2020-03-19

Family

ID=69744974

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/099191 WO2020052374A1 (en) 2018-09-10 2019-08-05 Screenshot method and device

Country Status (2)

Country Link
CN (1) CN110888576A (en)
WO (1) WO2020052374A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522742A (en) * 2020-04-16 2020-08-11 北京三快在线科技有限公司 Page view generating method and device, computer equipment and storage medium
CN113791722A (en) * 2021-09-13 2021-12-14 统信软件技术有限公司 Screenshot processing method, computing device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060033754A1 (en) * 2004-08-10 2006-02-16 Microsoft Corporation Manipulation and merging of graphic images
CN102681829A (en) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 Screenshot method, device and communication client
CN105094617A (en) * 2015-08-24 2015-11-25 北京锤子数码科技有限公司 Screen capturing method and device
CN105760050A (en) * 2016-02-04 2016-07-13 上海卓易科技股份有限公司 Screen capturing method and device
CN106385550A (en) * 2016-09-06 2017-02-08 青岛海信移动通信技术股份有限公司 Method and terminal for capturing screen image

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615343A (en) * 2013-11-04 2015-05-13 中兴通讯股份有限公司 Terminal printscreen method and device
CN104133683A (en) * 2014-07-31 2014-11-05 上海二三四五网络科技股份有限公司 Screenshot obtaining method and device
CN107967099A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 A kind of method, device and mobile terminal of terminal screenshotss
CN106681610A (en) * 2016-12-23 2017-05-17 珠海市魅族科技有限公司 Screen snapping method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060033754A1 (en) * 2004-08-10 2006-02-16 Microsoft Corporation Manipulation and merging of graphic images
CN102681829A (en) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 Screenshot method, device and communication client
CN105094617A (en) * 2015-08-24 2015-11-25 北京锤子数码科技有限公司 Screen capturing method and device
CN105760050A (en) * 2016-02-04 2016-07-13 上海卓易科技股份有限公司 Screen capturing method and device
CN106385550A (en) * 2016-09-06 2017-02-08 青岛海信移动通信技术股份有限公司 Method and terminal for capturing screen image

Also Published As

Publication number Publication date
CN110888576A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN109164964B (en) Content sharing method and device, terminal and storage medium
US20190073113A1 (en) Method and Terminal for Displaying Notification Message and Non-transitory Computer-readable Storage Medium
EP3091426B1 (en) User terminal device providing user interaction and method therefor
WO2019233306A1 (en) Icon display method, device and terminal
CN105511675B (en) Touch control method, user equipment, input processing method, mobile terminal and intelligent terminal
EP3680764B1 (en) Icon moving method and device
US9405463B2 (en) Device and method for gesturally changing object attributes
CN105190644B (en) Techniques for image-based searching using touch control
US11366582B2 (en) Screenshot capturing method, device, electronic device and computer-readable medium
US20150227308A1 (en) User terminal device and method for displaying thereof
US20180011818A1 (en) Webpage Update Method And Apparatus
US20150227166A1 (en) User terminal device and displaying method thereof
WO2020249044A1 (en) Method for window-level switching, device, equipment, and storage medium
EP3660646A1 (en) Method for displaying multi-task management interface, device, terminal and storage medium
US20200409542A1 (en) Method, apparatus, terminal device, and storage medium for switching global special effects
CN107153546B (en) Video playing method and mobile device
US11507244B2 (en) Window adjustment method, window adjustment device and mobile terminal
CN106815809B (en) Picture processing method and device
US20180152622A1 (en) Mobile terminal-based photographing method and mobile terminal
WO2020052374A1 (en) Screenshot method and device
WO2020052373A1 (en) Screenshot method and device
CN105739817A (en) Icon hiding method and device and mobile terminal
WO2022179249A1 (en) Function page display method and electronic device
CN106713742B (en) Shooting method and mobile terminal
WO2023020541A1 (en) Electronic device and human-computer interaction method

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

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

Country of ref document: EP

Kind code of ref document: A1