mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.12.2 Improved TileImageLoader.
This commit is contained in:
parent
4531e620ca
commit
26bf0b5005
11 changed files with 162 additions and 140 deletions
|
|
@ -80,12 +80,13 @@ namespace MapControl.Images
|
|||
public static async Task<WorldFileImage> ReadWorldFileImage(string imagePath, string worldFilePath, string projFilePath = null)
|
||||
{
|
||||
BitmapSource bitmap;
|
||||
|
||||
using (var stream = File.OpenRead(imagePath))
|
||||
{
|
||||
#if WINDOWS_UWP
|
||||
bitmap = await ImageLoader.LoadImageAsync(stream.AsRandomAccessStream());
|
||||
bitmap = (BitmapSource)await ImageLoader.LoadImageAsync(stream.AsRandomAccessStream());
|
||||
#else
|
||||
bitmap = await ImageLoader.LoadImageAsync(stream);
|
||||
bitmap = (BitmapSource)await ImageLoader.LoadImageAsync(stream);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue