mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
GeoImage implementation
This commit is contained in:
parent
f948f07f7e
commit
0d95dd2adb
4 changed files with 31 additions and 9 deletions
|
|
@ -6,6 +6,11 @@ using System;
|
|||
using System.Threading.Tasks;
|
||||
using Windows.Graphics.Imaging;
|
||||
using Windows.Storage;
|
||||
#if UWP
|
||||
using Windows.UI.Xaml.Media;
|
||||
#else
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
#endif
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
|
|
@ -13,6 +18,8 @@ namespace MapControl
|
|||
{
|
||||
private Point BitmapSize => new Point(bitmapSource.PixelWidth, bitmapSource.PixelHeight);
|
||||
|
||||
private ImageBrush ImageBrush => new ImageBrush { ImageSource = bitmapSource };
|
||||
|
||||
private async Task LoadGeoTiffAsync(string sourcePath)
|
||||
{
|
||||
var file = await StorageFile.GetFileFromPathAsync(FilePath.GetFullPath(sourcePath));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue