GetNearestPaletteIndex3w
Usage
UINT GetNearestPaletteIndex
(
HPALETTE hpalette,
COLORREF color
)
Params
hpalette [In] Handle of logical color palette.
color [In] Color to be matched.
Overview
Gets palette index for color.
Notes
Should index be initialized to CLR_INVALID instead of 0?.
Returns
Success: Index of entry in logical palette
Failure: CLR_INVALID
Implementation
Declared in "wingdi.h".
Implemented in "dlls/gdi32/palette.c".
Debug channel "palette".
Releases
5 releases since Debian 2.1 (Slink); the text changed 4 times.