XAML-Map-Control/MapControl/Avalonia/GeoImage.Avalonia.cs

24 lines
600 B
C#
Raw Normal View History

2024-09-01 23:57:47 +02:00
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
// Copyright © 2024 Clemens Fischer
// Licensed under the Microsoft Public License (Ms-PL)
using System;
using System.Threading.Tasks;
namespace MapControl
{
public partial class GeoImage : Image
{
private void SetImage(ImageSource image)
{
Source = image;
Stretch = Stretch.Fill;
}
private static Task<GeoBitmap> ReadGeoTiffAsync(string sourcePath)
{
throw new InvalidOperationException("GeoTIFF is not supported.");
}
}
}