Screenshot method, terminal, and non-transitory computer-readable storage medium
View Patent ↗A screenshot method, a terminal, and a non-transitory computer-readable storage medium. The screenshot method includes: in response to a start operation, the terminal entering a screenshot state, a display interface of the terminal in the screenshot state comprising a target screenshot interface; in response to a localization operation on the target screenshot interface, determining a first target area according to a display control corresponding to the localization operation on the target screenshot interface; and generating a first target screenshot image according to a content corresponding to the first target area.
1 . A screenshot method performed by a terminal, the screenshot method comprising:
in response to a start operation, the terminal entering a screenshot state, a display interface of the terminal in the screenshot state comprising a target screenshot interface;
generating and displaying a first screenshot image in the target screenshot interface;
in response to a localization operation on the target screenshot interface, determining a first target area according to a display control corresponding to the localization operation on the target screenshot interface, wherein the localization operation comprises a long press operation, and the first target area is identified in the target screenshot interface; and
generating a first target screenshot image according to a content corresponding to the first target area;
wherein the generating a first target screenshot image according to a content corresponding to the first target area comprises:
in response to an operation on the first target area, reducing a content in the first screenshot image and cropping the first screenshot image to an image corresponding to the first target area, and generating an editing interface of a screenshot image; wherein the editing interface of a screenshot image comprises the first target area; and
in response to a first operation on the editing interface of the screenshot image, generating the first target screenshot image according to the first target area;
wherein after the in response to an operation on the first target area, reducing a content in the first screenshot image and cropping the first screenshot image to an image corresponding to the first target area, and generating an editing interface of a screenshot image, the screenshot method comprises:
in response to a second operation on the editing interface of the screenshot image, expanding the first target area to a second target area corresponding to a parent control of the display control; wherein the parent control comprises at least two display controls.
2 . The screenshot method as claimed in claim 1 , wherein in the screenshot state, there is a corresponding relationship between display controls and some or all display elements in the display interface of the terminal.
3 . The screenshot method as claimed in claim 2 , wherein in response to the localization operation on the target screenshot interface, determining the first target area according to the display control corresponding to the localization operation on the target screenshot interface comprises:
in response to the localization operation, determining a first display control, and determining an area where a display element corresponding to the first display control is located as the first target area.
4 . The screenshot method as claimed in claim 3 , further comprising:
in response to the localization operation, the display controls being set as units in a hover state, setting an area corresponding to the display controls as a selectable state in a current state interface, a user selecting the target screenshot interface one by one through clicking to determine the first target area; wherein the area corresponding to the display controls being selected by default; and a user unselects the area corresponding to the display controls through invert selection.
5 . The screenshot method as claimed in claim 3 , further comprising:
in response to the localization operation, the display controls being set as units in a hover state, directly setting an area corresponding to the display controls as the first target area, and generating a screenshot image sequence corresponding to each of the first target area, a user selecting and stitching one or more target image to generate the target screenshot image.
6 . The screenshot method as claimed in claim 1 , before the in response to the localization operation on the target screenshot interface, determining the first target area according to the display control corresponding to the localization operation on the target screenshot interface, the screenshot method comprising:
extracting display controls from the target screenshot interface, and establishing corresponding relationship between the display controls and display sub-areas in the first screenshot image.
7 . The screenshot method as claimed in claim 6 , wherein in response to the localization operation on the target screenshot interface, determining the first target area according to the display control corresponding to the localization operation on the target screenshot interface comprises:
in response to the localization operation, determining a sub-area corresponding to a display control corresponding to position where the localization operation is inputted in the first screenshot image as the first target area.
8 . The screenshot method as claimed in claim 1 , after the in response to the localization operation on the target screenshot interface, determining the first target area according to the display control corresponding to the localization operation on the target screenshot interface, the screenshot method comprising:
highlighting the first target area.
9 . The screenshot method as claimed in claim 1 , further comprising:
in response to a third operation on the editing interface of the screenshot image, narrowing the second target area to the first target area.
10 . A terminal comprising a processor, wherein the processor is configured to:
in response to a start operation, control the terminal to enter a screenshot state, a display interface of the terminal in the screenshot state comprising a target screenshot interface;
generate and display a first screenshot image in the target screenshot interface;
in response to a localization operation on a target screenshot interface, determine a first target area according to a display control corresponding to the localization operation on the target screenshot interface, wherein the localization operation comprises a long press operation, and the first target area is identified in the target screenshot interface; and
generate a first target screenshot image according to a content corresponding to the first target area;
wherein the processor is further configured to:
in response to an operation on the first target area, reduce a content in the first screenshot image and crop the first screenshot image to an image corresponding to the first target area, and generate an editing interface of a screenshot image; wherein the editing interface of a screenshot image comprises the first target area; and
in response to a first operation on the editing interface of the screenshot image, generate the first target screenshot image according to the first target area;
in response to a second operation on the editing interface of the screenshot image, expand the first target area to a second target area corresponding to a parent control of the display control; wherein the parent control comprises at least two display controls.
11 . The terminal as claimed in claim 10 , wherein the processor is further configured to:
in response to the localization operation, determine area where a display element corresponding to the first display control is located as the first target area.
12 . The terminal as claimed in claim 10 , wherein the processor is further configured to:
extract display controls from the target screenshot interface, and establish corresponding relationship between the display controls and display sub-areas in a first screenshot image.
13 . The terminal as claimed in claim 12 , wherein the processor is further configured to:
in response to the localization operation, determine a sub-area corresponding to a display control corresponding to position where the localization operation inputted in the first screenshot image as the first target area.
14 . The terminal as claimed in claim 10 , wherein the processor is configured to:
highlight the first target area.
15 . A non-transitory computer-readable storage medium comprising computer-readable instruction, wherein in response to the computer-readable instruction being implemented by a processor, the processor implements a screenshot method, and the screenshot method comprises:
in response to a start operation, a terminal entering a screenshot state, a display interface of the terminal in the screenshot state comprising a target screenshot interface;
generating and displaying a first screenshot image in the target screenshot interface;
in response to localization operation on the target screenshot interface, determining a first target area according to a display control corresponding to the localization operation on the target screenshot interface, wherein the localization operation comprises a long press operation, and the first target area is identified in the target screenshot interface; and
generating a first target screenshot image according to a content corresponding to the first target area;
wherein the generating a first target screenshot image according to a content corresponding to the first target area comprises:
in response to an operation on the first target area, reducing a content in the first screenshot image and cropping the first screenshot image to an image corresponding to the first target area, and generating an editing interface of a screenshot image; wherein the editing interface of a screenshot image comprises the first target area; and
in response to a first operation on the editing interface of the screenshot image, generating the first target screenshot image according to the first target area;
wherein after the in response to an operation on the first target area, reducing a content in the first screenshot image and cropping the first screenshot image to an image corresponding to the first target area, and generating an editing interface of a screenshot image, the screenshot method comprises:
in response to a second operation on the editing interface of the screenshot image, expanding the first target area to a second target area corresponding to a parent control of the display control; wherein the parent control comprises at least two display controls.