IWICComponentFactory::CreateEncoderPropertyBag 方法 (wincodecsdk.h)

建立編碼器屬性包。

語法

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

參數

[in] ppropOptions

類型: PROPBAG2*

用來建立編碼器屬性包之 PROPBAG2 選項陣列的指標。

[in] cCount

類型: UINT

ppropOptions 陣列中的PROPBAG2結構數目。

[out] ppIPropertyBag

類型: IPropertyBag2**

接收編碼器 IPropertyBag2 指標的指標。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

需求
最低支援的用戶端 Windows XP 搭配 SP2、Windows Vista [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 wincodecsdk.h
程式庫 Windowscodecs.lib