MKI_ColorConvertD2D (Colors) New in Version 2023.0

www.CAD6.com

C++ Syntax

D2D1_COLOR_F

MKI_ColorConvertD2D(

 MKI_COLORVALUE f_cColorRGB,

 double f_dAlpha );

 

Converts a given color in RGB mode to a standard Direct2D color in RGB notation with a given transparency (alpha) information. Uses an internal lookup table to be extremely fast!

 

D2D1_COLOR_F

MKI_ColorConvertD2D(

 MKI_COLORVALUE f_cColor,

 MKI_COLORMODEL f_cColorMode,

 double f_dAlpha );

 

Converts a given color to a standard Direct2D color in RGB notation with a given transparency (alpha) information.

 

Parameters

m_cColorRGB

[MKI_COLORVALUE] Input color to be converted in the notation defined by MKI_COLORMODE_RGB255.

m_cColor

[MKI_COLORVALUE] Input color to be converted in the notation defined by m_nInputColorMode.

m_cColorMode

[MKI_COLORMODEL] This value determines how the content of m_nInputColor is to be interpreted (see MKI_COLORMODE_*).

m_dAlpha

[double] Alpha value of the color. 1.0 is fully opaque, 0.0 is fully transparent.

 

Return Value

The converted color in the standard Direct2D color format D2D1_COLOR_F.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH