THLSReplaceLightnessTransferMode is a concrete class, derived from TTransferMode, for substituting the lightness component in the HLS (hue-lightness-saturation) color space. This transfer mode sets the resulting color's lightness to that of the source. The hue, saturation, and alpha are those of the destination. (The source and destination need not be THLSColors, and the resulting color is converted from HLS to the specified color space.)
Transforms the destination TColor to a color that has the same lightness value as the source color, but with the original hue, saturation, and alpha values. All arguments are passed as TColors.
Calling Context:
Call this function directly.
Parameters:
const TColor & sourceColor -The source color with the lightness value to use.
const TColor & destColor -The destination color to modify.
Transforms the destination THLSColor to a color that has the same lightness value as the source color, but with the original hue, saturation, and alpha values. All arguments are passed as THLSColors.
Calling Context:
Call this function directly.
Parameters:
const THLSColor & sourceColor -The source color with the lightness value to use.
const THLSColor & destColor -The destination color to modify.