Screen capturing method and system for electronic device, and electronic device
First Claim
1. A screen capturing method for an electronic device having a screen capturing system comprising one or more processors, a memory, and one or more applications stored in the memory and configured to be executed by the one or more processors to perform the screen capturing method, the screen capturing method comprising the following steps of:
- acquiring and parsing interface information currently displayed in an electronic device to obtain information about all view controls for a specified window;
parsing the information about view controls, constructing all view controls for the specified window into a view control tree, and building a presentation interface including image views corresponding to all view controls, comprising steps of;
parsing the information about the view controls, and constructing all view controls for the specified window into the view control tree;
transmitting information about each view control in the view control tree to a corresponding view node, and converting the information into node attributes of the corresponding view node; and
building the presentation interface according to the node attributes of the view node, the presentation interface including image views corresponding to all view controls, comprising steps of;
drawing each view control into a picture separately and saving the picture; and
displaying, according to position information of the view control in the node attributes, the corresponding picture in a same position with one of the image views to form the presentation interface;
receiving a click instruction from a user for clicking one of the image views, removing the image view clicked by the user from the presentation interface, and saving the current presentation interface when a save instruction is received; and
capturing an image of the presentation interface in the current screen and saving the captured image.
1 Assignment
0 Petitions
Accused Products
Abstract
A screen capturing method for an electronic device is provided and includes: acquiring and parsing interface information currently displayed in an electronic device to obtain information about all view controls for a specified window; parsing the information about view controls, constructing all view controls for the specified window into a view control tree, and building a presentation interface including image views corresponding to all view controls; receiving a click instruction from a user for clicking one of the image views, removing the image view clicked by the user from the presentation interface, and saving the current presentation interface when a save instruction is received; and capturing an image of the presentation interface in the current screen and saving the captured image.
8 Citations
11 Claims
-
1. A screen capturing method for an electronic device having a screen capturing system comprising one or more processors, a memory, and one or more applications stored in the memory and configured to be executed by the one or more processors to perform the screen capturing method, the screen capturing method comprising the following steps of:
-
acquiring and parsing interface information currently displayed in an electronic device to obtain information about all view controls for a specified window; parsing the information about view controls, constructing all view controls for the specified window into a view control tree, and building a presentation interface including image views corresponding to all view controls, comprising steps of; parsing the information about the view controls, and constructing all view controls for the specified window into the view control tree; transmitting information about each view control in the view control tree to a corresponding view node, and converting the information into node attributes of the corresponding view node; and building the presentation interface according to the node attributes of the view node, the presentation interface including image views corresponding to all view controls, comprising steps of; drawing each view control into a picture separately and saving the picture; and displaying, according to position information of the view control in the node attributes, the corresponding picture in a same position with one of the image views to form the presentation interface; receiving a click instruction from a user for clicking one of the image views, removing the image view clicked by the user from the presentation interface, and saving the current presentation interface when a save instruction is received; and capturing an image of the presentation interface in the current screen and saving the captured image. - View Dependent Claims (2, 3, 4)
-
-
5. A screen capturing system for an electronic device, comprising:
-
one or more processors; a memory; and one or more applications stored in the memory and configured to be executed by the processors, comprising; an acquisition module configured to acquire and parse interface information currently displayed in an electronic device to obtain information about all view controls for a specified window; a parsing and building module configured to parse the information about view controls, construct all view controls for the specified window into a view control tree, and build a presentation interface including image views corresponding to all view controls; wherein the parsing and building module comprises; a parsing unit configured to parse the information about the view controls, and construct all view controls for the specified window into the view control tree; an information processing unit configured to transmit information about each view control in the view control tree to a corresponding view node, and convert the information into node attributes of the corresponding view node; and a building unit configured to build the presentation interface according to the node attributes of the view node, the presentation interface including image views corresponding to all view controls; wherein the building unit comprises; a drawing subunit configured to draw each view control into a picture separately and save the picture; and a display unit configured to display, according to position information of the view control in the node attributes, the corresponding picture in a same position with one of the image views to form the presentation interface; an interface processing module configured to receive a click instruction from a user for clicking one of the image views, remove the image view clicked by the user from the presentation interface, and save the current presentation interface when a save instruction is received; and a screen capturing module configured to capture an image of the presentation interface in the current screen and save the captured image. - View Dependent Claims (6, 7, 8)
-
-
9. An electronic device having a screen capturing system, comprising:
-
one or more processors; a memory; and one or more applications stored in the memory and configured to perform, when executed by the processors, the following steps; acquiring and parsing interface information currently displayed in an electronic device to obtain information about all view controls for a specified window; parsing the information about view controls, constructing all view controls for the specified window into a view control tree, and building a presentation interface including image views corresponding to all view controls, comprising steps of; parsing the information about the view controls, and constructing all view controls for the specified window into the view control tree; transmitting information about each view control in the view control tree to a corresponding view node, and converting the information into node attributes of the corresponding view node; and building the presentation interface according to the node attributes of the view node, the presentation interface including image views corresponding to all view controls, comprising steps of; drawing each view control into a picture separately and saving the picture; and displaying, according to position information of the view control in the node attributes, the corresponding picture in a same position with one of the image views to form the presentation interface; receiving a click instruction from a user for clicking one of the image views, removing the image view clicked by the user from the presentation interface, and saving the current presentation interface when a save instruction is received;
wherein the removed image view is saved in a take-out interface and is configured to be selectively recovered by the user by clicking a BACK key or by being clicked in the take-out interface; andcapturing an image of the presentation interface in the current screen and saving the captured image. - View Dependent Claims (10, 11)
-
Specification