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
ae23c566dd
commit
06e29b7771
|
|
@ -11,6 +11,8 @@ namespace MapControl
|
|||
{
|
||||
private static Task<GeoBitmap> LoadGeoTiff(string sourcePath)
|
||||
{
|
||||
return Task.Run(LoadGeoTiff);
|
||||
|
||||
GeoBitmap LoadGeoTiff()
|
||||
{
|
||||
BitmapSource bitmap;
|
||||
|
|
@ -56,8 +58,6 @@ namespace MapControl
|
|||
|
||||
return new GeoBitmap(bitmap, transform, projection);
|
||||
}
|
||||
|
||||
return Task.Run(LoadGeoTiff);
|
||||
}
|
||||
|
||||
private static BitmapSource ConvertTransparentPixel(BitmapSource source, int transparentPixel)
|
||||
|
|
|
|||
Loading…
Reference in a new issue