mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Added ImageLoader.LoadImageAsync(IBuffer buffer)
This commit is contained in:
parent
d7eb26f9cd
commit
f3aad38814
3 changed files with 25 additions and 15 deletions
|
|
@ -31,6 +31,14 @@ namespace MapControl
|
|||
return Task.FromResult(LoadImage(stream));
|
||||
}
|
||||
|
||||
public static async Task<ImageSource> LoadImageAsync(byte[] buffer)
|
||||
{
|
||||
using (var stream = new MemoryStream(buffer))
|
||||
{
|
||||
return await LoadImageAsync(stream);
|
||||
}
|
||||
}
|
||||
|
||||
public static Task<ImageSource> LoadImageAsync(string path)
|
||||
{
|
||||
return Task.Run(() =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue