BitmapSource.SetSource Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the source of the BitmapSource.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- streamSource
- Type: System.IO.Stream
The stream to set the source to.
This API can replace the existing texture represented by the BitmapSource. If you call SetSource, it will replace the current dimensions (PixelWidth and PixelHeight) of the BitmapSource.
Show: