ID2D1DeviceContext5::CreateColorContextFromSimpleColorProfile (constD2D1_SIMPLE_COLOR_PROFILE*,ID2D1ColorContext1**) 方法 (d2d1_3.h)

从简单的颜色配置文件创建颜色上下文。 仅在“最佳”模式下将其与颜色管理效果一起使用才有效。

语法

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

参数

[in] simpleProfile

类型: const D2D1_SIMPLE_COLOR_PROFILE*

要从中创建颜色上下文的简单颜色配置文件。

[out] colorContext

类型: ID2D1ColorContext1**

创建的颜色上下文。

返回值

类型: HRESULT

此方法返回 HRESULT 成功或错误代码。

要求

   
目标平台 Windows
标头 d2d1_3.h
DLL D2d1.dll

另请参阅

ID2D1DeviceContext5