0 out of 3 rated this helpful - Rate this topic

BitmapSource.SetSource method

Sets the source image for a BitmapSource by accessing a stream. Most callers should use SetSourceAsync instead.

Syntax


public void SetSource(
  IRandomAccessStream streamSource
)

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

Windows.UI.Xaml.Media.Imaging
Windows::UI::Xaml::Media::Imaging [C++]

Metadata

Windows.winmd

See also

BitmapSource
UriSource

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.