BitmapSource.SetSource Method

July 28, 2014

Sets the source of the BitmapSource.

Namespace:  System.Windows.Media.Imaging
Assembly:  System.Windows (in System.Windows.dll)

public void SetSource(
	Stream streamSource
)

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft