NAME

NtGdiGetNearestPaletteIndex  (WIN32U.@)

SYNOPSIS

 UINT NtGdiGetNearestPaletteIndex
 (
  HPALETTE hpalette,
  COLORREF color
 )

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 "include/ntgdi.h". gitlab.winehq.org/wine/wine/blob/master/include/ntgdi.h

Implemented in "dlls/win32u/palette.c". gitlab.winehq.org/wine/wine/blob/master/dlls/win32u/palette.c

Debug channel "palette".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Dec 2024.