mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update ImageLoader.WinUI.cs
This commit is contained in:
parent
ff6f6b63ea
commit
f78cf5afb7
|
|
@ -93,10 +93,11 @@ namespace MapControl
|
|||
}
|
||||
|
||||
var images = await Task.WhenAll(LoadImageAsync(uri1, progress1), LoadImageAsync(uri2, progress2));
|
||||
var image1 = (WriteableBitmap)images[0];
|
||||
var image2 = (WriteableBitmap)images[1];
|
||||
|
||||
if (image1.PixelHeight == image2.PixelHeight)
|
||||
if (images.Length == 2 &&
|
||||
images[0] is WriteableBitmap image1 &&
|
||||
images[1] is WriteableBitmap image2 &&
|
||||
image1.PixelHeight == image2.PixelHeight)
|
||||
{
|
||||
var width = image1.PixelWidth + image2.PixelWidth;
|
||||
var height = image2.PixelHeight;
|
||||
|
|
|
|||
Loading…
Reference in a new issue