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