WO2016095342A1 - 一种移动终端屏幕截图方法及装置、存储介质 - Google Patents

一种移动终端屏幕截图方法及装置、存储介质 Download PDF

Info

Publication number
WO2016095342A1
WO2016095342A1 PCT/CN2015/073724 CN2015073724W WO2016095342A1 WO 2016095342 A1 WO2016095342 A1 WO 2016095342A1 CN 2015073724 W CN2015073724 W CN 2015073724W WO 2016095342 A1 WO2016095342 A1 WO 2016095342A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
screenshot
content
mobile terminal
picture
Prior art date
Application number
PCT/CN2015/073724
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 中兴通讯股份有限公司
Publication of WO2016095342A1 publication Critical patent/WO2016095342A1/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/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

Definitions

  • the present invention relates to the field of mobile terminals, and in particular, to a mobile terminal screenshot method, related device, and storage medium.
  • the smart mobile terminal on the market mainly implements a single screen screenshot function, that is, a certain hot key combination or a multi-touch gesture track to realize the screenshot function of the current screen display content.
  • a single screen screenshot function that is, a certain hot key combination or a multi-touch gesture track.
  • the user often needs the content of the screenshot.
  • the current screen is not completely displayed.
  • the user generally needs to perform multiple screen capture actions to complete the screenshot of all the content.
  • the screenshot function of the current terminal cannot conveniently meet the needs of the user, thereby reducing the user experience of the terminal.
  • the embodiment of the present invention provides a mobile terminal screen capture method and device, and a storage medium, which can better solve the problem that the screenshot cannot be completed by a screenshot operation because the current screen does not have a complete display of the content required for the screenshot. Screenshot of the problem.
  • an embodiment of the present invention provides a method for screening a mobile terminal, including:
  • the mobile terminal reads the current display content of the screen and the currently undisplayed content of the screen according to the user's screenshot instruction;
  • the method before the mobile terminal reads the current display content of the screen and the currently undisplayed content of the screen according to the user screenshot instruction, the method further includes:
  • a user screenshot instruction is generated when it is detected that the set physical button or sliding screen pattern is triggered.
  • the currently undisplayed content is a next screen display content used to display after the current display content.
  • the mobile terminal includes a front buffer and a back buffer, and the mobile terminal reads the current display content of the screen from the front/back buffer, and does not currently display the content from the back/front buffer to the screen. Read it.
  • the step of taking a screenshot of the formed picture, and obtaining the screenshot picture includes:
  • an embodiment of the present invention provides a mobile terminal screenshot device, including:
  • the reading module is configured to read the current display content of the screen and the currently undisplayed content of the screen according to the user screenshot instruction;
  • a synthesizing module configured to synthesize the currently displayed content of the read screen and the currently undisplayed content of the screen to form a picture
  • a screenshot module configured to take a screenshot of the formed image to obtain a screenshot image.
  • the method further includes:
  • the triggering module is configured to detect whether a preset physical button or a sliding screen pattern used to activate the screenshot function is triggered, and generate a user screenshot instruction when detecting that the set physical button or the sliding screen pattern is triggered.
  • the currently undisplayed content is a next screen display content used to display after the current display content.
  • the reading module is configured to read the current display content of the screen from the front/back buffer of the mobile terminal, and from the back/front buffer of the mobile terminal to the screen currently not Display the content for reading.
  • the screenshot module is configured to display the image on the screen by zooming the formed image to form a preview interface, and select a screenshot of the user on the preview interface. Crop the area, get the screenshot image and save it.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing the first aspect of the embodiments of the present invention.
  • the mobile terminal screenshot method provided by the example.
  • the embodiment of the present invention obtains the content beyond the current display range of the screen by one screenshot operation, thereby completing the screenshot and improving the user experience of the terminal.
  • FIG. 1 is a schematic block diagram of a screen capture method of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a block diagram of a screen capture device of a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a double buffering technique according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a screenshot method of a mobile terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a screen capture device of a mobile terminal according to an embodiment of the present invention.
  • FIG. 1 is a schematic block diagram of a screen capture method of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 1 , the steps include:
  • Step S101 The mobile terminal reads the current display content of the screen and the currently undisplayed content of the screen according to the user screenshot instruction.
  • a physical button or a sliding screen pattern for starting the screenshot function needs to be preset, and the mobile terminal detects whether the set physical button or the sliding screen pattern is triggered, and when the set physical button is detected or When the sliding screen pattern is triggered, a user screenshot instruction is generated.
  • the mobile terminal includes a front buffer and a back buffer.
  • step S101 the mobile terminal reads the current display content of the screen from the front/back buffer, and reads the content currently not displayed on the screen from the back/front buffer.
  • Step S102 synthesize the currently displayed content of the read screen and the currently undisplayed content of the screen to form a picture.
  • Step S103 Perform a screenshot on the formed picture to obtain a screenshot picture.
  • step S103 by performing zoom processing on the formed picture, the picture is displayed on the screen to form a preview interface; the screen capture area selected by the user on the preview interface is cropped, and the screenshot picture is obtained and saved.
  • the currently undisplayed content is the next screen display content used to display after the current display content. That is to say, the method provided in this embodiment can at least implement a dual screen screenshot, that is, perform a screenshot action to obtain a picture of two screen contents exceeding the current screen display range.
  • FIG. 2 is a block diagram of a screen capture device of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 2, the method includes: a reading module 10, a synthesizing module 20, and a screenshot module 30.
  • the reading module 10 is configured to display content and a screen on the screen according to a user screenshot instruction The content is currently not displayed for reading.
  • the compositing module 20 is configured to synthesize the currently displayed content of the read screen and the currently undisplayed content of the screen to form a picture.
  • the screenshot module 30 is configured to perform a screenshot on the formed image to obtain a screenshot image.
  • the apparatus further includes a triggering module 40 configured to generate a user screenshot instruction based on a user operation.
  • the trigger module detects whether a preset physical button or a sliding screen pattern used to activate the screenshot function is triggered, and generates a user screenshot when detecting that the set physical button or the sliding screen pattern is triggered by the user. instruction.
  • the reading module 10 reads the front-back buffer and the back buffer cache of the mobile terminal at one time, that is, reads the current display content of the screen from the front/back buffer of the mobile terminal, and buffers from the back/front of the mobile terminal.
  • the area reads the content that is not currently displayed on the screen.
  • the composition module 20 parses the read content and generates a picture containing the complete content.
  • the screenshot module 30 displays the picture including the current preview content and the currently unpreviewed content on the screen by performing a scaling process on the generated image to form a preview interface, and performs a screen capture area selected by the user on the preview interface. Crop, get the screenshot image and save it.
  • the synthesized picture may be a bitmap picture composed of pixel points, for example, a 16-color bitmap picture, a 256-color bitmap picture, a 24-bit bitmap picture, and the like. .
  • the currently undisplayed content is the next screen display content used after the current display content, that is, the embodiment provided in FIG. 2 can at least implement a dual screen screenshot.
  • the Framebuffer refers to a continuous physical memory reserved for the Graphic Processing Unit (GPU) in the embedded system.
  • the image data ie, pixel data
  • the LCD reads image data from the Framebuffer through a dedicated bus and displays it on the screen. Further, according to the number of Framebuffers, it can be divided into single buffering technology and double buffering technology.
  • the intelligent terminal system mainly adopts double buffering technology, that is, there are two Framebuffers, including a front buffer (Front Buffer) and a back buffer (Back).
  • Buffer when the liquid crystal display (LCD) displays the content of the Front Buffer, the Central Processing Unit (CPU) writes the pixel data of another picture to be displayed to the Back Buffer. Therefore, for a double buffer device, the pixel data of two pictures is saved in the Framebuffer. In this way, when the screenshot instruction is obtained, the pixel data of the two images in the Framebuffer is read at one time, and a bitmap is generated, thereby implementing the dual screen screenshot function.
  • the pixel data of the two images in the Framebuffer is read at one time, and a bitmap is generated, thereby implementing the dual screen screenshot function.
  • FIG. 3 is a schematic diagram of a double buffering technology according to an embodiment of the present invention. As shown in FIG. 3, in 102, a screen displays a content image 1 in a Front Buffer; and at this time, the CPU will back to the Back Buffer in the background. The data of image 2 is written.
  • the terminal When the interface needs to be refreshed, the terminal enters the 104 state, and the Screen reads and displays the content image 2 in the Back Buffer through the bus. At the same time, the CPU writes the image 3 data to the Front Buffer in the background.
  • the above is the basic principle of the double buffering technology.
  • the double buffering technology improves the efficiency of the screen image refreshing, and simultaneously saves the image data displayed by the current interface and the data of another image to be displayed in the background buffer;
  • FIG. 4 is a flowchart of a method for taking a screenshot of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 4, the steps include:
  • Step S202 The terminal receives the screenshot instruction and starts the screen capture function.
  • the screenshot instruction may be a physical hotkey combination operation preset by the system or the user, for example, pressing a combination key simultaneously: volume+ and volume-, or may be a preset multi-touch gesture track, such as The user performs a sliding screen operation of the preset pattern on the screen.
  • Step S204 Read and parse the frame buffer image data to generate a bitmap.
  • the frame buffer is mapped to the device node file /dev/fb0, and the content of the file can be opened and read by a reading method similar to a normal file.
  • the file includes Front Buffer and Back Buffer content.
  • the read data is parsed, and a bitmap (Bitmap) is generated.
  • the content of the bitmap generated here contains data of two images, and the size of the bitmap is equivalent to two of the screen size of the terminal. Times.
  • Step S206 Display a picture preview interface.
  • the bitmap obtained in step S204 is reduced, and all the contents of the bitmap are completely displayed on the screen of the terminal to form a preview interface; specifically, the ratio of the bitmap reduction may be 40% to 60%, for example, 50%. So that the screen can display the bitmap content completely.
  • Step S208 Crop the picture.
  • the preview interface there is an area selection box that can change the size and position.
  • the shape of the selection box can be a rectangle or a circle; the user can drag the selection frame to change the position of the preview interface; the user can drag Move the border of the selection box to change the size of the selection box.
  • the user can use this selection box to crop the previewed image: the content of the image in the selection box will be preserved, and the content of the image outside the selection box will be discarded; when the size of the selection box fills the entire screen, the preview interface All image content will be retained.
  • the image can be saved and the final screenshot image is generated in the file system of the terminal.
  • the user can perform a save action by clicking a save button in the preview interface, or performing a save action through a preset physical button.
  • the mobile terminal includes: a data acquisition module 32, an image display module 34, and a control module 36, wherein the data acquisition module 32 implements the map. 2
  • the functions of the reading module 10 and the synthesizing module 20 of the embodiment, the image display module 34 and the control module 36 implement the screenshot module 30 of the embodiment of FIG. Features.
  • the data obtaining module 32 is configured to acquire a screenshot instruction, read pixel data of the frame buffer, and generate a bitmap
  • the image display module 34 is configured to display the generated bitmap onto the terminal screen, for example, in the form of a preview interface.
  • the control module 36 is configured to control the final picture interception area and save the picture, that is, control the picture cropping area, and save the content in the picture cropping area as the final picture.
  • the embodiment of the invention utilizes the double buffering technology to realize the function of acquiring two screen image data in a single screen shot action, enhancing the screen capture function of the terminal, and improving the user experience.
  • the reading module, the synthesizing module, the screenshot module, the trigger module and the like in the screenshot device of the mobile terminal can be implemented by a processor in the mobile terminal; of course, it can also be implemented by a specific logic circuit;
  • the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
  • the mobile terminal screenshot method is implemented in the form of a software function module and sold or used as a standalone product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the mobile terminal screenshot method provided in the embodiments of the present invention.
  • the mobile terminal reads the current display content of the screen and the currently undisplayed content of the screen according to the user's screenshot instruction; and synthesizes the current display content of the read screen and the currently undisplayed content of the screen to form a picture. Screenshots of the formed images are taken to obtain screenshot images. Thus, through one screenshot operation, content beyond the current display range of the screen can be obtained, and the user experience of the terminal is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例公开了一种移动终端屏幕截图方法及装置、存储介质,涉及移动终端领域,所述方法包括:移动终端根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取;对所读取的屏幕当前显示内容和屏幕当前未显示内容进行合成,形成一张图片;对所形成的图片进行屏幕截图,得到截图图片。

Description

一种移动终端屏幕截图方法及装置、存储介质 技术领域
本发明涉及移动终端领域,特别涉及一种移动终端屏幕截图方法及相关的装置、存储介质。
背景技术
随着终端技术的不断发展和智能移动终端(例如,智能手机)的普及,智能移动终端上的应用软件也越来越多,应用软件在使用过程中用户经常会需要截图功能。
目前市场上的智能移动终端主要实现了单屏幕截图功能,即通过一定的热键组合或多点触控手势轨迹,实现当前屏幕显示内容的截图功能。但在实际使用中用户往往需要截图的内容当前屏幕并没有完整显示,此时,用户一般需要执行多次截屏动作才能完成所有内容的截图。在这种情况下,当前终端所具备的截图功能就无法方便的满足用户的需求,从而降低了终端的用户体验。
发明内容
本发明实施例为解决上述的问题之一而提供一种移动终端屏幕截图方法及装置、存储介质,能更好地解决由于当前屏幕没有完整显示需要截图的内容而导致的无法通过一次截图操作完成截图的问题。
根据本发明实施例的第一方面,本发明实施例提供了一种移动终端屏幕截图方法,包括:
移动终端根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取;
对所读取的屏幕当前显示内容和屏幕当前未显示内容进行合成,形成一张图片;
对所形成的图片进行屏幕截图,得到截图图片。
在本发明的一种实施例中,在移动终端根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取之前,还包括:
预先设置用来启动屏幕截图功能的物理按键或滑屏图案;
对所设置的物理按键或滑屏图案是否被触发进行检测;
当检测到所设置的物理按键或滑屏图案被触发时,生成用户截图指令。
在本发明的一种实施例中,所述当前未显示内容是用来在当前显示内容之后显示的下一屏显示内容。
在本发明的一种实施例中,移动终端包括前缓冲区和后缓冲区,移动终端从前/后缓冲区对屏幕当前显示内容进行读取,并从后/前缓冲区对屏幕当前未显示内容进行读取。
在本发明的一种实施例中,所述对所形成的图片进行屏幕截图,得到截图图片的步骤包括:
通过对所形成的图片进行缩放处理,将所述图片显示到屏幕上,形成预览界面;
对用户在预览界面上选取的截屏区域进行裁剪,得到截图图片并保存。
根据本发明实施例的第二方面,本发明实施例提供了一种移动终端屏幕截图装置,包括:
读取模块,配置为根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取;
合成模块,配置为对所读取的屏幕当前显示内容和屏幕当前未显示内容进行合成,形成一张图片;
截图模块,配置为对所形成的图片进行屏幕截图,得到截图图片。
在本发明的一种实施例中,还包括:
触发模块,配置为对预先设置的用来启动屏幕截图功能的物理按键或滑屏图案是否被触发进行检测,并当检测到所设置的物理按键或滑屏图案被触发时,生成用户截图指令。
在本发明的一种实施例中,所述当前未显示内容是用来在当前显示内容之后显示的下一屏显示内容。
在本发明的一种实施例中,所述读取模块,配置为从移动终端的前/后缓冲区对屏幕当前显示内容进行读取,并从移动终端的后/前缓冲区对屏幕当前未显示内容进行读取。
在本发明的一种实施例中,所述截图模块,配置为通过对所形成的图片进行缩放处理,将所述图片显示到屏幕上,形成预览界面,并对用户在预览界面上选取的截屏区域进行裁剪,得到截图图片并保存。
根据本发明实施例的第三方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明实施例第一方面实施例提供的移动终端屏幕截图方法。
与现有技术相比较,本发明实施例的有益效果在于:
本发明实施例通过一次截图操作,得到超出屏幕当前显示范围的内容,从而完成截图,提高了终端的用户体验。
附图说明
图1是本发明实施例提供的移动终端屏幕截图方法原理框图;
图2是本发明实施例提供的移动终端屏幕截图装置框图;
图3是本发明实施例涉及的双缓冲技术示意图;
图4是本发明实施例提供的移动终端屏幕截图方法流程图;
图5是本发明实施例提供的移动终端屏幕截图装置结构示意图。
具体实施方式
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。
图1是本发明实施例提供的移动终端屏幕截图方法原理框图,如图1所示,步骤包括:
步骤S101:移动终端根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取。
在步骤S101之前,需要预先设置用来启动屏幕截图功能的物理按键或滑屏图案,移动终端对所设置的物理按键或滑屏图案是否被触发进行检测,并当检测到所设置的物理按键或滑屏图案被触发时,生成用户截图指令。
移动终端包括前缓冲区和后缓冲区,在步骤S101中,移动终端从前/后缓冲区对屏幕当前显示内容进行读取,并从后/前缓冲区对屏幕当前未显示内容进行读取。
步骤S102:对所读取的屏幕当前显示内容和屏幕当前未显示内容进行合成,形成一张图片。
步骤S103:对所形成的图片进行屏幕截图,得到截图图片。
在步骤S103中,通过对所形成的图片进行缩放处理,将所述图片显示到屏幕上,形成预览界面;对用户在预览界面上选取的截屏区域进行裁剪,得到截图图片并保存。
进一步地,上述当前未显示内容是用来在当前显示内容之后显示的下一屏显示内容。也就是说,本实施例所提供的方法至少能够实现双屏截图,即执行一次截图动作,得到超过当前屏幕显示范围的两个屏幕内容的图片。
图2是本发明实施例提供的移动终端屏幕截图装置框图,如图2所示,包括:读取模块10、合成模块20和截图模块30。
读取模块10,配置为根据用户截图指令,对屏幕当前显示内容和屏幕 当前未显示内容进行读取。
合成模块20,配置为对所读取的屏幕当前显示内容和屏幕当前未显示内容进行合成,形成一张图片。
截图模块30,配置为对所形成的图片进行屏幕截图,得到截图图片。
进一步地,该装置还包括触发模块40,配置为根据用户操作生成用户截图指令。
具体地说,触发模块对预先设置的用来启动屏幕截图功能的物理按键或滑屏图案是否被触发进行检测,并当检测到所设置的物理按键或滑屏图案被用户触发时,生成用户截图指令。此时,读取模块10一次性读取移动终端的前后缓冲区和后缓冲区缓存,即从移动终端的前/后缓冲区对屏幕当前显示内容进行读取,从移动终端的后/前缓冲区对屏幕当前未显示内容进行读取。合成模块20对所读取的内容进行解析,并生成包含完整内容的一张图片。最后,截图模块30通过对所生成的图片进行缩放处理,将所述包含当前预览内容和当前未预览内容的图片显示到屏幕上,形成预览界面,并对用户在预览界面上选取的截屏区域进行裁剪,得到截图图片并保存。
其中,图1和图2提供的实施例中,合成得到的图片可以是由像素点构成的位图图片,例如可以是16色位图图片、256色位图图片、24位位图图片等等。
其中,当前未显示内容是用来在当前显示内容之后显示的下一屏显示内容,即图2提供的实施例至少能够实现双屏截图。
以双屏合成一张位图图片实现截图为例,在待截图界面,获取屏幕截图指令,读取帧缓冲区(Framebuffer)内两屏的像素数据,生成位图,实现双屏截图功能。其中,所述Framebuffer是指嵌入式系统中专门为图像处理单元(Graphic Processing Unit,GPU)所保留的一块连续的物理内存,在智能终端中,屏幕显示的图像数据(即像素数据)保存在Framebuffer中, LCD通过专门的总线从Framebuffer读取图像数据,显示到屏幕上。进一步地,根据Framebuffer的数量,可以分为单缓冲技术和双缓冲技术,目前智能终端系统主要采用双缓冲技术,也就是存在两个Framebuffer,包括前缓冲区(Front Buffer)和后缓冲区(Back Buffer),当液晶显示器(Liquid Crystal Display,LCD)显示Front Buffer的内容时,中央处理器(Central Processing Unit,CPU)会向Back Buffer写入待显示的另外一张图片的像素数据。因此,对于双缓冲设备,Framebuffer中共保存了两张图片的像素数据。这样,在获取屏幕截图指令时,一次性读取Framebuffer中两张图片的像素数据,并生成一张位图,从而实现双屏截图功能。
图3是本发明实施例涉及的双缓冲技术示意图,如图3所示,在102中,屏幕(Screen)显示的是Front Buffer中的内容图像1;而此时,CPU会在后台向Back Buffer中写入图像2的数据。
在界面需要刷新时,终端进入104状态,Screen通过总线读取并显示Back Buffer中的内容图像2,同时,CPU会在后台向Front Buffer中写入图像3的数据。
以上即为双缓冲技术的基本原理,双缓冲技术提高了屏幕图像刷新的效率,在后台缓冲区同时保存了当前界面显示的图像数据和待显示的另外一幅图像的数据;
图4是本发明实施例提供的移动终端屏幕截图方法流程图,如图4所示,步骤包括:
步骤S202:终端接收屏幕截图指令,启动屏幕截图功能。
其中,所述的屏幕截图指令可以是系统或用户预设的物理热键组合键操作,比如同时按下组合键:音量+和音量-,也可以是预设的多点触控手势轨迹,比如用户在屏幕中执行预设图案的滑屏操作。
步骤S204:读取并解析帧缓冲区图像数据,生成位图。
以linux内核的移动终端为例,帧缓冲区被映射为设备节点文件/dev/fb0,可以通过类似普通文件的读取方式,打开并读取该文件的内容,具体的,该文件中包含了Front Buffer和Back Buffer的内容。之后,将读取得到的数据进行解析,并生成一个位图(Bitmap),具体的,此处生成的位图的内容包含了两幅图片的数据,位图的尺寸相当于终端屏幕尺寸的两倍。
步骤S206:显示图片预览界面。
将步骤S204得到的位图进行缩小,把位图的所有内容完整的显示在终端屏幕上,形成预览界面;具体的,位图缩小的比例可以在40%至60%,例如可以是50%,以便于屏幕可以完整显示位图内容。
步骤S208:裁剪图片。
在预览界面,存在一个可以改变大小和位置的区域选择框,该选择框的形状可以是矩形或圆形等形状;用户可以拖动选择框非边框位置改变其在预览界面的位置;用户可以拖动选择框的边框,改变选择框的大小。
用户可以使用该选择框对预览的图片进行裁剪:在选择框内的图片内容将会被保留下来,选择框外的图片内容将会被舍弃;当选择框的大小占满整个屏幕时,预览界面的所有图片内容将会被保留。
S210:保存图片。
在用户裁剪完毕后,可以对图片进行保存,在终端的文件系统中生成最终的截图图片。具体的,用户可以通过点击预览界面内的保存按钮执行保存动作,或通过预设的物理按键执行保存动作。
图5是本发明实施例提供的移动终端屏幕截图装置结构示意图,如图5所示,移动终端包括:数据获取模块32、图像显示模块34和控制模块36,其中,数据获取模块32实现了图2实施例的读取模块10和合成模块20的功能,图像显示模块34和控制模块36实现了图2实施例的截图模块30的 功能。
数据获取模块32,配置为获取屏幕截图指令,读取帧缓冲区的像素数据,并生成位图;
图像显示模块34,配置为将生成的位图显示到终端屏幕上,例如以预览界面的形式显示。
控制模块36,配置为控制最终的图片截取区域和保存图片,即控制图片裁剪区域,并将图片裁剪区域内的内容保存为最终图片。
综上所述,本发明实施例具有以下技术效果:
本发明实施例利用双缓冲技术,实现了单次屏幕截图动作获取两屏图像数据的功能,增强了终端截屏功能,提高了用户体验。
本发明实施例提供的移动终端屏幕截图装置中的读取模块、合成模块、截图模块、触发模块等模块都可以通过移动终端中的处理器来实现;当然也可通过具体的逻辑电路实现;在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述的移动终端屏幕截图方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明各实施例中提供的移动终端屏幕截图方法。
尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。
工业实用性
本发明实施例中,移动终端根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取;对所读取的屏幕当前显示内容和屏幕当前未显示内容进行合成,形成一张图片;对所形成的图片进行屏幕截图,得到截图图片,如此,通过一次截图操作,能够得到超出屏幕当前显示范围的内容,提高了终端的用户体验。

Claims (11)

  1. 一种移动终端屏幕截图方法,包括:
    移动终端根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取;
    对所读取的屏幕当前显示内容和屏幕当前未显示内容进行合成,形成一张图片;
    对所形成的图片进行屏幕截图,得到截图图片。
  2. 根据权利要求1所述的方法,其中,在移动终端根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取之前,还包括:
    预先设置用来启动屏幕截图功能的物理按键或滑屏图案;
    对所设置的物理按键或滑屏图案是否被触发进行检测;
    当检测到所设置的物理按键或滑屏图案被触发时,生成用户截图指令。
  3. 根据权利要求1所述的方法,其中,所述当前未显示内容是用来在当前显示内容之后显示的下一屏显示内容。
  4. 根据权利要求1至3任一项所述的方法,其中,移动终端包括前缓冲区和后缓冲区,移动终端从前/后缓冲区对屏幕当前显示内容进行读取,并从后/前缓冲区对屏幕当前未显示内容进行读取。
  5. 根据权利要求1至3任一项所述的方法,其中,所述对所形成的图片进行屏幕截图,得到截图图片的步骤包括:
    通过对所形成的图片进行缩放处理,将所述图片显示到屏幕上,形成预览界面;
    对用户在预览界面上选取的截屏区域进行裁剪,得到截图图片并保存。
  6. 一种移动终端屏幕截图装置,包括:
    读取模块,配置为根据用户截图指令,对屏幕当前显示内容和屏幕当前未显示内容进行读取;
    合成模块,配置为对所读取的屏幕当前显示内容和屏幕当前未显示内容进行合成,形成一张图片;
    截图模块,配置为对所形成的图片进行屏幕截图,得到截图图片。
  7. 根据权利要求6所述的装置,其中,还包括:
    触发模块,配置为对预先设置的用来启动屏幕截图功能的物理按键或滑屏图案是否被触发进行检测,并当检测到所设置的物理按键或滑屏图案被触发时,生成用户截图指令。
  8. 根据权利要求6所述的装置,其中,所述当前未显示内容是用来在当前显示内容之后显示的下一屏显示内容。
  9. 根据权利要求6至8任一项所述的装置,其中,所述读取模块,配置为从移动终端的前/后缓冲区对屏幕当前显示内容进行读取,并从移动终端的后/前缓冲区对屏幕当前未显示内容进行读取。
  10. 根据权利要求6至8任一项所述的装置,其中,所述截图模块,配置为通过对所形成的图片进行缩放处理,将所述图片显示到屏幕上,形成预览界面,并对用户在预览界面上选取的截屏区域进行裁剪,得到截图图片并保存。
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至5任一项所述的移动终端屏幕截图方法。
PCT/CN2015/073724 2014-12-17 2015-03-05 一种移动终端屏幕截图方法及装置、存储介质 WO2016095342A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410786928.7 2014-12-17
CN201410786928.7A CN105786359A (zh) 2014-12-17 2014-12-17 一种移动终端屏幕截图方法及装置

Publications (1)

Publication Number Publication Date
WO2016095342A1 true WO2016095342A1 (zh) 2016-06-23

Family

ID=56125724

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2015/073724 WO2016095342A1 (zh) 2014-12-17 2015-03-05 一种移动终端屏幕截图方法及装置、存储介质
PCT/CN2015/079519 WO2016095429A1 (zh) 2014-12-17 2015-05-21 一种移动终端屏幕截图方法及装置

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079519 WO2016095429A1 (zh) 2014-12-17 2015-05-21 一种移动终端屏幕截图方法及装置

Country Status (2)

Country Link
CN (1) CN105786359A (zh)
WO (2) WO2016095342A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017096924A1 (zh) * 2015-12-09 2017-06-15 惠州Tcl移动通信有限公司 一种基于移动终端的页面连续截图方法、系统及移动终端
CN115079874A (zh) * 2021-03-10 2022-09-20 Oppo广东移动通信有限公司 截图方法、装置、电子设备及存储介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899489A (zh) * 2016-08-02 2017-06-27 阿里巴巴集团控股有限公司 一种信息处理方法及装置
CN107870712B (zh) * 2016-09-23 2021-11-09 北京搜狗科技发展有限公司 一种截图处理方法及装置
US11081088B2 (en) * 2016-11-30 2021-08-03 Huawei Technologies Co., Ltd. Image display method, apparatus, and terminal device
CN107547811B (zh) * 2017-08-11 2019-10-18 中广热点云科技有限公司 实现信号转接处理后截取多视频画面的方法及装置
CN107656678B (zh) * 2017-08-29 2020-12-22 努比亚技术有限公司 长截图实现方法、终端及计算机可读存储介质
CN108762636A (zh) * 2018-05-23 2018-11-06 上海爱优威软件开发有限公司 一种截屏方法及终端
CN108939556B (zh) * 2018-07-27 2021-08-20 珠海金山网络游戏科技有限公司 一种基于游戏平台的截图方法及装置
CN111459590A (zh) * 2020-03-31 2020-07-28 联想(北京)有限公司 一种截图处理方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021872A (zh) * 2007-01-17 2007-08-22 深圳市光芒科技有限公司 一种截取网页内容的方法
US20090249189A1 (en) * 2008-03-28 2009-10-01 International Business Machines Coporation Enhancing Data in a Screenshot
CN103514581A (zh) * 2013-10-23 2014-01-15 小米科技有限责任公司 一种截取屏幕图片的方法、装置和终端设备
CN104238913A (zh) * 2014-09-02 2014-12-24 北京金山安全软件有限公司 截图方法、装置和电子设备
CN104536658A (zh) * 2014-12-12 2015-04-22 天津三星通信技术研究有限公司 在终端中生成截屏图像的设备和方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927178A (zh) * 2014-04-18 2014-07-16 长沙裕邦软件开发有限公司 一种截图方法及截图装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021872A (zh) * 2007-01-17 2007-08-22 深圳市光芒科技有限公司 一种截取网页内容的方法
US20090249189A1 (en) * 2008-03-28 2009-10-01 International Business Machines Coporation Enhancing Data in a Screenshot
CN103514581A (zh) * 2013-10-23 2014-01-15 小米科技有限责任公司 一种截取屏幕图片的方法、装置和终端设备
CN104238913A (zh) * 2014-09-02 2014-12-24 北京金山安全软件有限公司 截图方法、装置和电子设备
CN104536658A (zh) * 2014-12-12 2015-04-22 天津三星通信技术研究有限公司 在终端中生成截屏图像的设备和方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017096924A1 (zh) * 2015-12-09 2017-06-15 惠州Tcl移动通信有限公司 一种基于移动终端的页面连续截图方法、系统及移动终端
CN115079874A (zh) * 2021-03-10 2022-09-20 Oppo广东移动通信有限公司 截图方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
WO2016095429A1 (zh) 2016-06-23
CN105786359A (zh) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2016095342A1 (zh) 一种移动终端屏幕截图方法及装置、存储介质
CN107809504B (zh) 显示信息的方法、装置、终端及存储介质
US10629167B2 (en) Display apparatus and control method thereof
CN109547838B (zh) 视频窗口的处理方法及装置
WO2016124122A1 (zh) 一种手持式电子设备图片缩放及播放内容切换的方法及装置
US10957285B2 (en) Method and system for playing multimedia data
WO2017173781A1 (zh) 视频帧截取方法和装置
CN112165632B (zh) 视频处理方法、装置及设备
WO2016106997A1 (zh) 屏幕截图方法及装置、移动终端
TW201243822A (en) Mirroring graphics content to an external display
WO2018000619A1 (zh) 一种数据展示方法、装置、电子设备与虚拟现实设备
WO2017024964A1 (zh) 一种物品关联图片快速预览的方法以及装置
JP2008523488A (ja) 装置上でデジタルビジュアルコンテンツを閲覧するためのシステム及び方法
US9749494B2 (en) User terminal device for displaying an object image in which a feature part changes based on image metadata and the control method thereof
WO2017202170A1 (zh) 一种图像压缩方法、装置及电子设备
US9478252B2 (en) Smooth playing of video
US20160078034A1 (en) Method and apparatus for displaying media file on terminal by using page
EP4343580A1 (en) Media file processing method and apparatus, device, readable storage medium, and product
WO2014036857A1 (zh) 一种动画播放的方法,装置及设备
CN109302636B (zh) 提供数据对象全景图信息的方法及装置
CN112019891A (zh) 一种多媒体内容的显示方法及装置、终端、存储介质
US20240135501A1 (en) Video generation method and apparatus, device and medium
CN111444909B (zh) 图像数据的采集方法、终端设备及介质
CN107743272B (zh) 截图方法及设备
US20230056599A1 (en) System and method for rendering a design including a dynamic design element

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: 15868859

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15868859

Country of ref document: EP

Kind code of ref document: A1