Partager via


IXRImage::SetSource (Compact 2013)

3/28/2014

This method sets the source for this image.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSource(
    IXRImageSource* pSource
) = 0;

Parameters

  • pSource
    [in] Pointer to an IXRImageSource derived object that represents the new source object for the drawn image.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value of pSource is usually an IXRBitmapImage object, which is a derived class. See IXRBitmapImage for information about the kinds of image sources and formats that can be used for an IXRImage.

.NET Framework Equivalent

System.Windows.Controls.Image.Source

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRImage
IXRImage::GetSource