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 "ntgdi.h". https://source.winehq.org/source/include/ntgdi.h

Implemented in "dlls/win32u/palette.c". https://source.winehq.org/source/dlls/win32u/palette.c

Debug channel "palette".


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