CN110888576A - Screenshot method and device - Google Patents
Screenshot method and device Download PDFInfo
- Publication number
- CN110888576A CN110888576A CN201811050285.4A CN201811050285A CN110888576A CN 110888576 A CN110888576 A CN 110888576A CN 201811050285 A CN201811050285 A CN 201811050285A CN 110888576 A CN110888576 A CN 110888576A
- Authority
- CN
- China
- Prior art keywords
- image
- down sliding
- display area
- control
- screenshot
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4038—Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
Abstract
The embodiment of the application provides a screenshot method and a screenshot device, which relate to the technical field of image processing, and the screenshot method comprises the following steps: when a screenshot request input by a user is received, screenshot is conducted on a current display interface, and a first image is determined. And controlling the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control, and finally splicing the first image and the second image to generate the screenshot of the screenshot request. When an access request input by a user is received, the first image in the current display interface is intercepted, the up-down sliding control is controlled to slide to update the image in the up-down sliding display area after the first image is intercepted, then the updated image in the up-down sliding display area is intercepted, the first image is spliced and the screenshot is output, screenshot is carried out on a plurality of areas sliding up and down, and the screenshot requirement of the user for intercepting the long screen is met.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to a screenshot method and a screenshot device.
Background
In the process of daily use of intelligent terminal equipment such as a mobile phone, a user often wants to cut a picture at some application interfaces, but the picture exceeds the display range of a screen and needs to slide upwards/downwards to be completely seen, for example, a contact interface in the mobile phone, while the screen-cutting function on the existing intelligent terminal equipment can only cut the content of the whole currently displayed screen but cannot cut the content of the whole long screen.
Disclosure of Invention
In the prior art, when the intelligent device captures the screen of the interface, only the interface displayed by the current screen can be captured, but the problem that the user needs to capture the screen of a plurality of vertically sliding areas together cannot be solved.
The first invention, an embodiment of the present application, provides a screenshot method, including:
receiving a screenshot request input by a user;
screenshot is conducted on the current display interface, and a first image is determined;
controlling an up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control;
and splicing the first image and the second image to generate a screenshot of the screenshot request.
Optionally, the preset position is a position where the up-down sliding control cannot slide;
the upper and lower sliding control that the display area of sliding from top to bottom corresponds of control slides to predetermineeing the position to the intercepting is in under the control of upper and lower sliding control the second image that the display area of sliding from top to bottom updates includes:
and controlling the up-down sliding control to slide from the initial position to the preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control when the up-down sliding control cannot slide.
Optionally, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value;
the upper and lower sliding control that the display area of sliding from top to bottom corresponds of control slides to predetermineeing the position to the intercepting is in under the control of upper and lower sliding control the second image that the display area of sliding from top to bottom updates includes:
and controlling the up-down sliding control to slide from the initial position to the preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control when the sliding distance of the up-down sliding control is equal to a preset value.
Optionally, the first image is an image displayed in the up-down sliding display area.
Optionally, the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-sliding display area in the display interface.
Optionally, the stitching the first image and the second image to determine the screenshot requested by the user includes:
splicing the image displayed in the up-down sliding display area with the second image to determine a third image;
and splicing the image displayed in the non-sliding display area in the display interface with the third image, and determining the screenshot requested by the user.
In a second aspect, an embodiment of the present application provides a screenshot device, including:
the receiving module is used for receiving a screenshot request input by a user;
the screenshot module is used for screenshot on the current display interface and determining a first image;
the processing module is used for controlling an up-down sliding control corresponding to the up-down sliding display area to slide to a preset position and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control;
and the splicing module is used for splicing the first image and the second image to generate a screenshot of the screenshot request.
Optionally, the preset position is a position where the up-down sliding control cannot slide;
the processing module is specifically configured to: controlling the up-down sliding control to slide from the initial position to the preset position;
the screenshot module is specifically configured to: and when the up-down sliding control cannot slide, intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control.
Optionally, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value;
the processing module is specifically configured to: controlling the up-down sliding control to slide from the initial position to the preset position;
the screenshot module is specifically configured to: and when the sliding distance of the up-and-down sliding control is equal to the preset value, intercepting a second image updated in the up-and-down sliding display area under the control of the up-and-down sliding control.
Optionally, the first image is an image displayed in the up-down sliding display area.
Optionally, the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-sliding display area in the display interface.
Optionally, the splicing module is specifically configured to:
splicing the image displayed in the up-down sliding display area with the second image to determine a third image;
and splicing the image displayed in the non-sliding display area in the display interface with the third image, and determining the screenshot requested by the user.
In a third aspect, an embodiment of the present application provides a terminal device, which includes at least one processing unit and at least one storage unit, where the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit is caused to execute any of the steps of the method described above.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program executable by a terminal device, and when the program runs on the terminal device, the program causes the terminal device to execute the steps of any one of the above-mentioned methods.
In the embodiment of the application, when a screenshot request input by a user is received, screenshot is carried out on a current display interface, and a first image is determined. And controlling the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control, and finally splicing the first image and the second image to generate the screenshot of the screenshot request. When an access request input by a user is received, the first image in the current display interface is intercepted, the up-down sliding control is controlled to slide to update the image in the up-down sliding display area after the first image is intercepted, then the updated image in the up-down sliding display area is intercepted, the first image is spliced and the screenshot is output, screenshot is carried out on a plurality of areas sliding up and down, and the screenshot requirement of the user for intercepting the long screen is met.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a screenshot method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a first image according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a first image according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a second image provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a second image provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a first image according to an embodiment of the present disclosure;
FIG. 7 is a diagram illustrating a second image according to an embodiment of the present disclosure;
fig. 8a is a schematic flowchart of a screenshot method provided in an embodiment of the present application;
fig. 8b is a schematic coordinate diagram of an up-down sliding control provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a screenshot device provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical scheme in the embodiment of the application is suitable for screenshot of terminal equipment, wherein the terminal equipment comprises but is not limited to a mobile phone, a tablet personal computer and a portable computer.
Fig. 1 exemplarily illustrates a flow of a screenshot method provided by an embodiment of the present application, where the flow of the method may be executed by a screenshot device, as shown in fig. 1, and includes the following steps:
and step S101, receiving a screenshot request input by a user.
In a possible implementation manner, shortcut combination keys corresponding to screenshots are preset, for example, a shutdown key and a volume key are pressed simultaneously, and when a user presses the shortcut combination keys, a screenshot request input by the user is received.
In a possible implementation mode, a screenshot icon is arranged in a display page in advance, and when a user clicks the screenshot icon of the display page, a screenshot request input by the user is received.
And step S102, screenshot is conducted on the current display interface, and a first image is determined.
Optionally, the first image is an image displayed in a vertically sliding display area, and exemplarily, as shown in fig. 2, the intercepted first image is an area that is vertically slidable in the address book.
The first image includes an image displayed in a display area sliding up and down and an image displayed in a non-sliding display area in the display interface, and exemplarily, as shown in fig. 3, the first image is taken as the whole display interface, including an area slidable up and down in the address book and an area where the top end and the bottom end of the display interface cannot slide.
Specifically, determining the up-down sliding display area in the current display interface at least includes the following embodiments:
in one possible implementation, the setting area of the current display interface is determined as the up-down sliding display area. For example, a plurality of up-down sliding controls are set in the current display interface, one region corresponding to each up-down sliding control, and a region with the largest area in the regions corresponding to the up-down sliding controls in the current display interface is determined as an up-down sliding display region.
In one possible implementation, the area of the current display interface where the user interaction occurs is determined to be a slide-up and slide-down display area. Illustratively, the current display interface is set to include a plurality of up-down sliding controls, each up-down sliding control controls a corresponding area, and the area touched by the finger for the last time before the user presses the shortcut combination key of the screenshot is determined as the up-down sliding area.
In one possible implementation, the up-down sliding display area is determined from the current display interface according to the screenshot request. Illustratively, the current display interface is set to include a first up-down sliding control and a second up-down sliding control, each up-down sliding control controls a corresponding area to be a first area and a second area, the first area is determined as the up-down sliding display area when the user presses the power-off key and the volume-up key simultaneously, and the second area is determined as the up-down sliding display area when the user presses the volume-down key and the volume-up key simultaneously.
And S103, controlling the up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control.
In a possible implementation manner, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value, where the preset value may be set according to an actual situation. And controlling the up-down sliding control to slide from the initial position to a preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control when the sliding distance of the up-down sliding control is equal to the preset value. In a specific implementation, the above steps may be repeatedly performed, and a plurality of second images may be intercepted.
Illustratively, the preset value is set to a value such that the images of the up-and-down sliding display area are all updated. And calling the up-down sliding control to slide from bottom to top, wherein the starting position of the up-down sliding control is the lowest side of the up-down sliding display area, the preset position of the up-down sliding control is the highest side of the up-down sliding display area, and the currently displayed image in the up-down sliding display area is as shown in fig. 2. When the up-down sliding control slides from the lowest side of the up-down sliding display area to the highest side of the up-down sliding display area, the images displayed in the up-down sliding display area are all updated images, and as shown in fig. 4, the second image currently displayed in the up-down sliding display area is directly intercepted. When a plurality of second images need to be intercepted, the up-down sliding control can be called again to slide from bottom to top, and the updated second images are intercepted.
For example, the preset value is set to a value that the up-down sliding display area updates half of the screen, and the up-down sliding control is set to slide from bottom to top, so that the starting position of the up-down sliding control is the lowest side of the up-down sliding display area, the preset position of the up-down sliding control is the middle position of the up-down sliding display area, and the currently displayed image in the up-down sliding display area is as shown in fig. 2. When the up-down sliding control slides from the lowest side of the up-down sliding display area to the middle position of the up-down sliding display area, the image displayed in the up-down sliding display area is composed of half of the updated image and half of the original image, and as shown in fig. 5, the half of the currently displayed updated image is intercepted as the second image. It should be noted that the preset value is not limited to the two examples, and in practical application, a specific value of the preset value may be set according to needs.
In another possible embodiment, the preset position is a position where the up-down sliding control cannot slide, the up-down sliding control is controlled to slide from the initial position to the preset position, and when the up-down sliding control cannot slide, the updated second image in the up-down sliding display area under the control of the up-down sliding control is intercepted. For example, when the up-down sliding control is called to slide from bottom to top, the starting position of the up-down sliding control is the lowest side of the up-down sliding display area, and in the process of controlling the up-down sliding control to slide from the lowest side of the up-down sliding display area to the highest side of the up-down sliding display area, whether the up-down sliding control cannot slide is judged, and if the up-down sliding control cannot slide, an image updated when the up-down sliding control is called in the up-down sliding display area is intercepted as the second image.
In another possible embodiment, the preset position is a position where the up-down sliding control slides by a distance equal to a preset value or a position where the up-down sliding control cannot slide, wherein the preset value is set to a value that makes all the images in the up-down sliding display area updated. And controlling the up-down sliding control to slide from the initial position to a preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control when the sliding distance of the up-down sliding control is equal to the preset value or the up-down sliding control cannot slide. Illustratively, the up-down sliding control is called to slide from bottom to top, then the starting position of the up-down sliding control is the lowest side of the up-down sliding display area, in the process of controlling the up-down sliding control to slide from the lowest side of the up-down sliding display area to the highest side of the up-down sliding display area, whether the sliding distance of the up-down sliding control is equal to a preset value or whether the up-down sliding control cannot slide is judged, and if the sliding distance of the up-down sliding control is equal to the preset value, a second image currently displayed in the up-down sliding display area is intercepted. And then calling the up-down sliding control to slide from bottom to top again to intercept the second image, and circulating in sequence until the intercepted second image is the image intercepted when the up-down sliding control cannot slide.
Alternatively, the up-down sliding control may slide in a fixed step, for example, 2 pixels at a time, and then determine whether the up-down sliding control slides to the preset position. The up-down sliding control may also slide in random step lengths, and this embodiment of the present application is not specifically limited.
And step S104, splicing the first image and the second image to generate a screenshot of the screenshot request.
In a possible implementation manner, the first image is an image displayed in a vertically sliding display area, and the first image and the second image are directly spliced to generate a screenshot requested by the screenshot.
In a possible implementation manner, when the first image includes an image displayed in the up-down sliding display area and an image displayed in the non-sliding display area in the display interface, the image displayed in the up-down sliding display area is spliced with the plurality of second images, and the third image is determined. And then splicing the image displayed in the non-sliding display area in the display interface with the third image to determine the screenshot requested by the user. Illustratively, a first image is set as shown in fig. 6, and includes a vertically sliding display area, a non-sliding display area 1, and a non-sliding display area 2, and the first image is cut into three parts, i.e., the vertically sliding display area, the non-sliding display area 1, and the non-sliding display area 2. The first image may be cut according to the direction in which the up-down slide control slides, for example, when the up-down slide control slides upward, the first image may be cut between the non-slide display region 2 and the up-down slide display region. When the up-down slide control slides down, the first image may be clipped from between the non-slide display region 1 and the up-down slide display region. The second image that is set to be clipped is shown in fig. 7, and the second image is determined by capturing the image updated in fig. 5. Firstly, splicing the up-down sliding display area in fig. 6 with the second image in fig. 7 to determine a third image, then splicing the third image with the non-sliding display area 1 and the non-sliding display area 2 to determine the screenshot requested by the user.
Optionally, when a plurality of the intercepted second images are provided, the intercepted first image and the plurality of second images are spliced to determine the screenshot requested by the user.
For better explaining the embodiment of the present invention, a screenshot method provided by the embodiment of the present invention is described below with reference to a specific implementation scenario, as shown in fig. 8a, the method includes the following steps:
step S801, a user calls up and down sliding screen capture through a system process A on an application software interface.
Step S802, the system calls a process management class through cross-process to find the process B at the most front end currently.
In step S803, an interface in a display (focus) state is found in the process B.
Step S804, the top-level display control of the interface starts to traverse from top to bottom until finding the up-down sliding control.
In step S805, the vertical coordinates (y1, y2) of the up-down slide control are recorded, and the coordinate system is shown in FIG. 8 b.
In step S807, the process B sends the vertical coordinates (y1, y2) of the up-down sliding control and the layer interval [ a, B ] where the display window is located to the process a through a broadcast mechanism.
In step S808, the process a intercepts the entire display interface as the first image through the broadcasted data.
Step S809, in process B, an upward sliding touch event is sent in a simulated manner, and the up-down sliding control corresponding to the touch event is set to slide 2 pixels at a time.
In step S810, it is determined whether the sliding distance d of the up-down sliding control is equal to the height 4/5 of the up-down sliding area or the up-down sliding control cannot slide any more, if yes, step S811 is performed, otherwise step S809 is performed.
In step S811, the process B sends the vertical coordinates (y1, y2) of the up-down sliding control, the layer section [ a, B ] where the display window is located, and the sliding distance d of the up-down sliding control to the process a through a broadcast mechanism.
In step S812, the process a intercepts the second image P2 in the specified layer interval according to the broadcasted data.
And the process A intercepts the picture in the specified area in the specified layer interval and can realize the interception by using a system screen capture function.
Step S813, the first image and the second image are spliced into a whole image and then output.
Specifically, the first image is cut into an image P1 and an image Pn with the coordinate y2 as a reference, the image P1 and the second image P2 are spliced, and then the image P is spliced with the image Pn to determine the screenshot requested by the user.
Alternatively, before performing step S813, steps S809 to S812 may be performed again, and then after obtaining a plurality of second images, the first image and the plurality of second images may be stitched.
When a long-screen screenshot request of a user is received, a first image displayed currently is intercepted, then the up-down sliding control is controlled to slide towards a preset direction, when the sliding distance of the up-down sliding control is equal to the height of the up-down sliding area or the up-down interactive control cannot slide, an updated second image is intercepted, and then the first image and the second image are spliced and output, so that the long-screen screenshot is realized, and the screenshot requirement of the user is met.
Based on the same technical concept, an embodiment of the present application provides a screenshot device, as shown in fig. 9, where the screenshot device 900 includes:
a receiving module 901, which receives a screenshot request input by a user;
a screenshot module 902, which is used for screenshot on the current display interface and determining a first image;
the processing module 903 is used for controlling an up-down sliding control corresponding to the up-down sliding display area to slide to a preset position and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control;
and a splicing module 904 for splicing the first image and the second image to generate a screenshot of the screenshot request.
Optionally, the preset position is a position where the up-down sliding control cannot slide;
the processing module 903 is specifically configured to: controlling the up-down sliding control to slide from the initial position to the preset position;
the screenshot module 902 is specifically configured to: and when the up-down sliding control cannot slide, intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control.
Optionally, the preset position is a position where a sliding distance of the up-down sliding control is equal to a preset value;
the processing module 903 is specifically configured to: controlling the up-down sliding control to slide from the initial position to the preset position;
the screenshot module 902 is specifically configured to: and when the sliding distance of the up-and-down sliding control is equal to the preset value, intercepting a second image updated in the up-and-down sliding display area under the control of the up-and-down sliding control.
Optionally, the first image is an image displayed in the up-down sliding display area.
Optionally, the first image includes an image displayed in the up-down sliding display area and an image displayed in a non-sliding display area in the display interface.
Optionally, the splicing module 904 is specifically configured to:
splicing the image displayed in the up-down sliding display area with the second image to determine a third image;
and splicing the image displayed in the non-sliding display area in the display interface with the third image, and determining the screenshot requested by the user.
Based on the same technical concept, the terminal device provided in the embodiment of the present application, as shown in fig. 10, includes at least one processor 1001 and a memory 1002 connected to the at least one processor, where a specific connection medium between the processor 1001 and the memory 1002 is not limited in the embodiment of the present application, and the processor 1001 and the memory 1002 in fig. 10 are connected through a bus as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In this embodiment, the memory 1002 stores instructions executable by the at least one processor 1001, and the at least one processor 1001 may execute the steps included in the screenshot method by executing the instructions stored in the memory 1002.
The processor 1001 is a control center of the terminal device, and may access various parts of the control device by using various interfaces and lines, and implement screenshot by running or executing instructions stored in the memory 1002 and calling data stored in the memory 1002. Alternatively, the processor 1001 may include one or more processing units, and the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 1001. In some embodiments, the processor 1001 and the memory 1002 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 1001 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, and may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium storing a computer program executable by a terminal device, and when the program runs on the terminal device, the steps of the screenshot method are caused to be performed.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (14)
1. A method of screenshot, comprising:
receiving a screenshot request input by a user;
screenshot is conducted on the current display interface, and a first image is determined;
controlling an up-down sliding control corresponding to the up-down sliding display area to slide to a preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control;
and splicing the first image and the second image to generate a screenshot of the screenshot request.
2. The method of claim 1, wherein the preset position is a position where the up-down sliding control cannot slide;
the upper and lower sliding control that the display area of sliding from top to bottom corresponds of control slides to predetermineeing the position to the intercepting is in under the control of upper and lower sliding control the second image that the display area of sliding from top to bottom updates includes:
and controlling the up-down sliding control to slide from the initial position to the preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control when the up-down sliding control cannot slide.
3. The method of claim 1, wherein the preset position is a position where the up-down sliding control slides by a distance equal to a preset value;
the upper and lower sliding control that the display area of sliding from top to bottom corresponds of control slides to predetermineeing the position to the intercepting is in under the control of upper and lower sliding control the second image that the display area of sliding from top to bottom updates includes:
and controlling the up-down sliding control to slide from the initial position to the preset position, and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control when the sliding distance of the up-down sliding control is equal to a preset value.
4. The method of claim 1, wherein the first image is an image displayed in the up-down sliding display area.
5. The method of claim 1, wherein the first image comprises an image displayed in the up-down sliding display area and an image displayed in a non-sliding display area in the display interface.
6. The method of claim 5, wherein said stitching the first image and the second image to determine the screenshot of the user request comprises:
splicing the image displayed in the up-down sliding display area with the second image to determine a third image;
and splicing the image displayed in the non-sliding display area in the display interface with the third image, and determining the screenshot requested by the user.
7. A screenshot device, comprising:
the receiving module is used for receiving a screenshot request input by a user;
the screenshot module is used for screenshot on the current display interface and determining a first image;
the processing module is used for controlling an up-down sliding control corresponding to the up-down sliding display area to slide to a preset position and intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control;
and the splicing module is used for splicing the first image and the second image to generate a screenshot of the screenshot request.
8. The apparatus of claim 7, wherein the preset position is a position where the up-down sliding control cannot slide;
the processing module is specifically configured to: controlling the up-down sliding control to slide from the initial position to the preset position;
the screenshot module is specifically configured to: and when the up-down sliding control cannot slide, intercepting a second image updated in the up-down sliding display area under the control of the up-down sliding control.
9. The apparatus of claim 7, wherein the preset position is a position where the up-down sliding control slides a distance equal to a preset value;
the processing module is specifically configured to: controlling the up-down sliding control to slide from the initial position to the preset position;
the screenshot module is specifically configured to: and when the sliding distance of the up-and-down sliding control is equal to the preset value, intercepting a second image updated in the up-and-down sliding display area under the control of the up-and-down sliding control.
10. The apparatus of claim 7, wherein the first image is an image displayed in the up-down sliding display area.
11. The apparatus of claim 7, wherein the first image comprises an image displayed in the up-down sliding display area and an image displayed in a non-sliding display area in the display interface.
12. The apparatus of claim 11, wherein the splicing module is specifically configured to:
splicing the image displayed in the up-down sliding display area with the second image to determine a third image;
and splicing the image displayed in the non-sliding display area in the display interface with the third image, and determining the screenshot requested by the user.
13. A terminal device, comprising at least one processing unit and at least one memory unit, wherein the memory unit stores a computer program which, when executed by the processing unit, causes the processing unit to carry out the steps of the method according to any one of claims 1 to 6.
14. A computer-readable storage medium, in which a computer program executable by a terminal device is stored, which program, when run on the terminal device, causes the terminal device to carry out the steps of the method according to any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811050285.4A CN110888576A (en) | 2018-09-10 | 2018-09-10 | Screenshot method and device |
PCT/CN2019/099191 WO2020052374A1 (en) | 2018-09-10 | 2019-08-05 | Screenshot method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811050285.4A CN110888576A (en) | 2018-09-10 | 2018-09-10 | Screenshot method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110888576A true CN110888576A (en) | 2020-03-17 |
Family
ID=69744974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811050285.4A Pending CN110888576A (en) | 2018-09-10 | 2018-09-10 | Screenshot method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110888576A (en) |
WO (1) | WO2020052374A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522742A (en) * | 2020-04-16 | 2020-08-11 | 北京三快在线科技有限公司 | Page view generating method and device, computer equipment and storage medium |
CN113791722A (en) * | 2021-09-13 | 2021-12-14 | 统信软件技术有限公司 | Screenshot processing method, computing device and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104133683A (en) * | 2014-07-31 | 2014-11-05 | 上海二三四五网络科技股份有限公司 | Screenshot obtaining method and device |
WO2014183537A1 (en) * | 2013-11-04 | 2014-11-20 | 中兴通讯股份有限公司 | Terminal screenshot method and device |
CN105094617A (en) * | 2015-08-24 | 2015-11-25 | 北京锤子数码科技有限公司 | Screen capturing method and device |
CN105760050A (en) * | 2016-02-04 | 2016-07-13 | 上海卓易科技股份有限公司 | Screen capturing method and device |
CN106385550A (en) * | 2016-09-06 | 2017-02-08 | 青岛海信移动通信技术股份有限公司 | Method and terminal for capturing screen image |
CN106681610A (en) * | 2016-12-23 | 2017-05-17 | 珠海市魅族科技有限公司 | Screen snapping method and device |
CN107967099A (en) * | 2016-10-19 | 2018-04-27 | 中兴通讯股份有限公司 | A kind of method, device and mobile terminal of terminal screenshotss |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7873909B2 (en) * | 2004-08-10 | 2011-01-18 | Photoinaphoto.Com, Inc. | Manipulation and merging of graphic images |
CN102681829B (en) * | 2011-03-16 | 2016-03-30 | 阿里巴巴集团控股有限公司 | A kind of screenshot method, device and telecommunication customer end |
-
2018
- 2018-09-10 CN CN201811050285.4A patent/CN110888576A/en active Pending
-
2019
- 2019-08-05 WO PCT/CN2019/099191 patent/WO2020052374A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014183537A1 (en) * | 2013-11-04 | 2014-11-20 | 中兴通讯股份有限公司 | Terminal screenshot method and device |
CN104133683A (en) * | 2014-07-31 | 2014-11-05 | 上海二三四五网络科技股份有限公司 | Screenshot obtaining method and device |
CN105094617A (en) * | 2015-08-24 | 2015-11-25 | 北京锤子数码科技有限公司 | Screen capturing method and device |
CN105760050A (en) * | 2016-02-04 | 2016-07-13 | 上海卓易科技股份有限公司 | Screen capturing method and device |
CN106385550A (en) * | 2016-09-06 | 2017-02-08 | 青岛海信移动通信技术股份有限公司 | Method and terminal for capturing screen image |
CN107967099A (en) * | 2016-10-19 | 2018-04-27 | 中兴通讯股份有限公司 | A kind of method, device and mobile terminal of terminal screenshotss |
CN106681610A (en) * | 2016-12-23 | 2017-05-17 | 珠海市魅族科技有限公司 | Screen snapping method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522742A (en) * | 2020-04-16 | 2020-08-11 | 北京三快在线科技有限公司 | Page view generating method and device, computer equipment and storage medium |
CN113791722A (en) * | 2021-09-13 | 2021-12-14 | 统信软件技术有限公司 | Screenshot processing method, computing device and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020052374A1 (en) | 2020-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109164964B (en) | Content sharing method and device, terminal and storage medium | |
CN107728901B (en) | Interface display method and device and terminal | |
EP3454193A1 (en) | Control method and apparatus of terminal device, and storage medium | |
US9001156B2 (en) | Information-processing device and program | |
WO2020000971A1 (en) | Method and apparatus for switching global special effects, terminal device, and storage medium | |
CN102934068A (en) | Method, apparatus and computer program product for joining the displays of multiple devices | |
EP3896558A1 (en) | Method and apparatus for displaying content, and terminal and storage medium | |
US11284161B2 (en) | Method and device for loading electronic program guide, and non-transitory storage medium | |
CN106488282B (en) | Multimedia information output control method and mobile terminal | |
CN107153546B (en) | Video playing method and mobile device | |
US20210208740A1 (en) | Method, Mobile Terminal, and Non-Transitory Computer-Readable Storage Medium for Controlling Displaying Direction | |
KR20180131616A (en) | Fingerprint Recognition Method, Device, Program and Storage Medium | |
CN106815809B (en) | Picture processing method and device | |
CN106126041B (en) | Desktop icon management method of mobile terminal and mobile terminal | |
CN110888576A (en) | Screenshot method and device | |
CN105739817A (en) | Icon hiding method and device and mobile terminal | |
CN112308864A (en) | Image processing method and device, electronic equipment and storage medium | |
WO2020052373A1 (en) | Screenshot method and device | |
CN106020694B (en) | Electronic equipment, and method and device for dynamically adjusting selected area | |
CN106569714A (en) | Mobile terminal and touch operation processing method | |
CN110806830A (en) | User interaction method and electronic equipment | |
CN112445553A (en) | Terminal display adjusting method and device and terminal | |
US20150234546A1 (en) | Method for Quickly Displaying a Skype Contacts List and Computer Program Thereof and Portable Electronic Device for Using the Same | |
CN109085978B (en) | View display method, storage medium and mobile terminal | |
CN112130738A (en) | Screenshot processing method and device, electronic equipment 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200317 |