作者:mobiledu2502861377 | 来源:互联网 | 2023-10-12 20:51
Android x5webview,截长图有不模糊的写法吗,现在截图出来都很模糊.有什么解决方法吗?
相关代码
1 2 3 4 5 6
| int width = webView.getContentWidth();
int height = webView.getContentHeight();
Bitmap x5bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
Canvas x5canvas = new Canvas(x5bitmap);
//这个截图出来的很模糊
webView.getX5WebViewExtension().snapshotWholePage(x5canvas, false, false); |