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

Defined in "wingdi.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/gdi32/palette.c".

Debug channel "palette".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout