Scroll to navigation

GetNearestPaletteIndex(3w) Wine API GetNearestPaletteIndex(3w)

NAME

GetNearestPaletteIndex (GDI32.@)

SYNOPSIS

UINT GetNearestPaletteIndex
(
HPALETTE hpalette,
COLORREF color
)
 

PARAMS

hpalette [In] Handle of logical color palette.
color [In] Color to be matched.
 

DESCRIPTION

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".
Oct 2012 Wine API