GeoImage implementation

This commit is contained in:
ClemensFischer 2024-09-02 15:49:53 +02:00
parent 07849eb1d8
commit 3468940ebf
6 changed files with 87 additions and 110 deletions

View file

@ -7,15 +7,11 @@ using System.Threading.Tasks;
namespace MapControl
{
public partial class GeoImage : Image
public partial class GeoImage
{
private void SetImage(ImageSource image)
{
Source = image;
Stretch = Stretch.Fill;
}
private Point BitmapSize => new(bitmapSource.PixelSize.Width, bitmapSource.PixelSize.Height);
private static Task<GeoBitmap> ReadGeoTiffAsync(string sourcePath)
private Task LoadGeoTiffAsync(string sourcePath)
{
throw new InvalidOperationException("GeoTIFF is not supported.");
}