| 
    uLib
    User mode C/C++ extended API library for Win32 programmers.
    
   | 
 
Color modification APIs.
Functions | |
| COLORREF WINAPI | ScaleColorRef (COLORREF color, BYTE mul, BYTE div) | 
| COLORREF WINAPI | GradientColor (COLORREF c1, COLORREF c2, WORD Ix, WORD Length) | 
| COLORREF WINAPI | GrayScaleColor (COLORREF rgb) | 
| DWORD __cdecl | _swapRGB (DWORD rgba) | 
| DWORD __cdecl | _swapRGB2 (DWORD rgb) | 
ScaleColorRef scales the R/G/B values of color by a ratio.
The resulting R/G/B components are constrained to byte range. 
Definition at line 558 of file GdiUtil.cpp.
GradientColor produces a smooth color crossfade from c1 to c2.
| c1,c2 | Starting and ending color. | 
| Length | The desired run length from c1 to c2, inclusive. | 
| Ix | Zero-based step nr. | 
Returns the color at step Ix.
| COLORREF WINAPI GrayScaleColor | ( | COLORREF | rgb | ) | 
GrayScaleColor converts an RGB value to grayscale.
The luminance of the return value is an sRGB weighted combination of R/G/B. 
Definition at line 596 of file GdiUtil.cpp.
_swapRGB2 swaps the RGB order of rgb, clearing the alpha/flag value.
See also _swapRGB() Defined in _bswap.asm