From 9860dddb14518bf6e44d446c5b9479301f634018 Mon Sep 17 00:00:00 2001 From: yri066 Date: Sun, 12 Jul 2020 12:22:12 +0300 Subject: [PATCH] Alpha image support --- .../main/java/com/izettle/html2bitmap/Html2BitmapWebView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html2bitmap/src/main/java/com/izettle/html2bitmap/Html2BitmapWebView.java b/html2bitmap/src/main/java/com/izettle/html2bitmap/Html2BitmapWebView.java index d58fbcb..b0c6372 100644 --- a/html2bitmap/src/main/java/com/izettle/html2bitmap/Html2BitmapWebView.java +++ b/html2bitmap/src/main/java/com/izettle/html2bitmap/Html2BitmapWebView.java @@ -209,7 +209,7 @@ private void pageFinished(int delay) { private Bitmap screenshot(WebView webView) { - Bitmap bitmap = Bitmap.createBitmap(webView.getMeasuredWidth(), webView.getMeasuredHeight(), Bitmap.Config.RGB_565); + Bitmap bitmap = Bitmap.createBitmap(webView.getMeasuredWidth(), webView.getMeasuredHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap);