D2D1ConvertColorSpace function (d2d1_1.h)

Converts the given color from one colorspace to another.

Syntax

D2D1_COLOR_F D2D1ConvertColorSpace(
       D2D1_COLOR_SPACE   sourceColorSpace,
       D2D1_COLOR_SPACE   destinationColorSpace,
  [in] const D2D1_COLOR_F *color
);

Parameters

sourceColorSpace

Type: D2D1_COLOR_SPACE

The source color space.

destinationColorSpace

Type: D2D1_COLOR_SPACE

The destination color space.

[in] color

Type: const D2D1_COLOR_F*

The source color.

Return value

Type: D2D1_COLOR_F

The converted color.

Requirements

Requirement Value
Target Platform Windows
Header d2d1_1.h
Library D2D1.lib
DLL D2D1.dll