IXRWriteableBitmap::Init(UINT, UINT, bool) (Compact 2013)
3/28/2014
This method initializes a new instance of IXRWriteableBitmap by using size dimensions.
Syntax
virtual HRESULT STDMETHODCALLTYPE Init(
UINT PixelWidth,
UINT PixelHeight,
bool UseBackBuffer
) = 0;
Parameters
- PixelWidth
[in] The width of the bitmap.
- PixelHeight
[in] The height of the 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.WriteableBitmap Constructor (Int32, Int32)
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |