CN110568973B - Screenshot method, screenshot device, storage medium and terminal equipment - Google Patents

Screenshot method, screenshot device, storage medium and terminal equipment Download PDF

Info

Publication number
CN110568973B
CN110568973B CN201910849454.9A CN201910849454A CN110568973B CN 110568973 B CN110568973 B CN 110568973B CN 201910849454 A CN201910849454 A CN 201910849454A CN 110568973 B CN110568973 B CN 110568973B
Authority
CN
China
Prior art keywords
sub
screen
screenshot
target picture
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910849454.9A
Other languages
Chinese (zh)
Other versions
CN110568973A (en
Inventor
李备
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910849454.9A priority Critical patent/CN110568973B/en
Publication of CN110568973A publication Critical patent/CN110568973A/en
Application granted granted Critical
Publication of CN110568973B publication Critical patent/CN110568973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes

Abstract

The disclosure provides a screenshot method, a screenshot device, a computer-readable storage medium and terminal equipment, and relates to the field of human-computer interaction. The method is applied to terminal equipment, a part of a target picture is displayed in a screen of the terminal equipment, and the size of the target picture in at least one direction is larger than that of the screen; the method comprises the following steps: responding to the received screenshot operation, and acquiring the positions of a plurality of sub-pictures formed by splitting the target picture in the target picture, wherein the size of each sub-picture in any direction is not larger than that of the screen; moving the target picture in sequence according to the positions of the plurality of sub-pictures in the target picture, so that the plurality of sub-pictures are moved into the screen in sequence, and capturing the view in the screen after moving each time to obtain a plurality of sub-screenshots; and splicing the plurality of sub-screenshots to obtain a screenshot containing the target picture. The screenshot method can simplify the screenshot process of the long picture and improve the user experience.

Description

Screenshot method, screenshot device, storage medium and terminal equipment
Technical Field
The present disclosure relates to the field of human-computer interaction, and in particular, to a screenshot method, a screenshot device, a computer-readable storage medium, and a terminal device.
Background
As an important and convenient file format, the picture is a common element for people to communicate daily. In order to achieve the purposes of saving, forwarding, sharing, and the like of a page, a screenshot is a common operation when a user uses a terminal device such as a mobile phone, and refers to a computer intercepting a visual image that can be displayed on a screen or other devices, and generating a file in a format such as BMP (Bit Map Picture), PNG (Portable Network Graphics), JPEG (Joint photographic experts Group), and the like.
However, if the screen page to be captured includes a long picture, that is, a picture beyond the screen range, only a part of the content of the long picture can be captured during the screenshot, and the user's requirement cannot be met, or the user needs to capture a screenshot of each part of the long picture separately, but such an operation mode is inconvenient and the user experience is low.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a screenshot method, a screenshot device, a computer-readable storage medium and a terminal device, so as to overcome the problem of inconvenient screenshot operation for a long picture in the prior art to a certain extent.
According to a first aspect of the present disclosure, a screenshot method is provided, which is applied to a terminal device, where a part of a target picture is displayed in a screen of the terminal device, and a size of the target picture in at least one direction is larger than a size of the screen; the method comprises the following steps: responding to the received screenshot operation, and acquiring the positions of a plurality of sub-pictures formed by splitting the target picture in the target picture, wherein the size of each sub-picture in any direction is not larger than that of the screen; moving the target picture in sequence according to the positions of the plurality of sub-pictures in the target picture, so that the plurality of sub-pictures are moved into the screen in sequence, and capturing the view in the screen after moving each time to obtain a plurality of sub-screenshots; and splicing the plurality of sub-screenshots to obtain a screenshot containing the target picture.
In an exemplary embodiment of the present disclosure, a size of the target picture in a first direction is larger than a size of the screen, a size in a second direction is smaller than or equal to the size of the screen, and the first direction is perpendicular to the second direction; the size of the sub-picture in the first direction is equal to the size of the screen.
In an exemplary embodiment of the present disclosure, the screenshot of the view in the screen includes: and carrying out screenshot on the sub-picture in the screen to obtain the sub-screenshot only comprising the sub-picture.
In an exemplary embodiment of the present disclosure, before sequentially moving the positions of the target pictures in the screen, a screenshot is performed on a view in the screen to obtain a first screenshot, and the first screenshot is placed on a top layer in the screen for display.
In an exemplary embodiment of the present disclosure, the view in the screen is loaded after each time the position of the target picture in the screen is moved.
In an exemplary embodiment of the present disclosure, the splicing the plurality of sub-screenshots includes: and splicing the plurality of sub-screenshots according to the positions of the plurality of sub-pictures in the target picture.
In an exemplary embodiment of the present disclosure, the screen capture operation includes a touch operation or a key operation.
According to a second aspect of the present disclosure, there is provided a screenshot device applied to a terminal device, where a part of a target picture is displayed in a screen of the terminal device, and a size of the target picture in at least one direction is larger than a size of the screen; the device comprises: the acquisition module is used for responding to the received screenshot operation and acquiring the positions of a plurality of sub-pictures formed by splitting the target picture in the target picture, wherein the size of each sub-picture in any direction is not larger than that of the screen; the screenshot module is used for moving the target picture in sequence according to the positions of the sub-pictures in the target picture so that the sub-pictures are moved into the screen in sequence, and screenshot is carried out on the view in the screen after each movement so as to obtain a plurality of sub-screenshots; and the splicing module is used for splicing the plurality of sub-screenshots to obtain a screenshot containing the target picture.
In an exemplary embodiment of the present disclosure, a size of the target picture in a first direction is larger than a size of the screen, a size in a second direction is smaller than or equal to the size of the screen, and the first direction is perpendicular to the second direction; the size of the sub-picture in the first direction is equal to the size of the screen.
In an exemplary embodiment of the present disclosure, the screenshot module is configured to perform screenshot on a sub-picture in the screen to obtain a screenshot that only includes the sub-picture.
In an exemplary embodiment of the present disclosure, the screenshot module is further configured to capture a view in the screen before sequentially moving the position of the target picture in the screen, to obtain a first screenshot, and place the first screenshot in a top layer for display in the screen.
In an exemplary embodiment of the disclosure, the screenshot module is configured to load the view in the screen after moving the position of the target picture in the screen each time.
In an exemplary embodiment of the present disclosure, the splicing module is configured to splice the plurality of sub-screenshots according to positions of the plurality of sub-pictures in the target picture.
In an exemplary embodiment of the present disclosure, the screen capture operation includes a touch operation or a key operation.
According to a third aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
According to a fourth aspect of the present disclosure, there is provided a terminal device comprising: a processor; a memory for storing executable instructions of the processor; and a display screen for displaying a part of a target picture, the size of the target picture in at least one direction being larger than the size of the display screen; wherein the processor is configured to implement the method of any one of the above via execution of the executable instructions to intercept a screenshot containing the target picture.
The exemplary embodiments of the present disclosure may have the following advantageous effects:
according to the screenshot method, the screenshot device, the storage medium and the terminal device, the positions of the sub-pictures formed by splitting the target picture in the screen are sequentially moved, the view in the screen after each movement is screenshot, and finally the corresponding sub-screenshots of all the sub-pictures are spliced to obtain the screenshot of the target picture. On one hand, after the user performs screenshot operation, the target picture can be automatically moved and screenshot according to the position of the sub-picture in the target picture, and finally the screenshot of the target picture is spliced; on the other hand, the method can be applied to a lazy loading and multiplexing mechanism mode, the whole picture does not need to be loaded in advance, the memory is saved, the screenshot quality can be ensured, and the user requirements are met.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained from those drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a schematic diagram of a lazy load mechanism;
FIG. 2 shows a schematic screenshot in the related art;
FIG. 3 illustrates a flow diagram of a screenshot method in an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating a moving target picture in an embodiment of the disclosure;
FIG. 5 shows a schematic diagram of a stitched sub-screenshot in an embodiment of the present disclosure;
FIG. 6 shows a block diagram of a screenshot device in an embodiment of the present disclosure;
FIG. 7 illustrates a computer-readable storage medium for implementing the above-described method in an embodiment of the present disclosure;
fig. 8 schematically shows a terminal device for implementing the above method in the embodiment of the present disclosure.
Detailed Description
Exemplary embodiments will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The terms "a", "an", "the", "said" and "at least one" are used herein to denote the presence of one or more elements/components/parts/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first" and "second", etc. are used merely as labels, and are not limiting on the number of their objects.
The view lazy loading and multiplexing mechanism is a common mode in page view loading and display. Specifically, the view lazy loading is an on-demand loading manner, which means that when a terminal screen needs to display a view, view content is loaded into a memory for rendering and is finally displayed in the screen, and content which does not need to be displayed is not preloaded into the memory, and referring to fig. 1, content 100 displayed on the screen and content 110 not displayed are shown. The multiplexing mechanism refers to that when the view is loaded into the memory, whether resources are created in the multiplexing pool or not is preferably searched, if the resources are created, the multiplexing pool is directly loaded, and if the resources are not created, the multiplexing pool is created again and then called.
In a scheme of the related art, based on a lazy loading and multiplexing mechanism, only a view displayed in a screen of a terminal device can be loaded and rendered, so that when a long picture needs to be captured, only the content displayed in the screen can be captured, as shown in fig. 2, a screenshot 200 formed on the screen of the terminal device under the lazy loading and multiplexing mechanism is shown, and it can be seen that a navigation bar and the picture in the screen are both captured, so that a user needs to perform manual screenshot for many times, and then the screenshot is cut and spliced to form the long picture.
In another scheme of the related art, when a long picture needs to be captured, the long picture is rendered and loaded into a memory without adopting a lazy loading and multiplexing mechanism, and then the long picture is obtained by storing the picture.
In view of one or more of the above problems, the present example embodiment first provides a screenshot method. The method can be applied to terminals with screens, such as smart phones, tablet computers, portable computers, and the like; the local part of the target picture is displayed in the screen of the terminal, the size of the target picture in at least one direction is larger than that of the screen, for example, the target picture exceeds the screen in the length direction and is a long picture, or exceeds the screen in the width direction and is a wide picture, or exceeds the screen in the length direction and the width direction, and the like, under the condition, the screen cannot completely display the target picture.
Fig. 3 shows a method flow of the present exemplary embodiment, which may include the following steps S310 to S330:
and S310, responding to the received screenshot operation, and acquiring the positions of a plurality of sub-pictures formed by splitting the target picture in the target picture, wherein the sizes of the sub-pictures in any direction are not larger than the size of the screen.
In this exemplary embodiment, the screenshot operation refers to an instruction for a user to perform the screenshot operation on the terminal, for example: the terminal is a touch terminal, the screenshot operation may be a touch operation on a specific area of a touch screen or a specific gesture, or the screenshot operation may be an operation on a specific key of the terminal, for example, a user presses a volume "+" and a screen locking key at the same time to trigger the screenshot operation, or an operation based on gesture recognition, for example, the user blinks three eyes to a camera of the terminal device to trigger the screenshot operation, and the like.
The sub-picture is a partial picture of the target picture, and the size of the sub-picture in any direction is not larger than that of the screen, namely, the sub-picture can be completely displayed in the screen.
In the present exemplary embodiment, the target picture may be split in advance according to the size of the screen, for example, a numerical range of the length and width of the sub-picture is set, and then the sub-picture is split randomly within the range, or the size of each sub-picture is specified, and the splitting is performed; of course, the target picture may also be split after the user inputs the screenshot operation. It should be noted that splitting the target picture into sub-pictures may be a process executed in the background of the system, and the splitting process is not displayed in the screen. The exemplary embodiment may obtain a position of each sub-picture in the target picture, for example, a pixel coordinate of a center of each sub-picture in the target picture, or a distance between each sub-picture and an edge of the target picture along the splitting direction, or the like.
And S320, moving the target picture in sequence according to the positions of the plurality of sub-pictures in the target picture, so that the plurality of sub-pictures are moved into the screen in sequence, and capturing the view in the screen after moving each time to obtain a plurality of sub-screenshots.
In the present exemplary embodiment, the sub-pictures are sequentially arranged in the split order of the target picture, the target picture is sequentially moved in the order, and is placed within the screen, for example, the center of the next sub-picture is moved to the center of the screen at each movement. And loading the view of the sub-picture into a screen during each movement, and then carrying out screenshot to obtain one sub-screenshot. In an optional implementation manner, only a part of the screenshot of the sub-picture is captured, and the part except the sub-picture is not captured, so that the obtained screenshot is the sub-picture; in an alternative embodiment, all partial screenshots in the screen may also be taken, and the obtained screenshot includes the sub-picture and partial contents except the sub-picture.
In an alternative embodiment, step S320 may be specifically implemented by the following steps:
and sequentially moving the positions of the sub-pictures according to the splitting sequence of the target picture, and placing the sub-pictures in a terminal screen.
And sequentially loading and rendering the sub-pictures in the terminal screen.
And carrying out screenshot on the sub-pictures in the screen to obtain a plurality of sub-screenshots corresponding to the sub-pictures.
And S330, splicing the plurality of sub-screenshots to obtain a screenshot containing the target picture.
In this exemplary embodiment, after performing the screenshot operation on all the sub-pictures, the multiple sub-screenshots may be spliced according to the positions of the multiple sub-pictures in the target picture, so as to obtain the screenshot including the target picture. If only the sub-picture is cut in step S320, the finally obtained screenshot is the target picture, and if the part other than the sub-picture is also cut in step S320, the finally obtained screenshot includes the target picture and other contents in the page.
It should be noted that, in step S310, the system of the terminal may obtain and record the position of each sub-picture in the target picture, so that after the user performs the screenshot operation, the target picture may be automatically moved according to the position of each sub-picture, and the screenshot is performed, and finally all the sub-screenshots are spliced, where the process may be automatically implemented by using a code.
When the long view is cut, the size of the target picture in only one direction is generally larger than the size of the screen, specifically, the size of the target picture in a first direction may be larger than the size of the screen, and the size in a second direction is smaller than or equal to the size of the screen, and the first direction and the second direction are perpendicular to each other, for example, the first direction may be a length direction, and the second direction may be a width direction. In this case, the target picture may be split into sub-pictures along the first direction, that is, the size of the sub-picture in the first direction is smaller than that of the target picture, and the size in the second direction is equal to that of the target picture. Such a splitting is relatively simple and efficient.
Further, the size of the sub-picture in the first direction may be made to coincide with the screen size. Specifically, let the size of the target picture in the first direction be P, the sizes of the sub-pictures in the first direction be equal, let Q, let the screen size in the first direction be R, let Q be less than or equal to R, and the number of sub-pictures
Figure BDA0002196401680000071
Meaning that P/Q is rounded up, the value of N is minimal when Q takes the maximum value R. Therefore, the number of the sub-pictures obtained in the way is the minimum, the moving and screenshot times are the minimum when the target picture is moved to intercept the sub-pictures, and the processing is convenient. Of course, if the size of the target picture in the first direction is not an integer multiple of the screen size, the size of the last sub-picture in the first direction may be smaller than the size of the screen.
In the process of moving the sub-pictures to the screen for screenshot in sequence, the picture loading mode can adopt lazy loading (loading as required), namely, the picture part displayed on the terminal screen is loaded first, and when the page is switched to another position, other picture parts are loaded. In addition, the multiplexing mechanism is adopted to load the sub-pictures, so that the memory consumption caused by the fact that the sub-pictures are loaded to create resources each time is reduced.
Therefore, in the exemplary embodiment, the sub-picture is only loaded and rendered when the sub-picture is moved to the terminal screen, so that the obtained screenshot quality of the target picture is optimal, and the memory consumption is less.
In the present exemplary embodiment, the moving manner of the target picture within the screen may include: the scrolling, the translating and the overturning can be any combination of one or more of the scrolling, the translating and the overturning operations, and the user can set the operations by himself.
According to the above description, in an alternative embodiment, the size of the target picture in the first direction is larger than the size of the terminal device screen, the size in the second direction is smaller than or equal to the size of the terminal device screen, and the splitting direction of the target picture split into the sub-pictures is expanded along the first direction. Specifically, the scrolling operation refers to that the position of the sub-picture in the screen is switched to move around a certain axis and a circle with a certain diameter along a first direction, and when the sub-picture runs around the axis for one circle, the positions of all the sub-pictures are the same as the positions before the sub-picture is moved; the translation operation means that all points on the sub-picture move in the same plane along the first direction by the same distance along the linear direction of the first direction until the next sub-picture is completely displayed; the turning operation means that the first sub-picture does a 180-degree motion around a turning axis, the first sub-picture is hidden after turning, the second sub-picture is displayed, or the second sub-picture is covered on the first sub-picture, and the purpose of moving the sub-pictures can be achieved.
And when the operation of moving the sub-picture into the screen is completed each time, capturing the moved sub-picture view to obtain a plurality of sub-screenshot views.
In an optional implementation manner, the sizes of the target picture in the first direction and the second direction are both larger than the size of the screen of the terminal device, the splitting direction in which the target picture is split into the sub-pictures is successively expanded along the first direction and the second direction, and the order of the splitting direction is not fixed, which is only an exemplary illustration here.
According to the above description, in order to switch the positions of all the sub-pictures to the screen of the terminal device to capture the screenshot, the splitting positions of all the sub-pictures of the target picture in the second direction are obtained, taking a rolling operation as an example, starting from the current position, moving the position of the current sub-picture in the screen along the first direction around another determined axis as a center, making a circular movement with a determined diameter, when the position of the sub-picture along all the sub-pictures in the first direction runs for one circle around the axis, moving the position of the sub-picture to the next position along the second direction, making the same movement along the first direction until all the sub-pictures appear in the screen, and capturing the view of the sub-picture after each movement to obtain a plurality of sub-screenshots.
It should be noted that the three moving manners of the sub-pictures are only exemplary, and other manners that can cause the sub-pictures to move to the screen in sequence also belong to the protection scope of the present disclosure.
In the present exemplary embodiment, the moving direction of the sub-picture within the screen may be up and down or left and right. Specifically, the size of the target picture in the first direction is larger than the size of a terminal screen, the size of the target picture in the second direction is smaller than or equal to the size of the terminal screen, the splitting direction of the target picture is unfolded along the first direction, and if the vertical direction is taken as the first direction of the target picture, the moving direction of the sub-picture in the screen is up and down; if the horizontal direction is taken as the first direction of the target picture, the moving direction of the sub-picture in the screen is left and right, the sizes of the target picture in the first direction and the second direction are both larger than the size of the screen, the splitting direction of the target picture is successively unfolded along the first direction and the second direction, if the direction of unfolding and splitting at first is vertical, the moving direction of the sub-picture in the screen is up and down, then the direction of unfolding and splitting is horizontal, the moving direction of the sub-picture in the screen is left and right, otherwise, if the direction of unfolding at first is horizontal, the moving direction of the sub-picture in the screen is left and right, and then the direction of unfolding and splitting is up and down.
In this exemplary embodiment, the triggering operation of the moving direction of the sub-picture may be automatically detected by the terminal device, specifically, according to the above description, if the terminal detects that the target picture is larger than the terminal screen size in a certain direction, and the certain direction is taken as the first direction, then the moving direction of the sub-picture is expanded along the first direction of the target picture; and if the size of the target picture in any direction is larger than the screen size of the terminal equipment, selecting one direction as the first moving direction, and selecting the other direction as the rear moving direction.
In an optional implementation manner, after a screenshot operation is detected, positions of multiple sub-pictures formed by splitting a target picture in the target picture are obtained, a current terminal screen display content is a first sub-picture, before positions of the target picture in a screen are sequentially moved, the first sub-picture is subjected to screenshot to obtain a first screenshot, when the positions of the target picture in the screen are sequentially moved, the sub-picture or the screenshot is displayed on a top layer in the screen, as shown in reference to fig. 4, 420 is a sub-picture of the first screenshot, the first screenshot 410 covers movement of the other sub-pictures, and the terminal device screen always displays the first screenshot 410.
In an optional implementation manner, after a screenshot operation is detected, positions of a plurality of sub-pictures split from a target picture in the target picture are obtained, where the content displayed on a current terminal screen is not a first sub-picture, and the screenshot operation step is as follows: and according to the splitting sequence of the target picture, when the sub-pictures are moved in the terminal screen in sequence, loading the sub-pictures into the screen for screenshot, wherein the display content of the terminal screen is not changed along with the moving sequence, namely the view displayed at the current browsing position of the user is always displayed.
According to the above description, the sub-picture moves the screenshot in the terminal device screen, but the page currently browsed by the user is still displayed in the terminal device screen, and therefore, the movement of the target picture does not affect the user to browse the current page. The whole screenshot process realizes no perception of the user, and further improves the user experience.
In this exemplary embodiment, when splicing the sub-screenshots, the sub-screenshots for different situations may be spliced in different manners, for example, the following two embodiments may be included:
in the first embodiment, if the sub-screenshots only contain the sub-pictures, the plurality of sub-screenshots can be directly connected end to end according to the splitting sequence of the sub-pictures in the target picture to form the screenshots of the target picture;
in a second embodiment, if the sub-screenshot includes the sub-picture and the content other than the sub-picture, the sub-screenshot may be formed by splicing the positions of the sub-pictures in the target picture to form a screenshot only including the target picture, and referring to fig. 5, a screenshot 500 in which the sub-screenshots including all the sub-pictures are spliced into the target picture is shown.
In summary, the exemplary embodiments of the present disclosure provide a screenshot method, in which sub-pictures split from a target picture are sequentially moved and placed in a terminal screen, a view in the screen after each movement is captured, and finally, the sub-screenshots corresponding to all the sub-pictures are spliced to obtain a screenshot of the target picture. On one hand, after the user performs screenshot operation, the target picture can be automatically moved and screenshot according to the position of the sub-picture in the target picture, and finally the screenshot of the target picture is spliced, so that the screenshot operation process of the long picture is simplified, the user can finish screenshot of the long picture through one-key operation, and the user experience is improved; on the other hand, the method can be applied to a lazy loading and multiplexing mechanism mode, the whole picture does not need to be loaded in advance, the memory is saved, higher screenshot quality can be realized, and the user requirements are met.
Further, in an exemplary embodiment of the present disclosure, a screenshot device is also provided. The screenshot device is applied to terminal equipment, a local part of a target picture is displayed in a screen of the terminal equipment, and the size of the target picture in at least one direction is larger than that of the screen; referring to fig. 6, the screenshot device 600 may include: an acquisition module 610, a screenshot module 620, and a stitching module 630. Wherein:
an obtaining module 610, configured to obtain, in response to a received screenshot operation, positions of multiple sub-pictures in a target picture, where the sub-pictures are split from the target picture, and a size of each sub-picture in any direction is not greater than a size of a screen;
the screenshot module 620 is configured to sequentially move the target picture according to the positions of the plurality of sub-pictures in the target picture, so that the plurality of sub-pictures are sequentially moved into the screen, and screenshot the view in the screen after each movement to obtain a plurality of sub-screenshots;
and a splicing module 630, configured to splice the multiple sub-screenshots to obtain a screenshot including the target picture.
In an exemplary embodiment of the present disclosure, a size of the target picture in a first direction is larger than a size of the screen, a size in a second direction is smaller than or equal to the size of the screen, and the first direction is perpendicular to the second direction; the size of the sub-picture in the first direction may be equal to the size of the screen.
In an exemplary embodiment of the present disclosure, the screenshot module 620 may be configured to screenshot the sub-picture in the screen, so as to obtain a screenshot containing only the sub-picture.
In an exemplary embodiment of the present disclosure, the screenshot module 620 may further be configured to capture a view in the screen before sequentially moving the position of the target picture in the screen, to obtain a first screenshot, and to place the first screenshot in the screen for top-level display.
In an exemplary embodiment of the present disclosure, the screenshot module 620 may be further configured to load the view in the screen after moving the position of the target picture in the screen each time.
In an exemplary embodiment of the present disclosure, the splicing module 630 may be configured to splice a plurality of sub-screenshots according to positions of the plurality of sub-pictures in the target picture.
In an exemplary embodiment of the present disclosure, the screen capture operation may include a touch operation or a key operation.
The specific details of each module in the above apparatus have been described in detail in the method section, and details of an undisclosed scheme may refer to the method section, and thus are not described again.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiments of the present disclosure.
Referring to fig. 7, a program product 700 for implementing the above method according to an exemplary embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The exemplary embodiment of the present disclosure also provides a terminal device capable of implementing the above method. A terminal apparatus 800 according to this exemplary embodiment of the present disclosure is described below with reference to fig. 8. The terminal device 800 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, terminal device 800 may take the form of a general purpose computing device. The components of terminal device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, the bus 830 connecting different system components (including the memory unit 820 and the processing unit 810), and the display unit 840 include a display screen for displaying a part of a display target picture, the size of the target picture in at least one direction being larger than the size of the display screen.
The storage unit 820 stores program code that may be executed by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above in this specification. For example, processing unit 810 may perform the method steps shown in fig. 3 to capture a screenshot containing a target picture.
The storage unit 820 may include readable media in the form of volatile storage units, such as a random access storage unit (RAM)821 and/or a cache storage unit 822, and may further include a read only storage unit (ROM) 823.
Storage unit 820 may also include a program/utility 824 having a set (at least one) of program modules 825, such program modules 825 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
Terminal device 800 can also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with terminal device 800, and/or with any devices (e.g., router, modem, etc.) that enable terminal device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the terminal device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the terminal device 800 via a bus 830. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the terminal device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (9)

1. A screenshot method is applied to terminal equipment, and a part of a target picture is displayed in a screen of the terminal equipment, wherein the size of the target picture in at least one direction is larger than that of the screen; the method comprises the following steps:
responding to the received screenshot operation, and acquiring the positions of a plurality of sub-pictures formed by splitting the target picture in the target picture, wherein the size of each sub-picture in any direction is not larger than that of the screen;
moving the target picture in sequence according to the positions of the plurality of sub-pictures in the target picture, so that the plurality of sub-pictures are moved into the screen in sequence, and capturing the view in the screen after moving each time to obtain a plurality of sub-screenshots;
after the position of the target picture in the screen is moved each time, loading the view in the screen in a lazy loading mode;
splicing the plurality of sub-screenshots to obtain a screenshot containing the target picture, wherein the process comprises the following steps: if the sub-screenshots only contain sub-pictures, according to the splitting sequence of the sub-pictures in the target picture, carrying out end-to-end connection on the plurality of sub-screenshots to generate screenshots of the target picture; or
And if the sub-screenshot comprises a sub-picture and contents except the sub-picture, splicing the sub-pictures according to the positions of the sub-pictures in the target picture to generate the screenshot only comprising the target picture.
2. The screenshot method of claim 1, wherein the size of the target picture in a first direction is larger than the size of the screen, the size in a second direction is smaller than or equal to the size of the screen, and the first direction is perpendicular to the second direction;
the size of the sub-picture in the first direction is equal to the size of the screen.
3. The screenshot method of claim 1, wherein the screenshot of the view in the screen comprises:
and carrying out screenshot on the sub-picture in the screen to obtain the sub-screenshot only comprising the sub-picture.
4. The screenshot method of claim 1, wherein before sequentially moving the position of the target picture in the screen, the view in the screen is screenshot to obtain a first screenshot, and the first screenshot is displayed on the top layer in the screen.
5. The screenshot method of claim 1, wherein said concatenating the plurality of sub-screenshots comprises:
and splicing the plurality of sub-screenshots according to the positions of the plurality of sub-pictures in the target picture.
6. The screenshot method according to any one of claims 1-5, wherein the screenshot operation comprises a touch operation or a key operation.
7. A screenshot device is applied to a terminal device, and a part of a target picture is displayed in a screen of the terminal device, wherein the size of the target picture in at least one direction is larger than that of the screen; the device comprises:
the acquisition module is used for responding to the received screenshot operation and acquiring the positions of a plurality of sub-pictures formed by splitting the target picture in the target picture, wherein the size of each sub-picture in any direction is not larger than that of the screen;
the screenshot module is used for moving the target picture in sequence according to the positions of the sub-pictures in the target picture, enabling the sub-pictures to move into the screen in sequence, screenshot the view in the screen after moving each time to obtain a plurality of sub-screenshots, and loading the view in the screen in a lazy loading mode after moving the position of the target picture in the screen each time;
a splicing module, configured to splice the multiple sub-screenshots to obtain a screenshot including the target picture, including: if the sub-screenshots only contain sub-pictures, according to the splitting sequence of the sub-pictures in the target picture, carrying out end-to-end connection on the plurality of sub-screenshots to generate screenshots of the target picture; or if the sub-picture comprises the sub-pictures and the contents except the sub-pictures, splicing the sub-pictures according to the positions of the sub-pictures in the target picture to generate the picture shot only comprising the target picture.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
9. A terminal device, comprising:
a processor;
a memory for storing executable instructions of the processor; and
the display screen is used for displaying a part of a target picture, and the size of the target picture in at least one direction is larger than that of the display screen;
wherein the processor is configured to implement the method of any one of claims 1 to 6 via execution of the executable instructions to intercept a screenshot containing the target picture.
CN201910849454.9A 2019-09-09 2019-09-09 Screenshot method, screenshot device, storage medium and terminal equipment Active CN110568973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910849454.9A CN110568973B (en) 2019-09-09 2019-09-09 Screenshot method, screenshot device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910849454.9A CN110568973B (en) 2019-09-09 2019-09-09 Screenshot method, screenshot device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN110568973A CN110568973A (en) 2019-12-13
CN110568973B true CN110568973B (en) 2021-04-06

Family

ID=68778783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910849454.9A Active CN110568973B (en) 2019-09-09 2019-09-09 Screenshot method, screenshot device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN110568973B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111562869B (en) * 2020-03-31 2022-02-25 完美世界(北京)软件科技发展有限公司 Screenshot method and device, storage medium and electronic device
CN111986088B (en) * 2020-08-28 2023-06-30 网易(杭州)网络有限公司 Image processing method, device, storage medium and terminal equipment
CN112527176A (en) * 2020-12-02 2021-03-19 维沃移动通信有限公司 Screen capturing method and screen capturing device
CN114047985A (en) * 2021-10-21 2022-02-15 盐城金堤科技有限公司 Screenshot method, screenshot device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955604A (en) * 2016-04-20 2016-09-21 乐视控股(北京)有限公司 Method and device for screen capture
CN107015739A (en) * 2017-03-07 2017-08-04 惠州Tcl移动通信有限公司 A kind of method and system for intercepting long length screen content

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7577602B2 (en) * 2002-11-26 2009-08-18 Trading Technologies International Inc. Method and interface for consolidating price levels on a trading screen
US20140096046A1 (en) * 2012-09-28 2014-04-03 Oracle International Corporation Composite application framework
CN109656461B (en) * 2018-12-20 2020-09-22 维沃移动通信有限公司 Screen capturing method and terminal
CN110032314B (en) * 2019-03-12 2022-06-10 中国平安人寿保险股份有限公司 Long screen capture method and device, storage medium and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955604A (en) * 2016-04-20 2016-09-21 乐视控股(北京)有限公司 Method and device for screen capture
CN107015739A (en) * 2017-03-07 2017-08-04 惠州Tcl移动通信有限公司 A kind of method and system for intercepting long length screen content

Also Published As

Publication number Publication date
CN110568973A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN110568973B (en) Screenshot method, screenshot device, storage medium and terminal equipment
US10863168B2 (en) 3D user interface—360-degree visualization of 2D webpage content
CN110781688B (en) Machine translation method and electronic equipment
US11003305B2 (en) 3D user interface
US20140189516A1 (en) Video preview display method and terminal device
US9229615B2 (en) Method and apparatus for displaying additional information items
CN105808116A (en) Screen capture method, screen capture device and mobile terminal
EP4343580A1 (en) Media file processing method and apparatus, device, readable storage medium, and product
CN108335342B (en) Method, apparatus and computer program product for multi-person drawing on a web browser
WO2017101390A1 (en) Picture display method and apparatus
CN106970467B (en) Information display method and head-mounted display equipment
CN114416261B (en) Information display method, device, equipment and medium
CN114518820A (en) Icon sorting method and device and electronic equipment
US20140181709A1 (en) Apparatus and method for using interaction history to manipulate content
KR20230061519A (en) Screen capture methods, devices and electronics
US10127715B2 (en) 3D user interface—non-native stereoscopic image conversion
GB2513865A (en) A method for interacting with an augmented reality scene
WO2022194211A1 (en) Image processing method and apparatus, electronic device and readable storage medium
CN116107531A (en) Interface display method and device
CN101650594A (en) Control method according to dynamic images
US20210142706A1 (en) Mobile device with transparent display and scanner
CN112083840A (en) Method, device, terminal and storage medium for controlling electronic equipment
CN112035771A (en) Web-based camera data drawing method and device and electronic equipment
CN112202958B (en) Screenshot method and device and electronic equipment
CN110618771B (en) Content display method, device, terminal and storage medium

Legal Events

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