From aa14afcd205901f946512617a341898caaae0f1f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 23:08:03 +0200 Subject: [PATCH] Fix SKXamlCanvas on Uno Skia to use Bgra8888 (#2918) (#2919) * Fix SKXamlCanvas on Uno Skia to use Bgra8888 * Fix build (cherry picked from commit c264c449b820005565df6861369f1bdb04a1c282) Co-authored-by: Youssef Victor --- .../SkiaSharp.Views.Uno.Skia/SKXamlCanvas.Skia.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.Skia/SKXamlCanvas.Skia.cs b/source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.Skia/SKXamlCanvas.Skia.cs index a849191472..74e155ac8a 100644 --- a/source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.Skia/SKXamlCanvas.Skia.cs +++ b/source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.Skia/SKXamlCanvas.Skia.cs @@ -81,7 +81,7 @@ private void DoInvalidate() private SKImageInfo CreateBitmap(out SKSizeI unscaledSize, out float dpi) { var size = CreateSize(out unscaledSize, out dpi); - var info = new SKImageInfo(size.Width, size.Height, SKImageInfo.PlatformColorType, SKAlphaType.Premul); + var info = new SKImageInfo(size.Width, size.Height, SKColorType.Bgra8888, SKAlphaType.Premul); if (bitmap?.PixelWidth != info.Width || bitmap?.PixelHeight != info.Height) FreeBitmap();