public override void SetImage(SoftwareBitmap image)
        {
            var source = new Windows.UI.Xaml.Media.Imaging.SoftwareBitmapSource();

            source.SetBitmapAsync(image).AsTask().GetAwaiter().GetResult();
            Image.Source = source;
        }
Exemple #2
0
            public static async Task <Windows.UI.Xaml.Media.Imaging.SoftwareBitmapSource> FromSoftwareBitmap(Windows.Graphics.Imaging.SoftwareBitmap bitmap)
            {
                var source = new Windows.UI.Xaml.Media.Imaging.SoftwareBitmapSource();
                await source.SetBitmapAsync(bitmap);

                return(source);
            }