IWICPixelFormatInfo2::GetNumericRepresentation 方法 (wincodec.h)

Retrieves the WICPixelFormatNumericRepresentation of the pixel format.

Syntax

HRESULT GetNumericRepresentation(
  [out] WICPixelFormatNumericRepresentation *pNumericRepresentation
);

Parameters

[out] pNumericRepresentation

Type: WICPixelFormatNumericRepresentation*

The address of a WICPixelFormatNumericRepresentation variable that you've defined. On successful completion, the function sets your variable to the WICPixelFormatNumericRepresentation of the pixel format.

Return value

Type: HRESULT

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

Requirements

Requirement Value
最低支持的客户端 适用于 Windows Vista 的 Windows 7、带有 SP2 和平台更新的 Windows Vista [桌面应用 |UWP 应用]
支持的最低服务器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [桌面应用 |UWP 应用]
Target Platform Windows
Header wincodec.h
DLL Windowscodecs.dll

See also

IWICPixelFormatInfo2