admin管理员组

文章数量:1355540

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);
}

本文标签: