https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource.setsourceasync?view=windows-app-sdk-2.0
BitmapSource.SetSourceAsync(IRandomAccessStream) Method (Microsoft.UI.Xaml.Media.Imaging) - Windows...
Sets the source image for a BitmapSource by accessing a stream and processing the result asynchronously.
methodmicrosoftuixamlmedia