mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
30 lines
685 B
C#
30 lines
685 B
C#
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
|
// Copyright © Clemens Fischer 2012-2013
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
#if NETFX_CORE
|
|
using Windows.UI.Xaml.Media;
|
|
#else
|
|
using System.Windows.Media;
|
|
#endif
|
|
|
|
namespace MapControl
|
|
{
|
|
public partial class MapImage
|
|
{
|
|
private void SourceChanged(ImageSource image)
|
|
{
|
|
var imageTransform = new MatrixTransform
|
|
{
|
|
Matrix = new Matrix(1d, 0d, 0d, -1d, 0d, 1d)
|
|
};
|
|
|
|
Fill = new ImageBrush
|
|
{
|
|
ImageSource = image,
|
|
RelativeTransform = imageTransform
|
|
};
|
|
}
|
|
}
|
|
}
|