IWICColorContext::GetProfileBytes method (wincodec.h)

Retrieves the color context profile.

Syntax

HRESULT GetProfileBytes(
  UINT cbBuffer,
  BYTE *pbBuffer,
  UINT *pcbActual
);

Parameters

cbBuffer

Type: UINT

The size of the pbBuffer buffer.

pbBuffer

Type: BYTE*

A pointer that receives the color context profile.

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

   
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