IWICComponentFactory::CreateEncoderPropertyBag method (wincodecsdk.h)

Creates an encoder property bag.

Syntax

HRESULT CreateEncoderPropertyBag(
  [in]  PROPBAG2      *ppropOptions,
  [in]  UINT          cCount,
  [out] IPropertyBag2 **ppIPropertyBag
);

Parameters

[in] ppropOptions

Type: PROPBAG2*

Pointer to an array of PROPBAG2 options used to create the encoder property bag.

[in] cCount

Type: UINT

The number of PROPBAG2 structures in the ppropOptions array.

[out] ppIPropertyBag

Type: IPropertyBag2**

A pointer that receives a pointer to an encoder IPropertyBag2.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header wincodecsdk.h
Library Windowscodecs.lib