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