mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
GeoImage and GroundOverlay implementation
This commit is contained in:
parent
febb6d6b00
commit
b22ee9a60f
5 changed files with 25 additions and 38 deletions
|
|
@ -7,10 +7,8 @@ using System.Threading.Tasks;
|
|||
using Windows.Graphics.Imaging;
|
||||
using Windows.Storage;
|
||||
#if UWP
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Media.Imaging;
|
||||
#else
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
using Microsoft.UI.Xaml.Media.Imaging;
|
||||
#endif
|
||||
|
||||
|
|
@ -18,13 +16,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 { ImageSource = BitmapSource };
|
||||
}
|
||||
|
||||
private static async Task<GeoBitmap> LoadGeoTiffAsync(string sourcePath)
|
||||
{
|
||||
BitmapSource bitmapSource;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue