mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-02-26 01:24:20 +01:00
Updated ImageLoader
This commit is contained in:
parent
1588171fb4
commit
5d390071c6
|
|
@ -11,7 +11,7 @@ namespace MapControl
|
|||
{
|
||||
public static partial class ImageLoader
|
||||
{
|
||||
public static IImage LoadImage(Uri uri)
|
||||
public static IImage LoadResourceImage(Uri uri)
|
||||
{
|
||||
return new Bitmap(AssetLoader.Open(uri));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ namespace MapControl
|
|||
}
|
||||
else
|
||||
{
|
||||
image = LoadImage(uri);
|
||||
image = LoadResourceImage(uri);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace MapControl
|
|||
{
|
||||
public static partial class ImageLoader
|
||||
{
|
||||
public static ImageSource LoadImage(Uri uri)
|
||||
public static ImageSource LoadResourceImage(Uri uri)
|
||||
{
|
||||
return new BitmapImage(uri);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace MapControl
|
|||
{
|
||||
public static partial class ImageLoader
|
||||
{
|
||||
public static ImageSource LoadImage(Uri uri)
|
||||
public static ImageSource LoadResourceImage(Uri uri)
|
||||
{
|
||||
return new BitmapImage(uri);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue