CN111459590A - Screenshot processing method and electronic equipment - Google Patents

Screenshot processing method and electronic equipment Download PDF

Info

Publication number
CN111459590A
CN111459590A CN202010242754.3A CN202010242754A CN111459590A CN 111459590 A CN111459590 A CN 111459590A CN 202010242754 A CN202010242754 A CN 202010242754A CN 111459590 A CN111459590 A CN 111459590A
Authority
CN
China
Prior art keywords
file
display state
display
screenshot
displayed
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.)
Pending
Application number
CN202010242754.3A
Other languages
Chinese (zh)
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 CN202010242754.3A priority Critical patent/CN111459590A/en
Publication of CN111459590A publication Critical patent/CN111459590A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a screenshot processing method and electronic equipment, a first file displayed through a first application at least comprises a first display state and a second display state, displayed contents in the two display states are different, if a first screenshot triggering event is monitored, the first file in the first display state is subjected to screenshot in the second display state, the fact that an image obtained through screenshot is different from the displayed file is achieved, the image obtained through screenshot is not required to be processed after screenshot, operation is simple, and user experience is improved.

Description

Screenshot processing method and electronic equipment
Technical Field
The present application relates to the field of screenshots, and in particular, to a screenshot processing method and an electronic device.
Background
When a user uses screenshot operation, various requirements are met, so that some information in an interface intercepted by the user is not needed in the screenshot process, the picture obtained by screenshot needs to be processed after screenshot, the operation is complex, and the user experience is reduced.
Disclosure of Invention
In view of this, the present application provides a screenshot processing method and an electronic device, and the specific scheme is as follows:
a screenshot processing method comprises the following steps:
monitoring a first cut-map trigger event;
determining that a display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in a first application, wherein the first file displayed in the first application at least comprises the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state;
and capturing a display interface of the first file based on the first capture trigger event, wherein an image captured by the first capture trigger event is an image of the first file in the second display state.
Further, the method also comprises the following steps:
if a second screenshot triggering event is monitored, screenshot is conducted on a display interface of the first file based on the second screenshot triggering event, wherein an image intercepted by the second screenshot triggering event is an image of the first file in the first display state.
Further, the determining that the display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in the first application includes:
determining whether a display interface corresponding to the first sketch trigger event comprises a first object;
if the display interface corresponding to the first sketch trigger event comprises a first object, determining that the display interface corresponding to the first sketch trigger event is a first file displayed in a first display state;
if the display interface corresponding to the first sketch trigger event does not comprise the first object, determining that the display interface corresponding to the first sketch trigger event is a first file displayed in a second display state.
Further, the screenshot the display interface of the first file based on the first screenshot triggering event, where an image captured by the first screenshot triggering event is an image of the first file in the second display state, includes:
determining display information of the first file in the second display state based on the first cut-off triggering event;
and acquiring a screenshot of the display information.
Further, the acquiring a screenshot of the display information includes:
and displaying the display information, or not displaying the display information to obtain a screenshot of the display information.
Further, if the display information is displayed to obtain a screenshot of the displayed display information, the method further includes:
determining whether the first cut trigger event is complete;
and if the first sketch triggering event is completed, switching the display information of the first file in the second display state into the first file displayed in the first display state.
Further, the screenshot the display interface of the first file based on the first screenshot triggering event, where an image captured by the first screenshot triggering event is an image of the first file in the second display state, includes:
acquiring an image which takes the first file displayed in the first display state as a display interface based on the first screenshot triggering event;
deleting a second object in the image of the first file displayed in the first display state, so that the first file displayed in the first display state is switched to the first file displayed in the second display state.
Further, the deleting the second object in the image of the first file displayed in the first display state includes:
determining a position of the second object in the image of the first file displayed in the first display state;
and covering the position of the second object with the background image of the first file displayed in the first display state according to a first rule.
Further, in the above-mentioned case,
if the first application is a first type of editable document, the first object is a marker or a display cursor;
if the first application is a second type editable document, the first object is a thumbnail;
if the first application is a video application, the first object is playing information, and the playing information at least includes one of the following: a playlist, play progress information, or a display cursor.
An electronic device, comprising:
the display screen is used for displaying the first file;
the processor is used for determining that a display interface corresponding to a first sketch trigger event is a first file displayed in a first display state in a first application when the first sketch trigger event is monitored, wherein the first file displayed in the first application at least comprises the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state; and capturing a display interface of the first file based on the first capture trigger event, wherein an image captured by the first capture trigger event is an image of the first file in the second display state.
According to the technical scheme, the screenshot processing method and the electronic device monitor a first screenshot triggering event, and determine that a display interface corresponding to the first screenshot triggering event is a first file displayed in a first display state in a first application, wherein the first file displayed in the first application at least comprises the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state; and performing screenshot on the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is the image of the first file in the second display state. According to the scheme, the first file displayed through the first application at least comprises the first display state and the second display state, the displayed contents in the two display states are different, if the first screenshot triggering event is monitored, the first file in the first display state is subjected to screenshot in the second display state, the fact that the image obtained through screenshot is different from the displayed file is achieved, the image obtained through screenshot does not need to be processed after screenshot, operation is simple, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a screenshot processing method disclosed in an embodiment of the present application;
FIG. 2 is a schematic image diagram of display information of a first document in a first display state according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an image of display information of a first document in a second display state according to an embodiment of the disclosure;
FIG. 4 is a schematic image diagram of display information of a first document in a first display state according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an image of display information of a first document in a second display state according to an embodiment of the disclosure;
fig. 6 is a flowchart of a screenshot processing method disclosed in an embodiment of the present application;
fig. 7 is a flowchart of a screenshot processing method disclosed in an embodiment of the present application;
FIG. 8 is a schematic image diagram of display information of a first document in a first display state according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The application discloses a screenshot processing method, a flow chart of which is shown in fig. 1, comprising the following steps:
step S11, monitoring a first cut chart triggering event;
step S12, determining that the display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in the first application, where the first file displayed in the first application at least includes the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state;
the first file opened and displayed by a first application in the electronic equipment at least comprises the first file; the information displayed when the first file is in the first display state is different from the information displayed when the first file is in the second display state, namely when the first file is opened by the first application, the first file can be displayed in the first display state, and the first file can also be displayed in the second display state.
The first display state shows the entire content that the first file can display in the first application according to the setting of the first application, including not only the information recorded in the first file but also various marks displayed in the first file, that is, the first object.
Wherein, the specific mark type is related to the first application and the type of the first file, such as: the first application is a first type editable document, the first object is a marker or a display cursor, the first object can also comprise a header and a footer, the first type editable document can be a word document and other documents, and the marker can be a carriage return symbol; if the first application is a second type editable document, the first object is a thumbnail, and the second type editable document is a PPT document; if the first application is a video application, the first object is playing information, and the playing information at least includes one of the following: a playlist, play progress information, or a display cursor, etc.
The second display state is to display only the information recorded in the first file in the first application, and does not include various marks.
When the first file is opened and displayed through the first application, monitoring is carried out in real time so as to determine whether a screenshot triggering event needs to be captured on the first file or not.
And step S13, performing screenshot on the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is the image of the first file in the second display state.
If the first file is displayed through the first application, a screenshot triggering event is monitored, whether the screenshot triggering event is the first screenshot triggering event or not is determined, if the screenshot triggering event is the first screenshot triggering event, the display state of the first file is further determined, if the first file is displayed in the first display state, a display interface of the first file is subjected to screenshot based on the first screenshot triggering event, and the intercepted image is an image of the first file displayed in the second display state.
If the first screenshot triggering event is monitored, and if the first file is displayed in the first display state, the screenshot image is the image of the first file displayed in the second display state.
Further, if the monitored screenshot trigger event is a first screenshot trigger event and it is determined that the current display interface displays a first file displayed in a second display state in the first application, screenshot is performed on the display interface of the first file based on the first screenshot trigger event, and the screenshot is an image of the first file displayed in the first display state. If the first screenshot triggering event is monitored, and if the first file is displayed in the second display state, the screenshot image is the image of the first file displayed in the first display state.
That is, as long as the screenshot trigger event is a first screenshot trigger event, the display state of the first file in the screenshot image is different from the display state of the first file displayed in the display interface.
Taking the first file as the first type of editable document as an example, when a user performs screenshot operation on content in the document, some symbols that interfere with screenshot effect are usually displayed, for example: in a word document, when screenshot is performed on content in the word document, paragraph markers or other markers are usually displayed in the document, and when screenshot is performed, the paragraph markers or other markers cause interference, influence on the display effect of a captured image, and are not suitable for being used in formal materials. To solve this problem, it is necessary to switch the first file in the first display state to the second display state, in which the paragraph markers or other markers displayed in the document are not displayed.
As shown in fig. 2, the display information of the first file in the first display state, and fig. 3 is the display information of the first file in the second display state. If the first caption triggering event is monitored and it is determined that the first file is displayed in the first display state, that is, the display information of the first file is as shown in fig. 2, the first caption triggering event is executed, and the obtained image is the display information of the first file in the second display state as shown in fig. 3.
If the first file is a video application, as shown in fig. 4, the display information of the first file in the first display state is shown, and fig. 5 is the display information of the first file in the second display state. If the first caption triggering event is monitored and it is determined that the first file is displayed in the first display state, that is, the display information of the first file is as shown in fig. 4, the first caption triggering event is executed, and the obtained image is as shown in fig. 5 and is the display information of the first file in the second display state.
Further, if the screenshot triggering event is determined to be a second screenshot triggering event, after the display state of the first file is determined to be the first display state, screenshot is conducted on the display interface of the first file, wherein the screenshot of the second screenshot triggering event is the image of the first file in the first display state.
That is, if it is determined that the screenshot trigger event is the second screenshot trigger event, the display state of the first file in the image captured by the screenshot is the same as the display state of the first file displayed in the display interface, that is, what is displayed in the current display interface and what is in the image captured by the screenshot trigger event are not adjusted as the displayed content is when the screenshot is captured in the first screenshot trigger event.
In the scheme, if it is determined whether the screenshot corresponding to the screenshot trigger event is the same as the content displayed on the display interface, it needs to be determined whether the screenshot trigger event is a first screenshot trigger event or a second screenshot trigger event, and if the screenshot trigger event is the second screenshot trigger event, the screenshot trigger event is the same as the display interface, and if the screenshot trigger event is the first screenshot trigger event, the screenshot trigger event is different from the display interface.
Further, determining that the display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in the first application includes:
determining whether a display interface corresponding to the first sketch trigger event comprises a first object; if the display interface corresponding to the first sketch triggering event comprises a first object, determining that the display interface corresponding to the first sketch triggering event is a first file displayed in a first display state; if the display interface corresponding to the first cut-off trigger event does not include the first object, the display interface corresponding to the first cut-off trigger event is determined to be the first file displayed in the second display state.
Specifically, the first file is displayed in a first display state, and the first file is displayed in a second display state, where the difference between the first file and the second file is: whether the first object is included in the display interface, that is, whether various types of marks are included in the display interface, such as: display cursors, markers, thumbnails, playlists, and the like.
If the display interface comprises any one of the multiple marks, determining that the display interface comprises the first object, and setting the current display state of the first file to be a first display state; if the display interface does not include at least one of the multiple marks, it can be determined that the display interface does not include the first object, and the current display state of the first file is the second display state.
If the display interface comprises a first object when a first screenshot triggering event is monitored, determining that the current display interface is in a first display state, and at the moment, screenshot to obtain an image of a first file displayed in a second display state; if the display interface does not comprise the first object when the first screenshot triggering event is monitored, the current display interface can be determined to be in the second display state, and the image obtained by screenshot is the image of the first file displayed in the first display state.
In the screenshot processing method disclosed in this embodiment, a first screenshot trigger event is monitored, and a display interface corresponding to the first screenshot trigger event is determined to be a first file displayed in a first display state in a first application, where the first file displayed in the first application at least includes the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state; and performing screenshot on the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is the image of the first file in the second display state. According to the scheme, the first file displayed through the first application at least comprises the first display state and the second display state, the displayed contents in the two display states are different, if the first screenshot triggering event is monitored, the first file in the first display state is subjected to screenshot in the second display state, the fact that the image obtained through screenshot is different from the displayed file is achieved, the image obtained through screenshot does not need to be processed after screenshot, operation is simple, and user experience is improved.
The embodiment discloses a screenshot processing method, a flowchart of which is shown in fig. 6, and the screenshot processing method includes:
step S61, monitoring a first cut chart triggering event;
step S62, determining that the display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in the first application, where the first file displayed in the first application at least includes the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state;
step S63, determining the display information of the first file in the second display state based on the first cut picture trigger event;
and step S64, acquiring a screenshot of the display information.
When the first screenshot triggering event is monitored, if the current display interface corresponding to the first screenshot triggering event is a first file displayed in a first display state, the display information of the first file in a second display state needs to be intercepted as an intercepted image when the first screenshot triggering event is executed.
Specifically, the following may be mentioned: and switching the first file displayed in the first display state into a second display state, and then acquiring the display information of the first file in the second display state corresponding to the first sketch trigger event. That is, the acquired display information of the first file in the second display state is not limited to be the display information in the display interface, and then the display information may be used as the display information of the display interface or may not be displayed on the display interface.
When the first file displayed in the first display state is switched to the second display state, the display state of the first file may be switched only in the electronic device, and then the display information of the first file in the second display state is directly acquired.
And the first file in the second display state is only used for screenshot of the first screenshot trigger event at the time, and is not used for other purposes. Specifically, the display information of the first file in the second display state is obtained, the obtained display information is the same as the currently displayed record content in the display interface, and only there are no various marks, so that the first file in the second display state corresponding to the obtained display information may be obtained by switching only a part of the display interface from the first display state to the second display state, so as to obtain the display information in the second display state, and the other part of the first file is not switched to the display state.
Or after the first file displayed in the first display state is switched to the second display state, the first file in the second display state is displayed, and then display information is intercepted from the first file in the second display state displayed on the display interface and is used as an image finally acquired based on the first cutout triggering event.
Further, if the display information is displayed and then acquired so as to obtain an image based on the first caption trigger event, the method further includes:
determining whether the first cut trigger event is complete; and if the first sketch triggering event is completed, switching the display information of the first file in the second display state into the first file in the first display state for display.
If the first file in the second display state is displayed after the first file in the first display state is switched to the second display state, the first file in the second display state displayed on the display interface needs to be switched to the first display state after the screenshot is completed, so that the original display state can be recovered.
Similarly, if the first file in the second display state is not displayed after the first file in the first display state is switched to the second display state, and the first file in the first display state is still displayed on the display interface, after the display information is acquired, the first file in the second display state is switched to the first display state, that is, the display state of the first file is recovered, and even if the display state of the first file is not reflected in the display interface, the display state of the first file needs to be recovered in the system of the electronic device.
In the screenshot processing method disclosed in this embodiment, a first screenshot trigger event is monitored, and a display interface corresponding to the first screenshot trigger event is determined to be a first file displayed in a first display state in a first application, where the first file displayed in the first application at least includes the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state; and performing screenshot on the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is the image of the first file in the second display state. According to the scheme, the first file displayed through the first application at least comprises the first display state and the second display state, the displayed contents in the two display states are different, if the first screenshot triggering event is monitored, the first file in the first display state is subjected to screenshot in the second display state, the fact that the image obtained through screenshot is different from the displayed file is achieved, the image obtained through screenshot does not need to be processed after screenshot, operation is simple, and user experience is improved.
The embodiment discloses a screenshot processing method, a flowchart of which is shown in fig. 7, and the screenshot processing method includes:
step S71, monitoring a first cut chart triggering event;
step S72, determining that the display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in the first application, where the first file displayed in the first application at least includes the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state;
step S73, acquiring an image which takes a first file displayed in a first display state as a display interface based on a first cut picture trigger event;
step S74, deleting the second object in the image of the first file displayed in the first display state so that the first file displayed in the first display state is switched to the first file displayed in the second display state.
If the first cutout triggering event is monitored, the display interface corresponding to the first cutout triggering event is determined to be displayed in the first display state, and the image of the display information of the first file displayed in the second display state is required to be obtained based on the first cutout triggering event.
In order to obtain the image, an image of a first file displayed in a first display state as a display interface may be first obtained, for example, the first file is a first type of editable document, as shown in fig. 2, the current display interface displays the content shown in fig. 2, in order to obtain the image shown in fig. 3, the image shown in fig. 2 needs to be first obtained, and then a second object in the image of the display information of the first file displayed in the first display state is deleted, as shown in fig. 8, the display information of the first file in the first display state includes: the second object 81, i.e. the second object 81, is removed from fig. 2, resulting in an image, i.e. fig. 3, which does not contain the second object.
In this embodiment, the image of the display information of the first file in the second display state is obtained by deleting the second object in the image of the display information of the first file in the first display state, where the first object and the second object may be the same mark.
Further, deleting the second object in the image of the first file displayed in the first display state may be:
determining a position of a second object in an image of a first file displayed in a first display state; and covering the position of the second object with the background image of the first file displayed in the first display state according to a first rule.
Specifically, the operation of deleting the object in the picture may be implemented by overlaying the background image at the position of the second object. If the background image is a solid background image as shown in fig. 2 or fig. 4, the object in the image can be directly replaced by the solid background; if the background image is a non-solid background image, replacing the object in the image according to the rule of the background image, so that the position of the object in the image is fused with the background image.
In the screenshot processing method disclosed in this embodiment, a first screenshot trigger event is monitored, and a display interface corresponding to the first screenshot trigger event is determined to be a first file displayed in a first display state in a first application, where the first file displayed in the first application at least includes the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state; and performing screenshot on the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is the image of the first file in the second display state. According to the scheme, the first file displayed through the first application at least comprises the first display state and the second display state, the displayed contents in the two display states are different, if the first screenshot triggering event is monitored, the first file in the first display state is subjected to screenshot in the second display state, the fact that the image obtained through screenshot is different from the displayed file is achieved, the image obtained through screenshot does not need to be processed after screenshot, operation is simple, and user experience is improved.
The embodiment discloses an electronic device, a schematic structural diagram of which is shown in fig. 9, including:
a display 91 and a processor 92.
The display screen 91 is used for displaying a first file;
the processor 92 is configured to determine, when the first cut-off trigger event is monitored, that a display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in the first application, where the first file displayed in the first application at least includes the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state; and performing screenshot on the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is the image of the first file in the second display state.
The first file opened and displayed by a first application in the electronic equipment at least comprises the first file; the information displayed when the first file is in the first display state is different from the information displayed when the first file is in the second display state, namely when the first file is opened by the first application, the first file can be displayed in the first display state, and the first file can also be displayed in the second display state.
The first display state shows the entire content that the first file can display in the first application according to the setting of the first application, including not only the information recorded in the first file but also various marks displayed in the first file, that is, the first object.
Wherein, the specific mark type is related to the first application and the type of the first file, such as: the first application is a first type editable document, the first object is a marker or a display cursor, the first object can also comprise a header and a footer, the first type editable document can be a word document and other documents, and the marker can be a carriage return symbol; if the first application is a second type editable document, the first object is a thumbnail, and the second type editable document is a PPT document; if the first application is a video application, the first object is playing information, and the playing information at least includes one of the following: a playlist, play progress information, or a display cursor, etc.
The second display state is to display only the information recorded in the first file in the first application, and does not include various marks.
When the first file is opened and displayed through the first application, monitoring is carried out in real time so as to determine whether a screenshot triggering event needs to be captured on the first file or not.
If the first file is displayed through the first application, a screenshot triggering event is monitored, whether the screenshot triggering event is the first screenshot triggering event or not is determined, if the screenshot triggering event is the first screenshot triggering event, the display state of the first file is further determined, if the first file is displayed in the first display state, a display interface of the first file is subjected to screenshot based on the first screenshot triggering event, and the intercepted image is an image of the first file displayed in the second display state.
If the first screenshot triggering event is monitored, and if the first file is displayed in the first display state, the screenshot image is the image of the first file displayed in the second display state.
Further, if the monitored screenshot trigger event is a first screenshot trigger event and it is determined that the current display interface displays a first file displayed in a second display state in the first application, screenshot is performed on the display interface of the first file based on the first screenshot trigger event, and the screenshot is an image of the first file displayed in the first display state. If the first screenshot triggering event is monitored, and if the first file is displayed in the second display state, the screenshot image is the image of the first file displayed in the first display state.
That is, as long as the screenshot trigger event is a first screenshot trigger event, the display state of the first file in the screenshot image is different from the display state of the first file displayed in the display interface.
If the first file is a first type of editable document, as shown in fig. 2, the display information of the first file in the first display state is shown, and fig. 3 is the display information of the first file in the second display state. If the first caption triggering event is monitored and it is determined that the first file is displayed in the first display state, that is, the display information of the first file is as shown in fig. 2, the first caption triggering event is executed, and the obtained image is the display information of the first file in the second display state as shown in fig. 3.
If the first file is a video application, as shown in fig. 4, the display information of the first file in the first display state is shown, and fig. 5 is the display information of the first file in the second display state. If the first caption triggering event is monitored and it is determined that the first file is displayed in the first display state, that is, the display information of the first file is as shown in fig. 4, the first caption triggering event is executed, and the obtained image is as shown in fig. 5 and is the display information of the first file in the second display state.
Further, if the screenshot triggering event is determined to be a second screenshot triggering event, after the display state of the first file is determined to be the first display state, screenshot is conducted on the display interface of the first file, wherein the screenshot of the second screenshot triggering event is the image of the first file in the first display state.
That is, if it is determined that the screenshot trigger event is the second screenshot trigger event, the display state of the first file in the image captured by the screenshot is the same as the display state of the first file displayed in the display interface, that is, what is displayed in the current display interface and what is in the image captured by the screenshot trigger event are not adjusted as the displayed content is when the screenshot is captured in the first screenshot trigger event.
In the scheme, if it is determined whether the screenshot corresponding to the screenshot trigger event is the same as the content displayed on the display interface, it needs to be determined whether the screenshot trigger event is a first screenshot trigger event or a second screenshot trigger event, and if the screenshot trigger event is the second screenshot trigger event, the screenshot trigger event is the same as the display interface, and if the screenshot trigger event is the first screenshot trigger event, the screenshot trigger event is different from the display interface.
Further, determining that the display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in the first application includes:
determining whether a display interface corresponding to the first sketch trigger event comprises a first object; if the display interface corresponding to the first sketch triggering event comprises a first object, determining that the display interface corresponding to the first sketch triggering event is a first file displayed in a first display state; if the display interface corresponding to the first cut-off trigger event does not include the first object, the display interface corresponding to the first cut-off trigger event is determined to be the first file displayed in the second display state.
Specifically, the first file is displayed in a first display state, and the first file is displayed in a second display state, where the difference between the first file and the second file is: whether the first object is included in the display interface, that is, whether various types of marks are included in the display interface, such as: display cursors, markers, thumbnails, playlists, and the like.
If the display interface comprises any one of the multiple marks, determining that the display interface comprises the first object, and setting the current display state of the first file to be a first display state; if the display interface does not include at least one of the multiple marks, it can be determined that the display interface does not include the first object, and the current display state of the first file is the second display state.
If the display interface comprises a first object when a first screenshot triggering event is monitored, determining that the current display interface is in a first display state, and at the moment, screenshot to obtain an image of a first file displayed in a second display state; if the display interface does not comprise the first object when the first screenshot triggering event is monitored, the current display interface can be determined to be in the second display state, and the image obtained by screenshot is the image of the first file displayed in the first display state.
Further, the processor 92 captures the display interface of the first file based on a first capture trigger event, where an image captured by the first capture trigger event is an image of the first file in a second display state, and includes:
the processor 92 determines the display information of the first file in the second display state based on the first screenshot triggering event, and acquires a screenshot of the display information.
When the first screenshot triggering event is monitored, if the current display interface corresponding to the first screenshot triggering event is a first file displayed in a first display state, the display information of the first file in a second display state needs to be intercepted as an intercepted image when the first screenshot triggering event is executed.
Specifically, the following may be mentioned: and switching the first file displayed in the first display state into a second display state, and then acquiring the display information of the first file in the second display state corresponding to the first sketch trigger event. That is, the acquired display information of the first file in the second display state is not limited to be the display information in the display interface, and then the display information may be used as the display information of the display interface or may not be displayed on the display interface.
When the first file displayed in the first display state is switched to the second display state, the display state of the first file may be switched only in the electronic device, and then the display information of the first file in the second display state is directly acquired.
And the first file in the second display state is only used for screenshot of the first screenshot trigger event at the time, and is not used for other purposes. Specifically, the display information of the first file in the second display state is obtained, the obtained display information is the same as the currently displayed record content in the display interface, and only there are no various marks, so that the first file in the second display state corresponding to the obtained display information may be obtained by switching only a part of the display interface from the first display state to the second display state, so as to obtain the display information in the second display state, and the other part of the first file is not switched to the display state.
Or after the first file displayed in the first display state is switched to the second display state, the first file in the second display state is displayed, and then display information is intercepted from the first file in the second display state displayed on the display interface and is used as an image finally acquired based on the first cutout triggering event.
Further, if the display information is displayed and then acquired so as to obtain an image based on the first caption trigger event, the method further includes:
determining whether the first cut trigger event is complete; and if the first sketch triggering event is completed, switching the display information of the first file in the second display state into the first file in the first display state for display.
If the first file in the second display state is displayed after the first file in the first display state is switched to the second display state, the first file in the second display state displayed on the display interface needs to be switched to the first display state after the screenshot is completed, so that the original display state can be recovered.
Similarly, if the first file in the second display state is not displayed after the first file in the first display state is switched to the second display state, and the first file in the first display state is still displayed on the display interface, after the display information is acquired, the first file in the second display state is switched to the first display state, that is, the display state of the first file is recovered, and even if the display state of the first file is not reflected in the display interface, the display state of the first file needs to be recovered in the system of the electronic device.
Further, the processor 92 captures the display interface of the first file based on a first capture trigger event, where an image captured by the first capture trigger event is an image of the first file in a second display state, and includes:
the processor 92 acquires an image of the display interface of the first file displayed in the first display state based on the first cut-off trigger event, and deletes the second object in the image of the first file displayed in the first display state, so that the first file displayed in the first display state is switched to the first file displayed in the second display state.
If the first cutout triggering event is monitored, the display interface corresponding to the first cutout triggering event is determined to be displayed in the first display state, and the image of the display information of the first file displayed in the second display state is required to be obtained based on the first cutout triggering event.
In order to obtain the image, an image of a first file displayed in a first display state as a display interface may be first obtained, for example, the first file is a first type of editable document, as shown in fig. 2, the current display interface displays the content shown in fig. 2, in order to obtain the image shown in fig. 3, the image shown in fig. 2 needs to be first obtained, and then a second object in the image of the display information of the first file displayed in the first display state is deleted, as shown in fig. 8, the display information of the first file in the first display state includes: the second object 81, i.e. the second object 81, is removed from fig. 2, resulting in an image, i.e. fig. 3, which does not contain the second object.
In this embodiment, the image of the display information of the first file in the second display state is obtained by deleting the second object in the image of the display information of the first file in the first display state, where the first object and the second object may be the same mark.
Further, deleting the second object in the image of the first file displayed in the first display state may be:
determining a position of a second object in an image of a first file displayed in a first display state; and covering the position of the second object with the background image of the first file displayed in the first display state according to a first rule.
Specifically, the operation of deleting the object in the picture may be implemented by overlaying the background image at the position of the second object. If the background image is a solid background image as shown in fig. 2 or fig. 4, the object in the image can be directly replaced by the solid background; if the background image is a non-solid background image, replacing the object in the image according to the rule of the background image, so that the position of the object in the image is fused with the background image.
In the electronic device disclosed in this embodiment, the processor monitors a first cut-off trigger event, and determines that a display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in a first application, where the first file displayed in the first application at least includes the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state; and performing screenshot on the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is the image of the first file in the second display state. According to the scheme, the first file displayed through the first application at least comprises the first display state and the second display state, the displayed contents in the two display states are different, if the first screenshot triggering event is monitored, the first file in the first display state is subjected to screenshot in the second display state, the fact that the image obtained through screenshot is different from the displayed file is achieved, the image obtained through screenshot does not need to be processed after screenshot, operation is simple, and user experience is improved.
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 application.
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 application. 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 application. Thus, the present application 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 (10)

1. A screenshot processing method comprises the following steps:
monitoring a first cut-map trigger event;
determining that a display interface corresponding to the first cut-off trigger event is a first file displayed in a first display state in a first application, wherein the first file displayed in the first application at least comprises the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state;
and capturing a display interface of the first file based on the first capture trigger event, wherein an image captured by the first capture trigger event is an image of the first file in the second display state.
2. The method of claim 1, further comprising:
if a second screenshot triggering event is monitored, screenshot is conducted on a display interface of the first file based on the second screenshot triggering event, wherein an image intercepted by the second screenshot triggering event is an image of the first file in the first display state.
3. The method of claim 1, wherein the determining that the display interface corresponding to the first sketch triggering event is a first file displayed in a first display state in a first application comprises:
determining whether a display interface corresponding to the first sketch trigger event comprises a first object;
if the display interface corresponding to the first sketch trigger event comprises a first object, determining that the display interface corresponding to the first sketch trigger event is a first file displayed in a first display state;
if the display interface corresponding to the first sketch trigger event does not comprise the first object, determining that the display interface corresponding to the first sketch trigger event is a first file displayed in a second display state.
4. The method of claim 1, wherein said screenshot the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is an image of the first file in the second display state, comprises:
determining display information of the first file in the second display state based on the first cut-off triggering event;
and acquiring a screenshot of the display information.
5. The method of claim 4, wherein said obtaining a screenshot of said display information comprises:
and displaying the display information, or not displaying the display information to obtain a screenshot of the display information.
6. The method of claim 5, wherein if the display information is displayed to obtain a screenshot of the displayed display information, the method further comprises:
determining whether the first cut trigger event is complete;
and if the first sketch triggering event is completed, switching the display information of the first file in the second display state into the first file displayed in the first display state.
7. The method of claim 1, wherein said screenshot the display interface of the first file based on the first screenshot triggering event, wherein the image intercepted by the first screenshot triggering event is an image of the first file in the second display state, comprises:
acquiring an image which takes the first file displayed in the first display state as a display interface based on the first screenshot triggering event;
deleting a second object in the image of the first file displayed in the first display state, so that the first file displayed in the first display state is switched to the first file displayed in the second display state.
8. The method of claim 7, wherein said deleting a second object in the image of the first file displayed in the first display state comprises:
determining a position of the second object in the image of the first file displayed in the first display state;
and covering the position of the second object with the background image of the first file displayed in the first display state according to a first rule.
9. The method of claim 3, wherein,
if the first application is a first type of editable document, the first object is a marker or a display cursor;
if the first application is a second type editable document, the first object is a thumbnail;
if the first application is a video application, the first object is playing information, and the playing information at least includes one of the following: a playlist, play progress information, or a display cursor.
10. An electronic device, comprising:
the display screen is used for displaying the first file;
the processor is used for determining that a display interface corresponding to a first sketch trigger event is a first file displayed in a first display state in a first application when the first sketch trigger event is monitored, wherein the first file displayed in the first application at least comprises the first display state and a second display state, and information displayed when the first file is in the first display state is different from information displayed when the first file is in the second display state; and capturing a display interface of the first file based on the first capture trigger event, wherein an image captured by the first capture trigger event is an image of the first file in the second display state.
CN202010242754.3A 2020-03-31 2020-03-31 Screenshot processing method and electronic equipment Pending CN111459590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010242754.3A CN111459590A (en) 2020-03-31 2020-03-31 Screenshot processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010242754.3A CN111459590A (en) 2020-03-31 2020-03-31 Screenshot processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111459590A true CN111459590A (en) 2020-07-28

Family

ID=71679419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010242754.3A Pending CN111459590A (en) 2020-03-31 2020-03-31 Screenshot processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111459590A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238913A (en) * 2014-09-02 2014-12-24 北京金山安全软件有限公司 Screenshot method and device and electronic equipment
CN105224611A (en) * 2015-09-08 2016-01-06 安一恒通(北京)科技有限公司 Based on the operation processing method of browser, device and browser
CN105653195A (en) * 2016-01-29 2016-06-08 广东欧珀移动通信有限公司 Screen capturing method and mobile terminal
CN105786359A (en) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 Method and device for screen capture of mobile terminal
CN106168872A (en) * 2016-06-23 2016-11-30 珠海市魅族科技有限公司 Screenshotss method and apparatus
CN106227419A (en) * 2016-07-11 2016-12-14 北京小米移动软件有限公司 Screenshotss method and device
CN106940621A (en) * 2016-01-05 2017-07-11 腾讯科技(深圳)有限公司 The method and apparatus of picture processing
CN106970754A (en) * 2017-03-28 2017-07-21 北京小米移动软件有限公司 The method and device of screenshotss processing
CN107357505A (en) * 2017-07-26 2017-11-17 北京小米移动软件有限公司 The method, apparatus and computer-readable recording medium of screenshot capture
CN107748644A (en) * 2017-11-20 2018-03-02 珠海市魅族科技有限公司 A kind of sectional drawing display methods and equipment, terminal and readable storage medium storing program for executing
CN107831971A (en) * 2017-11-29 2018-03-23 珠海市魅族科技有限公司 Sectional drawing starts method and device, computer installation and computer-readable recording medium
CN109213407A (en) * 2018-08-17 2019-01-15 维沃移动通信有限公司 A kind of screenshot method and terminal device
CN109710362A (en) * 2018-12-26 2019-05-03 掌阅科技股份有限公司 Screenshot processing method calculates equipment and computer storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238913A (en) * 2014-09-02 2014-12-24 北京金山安全软件有限公司 Screenshot method and device and electronic equipment
CN105786359A (en) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 Method and device for screen capture of mobile terminal
CN105224611A (en) * 2015-09-08 2016-01-06 安一恒通(北京)科技有限公司 Based on the operation processing method of browser, device and browser
CN106940621A (en) * 2016-01-05 2017-07-11 腾讯科技(深圳)有限公司 The method and apparatus of picture processing
CN105653195A (en) * 2016-01-29 2016-06-08 广东欧珀移动通信有限公司 Screen capturing method and mobile terminal
CN106168872A (en) * 2016-06-23 2016-11-30 珠海市魅族科技有限公司 Screenshotss method and apparatus
CN106227419A (en) * 2016-07-11 2016-12-14 北京小米移动软件有限公司 Screenshotss method and device
CN106970754A (en) * 2017-03-28 2017-07-21 北京小米移动软件有限公司 The method and device of screenshotss processing
CN107357505A (en) * 2017-07-26 2017-11-17 北京小米移动软件有限公司 The method, apparatus and computer-readable recording medium of screenshot capture
CN107748644A (en) * 2017-11-20 2018-03-02 珠海市魅族科技有限公司 A kind of sectional drawing display methods and equipment, terminal and readable storage medium storing program for executing
CN107831971A (en) * 2017-11-29 2018-03-23 珠海市魅族科技有限公司 Sectional drawing starts method and device, computer installation and computer-readable recording medium
CN109213407A (en) * 2018-08-17 2019-01-15 维沃移动通信有限公司 A kind of screenshot method and terminal device
CN109710362A (en) * 2018-12-26 2019-05-03 掌阅科技股份有限公司 Screenshot processing method calculates equipment and computer storage medium

Similar Documents

Publication Publication Date Title
CN106776514B (en) Annotating method and device
US7194701B2 (en) Video thumbnail
KR102028198B1 (en) Device for authoring video scene and metadata
US6157744A (en) Method and apparatus for detecting a point of change in a moving image
CN112887794B (en) Video editing method and device
CN107678640A (en) A kind of long screenshotss method, apparatus, mobile terminal and computer-readable recording medium
JPH07322183A (en) Image recording/reproducing device
JP4154012B2 (en) Recording medium storing program for realizing image display method and image composition apparatus
CN111064930B (en) Split screen display method, display terminal and storage device
US8856251B2 (en) Picture processing method and apparatus for instant communication tool
JP3989530B1 (en) Recording device and program for the recording device
CN111459590A (en) Screenshot processing method and electronic equipment
US20160275992A1 (en) Information processing apparatus, information processing method, and non-transitory computer readable storage medium
CN113709565B (en) Method and device for recording facial expression of watching video
JP6270975B2 (en) Information processing apparatus, information processing method, and information processing program
JP4429353B2 (en) Capture image recording apparatus and capture image recording program
JP4069149B1 (en) Terminal monitoring device and program for terminal monitoring device
JP6142551B2 (en) Image editing apparatus and image editing program
JP2008191858A (en) Terminal monitoring device and program for terminal monitoring device
JP4247294B2 (en) Recording device and program for the recording device
CN114913622A (en) Video display method and system of automobile data recorder and computer storage medium
JP2017011498A (en) Moving image reproduction device and moving image reproduction method
JP4562202B2 (en) Capture image recording apparatus and capture image recording program
JP3941808B2 (en) Moving image change point detection method and apparatus
CN113067766B (en) Picture sending method and device and electronic 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728