Hallo
ab D6 (meines wissens nach

)
diese
unit ist nicht in der Hilfe erklärt und beinhaltet u.a. (einfach strg+auf unitnamen draufklicken):

Zitat von
graphutil.pas:
{ Calculates Hue, Luminance and Saturation for the clrRGB value }
procedure ColorRGBToHLS(clrRGB: COLORREF; var Hue, Luminance, Saturation: Word);
{ Calculates a color given Hue, Luminance and Saturation values }
function ColorHLSToRGB(Hue, Luminance, Saturation: Word): TColorRef;
{ Given a color and a luminance change "n" this routine returns a color whose
luminace has been changed accordingly. }
function ColorAdjustLuma(clrRGB: TColorRef; n: Integer; fScale: BOOL): TColorRef;
für Helligkeitsänderungen ist ColorAdjustLuma prima anzuwenden und ruft auch nur ColorRGBToHLS und ColorHLSToRGB auf.
Mfg Frank