CN106648281B - Screenshot method and device - Google Patents

Screenshot method and device Download PDF

Info

Publication number
CN106648281B
CN106648281B CN201510728068.6A CN201510728068A CN106648281B CN 106648281 B CN106648281 B CN 106648281B CN 201510728068 A CN201510728068 A CN 201510728068A CN 106648281 B CN106648281 B CN 106648281B
Authority
CN
China
Prior art keywords
image
coordinate
screenshot
click
range
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
CN201510728068.6A
Other languages
Chinese (zh)
Other versions
CN106648281A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510728068.6A priority Critical patent/CN106648281B/en
Publication of CN106648281A publication Critical patent/CN106648281A/en
Application granted granted Critical
Publication of CN106648281B publication Critical patent/CN106648281B/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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction 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
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a screenshot method and a screenshot device, wherein the screenshot method comprises the following steps: when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of screen display images corresponding to the click coordinates; determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction; and determining the image content corresponding to the image range in the screen display image as the image of the screenshot. The embodiment of the invention can customize the screenshot range in the screen display image by the user and meet different screenshot requirements of the user.

Description

Screenshot method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a screenshot method and a screenshot device.
Background
Screenshot is the process of capturing a visual image from an image displayed on a screen of an electronic device (e.g., a computer, smartphone, tablet, etc.); in recent years, with the development of intelligent operating systems such as android and IOS, it has become a common requirement of users to implement screenshot on mobile terminals (such as smart phones and tablet computers) equipped with the intelligent operating systems, and therefore how to optimize the screenshot mode on the mobile terminal has become a research point focused by technicians.
At present, the screenshot mode on the mobile terminal is mainly that a full screen image currently displayed on a screen is captured, and the captured full screen image is taken as an image for screenshot; however, the requirements of the user for screenshot are various, the range size of the intercepted image is also different under different screenshot requirements, and the current screenshot mode of capturing a full-screen image on the mobile terminal cannot meet different screenshot requirements of the user; therefore, a new screenshot method is provided, so that a user can define a screenshot range, different screenshot requirements of the user can be met, and the problem to be considered by the technical personnel in the field is solved.
Disclosure of Invention
In view of this, embodiments of the present invention provide a screenshot method and apparatus, so that a user can define a screenshot range, and different screenshot requirements of the user are met.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a screenshot method is applied to a mobile terminal and comprises the following steps:
when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of screen display images corresponding to the click coordinates;
determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction;
and determining the image content corresponding to the image range in the screen display image as the image of the screenshot.
The embodiment of the invention also provides a screenshot device, which is applied to a mobile terminal and comprises the following components:
the image position determining module is used for detecting a plurality of click coordinates of the screen of the mobile terminal when a screenshot starting instruction is detected, and recording the image positions of the screen display images corresponding to the click coordinates;
the image range determining module is used for determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction;
and the screenshot determining module is used for determining the image content corresponding to the image range in the screen display image as the screenshot image.
Based on the technical scheme, the embodiment of the invention can determine the image range (namely the screenshot range) in the screen display image according to the detected click coordinate under the click operation of the user, thereby intercepting the image content corresponding to the image range in the screen display image and realizing the screenshot purpose; the screenshot range in the screen display image is determined according to the clicking operation of the user, so that the screenshot range in the screen display image can be customized by the user, and therefore the screenshot in different image ranges can be achieved under different screenshot requirements of the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a screenshot method provided in an embodiment of the present invention;
FIG. 2 is a schematic diagram of an image position corresponding to a click coordinate at the same position after a screen sliding operation;
FIG. 3 is an alternative schematic diagram of determining image range by image location of click coordinates;
FIG. 4 is another flowchart of a screenshot method provided by an embodiment of the present invention;
FIG. 5 is a schematic illustration of a screenshot through a set of coordinates;
FIG. 6 is a further flowchart of a screenshot method provided in an embodiment of the present invention;
FIG. 7 is an alternative schematic diagram of determining a range of image positions;
FIG. 8 is a flowchart of a screenshot method according to an embodiment of the present invention;
FIG. 9 is yet another flowchart of a screenshot method provided by an embodiment of the present invention;
FIG. 10 is a further flowchart of a screenshot method according to an embodiment of the present invention;
fig. 11 is a schematic diagram of an application example provided in the embodiment of the present invention;
fig. 12 is a block diagram of a screenshot device according to an embodiment of the present invention;
fig. 13 is another structural block diagram of the screenshot device provided in the embodiment of the present invention;
fig. 14 is a block diagram of an image range determining module according to an embodiment of the present invention;
fig. 15 is a block diagram of a structure of a screenshot determining module according to an embodiment of the present invention;
FIG. 16 is a block diagram of another embodiment of a screenshot device;
FIG. 17 is a block diagram of an image position determining module according to an embodiment of the present invention;
FIG. 18 is a block diagram of another structure of an image range determining module according to an embodiment of the present invention;
fig. 19 is a block diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a screenshot method provided in an embodiment of the present invention, where the method is applicable to a mobile terminal with a display screen, such as a smart phone, a tablet computer, and the like; referring to fig. 1, the method may include:
s100, when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of a screen display image corresponding to the click coordinates;
the screenshot starting instruction can be triggered by user operation; optionally, the embodiment of the present invention may set a screenshot icon, and when the user clicks the screenshot icon, a screenshot start instruction is triggered to be generated; optionally, the embodiment of the present invention also sets a shortcut operation for triggering a screenshot starting instruction, and when a user operation corresponds to the shortcut operation, the screenshot starting instruction is triggered to be generated;
the screen display image is an image loaded to the screen from an image resource file, such as a res folder or a web page storing image elements such as pictures and icons; the content of the screen display image can be adjusted along with the screen sliding operation of the user, for example, when the user slides the screen upwards, the screen display image loads the content downwards and displays the content in the screen, and when the user slides the screen downwards, the screen display image loads the content upwards and displays the content in the screen;
in the mobile terminal with the touch screen, a user can operate the touch screen in a touch mode, for example, the user clicks the touch screen through a finger to realize the detection of a click coordinate by the mobile terminal; optionally, the user may also click by operating the cursor, so that the mobile terminal may determine the click position of the cursor to detect the click coordinate;
optionally, the embodiment of the present invention may set the position of the screen display image mapped by each current screen coordinate, and after determining the click coordinate, the embodiment of the present invention may determine the image position mapped by the click coordinate in the screen display image; it is worth noting that after the screen display image adjusts the content along with the screen sliding operation of the user, the image positions mapped in the screen display image by the same click coordinate may be different; when the click coordinate is detected, recording the current corresponding image position of the click coordinate in the screen display image, namely recording the image position mapped by the click coordinate of the current display part of the screen display image on the screen when the click coordinate is detected;
as shown in fig. 2, after the content of the screen display image is adjusted along with the sliding operation, the image positions corresponding to the same click coordinate are different, the image position corresponding to the click coordinate in the left image is the position where the character LOVE in the screen display image is located, and the image position corresponding to the click coordinate in the right image is the position where the character ME in the screen display image is located after the sliding operation.
Step S110, determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction;
optionally, the screen capture completion icon may be set, and after the user clicks the screen capture completion icon, a screen capture completion instruction may be triggered to be generated, at this time, the mobile terminal may determine that the user's click operation is completed, and the position of the image selected by the screen capture in the screen display image is determined;
in the process from the screenshot starting instruction to the screenshot finishing instruction, a user has multiple clicking operations, and correspondingly, the mobile terminal can detect multiple clicking coordinates;
optionally, in the embodiment of the present invention, a range surrounded by the peripheral image positions in the screen display image in the image positions of each click coordinate may be determined as the image range; as shown in the schematic diagram of fig. 3, there are 4 image positions of the click coordinates, where these 4 image positions are peripheral positions, and the range formed by the peripheral positions is the image range (as shown by the dotted line in the diagram);
optionally, the shape of the image range may also be set in the embodiment of the present invention, and if the shape is a rectangle, the image range may be determined by two image positions of a diagonal of the rectangle in the image positions of each click coordinate; determining the image range through a rectangular range constructed by two diagonal image positions; obviously, the shape of the image range can also be customized according to the user setting.
And step S120, determining the image content corresponding to the image range in the screen display image as the image of the screenshot.
After the image range is determined, the image content corresponding to the image range in the screen display image can be determined, so that the determined image content is intercepted, and a screenshot is obtained; optionally, the line of the screenshot can be set according to the actual situation, such as a wave shape, a gear shape, a straight line shape and the like.
The screenshot method provided by the embodiment of the invention comprises the following steps: when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of screen display images corresponding to the click coordinates; determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction; and determining the image content corresponding to the image range in the screen display image as the image of the screenshot.
It can be seen that the embodiment of the present invention can determine the image range (i.e. screenshot range) in the screen display image according to the detected click coordinate under the user click operation, thereby intercepting the image content corresponding to the image range in the screen display image and achieving the purpose of screenshot; the screenshot range in the screen display image is determined according to the clicking operation of the user, so that the screenshot range in the screen display image can be customized by the user, and therefore the screenshot in different image ranges can be achieved under different screenshot requirements of the user.
Optionally, in the embodiment of the present invention, a set number of click coordinates may be set to form a pair of coordinate sets, so that the image position range of the pair of coordinate sets and the corresponding image content in the screen display image are taken as a sub-screenshot (the image position range is determined by the image position of each click coordinate in the coordinate set and the range covered in the screen display image); therefore, after a plurality of pairs of coordinate sets are detected, all the sub-screenshots of the plurality of pairs of coordinate sets can be spliced to obtain a long screenshot;
correspondingly, fig. 4 shows another flowchart of a screenshot method provided by an embodiment of the present invention, and referring to fig. 4, the method may include:
s200, when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of screen display images corresponding to the click coordinates;
step S210, when a set number of click coordinates are detected, determining the detected set number of click coordinates as a pair of coordinate sets according to the click sequence;
step S220, for each pair of coordinate sets, determining the image position range of the screen display image corresponding to the coordinate set according to the image position of each click coordinate in the coordinate set;
in the process from the screenshot starting instruction to the screenshot finishing instruction, the determined image position ranges of each pair of coordinate sets form the image range of the screen display image corresponding to the image position of each click coordinate shown in fig. 1.
Step S230, intercepting the corresponding sub-screenshots of each pair of coordinate sets in the screen display image according to the image position range corresponding to each pair of coordinate sets;
optionally, after the screenshot corresponding to the coordinate set is intercepted, caching can be performed.
And S240, when a screenshot completion instruction is detected, splicing the corresponding sub-screenshots of each pair of coordinate sets to obtain a screenshot image.
Optionally, after the screenshot is determined to be completed, the embodiment of the present invention may call the screenshot corresponding to each coordinate set from the cache, and splice the screenshots corresponding to each coordinate set according to the capture sequence of the screenshots to obtain the image of the final screenshot.
FIG. 5 shows an alternative schematic of the method of FIG. 4, referenced; in the embodiment of the present invention, two click coordinates in a pair of coordinate sets may be set, as shown in fig. 5, according to the order of click, a1 and B1 click coordinates form a pair of coordinate sets, a2 and B2 click coordinates form a pair of coordinate sets, and the embodiment of the present invention may determine an image position range of a coordinate set formed by a1 and B1 in a screen display image (a rectangular range is formed by an image position of a1 click coordinate and an image position of a B1 click coordinate being opposite angles), intercept a screenshot corresponding to the image position range of the coordinate set of a1 and B1 in the screen display image, and buffer the intercepted screenshot;
similarly, the embodiment of the present invention may also determine that the coordinate set formed by a2 and B2 is in the image position range of the screen display image (a rectangular range is formed by the image position of the a2 click coordinate and the image position of the B2 click coordinate being opposite angles), intercept the screenshot corresponding to the image position range of the coordinate set of a2 and B2 in the screen display image, and buffer the intercepted screenshot;
after the user clicks the point B2, if it is determined that the screenshot is completed, the embodiment of the present invention may call the screenshot of the coordinate set of a1 and B1 and the screenshot of the coordinate set of a2 and B2 from the cache, and splice the two screenshots according to the order of the screenshots to obtain the image of the screenshot.
Optionally, because the menu bar control generally describes the content carried by the menu bar as a whole, the embodiment of the present invention may set that when the user selects the clipping point, if the user clicks the menu bar, it is determined that the whole menu bar is clipped, without considering the influence of the subsequent clicking position of the user on the selection of the menu bar;
specifically, when the click coordinate is detected to be located in the menu bar, the embodiment of the invention can determine that the whole menu bar is intercepted; meanwhile, the next detected click coordinate belongs to the start click coordinate of the next pair of coordinate sets, and if the menu bar is not the top menu bar, the embodiment of the invention can also determine the last detected click coordinate as the end click coordinate of the last pair of coordinate sets;
it is worth noting that when the click coordinate is detected to be located in the menu bar, the next detected click coordinate is determined as the starting point click coordinate of the next coordinate set, and/or the last detected click coordinate is determined as the last point click coordinate of the last coordinate set; the coordinate sets and the click coordinates with the set number form a pair of coordinate sets and are not in conflict, and the two means can be compatible for use;
correspondingly, fig. 6 shows a further flowchart of a screenshot method provided by an embodiment of the present invention, and referring to fig. 6, the method may include:
step S300, when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of a screen display image corresponding to the click coordinates;
step S310, when a set number of click coordinates are detected, determining the detected set number of click coordinates as a pair of coordinate sets according to the click sequence; meanwhile, when the click coordinate is detected to be positioned in the menu bar, the whole menu bar is determined to be intercepted, the next detected click coordinate is determined as the starting point click coordinate of the next pair of coordinate sets, and/or the last detected click coordinate is determined as the last point click coordinate of the last pair of coordinate sets;
step S320, for each pair of coordinate sets, determining the image position range of the screen display image corresponding to the coordinate set according to the image position of each click coordinate in the coordinate set;
s330, intercepting a screenshot corresponding to each pair of coordinate sets in a screen display image according to the image position range corresponding to each pair of coordinate sets;
and step S340, when a screenshot completing instruction is detected, splicing the corresponding screenshot of each pair of coordinate sets and the intercepted menu bar image to obtain a screenshot image.
Obviously, for the case that the user clicks on the menu bar, the embodiment of the present invention may also determine the range to be captured in the menu bar according to the subsequently detected click coordinate instead of the whole menu bar being captured, as shown in fig. 7, the click coordinate a1 is located in the menu bar, but the click coordinate B1 is located at the middle position of the text content, and the image positions of a1 and B1 are the rectangular range formed by the objects, which can be regarded as the image position ranges of the coordinate sets of a1 and B1 in the screen display image, and the image content of the image position ranges in the screen display image is captured, so that the screenshot in the right image of fig. 7 can be obtained.
Obviously, the embodiment of the invention can also directly record the image position of the screen display image corresponding to the click coordinate without setting the concept of the coordinate set; when a screenshot finishing instruction is detected, directly intercepting an image range formed by image positions of each click coordinate, and displaying the image content of the image on a screen; the final screenshot image is obtained without splicing the sub-screenshots.
Optionally, in the embodiment of the present invention, each coordinate point of the screen may be mapped to an image position of the currently displayed image of the screen in the screen display image one by one, so that an accurate image position in the screen display image is obtained through the detected click coordinate positioning; the one-to-one mapping mode of the screen coordinate points and the image positions can realize the accurate selection of the intercepted image positions in the screen display images, so that the screenshot result can be well matched with the screenshot expected effect of a user;
optionally, in order to reduce the conversion complexity from the click coordinate to the image position and adapt to the operation condition of a small-screen mobile terminal, the embodiment of the present invention may also divide the screen of the mobile terminal into a plurality of screen regions, where one screen region may correspond to one coordinate range, and perform one-to-one mapping between each screen region and the image position interval of the currently displayed image on the screen in the screen display image, so as to determine the corresponding image position interval of the click coordinate in the screen display image according to the detected screen region where the click coordinate is located; namely, as one click coordinate corresponds to one screen area, the image position interval mapped by the screen area corresponding to the click coordinate is used as the image position corresponding to the click coordinate;
specifically, the embodiment of the present invention may determine a screen region corresponding to a coordinate range in which a click coordinate is located, and determine an image position interval of a screen display image corresponding to the screen region; determining the image position interval of the screen area as an image position corresponding to the click coordinate; correspondingly, the image range formed by the image position interval corresponding to the screen area of each click coordinate is used as the image range of the screen display image corresponding to the image position of each click coordinate;
fig. 8 shows another flowchart of a screenshot method provided in an embodiment of the present invention, and referring to fig. 8, the method may include:
step S400, when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, determining a screen area corresponding to a coordinate range in which each click coordinate is positioned, and determining an image position interval of a screen display image corresponding to the screen area corresponding to each click coordinate; the mobile terminal comprises a mobile terminal, a display screen and a display screen, wherein the screen of the mobile terminal is divided into a plurality of screen areas, and one screen area corresponds to one coordinate range;
step S410, determining image position intervals corresponding to the screen areas of each click coordinate in the process from the detection of a screenshot starting instruction to a screenshot finishing instruction, and image ranges formed in the screen display images;
step S420, determining the image content corresponding to the image range in the screen display image as the image of the screenshot.
Optionally, the method shown in fig. 8 may also support a coordinate set manner, and a manner in which a menu bar is clicked and then the menu bar is intercepted as a whole.
Optionally, when a user selects a screenshot point (when a screen is clicked to trigger detection of a click coordinate), an image screen sliding operation may exist, and the content of a screen display image is adjusted along with the image screen sliding operation, so that the embodiment of the invention can record the image adjustment range of the screen display image corresponding to the image screen sliding operation between selection of any two screenshot points when the image screen sliding operation exists, thereby adding the adjustment content brought by the image screen sliding operation into the screenshot image;
correspondingly, fig. 9 shows yet another flowchart of a screenshot method provided by an embodiment of the present invention, and referring to fig. 9, the method may include:
step S500, when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of screen display images corresponding to the click coordinates;
step S510, if image screen sliding operation is detected within the detection interval of the two click coordinates, recording an image adjustment range of a screen display image corresponding to the image screen sliding operation;
s520, determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction; the image range of the click coordinate detected before and after the image screen sliding operation consists of the image position of the click coordinate detected before the image screen sliding operation, the image adjusting range and the image position of the click coordinate detected after the image screen sliding operation;
step S530, determining the image content corresponding to the image range in the screen display image as the image of the screenshot.
Optionally, the method shown in fig. 9 may also support a coordinate set manner, and a manner in which a menu bar is clicked and then the menu bar is intercepted as a whole.
It is worth noting that the adjustment part of the screen display image brought by the screen sliding operation is generally the text content part of the screen display image, and the text content part generally belongs to the same control management, and the control for managing the text content part is different from the menu bar control; therefore, the method shown in fig. 9 is preferably implemented in a coordinate set manner, that is, clicking a menu bar, capturing the whole default menu bar to form a screenshot of the menu bar, and adjusting the text content part caused by screen sliding operation may correspond to a coordinate set different from the menu bar; the image is intercepted from the control for managing the text content part, and the image is distinguished from the image intercepted from the menu bar, so that the possibility of successful screenshot is improved.
Optionally, the embodiment of the present invention may also support a mode of determining an image range of the screenshot by the start click coordinate and the end click coordinate;
fig. 10 shows yet another flowchart of a screenshot method provided by an embodiment of the present invention, and referring to fig. 10, the method may include:
step S600, when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording the image position of a screen display image corresponding to an initial click coordinate and the image position of a screen display image corresponding to an end point click coordinate;
step S610, determining that the image position of the initial click coordinate is the image position of the end point click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction, and determining the corresponding content range in the screen display image as the image range of the screenshot from the image position of the initial click coordinate to the image position of the end point click coordinate;
optionally, in the embodiment of the present invention, an image position corresponding to the start click coordinate and an image position corresponding to the end click coordinate may be used as opposite angles of the rectangle, so as to determine an image range of the rectangle formed in the screen display image by the image position corresponding to the start click coordinate and the image position corresponding to the end click coordinate.
And S620, determining the image content corresponding to the image range in the screen display image as the image of the screenshot.
Optionally, if an image screen sliding operation exists in the detection process of the start click coordinate and the end click coordinate, the embodiment of the invention can determine that the image range of the screenshot consists of the image position of the start click coordinate, the image adjustment range and the image position of the end click coordinate;
specifically, if image screen sliding operation is detected in the process of detecting a start click coordinate and an end click coordinate, the embodiment of the invention can record the image adjustment range of the screen display image corresponding to the image screen sliding operation; and determining the image range of the screenshot, wherein the image range consists of the image position of the initial click coordinate, the image adjusting range and the image position of the end point click coordinate.
Optionally, in order to make the user clear the selected screenshot point, the embodiment of the present invention may display the click coordinate point on the screen in a set reminding manner, where, for example, the click coordinate point covers and displays the prompt point, and the prompt point may be semitransparent, so that the user can view the image content covered by the prompt point;
optionally, in order to make the user clearly understand the effect of the captured image after the capture point is selected, the embodiment of the present invention may display the capture shape range formed after the click coordinate is connected to the periphery by the set connection line on the screen, so that the user can clearly click the capture range covered by the coordinate, thereby providing the preview of the capture effect to the user, and facilitating the user to reselect the capture point when the capture effect does not meet the expectation.
Introducing an application example provided by the embodiment of the present invention, fig. 11 is a schematic diagram of an application example provided by the embodiment of the present invention, a program having a screenshot method function provided by the embodiment of the present invention may be set in an instant messaging application, a user may click a screenshot icon in a chat interface of the instant messaging application, then select a screenshot point, click a1 point by the user, locate a1 point in a menu bar of the chat interface, then select the menu bar as a whole, display a B1 point at an opposite angle point of a1 point in the menu bar to prompt that the user has selected the menu bar as a whole, and select a next coordinate set;
the user clicks the point A2, then slides the screen, pulls the historical chat content needing to be intercepted, and can click the point B2 after selecting the content needing to be intercepted in the historical chat content; at this time, the image content of the point A2, the image content pulled by sliding the screen and the image content of the point B2 form the screenshot content of a coordinate set; intercepting the image content of the point A2, the image content pulled by sliding the screen and the image content of the point B2 to form a screenshot;
after the user clicks the screenshot, the screenshot menu bar and the screenshot consisting of the image content of the point A2, the image content pulled by sliding the screen and the image content of the point B2 can be spliced to obtain a final screenshot image.
The screenshot method provided by the embodiment of the invention can be used for customizing the screenshot range in the screen display image by the user, thereby realizing the screenshot of different image ranges under different screenshot requirements of the user.
The following describes a screenshot device provided in an embodiment of the present invention, and the screenshot device described below may be referred to in correspondence with the screenshot method described above.
Fig. 12 is a block diagram of a screenshot device according to an embodiment of the present invention, where the screenshot device is applicable to a mobile terminal with a display screen, such as a smart phone and a tablet computer; referring to fig. 12, the apparatus may include:
the image position determining module 100 is configured to detect a plurality of click coordinates of a screen of the mobile terminal when a screenshot starting instruction is detected, and record an image position of a screen display image corresponding to each click coordinate;
an image range determining module 200, configured to determine an image range of a screen display image corresponding to an image position of each click coordinate in a process from a screenshot starting instruction to a screenshot completing instruction;
and a screenshot determining module 300, configured to determine image content corresponding to the image range in the screen display image as a screenshot image.
Optionally, fig. 13 shows another structure of the screenshot device provided in the embodiment of the present invention, and in combination with fig. 12 and 13, the screenshot device may further include:
the coordinate set determining module 400 is configured to determine, when a set number of click coordinates are detected, the detected click coordinates of the set number as a pair of coordinate sets according to a sequence of clicks.
Correspondingly, fig. 14 shows an optional structure of the image range determining module 200 provided in the embodiment of the present invention, and referring to fig. 14, the image range determining module 200 may include:
a set position range determining unit 210, configured to determine, for each pair of coordinate sets, an image position range of a screen display image corresponding to the coordinate set according to an image position of each click coordinate in the coordinate set; and in the process from the screenshot starting instruction to the screenshot finishing instruction, the determined image position ranges of each pair of coordinate sets form the image range.
Fig. 15 shows an optional structure of the screenshot determining module 300 according to an embodiment of the present invention, and referring to fig. 15, the screenshot determining module 300 may include:
a screenshot determining unit 310, configured to capture a screenshot corresponding to each pair of coordinate sets in a screen display image according to the image position range corresponding to each pair of coordinate sets;
and the splicing unit 311 is configured to splice the sub-screenshots corresponding to each pair of coordinate sets to obtain an image of the screenshot.
Optionally, fig. 16 shows another structural block diagram of the screenshot device provided in the embodiment of the present invention, and in combination with fig. 13 and fig. 16, the device may further include:
the menu bar intercepting determination module 500 is used for determining that the whole menu bar is intercepted when the click coordinate is detected to be positioned in the menu bar; and determining the next detected click coordinate as the starting point click coordinate of the next pair of coordinate sets, and/or determining the last detected click coordinate as the last point click coordinate of the last pair of coordinate sets.
Optionally, the screen of the mobile terminal may be divided into a plurality of screen areas, and one screen area corresponds to one coordinate range; accordingly, fig. 17 shows an alternative structure of the image position determining module 100 according to the embodiment of the present invention, and referring to fig. 17, the image position determining module 100 may include:
a position interval determining unit 110, configured to determine a screen area corresponding to a coordinate range in which a click coordinate is located, and determine an image position interval of a screen display image corresponding to the screen area;
and an image position determining unit 111, configured to determine an image position interval of the screen area as an image position corresponding to the click coordinate.
Accordingly, the image range determining module 200 may be specifically configured to determine an image range formed by image position intervals corresponding to the screen areas of the click coordinates as an image range of the screen display image corresponding to the image position of each click coordinate.
Optionally, in the embodiment of the present invention, when an image sliding operation exists between the selection of any two screenshot points, an image adjustment range of a screen display image corresponding to the image sliding operation is recorded, so that adjustment content brought by the image sliding operation is added to the screenshot image;
accordingly, fig. 18 shows another optional structure of the image range determining module 200 provided in the embodiment of the present invention, and referring to fig. 18, the image range determining module 200 may include:
an adjustment range determining unit 220, configured to record an image adjustment range of a screen display image corresponding to an image screen sliding operation if the image screen sliding operation is detected within a detection interval of two click coordinates;
the composition determining unit 221 determines an image range of the click coordinate detected before and after the image sliding operation, and is composed of an image position of the click coordinate detected before the image sliding operation, the image adjustment range, and an image position of the click coordinate detected after the image sliding operation.
Optionally, the embodiment of the present invention may also support a mode of determining an image range of the screenshot by the start click coordinate and the end click coordinate;
correspondingly, the image position determining module 100 is specifically configured to record the image position of the screen display image corresponding to the start click coordinate and the image position of the screen display image corresponding to the end click coordinate;
the image range determining module 200 is specifically configured to determine an image range from an image position of the start click coordinate to an image position of the end click coordinate, and determine a corresponding content range in the screen display image as the image range;
optionally, if an image screen sliding operation exists in the detection process of the start click coordinate and the end click coordinate, the embodiment of the invention can determine that the image range of the screenshot consists of the image position of the start click coordinate, the image adjustment range and the image position of the end click coordinate;
specifically, the image range determining module 200 may be specifically configured to, if an image screen sliding operation is detected in the process of detecting the start click coordinate and the end click coordinate, record an image adjustment range of the screen display image corresponding to the image screen sliding operation; and determining the image range, wherein the image range is composed of the image position of the initial click seat, the image adjusting range and the image position of the end point click coordinate.
Optionally, in order to make the user clear the selected screenshot point, the screenshot device provided in the embodiment of the present invention may display the point where the coordinate is clicked on the screen in a set reminding manner; if the point at the click coordinate is covered and displayed with the prompt point, the prompt point can be semitransparent, so that the user can conveniently view the image content covered by the prompt point;
optionally, in order to make the user clearly understand the effect of capturing the image after the screenshot point is selected, the screenshot device provided in the embodiment of the present invention may display a screenshot shape range formed after the set connection line connects the peripheral click coordinate on the screen, so that the user can clearly click the screenshot range covered by the coordinate, thereby providing a preview of the screenshot effect to the user, and facilitating the user to reselect the screenshot point when the screenshot effect does not meet the expectation.
The screenshot device provided by the embodiment of the invention can be used for customizing the screenshot range in the screen display image by a user, thereby realizing the screenshot of different image ranges under different screenshot requirements of the user.
The embodiment of the invention also provides a mobile terminal which can comprise the screenshot device.
Fig. 19 is a block diagram illustrating a hardware configuration of a mobile terminal, and referring to fig. 19, the mobile terminal may include: a processor 1, a communication interface 2, a memory 3 and a communication bus 4;
wherein, the processor 1, the communication interface 2 and the memory 3 complete the communication with each other through the communication bus 4;
optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;
a processor 1 for executing a program;
a memory 3 for storing a program;
the program may include program code including computer operating instructions.
The processor 1 may be a central processing unit CPU or an application specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 3 may comprise a high-speed RAM memory, and may further comprise a non-volatile memory (non-volatile memory), such as at least one disk memory.
Among them, the procedure can be specifically used for:
when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of screen display images corresponding to the click coordinates;
determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction;
and determining the image content corresponding to the image range in the screen display image as the image of the screenshot.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A screenshot method is applied to a mobile terminal, and comprises the following steps:
when a screenshot starting instruction is detected, detecting a plurality of click coordinates of a screen of the mobile terminal, and recording image positions of screen display images corresponding to the click coordinates;
when a set number of click coordinates are detected, determining the detected click coordinates of the set number as a pair of coordinate sets according to the click sequence; the plurality of click coordinates form a plurality of pairs of coordinate sets;
determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction, wherein for each pair of coordinate sets, the image position range of the screen display image corresponding to the coordinate set is determined according to the image position of each click coordinate in the coordinate set; in the process from the screenshot starting instruction to the screenshot finishing instruction, the image position ranges of the determined coordinate sets form the image range; in the detection process of a start click coordinate and an end click coordinate of a coordinate set, if an image screen sliding operation is received, recording an image adjusting range of a screen display image corresponding to the image screen sliding operation, and forming an image range corresponding to the coordinate set based on an image position of the start click coordinate, the image adjusting range and an image position of the end click coordinate;
determining the image content corresponding to the image range in the screen display image as a screenshot image, wherein the screenshot corresponding to each pair of coordinate sets is intercepted in the screen display image according to the image position range corresponding to each pair of coordinate sets; and splicing the sub-screenshots corresponding to each pair of coordinate sets to obtain the image of the screenshot.
2. The method for screenshot according to claim 1, further comprising: when the click coordinate is detected to be positioned in the menu bar, determining that the whole menu bar is intercepted;
and determining the next detected click coordinate as the starting point click coordinate of the next pair of coordinate sets, and/or determining the last detected click coordinate as the last point click coordinate of the last pair of coordinate sets.
3. The screenshot method of claim 1, wherein the screen of the mobile terminal is divided into a plurality of screen areas, and one screen area corresponds to one coordinate range;
the recording of the image position of the screen display image corresponding to each click coordinate comprises:
determining a screen area corresponding to a coordinate range in which a click coordinate is positioned, and determining an image position interval of a screen display image corresponding to the screen area; determining the image position interval of the screen area as an image position corresponding to the click coordinate;
the determining that the image range of the screen display image corresponding to the image position of each click coordinate in the process from the screenshot starting instruction to the screenshot finishing instruction comprises the following steps:
and determining an image range formed by the image position interval corresponding to the screen area of each click coordinate as the image range of the screen display image corresponding to the image position of each click coordinate.
4. A screenshot device, applied to a mobile terminal, the device comprising:
the image position determining module is used for detecting a plurality of click coordinates of the screen of the mobile terminal when a screenshot starting instruction is detected, and recording the image positions of the screen display images corresponding to the click coordinates;
the coordinate set determining module is used for determining the detected click coordinates with the set number into a pair of coordinate sets according to the click sequence when the click coordinates with the set number are detected; the plurality of click coordinates form a plurality of pairs of coordinate sets;
the image range determining module is used for determining the image range of the screen display image corresponding to the image position of each click coordinate in the process from the detection of the screenshot starting instruction to the screenshot finishing instruction;
the screenshot determining module is used for determining the image content corresponding to the image range in the screen display image as a screenshot image;
the image range determination module comprises:
the set position range determining unit is used for determining the image position range of the screen display image corresponding to each coordinate set according to the image position of each click coordinate in the coordinate set; in the process from the screenshot starting instruction to the screenshot finishing instruction, the image position ranges of each pair of determined coordinate sets form the image range; in the detection process of a start click coordinate and an end click coordinate of a coordinate set, if an image screen sliding operation is received, recording an image adjusting range of a screen display image corresponding to the image screen sliding operation, and forming an image range corresponding to the coordinate set based on an image position of the start click coordinate, the image adjusting range and an image position of the end click coordinate;
the screenshot determining module comprises:
the screenshot determining unit is used for intercepting the corresponding screenshot of each pair of coordinate sets in the screen display image according to the image position range corresponding to each pair of coordinate sets;
and the splicing unit is used for splicing the sub-screenshots corresponding to the coordinate sets to obtain the image of the screenshot.
5. The screenshot device of claim 4, further comprising:
the menu bar intercepting and determining module is used for determining that the whole menu bar is intercepted when the click coordinate is detected to be positioned in the menu bar; and determining the next detected click coordinate as the starting point click coordinate of the next pair of coordinate sets, and/or determining the last detected click coordinate as the last point click coordinate of the last pair of coordinate sets.
6. The screenshot device of claim 4, wherein the screen of the mobile terminal is divided into a plurality of screen areas, and one screen area corresponds to one coordinate range; the image position determination module includes:
the position interval determining unit is used for determining a screen area corresponding to a coordinate range where the click coordinate is located and determining an image position interval of a screen display image corresponding to the screen area;
the image position regarding unit is used for determining an image position interval of the screen area as an image position corresponding to the click coordinate;
the image range determining module is specifically configured to determine an image range formed by image position intervals corresponding to the screen area of each click coordinate as an image range of the screen display image corresponding to the image position of each click coordinate.
7. A storage medium, characterized in that a software module is stored in the storage medium, and when executed, the software module implements the screenshot method according to any one of claims 1 to 3.
8. A mobile terminal, comprising: a processor and a memory;
wherein the processor is configured to execute a program;
the memory is used for storing the program, and the program realizes the screenshot method of any one of claims 1 to 3.
CN201510728068.6A 2015-10-30 2015-10-30 Screenshot method and device Active CN106648281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510728068.6A CN106648281B (en) 2015-10-30 2015-10-30 Screenshot method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510728068.6A CN106648281B (en) 2015-10-30 2015-10-30 Screenshot method and device

Publications (2)

Publication Number Publication Date
CN106648281A CN106648281A (en) 2017-05-10
CN106648281B true CN106648281B (en) 2020-05-05

Family

ID=58810914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510728068.6A Active CN106648281B (en) 2015-10-30 2015-10-30 Screenshot method and device

Country Status (1)

Country Link
CN (1) CN106648281B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319484B (en) * 2017-05-17 2021-07-09 腾讯科技(深圳)有限公司 Application page processing method and device and storage medium
CN107678644B (en) * 2017-09-18 2020-06-02 维沃移动通信有限公司 Image processing method and mobile terminal
CN109101163B (en) * 2018-07-12 2020-11-27 Oppo(重庆)智能科技有限公司 Long screen capture method and device and mobile terminal
CN112784293A (en) * 2019-11-08 2021-05-11 游戏橘子数位科技股份有限公司 Recording notification method for picture capture
CN111290676B (en) * 2020-03-02 2021-02-12 北京金山安全软件有限公司 Method, device and equipment for intercepting picture of designated area in client

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662510A (en) * 2012-03-24 2012-09-12 上海量明科技发展有限公司 Method for realizing screen-capture by multipoint touching
CN102779008A (en) * 2012-06-26 2012-11-14 奇智软件(北京)有限公司 Screen screenshot method and system

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100444099C (en) * 2006-08-23 2008-12-17 腾讯科技(深圳)有限公司 Method for capturing picture, capturer and instant-telecommunication customer terminal
CN100456235C (en) * 2006-12-27 2009-01-28 腾讯科技(深圳)有限公司 Method and system for screen drawing-sectioning in instant messaging
CN102375732B (en) * 2010-08-23 2015-12-09 纬创资通股份有限公司 The method for building up of electronic installation and panelization operation interface thereof
CN102707879A (en) * 2012-04-17 2012-10-03 上海量明科技发展有限公司 Method for selecting image contour of screenshot area, client and system
CN103593171A (en) * 2012-08-15 2014-02-19 阿里巴巴集团控股有限公司 Multi-zone screenshot method and device
KR102108287B1 (en) * 2013-08-30 2020-05-28 주식회사 실리콘웍스 Touch system and control method thereof
CN103472999B (en) * 2013-09-30 2016-08-24 宇龙计算机通信科技(深圳)有限公司 A kind of screenshot method and mobile terminal thereof
KR20150081073A (en) * 2014-01-03 2015-07-13 삼성전자주식회사 Method for providing glance information, machine-readable storage medium and electronic device
CN104090762B (en) * 2014-07-10 2017-04-19 福州瑞芯微电子股份有限公司 Screenshot processing device and method
CN104133683A (en) * 2014-07-31 2014-11-05 上海二三四五网络科技股份有限公司 Screenshot obtaining method and device
CN104793884B (en) * 2015-04-07 2018-01-19 广东欧珀移动通信有限公司 One kind touches screenshot method and device
CN104899832A (en) * 2015-06-23 2015-09-09 上海卓易科技股份有限公司 Splicing screenshot method of mobile terminal and splicing screenshot device
CN104991719B (en) * 2015-06-30 2019-06-04 Tcl移动通信科技(宁波)有限公司 A kind of screenshot method based on touch screen, system and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662510A (en) * 2012-03-24 2012-09-12 上海量明科技发展有限公司 Method for realizing screen-capture by multipoint touching
CN102779008A (en) * 2012-06-26 2012-11-14 奇智软件(北京)有限公司 Screen screenshot method and system

Also Published As

Publication number Publication date
CN106648281A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US11393017B2 (en) Two-dimensional code identification method and device, and mobile terminal
CN107632895B (en) Information sharing method and mobile terminal
JP6640909B2 (en) Theme display method and related devices
CN106648281B (en) Screenshot method and device
CN105335048B (en) Electronic equipment with hidden application icon and method for hiding application icon
WO2020238744A1 (en) Processing method, device and apparatus for split-screen display, and storage medium
CN107678644B (en) Image processing method and mobile terminal
EP3252591A1 (en) Group chat method and device
CN106951163B (en) Display control method and device
EP2854372A1 (en) Method and device for displaying pushed information
WO2019233307A1 (en) User interface display method and apparatus, and terminal and storage medium
CN106990883B (en) Icon moving method, icon moving system and terminal
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
CN108366169B (en) Notification message processing method and mobile terminal
WO2019047728A1 (en) Method for opening shortcut function, device, mobile terminal, and storage medium
CN107608550B (en) Touch operation response method and device
EP3896558A1 (en) Method and apparatus for displaying content, and terminal and storage medium
US8887059B2 (en) Method and apparatus of locally controlling display content of a remote system
WO2017063443A1 (en) Message display method and apparatus
US8633895B2 (en) Apparatus and method for improving character input function in mobile terminal
US20180152622A1 (en) Mobile terminal-based photographing method and mobile terminal
CN107172347B (en) Photographing method and terminal
CN110968364A (en) Method and device for adding shortcut plug-in and intelligent equipment
CN106201295B (en) Message copying method and device and intelligent terminal
CN107391914B (en) Parameter display method, device and equipment

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