ID2D1DeviceContext5::CreateColorContextFromDxgiColorSpace method

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

Syntax


HRESULT CreateColorContextFromDxgiColorSpace(
        DXGI_COLOR_SPACE_TYPE colorSpace,
  [out] ID2D1ColorContext1    **colorContext
);

Parameters

colorSpace

Type: DXGI_COLOR_SPACE_TYPE

The color space to create the color context from.

colorContext [out]

Type: ID2D1ColorContext1**

The created color context.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Header

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1DeviceContext5

 

 

Show: