DWORD GetNearestColor(hDC,crColor)
This function returns the closest logical color to a specified logical color the given device can represent.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | |
crColor | COLORREF Specifies the color to be matched. |
The return value specifies an RGB color value that names the solid color closest to the crColor value that the device can represent.