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.
Namespace: System.Windows.Media.Imaging
Assembly: System.Windows (in System.Windows.dll)
Syntax
Public Sub SetSource ( _
streamSource As Stream _
)
public void SetSource(
Stream streamSource
)
Parameters
- streamSource
Type: System.IO..::.Stream
The stream to set the source to.
Remarks
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.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone