Hue is the color's placement on the 'color wheel' so to speak. It goes from red->orange->yellow->green->cyan->blue->magenta-> and back to red.

Saturation is how far away the color is from grey. It goes from grey -> x.

Luminance is the intensity. It goes from black -> x -> white.

Thanks, got it! :)

Remember that the RGB2HSL and HSL2RGB routines use the COLORREF format, so to convert them from/to a pixel format, bswap, then shift right by 8.

Well, THAT solves the mystery... :grin:
Posted on 2003-07-22 12:14:58 by QvasiModo
My little test proggy...
Sometimes BitmapFromFile seems to fail, does anybody know why? It returns ERROR_NOT_FOUND in GetLastError, but the file is there, and if you retry a couple of times it works fine...
Posted on 2003-07-22 12:17:54 by QvasiModo