[go: up one dir, main page]

CN104267931B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN104267931B
CN104267931B CN201410268337.0A CN201410268337A CN104267931B CN 104267931 B CN104267931 B CN 104267931B CN 201410268337 A CN201410268337 A CN 201410268337A CN 104267931 B CN104267931 B CN 104267931B
Authority
CN
China
Prior art keywords
display area
target object
screenshot
unit
instruction
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
CN201410268337.0A
Other languages
Chinese (zh)
Other versions
CN104267931A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410268337.0A priority Critical patent/CN104267931B/en
Publication of CN104267931A publication Critical patent/CN104267931A/en
Application granted granted Critical
Publication of CN104267931B publication Critical patent/CN104267931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of information processing method, when showing at least one wicket on the display unit of electronic equipment with the first display area, the described method includes:The operation of detection first, first operation is shot operation;Determine the first operational attribute of first operation;The destination object of first operation is determined based on first operational attribute, the destination object includes removing the second display area of the display area of the wicket in first display area and/or the display unit;Based on the destination object after determining and first operation, the instruction of generation first;First instruction is performed, to carry out sectional drawing to the destination object;Meanwhile the invention also discloses a kind of electronic equipment.The sectional drawing to wicket can be achieved using the present invention, embody the functional diversities of electronic equipment, improve user experience.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to information processing technologies, and in particular, to an information processing method and an electronic device.
Background
Currently, when an application of an electronic device is started, a corresponding operating system, such as an Android operating system, is responsible for displaying a full screen window or two split screen windows for the started application. When corresponding applications are displayed through the two split-screen windows, when a screen capturing instruction is sent to any one single split-screen window in the two split-screen windows, the application contents displayed in the two split-screen windows are captured simultaneously, the application contents in one single split-screen window cannot be captured, and the use experience of a user is reduced.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide an information processing method and an electronic device, which can implement screenshot on a single split-screen window or a small window, can embody function diversification of the electronic device, and improve user experience.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an information processing method, which is applied to electronic equipment, wherein the electronic equipment can run a first application program, the first application program can be displayed on a display unit of the electronic equipment in a full-screen window display mode or a small-window display mode, and the display area of a small window is smaller than that of a full-screen window; when at least one small window is displayed on the display unit in a first display area, the method comprises the following steps:
detecting a first operation, wherein the first operation is a screenshot operation;
determining a first operation attribute of the first operation;
determining a target object of the first operation based on the first operation attribute, wherein the target object comprises the first display area and/or a second display area except the display area of the small window in the display unit;
generating a first instruction based on the determined target object and the first operation;
and executing the first instruction to capture the screenshot of the target object.
The embodiment of the invention also provides the electronic equipment, which comprises a display unit; running a first application program on the display unit in a full-screen window display mode or a small-window display mode; the display area of the small window is smaller than that of the full-screen window; the display unit is used for displaying at least one small window in a first display area; the electronic device further includes:
the device comprises a first detection unit, a second detection unit and a control unit, wherein the first detection unit is used for detecting a first operation, and the first operation is a screenshot operation;
a first determination unit configured to determine a first operation attribute of the first operation;
a second determining unit, configured to determine, based on the first operation attribute, a target object of the first operation, where the target object includes the first display area and/or a second display area of the display unit excluding a display area of the small window;
a first generating unit, configured to generate a first instruction based on the determined target object and the first operation;
and the first execution unit is used for executing the first instruction so as to capture the screenshot of the target object.
The method is applied to electronic equipment, the electronic equipment can run a first application program, the first application program can be displayed on a display unit of the electronic equipment in a full-screen window display mode or a small-window display mode, and a display area of the small window is smaller than that of the full-screen window; when at least one small window is displayed on the display unit in a first display area, the method comprises the following steps: detecting a first operation, wherein the first operation is a screenshot operation; determining a first operation attribute of the first operation; determining a target object of the first operation based on the first operation attribute, wherein the target object comprises the first display area and/or a second display area except the display area of the small window in the display unit; generating a first instruction based on the determined target object and the first operation; and executing the first instruction to capture the screenshot of the target object. By utilizing the technical scheme of the embodiment of the invention, the screenshot of the single split screen window or the small window can be realized, the function diversification of the electronic equipment is embodied, and the user experience is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating a first embodiment of an information processing method according to the present invention;
FIG. 2 is a flowchart illustrating an implementation of a second embodiment of the information processing method according to the present invention;
FIG. 3 is a flowchart illustrating an implementation of a third embodiment of the information processing method according to the present invention;
FIG. 4 is a flowchart illustrating an implementation of a fourth embodiment of the information processing method according to the present invention;
FIG. 5 is a schematic diagram of a first embodiment of an electronic device according to the present invention;
FIG. 6 is a schematic diagram of a second embodiment of an electronic device according to the present invention;
FIG. 7 is a schematic diagram of a third embodiment of an electronic device according to the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to a fourth embodiment of the invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
The following embodiments provided by the present invention relate to electronic devices including but not limited to: industrial control computers, personal computers, and the like, all types of computers, all-in-one computers, tablet computers, mobile phones, electronic readers, and the like. A preferred electronic device according to the following embodiments of the present invention is a cellular phone.
In embodiments of the electronic device and the information processing method provided by the present invention, the electronic device includes a display unit, the display unit can run M first applications, the electronic device can execute a first instruction, and present N widgets on the display unit, where the N widgets correspond to N first applications in the M first applications, so that the N first applications are displayed in respective corresponding widgets, and the widgets are obtained by transforming the full-screen window according to a first transformation parameter; the first application program is displayed on the display unit through the corresponding small window; m, N are all positive integers.
The first application program can be an application carried by the electronic equipment system, such as a clock application, a short message application, an address book application and the like; or may be a third party application installed by the user such as a gaming application, a WeChat application, a browser application, an instant chat application, a mail application, etc.
The first application program is displayed on a desktop of the electronic equipment in an interactive object mode, one first application program corresponds to one interactive object, the interactive object can be an object identifier, the object identifier is generally an icon, and the first application program is displayed on the display unit through a small window or a full screen window by operating the object identifier of the first application program, so that a user can use the first application program conveniently. For example, on a desktop of an electronic device such as a mobile phone, when a user touches an icon of a clock application, the clock application may be opened and displayed on a display unit in a small-window or full-screen window manner.
In the embodiment of the invention, the full screen window of the first application program can be transformed by utilizing the first transformation parameter to generate a small window; for example, a full-screen window is subjected to a reduction transform, a panning transform, a rotation transform, a shape transform, and the like, and the full-screen window is further transformed into a small window. Wherein the first conversion parameter may be at least one of: parameters, matrices, parameter sets. In an implementation process, the first conversion parameter may be a matrix, a parameter group; the parameters in the parameter set may be a specific numerical value or a vector.
The following describes a transformation process from a full screen window to a small window by using the first matrix by taking the first transformation parameter as the matrix and regarding the matrix as the first matrix.
Here, the first matrix may be set in advance by a manufacturer of the electronic device, or may be set in the electronic device manually by a user; in order to facilitate the user to manually set the first matrix, the electronic device provides an automatic matrix generation function, the user only needs to set some parameters related to the first matrix on the electronic device, such as a window abscissa scaling parameter, a window ordinate scaling parameter, a window translation parameter, a window shape parameter, a window angle rotation parameter, and the like, and the electronic device can generate the corresponding first matrix according to the parameters.
Here, performing scaling and rotation transformation on the full-screen window of the first application by using the first matrix can be implemented by formula (1 a):
in the formula (1a), the first and second groups,is a coordinate vector of a small window, x2Is the abscissa of the small window, y2Is the ordinate of the small window, z2A general default setting is 1;v denotes a first matrix, which is a 3X 3 matrix, MijRepresenting the elements of the ith row and the jth column in the first matrix, wherein i takes the values of 1, 2 and 3; j takes the values of 1, 2 and 3;coordinate vector, x, representing a full screen window1As abscissa of full screen window, y1Is the ordinate of a full-screen window, z1A general default setting is 1;
when the full screen window is subjected to scaling transformation by the formula (1a), M can be convertedijThe 4 elements in (a) are set as follows: m11=α、M12=0、M21=0、M22The other 5 elements may be arbitrarily set up as β, and thus, by substituting the above parameters set up into formula (1a), formula (2a) can be obtained:
x2=α×x1
(2a)
y2=β×y1
wherein α is an abscissa scaling parameter, and β is an ordinate scaling parameter.
When the full screen window is subjected to clockwise rotation transformation through the formula (1a), M can be convertedijThe 4 elements in (a) are set as follows: m11=cosθ、M12=sinθ、M21=-sinθ、M22The other 5 elements may be arbitrarily set, and thus, by substituting the set parameters into the formula (1a), the formula (3a) may be obtained:
x2=cosθ×x1+sinθ×y1
(3a)
y2=-sinθ×x1+cosθ×y1
where θ is the rotation angle.
The full-screen window of the first application program is subjected to translation transformation by using the first matrix, which can be realized by formula (4 a):
when the full screen window is subjected to translation transformation by the formula (4a), M can be convertedij2 elements in (a) are set as follows: m11=a、M21=b、M31As such, by substituting the above parameters set in equation (4a), equation (5a) can be derived:
x2=a+x1
(5a)
y2=b+y1
wherein, a is an abscissa translation parameter, and b is an ordinate translation parameter.
In the scheme, a plurality of coordinate vectors of the full-screen window can be provided, and each coordinate vector corresponds to the position of one pixel point; similarly, there may be a plurality of coordinate vectors of the small window, and the number of the coordinate vectors of the small window corresponds to the number of the coordinate vectors of the full-screen window one to one, and the coordinate vector of the small window also corresponds to the position of a pixel point, which is the pixel point corresponding to the full-screen window.
The method comprises the steps that the graph cache data of a first application program under a full-screen window can be transformed through a first matrix, and the graph cache data of the first application program under a small window is generated; by changing the graphic cache data under the full screen window, the full screen window of the first application program can be reduced to form a corresponding small window in the display effect, and then the first application program is displayed on the display screen of the electronic equipment in a small window state.
In specific implementation, each element in the first matrix can be set to other values, so that a full-screen window is converted into a corresponding small window; of course, the elements in the first matrix may be set to simultaneously perform operations such as scaling, panning, and rotating on the full-screen window.
In the above scheme, the first matrix is a square matrix with dimension 3, and other dimension matrixes, such as a 4 × 4 square matrix, may be used. Those skilled in the art can transform the dimension of the square matrix according to actual needs, and the description is omitted here.
The first embodiment of the information processing method provided by the invention is applied to an electronic device, the electronic device can run a first application program, the first application program can be displayed on a display unit of the electronic device through a full-screen window display mode or a small-window display mode, and the display area of the small window is smaller than that of the full-screen window. The specific implementation process of the small window obtained by transforming the full-screen window through the first transformation parameter is as described above, and is not described herein again.
Fig. 1 is a schematic flow chart illustrating an implementation of a first embodiment of an information processing method according to the present invention; as shown in fig. 1, when at least one small window is displayed on the display unit in a first display area, the method includes:
step 101: detecting a first operation, wherein the first operation is a screenshot operation;
here, the first operation may specifically be a touch operation or a key operation of a user.
Step 102: determining a first operation attribute of the first operation;
here, the first operation attribute may be an operation area of the first operation on the display unit, or a length of an operation trajectory, or an operation position.
Step 103: determining a target object of the first operation based on the first operation attribute, wherein the target object comprises the first display area and/or a second display area except the display area of the small window in the display unit;
here, it is determined whether a target object of the first operation is the small window in the first display area, the second display area, or the display unit including the first display area and the second display area, depending on the first operation attribute.
Step 104: generating a first instruction based on the determined target object and the first operation;
here, a screenshot instruction is generated for the determined target object.
Step 105: and executing the first instruction to capture the screenshot of the target object.
Here, in response to the screenshot instruction, screenshot is performed on the determined target object, such as the small window of the first display area, or the second display area, or the display unit.
Therefore, in the embodiment, according to the operation attribute of the screenshot operation, whether the target object of the screenshot operation is the first display area, the second display area or the display unit is determined, and the screenshot is executed on the determined target object; the screenshot of the small window of the first display area is realized, the use of the electronic equipment by a user is facilitated, the user experience is improved, and meanwhile, the function diversification of the electronic equipment is reflected.
The second embodiment of the information processing method provided by the invention is applied to an electronic device, the electronic device can run a first application program, the first application program can be displayed on a display unit of the electronic device through a full-screen window display mode or a small-window display mode, and a display area of the small window is smaller than that of the full-screen window. The specific implementation process of the small window obtained by transforming the full-screen window through the first transformation parameter is as described above, and is not described herein again.
FIG. 2 is a schematic flow chart illustrating an implementation of a second embodiment of the information processing method according to the present invention; as shown in fig. 2, when at least one small window is displayed on the display unit in a first display area, the method includes:
step 201: detecting a first operation, wherein the first operation is a screenshot operation;
here, the first operation may specifically be a touch operation or a key operation of a user.
Step 202: acquiring an operation area of the first operation on the display unit; determining the operation area as a first operation attribute;
here, this step serves as a further description of determining the first operation attribute of the first operation according to the embodiment of the present invention.
Step 203: when the operation area is judged to be within a preset first area range, determining that a target object of the first operation is the first display area;
here, this step is taken as a further description of determining a target object of the first operation based on the first operation attribute, where the target object includes the first display area and/or a second display area of the display unit excluding the display area of the small window.
Step 204: generating a first instruction based on the determined target object and the first operation;
here, a screenshot instruction is generated for the determined target object.
Step 205: executing the first instruction to capture a screenshot of the small window displayed in the first display area.
Here, in response to the screenshot instruction, screenshot is performed on the small window of the first display area, which is the determined target object.
In the embodiment of the present invention, when it is determined that the operation area is within a preset second area range, it is determined that the target object of the first operation is the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the second display area.
In the embodiment of the present invention, when it is determined that the operation area is within a preset third area range, determining that a target object of the first operation is the first display area and the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the display unit.
In this embodiment, different target objects can be distinguished from the operation attribute of the size of the operation area, and if the target object corresponding to the single-finger operation is the first display area, the target object corresponding to the two-finger operation is the second display area, and the target object corresponding to the three-finger operation is the display unit, the value of the first area range is equivalent to the operation area of the single-finger operation, the value of the second area range is equivalent to the operation area of the two-finger operation, and the value of the third area range is equivalent to the operation area of the three-finger operation.
Therefore, in the embodiment, according to the operation attribute of the operation area of the screenshot operation, it is determined that the target object of the screenshot operation is the first display area, the second display area or the display unit, and the screenshot is executed on the determined target object; the screenshot of the small window located in the first display area is achieved, the user can conveniently use the electronic equipment, the user experience is improved, and meanwhile the function diversification of the electronic equipment is reflected.
The third embodiment of the information processing method provided by the present invention is applied to an electronic device, where the electronic device is capable of running a first application program, the first application program is capable of being displayed on a display unit of the electronic device in a full-screen window display mode or a small-window display mode, and a display area of the small window is smaller than a display area of the full-screen window. The specific implementation process of the small window obtained by transforming the full-screen window through the first transformation parameter is as described above, and is not described herein again.
FIG. 3 is a schematic flow chart illustrating an implementation of a third embodiment of an information processing method according to the present invention; as shown in fig. 3, when at least one small window is displayed on the display unit in a first display area, the method includes:
step 301: detecting a first operation, wherein the first operation is a screenshot operation;
here, the first operation may specifically be a touch operation or a key operation of a user.
Step 302: acquiring the length of an operation track of the first operation on the display unit; determining the length of the operation track as a first operation attribute;
here, this step serves as a further description of determining the first operation attribute of the first operation according to the embodiment of the present invention.
Step 303: when the length of the operation track is judged to be within a preset first length range, determining that a target object of the first operation is the first display area;
here, this step is taken as a further description of determining a target object of the first operation based on the first operation attribute, where the target object includes the first display area and/or a second display area of the display unit excluding the display area of the small window.
Step 304: generating a first instruction based on the determined target object and the first operation;
here, a screenshot instruction is generated for the determined target object.
Step 305: executing the first instruction to capture a screenshot of the small window displayed in the first display area.
Here, in response to the screenshot instruction, screenshot is performed on the small window of the first display area, which is the determined target object.
In the embodiment of the present invention, when it is determined that the length of the operation trajectory is within a preset second length range, determining that the target object of the first operation is the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the second display area.
In the embodiment of the present invention, when it is determined that the length of the operation trajectory is within a preset third length range, determining that a target object of the first operation is the first display area and the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the display unit.
In this embodiment, different target objects can be distinguished from the operation attribute of the length of the operation track, for example, when the length of the operation track is 1/3 (a first length range) of the length of the electronic device in the longitudinal direction, the target object is a first display area; when the length of the operation track is 2/3 (a second length range) of the length of the electronic equipment in the longitudinal direction, the target object is a second display area; when the length of the operation trajectory is the length (third length range) of the electronic device in the longitudinal direction, the target object is a display unit.
Therefore, in the embodiment, according to the operation attribute of the length of the operation track of the screenshot operation, it is determined that the target object of the screenshot operation is the first display area, the second display area or the display unit, and the screenshot is executed on the determined target object; the screenshot of the small window located in the first display area is achieved, the user can conveniently use the electronic equipment, the user experience is improved, and meanwhile the function diversification of the electronic equipment is reflected.
The fourth embodiment of the information processing method provided by the present invention is applied to an electronic device, where the electronic device is capable of running a first application program, the first application program is capable of being displayed on a display unit of the electronic device in a full-screen window display mode or a small-window display mode, and a display area of the small window is smaller than a display area of the full-screen window. The specific implementation process of the small window obtained by transforming the full-screen window through the first transformation parameter is as described above, and is not described herein again.
FIG. 4 is a schematic flow chart illustrating an implementation of a fourth embodiment of the information processing method according to the present invention; as shown in fig. 4, when at least one small window is displayed on the display unit in a first display area, the method includes:
step 401: detecting a first operation, wherein the first operation is a screenshot operation;
here, the first operation may specifically be a touch operation or a key operation of a user.
Step 402: acquiring an operation position of the first operation on the display unit; determining the operation position as a first operation attribute;
here, this step serves as a further description of determining the first operation attribute of the first operation according to the embodiment of the present invention.
Step 403: when the operation position is judged to be located in the first display area, determining that a target object of the first operation is the first display area;
here, this step is taken as a further description of determining a target object of the first operation based on the first operation attribute, where the target object includes the first display area and/or a second display area of the display unit excluding the display area of the small window.
Step 404: generating a first instruction based on the determined target object and the first operation;
here, a screenshot instruction is generated for the determined target object.
Step 405: executing the first instruction to capture a screenshot of the small window displayed in the first display area.
Here, in response to the screenshot instruction, screenshot is performed on the small window of the first display area, which is the determined target object.
In the embodiment of the present invention, when it is determined that the operation position is located in the second display area, it is determined that the target object of the first operation is the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the second display area.
In the embodiment of the present invention, when it is determined that the operation position is located in the reserved area of the display unit, it is determined that the target object of the first operation is the first display area and the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the display unit.
In this embodiment, different target objects can be distinguished from the operation attribute of the operation position, for example, when the operation position is located in the first display area, the target object is the first display area; when the operation position is located in the second display area, the target object is the second display area; when the operation position is located in a reserved area on the display unit, such as the upper right corner of the display unit, the target object is the display unit.
Therefore, in the embodiment, according to the operation attribute of the operation position of the screenshot operation, it is determined that the target object of the screenshot operation is the first display area, the second display area or the display unit, and the screenshot is executed on the determined target object; the screenshot of the small window located in the first display area is achieved, the user can conveniently use the electronic equipment, the user experience is improved, and meanwhile the function diversification of the electronic equipment is reflected.
In a first embodiment of the electronic device provided by the present invention, the electronic device includes a display unit 500; running a first application on the display unit 500 in a full-screen window display mode or a small-window display mode; the display area of the small window is smaller than that of the full-screen window; the specific implementation process of the small window obtained by transforming the full-screen window through the first transformation parameter is as described above, and is not described herein again.
FIG. 5 is a schematic diagram of a first embodiment of an electronic device according to the present invention; as shown in fig. 5, the electronic device further includes: a first detection unit 501, a first determination unit 502, a second determination unit 503, a first generation unit 504, and a first execution unit 505; wherein,
the display unit 500 is configured to display at least one small window in a first display area;
a first detecting unit 501, configured to detect a first operation, where the first operation is a screenshot operation;
here, the first operation may specifically be a touch operation or a key operation of a user.
A first determining unit 502, configured to determine a first operation attribute of the first operation;
here, the first operation attribute may be an operation area of the first operation on the display unit, or a length of an operation trajectory, or an operation position.
A second determining unit 503, configured to determine, based on the first operation attribute, a target object of the first operation, where the target object includes the first display area and/or a second display area of the display unit excluding a display area of the small window;
here, the second determining unit 503 determines whether the target object of the first operation is the small window in the first display region, the second display region, or the display unit 500 including the first display region and the second display region, depending on the first operation attribute.
A first generating unit 504, configured to generate a first instruction based on the determined target object and the first operation;
here, the first generating unit 504 generates a screenshot instruction for the determined target object.
A first execution unit 505, configured to execute the first instruction to capture a screenshot of the target object.
Here, the first execution unit 505 performs screenshot on the determined target object, such as the small window of the first display area, or the second display area, or the display unit, in response to the screenshot instruction.
Therefore, in the embodiment, according to the operation attribute of the screenshot operation, whether the target object of the screenshot operation is the first display area, the second display area or the display unit is determined, and the screenshot is executed on the determined target object; the screenshot of the small window of the first display area is realized, the use of the electronic equipment by a user is facilitated, the user experience is improved, and meanwhile, the function diversification of the electronic equipment is reflected.
In a second embodiment of the electronic device provided by the present invention, the electronic device includes a display unit 600; running a first application program on the display unit 600 in a full-screen window display mode or a small-window display mode; the display area of the small window is smaller than that of the full-screen window; the specific implementation process of the small window obtained by transforming the full-screen window through the first transformation parameter is as described above, and is not described herein again.
FIG. 6 is a schematic diagram of a second embodiment of an electronic device according to the present invention; as shown in fig. 6, the electronic device further includes: a first detection unit 601, a first determination unit 602, a second determination unit 603, a first generation unit 604, and a first execution unit 605; wherein,
the display unit 600 is configured to display at least one small window in a first display area;
a first detecting unit 601, configured to detect a first operation, where the first operation is a screenshot operation;
here, the first operation may specifically be a touch operation or a key operation of a user.
A first determining unit 602, configured to obtain an operation area of the first operation on the display unit 600; determining the operation area as the first operation attribute;
here, the above-described implemented functions of the first determining unit 602 serve as a further description of the first determining unit 602 determining the first operation attribute of the first operation.
A second determining unit 603, configured to determine that a target object of the first operation is the first display area when it is determined that the operation area is within a preset first area range;
here, the function of the second determining unit 603 implemented as described above is used as a further description that the second determining unit 603 determines a target object of the first operation based on the first operation attribute, where the target object includes the first display area and/or a second display area of the display unit excluding the display area of the small window.
A first generating unit 604, configured to generate a first instruction based on the determined target object and the first operation;
here, the first generation unit 604 generates a screen capture instruction.
A first execution unit 605, configured to execute the first instruction to capture a screenshot of the widget displayed in the first display area.
Here, the first execution unit 605 performs screenshot on the small window of the first display area, which is the determined target object, in response to the screenshot instruction.
In this embodiment of the present invention, the second determining unit 603 is configured to determine that the target object of the first operation is the second display area when it is determined that the operation area is within a preset second area range;
correspondingly, the first executing unit 605 is configured to execute the first instruction, namely the screenshot instruction, generated by the first generating unit 604, so as to screenshot the second display area.
In this embodiment of the present invention, the second determining unit 603 is configured to determine that a target object of the first operation is the first display area and the second display area when it is determined that the operation area is within a preset third area range;
correspondingly, the first execution unit 605 is configured to execute the first instruction, that is, the screenshot instruction, generated by the first generation unit 604, so as to capture a screenshot of the display unit 600.
In this embodiment, different target objects can be distinguished from the operation attribute of the size of the operation area, and if the target object corresponding to the single-finger operation is the first display area, the target object corresponding to the two-finger operation is the second display area, and the target object corresponding to the three-finger operation is the display unit 500, the value of the first area range is equivalent to the operation area of the single-finger operation, the value of the second area range is equivalent to the operation area of the two-finger operation, and the value of the third area range is equivalent to the operation area of the three-finger operation.
Therefore, in the embodiment, according to the operation attribute of the operation area of the screenshot operation, it is determined that the target object of the screenshot operation is the first display area, the second display area or the display unit, and the screenshot is executed on the determined target object; the screenshot of the small window located in the first display area is achieved, the user can conveniently use the electronic equipment, the user experience is improved, and meanwhile the function diversification of the electronic equipment is reflected.
In a third embodiment of the electronic device provided by the present invention, the electronic device includes a display unit 700; running a first application on the display unit 700 in a full-screen window display mode or a small-window display mode; the display area of the small window is smaller than that of the full-screen window; the specific implementation process of the small window obtained by transforming the full-screen window through the first transformation parameter is as described above, and is not described herein again.
FIG. 7 is a schematic diagram of a third embodiment of an electronic device according to the present invention; as shown in fig. 7, the electronic device further includes: a first detection unit 701, a first determination unit 702, a second determination unit 703, a first generation unit 704, and a first execution unit 705; wherein,
the display unit 700 is configured to display at least one small window in a first display area;
a first detecting unit 701, configured to detect a first operation, where the first operation is a screenshot operation;
here, the first operation may specifically be a touch operation or a key operation of a user.
A first determining unit 702, configured to obtain a length of an operation trajectory of the first operation on the display unit 700; determining the length of the operation track as a first operation attribute;
here, the above-described implemented functions of the first determining unit 702 serve as a further description of the first determining unit 702 determining the first operation attribute of the first operation.
A second determining unit 703, configured to determine that the target object of the first operation is the first display area when it is determined that the length of the operation trajectory is within a preset first length range;
here, the function of the second determining unit 703 implemented as described above is further described in the second determining unit 703 that determines the target object of the first operation based on the first operation attribute, where the target object includes the first display area and/or a second display area of the display unit excluding the display area of the small window.
A first generating unit 704, configured to generate a first instruction based on the determined target object and the first operation;
here, the first generation unit 704 generates a screen capture instruction.
A first execution unit 705, configured to execute the first instruction to capture a screenshot of the widget displayed in the first display area.
Here, the first execution unit 705, in response to the screenshot instruction, performs screenshot on the small window of the first display area, which is the determined target object.
In this embodiment of the present invention, the second determining unit 703 is configured to determine that the target object of the first operation is the second display area when it is determined that the length of the operation trajectory is within a preset second length range;
correspondingly, the first executing unit 705 is configured to execute the first instruction, namely the screenshot instruction, generated by the first generating unit 704, so as to screenshot the second display area.
In this embodiment of the present invention, the second determining unit 703 is configured to determine that a target object of the first operation is the first display area and the second display area when it is determined that the length of the operation trajectory is within a preset third length range;
correspondingly, the first executing unit 705 is configured to execute the first instruction, namely the screenshot instruction, generated by the first generating unit 704, so as to screenshot the display unit 700.
In this embodiment, different target objects can be distinguished from the operation attribute of the length of the operation track, for example, when the length of the operation track is 1/3 (a first length range) of the length of the electronic device in the longitudinal direction, the target object is a first display area; when the length of the operation track is 2/3 (a second length range) of the length of the electronic equipment in the longitudinal direction, the target object is a second display area; when the length of the operation trajectory is the length of the electronic device in the longitudinal direction (the third length range), the target object is the display unit 700.
Therefore, in the embodiment, according to the operation attribute of the length of the operation track of the screenshot operation, it is determined that the target object of the screenshot operation is the first display area, the second display area or the display unit, and the screenshot is executed on the determined target object; the screenshot of the small window located in the first display area is achieved, the user can conveniently use the electronic equipment, the user experience is improved, and meanwhile the function diversification of the electronic equipment is reflected.
In a fourth embodiment of the electronic device provided by the present invention, the electronic device includes a display unit 800; running a first application on the display unit 800 in a full-screen window display mode or a small-window display mode; the display area of the small window is smaller than that of the full-screen window; the specific implementation process of the small window obtained by transforming the full-screen window through the first transformation parameter is as described above, and is not described herein again.
FIG. 8 is a schematic diagram of a fourth embodiment of an electronic device according to the present invention; as shown in fig. 8, the electronic device further includes: a first detection unit 801, a first determination unit 802, a second determination unit 803, a first generation unit 804, a first execution unit 805; wherein,
the display unit 800 is configured to display at least one small window in a first display area;
a first detection unit 801, configured to detect a first operation, where the first operation is a screenshot operation;
here, the first operation may specifically be a touch operation or a key operation of a user.
A first determination unit 802 configured to acquire an operation position of the first operation on the display unit 800; determining the operation position as a first operation attribute;
here, the above-described implemented functions of the first determination unit 802 serve as a further description that the first determination unit 802 determines the first operation attribute of the first operation.
A second determining unit 803, configured to determine that a target object of the first operation is the first display area when it is determined that the operation position is located in the first display area;
here, the second determining unit 803 implements the above-described function as a further description that the second determining unit 803 determines a target object of the first operation based on the first operation attribute, the target object including the first display area and/or a second display area of the display unit excluding the display area of the small window.
A first generating unit 804, configured to generate a first instruction based on the determined target object and the first operation;
here, the first generation unit 804 generates a screenshot instruction.
A first execution unit 805, configured to execute the first instruction to capture a screenshot of the widget displayed in the first display area.
Here, the first execution unit 805 performs screenshot on the small window of the first display area, which is the determined target object, in response to the screenshot instruction.
In this embodiment of the present invention, the second determining unit 803 is configured to determine that the target object of the first operation is the second display area when it is determined that the operation position is located in the second display area;
correspondingly, the first executing unit 805 is configured to execute the first instruction, that is, the screenshot instruction generated by the first generating unit 804, so as to screenshot the second display area.
In this embodiment of the present invention, the second determining unit 803 is configured to determine that a target object of the first operation is the first display area and the second display area when it is determined that the operation position is located in the reserved area of the display unit;
correspondingly, the first execution unit 805 is configured to execute the first instruction, that is, the screenshot instruction, generated by the first generation unit 804, so as to screenshot the display unit 800.
In this embodiment, different target objects can be distinguished from the operation attribute of the operation position, for example, when the operation position is located in the first display area, the target object is the first display area; when the operation position is located in the second display area, the target object is the second display area; when the operation position is located in a reserved area on the display unit 800, such as the upper right corner of the display unit, the target object is the display unit 800.
Therefore, in the embodiment, according to the operation attribute of the operation position of the screenshot operation, it is determined that the target object of the screenshot operation is the first display area, the second display area or the display unit, and the screenshot is executed on the determined target object; the screenshot of the small window located in the first display area is achieved, the user can conveniently use the electronic equipment, the user experience is improved, and meanwhile the function diversification of the electronic equipment is reflected.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (20)

1. An information processing method is applied to an electronic device, the electronic device can run a first application program, the first application program can be displayed on a display unit of the electronic device through a full-screen window display mode or a small-window display mode, and the display area of the small window is smaller than that of the full-screen window; when at least one small window is displayed on the display unit in a first display area, the method comprises the following steps:
detecting a first operation, wherein the first operation is a screenshot operation;
determining a first operation attribute of the first operation; the first operational attribute comprises: an operating area, a length of an operating trajectory, or an operating position;
determining a target object of the first operation based on the first operation attribute, wherein the target object comprises the first display area and/or a second display area except the display area of the small window in the display unit;
generating a first instruction based on the determined target object and the first operation;
and executing the first instruction to capture the screenshot of the target object.
2. The method of claim 1, wherein determining the first operation attribute of the first operation comprises:
acquiring an operation area of the first operation on the display unit;
determining the operation area as the first operation attribute;
correspondingly, the determining the target object of the first operation based on the first operation attribute comprises:
when the operation area is judged to be within a preset first area range, determining that a target object of the first operation is the first display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
executing the first instruction to capture a screenshot of the small window displayed in the first display area.
3. The method of claim 2, further comprising:
when the operation area is judged to be within a preset second area range, determining that the target object of the first operation is the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the second display area.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
when the operation area is judged to be within a preset third area range, determining that the target object of the first operation is the first display area and the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the display unit.
5. The method of claim 1, wherein determining the first operation attribute of the first operation comprises:
acquiring the length of an operation track of the first operation on the display unit;
determining the length of the operation track as the first operation attribute;
correspondingly, the determining the target object of the first operation based on the first operation attribute comprises:
when the length of the operation track is judged to be within a preset first length range, determining that a target object of the first operation is the first display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
executing the first instruction to capture a screenshot of the small window displayed in the first display area.
6. The method of claim 5, further comprising:
when the length of the operation track is judged to be within a preset second length range, determining that the target object of the first operation is the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the second display area.
7. The method of claim 5 or 6, further comprising:
when the length of the operation track is judged to be within a preset third length range, determining that the target object of the first operation is the first display area and the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the display unit.
8. The method of claim 1, wherein determining the first operation attribute of the first operation comprises:
acquiring an operation position of the first operation on the display unit;
determining the operation position as the first operation attribute;
correspondingly, the determining the target object of the first operation based on the first operation attribute comprises:
when the operation position is judged to be located in the first display area, determining that a target object of the first operation is the first display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
executing the first instruction to capture a screenshot of the small window displayed in the first display area.
9. The method of claim 8, further comprising:
when the operation position is judged to be located in the second display area, determining that a target object of the first operation is the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the second display area.
10. The method according to claim 8 or 9, characterized in that the method further comprises:
when the operation position is judged to be located in the reserved area of the display unit, determining that the target object of the first operation is the first display area and the second display area;
correspondingly, the executing the first instruction to capture the screenshot of the target object includes:
and executing the first instruction to capture the screenshot of the display unit.
11. An electronic device, the electronic device comprising a display unit; running a first application program on the display unit in a full-screen window display mode or a small-window display mode; the display area of the small window is smaller than that of the full-screen window; the display unit is used for displaying at least one small window in a first display area; the electronic device further includes:
the device comprises a first detection unit, a second detection unit and a control unit, wherein the first detection unit is used for detecting a first operation, and the first operation is a screenshot operation;
a first determination unit configured to determine a first operation attribute of the first operation; the first operational attribute comprises: an operating area, a length of an operating trajectory, or an operating position;
a second determining unit, configured to determine, based on the first operation attribute, a target object of the first operation, where the target object includes the first display area and/or a second display area of the display unit excluding a display area of the small window;
a first generating unit, configured to generate a first instruction based on the determined target object and the first operation;
and the first execution unit is used for executing the first instruction so as to capture the screenshot of the target object.
12. The electronic device of claim 11,
the first determination unit is used for acquiring the operation area of the first operation on the display unit; determining the operation area as the first operation attribute;
correspondingly, the second determining unit is configured to determine that the target object of the first operation is the first display area when the operating area is determined to be within a preset first area range;
the first execution unit is configured to execute the first instruction to capture a screenshot of the small window displayed in the first display area.
13. The electronic device of claim 12,
the second determining unit is configured to determine that the target object of the first operation is the second display area when the operating area is determined to be within a preset second area range;
correspondingly, the first execution unit is configured to execute the first instruction to capture the screenshot of the second display area.
14. The electronic device of claim 12 or 13,
the second determining unit is configured to determine that the target object of the first operation is the first display area and the second display area when it is determined that the operation area is within a preset third area range;
correspondingly, the first execution unit is configured to execute the first instruction to capture a screenshot of the display unit.
15. The electronic device of claim 11,
the first determining unit is used for acquiring the length of an operation track of the first operation on the display unit; determining the length of the operation track as the first operation attribute;
correspondingly, the second determining unit is configured to determine that the target object of the first operation is the first display area when it is determined that the length of the operation trajectory is within a preset first length range;
the first execution unit is configured to execute the first instruction to capture a screenshot of the small window displayed in the first display area.
16. The electronic device of claim 15,
the second determining unit is configured to determine that the target object of the first operation is the second display area when it is determined that the length of the operation trajectory is within a preset second length range;
correspondingly, the first execution unit is configured to execute the first instruction to capture the screenshot of the second display area.
17. The electronic device of claim 15 or 16,
the second determining unit is configured to determine that the target object of the first operation is the first display area and the second display area when it is determined that the length of the operation trajectory is within a preset third length range;
correspondingly, the first execution unit is configured to execute the first instruction to capture a screenshot of the display unit.
18. The electronic device of claim 11,
the first determination unit is used for acquiring an operation position of the first operation on the display unit; determining the operation position as the first operation attribute;
correspondingly, the second determining unit is configured to determine that the target object of the first operation is the first display area when it is determined that the operation position is located in the first display area;
the first execution unit is configured to execute the first instruction to capture a screenshot of the small window displayed in the first display area.
19. The electronic device of claim 18,
the second determining unit is configured to determine that the target object of the first operation is the second display area when it is determined that the operation position is located in the second display area;
the first execution unit is configured to execute the first instruction to capture a screenshot of the second display area.
20. The electronic device of claim 18 or 19,
the second determining unit is used for determining that the target object of the first operation is the first display area and the second display area when the operation position is judged to be located in the reserved area of the display unit;
the first execution unit is used for executing the first instruction so as to capture the screenshot of the display unit.
CN201410268337.0A 2014-06-16 2014-06-16 A kind of information processing method and electronic equipment Active CN104267931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410268337.0A CN104267931B (en) 2014-06-16 2014-06-16 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410268337.0A CN104267931B (en) 2014-06-16 2014-06-16 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104267931A CN104267931A (en) 2015-01-07
CN104267931B true CN104267931B (en) 2018-04-27

Family

ID=52159455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410268337.0A Active CN104267931B (en) 2014-06-16 2014-06-16 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104267931B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843665B (en) * 2015-12-04 2021-10-01 北京奇虎科技有限公司 A screenshot method, device and terminal device
CN106940621B (en) * 2016-01-05 2020-03-03 腾讯科技(深圳)有限公司 Picture processing method and device
CN106168873A (en) * 2016-07-05 2016-11-30 青岛海信移动通信技术股份有限公司 Screenshotss method and device
CN106468999A (en) * 2016-09-27 2017-03-01 上海斐讯数据通信技术有限公司 A kind of screenshotss method and system
CN107301013A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 Terminal screenshotss method and device
CN110658971B (en) * 2019-08-26 2021-04-23 维沃移动通信有限公司 Screen capture method and terminal device
CN112486449A (en) * 2020-12-18 2021-03-12 维沃移动通信(杭州)有限公司 Display control method, display control device, electronic device, and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399710A (en) * 2013-08-07 2013-11-20 福州瑞芯微电子有限公司 Multi-window operating achieving mobile terminal and method
CN103472999A (en) * 2013-09-30 2013-12-25 宇龙计算机通信科技(深圳)有限公司 Screenshot method and mobile terminal thereof
CN103544021A (en) * 2013-11-01 2014-01-29 锤子科技(北京)有限公司 Screen capturing method and device for screen content of mobile terminal
CN103699243A (en) * 2013-12-27 2014-04-02 深圳市威富多媒体有限公司 Method and device for using electromagnetic pen to perform fast screen capture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399710A (en) * 2013-08-07 2013-11-20 福州瑞芯微电子有限公司 Multi-window operating achieving mobile terminal and method
CN103472999A (en) * 2013-09-30 2013-12-25 宇龙计算机通信科技(深圳)有限公司 Screenshot method and mobile terminal thereof
CN103544021A (en) * 2013-11-01 2014-01-29 锤子科技(北京)有限公司 Screen capturing method and device for screen content of mobile terminal
CN103699243A (en) * 2013-12-27 2014-04-02 深圳市威富多媒体有限公司 Method and device for using electromagnetic pen to perform fast screen capture

Also Published As

Publication number Publication date
CN104267931A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN104267931B (en) A kind of information processing method and electronic equipment
US9841944B2 (en) Method for processing information and electronic apparatus
US9436379B2 (en) Control method and electronic device
CN104615336B (en) A kind of information processing method and electronic equipment
US9519369B2 (en) Touch screen selection
CN104571802B (en) A kind of information processing method and electronic equipment
CN104123062B (en) A kind of information processing method and electronic equipment
CN103870193A (en) Information processing method and electronic equipment
CN104571801B (en) A kind of information processing method and electronic equipment
WO2017032020A1 (en) Image processing method and electronic terminal
EP3373250A1 (en) Method and portable electronic device for changing graphics processing resolution based on scenario
CN104571792A (en) Information processing method and electronic equipment
CN103870117B (en) A kind of information processing method and electronic equipment
CN104571904B (en) A kind of information processing method and electronic equipment
CN103870116B (en) A kind of information processing method and electronic equipment
CN107765951A (en) Task switching method and device, electronic equipment and storage medium
CN106462317A (en) User account switching interface
CN103870118B (en) Information processing method and electronic equipment
CN103870113B (en) Information processing method and electronic equipment
CN104571791A (en) Information processing method and electronic equipment
CN104571845A (en) Information processing method and electronic equipment
CN104571844B (en) A kind of information processing method and electronic equipment
CN116893770A (en) Screenshot method, device, electronic device and readable storage medium
CN108984024A (en) Touch operation method and device, storage medium and electronic equipment
CN109753217A (en) Dynamic keyboard operating method, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant