共用方式為


IWICPixelFormatInfo2::GetNumericRepresentation 方法 (wincodec.h)

擷取像素格式的 WICPixelFormatNumericRepresentation

語法

HRESULT GetNumericRepresentation(
  [out] WICPixelFormatNumericRepresentation *pNumericRepresentation
);

參數

[out] pNumericRepresentation

類型: WICPixelFormatNumericRepresentation*

您已定義的 WICPixelFormatNumericRepresentation 變數位址。 成功完成時,函式會將變數設定為像素格式的 WICPixelFormatNumericRepresentation

傳回值

類型: HRESULT

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

規格需求

   
最低支援的用戶端 適用于 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 wincodec.h
Dll Windowscodecs.dll

另請參閱

IWICPixelFormatInfo2