Share via


CDrawingManager::HLStoRGB_TWO

Converts a color from a HLS representation to a RGB representation.

static COLORREF __stdcall HLStoRGB_TWO(
   double H,
   double L,
   double S
);

Parameters

  • [in] H
    A number between 0 and 360 that represents the hue for the color.

  • [in] L
    A number between 0 and 1 that indicates the luminosity for the color.

  • [in] S
    A number between 0 and 1 that indicates the saturation for the color.

Return Value

The RGB representation of the HLS color provided.

Remarks

A color can be represented as HSV (hue, saturation, and value), HSL (hue, saturation, and luminosity), or RGB (red, green, and blue). For more information about the different representations of color, see Color.

This method and the CDrawingManager::HLStoRGB_ONE method perform the same operation, but require different values for the H parameter. In this method, H is a degree value between 0 and 360, which both represent red. In the CDrawingManager::HLStoRGB_ONE method, H is a percentage of the circle. For example, with HLStoRGB_ONE, a value of 0.25 for H is equivalent to a value of 90 with HLStoRGB_TWO.

Requirements

Header: afxdrawmanager.h

See Also

Reference

CDrawingManager Class

Hierarchy Chart

CDrawingManager::RGBtoHSL

CDrawingManager::HLStoRGB_ONE