Condividi tramite


CDrawingManager::HuetoRGB

Converts a hue value to a red, green, or blue component.

static double __stdcall HuetoRGB(
   double m1,
   double m2,
   double h
);

static BYTE __stdcall HueToRGB(
   float rm1,
   float rm2,
   float rh
);

Parameters

  • [in] m1
    See Remarks.

  • [in] m2
    See Remarks.

  • [in] h
    See Remarks.

  • [in] rm1
    See Remarks.

  • [in] rm2
    See Remarks.

  • [in] rh
    See Remarks.

Return Value

The individual red, green, or blue component for the provided hue.

Remarks

This method is a helper method that the CDrawingManager Class uses to compute the individual red, green, and blue components of a color in a HSV or HSL representation. This method is not designed to be called directly by the programmer. The input parameters are values that depend on the conversion algorithm.

To convert a HSV or HSL color to a RGB representation, call one of the following methods:

Requirements

Header: afxdrawmanager.h

See Also

Reference

CDrawingManager Class

Hierarchy Chart

CDrawingManager::HSVtoRGB

CDrawingManager::HLStoRGB_ONE

CDrawingManager::HLStoRGB_TWO