Updated MapsforgeTiles

This commit is contained in:
ClemensFischer 2026-02-12 18:57:19 +01:00
parent 215ea1428f
commit 08bb0fe8de
15 changed files with 224 additions and 241 deletions

View file

@ -1,17 +0,0 @@
using System;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace MapControl.MapsforgeTiles
{
public partial class MapsforgeTileSource
{
private static BitmapSource CreateImage(int[] pixels)
{
var size = (int)Math.Sqrt(pixels.Length);
var image = BitmapSource.Create(size, size, 96d, 96d, PixelFormats.Bgra32, null, pixels, size * 4);
image.Freeze();
return image;
}
}
}