IWICColorContext::GetProfileBytes method (wincodec.h)

Retrieves the color context profile.

Syntax

HRESULT GetProfileBytes(
  [in]      UINT cbBuffer,
  [in, out] BYTE *pbBuffer,
  [out]     UINT *pcbActual
);

Parameters

[in] cbBuffer

Type: UINT

The size of the pbBuffer buffer.

[in, out] pbBuffer

Type: BYTE*

A pointer that receives the color context profile.

[out] pcbActual

Type: UINT*

A pointer that receives the actual buffer size needed to retrieve the entire color context profile.

Return value

Type: HRESULT

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

Remarks

Only use this method if the context type is WICColorContextProfile.

Calling this method with pbBuffer set to NULL will cause it to return the required buffer size in pcbActual.

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 wincodec.h
Library Windowscodecs.lib
DLL Windowscodecs.dll