Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFCreateWICBitmapBuffer function

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

riid [in]

Set this parameter to __uuidof(IWICBitmap).

punkSurface [in]

A pointer to the IUnknown interface of the bitmap surface. The bitmap surface must be a WIC bitmap that exposes the IWICBitmap interface.

ppBuffer [out]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Show:
© 2017 Microsoft