Vcl.GraphUtil.ColorRGBToHLS
Delphi
procedure ColorRGBToHLS(clrRGB: TColorRef; var Hue, Luminance, Saturation: Word);
C++
extern DELPHI_PACKAGE void __fastcall ColorRGBToHLS(unsigned clrRGB, System::Word &Hue, System::Word &Luminance, System::Word &Saturation);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.GraphUtil.pas Vcl.GraphUtil.hpp |
Vcl.GraphUtil | Vcl.GraphUtil |
Description
Returns a converted color from RGB to HLS.
ColorRGBToHLS converts colors from RGB (Red, Green, Blue) to HLS/HBS (Hue, Lightness, Saturation/Hue, Brightness, Saturation).
TColorRef represents the base color.
Hue represents the hue.
Luminance represents the luminance.
Saturation represents the saturation.
Note: Hue, Luminance and Saturation are given by reference. The HLS value is stored in these three variables after the routine ends.