Sets the source image for a BitmapSource by accessing a stream. Most callers should use SetSourceAsync instead.
Syntax
Parameters
- streamSource
-
Type: IRandomAccessStream
The stream source that sets the image source value.
Remarks
Calling SetSource rather than SetSourceAsync has the potential to block the UI thread until the image source file is returned and processed. It is for this reason that we generally recommend calling SetSourceAsync instead.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012