Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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 |