diff --git a/src/Skia/Avalonia.Skia/BitmapImpl.cs b/src/Skia/Avalonia.Skia/BitmapImpl.cs index 159e585218..232f2721e1 100644 --- a/src/Skia/Avalonia.Skia/BitmapImpl.cs +++ b/src/Skia/Avalonia.Skia/BitmapImpl.cs @@ -24,7 +24,11 @@ namespace Avalonia.Skia { PixelHeight = height; PixelWidth = width; - Bitmap = new SKBitmap(width, height, SKImageInfo.PlatformColorType, SKAlphaType.Premul); + var colorType = SKImageInfo.PlatformColorType; + var runtime = AvaloniaLocator.Current?.GetService()?.GetRuntimeInfo(); + if (runtime?.IsDesktop == true && runtime?.OperatingSystem == OperatingSystemType.Linux) + colorType = SKColorType.Bgra8888; + Bitmap = new SKBitmap(width, height, colorType, SKAlphaType.Premul); } public void Dispose()