mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Update GeoImage.cs
This commit is contained in:
parent
f97a3f0797
commit
0b5d1e439f
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue