WO2020224485A1 - 一种截屏方法及电子设备 - Google Patents

一种截屏方法及电子设备 Download PDF

Info

Publication number
WO2020224485A1
WO2020224485A1 PCT/CN2020/087442 CN2020087442W WO2020224485A1 WO 2020224485 A1 WO2020224485 A1 WO 2020224485A1 CN 2020087442 W CN2020087442 W CN 2020087442W WO 2020224485 A1 WO2020224485 A1 WO 2020224485A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
picture
interface
areas
application
Prior art date
Application number
PCT/CN2020/087442
Other languages
English (en)
French (fr)
Inventor
熊刘冬
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US17/609,109 priority Critical patent/US11669242B2/en
Priority to JP2021566055A priority patent/JP7326476B2/ja
Priority to EP20801546.1A priority patent/EP3944063A4/en
Publication of WO2020224485A1 publication Critical patent/WO2020224485A1/zh

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/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
    • G06F3/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/629Protecting access to data via a platform, e.g. using keys or access control rules to features or functions of an application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Definitions

  • This application relates to the field of communication technology, and in particular to a screenshot method and electronic equipment.
  • the screen capture function is a common feature of mobile phones.
  • the existing screen capture method is to capture the entire interface displayed on the current screen of the mobile phone and save it as a picture.
  • the functions of mobile phones become more and more powerful, more and more mobile phones can achieve dual-screen or even multi-screen display, that is, the screen displays the interface of multiple applications in one interface. In this case, the need to intercept part of the interface displayed on the mobile phone screen becomes frequent. If the existing screen capture method is still used, after the entire interface is captured, it is necessary to use the editing tool of the mobile phone or a third-party retouching software to edit the captured image, which is cumbersome and poor user experience.
  • the screen capture method and electronic device provided by the present application realize quick screen capture of a specific area on the screen and improve user experience.
  • the methods provided in this application include:
  • the terminal displays a first interface, the first interface includes N areas; N is an integer greater than or equal to 2; the terminal receives the user's first operation; in response to the first operation, the terminal displays a second interface, the second interface includes N controls ; N controls correspond to N areas one-to-one, and each of the N controls is used to select or to select the content of the corresponding area; the terminal receives a second operation from the user, and the second operation is an operation on the N controls; In response to the second operation, the terminal determines the selected area among the N areas; the terminal receives the user's third operation; in response to the third operation, the terminal generates a first picture, and the first picture contains the selected area among the N areas Content; or the terminal generates M pictures, each of the M pictures contains the content of one of the selected X regions among the N regions.
  • the mobile phone can automatically recognize the display area of multiple application windows on the screen, and can automatically capture the content of the application window selected by the user according to the user’s selection. It can quickly take screenshots of specific areas in the interface to meet the individual needs of users and improve user experience.
  • each of the N areas displays an application window or part of the main screen interface.
  • the size and/or position of the selected area among the N areas in the first picture is the same as the size and/or position of the selected area among the N areas in the first interface; Or, the size and position of the selected area in the N areas in the first picture are different from the size and position of the selected area in the N areas in the first interface.
  • the method before the terminal generates the first picture, or the terminal generates M pictures, and after the terminal receives the user's first operation, the method further includes: the terminal takes a screenshot of the first interface to obtain the second picture .
  • the terminal generates the first picture, or the terminal generates M pictures, including: the terminal generates the first picture according to the second picture, or the terminal generates M pictures according to the second picture.
  • the embodiment of the present application provides a method for obtaining the content of an application window selected by a user.
  • the method further includes: the terminal obtains the size and/or position of the selected area among the N areas in the first interface.
  • the terminal generates the first picture according to the second picture, or the terminal generates M pictures according to the second picture, including: the terminal generates the first picture according to the size and/or position of the selected area among the N areas in the first interface, and the second picture One picture, or the terminal generates M pictures according to the size and/or position of the selected area among the N areas in the first interface and the second picture.
  • the terminal generates the first picture according to the second picture, including: the terminal crops the content of the unselected area in the N areas in the second picture to obtain the first picture; or, the terminal 2.
  • the content of the unselected area among the N areas in the picture is modified to a preset pattern to obtain the first picture.
  • the size and/or position of each selected application window in the first picture is the same as the size and position of each selected application window in the first interface.
  • the terminal may also adjust each reserved application window, such as adjusting the size or adjusting the position. Then, the position and/or size of each selected application window in the first picture is different from that in the first interface, which can make the first picture more beautiful and compact, and meet the diverse needs of users.
  • the terminal generates the first picture according to the second picture, and further includes: the terminal separately crops the content of the selected region among the N regions from the second picture, and cuts out the content of each region Synthesize to get the first picture.
  • the cropped content of each selected area is directly synthesized to obtain the first picture. Then, the size and/or position of each selected application window in the first picture is the same as each selected application window. The size and position in the first interface are the same. In some other embodiments, the mobile phone can adjust each selected application window cut out, for example, adjust the size or adjust the position. Then, the position and/or size of each selected application window in the first picture is different from that in the first interface, which can make the first picture more beautiful and compact, and meet the diverse needs of users.
  • the method before the terminal generates the first picture, or before the terminal generates M pictures, the method further includes: the terminal obtains a cache of the top-level view of the application corresponding to the selected area among the N areas.
  • the terminal generates the first picture, or the terminal generates M pictures, including: the terminal generates the first picture according to the cache of the top-level view of the application corresponding to the selected area in the N areas, or the terminal generates the first picture according to the selected area in the N areas
  • the cache of the top-level view of the application corresponding to the area generates M pictures.
  • the cache of the top-level view of each application is the content displayed by each application on the current screen.
  • the embodiment of the present application provides another method for obtaining the content of the selected application window.
  • the method further includes: the terminal obtains the size and/or position information of the selected area among the N areas in the first interface.
  • the terminal generates the first picture according to the cache of the top-level view of the application corresponding to the selected area among the N areas, or the terminal generates M pictures according to the cache of the top-level view of the application corresponding to the selected area among the N areas , Including: the terminal generates the first picture according to the cache of the top-level view of the application corresponding to the selected area among the N areas, and the size and/location information of the selected area among the N areas in the first interface, or The terminal generates M pictures according to the cache of the top-level view of the application corresponding to the selected area among the N areas, and the size and/or location information of the selected area among the N areas in the first interface.
  • the terminal displays the acquired content of each application window according to the acquired size and position of the selected application window in the first interface. Then, the size and/or position of each selected application window in the first picture is the same as the size and position of each selected application window in the first interface.
  • the mobile phone can adjust each selected application window, for example, adjust the size or adjust the position. Then, the position and/or size of each selected application window in the first picture is different from that in the first interface, which can make the first picture more beautiful and compact, and meet the diverse needs of users.
  • the second interface further includes N lock controls, the N lock controls correspond to the N areas one-to-one, and the lock controls are used to lock or unlock the contents of the corresponding areas;
  • the terminal receives the user’s third
  • the method further includes: the terminal receives a fourth operation of the user, the fourth operation is an operation on the N lock controls; in response to the fourth operation, the terminal determines the locked area among the N areas.
  • the method further includes:
  • the terminal displays the first interface; the terminal receives the fifth operation of the user; in response to the fifth operation, the terminal displays the third interface, and the locked area of the N areas in the third interface is the selected area by default.
  • a terminal in the second aspect, includes: a processor, a memory, and a touch screen.
  • the memory and the touch screen are coupled to the processor.
  • the memory is used to store computer program codes.
  • the computer program codes include computer instructions.
  • Display a first interface the first interface includes N areas; N is an integer greater than or equal to 2; receive a user's first operation; in response to the first operation, display a second interface, the second interface includes N controls; N The controls correspond to the N areas one-to-one, and each of the N controls is used to select or select the content of the corresponding area; receive the second operation of the user, the second operation is an operation on the N controls; in response to the second Operation, determine the selected area among the N areas; receive the user's third operation; in response to the third operation, generate the first picture, the first picture contains the content of the selected area among the N areas; or generate M pictures , Each of the M pictures contains the content of one of the selected X regions among the N regions.
  • each of the N areas displays an application window or part of the main screen interface.
  • the size and/or position of the selected area among the N areas in the first picture is the same as the size and/or position of the selected area among the N areas in the first interface; Or, the size and position of the selected area in the N areas in the first picture are different from the size and position of the selected area in the N areas in the first interface.
  • the terminal before the terminal generates the first picture or the terminal generates M pictures, and after the terminal receives the first operation from the user, the terminal also performs the following operations: Take a screenshot of the first interface to obtain the second image.
  • the terminal generates the first picture, or the terminal generates M pictures, including: the terminal generates the first picture according to the second picture, or the terminal generates M pictures according to the second picture.
  • the terminal further performs the following operation: obtain the size and/or position of the selected area among the N areas in the first interface.
  • the terminal generates the first picture according to the second picture, or the terminal generates M pictures according to the second picture, including: the terminal generates the first picture according to the size and/or position of the selected area among the N areas in the first interface, and the second picture One picture, or the terminal generates M pictures according to the size and/or position of the selected area among the N areas in the first interface and the second picture.
  • the terminal generates the first picture according to the second picture, including: the terminal crops the content of the unselected area in the N areas in the second picture to obtain the first picture; or, the terminal 2.
  • the content of the unselected area among the N areas in the picture is modified to a preset pattern to obtain the first picture.
  • the terminal generates the first picture according to the second picture, and further includes: the terminal separately crops the content of the selected region among the N regions from the second picture, and cuts out the content of each region Synthesize to get the first picture.
  • the terminal before the terminal generates the first picture, or before the terminal generates M pictures, the terminal further performs the following operation: obtains the cache of the top-level view of the application corresponding to the selected area among the N areas.
  • Generate the first picture, or the terminal generates M pictures, including: generating the first picture according to the cache of the top-level view of the application corresponding to the selected area among the N areas, or according to the selected area among the N areas
  • the cache of the top-level view of the application generates M pictures.
  • the terminal further performs the following operation: obtain size and/or position information of the selected area among the N areas in the first interface.
  • the terminal generates the first picture according to the cache of the top-level view of the application corresponding to the selected area among the N areas, or the terminal generates M pictures according to the cache of the top-level view of the application corresponding to the selected area among the N areas ,include:
  • the terminal generates the first picture according to the cache of the top-level view of the application corresponding to the selected area among the N areas, and the size and/location information of the selected area among the N areas in the first interface, or the terminal generates the first picture according to the N
  • the cache of the top-level view of the application corresponding to the selected area in the two areas, and the size and/or location information of the selected area in the N areas in the first interface generate M pictures.
  • the second interface further includes N lock controls, the N lock controls correspond to the N areas one-to-one, and the lock controls are used to lock or unlock the contents of the corresponding areas;
  • the terminal receives the user’s third Before the operation, the terminal also performs the following operations: receiving a fourth operation from the user, the fourth operation being an operation on the N lock controls; in response to the fourth operation, determining the locked area among the N areas.
  • the terminal After the terminal generates the first picture in response to the third operation, the terminal also performs the following operations: displays the first interface; receives the user's fifth operation; in response to the fifth operation, displays the third interface, and N areas in the third interface
  • the locked area in the default is the selected area.
  • a computer storage medium includes computer instructions, which when the computer instructions run on a terminal, cause the terminal to execute the method described in the first aspect and any one of its possible implementation manners.
  • the fourth aspect is a computer program product.
  • the computer program product runs on a computer, the computer executes the method described in the first aspect and any one of the possible implementation manners.
  • FIG. 1 is a first structural diagram of an electronic device according to an embodiment of the application
  • FIG. 2 is a second structural diagram of an electronic device provided by an embodiment of the application.
  • FIG. 3A is a schematic diagram of a user interface of some mobile phones provided by an embodiment of the application.
  • FIG. 3B is a schematic diagram of user interfaces of still other mobile phones provided by embodiments of this application.
  • 3C is a schematic diagram of user interfaces of still other mobile phones provided by the embodiments of the application.
  • FIG. 3D is a schematic diagram of user interfaces of still other mobile phones provided by the embodiments of this application.
  • 3E is a schematic diagram of user interfaces of still other mobile phones provided by the embodiments of the application.
  • 3F is a schematic diagram of user interfaces of still other mobile phones provided by the embodiments of the application.
  • FIG. 3G is a schematic diagram of user interfaces of still other mobile phones provided by the embodiments of this application.
  • FIG. 3H is a schematic diagram of user interfaces of still other mobile phones provided by an embodiment of the application.
  • 4A is a schematic diagram of user interfaces of still other mobile phones provided by embodiments of the application.
  • 4B is a schematic diagram of user interfaces of still other mobile phones provided by the embodiments of the application.
  • 4C is a schematic diagram of user interfaces of still other mobile phones provided by an embodiment of the application.
  • FIG. 4D is a schematic diagram of user interfaces of still other mobile phones provided by an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • the electronic device in this application may be a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, and augmented reality technology (Augmented reality, AR) devices, virtual reality (virtual reality, VR) devices, vehicle-mounted devices, smart cars, smart audio, robots, etc.
  • AR Augmented reality
  • VR virtual reality
  • vehicle-mounted devices smart cars, smart audio, robots, etc.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in a variety of encoding formats, for example: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes a layered Android system as an example to illustrate the software structure of the electronic device 100.
  • FIG. 2 is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application package may also include a screenshot application, such as SystemUI, which can be used to draw a screenshot preview, specifically including: drawing a screenshot of the current entire screen, that is, the first screenshot, and performing the first screenshot Crop, synthesize, modify, etc. to generate a second screenshot containing a part of the application window in the current screen, etc.
  • a screenshot application such as SystemUI
  • SystemUI SystemUI
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the window manager may specifically be a window management service (WindowManagerService, WMS), and the WMS stores information of each application window displayed on the current screen, such as the coordinates and size of each application window.
  • WMS window management service
  • the WMS When the application of the application layer starts to run, the WMS will be notified of the size and position of the started application window. Moreover, when the size and position of the application window change subsequently, the changed data will be refreshed to the WMS in time. Therefore, the information of each application window displayed on the current screen can be obtained from the WMS.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Take the touch operation as a touch click operation, and the control corresponding to the click operation is the screenshot control of the drop-down notification bar as an example.
  • the screenshot application calls the interface of the application framework layer to capture the pixel value of the current entire screen and draw Take a screenshot of the entire screen, and then start the display driver by calling the kernel layer, and display the corresponding interface through the display 194.
  • the electronic device 100 having the aforementioned hardware architecture and software architecture.
  • the electronic device is an example of a mobile phone.
  • FIGS. 3A to 3H show schematic diagrams of the interfaces of some mobile phones.
  • the method for taking screenshots of some application windows in the interface provided by the embodiments of the present application will be described in detail below with reference to the drawings.
  • the interface 300 is an example of the first interface, and multiple application windows are displayed in the interface 300.
  • the window 301 of the browser application the chat window 302 of the WeChat application
  • the window 303 of the video application the window 304 of the document application
  • the window 305 of the photo application the window 305 of the photo application.
  • the mobile phone can take a screenshot of the entire screen (ie, the screenshot of the first interface, referred to as the first screenshot).
  • the mobile phone obtains information of each application window in the current screen (ie, the first interface), such as the identification of each application, the size and coordinates of each application window, and other information.
  • the mobile phone can determine the display area of each application window on the screen, that is, determine the position of each application window in the screenshot (ie, the first screenshot) of the entire screen.
  • the screen capture application or function in the mobile phone may call SurfaceControl.screenshot to capture a screenshot of the entire screen, that is, the first screenshot.
  • the screenshot application or function calls the window management service of the application framework layer to obtain information such as the size and coordinates of each application window.
  • the screen capture application or function associates the first screenshot with the display area of each application window, for example: draw controls associated with each application window on the first screenshot.
  • the screenshot application determines to keep or remove some application windows in the first screenshot according to the user's operation on the control, and generates the final screenshot, that is, the second screenshot. Then, save the second screenshot in the gallery application.
  • the mobile phone can also obtain the information of each application window displayed on the current screen by calling WMS after detecting the screen capture operation, and establish a one-to-one control corresponding to each application window displayed on the current screen. Then, the user selects the application window that needs to be kept in the final screenshot through these controls. The mobile phone then determines the position of the application window that needs to be retained in the first screenshot, and obtains the content of the application window that needs to be retained from the first screenshot. In this case, the mobile phone can take a screenshot of the first interface (ie, the first screenshot) at any time between detecting the screenshot operation and determining the position of the application window that needs to be retained in the first screenshot. That is, the embodiment of the present application does not limit the time for capturing the screenshot of the first interface.
  • the above screenshot operation may be, for example, the operation of the user pressing a physical button (for example, pressing and holding the power button and the volume key at the same time), and the user performing a predefined gesture (for example, sliding three fingers on the screen, tapping the screen with knuckles) , The user operates the corresponding button on the screen (click the screenshot control in the notification bar), etc.
  • a physical button for example, pressing and holding the power button and the volume key at the same time
  • a predefined gesture for example, sliding three fingers on the screen, tapping the screen with knuckles
  • the user operates the corresponding button on the screen (click the screenshot control in the notification bar), etc.
  • the embodiment of this application does not specifically limit the screenshot operation.
  • the four vertex coordinates of each application window can be used to represent the display area on the screen, or a vertex coordinate and the size of the application window can be used to represent Other methods indicate the display area of each application window on the screen, which is not specifically limited in this application.
  • the coordinate system is based on the vertex of the upper left corner of the screen (for example, point O) as the origin; the direction parallel to the upper edge of the screen and pointing from the left edge of the mobile phone to the right edge is the positive X axis.
  • the direction parallel to the left edge of the screen and pointing from the upper edge of the phone to the lower edge is the positive direction of the Y axis.
  • the unit of the coordinate system can be a pixel unit, a physical unit (for example: mm), or other units, which is not specifically limited in the embodiment of the present application.
  • the display area of the application window on the screen can be represented by the coordinates of the four vertices.
  • the window of the browser application can use the coordinates of the top left vertex (point A), the coordinates of the top right vertex (point B), the coordinates of the bottom left vertex (point C), and the bottom right vertex (point D) The coordinate representation.
  • the display mode of the display area of other application windows is similar, and will not be repeated.
  • the display area of the application window on the screen can also be represented by a vertex and the window size.
  • the window of the browser application can use the coordinates of the vertex (point A) in the upper left corner and the size of the window (for example: M*N).
  • the display mode of the display area of other application windows is similar, and will not be repeated.
  • the origin of the coordinate system can also be any other point on the screen, for example: the center of the screen, and the directions of the X-axis and the Y-axis can also be other directions.
  • the embodiment of the present application does not limit the coordinate system.
  • the display area of each application window can also be determined in the screenshot of the entire screen (ie, the first screenshot). Then, the display area of each application window is associated with the corresponding control. In this way, the user can select the display area of each application window by operating these controls. For example: choose to keep the display area of a certain application window in the first screenshot, or choose to remove the display area of a certain application window in the first screenshot. That is, in this application, the mobile phone can retain the content of the application window that the user wants to display in the screenshot of the entire screen according to the user's choice, or remove the content of the application window that the user does not want to display. That is, this application realizes a quick screenshot of a specific area in the entire screen.
  • the first screenshot (ie, the second interface) may be displayed on the screen, and some related application windows may be displayed on the second interface.
  • Controls such as select controls, delete controls, etc.
  • the selection control can be used to select the application window, that is, to select the application window that needs to be kept in the final screenshot.
  • the delete control can be used to select application windows, that is, select application windows that do not need to be kept in the final screenshot. In this way, the user can directly operate the controls corresponding to each application window to select the content of the application window retained in the last screenshot, or select the content of the application window that needs to be deleted in the last screenshot.
  • the first screenshot can be reduced in an appropriate proportion so that the user can distinguish the first interface from the second interface.
  • the mobile phone may also play a prompt sound such as a sound of taking pictures to remind the user that a screenshot of the first interface has been taken.
  • the controls associated with each application window may be displayed on the display area of each application window, or may be displayed around the display area of each application window. Alternatively, it may also be displayed in other areas in a list form, and the embodiment of the present application does not limit the display mode and position of the control.
  • the interface 306 is an example of the second interface.
  • the interface 306 displays the reduced first screenshot 307.
  • the display area of each application window is also appropriately reduced.
  • the control corresponding to each application window is also displayed on the interface 306.
  • it can also default that all applications in the first interface are not selected, that is, by default, the user does not retain the content of any application window in the final screenshot. Then, the user can select the content of some application windows that they want to keep by clicking the selection control.
  • the mobile phone after the mobile phone takes a screenshot of the first interface, it can default to each application in the first interface to be selected, that is, the default is that the user wants to keep all the application windows in the first interface in the final screenshot. content. Then, the user can choose to remove some application windows by clicking the delete control.
  • a delete control 308 is displayed on the display area corresponding to the document application.
  • the mobile phone detects that the user clicks the delete control 308, the mobile phone displays the display area where the window of the document application is located in a color that can be distinguished from other application windows, such as gray. Or, display the windows of the document application in other ways that can distinguish other application windows. This means that the user chooses to remove the content of the application window in the final screenshot, that is, the content of the application window is not displayed in the final screenshot.
  • some other controls may be displayed on the interface 306, such as a merge control 311, a separate control 310, an inverted selection control 312, an edit control 313, and so on.
  • the merge control 311 is used to instruct to display the contents of the windows of the selected multiple applications on a screenshot (ie, a picture).
  • the windows of the multiple applications are on the screenshot. Does not overlap. That is, the merge control 311 is used to realize the function of merging and displaying the window contents of multiple selected applications, which is referred to as the merge function hereinafter.
  • the separation control 310 is used to instruct to display the window content of the selected multiple applications on multiple screenshots (ie multiple pictures), for example: each screenshot only displays the window content of one application.
  • the separation control 310 is used to realize the function of separately displaying the window contents of the selected multiple applications, which is referred to as the separation function hereinafter.
  • the inverted selection control 312 is used to quickly switch the selected application in the current screenshot to the unselected state, and the unselected application to the selected state.
  • the editing control 313 is used to instruct the current screenshot to be switched to the editing state, and operations such as cutting, graffiti, mosaic, and forwarding can be performed on the current screenshot.
  • the interface 314 is an interface displayed after the mobile phone detects that the user clicks the delete control 308. It can be seen that the window of the document application corresponding to the delete control 308 is displayed in a different way from the windows of other applications, which are distinguished in a shaded manner in the figure.
  • the application window selected to be deleted can also be associated with an add control, for example: add control 315, so that the user can add the application window back through the add control, that is, the content of the application window is displayed in the final screenshot.
  • the mobile phone On the second interface, if it is detected that the user clicks on the merge control 311, the mobile phone generates a final screenshot (ie, the second screenshot) according to the user's current selection, and the second screenshot shows the multiple applications that the user currently selects to display The content of the window.
  • the second screenshot has the same size as the first screenshot, and the size of each application window in the second screenshot is also the same as the size of the corresponding application window in the first screenshot.
  • the mobile phone when the second interface is the interface 314, in the interface 314, after the user selects to delete the window of the document application, in response to detecting that the user clicks the merge control 311, the mobile phone generates a second screenshot.
  • the second screenshot includes the window of the browser application, the chat window of WeChat, the playback window of the video application, and the window of the gallery application.
  • the picture 316 is an example of the second screenshot generated by the mobile phone.
  • the content of the application window ie, the window of the document application selected by the user to be removed is not displayed in the screenshot.
  • the pixel value of the display area of the application window (for example, the window of the document application) selected by the user to be removed in the first screenshot can be modified, so that the display area is displayed in black, gray, or white , Or mosaic and other specific patterns. This is not specifically limited in the embodiments of the present application.
  • the mobile phone can automatically crop out the application windows that the user did not choose to keep in the first screenshot (or the application windows that the user chooses to delete) from the first screenshot according to the user's selection, to get The second screenshot. That is, the size of the second screenshot is smaller than the size of the first interface.
  • the relative position of each application in the second screenshot is the same as the relative position of each application in the first interface.
  • the mobile phone can also automatically adjust the position of some application windows, making the layout of each application window on the second screenshot more compact and beautiful, and convenient for subsequent processing of the second screenshot, such as cropping, compression, etc.
  • the user can also manually move the position of some application windows by means such as dragging.
  • the embodiment of the present application does not specifically limit the method for adjusting the position of the application window.
  • the mobile phone can automatically crop each application window selected by the user to keep according to the user's selection, and then rearrange the position of each cropped application window according to the size of the screen, and combine the first Second screenshot.
  • the size of each application window in the second screenshot is the same as the size of each application window in the first interface, but the position of each application window in the second screenshot is different from the position of each application window in the first interface .
  • the mobile phone can also rearrange the positions and sizes of the cropped application windows according to the size of the screen to synthesize the second screenshot. That is, the size and position of each application window in the second screenshot are different from the size and position of each application window in the first interface.
  • the application windows selected by the user on the interface 317 to be retained include a browser application window and a video application playing window.
  • the mobile phone After detecting that the user clicks on the merge control, the mobile phone generates a second screenshot containing the content of multiple application windows.
  • the second screenshot may be picture 318, for example. That is, the position of each application window on the second screenshot is the same as the size and position of the corresponding application window on the first screenshot.
  • the second screenshot may also be a picture 319, for example. That is, the size of each application window on the second screenshot is the same as the size of the corresponding application window on the first screenshot, but the position of some application windows can be different from the position of the corresponding application window in the first screenshot.
  • the position has been adjusted.
  • the application windows that were originally disconnected are displayed together, making the layout of each application window in the second screenshot more compact.
  • the mobile phone can also automatically crop the area where the application window is not displayed in the second screenshot. That is, the image size of the second screenshot is smaller than the first screenshot.
  • the second screenshot may also be, for example, the picture 332 shown in FIG. 3D, that is, the position and size of some application windows are adjusted. For example, the length and width of the window of the video application are enlarged according to a certain ratio, so that the arrangement of the application windows in the second screenshot is more compact and beautiful.
  • the application windows selected by the user on the interface 320 to be retained include a browser application window, a WeChat chat window, and a video application playback window.
  • the mobile phone After detecting that the user clicks on the merge control, the mobile phone generates a second screenshot containing the content of multiple application windows.
  • the second screenshot may be the picture 321, for example. In picture 321, each application window retains its position on the first screenshot.
  • the second screenshot may also be the picture 322, for example. In picture 322, the positions of some application windows have been adjusted to make the layout on the second screenshot more compact. It is helpful for subsequent processing of the second screenshot, such as cropping and compression.
  • the mobile phone can also automatically crop the area where the application window is not displayed in the second screenshot. That is, the image size of the second screenshot is smaller than the first screenshot.
  • the mobile phone On the second interface, if it is detected that the user clicks on the separate control 310, the mobile phone generates multiple second screenshots according to the user's current selection, and each second screenshot only displays the content of one application window selected by the user.
  • the size of each second screenshot is smaller than the size of the first screenshot.
  • the interface 323 is an example of a second interface.
  • the application windows selected by the user to be displayed in the second screenshot include a browser application window and a WeChat application chat window.
  • the mobile phone In response to detecting that the user clicks on the separate control 310, the mobile phone automatically generates two second screenshots, such as picture 324 and picture 325.
  • the picture 324 displays the window of the browser application, and the size of the picture 324 is consistent with the window size of the browser application.
  • the picture 325 shows the chat window of the WeChat application, and the size of the picture 325 is consistent with the size of the chat window of the WeChat application.
  • the separation function can also be used in combination with the scrolling function.
  • the second interface may also display scrolling controls associated with each application. That is, it is possible to implement scrolling screenshots of the application window with the scrolling function selected to obtain a screenshot of the complete interface of the application window.
  • the interface 326 is an example of the second interface.
  • the application windows selected by the user to be displayed include a browser application window and a WeChat chat window.
  • the mobile phone After the user clicks the scrolling control 309 and the separation control 310 associated with the window of the NetEase News application, the mobile phone generates two second screenshots, which are picture 327 and picture 328, respectively. It can be seen that picture 327 shows the complete interface of the current window of the NetEase News application. Picture 328 shows the interface of the current chat window of the WeChat application.
  • the mobile phone when it generates the picture 327, it can automatically scroll the application window with the scrolling function selected, and take a screenshot of the entire interface of the window during the scrolling operation.
  • the mobile phone can select either the merge function or the split function to generate the second screenshot by default, or the merge function and the split function can be used to generate the second screenshot at the same time.
  • the merge function and the split function can be used to generate the second screenshot at the same time.
  • the mobile phone if it has not detected that the user clicks on the merge control 311 or the split control 310 within the preset time period, it will automatically generate the second screenshot according to the application selected by the user, using the merge function or the split function by default.
  • the mobile phone detects that the user continuously triggers the screenshot operation, it can also use the merge function or the separation function to generate the second screenshot by default. The embodiments of this application do not limit this.
  • the mobile phone selects a different method to generate the second screenshot by default.
  • the mobile phone uses the method of combining functions to generate the second screenshot by default.
  • the mobile phone uses the separate function method to generate the second screenshot by default.
  • the mobile phone uses the method of combining functions to generate the second screenshot by default.
  • the mobile phone uses the method of separating the function to generate the second screenshot by default.
  • the mobile phone when the mobile phone generates the second screenshot, it can also display prompt information, for example, the photo is being saved.
  • the second screenshot is automatically saved in the gallery application, and the mobile phone automatically returns to the interface before the screenshot, that is, the first interface is displayed.
  • the mobile phone automatically saves the second screenshot in the gallery application after generating the second screenshot, and displays the thumbnail of the second screenshot in the displayed first interface. If the user clicks on the thumbnail of the second screenshot, the mobile phone displays the editing interface of the second screenshot, that is, operations such as cropping, drawing, and forwarding can be performed on the second screenshot.
  • the mobile phone returns to the first interface. If the user clicks the thumbnail of the second screenshot in the first interface, the thumbnail of the second screenshot disappears, that is, the mobile phone displays the first interface.
  • the embodiments of the present application do not specifically limit this.
  • the mobile phone can automatically recognize the display area of multiple application windows on the screen, and can automatically capture the content of the application window selected by the user according to the user’s selection. It can quickly take screenshots of specific areas in the interface to meet the individual needs of users and improve user experience.
  • the mobile phone screen is covered with application windows, that is, the first interface is composed of multiple application windows as an example.
  • the screen of the mobile phone may not be filled with application windows, that is, in addition to application windows, part of the desktop, status bar, dock, etc. may be displayed in the first interface.
  • the display area of the non-application window on the screen can be used as one or more independent display areas.
  • the user can also choose whether to keep the one or more independent display areas in the final screenshot.
  • the one or more independent display areas may also be associated with one or more controls, for example: deleting controls, adding controls, and so on.
  • the interface 329 is another example of the first interface.
  • multiple application windows and a part of the desktop 330 are displayed.
  • the mobile phone takes a screenshot of the current screen, obtains information about each application on the current screen, and determines the display area of each application.
  • the mobile phone can also determine the display area where part of the desktop in the first interface is located according to the acquired information of the display area of each application.
  • the mobile phone can display a second interface, that is, interface 329.
  • the display area of each application window on the interface 329 is associated with a delete control, and the area where the desktop is displayed is also associated with a delete control 331. That is, the user can also operate the delete control 331 to choose whether to keep the content of the part of the desktop in the second screenshot.
  • the embodiment of the present application also provides an operation that can lock the application window that still needs to be captured next time during the screenshot process. Then, when the user takes a screenshot again, the locked application window can be selected by default.
  • FIGS. 4A to 4D are schematic diagrams of other interfaces of the mobile phone.
  • the locking solution provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
  • the user performs a screenshot operation on the first interface (for ease of description, this screenshot operation is recorded as the first screenshot operation), and the mobile phone displays the second interface.
  • a lock control associated with each application window is also displayed, and the user can select the application window that needs to be retained in the next screen capture through the lock control. That is, the next time you take a screenshot, the content of the locked application window by default is to be retained in the final screenshot, and the content of the unlocked application window by default does not need to be retained in the final screenshot.
  • the mobile phone may default to the locked state of application windows to be retained during this screenshot, and default to the non-locked state of application windows that do not need to be retained during this screenshot, which can also be referred to as unlocked. Then, the user can switch the locked state and unlocked state of the application window by operating the lock control.
  • the interface 400 is an example of the second interface.
  • a corresponding lock control is also displayed in the display area of each application window.
  • the user can select the application window to be locked through the lock control associated with each application window.
  • the window of the browser application, the chat window of the WeChat application, and the window of the gallery application are locked, and the window of the video application and the window of the document application are unlocked.
  • the mobile phone In response to the user clicking the merge control, the mobile phone generates a screenshot picture of this time, for example, picture 402.
  • the picture 402 displays a window of a browser application, a window of a chat window gallery application of a WeChat application, and a window of a video application. To facilitate the distinction between this screenshot and subsequent screenshots, this screenshot is recorded as the first screenshot.
  • the phone After finishing the first screenshot, the phone returns to the first interface.
  • the user continues to operate on the first interface, for example: viewing other news on the browser application, the chat window of the WeChat application has new information, and the third interface is obtained.
  • the mobile phone takes a screenshot of the third interface.
  • the screenshot of the third interface is appropriately reduced and displayed, that is, the fourth interface is displayed.
  • the interface 403 is an example of the fourth interface.
  • the application window that was locked during the last screenshot is the application window that needs to be retained for this screenshot (ie the second screenshot).
  • the application window that was not locked during the last screenshot is the current screenshot.
  • No need to keep application windows That is, the window of the browser application, the chat window of the WeChat application, and the window of the picture application are by default the application windows that need to be retained for the second screenshot.
  • the user can also delete the application window that no longer wants to keep by deleting the control, or restore the application window that he wants to keep by adding the control.
  • the mobile phone In response to the user clicking the merge control on the third interface, the mobile phone generates a new screenshot, for example: picture 404.
  • the picture 404 displays the window content of the browser application, the content of the chat window of the WeChat application, and the content of the window of the gallery application.
  • the mobile phone can also automatically crop the area where the content of the application window is not displayed, which helps reduce the size of the screenshot.
  • the user can also switch the locked state and locked state of an application window by operating the lock control associated with the application window.
  • the user can also switch the application window from the locked state to the unlocked state by exiting a locked application window. This application does not limit this.
  • the window displaying the gallery application in the interface 403 is in a locked state.
  • the mobile phone switches the window of the gallery application to the unlocked state, as shown in the interface 405. That is to say, after the mobile phone completes the second screenshot, if the user performs the screenshot operation again (recorded as the third screenshot operation), the default gallery application window of the mobile phone is the application window that does not need to be retained during the third screenshot. That is, by default, the screenshot generated by the third screenshot does not display the window content of the gallery application.
  • the phone completes the second screenshot, return to the third interface.
  • the arrangement of the application windows in the third interface is the same as that in the fourth interface. If the user moves the position of part of the application window, it does not affect the locked state of the application window.
  • the user swaps the chat window of the WeChat application with the window of the gallery application.
  • the mobile phone detects the screenshot operation again (that is, the third screenshot operation), as shown in Figure 4D, the mobile phone displays an interface 406.
  • the browser application window, the gallery application window, and the WeChat application chat window are all By default, the application windows need to be kept when the third screenshot is taken, and they are all locked.
  • the mobile phone In response to the user clicking on the merge control, the mobile phone generates a screenshot of the third screenshot, which is picture 407.
  • the mobile phone displays the second interface.
  • the user can select the locked application window through the lock control on the second interface.
  • the mobile phone for example, a screen capture application
  • the mobile phone maintains a list of applications or application windows that are in a locked state.
  • the phone After the phone completes this screenshot, it returns to the first interface.
  • the user continues to operate on the first interface to obtain the third interface.
  • the mobile phone After the mobile phone detects that the user performs a screenshot operation again on the third interface, the mobile phone takes a screenshot of the entire interface of the third interface on the one hand, and obtains the identification, coordinates, location and other information of each application in the third interface.
  • the mobile phone reads the stored list of applications or application windows that are in a locked state.
  • an application window is included in the list, but the application window is not displayed in the third interface, it means that the user has exited the application. Then the mobile phone can update the list, delete the identification of the application window, or set the application window to the unlocked state. Of course, in other embodiments, when the locked application window exits, the mobile phone immediately updates the list, deletes the identifier of the exited application window, or sets the exited application window to non Locked state.
  • an application window is displayed on the third interface, but the application window is not included in the list, it means that the application may be a newly opened application by the user or an unlocked application.
  • the user can also switch the lock state of the application window by operating the lock control on the third interface.
  • the mobile phone updates the list in time according to the user's operation, so that the next screen capture can be called.
  • users may often take screenshots of some application windows, such as SMS application, WeChat window, video application window, and browser application window.
  • Users can also configure the applications that frequently take screenshots, that is, configure the applications that frequently take screenshots into the locked state.
  • the mobile phone can set the application windows that the user frequently screenshots contained in the current screen as the windows that need to be retained by default. In this way, it is beneficial to improve screen capture efficiency and enhance user experience.
  • the unlocking of the application that frequently takes screenshots is set by the user.
  • the user can select the application that frequently takes screenshots and set it to the locked state through the system settings or the settings of the screenshot application. In the future, the user can only switch the locked state to the unlocked state through the system settings or the settings of the screenshot application.
  • the user can select the locking method in different scenarios by performing different screenshot operations. For example: when the user presses the lock screen button and volume button, the phone defaults to the lock method in the first scenario, and sets the application window to be reserved by default. When the user clicks the screenshot control under the notification bar, the phone defaults to the lock method in the second scenario, setting the application window that is selected by default.
  • the screen capture application or function in the mobile phone can call the window management service of the application framework layer to obtain the identification of the application window (or the identification of the application) displayed on the current screen ), such as the identification of APP1, the identification of APP2 and the identification of APP3.
  • the mobile phone can draw the controls associated with the current application windows on the first interface or on the new interface, for example: the first control associated with APP1, the second control associated with APP2, and the third control associated with APP3 Control.
  • the user can select or deselect the application window corresponding to each control by operating these controls.
  • the selection operation refers to selecting the application window that needs to be retained in the final screenshot. Deselection refers to selecting application windows that do not need to be retained in the final screenshot.
  • the control corresponding to each application window of the user determine the application window that needs to be retained in the final screenshot.
  • the application window selected by the user is APP1 and APP2, or the application window selected by the user is APP3.
  • the mobile phone can determine that the application windows of APP1 and APP2 need to be displayed in the final screenshot, instead of the application window of APP3.
  • the mobile phone can obtain the information of the corresponding application window (for example: the size, coordinates and other information of the application window of APP1) from the WMS according to the identification of the selected application window or the identification of the application (such as the identification of APP1 and APP2). And the size and coordinates of the application window of APP2).
  • the mobile phone can also obtain the top-level view (Decor View) cache of each application in each application according to the identifier of the selected application window, that is, obtain the interface content of each application window (for example: the interface content of APP1 and APP2) ). For example: Get the cache of the top-level view from APP1 to get the content displayed in the window of APP1.
  • the interface content of each application window is drawn finally Screenshot of.
  • the obtained screenshots of each application window retain the size and position of each application window in the original interface.
  • the final screenshot includes the content of multiple application windows that are selected to be retained.
  • the size of the final screenshot is the same as the size of the first interface, and the positions and sizes of the multiple application windows in the final screenshot are the same as the positions and sizes of the multiple application windows in the first interface. That is, the obtained information such as the size and coordinates of each application window is used to present the interface content of each application window.
  • the size of the final screenshot is the same as the size of the first interface.
  • the position and size of the multiple application windows in the final screenshot can also be different from the position and size of the multiple application windows in the first interface. The difference.
  • the interface content of each application window is presented after appropriate adjustments are made according to the acquired information such as the size and coordinates of each application window.
  • the size of the obtained APP1 is scaled according to a certain ratio, as the actual size of the APP1 window in the final screenshot.
  • the window size of APP1 in the final screenshot is different from the size of APP1 in the first interface.
  • the position of the window of APP1 in the screenshot is different from the position of the window of APP1 in the first interface; the size of the window of APP1 in the screenshot is different from the size of the window of APP1 in the first interface.
  • the size of the final screenshot can also be different from the size of the first interface, so the relative position of each application window in the final screenshot can be the same as the relative position of each application window in the first interface, or different.
  • the final screenshot is multiple pictures, each of which contains at least one application window selected by the user to be retained. Still taking the windows of APP1, APP2 and APP3 displayed in the first interface, and the user chooses to keep APP1 and APP2 in the final screenshot, the final screenshot includes two pictures, one picture shows the window content of APP1, and the other A picture shows the contents of the APP2 window.
  • the size of the final screenshot is the same as the size of the first interface, then the mobile phone can draw separately according to the size, coordinates and other information of the application window retained by each selection and the interface content of each application window to obtain multiple The picture is the final screenshot.
  • the position and size of each application window in the final screenshot are the same as the position and size of each application window in the first interface. For example: draw according to the previously obtained information such as the size and location of APP1, and the window content of APP1, to obtain a screenshot of the window content of APP1. Similarly, you can get a screenshot of the window content including APP2.
  • the position and/or size of the application window may also be adjusted.
  • the mobile phone can draw the final screenshot according to the size of each application window selected to be retained and the interface content of each application window. That is, each application window can be defaulted to be in a specific position (for example, the center position) of the last screenshot.
  • the size of each application window in the last screenshot is the same as the size of each application window in the first interface; but the position of each application window in the final screenshot is different from the position of each application window in the first interface .
  • the mobile phone can draw the final screenshot according to the interface content of each selected application window. That is, it is possible to default each application window to a specific position of the last screenshot and a preset size.
  • the size and position of each application window in the final screenshot are different from the size and position of each application window in the first interface.
  • the size of the final screenshot may also be different from the size of the first interface.
  • the above-mentioned terminal and the like include hardware structures and/or software modules corresponding to each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the embodiments of the present invention.
  • the embodiment of the present application may divide the above-mentioned terminal and the like into functional modules according to the above method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiment of the present invention is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • the functional units in the various embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • a computer readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Abstract

一种截屏方法及电子设备,涉及通信技术领域,可以实现对屏幕中特定区域的快速截屏,提升用户体验,该方法具体包括:终端显示包括N个区域的第一界面;接收用户的第一操作;响应于第一操作,终端显示第二界面,第二界面包括与N个区域一一对应的N个控件,N个控件中的每一个用于选择或去选择对应的区域的内容;终端接收用户的第二操作,第二操作为对N个控件的操作;响应于第二操作,终端确定N个区域中被选中的区域;终端接收用户的第三操作;响应于第三操作,终端生成第一图片,第一图片包含N个区域中被选中的区域的内容;或终端生成M张图片,述M张图片中的每一张包含N个区域中被选中的X个区域之一的内容。

Description

一种截屏方法及电子设备
本申请要求在2019年5月7日提交中国国家知识产权局、申请号为201910377187.X的中国专利申请的优先权,发明名称为“一种截屏方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种截屏方法及电子设备。
背景技术
截屏功能是手机的一项常用功能。现有的截屏方法是将手机当前屏幕显示的整个界面截取下来,并保存为图片。然而,随着手机功能的日益强大,越来越多的手机能够实现双屏,甚至是多屏显示,即屏幕在一个界面中显示多个应用程序的界面。在这种情况下,截取手机屏幕中显示的一部分界面的需求变得频繁。若仍采用现有的截屏方法,则在截整个界面后,还需要采用手机自带的编辑工具或第三方修图软件对截取的图片进行编辑,操作较为繁琐,用户体验不佳。
发明内容
本申请提供的一种截屏方法及电子设备,实现对屏幕中特定区域的快速截屏,提升用户体验。
第一方面、本申请提供的方法,包括:
终端显示第一界面,第一界面包括N个区域;N为大于或等于2的整数;终端接收用户的第一操作;响应于第一操作,终端显示第二界面,第二界面包括N个控件;N个控件与N个区域一一对应,N个控件中的每一个用于选择或去选择对应的区域的内容;终端接收用户的第二操作,第二操作为对N个控件的操作;响应于第二操作,终端确定N个区域中被选中的区域;终端接收用户的第三操作;响应于第三操作,终端生成第一图片,第一图片包含N个区域中被选中的区域的内容;或终端生成M张图片,M张图片中的每一张包含N个区域中被选中的X个区域之一的内容。
由此可见,本申请实施例提供了的截屏方法中,手机可以自动识别出屏幕中的多个应用窗口的显示区域,并可以根据用户的选择,自动截取用户选择需要的应用程序窗口的内容,能够实现快速截取界面中特定区域的截图,满足用户个性化需求,提升用户体验。
一种可能的实现方式中,N个区域中的每一个区域显示一个应用程序的窗口或部分主屏幕界面。
一种可能的实现方式中,N个区域中被选中的区域在第一图片中的大小和/或位置,与N个区域中被选中的区域在第一界面中的大小和/或位置相同;或者,N个区域中被选中的区域在第一图片中的大小和位置,与N个区域中被选中的区域在第一界面中的大小和位置均不同。
一种可能的实现方式中,在终端生成第一图片,或终端生成M张图片之前,且在终端接收用户的第一操作之后,方法还包括:终端对第一界面进行截屏,得到第二图片。
终端生成第一图片,或终端生成M张图片,包括:终端根据第二图片生成第一图片,或终端根据第二图片生成M张图片。
由此,本申请实施例提供了一种获取用户选中应用窗口内容的方法。
一种可能的实现方式中,方法还包括:终端获取N个区域中被选中的区域在第一界面中 的大小和/位置。
终端根据第二图片生成第一图片,或终端根据第二图片生成M张图片,包括:终端根据N个区域中被选中的区域在第一界面中的大小和/位置,以及第二图片生成第一图片,或终端根据N个区域中被选中的区域在第一界面中的大小和/位置,以及第二图片生成M张图片。
一种可能的实现方式中,终端根据第二图片生成第一图片,包括:终端将第二图片中N个区域中未被选中的区域的内容裁掉,得到第一图片;或者,终端将第二图片中N个区域中未被选中的区域的内容修改为预设图案,得到第一图片。
一些实施例中,各个被选中的应用窗口在第一图片中的大小和/或位置,与各个选中的应用窗口在第一界面中的大小和位置相同。另一些实施例中,终端还可以将保留的各个被选中的应用窗口进行调整,例如调整大小,或者调整位置。那么,各个被选中的应用窗口在第一图片中的位置和/或大小与在第一界面中不同,可以使得第一图片更加美观和紧凑,满足用户多样化需求。
一种可能的实现方式中,终端根据第二图片生成第一图片,还包括:终端从第二图片中分别裁剪出N个区域中被选中的区域的内容,并将裁剪出的各个区域的内容进行合成得到第一图片。
一些实施例中,裁剪出的各个被选中的区域的内容,直接进行合成得到第一图片,那么,各个被选中的应用窗口在第一图片中的大小和/或位置,与各个选中的应用窗口在第一界面中的大小和位置相同。另一些实施例中,手机可以对剪裁出的各个选择的应用窗口进行调整,例如调整大小,或者调整位置。那么,各个被选中的应用窗口在第一图片中的位置和/或大小与在第一界面中不同,可以使得第一图片更加美观和紧凑,满足用户多样化需求。
一种可能的实现方式中,终端生成第一图片,或终端生成M张图片之前,方法还包括:终端获取N个区域中被选中的区域所对应的应用程序的顶层视图的缓存。
终端生成第一图片,或终端生成M张图片,包括:终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成第一图片,或终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成M张图片。
其中,各个应用程序的顶层视图的缓存即为当前屏幕中各个应用程序显示的内容。这样,本申请实施例提供了另一种获取被选中的应用窗口的内容的方法。
一种可能的实现方式中,方法还包括:终端获取N个区域中被选中的区域在第一界面中的大小和/位置信息。
终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成第一图片,或终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成M张图片,包括:终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存,以及N个区域中被选中的区域在第一界面中的大小和/位置信息生成第一图片,或终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存,以及N个区域中被选中的区域在第一界面中的大小和/位置信息生成M张图片。
一些实施例中,终端根据获取的被选中的应用窗口在第一界面中的大小和位置,来显示获取到的各个应用窗口的内容。那么,各个被选中的应用窗口在第一图片中的大小和/或位置,与各个选中的应用窗口在第一界面中的大小和位置相同。另一些实施例中,手机可以各个选中的应用窗口进行调整,例如调整大小,或者调整位置。那么,各个被选中的应用窗口在第一图片中的位置和/或大小与在第一界面中不同,可以使得第一图片更加美观和紧凑,满足用户多样化需求。
一种可能的实现方式中,第二界面还包括N个锁定控件,N个锁定控件与N个区域一一对应,锁定控件用于锁定或解锁对应的区域的内容;在终端接收用户的第三操作之前,方法还包括:终端接收用户的第四操作,第四操作为对N个锁定控件的操作;响应于第四操作,终端确定N个区域中被锁定的区域。
在响应于第三操作,终端生成第一图片之后,方法还包括:
终端显示第一界面;终端接收用户的第五操作;响应于第五操作,终端显示第三界面,第三界面中N个区域中被锁定区域默认为被选中的区域。
第二方面、一种终端,包括:处理器、存储器和触摸屏,存储器、触摸屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,以使得终端执行如下操作:
显示第一界面,第一界面包括N个区域;N为大于或等于2的整数;接收用户的第一操作;响应于第一操作,显示第二界面,第二界面包括N个控件;N个控件与N个区域一一对应,N个控件中的每一个用于选择或去选择对应的区域的内容;接收用户的第二操作,第二操作为对N个控件的操作;响应于第二操作,确定N个区域中被选中的区域;接收用户的第三操作;响应于第三操作,生成第一图片,第一图片包含N个区域中被选中的区域的内容;或生成M张图片,M张图片中的每一张包含N个区域中被选中的X个区域之一的内容。
一种可能的实现方式中,N个区域中的每一个区域显示一个应用程序的窗口或部分主屏幕界面。
一种可能的实现方式中,N个区域中被选中的区域在第一图片中的大小和/或位置,与N个区域中被选中的区域在第一界面中的大小和/或位置相同;或者,N个区域中被选中的区域在第一图片中的大小和位置,与N个区域中被选中的区域在第一界面中的大小和位置均不同。
一种可能的实现方式中,在终端生成第一图片,或终端生成M张图片之前,且在终端接收用户的第一操作之后,终端还执行如下操作:对第一界面进行截屏,得到第二图片。
终端生成第一图片,或终端生成M张图片,包括:终端根据第二图片生成第一图片,或终端根据第二图片生成M张图片。
一种可能的实现方式中,终端还执行如下操作:获取N个区域中被选中的区域在第一界面中的大小和/位置。
终端根据第二图片生成第一图片,或终端根据第二图片生成M张图片,包括:终端根据N个区域中被选中的区域在第一界面中的大小和/位置,以及第二图片生成第一图片,或终端根据N个区域中被选中的区域在第一界面中的大小和/位置,以及第二图片生成M张图片。
一种可能的实现方式中,终端根据第二图片生成第一图片,包括:终端将第二图片中N个区域中未被选中的区域的内容裁掉,得到第一图片;或者,终端将第二图片中N个区域中未被选中的区域的内容修改为预设图案,得到第一图片。
一种可能的实现方式中,终端根据第二图片生成第一图片,还包括:终端从第二图片中分别裁剪出N个区域中被选中的区域的内容,并将裁剪出的各个区域的内容进行合成得到第一图片。
一种可能的实现方式中,终端生成第一图片,或终端生成M张图片之前,终端还执行如下操作:获取N个区域中被选中的区域所对应的应用程序的顶层视图的缓存。
生成第一图片,或终端生成M张图片,包括:根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成第一图片,或根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成M张图片。
一种可能的实现方式中,终端还执行如下操作:获取N个区域中被选中的区域在第一界面中的大小和/位置信息。
终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成第一图片,或终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成M张图片,包括:
终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存,以及N个区域中被选中的区域在第一界面中的大小和/位置信息生成第一图片,或终端根据N个区域中被选中的区域所对应的应用程序的顶层视图的缓存,以及N个区域中被选中的区域在第一界面中的大小和/位置信息生成M张图片。
一种可能的实现方式中,第二界面还包括N个锁定控件,N个锁定控件与N个区域一一对应,锁定控件用于锁定或解锁对应的区域的内容;在终端接收用户的第三操作之前,终端还执行如下操作:接收用户的第四操作,第四操作为对N个锁定控件的操作;响应于第四操作,确定N个区域中被锁定的区域。
在响应于第三操作,终端生成第一图片之后,终端还执行如下操作:显示第一界面;接收用户的第五操作;响应于第五操作,显示第三界面,第三界面中N个区域中被锁定区域默认为被选中的区域。
第三方面、一种计算机存储介质,包括计算机指令,当计算机指令在终端上运行时,使得终端执行如第一方面及其中任一种可能的实现方式中所述的方法。
第四方面、一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面中及其中任一种可能的实现方式中所述的方法。
附图说明
图1为本申请实施例提供的一种电子设备的结构示意图一;
图2为本申请实施例提供的一种电子设备的结构示意图二;
图3A为本申请实施例提供的一些手机的用户界面示意图;
图3B为本申请实施例提供的又一些手机的用户界面示意图;
图3C为本申请实施例提供的又一些手机的用户界面示意图;
图3D为本申请实施例提供的又一些手机的用户界面示意图;
图3E为本申请实施例提供的又一些手机的用户界面示意图;
图3F为本申请实施例提供的又一些手机的用户界面示意图;
图3G为本申请实施例提供的又一些手机的用户界面示意图;
图3H为本申请实施例提供的又一些手机的用户界面示意图;
图4A为本申请实施例提供的又一些手机的用户界面示意图;
图4B为本申请实施例提供的又一些手机的用户界面示意图;
图4C为本申请实施例提供的又一些手机的用户界面示意图;
图4D为本申请实施例提供的又一些手机的用户界面示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
示例性的,本申请中的电子设备可以为手机、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、车载设备、智能汽车、智能音响、机器人等,本申请对该电子设备的具体形式不做特殊限制。
图1示出了电子设备100的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface, MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块 141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统 (quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部 存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁 等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不 同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
在本申请的一些实施例中,应用程序包还可以包括截屏应用,例如SystemUI,可用于绘制截屏预览图,具体包括:绘制截取当前整个屏幕的截图,即第一截图,以及对第一截图进行裁剪、合成、修改等,以生成包含有当前屏幕中一部分应用窗口的第二截图等。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
在本申请的一些实施例中,窗口管理器可具体为窗口管理服务(WindowManagerService,WMS),该WMS存放有当前屏幕中显示的各个应用窗口的信息,例如各个应用窗口的坐标、大小等信息。
当应用程序层的应用程序开始运行时,会将启动的应用窗口的大小和位置等信息告知WMS。并且,后续当应用窗口的大小和位置发生变化时,也会将变化的数据及时刷新到WMS中。因此,可以从WMS获取当前屏幕中显示的各个应用窗口的信息。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合截屏场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为下拉通知栏的截屏控件为例,截屏应用调用应用框架层的接口,截取当前整个屏幕的像素点的像素值,并绘制整个屏幕的截图,进而通过调用内核层启动显示驱动,通过显示屏194显示相应的界面。
以下实施例中所涉及的技术方案均可以在具有上述硬件架构和软件架构的电子设备100中实现。以下,以电子设备为手机进行举例说明。
图3A至图3H示出了一些手机的界面示意图,以下结合附图对本申请实施例提供的对界面中部分应用窗口进行截屏的方法进行详细说明。
随着手机屏幕的增大,尤其是折叠屏手机的出现,用户可以使用手机开启多个应用程序,在屏幕的一个显示界面(即第一界面)中对多个应用程序进行操作。如图3A所示,界面300为第一界面的一个示例,界面300中显示有多个应用程序的窗口。例如:浏览器应用的窗口301、微信应用的聊天窗口302、视频应用的窗口303、文档应用的窗口304以及照片应用的 窗口305。
响应于检测到截屏操作,手机可以截取整个屏幕的截图(即第一界面的截屏图片,简称第一截图)。同时,手机获取当前屏幕(即第一界面)中各个应用窗口的信息,例如:各个应用的标识、各个应用窗口的大小和坐标等信息。这样,手机可以确定出各个应用窗口在屏幕中的显示区域,也即,确定出各个应用窗口在整个屏幕的截图(即第一截图)中的位置。
在一个具体的实现方式中,响应于检测到截屏操作,手机中的截屏应用或功能可以调用SurfaceControl.screenshot截取整个屏幕的截图,即第一截图。同时,截屏应用或功能调用应用程序框架层的窗口管理服务,获取各个应用窗口的大小、坐标等信息。截屏应用或功能将第一截图和各个应用窗口的显示区域建立关联,例如:在第一截图上绘制与各个应用窗口相关联的控件。后续,截屏应用根据用户对控件的操作,确定在第一截图中保留或去掉某些应用窗口,并生成最终的截图,即第二截图。而后,将第二截图保存在图库应用中。
当然,手机也可以在检测到截屏操作后,通过调用WMS获取当前屏幕中显示的各个应用窗口的信息,建立与当前屏幕中显示的各个应用窗口一一对应的控件。而后,由用户通过这些控件选择需要保留在最终截图中的应用窗口。手机再确定需要保留的应用窗口在第一截图中的位置,从第一截图中获取需要保留的应用窗口的内容。在这种情况下,手机可以在从检测到截屏操作到确定需要保留的应用窗口在第一截图中的位置之间任一时刻截取第一界面的截图(即第一截图)。即,本申请实施例对截取第一界面的截图的时间不做限定。
其中,上述的截屏操作例如可以是用户按压物理按键的操作(例如:同时按住开机键和音量键)、用户执行预定义的手势(例如:在屏幕上三指下滑、指关节敲击屏幕)、用户在屏幕上操作相应按钮(点击通知栏中的截屏控件)等。本申请实施例对截屏操作不做具体限定。
其中,在确定各个应用窗口在屏幕中的显示区域时,可以用各个应用窗口的四个顶点坐标来表示在屏幕中的显示区域,也可以一个顶点坐标和应用窗口的大小来表示,还可以采用其他方式表示各个应用窗口在屏幕中的显示区域,本申请对此不做具体限定。
举例说明,手机屏幕正向放置时,坐标系例如是以屏幕左上角顶点(例如O点)为原点;以平行于屏幕上边缘,由手机左侧边缘指向右侧边缘的方向为X轴的正方向;以平行于屏幕左侧边缘,由手机上边缘指向下边缘的方向为Y轴的正方向。该坐标系的单位可以是像素单位,也可以是物理单位(例如:mm),还可以是其他单位,本申请实施例对此不做具体限定。
应用窗口在屏幕中的显示区域可以用四个顶点的坐标来表示。例如:浏览器应用的窗口可以用左上角的顶点(A点)的坐标、右上角的顶点(B点)的坐标,左下角的顶点(C点)的坐标以及右下角的顶点(D点)的坐标表示。其他应用窗口的显示区域的表示方式类似,不再赘述。或者,应用窗口在屏幕中的显示区域还可以用一个顶点和窗口大小来表示。例如:浏览器应用的窗口可以用左上角的顶点(A点)的坐标,以及窗口的大小(例如:M*N)。其他应用窗口的显示区域的表示方式类似,不再赘述。
需要说明的是,坐标系的原点也可以是屏幕上其他任意一点,例如:屏幕中心,X轴和Y轴的方向也可以是其他方向,本申请实施例对坐标系不做限定。
在确定了各个应用窗口在屏幕中的显示区域后,也可以在整个屏幕的截图(即第一截图)中确定各个应用窗口的显示区域。而后,将各个应用窗口的显示区域关联相应的控件。这样,用户可以通过操作这些控件,对各个应用窗口的显示区域进行相应的选择。例如:选择在第一截图中保留某个应用窗口的显示区域,或者,选择在第一截图中去掉某个应用窗口的显示区域等。即,在本申请中,手机可以根据用户的选择,在整个屏幕的截图中保留用户想要显示的应用窗口的内容,或者去掉用户不想显示的应用窗口的内容。也即,本申请实现对整个 屏幕中的特定区域的快速截屏。
在一些实施例中,在截取整个屏幕的截图(即第一截图)后,可以在屏幕上显示该第一截图(即第二界面),并在第二界面上显示有关联各个应用窗口的一些控件,例如选择控件、删除控件等。其中,选择控件可用于选择应用窗口,即选择需要保留在最终截图中的应用窗口。删除控件可用于去选择应用窗口,即选择不需要保留在最终截图中的应用窗口。这样,用户可以直接操作各个应用窗口对应的控件,来选择最后截图中保留的应用窗口的内容,或者,选择最后截图中需要删除的应用窗口的内容。可选的,手机在显示第二界面时,可以将第一截图进行适当比例的缩小,以便用户可以区分第一界面和第二界面。可选的,在手机截取第一截图时,手机也可以播放例如拍照声等提示音,提示用户已经对第一界面进行截屏。
其中,与各个应用窗口关联的控件可以显示在各个应用窗口的显示区域上,也可以显示在各个应用窗口的显示区域的周围。或者,也可以列表形式显示在其他区域,本申请实施例对控件的显示方式和位置等均不做限定。
例如:如图3A所示,界面306为第二界面的一个示例。界面306中显示有缩小后的第一截图307。在缩小后的第一截图307中,各个应用窗口的显示区域也进行了适当的缩小。并且,在界面306上还显示有各个应用窗口对应的控件。一些示例中,手机在截取第一界面的截图后,也可以默认第一界面中的各个应用程序均未被选中,即默认为用户在最终的截图中不保留任何应用窗口的内容。而后,用户可以通过点击选择控件来选择想要保留某些应用窗口的内容。又一些示例中,手机在截取第一界面的截图后,可以默认第一界面中的各个应用程序均被选中,即默认为用户在最终的截图中想要保留第一界面中的各个应用窗口的内容。而后,用户可以通过点击删除控件来选择去掉某些应用程序的窗口。
举例来说,文档应用对应的显示区域上显示有删除控件308。当手机检测到用户点击删除控件308,手机将文档应用的窗口所在显示区域显示为能够区分于其他应用窗口的颜色,例如灰色。或者,采用其他能够区分其他应用窗口的方式显示文档应用的窗口。这表示用户选择在最终的截图中去掉该应用窗口的内容,即最终的截图中不显示该应用窗口的内容。
可选的,界面306上还可以显示一些其他控件,例如:合并控件311、分离控件310、反选控件312、编辑控件313等。其中,合并控件311用于指示将选中的多个应用程序的窗口的内容显示在一个截图(即一张图片)上,在一个实施例中,该多个应用程序的窗口在该一张截图上不重叠。即,合并控件311用于实现将选中的多个应用程序的窗口内容合并显示的功能,以下简称合并功能。分离控件310用于指示将选中的多个应用程序的窗口内容显示在多个截图(即多张图片)上,例如:每个截图中仅显示一个应用程序的窗口内容。即,分离控件310用于实现将选中的多个应用程序的窗口内容分开显示的功能,以下简称分离功能。反选控件312用于快速的将当前截图中选中的应用程序切换为未选中状态,将未选中的应用程序切换为选择状态。编辑控件313用于指示将当前的截图切换到编辑状态,可对当前截图进行例如剪裁、涂鸦、马赛克、转发等操作。
如图3B所示,界面314为手机检测到用户点击删除控件308后显示的界面。可见,删除控件308对应的文档应用的窗口与其他应用的窗口显示方式不同,图中以阴影的方式进行区分。可选的,被选择删除的应用窗口还可以关联添加控件,例如:添加控件315,以便用户通过该添加控件将该应用窗口添加回来,即,在最终的截图中显示该应用窗口的内容。
可选的,在选择了要显示的应用窗口(或者选择了不要显示的应用窗口)后,还可以选择将选中的应用窗口合并显示在一张截图上,还是将选中的应用窗口分别显示在多张截图上。即,选择合并功能或分离功能。
首先,介绍合并功能。
在第二界面上,若检测到用户点击合并控件311,则手机根据用户当前的选择,生成最终的截图(即第二截图),该第二截图中显示有用户当前选择要显示的多个应用窗口的内容。第二截图与第一截图的大小相同,第二截图中各个应用程序窗口的大小也与第一截屏中相应的应用程序窗口的大小相同。
例如:第二界面为界面314时,界面314中,用户选择删除文档应用的窗口后,响应于检测到用户点击合并控件311,手机生成第二截图。该第二截图中包括有浏览器应用的窗口、微信的聊天窗口、视频应用的播放窗口、以及图库应用的窗口。如图3B所示,图片316为手机生成的第二截图的一个示例。在该截图中未显示有用户选择去掉的应用窗口(即文档应用的窗口)的内容。在一个具体的实现方式中,可以对第一截图中,用户选择去掉的应用窗口(例如文档应用的窗口)的显示区域的像素值进行修改,使得该显示区域显示为黑色、或灰色、或白色、或马赛克等特定图案。本申请实施例中对此不做具体限定。
需要说明的是,在第二截图中显示多个应用窗口的内容时,可以保留各个应用窗口原来的位置,即各个应用窗口的显示区域不变。也即,第二截图的大小与第一界面的大小相同,各个应用窗口在第二截图中的位置,与各个应用窗口在第一界面中的位置相同。在另一个具体的实现方式中,手机可以自动根据用户的选择,将第一截图中用户未选择要保留的应用窗口(或者用户选择要删除的应用窗口)从第一截图中裁剪掉,即得到第二截图。即,第二截图的大小小于第一界面的大小。但各个应用程序之间在第二截图中的相对位置,与各个应用程序之间在第一界面中的相对位置相同。
可选的,手机也可以自动对某些应用窗口的位置进行调整,使得第二截图上各个应用窗口的布局更加紧凑与美观,方便后续对第二截图进行其他处理,例如:裁剪、压缩等。用户还可以通过例如拖动等方式手动对某些应用窗口的位置进行移动。本申请实施例对调整应用窗口的位置的方法不做具体限定。在一个具体的实现方式中,手机可以自动根据用户的选择,将用户选择要保留的各个应用窗口分别裁剪下来,然后根据屏幕的大小,对裁剪下来的各个应用窗口的位置进行重排,合成第二截图。即,各个应用窗口在第二截图中的大小,与各个应用窗口在第一界面中的大小相同,但各个应用窗口在第二截图中的位置,与各个应用窗口在第一界面中的位置不同。可选的,手机也可以根据屏幕的大小,对裁剪下来的各个应用窗口的位置以及大小进行重排,合成第二截图。即,各个应用窗口在第二截图中的大小和位置,与各个应用窗口在第一界面中的大小和位置均不同。
例如:如图3C所示,用户在界面317上选择要保留的应用窗口有浏览器应用的窗口,以及视频应用的播放窗口。那么,在检测到用户点击合并控件后,手机生成包含有多个应用窗口的内容的第二截图。第二截图例如可以是图片318。即,第二截图上各个应用窗口的位置与第一截图上相应的应用窗口的大小和位置均相同。第二截图例如也可以是图片319。即,第二截图上各个应用窗口大小与第一截图上相应的应用窗口的大小相同,但部分应用窗口的位置与第一截图中相应的应用窗口的位置可以不同,即对某些应用窗口的位置进行了调整。例如:将原来不相连的应用窗口,集中在一起显示,使得第二截图中各个应用窗口布局更加紧凑。可选的,手机也可以自动将第二截图中未显示有应用窗口的区域裁剪掉。即,第二截图的图片大小小于第一截图。第二截图例如还可以是图3D所示的图片332,即对某些应用窗口的位置和大小均进行调整。比如,将视频应用的窗口的长和宽按照一定比例进行放大,使得第二截图中各个应用窗口的排列更加紧凑和美观。
又例如:如图3E所示,用户在界面320上选择要保留的应用窗口有浏览器应用的窗口, 微信的聊天窗口以及视频应用的播放窗口。那么,在检测到用户点击合并控件后,手机生成包含有多个应用窗口的内容的第二截图。第二截图例如可以是图片321。图片321上,各个应用窗口保留各自在第一截图上的位置。第二截图例如也可以是图片322。图片322上,对某些应用窗口的位置进行了调整,使得第二截图上的布局更加紧凑。有利于后续对第二截图进行其他处理,比如剪裁、压缩等处理。可选的,手机也可以自动将第二截图中未显示有应用窗口的区域裁剪掉。即,第二截图的图片大小小于第一截图。
再来,介绍分离功能。
在第二界面上,若检测到用户点击分离控件310,则手机根据用户当前的选择,生成多个第二截图,其中每个第二截图中仅显示用户选择的一个应用窗口的内容。可选的,每个第二截图的大小均小于第一截图的大小。
例如:如图3F所示,界面323为一个第二界面的一个示例。用户选择需要在第二截图中显示的应用窗口有浏览器应用的窗口、以及微信应用的聊天窗口。响应于检测到用户点击分离控件310,手机自动生成两张第二截图,例如图片324和图片325。其中,图片324显示浏览器应用的窗口,且图片324的大小与浏览器应用的窗口大小一致。图片325显示微信应用的聊天窗口,且图片325的大小与微信应用的聊天窗口大小一致。
在另一些实施例中,分离功能还可以和滚屏功能结合使用。例如:第二界面中还可以显示关联各个应用程序的滚屏控件。即,可实现对选中滚屏功能的应用窗口进行滚动截屏,得到该应用窗口的完整界面的截图。
例如:如图3G所示,界面326为第二界面的一个示例。该界面326上,用户选择要显示的应用窗口有浏览器应用的窗口和微信的聊天窗口。用户在点击了网易新闻应用的窗口关联的滚屏控件309,以及分离控件310后,手机生成两张第二截图,分别为图片327和图片328。可见,图片327显示了网易新闻应用当前窗口的完整界面。图片328显示了微信应用的当前聊天窗口的界面。
其中,手机在生成图片327时,可以自动对选中滚屏功能的应用窗口进行滚屏操作,并在执行滚屏操作的过程中,截取该窗口整个界面的截图。
分离功能中其他内容可参考合并功能中的相关内容的描述,这里不再赘述。
可以理解的是,手机可以在用户触发截屏操作时,可默认选择合并功能或分离功能中任一种方法生成第二截图,也可以同时采用合并功能和分离功能生成第二截图,本申请实施例对此不做限定。
可选的,若手机在预设时间段内一直未检测到用户点击合并控件311或者分离控件310,则自动根据用户选择中应用程序,默认采用合并功能或分离功能生成第二截图。可选的,若手机检测到用户连续触发截屏操作时,也可以默认采用合并功能或分离功能生成第二截图。本申请实施例对此不做限定。
可选的,还可以是检测到用户执行不同的截屏操作,手机默认选择不同的方法生成第二截图。例如:用户按压锁屏键和音量加键时,手机默认采用合并功能的方法生成第二截图。用户按压锁屏键和音量减键时,手机默认采用分离功能的方法生成第二截图。又例如:用户按键锁屏键和音量按键时,手机默认采用合并功能的方法生成第二截图。用户通过点击通知栏下的截屏控件时,手机默认采用分离功能的方法生成第二截图。
此外,手机在生成第二截图时,还可以显示提示信息,例如正在保存照片。
一些示例中,手机生成第二截图后,自动将第二截图保存在图库应用中,手机自动回到截屏前的界面,即显示第一界面。另一些示例中,手机在生成第二截图后,自动将第二截图 保存在图库应用中,并在显示的第一界面中显示第二截图的缩略图。若用户点击第二截图的缩略图时,手机显示第二截图的编辑界面,即可以对第二截图进行例如:剪裁、涂鸦、转发等操作。可选的,在对第二截图进行编辑后,手机回到第一界面。若用户点击第一界面中非第二截图的缩略图时,第二截图的缩略图消失,即手机显示第一界面。本申请实施例对此不做具体限定。
由此可见,本申请实施例提供了的截屏方法中,手机可以自动识别出屏幕中的多个应用窗口的显示区域,并可以根据用户的选择,自动截取用户选择需要的应用程序窗口的内容,能够实现快速截取界面中特定区域的截图,满足用户个性化需求,提升用户体验。
以上实施例是以手机屏幕铺满了应用窗口,即第一界面由多个应用窗口组成为例进行说明的。在另一些实施例中,手机屏幕可能没有被应用窗口铺满,即第一界面中除应用窗口外,还可以显示部分桌面、状态栏、停靠栏(dock)等。在这种情况下,屏幕中非应用窗口的显示区域可以作为一个或多个独立的显示区域。用户也可以选择在最终的截图中是否保留这一个或多个独立显示区域。也就是说,该一个或多个独立的显示区域也可以关联一个或多个控件,例如:删除控件、添加控件等。
例如:如图3H所示,界面329为第一界面的另一个示例。在该界面329上,显示有多个应用程序的窗口和一部分桌面330。在检测到用户执行截屏操作时,手机对当前的屏幕进行截屏,并获取当前屏幕中各个应用程序的信息,确定出各个应用程序的显示区域。手机还可以根据获取的各个应用程序的显示区域的信息,确定出第一界面中部分桌面所在的显示区域。而后,手机可以显示第二界面,即,界面329。该界面329上各个应用窗口的显示区域都关联有删除控件,并且显示桌面的区域也关联有删除控件331。即,用户也可以通过操作删除控件331,选择是否在第二截图中保留该部分桌面的内容。
上文详细介绍了对多个应用窗口的界面进行一次截屏的过程。考虑到这样的场景,用户在进行一次截屏后,可能需要对该界面上某些应用窗口的内容进行一些操作,然后再次对这些应用窗口进行截屏。于是,本申请实施例还提供了一种可以在截屏过程中对下次仍需要截屏的应用窗口进行锁定的操作。那么,用户再次截屏时,可以默认选择已锁定的应用窗口。
图4A至图4D为手机的又一些界面示意图,以下结合附图对本申请实施例提供的锁定方案进行详细说明。
用户在第一界面上,执行截屏操作(为了便于说明,将本次截屏操作记为第一次截屏操作),手机显示第二界面。在第二界面上,还显示有与各个应用窗口关联的锁定控件,用户可以通过该锁定控件选择在下一次截屏需要保留的应用窗口。即,下次截屏时,默认锁定的应用窗口的内容为要保留在最终的截图中,默认未锁定的应用窗口的内容为不需要保留在最终的截图中。
一些实施例中,手机可以默认本次截屏时要保留的应用窗口为锁定状态,默认本次截屏时不需保留的应用窗口为非锁定状态,也可称为解锁状态。而后,用户可以通过操作锁定控件来切换应用窗口的锁定状态和解锁状态。
例如:如图4A所示,界面400为第二界面的一个示例。在界面400中,在各个应用窗口的显示区域还显示有相应的锁定控件。用户可以通过各个应用窗口关联的锁定控件选择需要锁定的应用窗口。例如:浏览器应用的窗口、微信应用的聊天窗口以及图库应用的窗口为锁定状态,视频应用的窗口和文档应用的窗口为解锁状态。响应于用户点击合并控件,手机生成本次的截屏图片,例如:图片402。图片402中显示有浏览器应用的窗口、微信应用的聊天窗口图库应用的窗口、以及视频应用的窗口。为了便于将本次截屏与后续的截屏进行区 分,将本次截屏记为第一次截屏。
完成第一次截屏后,手机回到第一界面。用户在第一界面上继续操作,例如:通过浏览器应用上查看了其他新闻,微信应用的聊天窗口有新的信息,得到第三界面。当检测到用户在第三界面上执行截屏操作(记为第二次截屏操作),手机截取第三界面的截图。将第三界面的截图适当缩小后进行显示,即显示第四界面。
例如:如图4B所示,界面403为第四界面的一个示例。界面403上默认上次截屏(即第一次截屏)时锁定的应用窗口为本次截屏(即第二次截屏)需要保留的应用窗口,默认上次截屏时未锁定的应用窗口为本次截屏不需要保留的应用窗口。即,浏览器应用的窗口,微信应用的聊天窗口,以及图片应用的窗口默认为第二次截屏需要保留的应用窗口。当然,用户也可以通过删除控件去掉不再想保留的应用窗口,或者,通过添加控件恢复想保留的应用窗口。这里以用户未对默认保留的应用窗口进行修改为例,进行说明。响应于用户在第三界面点击合并控件,手机生成新的截图,例如:图片404。图片404中显示有浏览器应用的窗口内容,微信应用的聊天窗口的内容,以及图库应用的窗口的内容。可选的,手机也可以自动将未显示有应用窗口内容的区域裁剪掉,有利于减少截图的大小。
用户还可以通过操作个应用窗口关联的锁定控件,来切换某个应用窗口的锁定状态和锁定状态。或者,用户还可以通过退出某个已锁定的应用窗口,来将该应用窗口由锁定状态切换到非锁定状态。本申请对此不做限定。
例如:仍然以界面403为第四界面为例进行说明。如图4C所示,界面403中显示图库应用的窗口为锁定状态。响应于用户点击锁定控件401,手机将图库应用的窗口切换为解锁状态,如界面405所示。也就是说,当手机完成第二次截屏后,若再次检测用户执行截屏操作(记为第三次截屏操作)时,手机默认图库应用的窗口为第三次截屏时不需要保留的应用窗口,即默认第三次截屏生成的截图中不显示图库应用的窗口内容。
需要说明的是,在锁定应用窗口后,应用窗口的位置发生变化时,并不影响锁定状态。
例如:仍然以界面403为第四界面为例进行说明。在手机完成第二次截屏时,回到第三界面。第三界面中的应用窗口的排列与第四界面中的排列相同。若用户将部分应用窗口的位置进行移动,并不影响应用窗口被锁定状态。比如,在第三界面上,用户将微信应用的聊天窗口与图库应用的窗口进行调换。手机再次检测截屏操作(即第三次截屏操作)时,如图4D所示,手机显示界面406,在该界面406上,浏览器应用的窗口、图库应用的窗口、以及微信应用的聊天窗口均为默认在第三次截屏时需要保留的应用窗口,且均为锁定状态。响应于用户点击合并控件,手机生成第三次截屏的截图,即图片407。
以下,对锁定部分应用窗口的内部实现进行示例性说明。
检测到用户在第一界面上执行截屏操作,手机显示第二界面。用户可以在第二界面上通过锁定控件选择锁定的应用窗口。此时,手机(例如可以是截屏应用)记录下处于锁定状态的应用窗口的标识(或是应用程序的标识,例如应用程序的包名等)。也就是说,手机中维护有处于锁定状态的应用程序或应用程序的窗口的列表。
而后,手机完成本次截屏后,回到第一界面。用户继续在第一界面上进行操作,得到第三界面。手机检测到用户在第三界面上再次执行截屏操作后,手机一方面截取第三界面的整个界面的截图,并获取第三界面中各个应用程序的标识、坐标、位置等信息。另一方面,手机读取存储的处于锁定状态的应用程序或应用程序的窗口的列表。
而后,将列表中包含的应用程序窗口与本次获取的各个应用程序的窗口(即第三界面中显示的各个应用程序窗口)进行比对,将两者中重合的应用程序窗口设置为默认需要在最终 截图中保留的应用窗口。
若列表中包含的某个应用程序窗口,但第三界面中没有显示该应用窗口,表示用户已退出该应用程序。则手机可以更新该列表,删除该应用程序窗口的标识,或者,将给应用程序窗口设置为非锁定状态。当然,在另一些实施例中,也可以在处于锁定状态的应用窗口退出时,手机就即时更新该列表,删除已退出的应用程序窗口的标识,或者,将已退出的应用程序窗口设置为非锁定状态。
若第三界面中显示有某个应用窗口,但列表中没有包含的该应用程序窗口,表示该应用程序可能是用户新打开的应用程序,或者是未锁定的应用程序。
而后,用户还可以通过在第三界面上操作锁定控件对应用窗口的锁定状态进行切换,手机根据用户的操作,及时更新列表,以便下次截屏调用。
再有,考虑另一些场景中,用户可能会经常对某些应用的窗口进行截屏,例如短信应用、微信的窗口、视频应用的窗口、浏览器应用的窗口等。用户也可以对经常截屏的应用进行配置,即将经常截屏的应用配置为锁定状态。这样,用户在执行截屏操作时,手机可以将当前屏幕中包含的用户经常截屏的应用窗口默认设置为需要保留的窗口。这样,有利于提高截屏效率,提升用户体验。在该场景下,经常截屏的应用的锁定状态的解除,由用户进行设置。
在一个具体的实现方式中,用户可以通过系统设置或者截屏应用的设置,选择经常截屏的应用设置为锁定状态。后续,用户也只能通过系统设置或截屏应用的设置,将设置的锁定状态切换为解锁状态。
可以理解的是,用户可以通过执行不同的截屏操作,选择不同场景下的锁定方法。例如:用户按键锁屏键和音量按键时,手机默认采用第一种场景下的锁定方法,设置默认选择保留的应用窗口。用户通过点击通知栏下的截屏控件时,手机默认采用第二种场景下的锁定方法,设置默认选择保留的应用窗口。
前述实施例都是在检测到用户的截屏操作后,先截取整个屏幕的截图(例如:第一截图),然后根据用户对应用窗口的操作,从整个屏幕的截图中选择保留或删除一个或多个应用窗口,得到最后的截图(例如:第二截图)。在另一些实施例中,也可以不用截取整个屏幕的截图,可以直接根据用户对应用窗口的操作,确定出用户需要保留或删除的应用窗口,直接获取需要保留的一个或多个应用窗口的截图,得到最后的截图。
示例的,响应于检测到用户在第一界面上截屏操作,手机中的截屏应用或功能可以调用应用程序框架层的窗口管理服务,获取当前屏幕中显示的应用窗口的标识(或应用程序的标识),例如APP1的标识、APP2的标识和APP3的标识。而后,手机可以在第一界面上或者在新的界面上绘制与当前各个应用窗口关联的控件,例如:与APP1关联的第一控件,与APP2关联的第二控件,以及与APP3关联的第三控件。用户可以通过操作这些控件对各个控件对应的应用窗口进行选择或去选择的操作。其中,选择操作,是指选择在最终的截图中需要保留的应用窗口。去选择,是指选择在最终的截图中不需要保留的应用窗口。
根据用户的各个应用窗口对应的控件的操作,确定需要在最终的截图中保留的应用窗口。例如:用户选择的应用窗口有APP1和APP2,或者,用户去选择的应用窗口为APP3。那么,手机可以确定在最终的截图中需要显示APP1和APP2的应用窗口,不用显示APP3的应用窗口。
而后,手机可以根据选择的应用窗口的标识,或应用程序的标识(如:APP1和APP2的标识)从WMS中获取相应的应用窗口的信息(例如:APP1的应用窗口的大小、坐标等信息、以及APP2的应用窗口的大小、坐标等信息)。此外,手机还可以根据选择的应用窗口的标识 分别获取各个应用中获取各个应用的顶层视图(Decor View)的缓存(cache),即获取各个应用窗口的界面内容(例如:APP1和APP2的界面内容)。例如:从APP1中获取顶层视图的缓存,即得到APP1的窗口中显示的内容。从APP2中获取顶层视图的缓存,即得到APP2的窗口中显示的内容。可以注意到的是,在一实施例中,可以不用获取用户去选择的应用窗口的界面内容,例如:不用获取APP3的窗口中的显示内容。
再根据获取到的各个应用窗口的大小、坐标等信息(该各个应用窗口的大小、坐标等信息用于表征在第一界面中各个应用窗口的大小以及位置),各个应用窗口的界面内容绘制最终的截图。一些示例中,得到的各个应用窗口的截图是保留了原界面中各个应用窗口的大小和位置。
若用户选择合并功能,则最终的截图中包括有选择保留的多个应用窗口的内容。一些示例中,最终的截图的大小与第一界面的大小相同,这多个应用窗口在最终的截图中的位置和大小,与这多个应用窗口在第一界面中的位置和大小均相同。即,采用获取到的各个应用窗口的大小、坐标等信息呈现各个应用窗口的界面内容。另一些示例中,最终的截图的大小与第一界面的大小相同,这多个应用窗口在最终截图中的位置和大小,也可以与这多个应用窗口在第一界面中的位置和大小有所不同。即,根据获取到的各个应用窗口的大小、坐标等信息,进行适当的调整后,呈现各个应用窗口的界面内容。例如:将获取到的APP1的大小按照一定比例进行缩放,作为APP1窗口在最终截图中的实际大小。此时,最终截图中APP1的窗口的大小与第一界面中APP1的大小不同。又例如:将获取到的APP1的坐标进行修改,如APP1应用窗口的左上角的顶点A点变换为A ,APP1的大小保持不变。那么,APP1的窗口在该截图中的位置,与APP1的窗口在第一界面中的位置不同;APP1的窗口在该截图中的大小,与APP1的窗口在第一界面中的大小不同。另一些示例中,最后的截图的大小也可以和第一界面的大小不同,那么各个应用窗口在最后的截图中的相对位置,与各个应用窗口在第一界面中的相对位置可以相同,也可以不同。
需要说明的是,各个应用窗口在最终截图中的大小和位置,与各个应用窗口在第一界面中的大小和位置之间的关系可以参考前述实施例中的描述,这里不再赘述。
若用户选择的分离功能,则最终的截图为多张图片,其中每一张图片中包含有至少一个用户选择的需要保留的应用窗口的内容。仍然以第一界面中显示有APP1、APP2和APP3的窗口,且用户选择在最终截图中保留APP1、APP2为例,则最终的截图包括两张图片,一张图片显示有APP1的窗口内容,另一张图片显示有APP2的窗口内容。在一些示例中,最终截图的大小与第一界面的大小相同,则手机可以根据每个选择保留的应用窗口的大小、坐标等信息,以及每个应用窗口的界面内容进行分别绘制,得到多张图片,即为最后的截图。这样,各个应用窗口在最后截图中的位置和大小,与各个应用窗口在第一界面中的位置和大小相同。例如:根据前面获取到的APP1的大小、位置等信息,以及APP1的窗口内容进行绘制,得到一张包括APP1的窗口内容的截图。类似的,可以得到一张包括APP2的窗口内容的截图。在又一些示例中,考虑在最终截图中只包括有一个应用窗口,也可以对该应用窗口的位置和/或大小进行调整。比如,手机可以根据每个选择保留的应用窗口的大小,以及每个应用窗口的界面内容进行分别绘制,得到最后的截图。即,可以默认各个应用窗口在最后截图的特定位置(例如:居中位置)。此时,各个应用窗口在最后的截图中的大小,与各个应用窗口在第一界面中的大小相同;但各个应用窗口在最后的截图的位置,与各个应用窗口在第一界面中的位置不同。又比如,手机可以根据每个选择保留的应用窗口的界面内容进行分别绘制,得到最后的截图。即,可以默认各个应用窗口在最后截图的特定位置,以及预设大小。 此时,各个应用窗口在最后的截图中的大小和位置,与各个应用窗口在第一界面中的大小和位置均不同。在另一些示例中,最后的截图的大小也可以和第一界面的大小不同。
需要说明的是,各个应用窗口在最终截图中的大小和位置,与各个应用窗口在第一界面中的大小和位置之间的关系可以参考前述实施例中的描述,这里不再赘述。
在该实施例中,其他内容可参考前述实施例的相关内容的描述,不再赘述。
需要说明的是,上述各个实施例在方案不矛盾的前提下,均可以进行任意组合。
可以理解的是,上述终端等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
本申请实施例可以根据上述方法示例对上述终端等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (22)

  1. 一种截屏方法,其特征在于,包括:
    终端显示第一界面,所述第一界面包括N个区域;N为大于或等于2的整数;
    所述终端接收用户的第一操作;
    响应于所述第一操作,所述终端显示第二界面,所述第二界面包括N个控件;所述N个控件与所述N个区域一一对应,所述N个控件中的每一个用于选择或去选择对应的区域的内容;
    所述终端接收所述用户的第二操作,所述第二操作为对所述N个控件的操作;
    响应于所述第二操作,所述终端确定所述N个区域中被选中的区域;
    所述终端接收所述用户的第三操作;
    响应于所述第三操作,所述终端生成第一图片,所述第一图片包含所述N个区域中被选中的区域的内容;或所述终端生成M张图片,所述M张图片中的每一张包含所述N个区域中被选中的X个区域之一的内容。
  2. 根据权利要求1所述的方法,其特征在于,所述N个区域中的每一个区域显示一个应用程序的窗口或部分主屏幕界面。
  3. 根据权利要求1或2所述的方法,其特征在于,
    所述N个区域中被选中的区域在所述第一图片中的大小和/或位置,与所述N个区域中被选中的区域在所述第一界面中的大小和/或位置相同;
    或者,所述N个区域中被选中的区域在所述第一图片中的大小和位置,与所述N个区域中被选中的区域在所述第一界面中的大小和位置均不同。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述终端生成第一图片,或所述终端生成M张图片之前,且在所述终端接收用户的第一操作之后,所述方法还包括:
    所述终端对所述第一界面进行截屏,得到第二图片;
    所述终端生成第一图片,或所述终端生成M张图片,包括:
    所述终端根据所述第二图片生成所述第一图片,或所述终端根据所述第二图片生成所述M张图片。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    所述终端获取所述N个区域中被选中的区域在所述第一界面中的大小和/位置;
    所述终端根据所述第二图片生成所述第一图片,或所述终端根据所述第二图片生成所述M张图片,包括:
    所述终端根据所述N个区域中被选中的区域在所述第一界面中的大小和/位置,以及所述第二图片生成所述第一图片,或所述终端根据所述N个区域中被选中的区域在所述第一界面中的大小和/位置,以及所述第二图片生成所述M张图片。
  6. 根据权利要求4或5所述的方法,其特征在于,所述终端根据所述第二图片生成所述第一图片,包括:
    所述终端将所述第二图片中所述N个区域中未被选中的区域的内容裁掉,得到所述第一图片;
    或者,所述终端将所述第二图片中所述N个区域中未被选中的区域的内容修改为预设图案,得到所述第一图片。
  7. 根据权利要求4或5所述的方法,其特征在于,所述终端根据所述第二图片生成第一图片,还包括:
    所述终端从所述第二图片中分别裁剪出所述N个区域中被选中的区域的内容,并将裁剪出的各个区域的内容进行合成得到所述第一图片。
  8. 根据权利要求2或3所述的方法,其特征在于,所述终端生成第一图片,或所述终端生成M张图片之前,所述方法还包括:
    所述终端获取所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存;
    所述终端生成第一图片,或所述终端生成M张图片,包括:
    所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成第一图片,或所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成M张图片。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    所述终端获取所述N个区域中被选中的区域在所述第一界面中的大小和/位置信息;
    所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成第一图片,或所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成M张图片,包括:
    所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存,以及所述N个区域中被选中的区域在所述第一界面中的大小和/位置信息生成第一图片,或所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存,以及所述N个区域中被选中的区域在所述第一界面中的大小和/位置信息生成M张图片。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述第二界面还包括N个锁定控件,所述N个锁定控件与所述N个区域一一对应,所述锁定控件用于锁定或解锁对应的区域的内容;
    在所述终端接收所述用户的第三操作之前,所述方法还包括:
    所述终端接收所述用户的第四操作,所述第四操作为对所述N个锁定控件的操作;
    响应于所述第四操作,所述终端确定所述N个区域中被锁定的区域;
    在响应于所述第三操作,所述终端生成第一图片之后,所述方法还包括:
    所述终端显示所述第一界面;
    所述终端接收用户的第五操作;
    响应于所述第五操作,所述终端显示第三界面,所述第三界面中所述N个区域中被锁定区域默认为被选中的区域。
  11. 一种终端,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述终端执行如下操作:
    显示第一界面,所述第一界面包括N个区域;N为大于或等于2的整数;
    接收用户的第一操作;
    响应于所述第一操作,显示第二界面,所述第二界面包括N个控件;所述N个控件与所述N个区域一一对应,所述N个控件中的每一个用于选择或去选择对应的区域的内容;
    接收所述用户的第二操作,所述第二操作为对所述N个控件的操作;
    响应于所述第二操作,确定所述N个区域中被选中的区域;
    接收所述用户的第三操作;
    响应于所述第三操作,生成第一图片,所述第一图片包含所述N个区域中被选中的区域的内容;或生成M张图片,所述M张图片中的每一张包含所述N个区域中被选中的X个区 域之一的内容。
  12. 根据权利要求11所述的终端,其特征在于,所述N个区域中的每一个区域显示一个应用程序的窗口或部分主屏幕界面。
  13. 根据权利要求11或12所述的终端,其特征在于,
    所述N个区域中被选中的区域在所述第一图片中的大小和/或位置,与所述N个区域中被选中的区域在所述第一界面中的大小和/或位置相同;
    或者,所述N个区域中被选中的区域在所述第一图片中的大小和位置,与所述N个区域中被选中的区域在所述第一界面中的大小和位置均不同。
  14. 根据权利要求11-13任一项所述的终端,其特征在于,在所述终端生成第一图片,或所述终端生成M张图片之前,且在所述终端接收用户的第一操作之后,所述终端还执行如下操作:对所述第一界面进行截屏,得到第二图片;
    所述终端生成第一图片,或所述终端生成M张图片,包括:
    所述终端根据所述第二图片生成所述第一图片,或所述终端根据所述第二图片生成所述M张图片。
  15. 根据权利要求14所述的终端,其特征在于,
    所述终端还执行如下操作:获取所述N个区域中被选中的区域在所述第一界面中的大小和/位置;
    所述终端根据所述第二图片生成所述第一图片,或所述终端根据所述第二图片生成所述M张图片,包括:
    所述终端根据所述N个区域中被选中的区域在所述第一界面中的大小和/位置,以及所述第二图片生成所述第一图片,或所述终端根据所述N个区域中被选中的区域在所述第一界面中的大小和/位置,以及所述第二图片生成所述M张图片。
  16. 根据权利要求14或15所述的终端,其特征在于,所述终端根据所述第二图片生成所述第一图片,包括:
    所述终端将所述第二图片中所述N个区域中未被选中的区域的内容裁掉,得到所述第一图片;
    或者,所述终端将所述第二图片中所述N个区域中未被选中的区域的内容修改为预设图案,得到所述第一图片。
  17. 根据权利要求14或15所述的终端,其特征在于,所述终端根据所述第二图片生成第一图片,还包括:
    所述终端从所述第二图片中分别裁剪出所述N个区域中被选中的区域的内容,并将裁剪出的各个区域的内容进行合成得到所述第一图片。
  18. 根据权利要求12或13所述的终端,其特征在于,所述终端生成第一图片,或所述终端生成M张图片之前,所述终端还执行如下操作:
    获取所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存;
    生成第一图片,或所述终端生成M张图片,包括:
    根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成第一图片,或根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成M张图片。
  19. 根据权利要求18所述的终端,其特征在于,
    所述终端还执行如下操作:获取所述N个区域中被选中的区域在所述第一界面中的大小和/位置信息;
    所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成第一图片,或所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存生成M张图片,包括:
    所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存,以及所述N个区域中被选中的区域在所述第一界面中的大小和/位置信息生成第一图片,或所述终端根据所述N个区域中被选中的区域所对应的应用程序的顶层视图的缓存,以及所述N个区域中被选中的区域在所述第一界面中的大小和/位置信息生成M张图片。
  20. 根据权利要求11-19任一项所述的终端,其特征在于,所述第二界面还包括N个锁定控件,所述N个锁定控件与所述N个区域一一对应,所述锁定控件用于锁定或解锁对应的区域的内容;
    在所述终端接收所述用户的第三操作之前,所述终端还执行如下操作:
    接收所述用户的第四操作,所述第四操作为对所述N个锁定控件的操作;
    响应于所述第四操作,确定所述N个区域中被锁定的区域;
    在响应于所述第三操作,所述终端生成第一图片之后,所述终端还执行如下操作:
    显示所述第一界面;
    接收用户的第五操作;
    响应于所述第五操作,显示第三界面,所述第三界面中所述N个区域中被锁定区域默认为被选中的区域。
  21. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在终端上运行时,使得所述终端执行如权利要求1-10中任一项所述截屏方法。
  22. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-10中任一项所述截屏方法。
PCT/CN2020/087442 2019-05-07 2020-04-28 一种截屏方法及电子设备 WO2020224485A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US17/609,109 US11669242B2 (en) 2019-05-07 2020-04-28 Screenshot method and electronic device
JP2021566055A JP7326476B2 (ja) 2019-05-07 2020-04-28 スクリーンショット方法及び電子装置
EP20801546.1A EP3944063A4 (en) 2019-05-07 2020-04-28 SCREEN CAPTURE AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910377187.X 2019-05-07
CN201910377187.XA CN110231905B (zh) 2019-05-07 2019-05-07 一种截屏方法及电子设备

Publications (1)

Publication Number Publication Date
WO2020224485A1 true WO2020224485A1 (zh) 2020-11-12

Family

ID=67861142

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/087442 WO2020224485A1 (zh) 2019-05-07 2020-04-28 一种截屏方法及电子设备

Country Status (5)

Country Link
US (1) US11669242B2 (zh)
EP (1) EP3944063A4 (zh)
JP (1) JP7326476B2 (zh)
CN (1) CN110231905B (zh)
WO (1) WO2020224485A1 (zh)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231905B (zh) 2019-05-07 2021-02-09 华为技术有限公司 一种截屏方法及电子设备
CN110727495B (zh) * 2019-10-18 2022-12-23 深圳市比量科技传媒有限公司 一种界面元素的自动分段截图方法及系统
CN110908750B (zh) * 2019-10-28 2021-10-26 维沃移动通信有限公司 一种截屏方法及电子设备
CN110865745A (zh) * 2019-10-28 2020-03-06 维沃移动通信有限公司 一种截屏方法及终端设备
CN112882777A (zh) * 2019-11-30 2021-06-01 华为技术有限公司 一种分屏显示方法及电子设备
CN111383175A (zh) * 2020-03-02 2020-07-07 维沃移动通信有限公司 图片获取方法及电子设备
CN111400132B (zh) * 2020-03-09 2023-08-18 北京版信通技术有限公司 上架app的自动监测方法及系统
CN113448658A (zh) * 2020-03-24 2021-09-28 华为技术有限公司 截屏处理的方法、图形用户接口及终端
CN111538454A (zh) * 2020-04-20 2020-08-14 广东以诺通讯有限公司 一种智能终端局部截屏方法、装置及终端
CN111552422A (zh) * 2020-04-20 2020-08-18 广东以诺通讯有限公司 一种智能终端截屏局部模糊方法、装置及终端
CN111641750B (zh) * 2020-05-19 2022-05-24 Oppo广东移动通信有限公司 截屏方法、终端及非易失性计算机可读存储介质
CN111638839A (zh) * 2020-05-20 2020-09-08 维沃移动通信有限公司 截屏方法、装置和电子设备
CN111984173B (zh) * 2020-07-17 2022-03-25 维沃移动通信有限公司 表情包生成方法和装置
KR20220017065A (ko) * 2020-08-04 2022-02-11 삼성전자주식회사 캡쳐 기능 제공 방법 및 그 전자 장치
CN112764857A (zh) * 2021-01-21 2021-05-07 维沃移动通信有限公司 信息处理方法、装置及电子设备
CN115048009A (zh) * 2021-02-26 2022-09-13 京东方科技集团股份有限公司 对话界面截取方法及装置、计算机设备及存储介质
CN113296661B (zh) * 2021-03-18 2023-10-27 维沃移动通信有限公司 图像处理方法、装置、电子设备及可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911850A (zh) * 2017-02-27 2017-06-30 努比亚技术有限公司 移动终端及其截屏方法
CN106940621A (zh) * 2016-01-05 2017-07-11 腾讯科技(深圳)有限公司 图片处理的方法和装置
US20170277403A1 (en) * 2014-09-04 2017-09-28 Huawei Technologies Co., Ltd. Screen Capturing Method and Apparatus
CN107301013A (zh) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 终端截屏方法及装置
CN110231905A (zh) * 2019-05-07 2019-09-13 华为技术有限公司 一种截屏方法及电子设备

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5795777A (en) * 1980-12-05 1982-06-14 Fuji Photo Film Co Ltd Video recorder
JPH03165569A (ja) * 1989-11-24 1991-07-17 Nippon Sheet Glass Co Ltd 画像伝送素子及びその製造方法
TW412732B (en) * 1998-01-16 2000-11-21 Hitachi Ltd Video apparatus with zoom-in magnifying functionand zoom location displaying method
US7624304B2 (en) * 2004-10-07 2009-11-24 Microsoft Corporation Defect detection for integers
US20090150868A1 (en) * 2007-12-10 2009-06-11 Al Chakra Method and System for Capturing Movie Shots at the Time of an Automated Graphical User Interface Test Failure
EP2521363B1 (en) * 2009-02-19 2014-05-14 Panasonic Corporation Playback device
US8799865B2 (en) * 2009-08-03 2014-08-05 National Instruments Corporation Integrated data viewer
US10515567B2 (en) * 2010-06-01 2019-12-24 Ternarylogic Llc Cryptographic machines with N-state lab-transformed switching devices
CN102681829B (zh) 2011-03-16 2016-03-30 阿里巴巴集团控股有限公司 一种屏幕截图方法、装置及通讯客户端
US20130054418A1 (en) * 2011-08-26 2013-02-28 Ju-Ting YANG Methods for Telco's Application Store Management
JP2013171365A (ja) * 2012-02-20 2013-09-02 Mitsubishi Electric Corp 表示装置
US9076231B1 (en) * 2014-02-18 2015-07-07 Charles Hill Techniques for displaying content on a display to reduce screenshot quality
CN105843494B (zh) * 2015-01-15 2020-06-09 中兴通讯股份有限公司 一种实现区域屏幕截图的方法、装置和终端
US10722802B2 (en) * 2015-07-24 2020-07-28 Silver Curve Games, Inc. Augmented reality rhythm game
CN106843665B (zh) * 2015-12-04 2021-10-01 北京奇虎科技有限公司 一种截图方法、装置及终端设备
EP3309670B1 (en) * 2015-12-15 2021-09-08 Huawei Technologies Co., Ltd. Method for responding to operation track and operation track response apparatus
CN106126016A (zh) * 2016-06-16 2016-11-16 珠海市魅族科技有限公司 一种截屏方法及装置
US10902012B1 (en) * 2017-11-01 2021-01-26 The Mathworks, Inc. Methods and systems for using datatypes to represent common properties
CN107977144B (zh) * 2017-12-15 2020-05-12 维沃移动通信有限公司 一种截屏处理方法及移动终端
CN108563382A (zh) * 2018-02-26 2018-09-21 挖财网络技术有限公司 基于安卓系统的截屏方法及装置
CN109005446A (zh) * 2018-06-27 2018-12-14 聚好看科技股份有限公司 一种截屏处理方法及装置、电子设备、存储介质
CN109032470B (zh) * 2018-07-11 2021-03-26 Oppo(重庆)智能科技有限公司 截图方法、装置、终端及计算机可读存储介质
CN110222212B (zh) * 2019-04-25 2021-07-20 南京维沃软件技术有限公司 一种显示控制方法及终端设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170277403A1 (en) * 2014-09-04 2017-09-28 Huawei Technologies Co., Ltd. Screen Capturing Method and Apparatus
CN106940621A (zh) * 2016-01-05 2017-07-11 腾讯科技(深圳)有限公司 图片处理的方法和装置
CN106911850A (zh) * 2017-02-27 2017-06-30 努比亚技术有限公司 移动终端及其截屏方法
CN107301013A (zh) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 终端截屏方法及装置
CN110231905A (zh) * 2019-05-07 2019-09-13 华为技术有限公司 一种截屏方法及电子设备

Also Published As

Publication number Publication date
EP3944063A1 (en) 2022-01-26
US20220214802A1 (en) 2022-07-07
JP2022532102A (ja) 2022-07-13
EP3944063A4 (en) 2022-05-11
US11669242B2 (en) 2023-06-06
CN110231905A (zh) 2019-09-13
CN110231905B (zh) 2021-02-09
JP7326476B2 (ja) 2023-08-15

Similar Documents

Publication Publication Date Title
WO2020224485A1 (zh) 一种截屏方法及电子设备
EP3952285B1 (en) Photographing method and terminal
WO2020253719A1 (zh) 一种录屏方法及电子设备
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
US11595566B2 (en) Camera switching method for terminal, and terminal
WO2021017889A1 (zh) 一种应用于电子设备的视频通话的显示方法及相关装置
WO2021036571A1 (zh) 一种桌面的编辑方法及电子设备
WO2020000448A1 (zh) 一种柔性屏幕的显示方法及终端
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021000881A1 (zh) 一种分屏方法及电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2019072178A1 (zh) 一种通知处理方法及电子设备
WO2022001258A1 (zh) 多屏显示方法、装置、终端设备及存储介质
CN113935898A (zh) 图像处理方法、系统、电子设备及计算机可读存储介质
WO2020107463A1 (zh) 一种电子设备的控制方法及电子设备
US20230353862A1 (en) Image capture method, graphic user interface, and electronic device
EP4290346A1 (en) File management method, electronic device, and computer-readable storage medium
WO2021042878A1 (zh) 一种拍摄方法及电子设备
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
WO2021204103A1 (zh) 照片预览方法、电子设备和存储介质
CN115967851A (zh) 快速拍照方法、电子设备及计算机可读存储介质
CN113495733A (zh) 主题包安装方法、装置、电子设备及计算机可读存储介质
CN116301483A (zh) 一种应用卡片的管理方法、电子设备和存储介质
CN117724863A (zh) 一种目标信号处理方法和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20801546

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020801546

Country of ref document: EP

Effective date: 20211019

ENP Entry into the national phase

Ref document number: 2021566055

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE