From 0a3b03b3d9c91daf52c965e1f27179a9e21d9417 Mon Sep 17 00:00:00 2001 From: Vladislav Antonyuk Date: Thu, 15 Jun 2023 20:35:59 +0300 Subject: [PATCH] Fix Android DrawingView background image color --- .../Views/DrawingView/Service/DrawingViewService.android.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommunityToolkit.Maui.Core/Views/DrawingView/Service/DrawingViewService.android.cs b/src/CommunityToolkit.Maui.Core/Views/DrawingView/Service/DrawingViewService.android.cs index 975fe19f9..37dbcfcdc 100644 --- a/src/CommunityToolkit.Maui.Core/Views/DrawingView/Service/DrawingViewService.android.cs +++ b/src/CommunityToolkit.Maui.Core/Views/DrawingView/Service/DrawingViewService.android.cs @@ -57,7 +57,7 @@ static Stream GetBitmapStream(Bitmap? image, Size imageSize) using var resizedImage = GetMaximumBitmap(image, (float)imageSize.Width, (float)imageSize.Height); var stream = new MemoryStream(); - var compressResult = resizedImage.Compress(Bitmap.CompressFormat.Jpeg, 100, stream); + var compressResult = resizedImage.Compress(Bitmap.CompressFormat.Png, 100, stream); resizedImage.Recycle();