CN112783407B - Screenshot method and device - Google Patents

Screenshot method and device Download PDF

Info

Publication number
CN112783407B
CN112783407B CN202110114180.6A CN202110114180A CN112783407B CN 112783407 B CN112783407 B CN 112783407B CN 202110114180 A CN202110114180 A CN 202110114180A CN 112783407 B CN112783407 B CN 112783407B
Authority
CN
China
Prior art keywords
screenshot
multimedia information
picture
data
interface
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
CN202110114180.6A
Other languages
Chinese (zh)
Other versions
CN112783407A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110114180.6A priority Critical patent/CN112783407B/en
Publication of CN112783407A publication Critical patent/CN112783407A/en
Application granted granted Critical
Publication of CN112783407B publication Critical patent/CN112783407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a screenshot method and a screenshot device, wherein the screenshot method comprises the following steps: receiving screenshot input for a first interface, the first interface including first multimedia information; and responding to screenshot input, generating screenshot data of the first interface according to the first interface and the first multimedia information, wherein the screenshot data comprises a screenshot picture obtained by screenshot of the first interface and data representing the first multimedia information, and the data representing the first multimedia information is used for responding to touch operation of the first multimedia information on the screenshot picture when the electronic equipment displays the screenshot picture. In the embodiment of the application, when the electronic device displays the screenshot picture, a user can directly perform touch operation on the first multimedia information on the screenshot picture. Therefore, the user does not need to separately store the first multimedia information on the screenshot, and the operation steps of the user are simplified.

Description

Screenshot method and device
Technical Field
The application belongs to the field of electronic equipment, and particularly relates to a screenshot method and device.
Background
In daily life and work, a user can browse and process various information by using the electronic equipment, for example, in order to intercept information displayed on an interface, the user can perform screenshot operation on the electronic equipment, and then, the screenshot can be stored or shared to friends.
If the display effect of the multimedia information such as text, picture and the like on the screenshot is not good, the user also needs to separately store the multimedia information. Therefore, the user needs to perform multiple operations to acquire the information on the screenshot.
Disclosure of Invention
The embodiment of the application aims to provide a screenshot method and a screenshot device, which can solve the problem that a user needs to perform multiple operations to obtain information on a screenshot.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a screenshot method, including:
receiving screenshot input for a first interface, the first interface including first multimedia information;
and responding to the screenshot input, generating screenshot data of the first interface according to the first interface and the first multimedia information, wherein the screenshot data comprises a screenshot picture obtained by screenshot of the first interface and data representing the first multimedia information, and the data representing the first multimedia information is used for responding to touch operation of the first multimedia information on the screenshot picture when the electronic equipment displays the screenshot picture.
In a second aspect, an embodiment of the present application provides a screenshot device, including:
the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving screenshot input of a first interface, and the first interface comprises first multimedia information;
and the data generation module is used for responding to the screenshot input and generating screenshot data of the first interface according to the first interface and the first multimedia information, wherein the screenshot data comprises a screenshot picture obtained by screenshot the first interface and data representing the first multimedia information, and the data representing the first multimedia information is used for responding to touch operation on the first multimedia information on the screenshot picture when the electronic equipment displays the screenshot picture.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that screenshot input of the first interface is received, screenshot data of the first interface is generated according to first multimedia information displayed on the first interface. The screenshot data comprises a screenshot picture obtained by screenshot the first interface and data representing the first multimedia information, so that when the electronic equipment displays the screenshot picture, a user can directly perform touch operation on the first multimedia information on the screenshot picture. Therefore, the user does not need to separately store the first multimedia information on the screenshot, and the operation steps of the user are simplified.
Drawings
Fig. 1 is a diagram illustrating an embodiment of a chat interface in the related art.
Fig. 2 is a flowchart illustrating an embodiment of a screenshot method provided in the present application.
FIG. 3 is a schematic view of one embodiment of a first interface provided herein.
FIG. 4 is a schematic diagram of one embodiment of an interface for displaying pictures provided herein.
FIG. 5 is a schematic diagram illustrating one embodiment of an interface for displaying a sub-picture provided herein.
Fig. 6 is a schematic structural diagram of an embodiment of a JFIF file provided by the present application.
FIG. 7 is a schematic view of another embodiment of a first interface provided herein.
Fig. 8 is a schematic structural diagram of another embodiment of a JFIF file provided by the present application.
FIG. 9 is a schematic diagram of one embodiment of a first incremental segment provided in the present application.
FIG. 10 is a schematic view of an embodiment of a second incremental segment provided herein.
Fig. 11 is a schematic diagram of an embodiment of an interface for sharing a screenshot picture provided in the present application.
Fig. 12 is a schematic structural diagram of an embodiment of a screenshot device provided in the present application.
Fig. 13 is a hardware configuration diagram of an embodiment of an electronic device implementing 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 some, but not all, of the embodiments of the present application. 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 terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
As with the background art, if the display effect of the multimedia information such as text and picture on the screenshot is not good, the user needs to separately store the multimedia information. For example, as shown in fig. 1, a chat message and a picture sent by an opposite party are displayed on a chat interface, and if a user wants to share the chat interface and the picture on the chat interface with other users, a screenshot needs to be performed on the chat interface first to obtain a screenshot picture, and then the picture on the chat interface is saved in an album, so that content that the user needs to share is obtained.
However, the user needs to operate for many times to acquire the information on the screenshot, and the user experience is not good.
In order to solve the technical problem, the application provides a screenshot method. In the screenshot method provided by the application, screenshot data of a first interface is generated according to the first interface and first multimedia information on the first interface under the condition that screenshot input of the first interface is received.
The screenshot data not only comprises a screenshot picture obtained by screenshot the first interface, but also comprises data representing the first multimedia information. The data has the effect that when the electronic equipment displays the screenshot picture, a user can perform touch operation on first multimedia information on the screenshot picture.
For example, the first multimedia information is a picture, and the picture can be displayed by being nested on the screenshot picture. Then, the user can operate the picture on the screenshot picture, and can open the picture. Therefore, the user does not need to separately store the picture on the first interface, and the operation of the user is facilitated.
The screenshot method provided by the present application is described below with reference to the accompanying drawings. Fig. 2 is a flowchart illustrating an embodiment of a screenshot method provided in the present application. As shown in fig. 2, screenshot method 100 includes:
s102, receiving screenshot input of a first interface, wherein the first interface comprises first multimedia information.
In S102, as one example, a touch input, a slide input, or a gesture input to the first interface may be received.
For example, in a case where the first interface is displayed, a pull-down input to the first interface is received, and then, in response to the pull-down input, a menu interface including a screenshot icon is displayed. Then, a touch input of the user to the screenshot icon may be received, where the touch input is used to screenshot the first interface.
As another example, where the first interface is displayed, a voice input is received that can be used to screen-capture the first interface.
As yet another example, in a case where the first interface is displayed and a selection input for a target area on the first interface is received, a touch input for a screenshot icon is received, the touch input being used for screenshot of the target area, which may be all or part of the area on the first interface, and the first multimedia information is included in the target area. Therefore, the user can capture all or part of the area on the first interface according to the requirement.
The first interface may be any one interface displayed on the electronic device, for example, the first interface is a chat interface, an interface of an application program, an interface on which document content is displayed, or a desktop.
The screenshot method 100 further includes:
and S104, responding to screenshot input, and generating screenshot data of the first interface according to the first interface and the first multimedia information, wherein the screenshot data comprises a screenshot picture obtained by screenshot of the first interface and data representing the first multimedia information, and the data representing the first multimedia information is used for responding to touch operation of the first multimedia information on the screenshot picture when the electronic equipment displays the screenshot picture.
In S104, a screenshot may be first performed on the first interface to obtain a screenshot picture. And then generating screenshot data according to the screenshot picture and the data representing the first multimedia information. Therefore, when the electronic equipment displays the screenshot picture, the touch operation of the first multimedia information on the screenshot picture can be received, and the touch operation is responded. Therefore, the user can directly perform touch operation on the first multimedia information on the screenshot picture, the user does not need to separately store the first multimedia information on the screenshot picture, and the user operation steps are simplified.
The first multimedia information can be displayed on the screenshot picture in a nested mode.
The first multimedia information may include at least one of text, pictures, animation, video, and voice. Touch control operations such as sharing and collecting can be carried out on the first multimedia information.
In addition, when the first multimedia information includes a text, a touch operation such as copying the text may be performed. If the text is a link, touch operation can be performed on the link to open a page corresponding to the link.
And under the condition that the first multimedia information comprises the picture, touch operation for opening the picture can be performed.
In the case where the first multimedia information includes one of video and audio, a play operation may be performed.
In one or more embodiments of the present application, in a case where the first multimedia information includes pictures, for any first picture of the pictures, the second multimedia information is included on the first picture.
The data representing the first picture comprises data representing second multimedia information, and the data representing the second multimedia information is used for displaying the second multimedia information on the first picture when the electronic equipment displays the first picture, and can respond to touch operation on the second multimedia information.
Assuming that the first interface is the interface shown in fig. 3, the first picture is the picture on the interface shown in fig. 3, the picture includes sub-pictures, and after the first interface shown in fig. 3 is subjected to screenshot, screenshot data is obtained, and data representing the picture in the screenshot data includes data representing the sub-pictures in the picture.
In this way, if the screenshot picture of the first interface is displayed, the user can touch the picture on the screenshot picture, so as to open the picture, and display the interface shown in fig. 4. Then, the user may perform a touch operation on the sub-picture on the picture, so as to open the sub-picture, and display an interface as shown in fig. 5.
Therefore, the second multimedia information is embedded in the first picture on the screenshot picture, the user can directly operate the first picture on the screenshot picture and the second multimedia information on the first picture without independently storing the first picture and the second multimedia information, and the user operation is simpler.
It should be noted that, if the second multimedia information is a picture, a third multimedia information may be further nested on the picture, and so on, thereby implementing multi-layer nesting.
In one or more embodiments of the present application, S104 may include:
screenshot is conducted on the first interface, and a screenshot picture is obtained;
and inserting the coded data for representing the first multimedia information into a file of the screenshot picture to generate screenshot data.
The encoded data may include identification information of the first multimedia information, position information of the first multimedia information on the screenshot picture, and content information of the first multimedia information.
Specifically, a section is newly added at a predetermined position in a file of the screenshot picture, and the encoded data for representing the first multimedia information is inserted into the newly added section to obtain screenshot data.
The following description will be given taking a File in which a screenshot is JPEG (JPEG is a picture Format) File Interchange Format (JFIF) as an example.
Table 1 shows a structure of an embodiment of the JFIF file, and as shown in table 1, the JFIF file includes a Start of Image (SOI) segment, a caption of picture segment, an extended caption segment, an extra marker segment, a Start of Scan (SOS) segment, and an End of Image (EOI) segment. Each segment is represented by a corresponding code (i.e., encoded data).
TABLE 1
Figure BDA0002920069740000071
Fig. 6 is a schematic structural diagram of an embodiment of a JFIF file provided by the present application. As shown in fig. 6, the binary contents in the JFIF file include: and the SOI segment, the picture description segment, the extended description segment, the additional mark segment, the SOS segment and the EOI segment respectively correspond to codes.
Based on the JFIF file shown in table 1 and fig. 6, a new segment can be added between the tail of the extended description segment and the start position of the scan start segment in the JFIF file, and the new segment includes: the code for the first multimedia information, i.e. the coded data characterizing the first multimedia information, results in screenshot data.
The above description is given by taking the screenshot as the JFIF file, and the file type of the screenshot is not limited herein. The types of information nested in the screenshot pictures are different, and the types of the screenshot pictures are also different. For example, if the screenshot picture is nested with the picture, the screenshot picture may be a JFIF file. Whereas a screenshot is another file if the animation, video or audio is nested on the screenshot.
In one or more embodiments of the present application, in a case that the first multimedia information includes M pictures, where M is a positive integer, S104 may include:
and inserting a first newly-added section into a preset position in the file of the screenshot picture to generate screenshot data, wherein the first newly-added section comprises the coded data of the M pictures.
As an example, the number of the first new added segments is M, the M first new added segments correspond to M pictures one by one, and each first new added segment includes encoded data of the corresponding picture.
In this example, by inserting M first added segments at predetermined positions in the file of the screenshot picture, each first added segment corresponds to a picture. In this way, when any first picture of the M pictures includes the second multimedia information, the encoded data representing the second multimedia information may be inserted into the first newly added segment corresponding to the first picture. In this way, the second multimedia information can be nested on the first picture. The user can perform touch operation on a first picture on the screenshot picture, and can perform touch operation on second multimedia information on the first picture after the first picture is opened under the condition that the touch operation is the operation of opening the first picture.
As an example, the number of the first newly added segment is one, and the first newly added segment includes encoded data corresponding to M pictures respectively.
In one or more embodiments of the present application, in a case that the first multimedia information includes text information, inserting encoded data for characterizing the first multimedia information into a file of a screenshot picture, and generating the screenshot data, may include:
and inserting a second newly added section into a preset position in the file of the screenshot picture to generate screenshot data, wherein the second newly added section comprises the coded data of each text message.
In the embodiment of the application, as the text can not be nested any more, each text message can be written into the same second newly-added segment, the number of the inserted second newly-added segments does not need to be determined according to the number of the texts in the screenshot picture, the excessive number of the segments in the file of the screenshot picture is avoided, and the structure of the file of the screenshot picture is simpler.
In one or more embodiments of the present application, after generating screenshot data of a first interface according to first multimedia information, the screenshot method 100 may further include:
receiving sharing input of the screenshot picture;
and responding to the sharing input, and sharing the screenshot data to the target account.
As one example, sharing the screenshot data to the target account may include:
under the condition that the sharing input is used for publishing the screenshot picture on a platform of an application program, publishing the screenshot data on the application program for logging in the target account;
and under the condition that the sharing input is used for sharing the screenshot picture to the target account in the friend list, sending the screenshot data to the target account.
In the embodiment of the application, if the user wants to share the screenshot picture, the screenshot data can be shared to the target account. Therefore, when the user of the target account opens the screenshot picture, the user can directly perform touch operation on the first multimedia information on the screenshot picture.
The following describes embodiments of the present application, taking the first interface as an example shown in fig. 7.
As shown in fig. 7, the first interface includes two messages and two pictures.
Under the condition that screenshot input of the first interface is received, firstly, screenshot is conducted on the first interface, and a screenshot picture is obtained. And then, inserting two first newly added sections and one second newly added section into the JFIF file of the screenshot picture to obtain screenshot data. One first newly added segment MYPIC0 comprises a code of a picture I, the other first newly added segment MYPIC1 comprises a code of a picture II, and the second newly added segment MYINFO comprises a code of a message 1 and a code of a message 2.
Fig. 8 is a schematic structural diagram of another embodiment of a JFIF file provided by the present application. As shown in fig. 8, the binary contents in the JFIF file include: and the SOI section, the picture description section, the extended description section, the second newly added section MYINFO, the first newly added section MYPIC0, the first newly added section MYPIC1, the SOS section and the EOI section respectively correspond to codes.
FIG. 9 is a schematic diagram of one embodiment of a first incremental segment provided herein. The first added segment MYPIC0 corresponds to the first picture on the screenshot picture, as shown in fig. 9, the code of the first added segment MYPIC0 includes Header information (Header), and the Header information is used for identifying the first picture. In fig. 8, the Header information (Header) of picture one is FF E9. The code of the first added segment MYPIC0 further comprises: the size of the picture I, the abscissa of the upper left corner of the picture I in the screenshot picture, the ordinate of the upper left corner of the picture I in the screenshot picture, the abscissa of the picture I in the screenshot picture from the upper corner, the ordinate of the upper right corner of the picture I in the screenshot picture, and the JPEG content of the picture I.
It should be noted that the structure of the first added segment MYPIC1 is similar to that of the first added segment MYPIC0 shown in fig. 9, and the description of the structure of the first added segment MYPIC1 is omitted here.
FIG. 10 is a schematic diagram of one embodiment of a second incremental segment provided herein. As shown in fig. 10, the second newly added segment MYINFO includes the code for each message on the screenshot picture. Wherein the code of each message includes Header information (Header) for identifying the corresponding message. In fig. 8, the Header information (Header) of the message 1 is FF E9. The code of each message further comprises the size of the message, the abscissa of the message in the screenshot picture, the ordinate of the message in the screenshot picture and the specific characters of the message in the screenshot picture. As can be seen from fig. 10, each message on the screenshot picture is written into a second newly added segment MYINFO. In addition, since two messages are included on the screenshot picture in this example, n =2 in fig. 10.
After obtaining the screenshot data, as shown in fig. 11, the user may share the screenshot data to a target account in the buddy list.
Therefore, on one hand, the sender does not need to separately store the first picture and the second picture and copy the message 1 and the message 2 in sequence to send the pictures and the messages to the target account, and the sender can send the screenshot pictures nested with the message 1, the message 2, the first picture and the second picture to the target account. On the other hand, when the receiver opens the screenshot picture, the receiver can directly perform touch operation on the message 1, the message 2, the picture I and the picture II on the screenshot picture, and does not need to close the screenshot picture first and then view the message 1, the message 2, the picture I or the picture II. Therefore, the method is convenient for the sender to operate and also convenient for the receiver to operate.
The application provides a screenshot device corresponding to the screenshot method provided by the application. Fig. 12 is a schematic structural diagram of an embodiment of a screenshot device provided in the present application. As shown in fig. 12, the screenshot device 200 includes:
a first receiving module 202, configured to receive a screenshot input for a first interface, where the first interface includes first multimedia information;
the data generating module 204 is configured to generate screenshot data of the first interface according to the first interface and the first multimedia information in response to screenshot input, where the screenshot data includes a screenshot picture obtained by screenshot the first interface and data representing the first multimedia information, and the data representing the first multimedia information is used for responding to a touch operation on the first multimedia information on the screenshot picture when the electronic device displays the screenshot picture.
Therefore, when the electronic equipment displays the screenshot picture, the touch operation on the first multimedia information on the screenshot picture can be received, and the touch operation is responded. Therefore, the user can directly perform touch operation on the first multimedia information on the screenshot picture, the user does not need to separately store the first multimedia information on the screenshot picture, and the user operation steps are simplified.
In one or more embodiments of the present application, the data generation module 204 may include:
the screenshot unit is used for screenshot the first interface to obtain a screenshot picture;
the generating unit is used for inserting the coded data for representing the first multimedia information into a file of the screenshot picture to generate screenshot data, wherein the coded data comprises identification information of the first multimedia information, position information of the first multimedia information on the screenshot picture and content information of the first multimedia information.
In one or more embodiments of the present application, in a case that the first multimedia information includes M pictures, where M is a positive integer, the generating unit may include:
and the first inserting unit is used for inserting a first newly-added section into a preset position in the file of the screenshot picture to generate screenshot data, and the first newly-added section comprises the coded data of the M pictures.
In one or more embodiments of the present application, the number of the first newly added segments is M, the M first newly added segments correspond to M pictures one to one, and each first newly added segment includes encoded data of the corresponding picture.
In this example, by inserting M first added segments at predetermined positions in the file of the screenshot picture, each first added segment corresponds to a picture. In this way, when any first picture of the M pictures includes the second multimedia information, the encoded data representing the second multimedia information may be inserted into the first newly added segment corresponding to the first picture. In this way, the second multimedia information can be nested on the first picture. The user can perform touch operation on a first picture on the screenshot picture, and can perform touch operation on second multimedia information on the first picture after the first picture is opened under the condition that the touch operation is the operation of opening the first picture.
In one or more embodiments of the present application, in a case where the first multimedia information includes text information, the generating unit may include:
and the second inserting unit is used for inserting a second newly added section into a preset position in the file of the screenshot picture to generate screenshot data, and the second newly added section comprises the coded data of each text message.
In the embodiment of the application, because the text can not be nested any more, each text message can be written into the same second newly-added segment, the number of the inserted second newly-added segments does not need to be determined according to the number of the texts in the screenshot picture, the excessive number of the segments in the file of the screenshot picture is avoided, and the structure of the file of the screenshot picture is simpler.
In one or more embodiments of the present application, in the case where the first multimedia information includes pictures, for any first picture of the pictures, the first picture includes second multimedia information thereon,
the data representing the first picture comprises data representing second multimedia information, and the data representing the second multimedia information is used for displaying the second multimedia information on the first picture when the electronic equipment displays the first picture, and can respond to touch operation on the second multimedia information.
Therefore, the second multimedia information is embedded in the first picture on the screenshot picture, the user can directly operate the first picture on the screenshot picture and the second multimedia information on the first picture without independently storing the first picture and the second multimedia information, and the user operation is simpler.
In one or more embodiments of the present application, the screenshot device 200 may further include:
the second receiving module is used for receiving sharing input of the screenshot picture;
and the sharing module is used for responding to the sharing input and sharing the screenshot data to the target account.
In the embodiment of the application, if the user wants to share the screenshot picture, the screenshot data can be shared to the target account. Therefore, when the user of the target account opens the screenshot picture, the user can directly perform touch operation on the first multimedia information on the screenshot picture.
It should be noted that, in the above embodiment, the execution subject is taken as the screenshot device 200 as an example to describe the screenshot executing method. However, the execution subject of the screenshot method provided in the embodiment of the present application is not limited to the screenshot device 200, and may also be a control module in the screenshot device 200 for executing the screenshot loading method.
The screenshot device 200 in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in the device. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The screenshot device 200 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The screenshot device 200 provided in the embodiment of the present application can implement each process implemented by the screenshot device 200 in the method embodiment of fig. 2, and is not described here again to avoid repetition.
An embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, where the program or the instruction implements each process of the screenshot method embodiment when executed by the processor, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 13 is a hardware configuration diagram of an embodiment of an electronic device implementing the present application.
The electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, and processor 310.
Among other things, the input unit 304 may include a graphics processor 3041 and a microphone 3042. The display unit 306 includes a display panel 3061. The user input unit 307 may include a touch panel 3071 and other input devices 3072. Memory 309 may include applications and an operating system.
Those skilled in the art will appreciate that the electronic device 300 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 13 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 307 is configured to receive a screenshot input for a first interface, where the first interface includes first multimedia information.
The processor 310 is configured to generate screenshot data of the first interface according to the first interface and the first multimedia information in response to the screenshot input, where the screenshot data includes a screenshot picture obtained by screenshot the first interface and data representing the first multimedia information, and the data representing the first multimedia information is used to enable the electronic device to respond to a touch operation on the first multimedia information on the screenshot picture when the electronic device displays the screenshot picture.
Therefore, when the electronic equipment displays the screenshot picture, the touch operation of the first multimedia information on the screenshot picture can be received, and the touch operation is responded. Therefore, the user can directly perform touch operation on the first multimedia information on the screenshot picture, the user does not need to separately store the first multimedia information on the screenshot picture, and the user operation steps are simplified.
In one or more embodiments of the present application, the processor 310 is specifically configured to:
screenshot is carried out on the first interface to obtain a screenshot picture;
inserting the coded data for representing the first multimedia information into a file of the screenshot picture to generate screenshot data, wherein the coded data comprises identification information of the first multimedia information, position information of the first multimedia information on the screenshot picture and content information of the first multimedia information.
In one or more embodiments of the present application, in a case that the first multimedia information includes M pictures, where M is a positive integer, the processor 310 is specifically configured to:
and inserting a first newly added section at a preset position in the file of the screenshot picture to generate screenshot data, wherein the first newly added section comprises the coded data of the M pictures.
In one or more embodiments of the present application, the number of the first newly added segments is M, the M first newly added segments correspond to M pictures one to one, and each first newly added segment includes encoded data of the corresponding picture.
M first newly-added sections are inserted into a preset position in a file of the screenshot picture, and each first newly-added section corresponds to one picture. In this way, when any first picture of the M pictures includes the second multimedia information, the encoded data representing the second multimedia information may be inserted into the first newly added segment corresponding to the first picture. In this way, the second multimedia information can be nested on the first picture. The user can perform touch operation on a first picture on the screenshot picture, and can perform touch operation on second multimedia information on the first picture after the first picture is opened under the condition that the touch operation is the operation of opening the first picture.
In one or more embodiments of the present application, in the case that the first multimedia information includes text information, the processor 310 is specifically configured to:
and inserting a second newly added section into a preset position in the file of the screenshot picture to generate screenshot data, wherein the second newly added section comprises the coded data of each text message.
In the embodiment of the application, as the text can not be nested any more, each text message can be written into the same second newly-added segment, the number of the inserted second newly-added segments does not need to be determined according to the number of the texts in the screenshot picture, the excessive number of the segments in the file of the screenshot picture is avoided, and the structure of the file of the screenshot picture is simpler.
In one or more embodiments of the present application, in a case that the first multimedia information includes a picture, for any first picture in the pictures, the first picture includes second multimedia information thereon, data representing the second multimedia information is included in data representing the first picture, and the data representing the second multimedia information is used to cause the electronic device to display the first picture, the second multimedia information is displayed on the first picture, and a touch operation on the second multimedia information can be responded.
Therefore, the second multimedia information is embedded in the first picture on the screenshot picture, the user can directly operate the first picture on the screenshot picture and the second multimedia information on the first picture without independently storing the first picture and the second multimedia information, and the user operation is simpler.
In one or more embodiments of the present application, the user input unit 307 is further configured to receive a sharing input of the screenshot picture;
the processor 310 is further configured to share the screenshot data to the target account in response to the sharing input.
In the embodiment of the application, if the user wants to share the screenshot picture, the screenshot data can be shared to the target account. Therefore, when the user of the target account opens the screenshot picture, the user can directly perform touch operation on the first multimedia information on the screenshot picture.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the screenshot method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, examples of which include non-transitory computer-readable storage media, such as computer-Read-Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and so forth.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the screenshot method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A method for screenshot, comprising:
receiving screenshot input for a first interface, the first interface including first multimedia information;
responding to the screenshot input, and generating screenshot data of the first interface according to the first interface and the first multimedia information, wherein the screenshot data comprise a screenshot picture obtained by screenshot the first interface and data representing the first multimedia information, and when the data representing the first multimedia information is used for enabling the electronic equipment to display the screenshot picture, the first multimedia information can be displayed on the screenshot picture in response to touch operation on the first multimedia information on the screenshot picture;
the generating screenshot data of the first interface according to the first interface and the first multimedia information comprises:
screenshot is conducted on the first interface, and a screenshot picture is obtained;
inserting encoding data for representing the first multimedia information into a file of the screenshot picture to generate the screenshot data, wherein the encoding data comprises identification information of the first multimedia information, position information of the first multimedia information on the screenshot picture and content information of the first multimedia information;
inserting the encoded data for characterizing the first multimedia information into a file of the screenshot picture, generating the screenshot data, including:
inserting a new section into a preset position in a file of the screenshot picture, and inserting coded data for representing first multimedia information into the new section to obtain screenshot data, wherein the data type of the screenshot data is associated with the data type of the first multimedia information.
2. The method of claim 1, wherein M is a positive integer if the first multimedia information comprises M pictures,
the inserting the encoded data for characterizing the first multimedia information into the file of the screenshot picture, generating the screenshot data, includes:
and inserting a first newly added section in a preset position in the file of the screenshot picture to generate the screenshot data, wherein the first newly added section comprises the coded data of the M pictures.
3. The method of claim 1, wherein, in the case where the first multimedia information includes text information,
inserting the encoded data for characterizing the first multimedia information into a file of the screenshot picture, generating the screenshot data, including:
and inserting a second newly-added section into a preset position in the file of the screenshot picture to generate the screenshot data, wherein the second newly-added section comprises the coded data of each text message.
4. The method of claim 1, wherein in the case that the first multimedia information comprises pictures, for any first picture of the pictures, the first picture comprises second multimedia information thereon,
the data representing the first picture comprises data representing the second multimedia information, and the data representing the second multimedia information is used for displaying the second multimedia information on the first picture when the electronic equipment displays the first picture, and can respond to touch operation on the second multimedia information.
5. A screenshot device, comprising:
the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving screenshot input of a first interface, and the first interface comprises first multimedia information;
the data generation module is used for responding to the screenshot input and generating screenshot data of the first interface according to the first interface and the first multimedia information, wherein the screenshot data comprises a screenshot picture obtained by screenshot of the first interface and data representing the first multimedia information, and when the data representing the first multimedia information is used for enabling the electronic equipment to display the screenshot picture, the data generation module can respond to touch operation of the first multimedia information on the screenshot picture and display the first multimedia information on the screenshot picture;
the data generation module comprises:
the screenshot unit is used for screenshot the first interface to obtain a screenshot picture;
the generating unit is used for inserting coded data for representing the first multimedia information into a file of the screenshot picture and generating the screenshot data, wherein the coded data comprises identification information of the first multimedia information, position information of the first multimedia information on the screenshot picture and content information of the first multimedia information;
the inserting the encoded data for characterizing the first multimedia information into the file of the screenshot picture, generating the screenshot data, includes:
inserting a new section into a preset position in a file of the screenshot picture, and inserting coded data for representing first multimedia information into the new section to obtain screenshot data, wherein the data type of the screenshot data is associated with the data type of the first multimedia information.
6. The apparatus of claim 5, wherein M is a positive integer if the first multimedia information comprises M pictures,
the generation unit includes:
a first inserting unit, configured to insert a first new added segment at a predetermined position in a file of the screenshot picture, and generate the screenshot data, where the first new added segment includes the encoded data of the M pictures.
7. The apparatus of claim 5, wherein, in the case where the first multimedia information comprises text information,
the generation unit includes:
and the second inserting unit is used for inserting a second newly-added section into a preset position in the file of the screenshot picture to generate the screenshot data, and the second newly-added section comprises the coded data of each text message.
8. The apparatus of claim 5, wherein in the case that the first multimedia information comprises pictures, for any first picture of the pictures, the first picture comprises second multimedia information thereon,
the data representing the first picture comprises data representing the second multimedia information, and the data representing the second multimedia information is used for displaying the second multimedia information on the first picture when the electronic equipment displays the first picture, and can respond to touch operation on the second multimedia information.
CN202110114180.6A 2021-01-27 2021-01-27 Screenshot method and device Active CN112783407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110114180.6A CN112783407B (en) 2021-01-27 2021-01-27 Screenshot method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110114180.6A CN112783407B (en) 2021-01-27 2021-01-27 Screenshot method and device

Publications (2)

Publication Number Publication Date
CN112783407A CN112783407A (en) 2021-05-11
CN112783407B true CN112783407B (en) 2022-12-16

Family

ID=75759211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110114180.6A Active CN112783407B (en) 2021-01-27 2021-01-27 Screenshot method and device

Country Status (1)

Country Link
CN (1) CN112783407B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015193640A1 (en) * 2014-06-20 2015-12-23 Glisser Ltd System and method for generating and processing an interactive presentation allowing for live audience feedback
CN109388301A (en) * 2018-09-14 2019-02-26 Oppo(重庆)智能科技有限公司 Screenshot method and relevant apparatus
US10824790B1 (en) * 2019-05-28 2020-11-03 Malcolm E. LeCounte System and method of extracting information in an image containing file for enhanced utilization and presentation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078343B (en) * 2013-09-12 2023-08-01 北京三星通信技术研究有限公司 Screen capturing method and screen capturing device for mobile terminal and mobile terminal
US20160105388A1 (en) * 2014-10-09 2016-04-14 Footspot, Inc. System and method for digital media capture and related social networking
US10028021B2 (en) * 2014-12-22 2018-07-17 Hisense Electric Co., Ltd. Method and device for encoding a captured screenshot and controlling program content switching based on the captured screenshot
CN107085490A (en) * 2017-03-29 2017-08-22 深圳天珑无线科技有限公司 Multimedia messages player method and device based on sectional drawing
US10783320B2 (en) * 2017-05-16 2020-09-22 Apple Inc. Device, method, and graphical user interface for editing screenshot images
CN108563967A (en) * 2018-03-15 2018-09-21 青岛海信移动通信技术股份有限公司 A kind of screenshot method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015193640A1 (en) * 2014-06-20 2015-12-23 Glisser Ltd System and method for generating and processing an interactive presentation allowing for live audience feedback
CN109388301A (en) * 2018-09-14 2019-02-26 Oppo(重庆)智能科技有限公司 Screenshot method and relevant apparatus
US10824790B1 (en) * 2019-05-28 2020-11-03 Malcolm E. LeCounte System and method of extracting information in an image containing file for enhanced utilization and presentation

Also Published As

Publication number Publication date
CN112783407A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US10812429B2 (en) Systems and methods for message communication
KR101942308B1 (en) Method for providing message function and an electronic device thereof
US7343561B1 (en) Method and apparatus for message display
CN113300938B (en) Message sending method and device and electronic equipment
CN113094143B (en) Cross-application message sending method and device, electronic equipment and readable storage medium
CN113518026B (en) Message processing method and device and electronic equipment
CN113259222B (en) Message processing method and device and electronic equipment
KR20130072642A (en) Apparatus and method for managing attached file of message in portable terminal
CN112947807A (en) Display method and device and electronic equipment
KR20130005406A (en) Method and apparatus for transmitting message in portable terminnal
CN112286887A (en) File sharing method and device and electronic equipment
CN112286416A (en) Information display method and device and electronic equipment
US20240031317A1 (en) Image Sharing Method and Electronic Device
CN111027301A (en) Information processing method, device, terminal equipment and storage medium
TWI491241B (en) Computer program products, apparatuses and methods for associating and displaying messages in mobile terminals
CN114518923A (en) Message sending method and device and electronic equipment
TW201926968A (en) Program and information processing method and information processing device capable of easily changing choice of content to be transmitted
CN112333084B (en) File sending method and device and electronic equipment
CN108092873B (en) Instant messaging method and system
CN113253903A (en) Operation method and operation device
CN112783407B (en) Screenshot method and device
US20070136668A1 (en) Multimedia short message template application system and broadcast system, multimedia short message template applying method and broadcast method
CN113364915B (en) Information display method and device and electronic equipment
CN113037609B (en) Chat message deleting method and device
CN112383666B (en) Content 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
GR01 Patent grant
GR01 Patent grant