MKI_ColorGetSortValue (Colors) Renamed in Version 2020.0

www.CAD6.com

C++ Syntax

DWORD

MKI_ColorGetSortValue(

 MKI_COLORVALUE f_cColor,

 MKI_COLORMODEL f_cColorMode );

 

Converts a sorting value for the given color, i.e. a 32 bits unsigned value that can be used to sort colors according to their hue, brightness and saturation. This is the same value that the application uses to sort colors in its dialog windows (unless the "Sort by names" options is active).

 

Parameters

Color

[MKI_COLORVALUE] Color whose sorting value shall be calculated in the notation defined by ColorMode.

ColorMode

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

 

Return Value

An unsigned sorting value.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH