MFCreateWICBitmapBuffer function (mfapi.h)
Creates a media buffer object that manages a Windows Imaging Component (WIC) bitmap.
Syntax
HRESULT MFCreateWICBitmapBuffer(
[in] REFIID riid,
[in] IUnknown *punkSurface,
[out] IMFMediaBuffer **ppBuffer
);
Parameters
[in] riid
Set this parameter to __uuidof(IWICBitmap)
.
[in] punkSurface
A pointer to the IUnknown interface of the bitmap surface. The bitmap surface must be a WIC bitmap that exposes the IWICBitmap interface.
[out] ppBuffer
Receives a pointer to the IMFMediaBuffer interface. The caller must release the interface.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | mfapi.h |
Library | Mfplat.lib |
DLL | Mfplat.dll |