From 0b5d1e439f2ba74ed53b4210a64c217981b329f9 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Sat, 9 Aug 2025 00:29:26 +0200 Subject: [PATCH] Update GeoImage.cs --- MapControl/Shared/GeoImage.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MapControl/Shared/GeoImage.cs b/MapControl/Shared/GeoImage.cs index c3455f1a..64b0e71a 100644 --- a/MapControl/Shared/GeoImage.cs +++ b/MapControl/Shared/GeoImage.cs @@ -34,11 +34,10 @@ namespace MapControl public GeoBitmap(BitmapSource bitmap, Matrix transform, MapProjection projection) { var p1 = transform.Transform(new Point()); - var p2 = transform.Transform(new Point( #if AVALONIA - bitmap.PixelSize.Width, bitmap.PixelSize.Height)); + var p2 = transform.Transform(new Point(bitmap.PixelSize.Width, bitmap.PixelSize.Height)); #else - bitmap.PixelWidth, bitmap.PixelHeight)); + var p2 = transform.Transform(new Point(bitmap.PixelWidth, bitmap.PixelHeight)); #endif BitmapSource = bitmap; LatLonBox = projection != null