https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.media.imaging.bitmapsource.setsource?view=winrt-28000
BitmapSource.SetSource(IRandomAccessStream) Method (Windows.UI.Xaml.Media.Imaging) - Windows apps |...
Sets the source image for a BitmapSource by accessing a stream. Most callers should use SetSourceAsync instead.
methodwindowsuixamlmedia