WO2017032189A1 - 一种截屏方法及装置 - Google Patents

一种截屏方法及装置 Download PDF

Info

Publication number
WO2017032189A1
WO2017032189A1 PCT/CN2016/090686 CN2016090686W WO2017032189A1 WO 2017032189 A1 WO2017032189 A1 WO 2017032189A1 CN 2016090686 W CN2016090686 W CN 2016090686W WO 2017032189 A1 WO2017032189 A1 WO 2017032189A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen capture
screen
image
picture
scrolling
Prior art date
Application number
PCT/CN2016/090686
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 WO2017032189A1 publication Critical patent/WO2017032189A1/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/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

Definitions

  • the present application relates to the field of electronic device technologies, and in particular, to a screen capture method and device.
  • the screen capture function (referred to as screen capture) is usually used, that is, the current screen content is saved as a picture.
  • the screen capture method described above is capable of taking screenshots of continuous multi-screen content, the operation is cumbersome due to multiple screen captures by the user, and since each screen capture operation generates a file, this will result in multiple files being difficult to save. problem.
  • the purpose of the embodiment of the present invention is to provide a screen capture method and device, which solves the problem that the user operation is cumbersome and multiple files are difficult to save when screen capture of continuous multi-screen content in the prior art.
  • the specific technical solutions are as follows:
  • an embodiment of the present application provides a screen capture method, which is applied to an electronic device, where the method includes:
  • the scrolling screen shot is displayed.
  • the calling is based on the initial screenshot and by calling a predetermined system interface, Generating a scrolling screen image corresponding to the scrolling screen capture instruction, including:
  • the scroll screen shot image corresponding to the scroll screen capture instruction is determined based on the stitched picture generated by the previous screen capture operation.
  • the stitching picture corresponding to the screen capture operation is generated according to the stitched picture generated by the alternate screen capture image and the previous screen capture operation, including:
  • the picture formed by performing the layer flattening operation is determined as the stitched picture corresponding to the screen capture operation.
  • calculating a scrolling distance of the screen content between the execution time of the screen capture operation and the execution time of the previous screen capture operation including:
  • the scrolling distance of the screen content between the execution time of the screen capture operation and the execution time of the previous screen capture operation is calculated according to the area of the alternate screen image and the common picture content of the stitched picture generated by the previous screen capture operation.
  • the layering operation is performed on the alternate screen image and the stitched image generated by the previous screen capture operation based on the scrolling distance, including:
  • a layer flattening operation is performed on the alternate screen capture image and the mosaic image generated by the previous screen capture operation.
  • the layering operation is performed on the alternate screen image and the stitched image generated by the previous screen capture operation based on the scrolling distance, including:
  • the layer flattening operation is performed on the part of the screen capture picture and the stitched picture generated by the previous screen capture operation.
  • the determining, according to the stitching picture generated by the previous screen capture operation, the scrolling screen image corresponding to the scrolling screen capture instruction including:
  • the stitched picture generated by the previous screen capture operation is determined as the scroll screen image corresponding to the scroll screen capture instruction.
  • the determining, according to the stitching picture generated by the previous screen capture operation, the scrolling screen image corresponding to the scrolling screen capture instruction including:
  • the predetermined screen capture condition includes:
  • Pixel points that are scrolled by a predetermined number of lines relative to the previous screen capture operation
  • the predetermined screen capture end condition includes:
  • a screen capture method provided by the embodiment of the present application further includes:
  • a floating layer containing thumbnails of stitched pictures generated by the previous screen capture operation in real time A floating layer containing thumbnails of stitched pictures generated by the previous screen capture operation in real time.
  • the embodiment of the present application further provides a screen capture device, which is applied to an electronic device, where the device includes:
  • a scrolling screen capture instruction obtaining module an initial screen capture image obtaining module, a scrolling screen capture image generating module, and a scrolling screen capture image display module;
  • the scrolling screen capture instruction obtaining module is configured to obtain a scroll screen capture instruction
  • the initial screen capture image obtaining module is configured to perform a screen capture operation on the current screen content to obtain an initial screen capture image
  • the scrolling screen capture image generating module is configured to generate a scroll screen capture image corresponding to the scroll screen capture instruction based on the initial screen capture image and by calling a predetermined system interface, wherein the predetermined system interface is capable of being invoked by being An interface that automatically scrolls the contents of the screen;
  • the scrolling screen capture module is configured to display the scroll screen capture image.
  • the scrolling screen capture image generating module includes: an interface calling submodule, a detecting submodule, a picture splicing submodule, and a scrolling screen image generating submodule, where the image splicing submodule includes an alternate screen capture image obtaining unit and a picture splicing unit. ;among them,
  • the interface calls a sub-module for invoking a predetermined system interface to automatically scroll screen content
  • the detecting submodule is configured to detect whether a predetermined screen capture condition is met and to detect whether a predetermined screen capture end condition is satisfied;
  • the alternate screen capture image obtaining unit is configured to pause a call to the predetermined system interface when the detecting module detects that the predetermined screen capture condition is satisfied, perform a screen capture operation on the current screen content, and obtain an alternate screen capture image;
  • the image splicing unit is configured to generate a spliced image corresponding to the screen capture operation according to the spliced image generated by the alternate screen capture image and the previous screen capture operation, and trigger the interface to call the sub-module to continue to execute the calling predetermined system interface. a step of the initial screen shot image as a stitched picture generated by the first screen capture operation;
  • the scrolling screen capture sub-module is configured to determine, when the detecting module detects that the predetermined screen-cut end condition is satisfied, based on the stitched picture generated by the previous screen capture operation Scroll through the screen capture image corresponding to the screenshot.
  • the picture splicing unit includes a scroll distance calculation subunit, a layer splicing subunit, and a spliced picture determining subunit; wherein
  • the scroll distance calculation subunit is configured to calculate a scroll distance of the screen content between the execution time of the current screen capture operation and the execution time of the previous screen capture operation;
  • the layer splitting subunit is configured to perform a layer stitching operation on the alternate screen image and the stitched picture generated by the previous screen capture operation based on the scroll distance;
  • the spliced picture determining sub-unit is configured to determine a picture formed by performing a layer splicing operation as a spliced picture corresponding to the screen capture operation.
  • the rolling distance calculation subunit is specifically configured to:
  • the scrolling distance of the screen content between the execution time of the screen capture operation and the execution time of the previous screen capture operation is calculated according to the area of the alternate screen image and the common picture content of the stitched picture generated by the previous screen capture operation.
  • the layer split subunit is specifically configured to:
  • a layer flattening operation is performed on the alternate screen capture image and the mosaic image generated by the previous screen capture operation.
  • the layer split subunit is specifically configured to:
  • the layer flattening operation is performed on the part of the screen capture picture and the stitched picture generated by the previous screen capture operation.
  • the scrolling screen capture image generating module includes: a first scrolling screen capture image generating unit;
  • the first scrolling screen image generating unit is configured to determine, when the detecting module detects that the predetermined screen closing end condition is satisfied, the stitching picture generated by the previous screen capture operation as the scroll screen corresponding to the scroll screen capture instruction image.
  • the scrolling screen capture sub-module includes: a modified image obtaining unit and a second scrolling screen image generating unit; wherein
  • the correction picture obtaining unit is configured to perform a screen capture operation on the screen content when the screen closing end condition is satisfied, and use the screen capture image generated by the screen capture operation as the corrected picture;
  • the second scrolling screen image generating unit is configured to determine a scrolling screen image corresponding to the scrolling screen capture instruction according to the stitched image generated by the corrected image and the previous screen capture operation.
  • the predetermined screen capture condition detected by the detection submodule includes:
  • Pixel points that are scrolled by a predetermined number of lines relative to the previous screen capture operation
  • the predetermined screen closing end condition detected by the detecting submodule includes:
  • a screen capture device provided by the embodiment of the present application further includes:
  • a floating layer display module for displaying a floating layer containing thumbnails of stitched pictures generated by a previous screen capture operation in real time.
  • the embodiment of the present application further provides a storage medium for storing an application, where the application is used to execute the screen capture method according to the first aspect of the present application.
  • the embodiment of the present application further provides an application program for performing the screen capture method according to the first aspect of the present application.
  • an embodiment of the present application further provides an electronic device, including: a processor, a memory, a communication interface, and a bus;
  • the processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the memory stores executable program code
  • the processor by reading the executable program code stored in the memory, runs a program corresponding to the executable program code for performing the screen capture method according to the first aspect of the present application.
  • a screen capture operation is performed on the current screen content to obtain an initial screen capture image; and the scroll screen image corresponding to the scroll screen capture instruction is generated based on the initial screen capture image and by calling the predetermined system interface.
  • the predetermined system interface is an interface capable of automatically scrolling the screen content by being called; displaying the scrolling screen image.
  • FIG. 1 is a flowchart of a screen capture method according to an embodiment of the present application
  • FIG. 2 is another flowchart of a screen capture method according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a screen capture device according to an embodiment of the present application.
  • Figure 4 (a) is a first screen shot corresponding to the content of the first screen
  • Figure 4 (b) is a second screen shot corresponding to the content of the second screen
  • Figure 5 is a partial screen shot corresponding to the second screen shot image
  • FIG. 6 is a positional relationship diagram of a partial screen shot image and a first screen shot image before dragging
  • FIG. 7 is a positional relationship diagram of a partial screen shot picture and a first screen shot picture before being stitched after moving;
  • Figure 9 is a schematic diagram showing the interface of a floating layer having thumbnails containing mosaics.
  • the screen cutting method and device are provided in the embodiment of the present application.
  • a screen capture method provided by the embodiment of the present application is first introduced.
  • a screen capture method provided by an embodiment of the present application is applied to an electronic device, and in an actual application, the electronic device may be a smart phone, a tablet computer, a notebook computer, or the like.
  • the function software for implementing a screen capture method provided by the embodiment of the present application may be a special screen capture software, or may be a plug-in in an existing application software, etc., which are all reasonable.
  • a screen capture method may include the following steps:
  • a predetermined operation may be performed to issue a scrolling screen capture instruction to the electronic device, and the electronic device may obtain the scrolling screen capture instruction, thereby performing subsequent processing.
  • the so-called predetermined operation may be the operation of the "scroll screen capture" button in the click interface, or may be a preset gesture operation, etc., which is reasonable.
  • a screen capture operation may be performed on the current screen content to obtain an initial screen capture image; and, in order to finally output a file containing the complete continuous multi-screen content, a subsequent scroll screen capture is generated.
  • the initial screenshot image can be utilized when scrolling the screen image corresponding to the instruction.
  • the scroll screen image corresponding to the scroll screen capture instruction may be generated based on the initial screen capture image and by calling the predetermined system interface, thereby performing subsequent scrolling screen capture image display, of course, generating the
  • the scrolling screen shot corresponding to the scrolling screen instruction also involves stitching multiple images.
  • the predetermined system interface is an interface existing in the prior art that can realize automatic scrolling of the screen content by being called, and therefore, by calling the predetermined system interface, the screen can be realized without manual control by the user. Automatic scrolling of content.
  • the predetermined system interface may be Instrumentation, sendPointerSync().
  • the predetermined system interface may be another interface that can be used to scroll the screen content by being called.
  • the scroll screen capture image corresponding to the scroll screen capture instruction may be displayed. Further, the user can perform a save operation, a send operation, or abandon the save on the displayed scroll screen image, which is reasonable.
  • the user can automatically generate a scrolling screen capture image by simply issuing a scrolling screen capture instruction, thereby avoiding multiple manual screen capture operations and multiple file generation by the user. Therefore, the prior art can be solved.
  • the screen is continuously screened for multiple screens, the user operation is cumbersome and multiple files are difficult to save.
  • the generating a scrolling screen image corresponding to the scrolling screen capture instruction by using the initial screen capture image and calling the predetermined system interface may include:
  • System interface to automatically scroll screen content.
  • different screen images to be stitched may be first obtained, and in order to obtain multiple screen images to be stitched, different screen images may be scrolled. After the degree, the screen capture operation is performed, that is, the screen content is screened after each scrolling. Based on the above requirements, it is possible to detect whether the predetermined screen capture condition is satisfied during the process of automatically scrolling the screen content by calling the predetermined system interface, and perform a corresponding screen capture operation and other related auxiliary operations when it is detected that the predetermined screen capture condition is satisfied.
  • the predetermined screen capture condition may include: scrolling a predetermined number of rows of pixels with respect to a previous screen capture operation; or scrolling a predetermined length with respect to a previous screen capture operation.
  • the predetermined number of lines may be one quarter, one third, and one value between one quarter and one third of the total number of pixels of the screen pixel, and the predetermined length may be It is reasonable to have one-quarter, one-third of the screen height and any value between one-quarter and one-third.
  • the predetermined number of lines may be 700 or 600 lines, of course, without being limited thereto.
  • the predetermined screen capture end condition may include: receiving a screen capture end instruction issued by the user; or, the predetermined screen capture condition cannot be satisfied.
  • the user may issue a screen closing end instruction by performing a predetermined operation, for example, clicking a "screenshot end" button displayed on the interface, or issuing a predetermined gesture.
  • the pixel point can be scrolled less than the predetermined number of rows or less than the predetermined length when the last screen capture operation occurs, the scrolling of the screen content can be automatically ended, so The scheduled screen capture condition has not been satisfied as the predetermined screen capture end condition.
  • the step of calling the predetermined system interface to automatically scroll the screen content may be continuously performed.
  • the initial screen capture image is used as the stitching picture generated by the first screen capture operation; and the stitched picture generated by the previous screen capture operation specifically refers to the stitching picture generated by the previous screen capture operation. .
  • the call to the predetermined system interface may be suspended, a screen capture operation is performed on the current screen content, an alternate screen capture image is obtained, and the stitching generated according to the alternate screen capture image and the previous screen capture operation is performed.
  • the picture is generated by the stitching picture corresponding to the screen capture operation, and the step of calling the predetermined system interface shown in S201 is continued.
  • the step of calling the predetermined system interface shown in S201 may be continued.
  • the generation may be performed simultaneously.
  • the step of stitching the picture corresponding to the screen capture operation and the step of calling the predetermined system interface shown in S201 may be performed simultaneously.
  • the stitching picture corresponding to the screen capture operation is generated according to the stitching picture generated by the alternate screen shot image and the previous screen capture operation, and may include:
  • the picture formed by performing the layer flattening operation is determined as the stitched picture corresponding to the screen capture operation.
  • the screen content between the execution time of the screen capture operation and the execution time of the previous screen capture operation may be calculated according to the area where the shared screen content of the stitched picture generated by the alternate screen capture image and the previous screen capture operation is located.
  • the scrolling distance may be calculated by other means, for example, the screen capture operation is satisfied that the predetermined screen capture condition is met.
  • the distance or the predetermined length corresponding to the pixel number of the predetermined number of rows involved in the predetermined screen capture condition may be directly determined as the execution time of the screen capture operation relative to the previous screen capture operation. It is reasonable to perform the scrolling distance of the screen content between the moments, and so on.
  • the common picture content is in the lower area of the picture corresponding to the previous screen content, and in the latter screen.
  • the upper part of the picture corresponding to the content may preset a default area where the common picture content is located according to the experience value, the default area may be represented by a pixel point area, and the pixel area is based on the electronic device In terms of screen resolution.
  • the default area may be: an area located in a lower area of the screen of the electronic device, a width of the screen width, and an area of a predetermined proportion of the screen area, or the default area may be: located in an upper area of the screen of the electronic device, An area in which the width is the width of the screen and the area is a predetermined ratio of the screen area, wherein the predetermined ratio may be: one quarter, one fifth, one sixth, etc., which is reasonable.
  • the matching as the common picture content in the default area is determined from the stitched pictures generated by the previous last screen shot operation.
  • the alternate screen capture image identifying a target area where the matching content is located, determining a scroll distance based on the target area and the default area; and in the case where the default area is located in an upper area of the screen of the electronic device And determining, from the alternate screenshot image, the matching content as the shared image content in the default area, and identifying the target area where the matching content is located in the stitched picture generated by the previous screen capture operation. Based on the target area and the default area, a scroll distance is determined. It should be emphasized that the target area where the matching content is located can be identified by comparing the pixel values of the pixel points, and is of course not limited thereto.
  • Example 1 assuming that the stitched picture generated by the previous screen capture operation is picture A, the alternate screen picture is picture B, and the default area is for picture A.
  • the set area is specifically the area of the 1100th to 1500th pixel (for the screen of the electronic device, the pixel point line number gradually increases from the top downward), and the target area in the determined picture B is the first 500 to 900 rows of pixels in the area, at this time, the scroll distance is the distance corresponding to 600 rows of pixels;
  • Example 2 assuming that the stitching picture generated by the previous screen capture operation is picture A, the alternate screen picture is picture B, the default The area is set for the picture B, specifically the area where the pixels of the 200th to 300th lines (for the screen of the electronic device, the line number of the pixel gradually increases from the top to the bottom), the determined picture A
  • the target area in the area is the area where the pixels of the 900th to 1000th rows are located.
  • the drag distance is the distance corresponding to the pixels of 700 lines; in addition, for the 1100th to the 15th of the above picture A. 00 lines of pixels or the 900th to 1000th line of pixels in the area, because the screen resolution of the electronic device is certain, but the picture A is a mosaic picture, so you can push the 1100 from the bottom edge of the picture A The specific area position of the 1500th pixel or the 900th to 1000th pixel.
  • the performing a layer stitching operation on the alternate screen image and the stitched image generated by the previous screen capture operation based on the scrolling distance may include:
  • a layer flattening operation is performed on the alternate screen capture image and the mosaic image generated by the previous screen capture operation.
  • the layering operation of the stitching picture generated by the alternate screen image and the previous screen capture operation may be performed according to the scrolling distance, and may include:
  • the layer flattening operation is performed on the part of the screen capture picture and the stitched picture generated by the previous screen capture operation.
  • the predetermined size may be an empirical value
  • the experience value may be: a quarter of the entire picture, that is, part of the screenshot is three-quarters of the entire alternate screenshot.
  • the predetermined size may be an empirical value
  • the experience value may be: a quarter of the entire picture, that is, part of the screenshot is three-quarters of the entire alternate screenshot.
  • FIG. 4(a), FIG. 4(b), FIG. 5, FIG. 6, FIG. 7, and FIG. 8 show a process of layer-splicing operation on the alternate screen shot image and the stitched picture generated by the previous screen capture operation.
  • the picture shown in FIG. 4( a ) is a first screen shot corresponding to the content of the first screen, wherein the first screen shot image is a stitched picture generated by the first screen capture operation;
  • FIG. 4( b ) The picture is a second screen picture corresponding to the second screen content, wherein the second screen picture is the alternate screen picture corresponding to the second screen capture operation;
  • FIG. 4( a), FIG. 4(b), FIG. 5, FIG. 6, FIG. 7, and FIG. 8 show a process of layer-splicing operation on the alternate screen shot image and the stitched picture generated by the previous screen capture operation.
  • the picture shown in FIG. 4( a ) is a first screen shot corresponding to the content of the first screen, wherein the first screen shot image is a stitch
  • FIG. 5 is the remaining picture area after performing the cropping operation on the top area of the second screen picture Part of the screen capture picture;
  • Figure 6 is the positional relationship diagram of the part of the screenshot picture and the first screen picture before dragging, wherein part of the screen shot picture and the first screen picture are in the same horizontal position, and part of the screen shot picture is in front and the first screen picture
  • the previous cut may be based on The stitching picture generated by the screen operation determines the scrolling screen image corresponding to the scrolling screen capture instruction.
  • the stitched picture generated by the previous screen capture operation is a time frame based on the time when the predetermined screen cut end condition is satisfied, and the stitched picture generated by the last screen shot operation.
  • the determining, according to the stitching picture generated by the previous screen capture operation, the scrolling screen image corresponding to the scrolling screen capture instruction may include:
  • the stitched picture generated by the previous screen capture operation is determined as the scroll screen image corresponding to the scroll screen capture instruction.
  • the scrolling screen image corresponding to the scrolling screen capture instruction may be determined according to the stitching image generated by the previous screen capture operation.
  • the specific implementation of the scrolling screen image corresponding to the scrolling screen capture instruction is based on the spliced image generated by the previous screen capture operation, and is not limited to the embodiment of the present application. .
  • the screen capture method provided by the embodiment of the present application may further include: displaying the thumbnail of the mosaic image generated by the previous screen capture operation in real time. Floor.
  • the position of the floating layer containing the thumbnail in the screen of the electronic device can be set according to actual conditions.
  • the floating layer 2 including the thumbnail of the mosaic is located on the left side of the screen content 1, of course. Can be located on the right side, etc. This is all reasonable.
  • the floating layer including the thumbnail may be a special floating layer that is not used as the screen content, and can not only visually distinguish the screen content and the thumbnail, but also avoid the thumbnail when the screen capture operation is performed. The interception is performed as the screen content; and those skilled in the art can understand that a special floating layer that is not used as the screen content can be implemented by the prior art and will not be described here.
  • the embodiment of the present application further provides a screen capture device, which is applied to an electronic device.
  • the device may include:
  • the scrolling screen capture instruction obtaining module 310 is configured to obtain a scroll screen capture instruction
  • the initial screen capture image obtaining module 320 is configured to perform a screen capture operation on the current screen content to obtain an initial screen capture image
  • the scrolling screen capture image generating module 330 is configured to generate a scroll screen capture image corresponding to the scroll screen capture instruction based on the initial screen capture image and by calling a predetermined system interface, where the predetermined system interface is invoked by using An interface that automatically scrolls the contents of the screen;
  • the scrolling screen capture module 340 is configured to display the scroll screen capture image.
  • the user can automatically generate a scrolling screen capture image by simply issuing a scrolling screen capture instruction, thereby avoiding multiple manual screen capture operations and multiple file generation by the user. Therefore, the prior art can be solved.
  • the screen is continuously screened for multiple screens, the user operation is cumbersome and multiple files are difficult to save.
  • the scrolling screen capture image generating module 330 includes: an interface calling submodule, a detecting submodule, a picture splicing submodule, and a scrolling screen image generating submodule, where the image splicing submodule includes an alternate screen capture image obtaining unit and a picture splicing unit. ;among them,
  • the interface calls a sub-module for invoking a predetermined system interface to automatically scroll screen content
  • the detecting submodule is configured to detect whether a predetermined screen capture condition is met and to detect whether a predetermined screen capture end condition is satisfied;
  • the alternate screen capture image obtaining unit is configured to pause a call to the predetermined system interface when the detecting module detects that the predetermined screen capture condition is satisfied, perform a screen capture operation on the current screen content, and obtain an alternate screen capture image;
  • the image splicing unit is configured to generate a spliced image corresponding to the screen capture operation according to the spliced image generated by the alternate screen capture image and the previous screen capture operation, and trigger the interface to call the sub-module to continue to execute the calling predetermined system interface. a step of the initial screen shot image as a stitched picture generated by the first screen capture operation;
  • the scrolling screen capture sub-module is configured to determine, according to the stitched picture generated by the last screen capture operation, the scroll screen capture image corresponding to the scroll screen capture instruction when the detection module detects that the predetermined screen capture end condition is satisfied.
  • the picture splicing unit includes a scroll distance calculation subunit, a layer splicing subunit, and a spliced picture determination subunit;
  • the scroll distance calculation subunit is configured to calculate a scroll distance of the screen content between the execution time of the current screen capture operation and the execution time of the previous screen capture operation;
  • the layer splitting subunit is configured to perform a layer stitching operation on the alternate screen image and the stitched picture generated by the previous screen capture operation based on the scroll distance;
  • the spliced picture determining sub-unit is configured to determine a picture formed by performing a layer splicing operation as a spliced picture corresponding to the screen capture operation.
  • the rolling distance calculation subunit is specifically configured to:
  • the scrolling distance of the screen content between the execution time of the screen capture operation and the execution time of the previous screen capture operation is calculated according to the area of the alternate screen image and the common picture content of the stitched picture generated by the previous screen capture operation.
  • the layer split subunit is specifically configured to:
  • a layer flattening operation is performed on the alternate screen capture image and the mosaic image generated by the previous screen capture operation.
  • the layer split subunit is specifically configured to:
  • the layer flattening operation is performed on the part of the screen capture picture and the stitched picture generated by the previous screen capture operation.
  • the scrolling screen capture image generating module includes: a first scrolling screen capture image generating unit;
  • the first scrolling screen capture unit is configured to determine, when the detecting module detects that the predetermined screen capture end condition is satisfied, the stitching picture generated based on the previous screen capture operation as the scroll corresponding to the scroll screen capture instruction Screen shot image.
  • the scrolling screen capture sub-module includes: a modified image obtaining unit and a second scrolling screen image generating unit;
  • the correction picture obtaining unit is configured to perform a screen capture operation on the screen content when the screen closing end condition is satisfied, and use the screen capture image generated by the screen capture operation as the corrected picture;
  • the second scrolling screen image generating unit is configured to determine a scrolling screen image corresponding to the scrolling screen capture instruction according to the stitched image generated by the corrected image and the previous screen capture operation.
  • the predetermined screen capture condition detected by the detection submodule may include:
  • Pixel points that are scrolled by a predetermined number of lines relative to the previous screen capture operation
  • the predetermined screen capture end condition detected by the detection submodule may include:
  • a screen capture device provided by the embodiment of the present application may further include:
  • a floating layer display module for displaying a floating layer containing thumbnails of stitched pictures generated by a previous screen capture operation in real time.
  • the embodiment of the present application further provides a storage medium for storing an application, where the application is used to perform the screen capture method provided by the embodiment of the present application;
  • the screen capture method may include the following steps:
  • the scrolling screen shot is displayed.
  • the storage medium stores an application program that performs the screen capture method provided by the embodiment of the present application at runtime, and thus can implement: avoiding multiple manual screen capture operations and multiple files generated by the user, which can be solved in the prior art.
  • the screen is continuously screened for multiple screens, the user operation is cumbersome and multiple files are difficult to save.
  • the embodiment of the present application further provides an application program for performing the screen capture method provided by the embodiment of the present application.
  • the screen capture method may include the following steps:
  • the scrolling screen shot is displayed.
  • the application performs the screen capture method provided by the embodiment of the present application at runtime, so that the user can avoid multiple manual screen capture operations and generate multiple files, which can solve the continuous multi-screen content in the prior art.
  • the screen is screened, the user's operation is cumbersome and multiple files are difficult to save.
  • the embodiment of the present application further provides an electronic device, including: a processor, a memory, a communication interface, and a bus;
  • the processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the memory stores executable program code
  • the processor by reading the executable program code stored in the memory, to run a program corresponding to the executable program code, for performing the screen capture method provided by the embodiment of the present application;
  • the screen capture method may include the following steps:
  • the scrolling screen shot is displayed.
  • the electronic device can be a smart phone, a tablet computer, a notebook computer, and the like.
  • the processor of the electronic device runs a program corresponding to the executable program code by reading the executable program code stored in the memory, and the program executes the screen capture method provided by the embodiment of the present application at runtime. Therefore, it can be realized that the user avoids multiple manual screen capture operations and generates multiple files, which can solve the problem that the user operation is cumbersome and multiple files are difficult to save when the continuous multi-screen content is screened in the prior art.

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

一种截屏方法及装置。该方法包括:获得滚动截屏指令(S101);对当前屏幕内容执行截屏操作,获得初始截屏图片(S102);基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中,所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口(S103);展示所述滚动截屏图片(S104)。与现有技术相比,通过本方法,用户仅仅需要发出滚动截屏指令便可以自动生成一张滚动截屏图片,避免了用户多次手动截屏操作和生成多个文件,因此,可以解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题。

Description

一种截屏方法及装置
本申请要求于2015年08月24日提交中国专利局、申请号为201510522992.9发明名称为“一种截屏方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备技术领域,特别是涉及一种截屏方法及装置。
背景技术
为了保存短信内容、即时通讯软件中的聊天记录等内容,通常会用到屏幕截取功能(简称截屏),即将当前屏幕内容作为图片保存。
现有技术中,当需要保存的内容涉及到连续多屏时,用户需要手动滚动屏幕,在认为滚动完毕一屏后,对当前屏幕内容执行截屏操作,该过程重复多次。
尽管上述的截屏方法能够对连续多屏的内容进行截屏,但是,由于用户手动多次截屏,操作较为繁琐,并且,由于每一次截屏操作均产生一个文件,这样会带来多个文件不易保存的问题。
发明内容
本申请实施例的目的在于提供一种截屏方法及装置,以解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题。具体技术方案如下:
第一方面,本申请实施例提供了一种截屏方法,应用于电子设备,所述方法包括:
获得滚动截屏指令;
对当前屏幕内容执行截屏操作,获得初始截屏图片;
基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中,所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;
展示所述滚动截屏图片。
可选的,所述基于所述初始截屏图片和通过对预定系统接口进行调用, 生成所述滚动截屏指令所对应的滚动截屏图片,包括:
调用预定系统接口以自动滚动屏幕内容;
检测预定截屏条件是否被满足以及检测预定截屏结束条件是否被满足;
当检测到预定截屏条件被满足时,暂停对所述预定系统接口的调用,对当前屏幕内容执行截屏操作,获得备用截屏图片,根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,并继续执行调用预定系统接口的步骤,其中,所述初始截屏图片作为第一次截屏操作所生成的拼接图片;
当检测到预定截屏结束条件被满足时,基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
可选的,根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,包括:
计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离;
基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作;
将执行图层拼合操作所形成的图片确定为本次截屏操作所对应的拼接图片。
可选的,计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离,包括:
根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片的共有图片内容所在的区域,计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离。
可选的,所述基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作,包括:
将该备用截屏图片向该备用截屏图片的底部边缘方向移动所述滚动距离,其中,该备用截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该备用截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
可选的,所述基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作,包括:
对该备用截屏图片的预定大小的顶部区域执行裁剪操作,以获得裁剪后的部分截屏图片;
将该部分截屏图片向该部分截屏图片底部边缘方向移动所述滚动距离,其中,该部分截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该部分截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
对该部分截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
可选的,所述基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片,包括:
将之前最近一次截屏操作所生成的拼接图片确定为所述滚动截屏指令所对应的滚动截屏图片。
可选的,所述基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片,包括:
对截屏结束条件被满足时的屏幕内容执行截屏操作,并将该截屏操作所生成的截屏图片作为修正图片;
根据所述修正图片和之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
可选的,所述预定截屏条件包括:
相对于之前最近一次截屏操作发生时滚动预定行数的像素点;
或者,
相对于之前最近一次截屏操作发生时滚动预定长度。
可选的,所述预定截屏结束条件包括:
接收到用户发出的截屏结束指令;
或者,
预定截屏条件已无法被满足。
可选的,本申请实施例所提供的一种截屏方法还包括:
实时展示包含之前最近一次截屏操作所生成的拼接图片的缩略图的浮层。
第二方面,本申请实施例还提供了一种截屏装置,应用于电子设备,所述装置包括:
滚动截屏指令获得模块、初始截屏图片获得模块、滚动截屏图片生成模块和滚动截屏图片展示模块;其中,
所述滚动截屏指令获得模块,用于获得滚动截屏指令;
所述初始截屏图片获得模块,用于对当前屏幕内容执行截屏操作,获得初始截屏图片;
所述滚动截屏图片生成模块,用于基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中,所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;
所述滚动截屏图片展示模块,用于展示所述滚动截屏图片。
可选的,所述滚动截屏图片生成模块包括:接口调用子模块、检测子模块、图片拼接子模块和滚动截屏图片生成子模块,所述图片拼接子模块包括备用截屏图片获得单元和图片拼接单元;其中,
所述接口调用子模块,用于调用预定系统接口以自动滚动屏幕内容;
所述检测子模块,用于检测预定截屏条件是否被满足以及检测预定截屏结束条件是否被满足;
所述备用截屏图片获得单元,用于当所述检测模块检测到预定截屏条件被满足时,暂停对所述预定系统接口的调用,对当前屏幕内容执行截屏操作,获得备用截屏图片;
所述图片拼接单元,用于根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,并触发所述接口调用子模块继续执行调用预定系统接口的步骤,其中,所述初始截屏图片作为第一次截屏操作所生成的拼接图片;
所述滚动截屏图片生成子模块,用于当所述检测模块检测到预定截屏结束条件被满足时,基于之前最近一次截屏操作所生成的拼接图片,确定所述 滚动截屏指令所对应的滚动截屏图片。
可选的,所述图片拼接单元包括滚动距离计算子单元、图层拼合子单元和拼接图片确定子单元;其中,
所述滚动距离计算子单元,用于计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离;
所述图层拼合子单元,用于基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作;
所述拼接图片确定子单元,用于将执行图层拼合操作所形成的图片确定为本次截屏操作所对应的拼接图片。
可选的,所述滚动距离计算子单元具体用于:
根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片的共有图片内容所在的区域,计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离。
可选的,所述图层拼合子单元具体用于:
将该备用截屏图片向该备用截屏图片的底部边缘方向移动所述滚动距离,其中,该备用截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该备用截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
可选的,所述图层拼合子单元具体用于:
对该备用截屏图片的预定大小的顶部区域执行裁剪操作,以获得裁剪后的部分截屏图片;
将该部分截屏图片向该部分截屏图片底部边缘方向移动所述滚动距离,其中,该部分截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该部分截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
对该部分截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
可选的,所述滚动截屏图片生成子模块包括:第一滚动截屏图片生成单元;其中,
所述第一滚动截屏图片生成单元,用于当所述检测模块检测到预定截屏结束条件被满足时,将之前最近一次截屏操作所生成的拼接图片确定为所述滚动截屏指令所对应的滚动截屏图片。
可选的,所述滚动截屏图片生成子模块包括:修正图片获得单元和第二滚动截屏图片生成单元;其中,
所述修正图片获得单元,用于对截屏结束条件被满足时的屏幕内容执行截屏操作,并将该截屏操作所生成的截屏图片作为修正图片;
所述第二滚动截屏图片生成单元,用于根据所述修正图片和之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
可选的,所述检测子模块所检测的预定截屏条件包括:
相对于之前最近一次截屏操作发生时滚动预定行数的像素点;
或者,
相对于之前最近一次截屏操作发生时滚动预定长度。
可选的,所述检测子模块所检测的预定截屏结束条件包括:
接收到用户发出的截屏结束指令;
或者,
预定截屏条件已无法被满足。
可选的,本申请实施例所提供的一种截屏装置还包括:
浮层显示模块,用于实时展示包含之前最近一次截屏操作所生成的拼接图片的缩略图的浮层。
第三方面,本申请实施例还提供了一种存储介质,用于存储应用程序,所述应用程序用于在运行时执行:本申请实施例第一方面所述的截屏方法。
第四方面,本申请实施例还提供了一种应用程序,用于在运行时执行:本申请实施例第一方面所述的截屏方法。
第五方面,本申请实施例还提供了一种电子设备,包括:处理器、存储器、通信接口和总线;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
所述存储器存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:本申请实施例第一方面所述的截屏方法。
本申请实施例中,在获得滚动截屏指令后对当前屏幕内容执行截屏操作,获得初始截屏图片;基于该初始截屏图片以及通过对预定系统接口进行调用,生成该滚动截屏指令所对应的滚动截屏图片,其中,该预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;展示该滚动截屏图片。与现有技术相比,通过本方案,用户仅仅需要发出滚动截屏指令便可以自动生成一张滚动截屏图片,避免了用户多次手动截屏操作和生成多个文件,因此,可以解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例所提供的一种截屏方法的流程图;
图2为本申请实施例所提供的一种截屏方法的另一流程图;
图3为本申请实施例所提供的一种截屏装置的结构示意图;
图4(a)为第一屏内容所对应的第一截屏图片;
图4(b)为第二屏内容所对应的第二截屏图片;
图5为第二截屏图片所对应的部分截屏图片;
图6为拖动前部分截屏图片和第一截屏图片的位置关系图;
图7为移动后拼合前的部分截屏图片和第一截屏图片的位置关系图;
图8为部分截屏图片和第一截屏图片所对应的拼接图片;
图9为显示有包含拼接图的缩略图的浮层的界面示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为了解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题,本申请实施例一种截屏方法及装置。
下面首先对本申请实施例所提供的一种截屏方法进行介绍。
需要说明的是,本申请实施例所提供的一种截屏方法应用于电子设备中,而在实际应用中,该电子设备可以智能手机、平板电脑、笔记本电脑等设备。并且,实现本申请实施例所提供的一种截屏方法的功能软件可以为专门的截屏软件,也可以为现有应用软件中的插件等等,这都是合理的。
如图1所示,一种截屏方法,可以包括如下步骤:
S101,获得滚动截屏指令;
其中,当用户希望对该电子设备中的连续多屏内容进行截屏时,可以执行预定操作向该电子设备发出滚动截屏指令,而该电子设备可以获得该滚定截屏指令,进而执行后续的处理。
其中,所谓的预定操作可以为点击界面中的“滚动截屏”按钮的操作,或者,可以为预先设定的手势操作,等等,这都是合理的。
S102,对当前屏幕内容执行截屏操作,获得初始截屏图片;
在获得滚动截屏指令后,为了保证当前屏幕内容被截取,可以首先对当前屏幕内容执行截屏操作以获得初始截屏图片;进而,为了最终输出一个包含完整的连续多屏内容的文件,后续生成滚动截屏指令所对应的滚动截屏图片时可以利用该初始截屏图片。
本领域技术人员可以理解的是,对当前屏幕内容执行截屏操作可以采用现有技术实现,在此不做介绍。
S103,基于该初始截屏图片以及通过对预定系统接口进行调用,生成该滚动截屏指令所对应的滚动截屏图片,其中,该预定系统接口为通过被调用 能够实现自动滚动屏幕内容的接口;
在获得该初始截屏图片后,可以基于该初始截屏图片以及通过对预定系统接口进行调用,生成该滚动截屏指令所对应的滚动截屏图片,进而执行后续的滚动截屏图片的展示,当然,在生成该滚动截屏指令所对应的滚动截屏图片时还涉及到多个图片的拼接。
需要说明的是,该预定系统接口为现有技术所存在的通过被调用能够实现自动滚动屏幕内容的接口,因此,通过对该预定系统接口的调用使得在无需用户手动控制的前提下能够实现屏幕内容的自动滚动。
具体的,对于操作系统为安卓系统而言,预定系统接口可以为Instrumentation,sendPointerSync(),当然,对于其他操作系统而言,预定系统接口可以为其他的通过被调用能够滚动屏幕内容的接口。
为了布局清楚,后续对基于该初始截屏图片以及通过对预定系统接口进行调用,生成该滚动截屏指令所对应的滚动截屏图片的详细过程进行介绍。
S104,展示该滚动截屏图片。
在基于该初始截屏图片以及通过对预定系统接口进行调用,生成该滚动截屏指令所对应的滚动截屏图片后,可以展示该滚动截屏指令所对应的滚动截屏图片。进而,用户可以对所展示出的滚动截屏图片执行保存操作、发送操作或放弃保存等,这都是合理的。
与现有技术相比,通过本方案,用户仅仅需要发出滚动截屏指令便可以自动生成一张滚动截屏图片,避免了用户多次手动截屏操作和生成多个文件,因此,可以解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题。
下面详细介绍所述基于所述初始截屏图片和通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片的具体实现过程。
如图2所示,所述基于所述初始截屏图片和通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,可以包括:
S201,调用预定系统接口以自动滚动屏幕内容;
在获得初始截屏图片后,由于存在连续多屏内容,因此,可以调用预定 系统接口以自动滚动屏幕内容。
S202,检测预定截屏条件是否被满足以及检测预定截屏结束条件是否被满足,如果检测到预定截屏条件被满足时,执行S203,如果检测到预定截屏结束条件被满足,执行S204;
其中,为了生成包含连续多屏内容的滚动截屏图片,可以首先获得待拼接的多张内容存在不同的截屏图片,而为了获得待拼接的多张内容存在不同的截屏图片,可以在屏幕内容滚动一定程度后进行截屏操作,即屏幕内容每滚动一定距离后进行截屏操作。基于上述需求,可以在调用预定系统接口进行自动滚动屏幕内容的过程中,检测预定截屏条件是否被满足,并在检测到预定截屏条件被满足时执行相应的截屏操作以及其他相关的辅助操作。
另外,由于连续多屏内容自身是内容有限的或者用户对连续多屏内容所需求的内容有限,因此,需要在某一时刻来结束屏幕内容的滚动过程。而为了检测是否需要结束滚动屏幕内容,可以在调用预定系统接口进行自动滚动屏幕内容的过程中,检测预定截屏结束条件是否被满足,并在预定截屏结束条件被满足时执行相应的操作,从而获得最终所需的滚动屏幕图片。
具体的,在实际应用中,该预定截屏条件可以包括:相对于之前最近一次截屏操作发生时滚动预定行数的像素点;或者,相对于之前最近一次截屏操作发生时滚动预定长度。并且,在实际应用中,预定行数可以为屏幕像素点总行数的四分之一、三分之一以及位于四分之一到三分之一之间的任意一个值,而预定长度可以为屏幕高度的四分之一、三分之一以及位于四分之一到三分之一之间的任意一个值,这都是合理的。举例而言:对于屏幕为分辨率1920*1080的电子设备而言,预定行数可以为700或600行,当然并不局限于此。
具体的,在实际应用中,该预定截屏结束条件可以包括:接收到用户发出的截屏结束指令;或者,预定截屏条件已无法被满足。其中,对于接收到用户发出的截屏结束指令作为预定截屏结束条件而言,用户可以通过执行预定操作来发出截屏结束指令,例如,点击界面上显示的“截屏结束”按钮,或者,发出预定手势。而由于相对于上一次截屏操作发生时只能滚动少于预定行数的像素点或少于预定长度时,可以自动结束屏幕内容的滚定,因此,可以将 预定截屏条件已无法被满足作为预定截屏结束条件,举例而言:假设700行像素点作为滚动截屏的预定行数,如果滚动了100行像素点或其他少于700行像素点的行数便无法继续滚动,则此时停止滚动,认为预定截屏结束条件被满足;又如,存在11个联系人,每屏显示10个联系人,第二屏实际只显示1个联系人,滚动时只能滚动1个联系人所对应的距离,由于少于预定滚动行数的像素点或预定滚定距离,此时将停止滚动,认为预定截屏结束条件被满足。
需要说明的是,如果既未检测到预定截屏条件被满足也未检测到预定截屏结束条件被满足,则可以持续执行调用预定系统接口以自动滚动屏幕内容的步骤。
S203,暂停对该预定系统接口的调用,对当前屏幕内容执行截屏操作,获得备用截屏图片,根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,并继续执行调用预定系统接口的步骤;
其中,该初始截屏图片作为第一次截屏操作所生成的拼接图片;并且,之前最近一次截屏操作所生成的拼接图片具体指以本次截屏操作为时间基准,上一次截屏操作所生成的拼接图片。
其中,当检测到预定截屏条件被满足时,可以暂停对该预定系统接口的调用,对当前屏幕内容执行截屏操作,获得备用截屏图片,根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,并继续执行S201所示的调用预定系统接口的步骤。需要说明的是,可以在生成本次截屏操作所对应的拼接图片后,继续执行S201所示的调用预定系统接口的步骤,当然,为了提高处理速率,在获得备用截屏图片后,可以同时执行生成本次截屏操作所对应的拼接图片的步骤和S201所示的调用预定系统接口的步骤。
具体的,根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,可以包括:
计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离;
基于该滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作;
将执行图层拼合操作所形成的图片确定为本次截屏操作所对应的拼接图片。
具体的,可以根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片的共有图片内容所在的区域,计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离。当然,还可以通过其他方式计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离,例如:对于本次截屏操作是在检测到符合预定截屏条件被满足时所发生的截屏操作的情况而言,可以直接将预定截屏条件中所涉及的预定行数的像素点所对应距离或预定长度确定为本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离,等等,这都是合理的。
需要强调的是,在实际应用中,对于属于连续两屏内容的两张图片而言,如果存在共有图片内容,则该共有图片内容在前一屏内容所对应图片下部区域,而在后一屏内容所对应图片的上部分区域,基于该分析,可以根据经验值预先设定出共有图片内容所在的默认区域,该默认区域可以通过像素点区域来表示,并且,该像素点区域是基于电子设备的屏幕分辨率而言。具体的,该默认区域可以为:位于电子设备的屏幕的下部区域、宽度为屏幕宽度且面积为屏幕面积的预定比例的区域,或者,该默认区域可以为:位于电子设备的屏幕的上部区域、宽度为屏幕宽度且面积为屏幕面积的预定比例的区域,其中,该预定比例可以为:四分之一、五分之一、六分之一等等,这都是合理的。进而,在计算滚动距离时,对于默认区域为位于电子设备的屏幕的下部区域的情况而言,从该之前最近一次截屏操作所生成的拼接图片中确定出默认区域内的作为共有图片内容的匹配内容,在该备用截屏图片中,识别出该匹配内容所在的目标区域,基于该目标区域和该默认区域,确定出滚动距离;而对于默认区域为位于电子设备的屏幕的上部区域的情况而言,从备用截屏图片中确定出默认区域内的作为共有图片内容的匹配内容,在该之前最近一次截屏操作所生成的拼接图片中,识别出该匹配内容所在的目标区域, 基于该目标区域和该默认区域,确定出滚动距离。需要强调的是,可以通过比对像素点的像素值的方式,识别出该匹配内容所在的目标区域,当然并不局限于此。
为了清楚介绍关于滚动距离的计算,下面结合两个例子进行说明:例一,假设之前最近一次截屏操作所生成的拼接图片为图片A,备用截屏图片为图片B,默认区域为针对于图片A所设定的,具体为第1100至第1500行像素点(对于电子设备的屏幕而言,像素点行号从顶部向下逐渐增大)所在区域,所确定出的图片B中的目标区域为第500至900行像素点所在区域,此时,滚动距离为600行像素点所对应的距离;例二,假设之前最近一次截屏操作所生成的拼接图片为图片A,备用截屏图片为图片B,默认区域为针对于图片B所设定的,具体为第200至300行像素点(对于电子设备的屏幕而言,像素点行号从顶部向下逐渐增大)所在区域,所确定出的图片A中的目标区域为第900至1000行像素点所在区域,此时,拖动距离为700行像素点所对应的距离;另外,对于上述的图片A的第1100至第1500行像素点或第900至第1000行像素点所在区域而言,由于电子设备的屏幕分辨率是一定的,但是图片A为拼接图片,因此,可以从图片A底部边缘向上反推出第1100至第1500行像素点或第900至第1000行像素点的具体区域位置。
进一步的,在第一种实现方式中,所述基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作,可以包括:
将该备用截屏图片向该备用截屏图片的底部边缘方向移动该滚动距离,其中,该备用截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该备用截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
另外,由于截屏图片通常会存在内容固定的标题区域,该标题区域位于图片的顶部,影响图片拼接,因此,需要将该标题区域裁剪掉,进而将剩余部分作为待拼接的图片,其中,该标题区域通常为特定大小的顶部区域。基 于上述需要,在第二种实现方式中,所述基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作,可以包括:
对该备用截屏图片的预定大小的顶部区域执行裁剪操作,以获得裁剪后的部分截屏图片;
将该部分截屏图片向该部分截屏图片底部边缘方向移动该滚动距离,其中,该部分截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该部分截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
对该部分截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
在实际应用中,对于该标题区域而言,预定大小可以为经验值,该经验值可以为:整张图片的四分之一,即部分截屏图片为整张备用截屏图片的四分之三,当然并不局限于此。
举例而言,图4(a)、图4(b)图5、图6、图7、图8展示了对备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作的过程,具体的,图4(a)所示图片为第一屏内容所对应的第一截屏图片,其中,该第一截屏图片为第一次截屏操作所生成的拼接图片;图4(b)所示图片为第二屏内容所对应的第二截屏图片,其中,第二截屏图片为第二次截屏操作所对应的备用截屏图片;图5为对第二截屏图片的顶部区域执行裁剪操作后剩余的部分截屏图片;图6为拖动前部分截屏图片和第一截屏图片的位置关系图,其中,部分截屏图片和第一截屏图片处于同一水平位置,且部分截屏图片在前而第一截屏图片在后;图7为移动后拼合前的部分截屏图片和第一截屏图片的位置关系图,其中,在图6所展示的位置关系的基础上,部分截屏图片被移动所计算出的滚动距离;图8为部分截屏图片和第一截屏图片所对应的拼接图片。
S204,基于之前最近一次截屏操作所生成的拼接图片,确定该滚动截屏指令所对应的滚动截屏图片。
其中,在检测到预定截屏结束条件被满足时,可以基于之前最近一次截 屏操作所生成的拼接图片,确定该滚动截屏指令所对应的滚动截屏图片。其中,当检测到预定截屏结束条件被满足时,该之前最近一次截屏操作所生成的拼接图片为以该预定截屏结束条件被满足时的时刻为时间基准,上一次截屏操作所生成的拼接图片。
在第一种实现方式中,所述基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片,可以包括:
将之前最近一次截屏操作所生成的拼接图片确定为所述滚动截屏指令所对应的滚动截屏图片。
在第二种实现方式中,在滚动截屏精度要求较高的情况下,所述基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片,可以包括:
对截屏结束条件被满足时的屏幕内容执行截屏操作,并将该截屏操作所生成的截屏图片作为修正图片;
根据所述修正图片和之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
需要强调的是,上述所给出的基于之前最近一次截屏操作所生成的拼接图片,确定该滚动截屏指令所对应的滚动截屏图片具体实现方式仅仅作为示例,并不应该构成对本申请实施例的限定。
另外,更进一步的,为了让用户实时了解当前截屏图片的状态,本申请实施例所提供的一种截屏方法还可以包括:实时展示包含之前最近一次截屏操作所生成的拼接图片的缩略图的浮层。
其中,包含缩略图的浮层在电子设备屏幕中的位置可以根据实际情况设定,举例而言,如图9所示,包含拼接图的缩略图的浮层2位于屏幕内容1左侧,当然,可以位于右侧,等等,这都是合理的。另外,需要说明的是,该包含缩略图的浮层可以为不作为屏幕内容的特殊浮层,不但可以从视觉效果上区分屏幕内容和该缩略图,而且,避免截屏操作执行时将该缩略图作为屏幕内容进行截取;而本领域技术人员可以理解的是,不作为屏幕内容的特殊浮层可以通过现有技术来实现,在此不做介绍。
相应于上述方法实施例,本申请实施例还提供了一种截屏装置,应用于电子设备,如图3所示,所述装置可以包括:
滚动截屏指令获得模块310、初始截屏图片获得模块320、滚动截屏图片生成模块330和滚动截屏图片展示模块340;其中,
所述滚动截屏指令获得模块310,用于获得滚动截屏指令;
所述初始截屏图片获得模块320,用于对当前屏幕内容执行截屏操作,获得初始截屏图片;
所述滚动截屏图片生成模块330,用于基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中,所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;
所述滚动截屏图片展示模块340,用于展示所述滚动截屏图片。
与现有技术相比,通过本方案,用户仅仅需要发出滚动截屏指令便可以自动生成一张滚动截屏图片,避免了用户多次手动截屏操作和生成多个文件,因此,可以解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题。
具体的,所述滚动截屏图片生成模块330包括:接口调用子模块、检测子模块、图片拼接子模块和滚动截屏图片生成子模块,所述图片拼接子模块包括备用截屏图片获得单元和图片拼接单元;其中,
所述接口调用子模块,用于调用预定系统接口以自动滚动屏幕内容;
所述检测子模块,用于检测预定截屏条件是否被满足以及检测预定截屏结束条件是否被满足;
所述备用截屏图片获得单元,用于当所述检测模块检测到预定截屏条件被满足时,暂停对所述预定系统接口的调用,对当前屏幕内容执行截屏操作,获得备用截屏图片;
所述图片拼接单元,用于根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,并触发所述接口调用子模块继续执行调用预定系统接口的步骤,其中,所述初始截屏图片作为第一次截屏操作所生成的拼接图片;
所述滚动截屏图片生成子模块,用于当所述检测模块检测到预定截屏结束条件被满足时,基于最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
进一步的,所述图片拼接单元包括滚动距离计算子单元、图层拼合子单元和拼接图片确定子单元;其中,
所述滚动距离计算子单元,用于计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离;
所述图层拼合子单元,用于基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作;
所述拼接图片确定子单元,用于将执行图层拼合操作所形成的图片确定为本次截屏操作所对应的拼接图片。
具体的,所述滚动距离计算子单元具体用于:
根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片的共有图片内容所在的区域,计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离。
具体的,在第一种实现方式中,所述图层拼合子单元具体用于:
将该备用截屏图片向该备用截屏图片的底部边缘方向移动所述滚动距离,其中,该备用截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该备用截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
具体的,在第二种实现方式中,所述图层拼合子单元具体用于:
对该备用截屏图片的预定大小的顶部区域执行裁剪操作,以获得裁剪后的部分截屏图片;
将该部分截屏图片向该部分截屏图片底部边缘方向移动所述滚动距离,其中,该部分截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该部分截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
对该部分截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
具体的,在第一种实现方式中,所述滚动截屏图片生成子模块包括:第一滚动截屏图片生成单元;其中,
所述第一滚动截屏图片生成单元,用于当所述检测模块检测到预定截屏结束条件被满足时,将基于之前最近一次截屏操作所生成的拼接图片确定为所述滚动截屏指令所对应的滚动截屏图片。
具体的,在第二种实现方式中,所述滚动截屏图片生成子模块包括:修正图片获得单元和第二滚动截屏图片生成单元;其中,
所述修正图片获得单元,用于对截屏结束条件被满足时的屏幕内容执行截屏操作,并将该截屏操作所生成的截屏图片作为修正图片;
所述第二滚动截屏图片生成单元,用于根据所述修正图片和之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
具体的,所述检测子模块所检测的预定截屏条件可以包括:
相对于之前最近一次截屏操作发生时滚动预定行数的像素点;
或者,
相对于之前最近一次截屏操作发生时滚动预定长度。
具体的,所述检测子模块所检测的预定截屏结束条件可以包括:
接收到用户发出的截屏结束指令;
或者,
预定截屏条件已无法被满足。
更进一步的,本申请实施例所提供的一种截屏装置还可以包括:
浮层显示模块,用于实时展示包含之前最近一次截屏操作所生成的拼接图片的缩略图的浮层。
相应于上述方法实施例,本申请实施例还提供了一种存储介质,用于存储应用程序,所述应用程序用于在运行时执行:本申请实施例所提供的截屏方法;具体的,所述截屏方法,可以包括如下步骤:
获得滚动截屏指令;
对当前屏幕内容执行截屏操作,获得初始截屏图片;
基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中,所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;
展示所述滚动截屏图片。
本实施例中,存储介质存储有在运行时执行本申请实施例所提供的截屏方法的应用程序,因此能够实现:避免了用户多次手动截屏操作和生成多个文件,可以解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题。
相应于上述方法实施例,本申请实施例还提供了一种应用程序,用于在运行时执行:本申请实施例所提供的截屏方法;具体的,所述截屏方法,可以包括如下步骤:
获得滚动截屏指令;
对当前屏幕内容执行截屏操作,获得初始截屏图片;
基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中,所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;
展示所述滚动截屏图片。
本实施例中,应用程序在运行时执行本申请实施例所提供的截屏方法,因此能够实现:避免了用户多次手动截屏操作和生成多个文件,可以解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题。
相应于上述方法实施例,本申请实施例还提供了一种电子设备,包括:处理器、存储器、通信接口和总线;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
所述存储器存储可执行程序代码;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:本申请实施例所提供的截屏方法;具体的,所述截屏方法,可以包括如下步骤:
获得滚动截屏指令;
对当前屏幕内容执行截屏操作,获得初始截屏图片;
基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中,所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;
展示所述滚动截屏图片。
在实际应用中,该电子设备可以智能手机、平板电脑、笔记本电脑等设备。
本实施例中,该电子设备的处理器通过读取存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,该程序在运行时执行本申请实施例所提供的截屏方法,因此能够实现:避免了用户多次手动截屏操作和生成多个文件,可以解决现有技术中对连续多屏内容截屏时,用户操作繁琐且多个文件不易保存的问题。
需要强调的是,对于电子设备、应用程序以及存储介质实施例而言,由于其所涉及的方法内容基本相似于前述的方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同 之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。

Claims (18)

  1. 一种截屏方法,其特征在于,应用于电子设备,所述方法包括:
    获得滚动截屏指令;
    对当前屏幕内容执行截屏操作,获得初始截屏图片;
    基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中,所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;
    展示所述滚动截屏图片。
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述初始截屏图片和通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,包括:
    调用预定系统接口以自动滚动屏幕内容;
    检测预定截屏条件是否被满足以及检测预定截屏结束条件是否被满足;
    当检测到预定截屏条件被满足时,暂停对所述预定系统接口的调用,对当前屏幕内容执行截屏操作,获得备用截屏图片,根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,并继续执行调用预定系统接口的步骤,其中,所述初始截屏图片作为第一次截屏操作所生成的拼接图片;
    当检测到预定截屏结束条件被满足时,基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
  3. 根据权利要求2所述的方法,其特征在于,根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,包括:
    计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离;
    基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作;
    将执行图层拼合操作所形成的图片确定为本次截屏操作所对应的拼接图片。
  4. 根据权利要求3所述的方法,其特征在于,计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离,包括:
    根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片的共有图片内容所在的区域,计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离。
  5. 根据权利要求3所述的方法,其特征在于,所述基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作,包括:
    将该备用截屏图片向该备用截屏图片的底部边缘方向移动所述滚动距离,其中,该备用截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该备用截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
    对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
  6. 根据权利要求3所述的方法,其特征在于,所述基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作,包括:
    对该备用截屏图片的预定大小的顶部区域执行裁剪操作,以获得裁剪后的部分截屏图片;
    将该部分截屏图片向该部分截屏图片底部边缘方向移动所述滚动距离,其中,该部分截屏图片和之前最近一次截屏操作所生成的拼接图片在被移动之前位于同一水平位置,且该部分截屏图片在前,之前最近一次截屏操作所生成的截屏图片在后;
    对该部分截屏图片和之前最近一次截屏操作所生成的拼接图片执行图层拼合操作。
  7. 根据权利要求2所述的方法,其特征在于,所述基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片,包括:
    将之前最近一次截屏操作所生成的拼接图片确定为所述滚动截屏指令所对应的滚动截屏图片。
  8. 根据权利要求2所述的方法,其特征在于,所述基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片,包括:
    对截屏结束条件被满足时的屏幕内容执行截屏操作,并将该截屏操作所生成的截屏图片作为修正图片;
    根据所述修正图片和之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
  9. 根据权利要求2所述的方法,其特征在于,所述预定截屏条件包括:
    相对于之前最近一次截屏操作发生时滚动预定行数的像素点;
    或者,
    相对于之前最近一次截屏操作发生时滚动预定长度。
  10. 根据权利要求2所述的方法,其特征在于,所述预定截屏结束条件包括:
    接收到用户发出的截屏结束指令;
    或者,
    预定截屏条件已无法被满足。
  11. 根据权利要求2所述的方法,其特征在于,还包括:
    实时展示包含之前最近一次截屏操作所生成的拼接图片的缩略图的浮层。
  12. 一种截屏装置,其特征在于,应用于电子设备,所述装置包括:
    滚动截屏指令获得模块、初始截屏图片获得模块、滚动截屏图片生成模块和滚动截屏图片展示模块;其中,
    所述滚动截屏指令获得模块,用于获得滚动截屏指令;
    所述初始截屏图片获得模块,用于对当前屏幕内容执行截屏操作,获得初始截屏图片;
    所述滚动截屏图片生成模块,用于基于所述初始截屏图片以及通过对预定系统接口进行调用,生成所述滚动截屏指令所对应的滚动截屏图片,其中, 所述预定系统接口为通过被调用能够实现自动滚动屏幕内容的接口;
    所述滚动截屏图片展示模块,用于展示所述滚动截屏图片。
  13. 根据权利要求12所述的装置,其特征在于,所述滚动截屏图片生成模块包括:接口调用子模块、检测子模块、图片拼接子模块和滚动截屏图片生成子模块,所述图片拼接子模块包括备用截屏图片获得单元和图片拼接单元;其中,
    所述接口调用子模块,用于调用预定系统接口以自动滚动屏幕内容;
    所述检测子模块,用于检测预定截屏条件是否被满足以及检测预定截屏结束条件是否被满足;
    所述备用截屏图片获得单元,用于当所述检测模块检测到预定截屏条件被满足时,暂停对所述预定系统接口的调用,对当前屏幕内容执行截屏操作,获得备用截屏图片;
    所述图片拼接单元,用于根据该备用截屏图片和之前最近一次截屏操作所生成的拼接图片,生成本次截屏操作所对应的拼接图片,并触发所述接口调用子模块继续执行调用预定系统接口的步骤,其中,所述初始截屏图片作为第一次截屏操作所生成的拼接图片;
    所述滚动截屏图片生成子模块,用于当所述检测模块检测到预定截屏结束条件被满足时,基于之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
  14. 根据权利要求13所述的装置,其特征在于,所述图片拼接单元包括滚动距离计算子单元、图层拼合子单元和拼接图片确定子单元;其中,
    所述滚动距离计算子单元,用于计算本次截屏操作的执行时刻相对于之前最近一次截屏操作的执行时刻之间屏幕内容的滚动距离;
    所述图层拼合子单元,用于基于所述滚动距离,对该备用截屏图片和之前最近一次截屏操作所生成的拼接图片进行图层拼合操作;
    所述拼接图片确定子单元,用于将执行图层拼合操作所形成的图片确定为本次截屏操作所对应的拼接图片。
  15. 根据权利要求13所述的装置,其特征在于,所述滚动截屏图片生成子模块包括:修正图片获得单元和第二滚动截屏图片生成单元;其中,
    所述修正图片获得单元,用于对截屏结束条件被满足时的屏幕内容执行截屏操作,并将该截屏操作所生成的截屏图片作为修正图片;
    所述第二滚动截屏图片生成单元,用于根据所述修正图片和之前最近一次截屏操作所生成的拼接图片,确定所述滚动截屏指令所对应的滚动截屏图片。
  16. 一种存储介质,其特征在于,用于存储应用程序,所述应用程序用于在运行时执行:权利要求1-11任一项所述的截屏方法。
  17. 一种应用程序,其特征在于,用于在运行时执行:权利要求1-11任一项所述的截屏方法。
  18. 一种电子设备,其特征在于,包括:处理器、存储器、通信接口和总线;
    所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;
    所述存储器存储可执行程序代码;
    所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:权利要求1-11任一项所述的截屏方法。
PCT/CN2016/090686 2015-08-24 2016-07-20 一种截屏方法及装置 WO2017032189A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510522992.9 2015-08-24
CN201510522992.9A CN105094617A (zh) 2015-08-24 2015-08-24 一种截屏方法及装置

Publications (1)

Publication Number Publication Date
WO2017032189A1 true WO2017032189A1 (zh) 2017-03-02

Family

ID=54575195

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/090686 WO2017032189A1 (zh) 2015-08-24 2016-07-20 一种截屏方法及装置

Country Status (2)

Country Link
CN (1) CN105094617A (zh)
WO (1) WO2017032189A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007833A (zh) * 2019-02-27 2019-07-12 深圳点猫科技有限公司 一种实现终端屏幕滚动截图的智能编程实现方法及装置

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094617A (zh) * 2015-08-24 2015-11-25 北京锤子数码科技有限公司 一种截屏方法及装置
CN106843665B (zh) * 2015-12-04 2021-10-01 北京奇虎科技有限公司 一种截图方法、装置及终端设备
CN105549845B (zh) * 2015-12-09 2019-03-26 惠州Tcl移动通信有限公司 一种基于移动终端的页面连续截图方法、系统及移动终端
WO2017118391A1 (zh) * 2016-01-05 2017-07-13 腾讯科技(深圳)有限公司 屏幕截图方法及屏幕截图装置
CN105718143A (zh) * 2016-01-19 2016-06-29 腾讯科技(深圳)有限公司 屏幕截图方法及屏幕截图装置
CN105760057A (zh) * 2016-02-26 2016-07-13 努比亚技术有限公司 截屏装置和方法
CN105808659B (zh) * 2016-02-29 2019-03-05 努比亚技术有限公司 移动终端及其网页截图方法
CN105739873B (zh) * 2016-03-10 2018-12-04 努比亚技术有限公司 一种截屏方法及终端
CN105761211A (zh) * 2016-03-30 2016-07-13 努比亚技术有限公司 移动终端拼接截图方法及装置
CN105955604A (zh) * 2016-04-20 2016-09-21 乐视控股(北京)有限公司 截屏方法及装置
CN105892868B (zh) * 2016-04-22 2019-08-06 北京小米移动软件有限公司 截屏方法和装置
CN107450900B (zh) * 2016-06-01 2021-01-29 阿里巴巴(中国)有限公司 一种截图方法及装置
CN106127676B (zh) * 2016-06-17 2019-01-25 许之敏 一种快速截取及合成多屏幕长截图的方法
CN106251290A (zh) * 2016-07-26 2016-12-21 成都风来科技有限公司 一种连续多屏截图方法及其人机交互方式
CN106708359A (zh) * 2016-08-12 2017-05-24 乐视控股(北京)有限公司 截屏处理方法及装置
CN107957841B (zh) * 2016-10-17 2021-03-16 腾讯科技(深圳)有限公司 滚动截屏方法及装置
CN107967099A (zh) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 一种终端截屏的方法、装置及移动终端
CN106527906A (zh) * 2016-10-31 2017-03-22 维沃移动通信有限公司 一种截图方法及移动终端
CN106502507A (zh) * 2016-11-01 2017-03-15 上海传英信息技术有限公司 截屏方法和移动终端
CN106775301A (zh) * 2016-11-29 2017-05-31 珠海市魅族科技有限公司 一种终端的截图方法和终端设备
CN108319484B (zh) * 2017-05-17 2021-07-09 腾讯科技(深圳)有限公司 一种应用页面的处理方法、装置及存储介质
CN107168625A (zh) * 2017-06-05 2017-09-15 深圳市金立通信设备有限公司 一种截屏方法及终端
CN108829315A (zh) * 2018-05-24 2018-11-16 上海爱优威软件开发有限公司 一种基于终端控制的图像合成方法及系统
CN109189296A (zh) * 2018-07-12 2019-01-11 Oppo(重庆)智能科技有限公司 截屏方法、装置、移动终端以及存储介质
CN109271081B (zh) * 2018-07-28 2019-09-20 华为技术有限公司 滚动截屏的方法及电子设备
CN110888576A (zh) * 2018-09-10 2020-03-17 珠海格力电器股份有限公司 一种截图方法和装置
CN109388304B (zh) * 2018-09-28 2021-05-11 维沃移动通信有限公司 一种截屏方法及终端设备
CN109656461B (zh) * 2018-12-20 2020-09-22 维沃移动通信有限公司 一种截屏方法和终端
CN110109593B (zh) * 2019-04-29 2021-04-02 维沃移动通信有限公司 一种截屏方法及终端设备
CN110058918B (zh) * 2019-04-29 2023-09-19 努比亚技术有限公司 图片处理方法、可穿戴设备及计算机可读存储介质
CN113791722A (zh) * 2021-09-13 2021-12-14 统信软件技术有限公司 一种截图处理方法、计算设备及可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681829A (zh) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 一种屏幕截图方法、装置及通讯客户端
CN102779008A (zh) * 2012-06-26 2012-11-14 奇智软件(北京)有限公司 一种屏幕截图方法和系统
CN104615343A (zh) * 2013-11-04 2015-05-13 中兴通讯股份有限公司 一种终端截图的方法及装置
WO2015119756A1 (en) * 2014-02-04 2015-08-13 Google Inc. Persistent media player
CN105094617A (zh) * 2015-08-24 2015-11-25 北京锤子数码科技有限公司 一种截屏方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681829A (zh) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 一种屏幕截图方法、装置及通讯客户端
CN102779008A (zh) * 2012-06-26 2012-11-14 奇智软件(北京)有限公司 一种屏幕截图方法和系统
CN104615343A (zh) * 2013-11-04 2015-05-13 中兴通讯股份有限公司 一种终端截图的方法及装置
WO2015119756A1 (en) * 2014-02-04 2015-08-13 Google Inc. Persistent media player
CN105094617A (zh) * 2015-08-24 2015-11-25 北京锤子数码科技有限公司 一种截屏方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007833A (zh) * 2019-02-27 2019-07-12 深圳点猫科技有限公司 一种实现终端屏幕滚动截图的智能编程实现方法及装置

Also Published As

Publication number Publication date
CN105094617A (zh) 2015-11-25

Similar Documents

Publication Publication Date Title
WO2017032189A1 (zh) 一种截屏方法及装置
US20210056253A1 (en) Method and apparatus for generating image file
US8675113B2 (en) User interface for a digital camera
JP6133318B2 (ja) クロス・ウィンドウ・アニメーション
US20130191785A1 (en) Confident item selection using direct manipulation
US20170300227A1 (en) Method for adjusting input virtual keyboard and input apparatus
CN105373326B (zh) 数据处理系统及方法
US20130063384A1 (en) Electronic apparatus, display method, and program
CN104536658A (zh) 在终端中生成截屏图像的设备和方法
US10101901B2 (en) Method for deleting email and terminal device
JP2014534533A5 (zh)
US9880721B2 (en) Information processing device, non-transitory computer-readable recording medium storing an information processing program, and information processing method
KR101669079B1 (ko) 표시제어장치 및 그 제어 방법
US20160037056A1 (en) Information processing apparatus, information processing method, and program
CN110297681B (zh) 图像处理方法、装置、终端及存储介质
KR102205283B1 (ko) 적어도 하나의 어플리케이션을 실행하는 전자 장치 및 그 제어 방법
US9529518B2 (en) Information processing device, information processing method, and information processing program
CN104461312A (zh) 一种显示控制方法及电子设备
US20180152622A1 (en) Mobile terminal-based photographing method and mobile terminal
US20190324613A1 (en) Display interface systems and methods
US20140040821A1 (en) Zooming Method
WO2016141597A1 (zh) 一种触控方法、装置、终端及终端上的图形用户界面
US20140351745A1 (en) Content navigation having a selection function and visual indicator thereof
WO2019037481A1 (zh) 一种双屏终端图片发送方法和装置
US20150015501A1 (en) Information display apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1