mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update GeoImage.cs
This commit is contained in:
parent
f97a3f0797
commit
0b5d1e439f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue