GetNearestPaletteIndex (GDI32.@)
UINT GetNearestPaletteIndex ( HPALETTE hpalette, COLORREF color )
hpalette | [In] | Handle of logical color palette. |
color | [In] | Color to be matched. |
Gets palette index for color.
Should index be initialized to CLR_INVALID instead of 0?.
Success: Index of entry in logical palette
Failure: CLR_INVALID
Defined in "wingdi.h".
Implemented in "dlls/gdi32/palette.c". source.winehq.org/source/dlls/gdi32/palette.c
Debug channel "palette".
Copyright © 2008 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jul 2008.