Share via


IXRWriteableBitmap::Init(IXRBitmapSource, bool) (Compact 2013)

3/28/2014

This method initializes a new instance of IXRWriteableBitmap by using a IXRBitmapSource object.

Syntax

virtual HRESULT STDMETHODCALLTYPE Init(
    IXRBitmapSource* pBitmapSource,
    bool UseBackBuffer
) = 0;

Parameters

  • pBitmapSource
    [in] IXRBitmapSource object from which to create the writeable bitmap.
  • UseBackBuffer
    [in] Indicates whether to use a back-buffer surface for pixels in the bitmap.

Return Value

Returns an HRESULT that indicates success or failure. This method can also return the following error:

Error

Description

XR_E_INVALIDSTATE

The Init method was previously called on the IXRWriteableBitmap instance.

Remarks

You can call the Init method only one time to initialize a writeable bitmap.

.NET Framework Equivalent

System.Windows.Media.Imaging.WritableBitmap Constructor (BitmapSource)

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRWriteableBitmap::Init
IXRWriteableBitmap