mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update GeoImage.WPF.cs
This commit is contained in:
parent
a3e7ab0404
commit
ae23c566dd
|
|
@ -11,7 +11,7 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
private static Task<GeoBitmap> LoadGeoTiff(string sourcePath)
|
private static Task<GeoBitmap> LoadGeoTiff(string sourcePath)
|
||||||
{
|
{
|
||||||
return Task.Run(() =>
|
GeoBitmap LoadGeoTiff()
|
||||||
{
|
{
|
||||||
BitmapSource bitmap;
|
BitmapSource bitmap;
|
||||||
Matrix transform;
|
Matrix transform;
|
||||||
|
|
@ -55,7 +55,9 @@ namespace MapControl
|
||||||
}
|
}
|
||||||
|
|
||||||
return new GeoBitmap(bitmap, transform, projection);
|
return new GeoBitmap(bitmap, transform, projection);
|
||||||
});
|
}
|
||||||
|
|
||||||
|
return Task.Run(LoadGeoTiff);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static BitmapSource ConvertTransparentPixel(BitmapSource source, int transparentPixel)
|
private static BitmapSource ConvertTransparentPixel(BitmapSource source, int transparentPixel)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue