GeoImage implementation

This commit is contained in:
ClemensFischer 2024-09-06 23:50:59 +02:00
parent f948f07f7e
commit 0d95dd2adb
4 changed files with 31 additions and 9 deletions

View file

@ -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));