mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
Remove Task.Run in ImageLoader.LoadImageAsync
This commit is contained in:
parent
edcdeb09c1
commit
f03a627a86
3 changed files with 10 additions and 16 deletions
|
|
@ -43,13 +43,10 @@ namespace MapControl
|
|||
return Task.FromResult<ImageSource>(null);
|
||||
}
|
||||
|
||||
return Task.Run(() =>
|
||||
using (var stream = File.OpenRead(path))
|
||||
{
|
||||
using (var stream = File.OpenRead(path))
|
||||
{
|
||||
return LoadImage(stream);
|
||||
}
|
||||
});
|
||||
return LoadImageAsync(stream);
|
||||
}
|
||||
}
|
||||
|
||||
internal static async Task<ImageSource> LoadMergedImageAsync(Uri uri1, Uri uri2, IProgress<double> progress)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue