Skip to main content
Red
Tan

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxAlphaColors.GetHue(TdxAlphaColor) Method

Extracts the hue color component (i.e., the hue angle) value from the specified color.

#Declaration

Delphi
class function GetHue(AColor: TdxAlphaColor): Single; static;

#Parameters

Name Type
AColor TdxAlphaColor

#Returns

Type
Single

#Remarks

The GetHue, GetSaturation, and GetBrightness functions are used to convert the TdxAlphaColor value passed as the AColor parameter to the HSB representation of an RGB color model. A value returned by the GetHue function is located within the range between 0 and 360, and corresponds to the specified color’s hue angle (in degrees).

Note

The specified color’s alpha is not involved in calculating the hue angle value.

See Also