Introduction - If you have any usage issues, please Google them yourself
Experimental realization of the RGB and HLS color color conversion in this experiment, the definition of the function void HSLtoRGB (UINT hue, UINT sat, UINT light, BYTE & r, BYTE & g, BYTE & b) the realization of HSL to RGB conversion void CPaletteDlg: : RGBtoHSL (BYTE r, BYTE g, BYTE b, UINT & hue, UINT & sat, UINT & light) to achieve conversion RGB to HSL