The invention discloses a long screenshot implementation method, a terminal and a computer-readable storage medium, the method includes determining the view of the first screenshot; after the screen slides, the sliding distance is determined according to the position information of the corresponding interface of the view in the second screenshot; according to the sliding distance, the first screenshot and the second screenshot are spliced to obtain the long screenshot, which solves the existing length The screenshot implementation method relies heavily on the image comparison algorithm and has certain error probability. The invention also discloses a terminal and computer-readable storage medium. By implementing the above scheme, the sliding distance of the interface is determined by the position of the view in the interface, and then the sliding distance is followed to cut and splice the collective to complete the growing screenshot. Compared with the existing technology, it depends on the image calculation The method of regional distance is more rapid and accurate.
【技术实现步骤摘要】
一种长截图实现方法、终端及计算机可读存储介质
本专利技术涉及通信
,更具体地说,涉及一种长截图实现方法、终端及计算机可读存储介质。
技术介绍
众所周知,屏幕长截图主要依靠对图像的分析将不同屏幕中显示的内容最终合成为一张长图的过程,现有终端都有实现对界面的长截图功能,目前实现方式多是将滑动界面之前和之后的两张图片进行对比,比较两张图片来得到滑动的距离,再根据滑动距离将图片裁剪并拼接到之前图片的后面来完成长截图功能,但这种屏幕长截图实现方式严重依赖图片对比算法,且存在一定的错误概率。
技术实现思路
本专利技术要解决的技术问题在于现有长截图实现方式严重依赖图片对比算法,且存在一定的错误概率的问题,针对该技术问题,提供一种长截图实现方法、终端及计算机可读存储介质。为解决上述技术问题,本专利技术提供一种长截图实现方法,所述长截图实现方法包括:确定第一截图的视图View;屏幕滑动后,根据所述View在第二截图中对应界面的位置信息确定滑动距离;根据所述滑动距离对所述第一截图和第二截 ...
【技术保护点】
1.一种长截图实现方法,其特征在于,所述长截图实现方法包括:/n确定第一截图的视图View;/n屏幕滑动后,根据所述View在第二截图中对应界面的位置信息确定滑动距离;/n根据所述滑动距离对所述第一截图和第二截图进行拼接,得到长截图。/n
【技术特征摘要】
1.一种长截图实现方法,其特征在于,所述长截图实现方法包括:
确定第一截图的视图View;
屏幕滑动后,根据所述View在第二截图中对应界面的位置信息确定滑动距离;
根据所述滑动距离对所述第一截图和第二截图进行拼接,得到长截图。
2.如权利要求1所述的长截图实现方法,其特征在于,所述确定第一截图的视图View之前,包括:
接收截屏指令,对界面进行截图获得所述第一截图;
接收滑动指令,在控制屏幕滑动之前,确定所述第一截图的一个View。
3.如权利要求2所述的长截图实现方法,其特征在于,所述确定所述第一截图的一个View包括:
确定所述第一截图中位于预设下方区域中的一个View。
4.如权利要求1所述的长截图实现方法,其特征在于,所述滑动距离大于0,且小于所述屏幕的长度。
5.如权利要求1-4任一项所述的长截图实现方法,其特征在于,所述根据所述View在第二截图中位置信息确定滑动距离,包括:
在所述屏幕滑动前,获取所述View在滑动前界面的第一位置信息;
获取屏幕滑动后所述View在当前界面的第二位置信息;
根据所述第一位置信息和第二位置信息差确定所述滑动距离。
6.如权利要求5所述的长截图实现方法,其特征在于,所述根据所述滑动距离对所述第一截图和第二截图进行拼接之前,包括:
根据算法库计算所述...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。