ID2D1DeviceContext5::CreateColorContextFromSimpleColorProfile(constD2D1_SIMPLE_COLOR_PROFILE&,ID2D1ColorContext1) method (d2d1_3.h)

Creates a color context from a simple color profile. It is only valid to use this with the Color Management Effect in 'Best' mode.

Syntax

HRESULT CreateColorContextFromSimpleColorProfile(
  [ref] const D2D1_SIMPLE_COLOR_PROFILE & simpleProfile,
  [out] ID2D1ColorContext1                **colorContext
);

Parameters

[ref] simpleProfile

Type: const D2D1_SIMPLE_COLOR_PROFILE

The simple color profile to create the color context from.

[out] colorContext

Type: ID2D1ColorContext1**

The created color context.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

   
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1DeviceContext5