XAML-Map-Control/MapControl/Avalonia/GeoImage.Avalonia.cs
2024-09-13 22:21:38 +02:00

25 lines
695 B
C#

// 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 static partial class GeoImage
{
private partial class GeoBitmap
{
public Point BitmapSize => new(BitmapSource.PixelSize.Width, BitmapSource.PixelSize.Height);
public ImageBrush ImageBrush => new(BitmapSource);
}
private static Task<GeoBitmap> LoadGeoTiffAsync(string sourcePath)
{
throw new InvalidOperationException("GeoTIFF is not supported.");
}
}
}