Version 4.12.2 Improved GroundOverlayPanel

This commit is contained in:
ClemensF 2019-06-17 18:09:28 +02:00
parent c28387f87c
commit c8f834f940
5 changed files with 29 additions and 14 deletions

View file

@ -20,11 +20,13 @@ namespace MapControl
public static ImageSource LoadImage(Stream stream)
{
var bitmapImage = new BitmapImage();
bitmapImage.BeginInit();
bitmapImage.CacheOption = BitmapCacheOption.OnLoad;
bitmapImage.StreamSource = stream;
bitmapImage.EndInit();
bitmapImage.Freeze();
return bitmapImage;
}