Update GeoImage.cs

This commit is contained in:
ClemensFischer 2025-08-09 00:29:26 +02:00
parent f97a3f0797
commit 0b5d1e439f

View file

@ -34,11 +34,10 @@ namespace MapControl
public GeoBitmap(BitmapSource bitmap, Matrix transform, MapProjection projection) public GeoBitmap(BitmapSource bitmap, Matrix transform, MapProjection projection)
{ {
var p1 = transform.Transform(new Point()); var p1 = transform.Transform(new Point());
var p2 = transform.Transform(new Point(
#if AVALONIA #if AVALONIA
bitmap.PixelSize.Width, bitmap.PixelSize.Height)); var p2 = transform.Transform(new Point(bitmap.PixelSize.Width, bitmap.PixelSize.Height));
#else #else
bitmap.PixelWidth, bitmap.PixelHeight)); var p2 = transform.Transform(new Point(bitmap.PixelWidth, bitmap.PixelHeight));
#endif #endif
BitmapSource = bitmap; BitmapSource = bitmap;
LatLonBox = projection != null LatLonBox = projection != null