The embodiment of the invention provides a screen-capturing method and a terminal device, relating to the field of image processing, and solves the problem that when the picture-in-picture mode is opened and there is no signal display in the picture-in-picture window in the prior art, the corresponding area of the picture-in-picture window in the screen image captured by the existing screen-capturing method will be displayed as a hollow pure color block. The problem of the overall image is not beautiful. The method includes: acquiring the capturing instructions, if the terminal device's current user interface contains the picture-in-picture window, obtaining the state information of the signal source in the picture-in-picture window, the terminal device's current user interface corresponding image is the application interface corresponding image in the application window layer and the picture in the floating window layer. The picture-in-picture window is formed by overlapping the corresponding image, and the image corresponding to the application window in the application window layer is obtained by judging the display of the corresponding image without the signal source in the picture-in-picture window according to the state information of the signal source.
【技术实现步骤摘要】
一种截屏方法本申请是2015年07月23日提出的专利技术名称为“一种截屏方法及终端设备”的中国专利技术专利申请201510439431.2的分案申请。
本专利技术涉及图像处理领域,尤其涉及一种截屏方法及终端设备。
技术介绍
随着智能电视的快速发展,目前大部分电视上应用有画中画功能,使得用户可以在使用应用程序的同时打开画中画功能,在小窗口中观看电视节目或多媒体视频。但是,在画中画模式开启状态下,若小窗口中对应的信号源没有信号连接或者信号加密时,此时该画中画窗口内并无画面内容显示,例如,画中画窗口内显示为纯色背景并显示“无信号”文字提示。因此,当终端通过现有的截屏方法对包含有画中画窗口的用户界面进行截屏时,截取出的屏幕图像中画中画窗口对应区域仍然会显示为空洞的纯色色块,使得整体图像不美观。
技术实现思路
本专利技术的实施例提供一种截图方法及终端设备,解决了现有技术中当画中画模式开启且画中画窗口中无信号显示时,通过现有的截屏方法截取的屏幕图像中画中画窗口对应区域会显示为空洞的纯色色块,导致整体图像不美观的问题。为达到上述目的,本专利技术的实施例采用如下技术方案:第一方面,提供一种截屏方法,包括:获取截屏指令,所述截屏指令用于指示截取终端设备当前的用户界面对应图像;若判定出所述终端设备当前的用户界面中包含画中画窗口,则获取所述画中画窗口中信号源的状态信息,所述状态信息用于指示所述画中画窗口中的信号源的输入状态,所述终端设备当前的用户界面对应图像是由应用程序窗口层中的应用程序界面对应图像和浮动窗口层中的画中画窗口对应图像叠加形成的;若根据所述信号源的状态信息判定所述画中 ...
【技术保护点】
1.一种截屏方法,其特征在于,包括:终端设备获取截屏指令,所述截屏指令用于指示截取终端设备当前的用户界面对应图像;若所述终端设备当前的用户界面中包含画中画窗口,则获取所述画中画窗口中信号源的状态信息;若画中画窗口中无信号源对应图像显示,该终端设备不截取画中画窗口所在浮动窗口层的图像,只获取应用程序窗口层图像,并将画中画窗口所在的位置对应的图像会被应用程序窗口层对应区域的图像替换,与画中画模式未开启时的图像相同;若该画中画窗口中有画面显示,终端设备同时获取浮动窗口层和应用程序窗口层中的图像,然后将两层图像叠加得到整体图像。
【技术特征摘要】
1.一种截屏方法,其特征在于,包括:终端设备获取截屏指令,所述截屏指令用于指示截取终端设备当前的用户界面对应图像;若所述终端设备当前的用户界面中包含画中画窗口,则获取所述画中画窗口中信号源的状态信息;若画中画窗口中无信号源对应图像显示,该终端设备不截取画中画窗口...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。