GeoImage and GroundOverlay implementation

This commit is contained in:
ClemensFischer 2024-09-14 13:26:57 +02:00
parent febb6d6b00
commit b22ee9a60f
5 changed files with 25 additions and 38 deletions

View file

@ -6,7 +6,6 @@ using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
@ -14,13 +13,6 @@ namespace MapControl
{
public static partial class GeoImage
{
private partial class GeoBitmap
{
public Point BitmapSize => new Point(BitmapSource.PixelWidth, BitmapSource.PixelHeight);
public ImageBrush ImageBrush => new ImageBrush(BitmapSource);
}
private static Task<GeoBitmap> LoadGeoTiffAsync(string sourcePath)
{
return Task.Run(() =>