次の方法で共有


IXRBitmapSource::SetBitmapSource (Compact 2013)

3/28/2014

This method sets the graphics source file for an IXRBitmapSource object to an HBITMAP.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetBitmapSource(
    __in HBITMAP hBitmap
) = 0;

Parameters

  • hBitmap
    [in] Handle to the loaded bitmap to use for this IXRBitmapSource object.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

Call LoadBitmap to obtain a bitmap handle for this method by supplying the handle to the instance of the binary module that contains the resource to be loaded. This is the instance handle that you added to XAML for Windows Embedded by calling IXRApplication::AddResourceModule.

.NET Framework Equivalent

System.Windows.Media.Imaging.BitmapResource.SetSource

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRBitmapSource
IXRBitmapImage
IXRApplication::AddResourceModule