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

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.