Screenshot method and terminal device
A screenshot method includes: receiving a first input performed on a first display interface; obtaining a target long preview screenshot of the first display interface in response to the first input; receiving a second input performed on the target long preview screenshot; in response to the second input, obtaining a target screenshot of a second display interface, where the second display interface is a display sub-interface of the first display interface; and generating a long screenshot according to the target long preview screenshot and the target screenshot.
1. A screenshot method, applied to a terminal device, comprising:
receiving a first input performed on a first display interface;
performing a long screenshot capturing operation on the first display interface to obtain a target long preview screenshot of the first display interface in response to the first input;
receiving a second input performed on the target long preview screenshot;
in response to the second input, performing a long screenshot capturing operation or a screenshot operation on a second display interface to obtain a target screenshot of the second display interface, wherein the second display interface is a display sub-interface corresponding to a target control in the first display interface; and
generating a long screenshot according to the target long preview screenshot and the target screenshot,
wherein the obtaining a target long preview screenshot of the first display interface in response to the first input comprises:
detecting a control in the first display interface; and
in response to the first input, obtaining the target long preview screenshot, and according to a first position of the control in the first display interface, marking a second position corresponding to the control in the target long preview screenshot; wherein
the second input is an input performed on a target position, the target position corresponds to one of the second positions, and the target control is a control corresponding to the target position.
2. The method according to claim 1 , wherein the generating a long screenshot according to the target long preview screenshot and the target screenshot comprises:
determining an insertion position of the target screenshot in the target long preview screenshot; and
inserting the target screenshot to the insertion position to obtain the long screenshot.
3. The method according to claim 2 , wherein the insertion position is the target position, or the insertion position is any position other than the target position in the target long preview screenshot.
4. A terminal device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, causes the terminal device to perform:
receiving a first input performed on a first display interface;
performing a long screenshot capturing operation on the first display interface to obtain a target long preview screenshot of the first display interface in response to the first input;
receiving a second input performed on the target long preview screenshot;
in response to the second input, performing a long screenshot capturing operation or a screenshot operation on a second display interface to obtain a target screenshot of the second display interface, wherein the second display interface is a display sub-interface corresponding to a target control in the first display interface; and
generating a long screenshot according to the target long preview screenshot and the target screenshot,
wherein the program, when executed by the processor, causes the terminal device to perform:
detecting a control in the first display interface; and
in response to the first input, obtaining the target long preview screenshot, and according to a first position of the control in the first display interface, marking a second position corresponding to the control in the target long preview screenshot; wherein
the second input is an input performed on a target position in the target long preview screenshot, the target position corresponds to one of the second positions, and the target control is a control corresponding to the target position.
5. The terminal device according to claim 4 , wherein the program, when executed by the processor, causes the terminal device to perform:
determining an insertion position of the target screenshot in the target long preview screenshot; and
inserting the target screenshot to the insertion position to obtain the long screenshot.
6. The terminal device according to claim 5 , wherein the insertion position is the target position, or the insertion position is any position other than the target position in the target long preview screenshot.
7. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to perform:
receiving a first input performed on a first display interface;
performing a long screenshot capturing operation on the first display interface to obtain a target long preview screenshot of the first display interface in response to the first input;
receiving a second input performed on the target long preview screenshot;
in response to the second input, performing a long screenshot capturing operation or a screenshot operation on a second display interface to obtain a target screenshot of the second display interface, wherein the second display interface is a display sub-interface corresponding to a target control in the first display interface; and
generating a long screenshot according to the target long preview screenshot and the target screenshot,
wherein the program, when executed by the processor, causes the terminal device to perform:
detecting a control in the first display interface; and
in response to the first input, obtaining the target long preview screenshot, and according to a first position of the control in the first display interface, marking a second position corresponding to the control in the target long preview screenshot, wherein
the second input is an input performed on a target position in the target long preview screenshot, the target position corresponds to one of the second positions, and the target control is a control corresponding to the target position.
8. The non-transitory computer-readable storage medium according to claim 7 , wherein the program, when executed by the processor, causes the processor to perform:
determining an insertion position of the target screenshot in the target long preview screenshot; and
inserting the target screenshot to the insertion position to obtain the long screenshot.
9. The non-transitory computer-readable storage medium according to claim 8 , wherein the insertion position is the target position, or the insertion position is any position other than the target position in the target long preview screenshot.