最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - How to Capture a WebView Screenshot with a Specific Height and Width Starting from the Top-Left Corner? - Stack Overflow

programmeradmin2浏览0评论

I’m building a custom browser in my Android application and need to take a screenshot of each tab when a web page loads.

Currently, I’m using the following method to capture the screenshot:

public Bitmap tabScreenShot(Context context) {
    WebView webView = new WebView(context);
    return new Screenshot().takeWebView(webView, height, width);
}

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论