SetSource Method
Collapse the table of content
Expand the table of content

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)

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:
© 2017 Microsoft