From 0b8590a164b6dd604f639c762dc07f8a3ae535c8 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Wed, 11 Feb 2026 17:30:18 +0100 Subject: [PATCH] Update ImageLoader.Avalonia.cs --- MapControl/Avalonia/ImageLoader.Avalonia.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MapControl/Avalonia/ImageLoader.Avalonia.cs b/MapControl/Avalonia/ImageLoader.Avalonia.cs index 0901f7e0..34140fe9 100644 --- a/MapControl/Avalonia/ImageLoader.Avalonia.cs +++ b/MapControl/Avalonia/ImageLoader.Avalonia.cs @@ -42,7 +42,7 @@ namespace MapControl internal static async Task LoadMergedImageAsync(Uri uri1, Uri uri2, IProgress progress) { - WriteableBitmap mergedBitmap = null; + Bitmap mergedBitmap = null; var p1 = 0d; var p2 = 0d; @@ -74,7 +74,7 @@ namespace MapControl bitmap1.CopyPixels(new PixelRect(bitmap1.PixelSize), buffer, bufferSize, stride); bitmap2.CopyPixels(new PixelRect(bitmap2.PixelSize), buffer + stride1, bufferSize, stride); - mergedBitmap = new WriteableBitmap(bitmap1.Format.Value, bitmap1.AlphaFormat.Value, buffer, pixelSize, bitmap1.Dpi, stride); + mergedBitmap = new Bitmap(bitmap1.Format.Value, bitmap1.AlphaFormat.Value, buffer, pixelSize, bitmap1.Dpi, stride); } } }